/* =========================================================
   Fahrzeug-Verkaufsseite – Frontend Styles
   ========================================================= */

:root {
    --bg:          #0e1116;
    --bg-light:    #f6f7f9;
    --bg-alt:      #eef0f4;
    --card:        #ffffff;
    --text:        #1b1f27;
    --text-dim:    #5b6472;
    --text-inv:    #f5f7fa;
    --accent:      #ff5a1f;
    --accent-dark: #e04a12;
    --green:       #1fa45a;
    --radius:      14px;
    --shadow:      0 10px 30px rgba(15, 20, 30, .10);
    --shadow-lg:   0 20px 60px rgba(15, 20, 30, .22);
    --maxw:        1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px;
    font-weight: 700; font-size: 1rem; text-decoration: none;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-accent {
    background: var(--accent); color: #fff;
    box-shadow: 0 8px 24px rgba(255, 90, 31, .35);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
    background: rgba(255,255,255,.08); color: #fff;
    border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-sm { padding: 9px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: rgba(14, 17, 22, .55);
    backdrop-filter: blur(12px);
    transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
    background: rgba(14, 17, 22, .92);
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.header-inner {
    display: flex; align-items: center; gap: 24px;
    height: 64px;
}
.brand {
    color: #fff; font-weight: 800; text-decoration: none; font-size: 1.02rem;
    display: flex; align-items: center; gap: 8px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.header-nav { display: flex; gap: 22px; margin-left: auto; }
.header-nav a {
    color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.header-nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: center;
    color: var(--text-inv);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #161b24 0%, #0e1116 60%, #1a1410 100%);
    background-size: cover; background-position: center;
    transform: scale(1.04);
    animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1.0); } }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.35) 45%, rgba(10,12,16,.88) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 22px 90px; }
.badge-pill {
    display: inline-block; padding: 7px 18px; border-radius: 999px;
    background: var(--accent); color: #fff;
    font-size: .8rem; font-weight: 800; letter-spacing: .12em;
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,31,.55); }
    55%      { box-shadow: 0 0 0 14px rgba(255,90,31,0); }
}
.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 4rem);
    font-weight: 900; line-height: 1.08; margin: 18px 0 10px;
    text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.85); max-width: 640px;
}
.hero-price-box { margin: 28px 0 6px; }
.hero-price {
    font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900;
    color: var(--accent);
    text-shadow: 0 4px 28px rgba(255,90,31,.35);
}
.hero-price-note { color: rgba(255,255,255,.7); font-size: .95rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-usps {
    list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
    margin-top: 30px; font-size: .95rem; color: rgba(255,255,255,.88);
}
.hero-usps li { font-weight: 600; }
.hero-scroll {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    z-index: 2; color: rgba(255,255,255,.7); font-size: 1.6rem; text-decoration: none;
    animation: bounce 1.8s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 900; margin-bottom: 38px; letter-spacing: -.01em;
}
.section-title .dot { color: var(--accent); }

/* ---------- Galerie ---------- */
.gallery-stage {
    position: relative; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg); background: #111;
}
.gallery-stage img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: zoom-in;
}
.gal-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(0,0,0,.45); color: #fff; font-size: 1.7rem; line-height: 1;
    transition: background .15s;
    display: flex; align-items: center; justify-content: center;
}
.gal-nav:hover { background: var(--accent); }
.gal-prev { left: 16px; }
.gal-next { right: 16px; }
.gal-counter {
    position: absolute; right: 14px; bottom: 12px;
    background: rgba(0,0,0,.55); color: #fff;
    padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.gallery-thumbs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px; margin-top: 12px;
}
.thumb {
    border: 3px solid transparent; border-radius: 10px; overflow: hidden;
    padding: 0; cursor: pointer; background: none;
    opacity: .75; transition: opacity .15s, border-color .15s, transform .15s;
}
.thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.active { border-color: var(--accent); opacity: 1; }
.gallery-empty {
    text-align: center; padding: 60px 20px;
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); color: var(--text-dim); font-size: 1.05rem;
}

/* ---------- Fahrzeugdaten ---------- */
.specs-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}
.spec-card {
    background: var(--card); border-radius: var(--radius);
    padding: 22px 18px; text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.spec-icon { font-size: 1.8rem; margin-bottom: 8px; }
.spec-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); font-weight: 700; }
.spec-value { font-size: 1.12rem; font-weight: 800; margin-top: 4px; }

.highlights {
    margin-top: 36px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 12px;
}
.highlight-item {
    background: var(--card); border-radius: 12px; padding: 15px 18px;
    box-shadow: var(--shadow); font-weight: 600;
    display: flex; gap: 12px; align-items: flex-start;
}
.highlight-item .check { color: var(--green); font-weight: 900; }

/* ---------- Beschreibung ---------- */
.description {
    background: var(--card); border-radius: var(--radius);
    padding: 36px 38px; box-shadow: var(--shadow);
    font-size: 1.06rem; color: #2a2f3a;
    border-left: 5px solid var(--accent);
}

/* ---------- Ausstattung ---------- */
.features-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-chip {
    background: var(--card); border-radius: 999px;
    padding: 10px 20px; font-weight: 600; font-size: .94rem;
    box-shadow: var(--shadow);
    transition: transform .15s ease;
}
.feature-chip:hover { transform: translateY(-2px); }

/* ---------- Vertrauen ---------- */
.trust-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.trust-card {
    background: var(--card); border-radius: var(--radius);
    padding: 30px 26px; box-shadow: var(--shadow);
    transition: transform .2s ease;
}
.trust-card:hover { transform: translateY(-4px); }
.trust-icon { font-size: 2rem; margin-bottom: 12px; }
.trust-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.trust-card p { color: var(--text-dim); font-size: .96rem; }

/* ---------- CTA / Kontakt ---------- */
.section-cta {
    background: linear-gradient(135deg, #12161d 0%, #0e1116 100%);
    color: var(--text-inv);
}
.cta-grid {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start;
}
.cta-info h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.2; }
.cta-info .dot { color: var(--accent); }
.cta-sub { color: rgba(255,255,255,.75); margin-top: 14px; max-width: 480px; }
.cta-price { margin: 26px 0; }
.cta-price span { font-size: 2.4rem; font-weight: 900; color: var(--accent); display: block; }
.cta-price small { color: rgba(255,255,255,.6); }
.cta-contacts { list-style: none; display: grid; gap: 12px; font-size: 1.02rem; }
.cta-contacts a { color: #fff; font-weight: 600; }
.cta-contacts a:hover { color: var(--accent); }

.cta-form form {
    background: var(--card); color: var(--text);
    border-radius: var(--radius); padding: 30px 28px;
    box-shadow: var(--shadow-lg);
    display: grid; gap: 14px;
}
.cta-form h3 { font-size: 1.3rem; margin-bottom: 4px; }
.cta-form label { font-weight: 700; font-size: .88rem; display: grid; gap: 6px; }
.cta-form input, .cta-form textarea, .cta-form select {
    font: inherit; font-weight: 400;
    padding: 12px 14px; border-radius: 10px;
    border: 1.5px solid #d6dae2; background: #fbfcfe;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.cta-form input:focus, .cta-form textarea:focus, .cta-form select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,90,31,.15);
}
.hp-field { position: absolute !important; left: -9999px; opacity: 0; height: 0; }
.form-feedback { font-weight: 700; font-size: .95rem; min-height: 1.2em; }
.form-feedback.ok { color: var(--green); }
.form-feedback.err { color: #d22; }
.form-privacy { font-size: .78rem; color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer {
    background: #0a0d11; color: rgba(255,255,255,.55);
    padding: 26px 0; font-size: .85rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-admin { color: rgba(255,255,255,.35); text-decoration: none; }
.footer-admin:hover { color: #fff; }

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14,17,22,.94); backdrop-filter: blur(10px);
    box-shadow: 0 -6px 24px rgba(0,0,0,.4);
}
.sticky-cta .btn { flex: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(5,7,10,.94);
    display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 92vw; max-height: 88vh;
    border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.6);
}
.lb-close, .lb-prev, .lb-next {
    position: absolute; z-index: 2;
    background: rgba(255,255,255,.1); color: #fff;
    border: none; cursor: pointer; border-radius: 50%;
    width: 52px; height: 52px; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.8); font-weight: 700;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .header-nav { display: none; }
    .cta-grid { grid-template-columns: 1fr; gap: 36px; }
    .section { padding: 60px 0; }
}
@media (max-width: 640px) {
    .header-cta { display: none; }
    .sticky-cta { display: flex; }
    body { padding-bottom: 70px; }
    .hero-actions .btn { width: 100%; }
    .description { padding: 26px 22px; }
}
