/**
 * Single Vehicle Template CSS - Hybrid Layout
 * Desktop: 2-Spalten mit Sticky Kontakt
 * Mobile: Mobile.de App Style
 */

/* ==================== CSS VARIABLEN (Fallback) ==================== */

:root {
    --caradag-primary: #4eb25c;
    --caradag-secondary: #2c5aa0;
    --caradag-accent: #FF6600;
    --caradag-dark: #1A1A1A;
    --caradag-gray: #767676;
    --caradag-light-gray: #F5F5F5;
    --caradag-border: #E0E0E0;
    --caradag-text: #1a1a1a;
    --caradag-border-radius: 8px;
    --caradag-button-radius: 8px;
}

/* ==================== BASE ==================== */

.caradag-single-vehicle.hybrid-layout {
    background: var(--caradag-light-gray);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Retina Display Optimierung */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .caradag-single-vehicle.hybrid-layout {
        -webkit-font-smoothing: subpixel-antialiased;
    }
    
    .gallery-main-image,
    .gallery-thumb img,
    .vehicle-card-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==================== H1-TITEL GANZ OBEN ==================== */

.vehicle-page-title {
    color: var(--caradag-primary, #4eb25c);
    font-size: calc(24px + 1vw);
    font-weight: 700;
    text-align: center;
    margin: calc(20px + 1vw) auto calc(15px + 1vw);
    padding: 0 5%;
    max-width: 1400px;
    line-height: 1.3;
}

/* ==================== CONTAINER MIT MIN/MAX-WIDTH ==================== */
/* Nur für Container innerhalb des Fahrzeug-Templates, nicht für Theme-Menü */

.caradag-single-vehicle .container,
.caradag-single-vehicle.hybrid-layout .container,
.vehicle-layout .container,
.vehicle-content .container,
.vehicle-gallery .container,
.vehicle-details .container,
.vehicle-specs .container,
.gallery-main .container {
    min-width: 60%;
    max-width: 70%;
    margin: 0 auto;
    padding: 0 calc(10px + 1vw);
    box-sizing: border-box;
    overflow: visible; /* Wichtig für sticky positioning */
}

/* Desktop: Min 60%, Max 70% Breite */
@media (min-width: 769px) {
    .caradag-single-vehicle .container,
    .caradag-single-vehicle.hybrid-layout .container,
    .vehicle-layout .container,
    .vehicle-content .container,
    .vehicle-gallery .container,
    .vehicle-details .container,
    .vehicle-specs .container,
    .gallery-main .container {
        min-width: 60%;
        max-width: 70%;
        width: 65%; /* Standard-Wert zwischen min und max */
    }
}

/* Mobile: 100% für Content */
@media (max-width: 768px) {
    .vehicle-page-title {
        font-size: calc(20px + 1vw);
        padding: 0 3%;
        margin: calc(15px + 1vw) auto calc(10px + 1vw);
    }
    
    .caradag-single-vehicle .container,
    .caradag-single-vehicle.hybrid-layout .container,
    .vehicle-layout .container,
    .vehicle-content .container,
    .vehicle-gallery .container,
    .vehicle-details .container,
    .vehicle-specs .container,
    .gallery-main .container {
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .vehicle-gallery {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Alle Content-Blöcke auf 95% setzen (außer Galerie) */
    .section-block,
    .quick-facts-section,
    .mobile-price-section,
    .vehicle-title-section,
    .price-section,
    .technical-data-section,
    .features-section,
    .description-section,
    .contact-section {
        width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Preis-Buttons und andere Elemente innerhalb der Blöcke */
    .contact-buttons-mobile {
        width: 100% !important;
    }
    
    /* Stelle sicher, dass interne Paddings bleiben */
    .mobile-price-section {
        padding: 15px !important;
    }
    
    .section-block {
        padding: 20px 15px !important;
    }
}

/* Mobile Landscape (Querformat) */
@media (max-width: 926px) and (orientation: landscape) {
    .gallery-main-image {
        max-height: 50vh !important;
    }
    
    .mobile-header {
        padding: 10px 15px;
    }
    
    .quick-facts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }
    
    .section-block {
        padding: 15px 10px !important;
    }
    
    .mobile-price-section {
        padding: 10px !important;
    }
}

/* ==================== VISIBILITY HELPERS ==================== */

.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block !important;
}

@media (min-width: 769px) {
    .desktop-only {
        display: block !important;
    }
    .mobile-only {
        display: none !important;
    }
}

/* ==================== MOBILE HEADER ==================== */

.mobile-header {
    background: var(--caradag-dark);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ==================== MOBILE STICKY HEADER (on scroll) ==================== */

.mobile-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-sticky-header.visible {
    transform: translateY(0);
}

.sticky-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 15px;
}

.sticky-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--caradag-text);
    flex: 1;
}

.sticky-buttons {
    display: flex;
    gap: 10px;
}

.sticky-btn {
    width: calc(40px + 0.3vw);
    height: calc(40px + 0.3vw);
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--caradag-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.sticky-btn svg {
    width: calc(18px + 0.2vw);
    height: calc(18px + 0.2vw);
    min-width: 18px;
    min-height: 18px;
}

.sticky-btn:hover {
    transform: scale(1.1);
}

.sticky-btn-call {
    background: var(--caradag-primary);
}

.sticky-btn-message {
    background: var(--caradag-primary);
}

@media (min-width: 769px) {
    .mobile-sticky-header {
        display: none !important;
    }
}

.back-button {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.mobile-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== ZURÜCK-BUTTON (DESKTOP & MOBILE) ==================== */

.vehicle-back-header {
    background: transparent;
    padding: calc(15px + 0.5vw) 0;
    margin-bottom: calc(10px + 0.5vw);
}

.vehicle-back-header .container {
    max-width: 100%;
    padding: 0 calc(20px + 1vw);
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--caradag-primary, #4eb25c);
    text-decoration: none;
    font-size: calc(16px + 0.2vw);
    font-weight: 600;
    padding: calc(8px + 0.2vw) calc(15px + 0.3vw);
    border-radius: calc(6px + 0.1vw);
    transition: all 0.3s;
    background: rgba(78, 178, 92, 0.1);
}

.back-button:hover {
    background: rgba(78, 178, 92, 0.2);
    color: #3d9249;
    transform: translateX(-3px);
}

/* ==================== LAYOUT ==================== */

.vehicle-main-content {
    padding: 20px 0;
    overflow: visible; /* Wichtig für sticky positioning */
}

.vehicle-layout {
    display: block;
    overflow: visible; /* Wichtig für sticky positioning */
}

@media (min-width: 769px) {
    .vehicle-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 30px;
        align-items: start;
    }
}

/* ==================== LINKE SPALTE ==================== */

.vehicle-left-column {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Titel (Desktop) */
.vehicle-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    padding: 25px 30px;
    color: #1a1a1a;
    line-height: 1.3;
}

/* ==================== BILDERGALERIE ==================== */

.vehicle-gallery {
    padding: 0;
    margin-bottom: 20px;
}

.gallery-main {
    position: relative;
    background: #000;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    display: block;
    max-height: 100vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
}

/* Desktop: Noch größeres Hauptbild */
@media (min-width: 769px) {
    .gallery-main {
        min-height: 100%;
    }
    .gallery-main-image {
        max-height: 100%;
    }
}

/* ALLE Galerie-Elemente in Übersicht AUSBLENDEN - NUR IM VOLLBILDMODUS SICHTBAR */
.gallery-main .gallery-close,
.gallery-main .gallery-counter,
.gallery-main .gallery-nav,
.gallery-main .gallery-all-images,
.gallery-main .gallery-mobile-nav,
.gallery-main .gallery-prev,
.gallery-main .gallery-next,
.gallery-main .gallery-prev-mobile,
.gallery-main .gallery-next-mobile,
.gallery-main .gallery-counter-mobile {
    display: none !important; /* KOMPLETT AUSBLENDEN in Übersicht */
}

.gallery-all-images.desktop-only svg {
    width: 20px;
    height: 20px;
}

/* Mobile: Navigation unten mittig - NUR IM VOLLBILDMODUS */
.gallery-mobile-nav.mobile-only {
    display: none !important; /* In Übersicht ausblenden */
}

.gallery-nav.mobile-only {
    display: none !important; /* In Übersicht ausblenden */
}

.gallery-counter-mobile {
    display: none !important; /* In Übersicht ausblenden */
}

/* Baureihe unter Thumbnails */
.vehicle-model-range {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 0 calc(15px + 0.5vw);
}

.vehicle-model-range .model-range-value {
    font-size: calc(16px + 0.5vw);
    font-weight: 700;
    margin: 0 0 calc(15px + 0.5vw);
    padding: 0;
    color: #1a1a1a;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.8;
    display: block;
    white-space: normal;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 0;
    overflow-x: auto;
    background: transparent;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-thumb.active {
    border-color: #2c5aa0;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==================== MOBILE PRICE SECTION ==================== */

.mobile-price-section {
    padding: 20px;
    border-bottom: 8px solid #f8f8f8;
}

.mobile-price-section .price-main {
    font-size: calc(24px + 1.2vw);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: calc(6px + 0.2vw);
}

.price-badge {
    display: inline-block;
    background: #00aa00;
    color: white;
    padding: calc(3px + 0.1vw) calc(10px + 0.3vw);
    border-radius: calc(3px + 0.1vw);
    font-size: calc(12px + 0.3vw);
    font-weight: 600;
    margin-bottom: calc(6px + 0.2vw);
}

.price-details {
    font-size: calc(12px + 0.3vw);
    color: #666;
    margin-bottom: calc(12px + 0.3vw);
}

.contact-buttons-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.btn-mobile {
    padding: calc(12px + 0.2vw) calc(16px + 0.3vw);
    border-radius: calc(6px + 0.15vw);
    font-size: calc(14px + 0.15vw);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(6px + 0.2vw);
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-mobile svg {
    width: calc(16px + 0.2vw);
    height: calc(16px + 0.2vw);
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
}

.btn-call,
.btn-message {
    background: var(--caradag-primary, #4eb25c);
    color: white;
}

.btn-call:hover,
.btn-message:hover {
    background: #3d9249;
    opacity: 0.9;
}

/* ==================== QUICK FACTS (PROPORTIONAL SKALIEREND) ==================== */

.quick-facts-section {
    padding: calc(20px + 0.5vw) calc(15px + 0.5vw);
    border-bottom: 8px solid #f8f8f8;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .quick-facts-section {
        padding: calc(20px + 1vw) calc(20px + 1vw);
        border-bottom: 1px solid #e0e0e0;
        /* Proportional mit Container */
        max-width: 100%;
    }
}

.section-title {
    font-size: calc(18px + 0.4vw);
    font-weight: 700;
    margin: 0 0 calc(15px + 0.5vw);
    color: #1a1a1a;
    text-align: left;
}

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: calc(10px + 0.3vw);
    width: 100%;
    box-sizing: border-box;
}

/* Desktop: 2 Spalten (2x3 Layout) - SCHMALER & SICHERER */
@media (min-width: 769px) {
    .quick-facts-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 Spalten statt 3 */
        gap: calc(12px + 0.4vw);
    }
}

/* Nur bei sehr breiten Bildschirmen: 3 Spalten */
@media (min-width: 1200px) {
    .quick-facts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: calc(15px + 0.5vw);
    }
}

.quick-fact {
    display: flex;
    gap: calc(8px + 0.2vw);
    padding: calc(12px + 0.3vw) calc(10px + 0.2vw);
    background: #f8f8f8;
    border-radius: 8px;
    min-width: 0; /* Verhindert Overflow */
    box-sizing: border-box;
    align-items: flex-start;
    overflow: hidden; /* Verhindert Text-Overflow */
}

.fact-icon {
    color: var(--caradag-primary, #4eb25c);
    width: calc(20px + 0.5vw);
    height: calc(20px + 0.5vw);
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    margin-top: 2px; /* Ausrichtung mit Label */
}

.fact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: calc(4px + 0.1vw);
    min-width: 0; /* Wichtig für Text-Overflow */
    overflow: hidden;
}

.fact-label {
    font-size: calc(11px + 0.1vw);
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.fact-value {
    font-size: calc(14px + 0.2vw);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* ==================== SECTION BLOCKS ==================== */

.section-block {
    padding: 25px 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: var(--caradag-border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

@media (min-width: 769px) {
    .section-block {
        padding: 30px;
        margin-bottom: 25px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
}

/* ==================== TECHNISCHE DATEN ==================== */

.technical-data-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-size: calc(14px + 0.4vw);
    color: #666;
    flex: 1;
}

.data-value {
    font-size: calc(15px + 0.4vw);
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
}

.data-row-highlight {
    background: #e8f4e8;
    margin: 0 -20px;
    padding: 15px 20px;
    border-radius: 6px;
}

@media (min-width: 769px) {
    .data-row-highlight {
        margin: 0 -30px;
        padding: 15px 30px;
    }
}

.data-row-highlight .data-value {
    color: #00aa00;
}

/* ==================== AUSSTATTUNG (GENAU WIE BESCHREIBUNG) ==================== */

.features-list {
    width: 100%;
}

.features-visible,
.features-hidden {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
    width: 100%;
    align-items: start;
}

.features-visible {
    margin-bottom: 0;
}

.features-hidden {
    margin-top: 0;
}

.features-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

/* Mobile: 1 Spalte */
@media (max-width: 768px) {
    .features-visible,
    .features-hidden {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: calc(6px + 0.2vw);
    margin-bottom: calc(6px + 0.2vw);
    font-size: calc(13px + 0.3vw);
    line-height: 1.5;
    color: #333;
}

.feature-check {
    color: #00aa00;
    font-size: calc(16px + 0.3vw);
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1.5;
}

.feature-name {
    font-size: calc(13px + 0.3vw);
    color: #333;
    flex: 1;
    line-height: 1.5;
}

/* ==================== BESCHREIBUNG ==================== */

.vehicle-description {
    font-size: calc(14px + 0.2vw);
    line-height: 1.7;
    color: #333;
}

.vehicle-description p {
    margin-bottom: calc(12px + 0.3vw);
}

/* ==================== MEHR ANZEIGEN BUTTON ==================== */

/* Versteckte Elemente - jQuery slideUp/slideDown */
.features-hidden,
.description-hidden {
    display: none;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--caradag-primary, #4eb25c);
    font-size: calc(14px + 0.3vw);
    font-weight: 700;
    cursor: pointer;
    padding: calc(8px + 0.2vw) 0;
    text-decoration: none;
    display: inline-block;
    margin-top: calc(8px + 0.2vw);
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    text-decoration: underline;
    color: #3d9249;
}

/* ==================== RECHTE SPALTE (DESKTOP) ==================== */

.vehicle-right-column {
    position: relative;
}

.contact-box.sticky {
    position: -webkit-sticky; /* Safari Support */
    position: sticky;
    top: calc(15px + 0.5vw);
    background: white;
    border-radius: var(--caradag-border-radius);
    padding: calc(15px + 0.5vw);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    align-self: start; /* Wichtig für Grid-Alignment! */
    max-height: calc(100vh - 40px); /* Verhindert Overflow */
    overflow-y: auto; /* Scrollbar falls zu lang */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 10; /* Sicherstellen dass es über anderen Elementen liegt */
    will-change: transform; /* Optimierung für sticky */
}

/* Desktop Grid Layout mit Sticky Sidebar - RESPONSIVE & SCHMALER */
@media (min-width: 769px) {
    .vehicle-layout {
        display: grid;
        grid-template-columns: 1fr calc(280px + 2vw); /* Schmaler & proportional */
        gap: calc(20px + 1vw);
        align-items: start;
        position: relative; /* Wichtig für sticky positioning */
        overflow: visible; /* Wichtig für sticky positioning */
    }
    
    .vehicle-left-column {
        min-width: 0; /* Wichtig für Grid-Overflow */
        max-width: 100%;
        overflow: visible; /* Wichtig für sticky positioning */
    }
    
    .vehicle-right-column {
        position: relative;
        max-width: 100%;
        min-width: 0;
        height: fit-content; /* Wichtig für sticky */
        overflow: visible; /* Wichtig für sticky positioning */
    }
    
    /* Kontakt-Box schmaler & responsive */
    .contact-box.sticky {
        width: 100%;
        max-width: 100%;
        padding: calc(15px + 0.5vw);
        box-sizing: border-box;
        position: sticky;
        top: calc(15px + 0.5vw);
    }
}

/* Mittlere Bildschirmgrößen: Noch schmalere rechte Spalte */
@media (min-width: 769px) and (max-width: 1024px) {
    .vehicle-layout {
        grid-template-columns: 1fr calc(260px + 1.5vw);
        gap: calc(15px + 0.8vw);
    }
}

/* Kleine Desktop-Bildschirme: Rechte Spalte noch schmaler */
@media (min-width: 769px) and (max-width: 900px) {
    .vehicle-layout {
        grid-template-columns: 1fr calc(240px + 1vw);
        gap: calc(12px + 0.5vw);
    }
}

/* Preis-Box (Desktop) */
.price-box {
    text-align: center;
    padding: 20px;
    background: var(--caradag-gradient, var(--caradag-primary));
    border-radius: var(--caradag-border-radius);
    margin-bottom: 25px;
}

.price-amount {
    font-size: calc(24px + 1.2vw);
    font-weight: 700;
    color: white;
    margin-bottom: calc(4px + 0.1vw);
}

.price-label {
    font-size: calc(12px + 0.3vw);
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: calc(0.5px + 0.1vw);
}

.price-details-desktop {
    font-size: calc(11px + 0.3vw);
    color: rgba(255,255,255,0.85);
    margin-top: calc(6px + 0.2vw);
}

/* Händler-Info */
.dealer-info {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.dealer-info h3 {
    font-size: calc(16px + 0.4vw);
    font-weight: 700;
    margin: 0 0 calc(8px + 0.2vw);
    color: #333;
}

.dealer-address,
.dealer-phone {
    font-size: calc(13px + 0.2vw);
    color: #666;
    margin: calc(6px + 0.2vw) 0;
    line-height: 1.6;
}

.dealer-phone a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
}

.dealer-phone a:hover {
    text-decoration: underline;
}

/* Kontakt-Buttons (Desktop) - RESPONSIVE */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: calc(10px + 0.2vw);
    margin-bottom: calc(15px + 0.3vw);
    width: 100%;
}

.contact-buttons .btn,
.contact-buttons .contact-button {
    padding: calc(12px + 0.3vw) calc(12px + 0.3vw);
    font-size: calc(13px + 0.1vw);
    box-sizing: border-box;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

/* E-Mail und Anrufen nebeneinander */
.contact-buttons-top {
    display: flex;
    gap: 10px;
    width: 100%;
}

.contact-buttons .btn-email,
.contact-buttons .btn-call {
    flex: 1;
    width: auto;
}

/* WhatsApp darunter, volle Breite */
.contact-buttons .btn-whatsapp {
    width: 100%;
}

/* Mobile Ansicht: E-Mail und Anrufen nebeneinander, WhatsApp darunter */
@media (max-width: 768px) {
    .contact-buttons-top {
        display: flex;
        gap: 10px;
        width: 100%;
    }
    
    .contact-buttons .btn-email,
    .contact-buttons .btn-call {
        flex: 1;
        width: auto;
    }
    
    .contact-buttons .btn-whatsapp {
        width: 100%;
    }
}

.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none !important;
    display: block;
}

.btn-primary,
.btn-secondary {
    background: var(--caradag-primary, #4eb25c);
    color: white;
    border: none;
    border-radius: var(--caradag-button-radius);
}

.btn-primary:hover,
.btn-secondary:hover {
    background: #3d9249;
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline {
    background: white;
    color: var(--caradag-accent);
    border: 2px solid var(--caradag-accent);
    border-radius: var(--caradag-button-radius);
}

.btn-outline:hover {
    background: var(--caradag-accent);
    color: white;
}

/* WhatsApp Button - Grün */
.btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
    border: 2px solid #25D366 !important;
}

.btn-whatsapp:hover {
    background: #20BA5A !important;
    border-color: #20BA5A !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-block {
    width: 100%;
}

/* Fahrzeug-ID */
.vehicle-id {
    text-align: center;
    padding-top: calc(12px + 0.3vw);
    border-top: 1px solid var(--caradag-border);
}

.vehicle-id small {
    color: #999;
    font-size: calc(11px + 0.2vw);
}

/* ==================== LIGHTBOX ==================== */

.caradag-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 1400px;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px; /* Rechts oben */
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    font-size: 24px;
    font-weight: 600;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    padding: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px; /* Rechts neben dem Bild */
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 100px;
    overflow: hidden;
    position: relative;
    touch-action: none;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: lightboxZoomIn 0.3s ease-out;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    transition: transform 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px; /* Links oben */
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    z-index: 10;
}

.lightbox-current {
    color: #2c5aa0;
    font-weight: 700;
    font-size: 18px;
}

/* Lightbox Thumbnails (unten) */
.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    max-width: 90%;
    overflow-x: auto;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 10;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

.lightbox-thumb:hover {
    opacity: 1;
    border-color: rgba(255,255,255,0.5);
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--caradag-primary, #4eb25c);
    border-width: 3px;
}

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

body.lightbox-open,
body.modal-open {
    overflow: hidden;
}

/* ==================== MODAL (KONTAKTFORMULAR) ==================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44,90,160,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .container {
        padding: 0;
    }
    
    .vehicle-left-column {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
    
    .contact-buttons-mobile {
        grid-template-columns: 1fr 1fr !important; /* Immer 2-spaltig auch auf Mobile */
        gap: calc(10px + 0.5vw) !important;
    }
    
    .lightbox-image-container {
        padding: 0 20px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 80px !important; /* Unten positioniert */
        top: auto !important;
        transform: none !important;
    }
    
    .lightbox-prev {
        left: 10px !important;
        right: auto !important;
    }
    
    .lightbox-next {
        right: 10px !important; /* Ganz rechts am Bildschirmrand */
        left: auto !important;
    }
    
    .lightbox-counter {
        display: none !important; /* In mobiler Ansicht ausblenden */
    }
    
    .lightbox-thumbnails {
        bottom: 10px !important;
        max-width: 95% !important;
    }
}

/* ==================== FORMULAR-MELDUNGEN ==================== */

.form-message {
    padding: calc(12px + 0.5vw);
    border-radius: var(--caradag-border-radius);
    font-size: calc(14px + 0.2vw);
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
