/* ============================================
   Flavor Car Manager - Frontend Styles
   Elegantes Design - Schwarz/Weiss
   ============================================ */

:root {
    --fcm-primary: #1a1a1a;
    --fcm-primary-hover: #333333;
    --fcm-secondary: #1a1a1a;
    --fcm-text: #1a1a1a;
    --fcm-text-light: #555555;
    --fcm-text-muted: #888888;
    --fcm-bg: #f5f5f5;
    --fcm-white: #ffffff;
    --fcm-border: #e0e0e0;
    --fcm-border-light: #f0f0f0;
    --fcm-success: #27ae60;
    --fcm-ev-green: #00963f;
    --fcm-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --fcm-card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --fcm-radius: 8px;
    --fcm-radius-sm: 4px;
}

/* ============================================
   BASIS: Verhindere Überlaufen auf allen Geräten
   ============================================ */
.fcm-inventory-wrapper,
.fcm-detail-wrapper,
.fcm-homepage-section,
.fcm-page-container {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Bilder niemals größer als Container */
.fcm-inventory-wrapper img,
.fcm-detail-wrapper img,
.fcm-homepage-section img {
    max-width: 100%;
    height: auto;
}

/* ---- Divi-Override: Keine Sidebar, volle Breite ---- */
.single-fcm_vehicle #sidebar,
.single-fcm_vehicle .sidebar,
.single-fcm_vehicle .widget-area,
.single-fcm_vehicle #secondary {
    display: none !important;
}

/* Breite auf 100% begrenzen */
.single-fcm_vehicle #main-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Mobile: Verhindere Überlauf */
@media (max-width: 768px) {
    .single-fcm_vehicle {
        overflow-x: hidden !important;
    }
    
    .single-fcm_vehicle #main-content {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 !important;
    }
    
    /* Divi's Container auf Mobile zurücksetzen */
    .single-fcm_vehicle #main-content .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }
}

/* Plugin-Template Container – passt sich dem Divi-Container an (width:80%, max 1080px) */
.fcm-page-container {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 0;
    box-sizing: border-box;
}

/* MOBILE: Volle Breite nutzen */
@media (max-width: 768px) {
    .fcm-page-container {
        width: 100% !important;
        padding: 15px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .fcm-page-container {
        width: 100% !important;
        padding: 10px !important;
        max-width: 100% !important;
    }
}

/* Fallback: Falls doch Divi's page.php geladen wird */
.single-fcm_vehicle #left-area,
.single-fcm_vehicle #content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    float: none !important;
}

/* Nur den Divi-Container innerhalb des Hauptinhalts aufheben – Header/Footer bleiben unangetastet */
.single-fcm_vehicle #main-content .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Nur Divi-Rows im Hauptinhalt, nicht im Header/Footer */
.single-fcm_vehicle #main-content .et_pb_row {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Divi doppelten Titel ausblenden */
.single-fcm_vehicle .et_pb_post_title,
.single-fcm_vehicle .entry-title {
    display: none !important;
}

/* ---- General ---- */
.fcm-inventory-wrapper,
.fcm-homepage-section,
.fcm-detail-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--fcm-text);
    line-height: 1.5;
    box-sizing: border-box;
}

/* MOBILE: Weniger Padding */
@media (max-width: 768px) {
    .fcm-inventory-wrapper,
    .fcm-homepage-section,
    .fcm-detail-wrapper {
        padding: 10px;
    }
    
    .fcm-detail-title {
        font-size: 22px;
    }
    
    .fcm-detail-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .fcm-inventory-wrapper,
    .fcm-homepage-section,
    .fcm-detail-wrapper {
        padding: 8px;
    }
}

.fcm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--fcm-radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.fcm-btn-primary {
    background: var(--fcm-primary);
    color: var(--fcm-white);
}

.fcm-btn-primary:hover {
    background: var(--fcm-primary-hover);
    color: var(--fcm-white);
    text-decoration: none;
}

.fcm-btn-secondary {
    background: var(--fcm-white);
    color: var(--fcm-text);
    border: 1px solid var(--fcm-border);
}

.fcm-btn-secondary:hover {
    background: var(--fcm-bg);
    text-decoration: none;
}

.fcm-btn-block {
    display: flex;
    width: 100%;
}

.fcm-badge {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
}

/* ============================================
   FILTER BAR - Neu: Basisdaten offen, Erweitert ausklappbar
   ============================================ */
.fcm-filter-bar {
    background: var(--fcm-white);
    border-radius: var(--fcm-radius);
    box-shadow: var(--fcm-card-shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--fcm-border-light);
}

.fcm-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--fcm-primary);
    color: var(--fcm-white);
}

.fcm-filter-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fcm-filter-icon {
    display: flex;
    align-items: center;
    opacity: 0.85;
}

.fcm-filter-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--fcm-white);
}

.fcm-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--fcm-radius-sm);
    padding: 7px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--fcm-white);
    transition: background 0.2s;
}

.fcm-filter-toggle:hover {
    background: rgba(255,255,255,0.25);
}

.fcm-filter-content {
    padding: 24px;
}

@media (max-width: 768px) {
    .fcm-filter-content {
        padding: 15px;
    }
    
    .fcm-filter-header {
        padding: 14px 16px;
    }
    
    .fcm-filter-title {
        font-size: 15px;
    }
}

/* 3-Spalten Filter Grid */
.fcm-filter-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
    margin-bottom: 0;
}

.fcm-filter-group {
    display: flex;
    flex-direction: column;
}

.fcm-filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--fcm-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.fcm-filter-select,
.fcm-filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--fcm-border);
    border-radius: var(--fcm-radius-sm);
    font-size: 14px;
    color: var(--fcm-text);
    background: var(--fcm-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.fcm-filter-input {
    background-image: none;
    padding-right: 12px;
}

.fcm-filter-search-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.fcm-filter-select:focus,
.fcm-filter-input:focus {
    outline: none;
    border-color: var(--fcm-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* "Weitere Filtermöglichkeiten" Toggle */
.fcm-filter-extended-toggle-wrap {
    margin: 20px 0 0;
    text-align: center;
}

.fcm-filter-extended-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px dashed var(--fcm-border);
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--fcm-text-light);
    transition: all 0.2s ease;
}

.fcm-filter-extended-toggle:hover {
    border-color: var(--fcm-text);
    color: var(--fcm-text);
    background: var(--fcm-bg);
}

.fcm-filter-extended-toggle.fcm-ext-open {
    border-style: solid;
    border-color: var(--fcm-text);
    color: var(--fcm-text);
    background: var(--fcm-bg);
}

.fcm-ext-icon {
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
    background: var(--fcm-text);
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
}

.fcm-ext-icon svg {
    stroke: var(--fcm-white);
}

/* Erweiterter Filter Bereich */
.fcm-filter-extended {
    margin-top: 20px;
    border-top: 2px solid var(--fcm-border-light);
    padding-top: 20px;
}

.fcm-filter-extended-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fcm-filter-ext-section {
    /* intentionally empty - section wrapper */
}

.fcm-filter-ext-title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--fcm-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fcm-filter-ext-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fcm-border-light);
}

/* Filter actions */
.fcm-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--fcm-border-light);
}

.fcm-btn-search {
    padding: 13px 28px;
    font-size: 15px;
    flex: 1;
    gap: 8px;
}

/* Legacy: keep old row class for compatibility */
.fcm-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.fcm-filter-group.fcm-filter-full {
    grid-column: 1 / -1;
}

/* ---- Sort Bar ---- */
.fcm-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: var(--fcm-white);
    border-radius: var(--fcm-radius);
    box-shadow: var(--fcm-card-shadow);
}

.fcm-results-count {
    font-size: 15px;
    font-weight: 600;
    color: var(--fcm-secondary);
}

.fcm-sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fcm-sort-options label {
    font-size: 14px;
    color: var(--fcm-text-light);
}

#fcm-sort-select {
    padding: 6px 12px;
    border: 1px solid var(--fcm-border);
    border-radius: var(--fcm-radius-sm);
    font-size: 14px;
}

/* ============================================
   VEHICLE GRID
   ============================================ */
.fcm-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    min-height: 200px;
}

.fcm-homepage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* ---- Vehicle Card ---- */
.fcm-vehicle-card {
    background: var(--fcm-white);
    border-radius: var(--fcm-radius);
    box-shadow: var(--fcm-card-shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.fcm-vehicle-card:hover {
    box-shadow: var(--fcm-card-shadow-hover);
    transform: translateY(-2px);
}

.fcm-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fcm-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.fcm-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--fcm-bg);
}

.fcm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fcm-vehicle-card:hover .fcm-card-image img {
    transform: scale(1.05);
}

.fcm-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--fcm-text-muted);
    font-size: 14px;
}

.fcm-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--fcm-primary);
    color: var(--fcm-white);
    padding: 4px 10px;
    border-radius: var(--fcm-radius-sm);
    font-size: 12px;
    font-weight: 600;
}

/* EV Badge auf Fahrzeugkarte */
.fcm-card-badge.fcm-badge-ev {
    background: var(--fcm-ev-green);
    top: auto;
    bottom: 10px;
    left: 10px;
}

.fcm-card-body {
    padding: 16px;
}

.fcm-card-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fcm-secondary);
    line-height: 1.3;
}

.fcm-card-subtitle {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--fcm-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcm-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--fcm-secondary);
    margin-bottom: 12px;
}

.fcm-card-price-net {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--fcm-text-muted);
}

.fcm-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.fcm-spec {
    font-size: 12px;
    color: var(--fcm-text-light);
    background: var(--fcm-bg);
    padding: 3px 8px;
    border-radius: var(--fcm-radius-sm);
}

.fcm-spec-label {
    font-weight: 600;
    color: var(--fcm-text);
}

.fcm-card-location {
    font-size: 12px;
    color: var(--fcm-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Loading Spinner ---- */
.fcm-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--fcm-text-muted);
    gap: 12px;
}

.fcm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--fcm-border);
    border-top-color: var(--fcm-text);
    border-radius: 50%;
    animation: fcm-spin 0.8s linear infinite;
}

@keyframes fcm-spin {
    to { transform: rotate(360deg); }
}

/* ---- Pagination ---- */
.fcm-pagination {
    text-align: center;
    margin: 24px 0;
}

.fcm-pagination-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.fcm-pagination-info {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--fcm-text-muted);
}

.fcm-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--fcm-border);
    border-radius: var(--fcm-radius-sm);
    background: var(--fcm-white);
    color: var(--fcm-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.fcm-page-btn:hover {
    background: var(--fcm-text);
    color: var(--fcm-white);
    border-color: var(--fcm-text);
}

.fcm-page-btn.active {
    background: var(--fcm-text);
    color: var(--fcm-white);
    border-color: var(--fcm-text);
}

.fcm-page-dots {
    padding: 0 4px;
    color: var(--fcm-text-muted);
}

/* ============================================
   HOMEPAGE SECTION
   ============================================ */
.fcm-homepage-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--fcm-secondary);
    margin-bottom: 32px;
}

.fcm-homepage-cta {
    text-align: center;
    margin-top: 36px;
}

.fcm-homepage-cta .fcm-btn {
    font-size: 18px;
    padding: 14px 40px;
}

/* Homepage Slider */
.fcm-homepage-slider-wrap {
    position: relative;
    padding: 0 50px;
    margin-bottom: 8px;
}

.fcm-homepage-slider {
    overflow: hidden;
}

.fcm-homepage-slider .swiper-slide {
    height: auto;
    display: flex;
}

/* Karte im Slide volle Höhe */
.fcm-homepage-slider .fcm-vehicle-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.fcm-homepage-slider .fcm-card-body {
    flex: 1;
}

/* Navigation Arrows - Homepage Slider */
.fcm-hp-prev,
.fcm-hp-next {
    width: 40px !important;
    height: 40px !important;
    background: var(--fcm-white);
    border-radius: 50%;
    box-shadow: var(--fcm-card-shadow);
    color: var(--fcm-text) !important;
    top: 50% !important;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.fcm-hp-prev {
    left: 0 !important;
}

.fcm-hp-next {
    right: 0 !important;
}

.fcm-hp-prev:hover,
.fcm-hp-next:hover {
    background: var(--fcm-text);
    color: var(--fcm-white) !important;
    box-shadow: var(--fcm-card-shadow-hover);
}

.fcm-hp-prev::after,
.fcm-hp-next::after {
    font-size: 14px !important;
    font-weight: 700;
}

/* Pagination Dots */
.fcm-hp-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 20px;
    text-align: center;
}

.fcm-hp-pagination .swiper-pagination-bullet {
    background: var(--fcm-border);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: all 0.2s;
}

.fcm-hp-pagination .swiper-pagination-bullet-active {
    background: var(--fcm-text);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   DETAIL PAGE - Elegantes Layout
   ============================================ */
.fcm-detail-back {
    margin-bottom: 20px;
}

.fcm-detail-title {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 700;
    color: var(--fcm-secondary);
}

.fcm-detail-subtitle {
    margin: 0 0 24px;
    font-size: 16px;
    color: var(--fcm-text-light);
}

.fcm-detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-rows: auto 1fr;
    gap: 30px;
    align-items: start;
}

.fcm-detail-gallery {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    min-width: 0;
}

.fcm-detail-main {
    grid-column: 1;
    grid-row: 2;
    overflow: hidden;
    min-width: 0;
}

.fcm-detail-sidebar {
    grid-column: 2;
    grid-row: 1 / 3;
}

/* Gallery */
.fcm-gallery {
    margin-bottom: 30px;
    max-width: 100%;
    overflow: hidden;
}

.fcm-gallery-main {
    border-radius: var(--fcm-radius);
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    background: var(--fcm-bg);
    max-width: 100%;
}

.fcm-gallery-main .swiper-slide {
    background: var(--fcm-bg);
    height: 450px;
    /* Verhindert Höhen-Kollaps auf iOS/Android */
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcm-gallery-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* Verhindert Layout-Shift und erzwingt Sichtbarkeit */
    min-height: 1px;
    will-change: transform;
}

/* ============================================
   MOBILE GALLERY FIX - Bilder skalieren korrekt
   ============================================ */
@media (max-width: 768px) {
    .fcm-gallery-main {
        max-width: 100vw !important;
        width: 100% !important;
        margin-left: -10px !important;
        margin-right: -10px !important;
        border-radius: 0 !important;
    }
    
    .fcm-gallery-main .swiper-wrapper {
        width: 100% !important;
    }
    
    /* EXTREM WICHTIG: Inline-Styles vom Swiper überschreiben */
    /* Hohe Spezifität + !important */
    .fcm-detail-gallery .fcm-gallery-main .swiper-slide,
    .fcm-gallery-main .swiper-slide.swiper-slide-active,
    .fcm-gallery-main .swiper-slide.swiper-slide-next,
    .fcm-gallery-main .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        flex-shrink: 0 !important;
        height: auto !important;
        min-height: 250px !important;
        max-height: 400px !important;
        /* Verhindert Berechnung durch Swiper */
        flex-basis: 100% !important;
    }
    
    .fcm-gallery-main .swiper-slide img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 400px !important;
        object-fit: contain !important;
    }
}

@media (max-width: 480px) {
    .fcm-detail-gallery .fcm-gallery-main .swiper-slide,
    .fcm-gallery-main .swiper-slide.swiper-slide-active,
    .fcm-gallery-main .swiper-slide.swiper-slide-next,
    .fcm-gallery-main .swiper-slide {
        min-height: 200px !important;
        max-height: 300px !important;
    }
    
    .fcm-gallery-main .swiper-slide img {
        max-height: 300px !important;
    }
}

.fcm-gallery-main .swiper-button-prev,
.fcm-gallery-main .swiper-button-next {
    color: var(--fcm-white);
    background: rgba(0,0,0,0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.fcm-gallery-main .swiper-button-prev::after,
.fcm-gallery-main .swiper-button-next::after {
    font-size: 18px;
}

.fcm-gallery-thumbs {
    padding: 0 4px;
}

.fcm-gallery-thumbs .swiper-slide {
    width: 80px;
    height: 60px;
    border-radius: var(--fcm-radius-sm);
    overflow: hidden;
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.fcm-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--fcm-text);
}

.fcm-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Badges (Gebraucht/Neu + EV) */
.fcm-gallery-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.fcm-gallery-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--fcm-radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--fcm-white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.fcm-badge-condition {
    background: var(--fcm-primary);
}

.fcm-badge-ev {
    background: var(--fcm-ev-green) !important;
}

/* Exposé Print-Galerie (wird per JS vor Druck eingefügt) - Standard ausgeblendet */
.fcm-expose-gallery-container {
    display: none;
}

/* Key Specs - clean, minimal design ohne Symbole */
.fcm-detail-keyspecs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 30px;
    background: var(--fcm-border-light);
    border: 1px solid var(--fcm-border-light);
    border-radius: var(--fcm-radius);
    overflow: hidden;
}

.fcm-keyspec {
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    background: var(--fcm-white);
    text-align: center;
}

.fcm-keyspec-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fcm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.fcm-keyspec-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--fcm-text);
}

/* Detail sections */
.fcm-detail-section {
    background: var(--fcm-white);
    border-radius: var(--fcm-radius);
    box-shadow: var(--fcm-card-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.fcm-detail-section h2 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--fcm-secondary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--fcm-border-light);
}

/* Technische Daten - Grid statt Tabelle */
.fcm-tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.fcm-tech-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fcm-border-light);
}

.fcm-tech-item:nth-child(odd) {
    border-right: 1px solid var(--fcm-border-light);
}

.fcm-tech-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fcm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fcm-tech-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--fcm-text);
}

/* Fahrzeugzustand hervorgehoben */
.fcm-tech-item.fcm-tech-item-highlight .fcm-tech-value {
    font-weight: 800;
    color: #000000;
    font-size: 16px;
}

.fcm-tech-item.fcm-tech-item-highlight .fcm-tech-label {
    color: var(--fcm-text);
    font-weight: 700;
}

/* Technische Daten Table (WLTP) */
.fcm-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.fcm-detail-table tr {
    border-bottom: 1px solid var(--fcm-border-light);
}

.fcm-detail-table tr:last-child {
    border-bottom: none;
}

.fcm-detail-table td {
    padding: 10px 12px;
    font-size: 14px;
}

.fcm-detail-table td:first-child {
    font-weight: 600;
    color: var(--fcm-text-light);
    width: 40%;
}

.fcm-detail-table td:last-child {
    color: var(--fcm-text);
}

/* Features Grid */
.fcm-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.fcm-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
}

.fcm-feature-check {
    color: var(--fcm-success);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

/* Description */
.fcm-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--fcm-text);
}

/* ============================================
   WLTP Section - Verbrauchs- und Emissionsdaten
   ============================================ */
.fcm-wltp-section {
    border-left: 4px solid var(--fcm-secondary);
}

.fcm-wltp-table {
    margin-bottom: 24px;
}

.fcm-wltp-table td:first-child {
    vertical-align: top;
}

/* CO2-Klasse Grafik (A-G Skala) */
.fcm-co2-info {
    font-size: 13px;
    color: var(--fcm-text-muted);
    margin-bottom: 10px;
}

.fcm-co2-scale {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    padding-right: 50px;
}

.fcm-co2-bar {
    height: 24px;
    display: flex;
    align-items: center;
    border-radius: 0 4px 4px 0;
    position: relative;
    transition: all 0.2s;
}

.fcm-co2-letter {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding-left: 8px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.fcm-co2-bar.fcm-co2-active {
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.fcm-co2-indicator {
    position: absolute;
    right: -44px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--fcm-secondary);
    color: var(--fcm-white);
    font-weight: 700;
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.fcm-co2-indicator::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid var(--fcm-secondary);
}

/* WLTP Details */
.fcm-wltp-details {
    border-top: 1px solid var(--fcm-border-light);
    padding-top: 20px;
}

.fcm-wltp-note {
    display: block;
    font-size: 12px;
    color: var(--fcm-text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.fcm-wltp-sub {
    font-size: 12px;
    color: var(--fcm-text-light);
}

.fcm-wltp-disclaimer {
    margin-top: 16px;
    padding: 12px;
    background: var(--fcm-bg);
    border-radius: var(--fcm-radius-sm);
    border-left: 3px solid var(--fcm-border);
}

.fcm-wltp-disclaimer small {
    font-size: 12px;
    color: var(--fcm-text-muted);
    line-height: 1.5;
}

/* ============================================
   SIDEBAR
   ============================================ */
.fcm-detail-sidebar {
    position: sticky;
    top: 100px;
}

.fcm-detail-price-card {
    background: var(--fcm-white);
    border-radius: var(--fcm-radius);
    box-shadow: var(--fcm-card-shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.fcm-detail-price-main {
    font-size: 32px;
    font-weight: 700;
    color: var(--fcm-secondary);
    margin-bottom: 4px;
}

.fcm-detail-price-net {
    font-size: 14px;
    color: var(--fcm-text-muted);
    margin-bottom: 16px;
}

.fcm-detail-financing {
    font-size: 14px;
    color: var(--fcm-text-light);
    margin-bottom: 20px;
    padding: 8px 12px;
    background: var(--fcm-bg);
    border-radius: var(--fcm-radius-sm);
}

/* Sidebar Kurzuebersicht */
.fcm-sidebar-specs {
    border-top: 1px solid var(--fcm-border-light);
    padding-top: 16px;
    margin-bottom: 20px;
}

.fcm-sidebar-spec {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--fcm-border-light);
}

.fcm-sidebar-spec:last-child {
    border-bottom: none;
}

.fcm-sidebar-spec-label {
    font-size: 13px;
    color: var(--fcm-text-muted);
}

.fcm-sidebar-spec-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--fcm-text);
}

.fcm-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Jetzt Anfragen Button - Schwarz */
.fcm-btn-anfrage {
    background: var(--fcm-primary);
    color: var(--fcm-white);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--fcm-radius);
    transition: all 0.2s ease;
}

.fcm-btn-anfrage:hover {
    background: var(--fcm-primary-hover);
    color: var(--fcm-white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Jetzt Anrufen Button */
.fcm-btn-anrufen {
    background: var(--fcm-white);
    color: var(--fcm-text);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--fcm-radius);
    border: 2px solid var(--fcm-border);
    transition: all 0.2s ease;
}

.fcm-btn-anrufen:hover {
    background: var(--fcm-bg);
    color: var(--fcm-text);
    text-decoration: none;
    transform: translateY(-1px);
    border-color: var(--fcm-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fcm-btn-icon {
    font-size: 18px;
    line-height: 1;
}

.fcm-phone-display {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--fcm-text);
    padding: 4px 0 0;
    letter-spacing: 0.5px;
}

/* Dealer Info Card */
.fcm-detail-dealer {
    background: var(--fcm-white);
    border-radius: var(--fcm-radius);
    box-shadow: var(--fcm-card-shadow);
    padding: 20px;
}

.fcm-detail-dealer h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fcm-secondary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fcm-border-light);
}

.fcm-dealer-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--fcm-text);
    margin: 0 0 8px !important;
}

.fcm-detail-dealer p {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--fcm-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fcm-detail-dealer p:last-child {
    margin-bottom: 0;
}

.fcm-dealer-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.fcm-detail-dealer a {
    color: var(--fcm-text);
    text-decoration: none;
    font-weight: 600;
}

.fcm-detail-dealer a:hover {
    text-decoration: underline;
}

/* Not found */
.fcm-not-found {
    text-align: center;
    padding: 60px;
    background: var(--fcm-white);
    border-radius: var(--fcm-radius);
    color: var(--fcm-text-muted);
}

/* ============================================
   PREIS - Brutto/Netto Ausweisung (§ PAngV)
   ============================================ */
.fcm-detail-price-tax {
    font-size: 13px;
    color: var(--fcm-text-muted);
    margin-bottom: 4px;
    line-height: 1.4;
}

.fcm-detail-price-diff {
    font-size: 12px;
    color: var(--fcm-text-muted);
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #f9f9f9;
    border-left: 3px solid var(--fcm-border);
    border-radius: 0 var(--fcm-radius-sm) var(--fcm-radius-sm) 0;
    line-height: 1.5;
}

.fcm-card-price-tax {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--fcm-text-muted);
    margin-top: 2px;
}

/* ============================================
   LEASING BUTTON
   ============================================ */
.fcm-btn-leasing {
    background: var(--fcm-white);
    color: var(--fcm-text);
    font-size: 15px;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: var(--fcm-radius);
    border: 2px solid var(--fcm-text);
    transition: all 0.2s ease;
}

.fcm-btn-leasing:hover {
    background: var(--fcm-text);
    color: var(--fcm-white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.fcm-share-section {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--fcm-border-light);
}

.fcm-share-label {
    font-size: 12px;
    color: var(--fcm-text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fcm-share-buttons {
    display: flex;
    gap: 8px;
}

.fcm-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--fcm-radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    flex: 1;
}

.fcm-share-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    opacity: 0.9;
}

.fcm-share-btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.fcm-share-btn-facebook {
    background: #1877F2;
    color: #fff;
}

.fcm-share-btn-link {
    background: var(--fcm-bg);
    color: var(--fcm-text);
    border: 1px solid var(--fcm-border);
}

.fcm-share-btn-link.fcm-copied {
    background: var(--fcm-success);
    color: #fff;
    border-color: var(--fcm-success);
}

/* ============================================
   LEASING MODAL
   ============================================ */
.fcm-leasing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.fcm-leasing-modal {
    background: var(--fcm-white);
    border-radius: var(--fcm-radius);
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.fcm-leasing-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--fcm-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.fcm-leasing-close:hover {
    color: var(--fcm-text);
}

.fcm-leasing-modal h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: var(--fcm-secondary);
}

.fcm-leasing-vehicle-info {
    background: var(--fcm-bg);
    padding: 12px 16px;
    border-radius: var(--fcm-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    border-left: 3px solid var(--fcm-text);
}

/* ============================================
   INQUIRY FORM (Modal)
   ============================================ */
.fcm-inquiry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.fcm-inquiry-modal {
    background: var(--fcm-white);
    border-radius: var(--fcm-radius);
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.fcm-inquiry-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--fcm-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.fcm-inquiry-close:hover {
    color: var(--fcm-text);
}

.fcm-inquiry-modal h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: var(--fcm-secondary);
}

.fcm-inquiry-vehicle-info {
    background: var(--fcm-bg);
    padding: 12px 16px;
    border-radius: var(--fcm-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    border-left: 3px solid var(--fcm-text);
}

.fcm-inquiry-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--fcm-secondary);
}

/* Formular */
.fcm-inquiry-form .fcm-form-row {
    margin-bottom: 16px;
}

.fcm-inquiry-form .fcm-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fcm-inquiry-form .fcm-form-group {
    display: flex;
    flex-direction: column;
}

.fcm-inquiry-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fcm-text);
    margin-bottom: 6px;
}

.fcm-required {
    color: #e74c3c;
}

.fcm-inquiry-form input[type="text"],
.fcm-inquiry-form input[type="email"],
.fcm-inquiry-form input[type="tel"],
.fcm-inquiry-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--fcm-border);
    border-radius: var(--fcm-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--fcm-text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.fcm-inquiry-form input:focus,
.fcm-inquiry-form textarea:focus {
    outline: none;
    border-color: var(--fcm-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.fcm-inquiry-form textarea {
    resize: vertical;
}

.fcm-form-actions {
    margin-top: 20px;
}

/* Erfolgsmeldung / Fehlermeldung */
.fcm-form-message {
    margin-top: 16px;
}

.fcm-form-success {
    background: #d4edda;
    color: #155724;
    padding: 14px 18px;
    border-radius: var(--fcm-radius-sm);
    border: 1px solid #c3e6cb;
    font-size: 14px;
    font-weight: 600;
}

.fcm-form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 14px 18px;
    border-radius: var(--fcm-radius-sm);
    border: 1px solid #f5c6cb;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .fcm-detail-layout {
        grid-template-columns: 1fr 340px;
    }

    .fcm-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .fcm-detail-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .fcm-detail-gallery {
        grid-column: 1;
        grid-row: 1;
    }

    .fcm-detail-sidebar {
        grid-column: 1;
        grid-row: 2;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .fcm-detail-main {
        grid-column: 1;
        grid-row: 3;
    }

    .fcm-vehicle-grid,
    .fcm-homepage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fcm-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fcm-homepage-slider-wrap {
        padding: 0 44px;
    }

    .fcm-filter-grid3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fcm-share-buttons {
        flex-wrap: wrap;
    }

    .fcm-share-btn {
        font-size: 12px;
        padding: 7px 10px;
    }

    .fcm-leasing-modal {
        padding: 24px;
        max-width: 100%;
        margin: 10px;
    }

    .fcm-homepage-slider-wrap {
        padding: 0 36px;
    }

    .fcm-hp-prev,
    .fcm-hp-next {
        width: 32px !important;
        height: 32px !important;
    }

    .fcm-hp-prev::after,
    .fcm-hp-next::after {
        font-size: 12px !important;
    }

    .fcm-filter-grid3 {
        grid-template-columns: 1fr;
    }

    .fcm-filter-actions {
        flex-direction: column;
    }

    .fcm-btn-search {
        order: -1;
    }

    .fcm-filter-toggle {
        display: inline-flex;
    }

    .fcm-filter-content {
        display: none;
        padding: 15px;
    }

    .fcm-filter-content.fcm-filter-open {
        display: block;
    }

    .fcm-filter-extended-toggle-wrap {
        margin-top: 16px;
    }

    .fcm-filter-row {
        grid-template-columns: 1fr;
    }

    .fcm-vehicle-grid,
    .fcm-homepage-grid {
        grid-template-columns: 1fr;
    }

    .fcm-detail-keyspecs {
        grid-template-columns: repeat(2, 1fr);
    }

    .fcm-features-grid {
        grid-template-columns: 1fr;
    }

    .fcm-detail-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .fcm-detail-gallery {
        order: 1;
    }

    .fcm-detail-sidebar {
        order: 2;
        display: block;
        position: static;
        top: auto;
    }

    .fcm-detail-main {
        order: 3;
    }

    .fcm-sort-bar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .fcm-gallery-main .swiper-slide {
        height: auto;
        aspect-ratio: 4/3;
        min-height: unset;
    }
    
    .fcm-gallery-main .swiper-slide img {
        height: auto;
        aspect-ratio: 4/3;
        object-fit: contain;
    }

    .fcm-filter-actions {
        flex-direction: column;
    }

    .fcm-card-image {
        height: 180px;
    }

    .fcm-co2-scale {
        padding-right: 40px;
    }

    .fcm-co2-indicator {
        right: -38px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .fcm-wltp-table td,
    .fcm-wltp-details td {
        display: block;
        width: 100%;
        padding: 6px 12px;
    }

    .fcm-wltp-table td:first-child,
    .fcm-wltp-details td:first-child {
        width: 100%;
        padding-bottom: 2px;
    }

    .fcm-wltp-table tr,
    .fcm-wltp-details tr {
        display: block;
        padding: 8px 0;
    }

    .fcm-tech-grid {
        grid-template-columns: 1fr;
    }

    .fcm-tech-item:nth-child(odd) {
        border-right: none;
    }

    .fcm-inquiry-form .fcm-form-row-2 {
        grid-template-columns: 1fr;
    }

    .fcm-inquiry-modal {
        padding: 20px;
        max-width: 100%;
        margin: 10px;
    }
    
    /* Detailseite: Sidebar-Elemente volle Breite */
    .fcm-detail-price-card {
        padding: 20px;
    }
    
    .fcm-detail-price-main {
        font-size: 26px;
    }
    
    .fcm-detail-section {
        padding: 18px;
    }
    
    .fcm-detail-section h2 {
        font-size: 18px;
    }
    
    /* Ansprechpartner-Karte */
    .fcm-contact-card {
        padding: 15px;
    }
    
    .fcm-contact-inner {
        gap: 12px;
    }
    
    .fcm-contact-avatar {
        width: 50px;
        height: 50px;
    }
    
    .fcm-contact-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Galerie-Hauptbild: Smartphones */
    .fcm-gallery-main .swiper-slide {
        height: auto;
        aspect-ratio: 4/3;
        min-height: unset;
    }
    
    .fcm-gallery-main .swiper-slide img {
        height: auto;
        aspect-ratio: 4/3;
        object-fit: contain;
    }

    .fcm-detail-keyspecs {
        grid-template-columns: repeat(2, 1fr);
    }

    .fcm-detail-price-main {
        font-size: 24px;
    }

    .fcm-homepage-title {
        font-size: 22px;
    }

    .fcm-detail-title {
        font-size: 22px;
    }
}

/* ============================================
   HÄNDLER LOGO (Standort-Karte)
   ============================================ */
.fcm-dealer-logo {
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--fcm-border-light);
}

.fcm-dealer-logo img {
    max-width: 180px;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

/* ============================================
   EXPOSÉ – DRUCKEN BUTTON
   ============================================ */
.fcm-btn-expose {
    background: var(--fcm-white);
    color: var(--fcm-text);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: var(--fcm-radius);
    border: 1.5px solid var(--fcm-border);
    transition: all 0.2s ease;
    gap: 8px;
}

.fcm-btn-expose:hover {
    background: var(--fcm-text);
    color: var(--fcm-white);
    border-color: var(--fcm-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ANSPRECHPARTNER KARTE
   ============================================ */
.fcm-contact-card {
    background: var(--fcm-white);
    border-radius: var(--fcm-radius);
    box-shadow: var(--fcm-card-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.fcm-contact-card h3 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--fcm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fcm-border-light);
}

.fcm-contact-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fcm-contact-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--fcm-border-light);
    background: var(--fcm-bg);
}

.fcm-contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fcm-contact-info {
    flex: 1;
    min-width: 0;
}

.fcm-contact-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--fcm-text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcm-contact-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--fcm-text-light);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcm-contact-detail a {
    color: var(--fcm-text);
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcm-contact-detail a:hover {
    text-decoration: underline;
}

.fcm-contact-detail .fcm-dealer-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* ============================================
   @MEDIA PRINT – Professionelles Exposé Layout
   Mehrseitiges PDF mit strukturierten Seiten
   ============================================ */
@media print {

    /* ========================================
       GRUNDEINSTELLUNGEN & SEITEN
       ======================================== */
    @page {
        margin: 1.2cm 1.5cm;
        size: A4 portrait;
    }

    @page :first {
        margin: 0;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    body {
        font-size: 10pt;
        line-height: 1.4;
        color: #1a1a1a;
    }

    /* ========================================
       AUSBLENDEN: UI-Elemente nicht im Exposé
       ======================================== */
    .fcm-detail-back,
    .fcm-share-section,
    .fcm-gallery-thumbs,
    .swiper-button-prev,
    .swiper-button-next,
    .fcm-gallery-badges,
    .fcm-btn-anfrage,
    .fcm-btn-leasing,
    .fcm-btn-anrufen,
    .fcm-btn-expose,
    .fcm-phone-display,
    .fcm-leasing-overlay,
    .fcm-inquiry-overlay,
    #fcm-leasing-overlay,
    #fcm-inquiry-overlay,
    .fcm-filter-bar,
    .fcm-sort-bar,
    .fcm-pagination,
    .fcm-sidebar-specs,
    .fcm-detail-actions,
    .fcm-detail-keyspecs,
    .fcm-detail-main .fcm-detail-section:first-of-type,
    .fcm-contact-card {
        display: none !important;
    }

    /* ========================================
       SEITE 1: TITELSEITE
       ======================================== */
    .fcm-detail-wrapper {
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* Exposé Header mit Logo-Bereich */
    .fcm-detail-wrapper::before {
        content: '';
        display: block;
        height: 3cm;
        background: #1a1a1a;
        margin: -1.5cm -1.5cm 1cm -1.5cm;
        width: calc(100% + 3cm);
    }

    /* Fahrzeugtitel prominent */
    .fcm-detail-header {
        text-align: center;
        margin-bottom: 1.5cm;
        page-break-after: avoid;
    }

    .fcm-detail-title {
        font-size: 28pt !important;
        font-weight: 700;
        color: #1a1a1a !important;
        margin: 0 0 0.3cm 0 !important;
        text-align: center;
    }

    .fcm-detail-subtitle {
        font-size: 14pt !important;
        color: #555 !important;
        margin: 0 0 0.5cm 0 !important;
        text-align: center;
    }

    /* Hauptbild groß auf Titelseite */
    .fcm-gallery {
        margin: 0 -1.5cm 1cm -1.5cm !important;
        width: calc(100% + 3cm) !important;
        max-width: none !important;
    }

    .fcm-gallery-main {
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .fcm-gallery-main .swiper-wrapper {
        display: block !important;
        transform: none !important;
    }

    .fcm-gallery-main .swiper-slide {
        display: none !important;
        height: 12cm !important;
        page-break-inside: avoid;
    }

    /* Nur erstes Bild auf Titelseite */
    .fcm-gallery-main .swiper-slide:first-child {
        display: block !important;
    }

    .fcm-gallery-main .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }

    /* Preisbox auf Titelseite */
    .fcm-detail-layout {
        display: block !important;
    }

    .fcm-detail-sidebar {
        position: static !important;
        display: block !important;
        page-break-inside: avoid;
    }

    .fcm-detail-price-card {
        box-shadow: none !important;
        border: 2px solid #1a1a1a !important;
        border-radius: 0 !important;
        padding: 0.8cm !important;
        margin-bottom: 0.8cm !important;
        text-align: center;
    }

    .fcm-detail-price-main {
        font-size: 32pt !important;
        font-weight: 700;
        color: #1a1a1a !important;
        margin-bottom: 0.2cm !important;
    }

    .fcm-detail-price-net {
        font-size: 11pt !important;
        color: #555 !important;
    }

    .fcm-detail-financing {
        font-size: 10pt !important;
        background: #f5f5f5 !important;
        margin-top: 0.5cm !important;
    }

    /* Händler-Box auf Titelseite */
    .fcm-detail-dealer {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        border-radius: 0 !important;
        padding: 0.6cm !important;
        page-break-inside: avoid;
    }

    .fcm-detail-dealer h3 {
        font-size: 12pt !important;
        border-bottom: 1px solid #ddd !important;
        padding-bottom: 0.3cm !important;
        margin-bottom: 0.4cm !important;
    }

    .fcm-dealer-logo {
        text-align: center !important;
        margin-bottom: 0.5cm !important;
        padding-bottom: 0.5cm !important;
        border-bottom: 1px solid #eee !important;
    }

    .fcm-dealer-logo img {
        max-width: 180px !important;
        max-height: 60px !important;
    }

    .fcm-dealer-name {
        font-size: 12pt !important;
    }

    /* Seitenumbruch nach Titelseite */
    .fcm-detail-main {
        page-break-before: always;
    }

    /* ========================================
       SEITE 2: BILDERGALERIE (max. 8 Bilder)
       ======================================== */
    
    /* Überschrift für Bilderseite */
    /* Container für Print-Galerie (wird per JS eingefügt) */
    .fcm-expose-gallery-container {
        display: block !important;
        page-break-after: always;
        page-break-before: always;
    }

    .fcm-expose-gallery-title {
        display: block !important;
        font-size: 18pt;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 0.8cm 0;
        padding-bottom: 0.3cm;
        border-bottom: 2px solid #1a1a1a;
    }

    /* Grid für bis zu 8 Bilder (2x4 oder 4x2 je nach Anzahl) */
    .fcm-expose-gallery {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 5.5cm;
        gap: 0.4cm;
        page-break-inside: avoid;
    }

    .fcm-expose-gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        page-break-inside: avoid;
    }

    /* Seitenumbruch nach Galerie */
    .fcm-detail-section {
        page-break-before: always;
    }

    /* Erste Section ohne Umbruch (wird per JS behandelt) */
    .fcm-detail-section:first-of-type {
        page-break-before: auto;
    }

    /* ========================================
       SEITE 3: PREIS & TECHNISCHE DATEN
       ======================================== */
    
    .fcm-detail-section h2 {
        font-size: 16pt !important;
        font-weight: 700;
        color: #1a1a1a !important;
        border-bottom: 2px solid #1a1a1a !important;
        padding-bottom: 0.3cm !important;
        margin-bottom: 0.6cm !important;
        page-break-after: avoid;
    }

    /* Technische Daten Grid */
    .fcm-tech-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .fcm-tech-item {
        padding: 0.3cm 0.4cm !important;
        border-bottom: 1px solid #eee !important;
    }

    .fcm-tech-item:nth-child(odd) {
        border-right: 1px solid #eee !important;
    }

    .fcm-tech-label {
        font-size: 8pt !important;
        color: #888 !important;
        margin-bottom: 0.1cm !important;
    }

    .fcm-tech-value {
        font-size: 10pt !important;
        font-weight: 600;
    }

    /* ========================================
       SEITE 4: AUSSTATTUNG
       ======================================== */
    
    .fcm-features-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.2cm 0.4cm;
        page-break-inside: avoid;
    }

    .fcm-feature-item {
        font-size: 9pt;
        padding: 0.15cm 0;
        border-bottom: 1px dotted #ddd;
    }

    .fcm-feature-check {
        color: #27ae60 !important;
        font-weight: 700;
    }

    /* ========================================
       SEITE 5: WLTP & RECHTLICHES
       ======================================== */
    
    .fcm-wltp-section {
        border-left: 4px solid #1a1a1a !important;
        padding-left: 0.5cm !important;
    }

    .fcm-wltp-section h2 {
        border-bottom: none !important;
    }

    .fcm-detail-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 9pt;
    }

    .fcm-detail-table tr {
        border-bottom: 1px solid #eee;
    }

    .fcm-detail-table td {
        padding: 0.2cm 0.3cm;
    }

    .fcm-detail-table td:first-child {
        width: 45%;
        color: #555;
    }

    /* CO2 Skala */
    .fcm-co2-scale {
        padding-right: 0;
        margin: 0.5cm 0;
    }

    .fcm-co2-bar {
        height: 0.6cm;
    }

    .fcm-co2-letter {
        font-size: 9pt;
        padding-left: 0.2cm;
    }

    .fcm-co2-indicator {
        display: none;
    }

    /* WLTP Disclaimer */
    .fcm-wltp-disclaimer {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        padding: 0.4cm !important;
        margin-top: 0.5cm !important;
        font-size: 8pt !important;
        color: #666 !important;
        page-break-inside: avoid;
    }

    /* Beschreibung */
    .fcm-description {
        font-size: 10pt;
        line-height: 1.5;
        text-align: justify;
    }

    /* ========================================
       ALLGEMEINE DRUCKREGELN
       ======================================== */
    
    /* Vermeide Seitenumbrüche in wichtigen Elementen */
    .fcm-tech-item,
    .fcm-feature-item,
    .fcm-detail-table tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Footer auf jeder Seite */
    .fcm-detail-wrapper::after {
        content: 'Dieses Exposé wurde automatisch erstellt. Alle Angaben ohne Gewähr.';
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        font-size: 7pt;
        color: #999;
        text-align: center;
        padding: 0.3cm 0;
        border-top: 1px solid #eee;
    }
}
