/* ============================================
   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;
}

/* ---- 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;
}

/* Plugin-Template Container */
.fcm-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 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;
}

.single-fcm_vehicle .container,
.single-fcm_vehicle #main-content .container {
    width: 100% !important;
    max-width: 1400px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.single-fcm_vehicle .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: 1400px;
    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;
}

.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;
}

/* 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 380px;
    gap: 30px;
    align-items: start;
}

.fcm-detail-main {
    overflow: hidden;
    min-width: 0;
}

/* 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;
}

.fcm-gallery-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.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;
}

/* 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;
    }

    .fcm-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .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;
    }

    .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: 16px;
    }

    .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-sidebar {
        grid-template-columns: 1fr;
    }

    .fcm-sort-bar {
        flex-direction: column;
        gap: 10px;
    }

    .fcm-gallery-main .swiper-slide {
        height: 280px;
    }

    .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: 24px;
    }
}

@media (max-width: 480px) {
    .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;
    }
}
