/* Fahrzeug-Detailseite – Gleicher Style wie Hauptseite */

/* View Transitions CSS Import */
@import url("view-transitions.css");

:root {
    --white:      #ffffff;
    --off-white:  #f5f7fa;
    --blue-tint:  #eaf2fc;
    --border:     #dce2ea;
    --text:       #0d1b2a;
    --text-mid:   #445566;
    --text-muted: #8899aa;
    --blue:       #1b3f6e;
    --blue-mid:   #2257a0;
    --blue-light: #d6e8f8;
    --navy-dark:  #122d50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--white);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav-accent {
    height: 3px;
    background: var(--blue);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 300;
}

nav {
    position: fixed;
    top: 3px;
    left: 0;
    width: 100%;
    z-index: 200;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3.5rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-decoration: none;
}

.nav-logo-main {
    font-size: 1.0rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
}

.nav-logo-sub {
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 0.45rem 0.85rem;
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-active a {
    color: var(--blue);
    font-weight: 600;
}

.nav-contact-btn {
    padding: 0.55rem 1.4rem !important;
    background: var(--blue);
    color: var(--white) !important;
    transition: background 0.2s !important;
}

.nav-contact-btn:hover {
    background: var(--blue-mid) !important;
}

/* Main Content */
main.fahrzeug-detail {
    margin-top: 90px;
    padding: 3.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.fahrzeug-header {
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.fahrzeug-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.fahrzeug-header .variante {
    font-size: 1.1rem;
    color: var(--text-mid);
}

.fahrzeug-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Galerie */
.fahrzeug-galerie {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
}

.galerie-main {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 3px;
    overflow: hidden;
}

.galerie-main {
    position: relative;
}

.galerie-main img {
    width: 100%;
    height: auto;
    display: block;
}

.galerie-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
}

.galerie-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.6;
}

.galerie-thumbs img:hover {
    opacity: 0.8;
}

.galerie-thumbs img.active {
    border-color: var(--blue);
    opacity: 1;
}

/* Pfeil-Navigation */
.galerie-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 63, 110, 0.75);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 3px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.galerie-nav-btn:hover {
    background: rgba(27, 63, 110, 0.95);
    opacity: 1;
}

.galerie-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.galerie-nav-prev {
    left: 12px;
}

.galerie-nav-next {
    right: 12px;
}

/* Fahrzeuginformationen */
.fahrzeug-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fahrzeug-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.tech-daten {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

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

.tech-label {
    font-weight: 600;
    color: var(--blue);
    font-size: 0.9rem;
}

.tech-value {
    color: var(--text-mid);
}

.beschreibung {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-mid);
}

.preis-block {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
    padding: 2rem;
    background: var(--off-white);
    border-radius: 4px;
    text-align: center;
    margin: 2rem 0;
}

.anfrage-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--blue);
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--blue);
    transition: background 0.2s, color 0.2s;
    border-radius: 3px;
    width: 100%;
    text-align: center;
}

.anfrage-btn:hover {
    background: var(--blue-mid);
    border-color: var(--blue-mid);
}

/* Scroll Reveal */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--navy-dark);
    padding: 4.5rem 3.5rem 2.75rem;
    margin-top: 5rem;
}

.footer-top {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    margin-bottom: 2rem;
}

.footer-brand {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    max-width: 260px;
}

.footer-col-title {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1.25rem;
}

.footer-lines {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-line {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.footer-line strong {
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.footer-hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
}

.footer-hours span:nth-child(odd) {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

.footer-hours span:nth-child(even) {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copy {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 820px) {
    main.fahrzeug-detail {
        padding: 1.5rem;
        margin-top: 80px;
    }

    .fahrzeug-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fahrzeug-header h1 {
        font-size: 1.8rem;
    }

    nav {
        padding: 0 1.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ── LIGHTBOX ──────────────────────────────────────────── */

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0,0,0,0.93);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
#lightbox.active { display: flex; }

.lb-img {
    max-width: 90vw;
    max-height: 86vh;
    object-fit: contain;
    cursor: default;
    box-shadow: 0 8px 60px rgba(0,0,0,.6);
    border-radius: 2px;
    user-select: none;
    -webkit-user-drag: none;
}

.lb-close {
    position: absolute;
    top: 1rem; right: 1.25rem;
    background: transparent; border: none;
    color: rgba(255,255,255,.75); font-size: 1.8rem;
    cursor: pointer; line-height: 1; padding: 0.25rem 0.5rem;
    transition: color .15s;
}
.lb-close:hover { color: #fff; }

.lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12); border: none;
    color: #fff; font-size: 1.6rem;
    width: 48px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 3px;
    transition: background .15s;
    user-select: none;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.24); }

.lb-counter {
    position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.55); font-size: .78rem;
    font-family: Inter,-apple-system,sans-serif; letter-spacing: .08em;
}

/* ── KONTAKTFORMULAR AUF DETAILSEITE ───────────────────── */

.detail-contact-section {
    margin-top: 4rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--border);
}

.detail-contact-inner {
    max-width: 680px;
}

.detail-contact-section h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .45rem;
}

.detail-contact-sub {
    font-size: .88rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.detail-form {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.detail-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}

.detail-form input,
.detail-form textarea {
    width: 100%;
    padding: .65rem .9rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.detail-form input:focus,
.detail-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27,63,110,.08);
}

.detail-form input::placeholder,
.detail-form textarea::placeholder { color: var(--text-muted); }

.detail-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.55;
}

.detail-form-footer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.detail-form-submit {
    padding: .7rem 1.9rem;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}
.detail-form-submit:hover   { background: var(--blue-mid); }
.detail-form-submit:disabled{ opacity: .6; cursor: not-allowed; }

.detail-form-note {
    font-size: .78rem;
    color: var(--text-muted);
}

.detail-form-success {
    display: none;
    padding: 1.25rem 1.5rem;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 3px;
    color: #065f46;
    font-size: .9rem;
    line-height: 1.6;
}

@media(max-width:600px) {
    .detail-form-row-2 { grid-template-columns: 1fr; }
}
