/**
 * Fahrzeugangebot Frontend Styles
 *
 * @package Fahrzeugangebot
 */

/* ========================================================================
   Variables
   ======================================================================== */

:root {
    --fa-primary-color: #0066cc;
    --fa-secondary-color: #333333;
    --fa-text-color: #666666;
    --fa-border-color: #e0e0e0;
    --fa-bg-light: #f8f9fa;
    --fa-spacing: 1.5rem;
    --fa-radius: 8px;
    --fa-transition: all 0.3s ease;
}

/* ========================================================================
   Vehicle List
   ======================================================================== */

.fahrzeugangebot-list {
    display: grid;
    gap: var(--fa-spacing);
    margin-bottom: var(--fa-spacing);
}

.fahrzeugangebot-template-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.fahrzeugangebot-template-list {
    grid-template-columns: 1fr;
}

/* ========================================================================
   Vehicle Card
   ======================================================================== */

.fahrzeug-card {
    background: #ffffff;
    border: 1px solid var(--fa-border-color);
    border-radius: var(--fa-radius);
    overflow: hidden;
    transition: var(--fa-transition);
}

.fahrzeug-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.fahrzeug-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Grid Layout */
.fahrzeug-card-grid .fahrzeug-card-thumbnail {
    position: relative;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    background: var(--fa-bg-light);
}

.fahrzeug-card-grid .fahrzeug-card-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fahrzeug-card-grid .fahrzeug-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fahrzeug-card-grid .fahrzeug-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fa-border-color);
    font-size: 4rem;
}

/* List Layout */
.fahrzeug-card-list .fahrzeug-card-inner {
    flex-direction: row;
    gap: var(--fa-spacing);
}

.fahrzeug-card-list .fahrzeug-card-thumbnail {
    flex: 0 0 250px;
    max-height: 200px;
}

.fahrzeug-card-list .fahrzeug-card-content {
    flex: 1;
}

.fahrzeug-card-list .fahrzeug-card-sidebar {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card Content */
.fahrzeug-card-content {
    padding: var(--fa-spacing);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fahrzeug-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--fa-primary-color);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.fahrzeug-card-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.fahrzeug-card-title a {
    color: var(--fa-secondary-color);
    text-decoration: none;
    transition: var(--fa-transition);
}

.fahrzeug-card-title a:hover {
    color: var(--fa-primary-color);
}

.fahrzeug-card-excerpt {
    color: var(--fa-text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Specs */
.fahrzeug-card-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--fa-text-color);
    font-size: 0.875rem;
}

.fahrzeug-spec {
    display: flex;
    justify-content: space-between;
}

.fahrzeug-spec-label {
    font-weight: 600;
}

.fahrzeug-card-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.fahrzeug-spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fahrzeug-spec-icon {
    font-size: 1.25rem;
}

.fahrzeug-spec-content {
    display: flex;
    flex-direction: column;
}

.fahrzeug-spec-content .fahrzeug-spec-label {
    font-size: 0.75rem;
    color: var(--fa-text-color);
}

.fahrzeug-spec-content .fahrzeug-spec-value {
    font-weight: 600;
    color: var(--fa-secondary-color);
}

/* Price */
.fahrzeug-card-price {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--fa-border-color);
}

.fahrzeug-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fa-primary-color);
}

/* Actions */
.fahrzeug-card-actions {
    margin-top: 1rem;
}

/* ========================================================================
   Vehicle Detail - Professional
   ======================================================================== */

.fahrzeug-detail-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem var(--fa-spacing);
}

.fahrzeug-detail-pro {
    background: #fff;
}

.fahrzeug-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Gallery Section */
.fahrzeug-gallery-section {
    position: relative;
}

.fahrzeug-slider-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.fahrzeug-main-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.fahrzeug-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fahrzeug-slide.active {
    opacity: 1;
    z-index: 1;
}

.fahrzeug-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Slider Arrows */
.fahrzeug-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.fahrzeug-slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.fahrzeug-slider-prev { left: 15px; }
.fahrzeug-slider-next { right: 15px; }

.fahrzeug-slider-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

/* Image Counter */
.fahrzeug-slider-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Thumbnails */
.fahrzeug-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
}

.fahrzeug-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.fahrzeug-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.fahrzeug-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: all 0.3s ease;
}

.fahrzeug-thumb:hover {
    border-color: var(--fa-primary-color);
    opacity: 0.9;
}

.fahrzeug-thumb.active {
    border-color: var(--fa-primary-color);
    box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

.fahrzeug-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No Image Placeholder */
.fahrzeug-no-image-placeholder {
    aspect-ratio: 4/3;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    gap: 1rem;
}

/* Info Section */
.fahrzeug-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fahrzeug-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.fahrzeug-brand-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--fa-primary-color), #004999);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.fahrzeug-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.fahrzeug-subtitle {
    color: #666;
    font-size: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fahrzeug-subtitle .divider {
    color: #ccc;
    margin: 0 4px;
}

/* Price Card */
.fahrzeug-price-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--fa-primary-color);
}

.fahrzeug-price-main {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--fa-primary-color);
    line-height: 1;
}

.fahrzeug-price-info {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}

/* Key Features */
.fahrzeug-key-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fahrzeug-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.fahrzeug-feature:hover {
    background: #f0f0f0;
}

.fahrzeug-feature-icon {
    font-size: 24px;
    line-height: 1;
}

.fahrzeug-feature-content {
    display: flex;
    flex-direction: column;
}

.fahrzeug-feature-content .label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
}

.fahrzeug-feature-content .value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* CTA Section */
.fahrzeug-cta-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 1rem;
}

.fahrzeug-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.fahrzeug-btn-primary {
    background: linear-gradient(135deg, var(--fa-primary-color), #004999);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.fahrzeug-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.4);
    color: #fff;
}

.fahrzeug-btn-secondary {
    background: #fff;
    color: #333;
    border: 2px solid #e0e0e0;
}

.fahrzeug-btn-secondary:hover {
    border-color: var(--fa-primary-color);
    color: var(--fa-primary-color);
}

/* Sections */
.fahrzeug-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.fahrzeug-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Specs Grid */
.fahrzeug-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.fahrzeug-specs-column h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--fa-primary-color);
}

.fahrzeug-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.fahrzeug-specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.fahrzeug-specs-table tr:last-child {
    border-bottom: none;
}

.fahrzeug-specs-table th,
.fahrzeug-specs-table td {
    padding: 10px 0;
    text-align: left;
    vertical-align: top;
}

.fahrzeug-specs-table th {
    color: #666;
    font-weight: 500;
    font-size: 14px;
    width: 50%;
}

.fahrzeug-specs-table td {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
}

/* Description */
.fahrzeug-description-content {
    color: #444;
    line-height: 1.8;
    font-size: 15px;
}

.fahrzeug-description-content p {
    margin-bottom: 1rem;
}

.fahrzeug-description-content ul,
.fahrzeug-description-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .fahrzeug-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .fahrzeug-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .fahrzeug-detail-wrapper {
        padding: 1rem;
    }
    
    .fahrzeug-title {
        font-size: 1.4rem;
    }
    
    .fahrzeug-price-main {
        font-size: 1.75rem;
    }
    
    .fahrzeug-key-features {
        grid-template-columns: 1fr;
    }
    
    .fahrzeug-specs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fahrzeug-section {
        padding: 1.25rem;
    }
    
    .fahrzeug-slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .fahrzeug-slider-prev { left: 10px; }
    .fahrzeug-slider-next { right: 10px; }
    
    .fahrzeug-thumb {
        width: 70px;
        height: 52px;
    }
}

/* ========================================================================
   Filter & Search
   ======================================================================== */

.fahrzeugangebot-filter,
.fahrzeugangebot-search {
    background: #ffffff;
    border: 1px solid var(--fa-border-color);
    border-radius: var(--fa-radius);
    padding: var(--fa-spacing);
    margin-bottom: var(--fa-spacing);
}

.fahrzeug-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.fahrzeug-filter-row:last-child {
    margin-bottom: 0;
}

.fahrzeug-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fahrzeug-filter-field label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fa-secondary-color);
}

.fahrzeug-select,
.fahrzeug-input {
    padding: 0.75rem;
    border: 1px solid var(--fa-border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--fa-transition);
}

.fahrzeug-select:focus,
.fahrzeug-input:focus {
    outline: none;
    border-color: var(--fa-primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.fahrzeug-filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Search Form */
.fahrzeug-search-wrapper {
    display: flex;
    gap: 0.5rem;
}

.fahrzeug-search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--fa-border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.fahrzeug-search-button {
    padding: 0.75rem 1.5rem;
    background: var(--fa-primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--fa-transition);
}

.fahrzeug-search-button:hover {
    background: #0052a3;
}

.fahrzeug-search-results-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fa-border-color);
}

/* ========================================================================
   Buttons
   ======================================================================== */

.fahrzeug-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--fa-transition);
}

.fahrzeug-button-primary {
    background: var(--fa-primary-color);
    color: #ffffff;
}

.fahrzeug-button-primary:hover {
    background: #0052a3;
    color: #ffffff;
}

.fahrzeug-button-secondary {
    background: #ffffff;
    color: var(--fa-secondary-color);
    border: 1px solid var(--fa-border-color);
}

.fahrzeug-button-secondary:hover {
    background: var(--fa-bg-light);
}

.fahrzeug-button-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========================================================================
   Pagination
   ======================================================================== */

.fahrzeugangebot-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.fahrzeugangebot-pagination a,
.fahrzeugangebot-pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--fa-border-color);
    border-radius: 4px;
    color: var(--fa-secondary-color);
    text-decoration: none;
    transition: var(--fa-transition);
}

.fahrzeugangebot-pagination a:hover {
    background: var(--fa-primary-color);
    color: #ffffff;
    border-color: var(--fa-primary-color);
}

.fahrzeugangebot-pagination .current {
    background: var(--fa-primary-color);
    color: #ffffff;
    border-color: var(--fa-primary-color);
}

/* ========================================================================
   Utilities
   ======================================================================== */

.fahrzeugangebot-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--fa-text-color);
    font-size: 1.125rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ========================================================================
   Responsive
   ======================================================================== */

@media (max-width: 768px) {
    .fahrzeugangebot-template-grid {
        grid-template-columns: 1fr;
    }
    
    .fahrzeug-card-list .fahrzeug-card-inner {
        flex-direction: column;
    }
    
    .fahrzeug-card-list .fahrzeug-card-thumbnail {
        flex: none;
        max-height: none;
    }
    
    .fahrzeug-card-list .fahrzeug-card-sidebar {
        flex: none;
    }
    
    .fahrzeug-detail-content {
        grid-template-columns: 1fr;
    }
    
    .fahrzeug-filter-row {
        grid-template-columns: 1fr;
    }
    
    .fahrzeug-specs-grid {
        grid-template-columns: 1fr;
    }
}
