/* ============================================================
   KFZ Europa – public site stylesheet
   Admin uses assets/css/styles.css (untouched).
   ============================================================ */

:root {
    color-scheme: light;
    --ink: #0c1222;
    --ink-2: #1f2937;
    --muted: #5d6675;
    --line: #e2e6ee;
    --line-strong: #cfd6e2;
    --paper: #f3f5f9;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --blue: #1f3fe0;
    --blue-deep: #1731b5;
    --blue-soft: #e9edfd;
    --blue-ink: #0d1b4d;
    --amber: #c26a05;
    --amber-soft: #fff3e0;
    --green: #0f8a5f;
    --green-soft: #e3f6ee;
    --red: #c0392b;
    --red-soft: #fdecea;
    --hero-bg: #0b1226;
    --hero-glow: rgba(64, 106, 255, 0.35);
    --shadow-sm: 0 1px 2px rgba(12, 18, 34, 0.06), 0 4px 14px rgba(12, 18, 34, 0.06);
    --shadow-md: 0 8px 30px rgba(12, 18, 34, 0.10);
    --shadow-lg: 0 24px 70px rgba(12, 18, 34, 0.16);
    --radius: 14px;
    --radius-sm: 10px;
    --wrap: 1240px;
    --gutter: clamp(18px, 4vw, 40px);
    --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e9edf5;
    --ink-2: #cfd6e3;
    --muted: #9aa5b8;
    --line: #202c45;
    --line-strong: #2c3a58;
    --paper: #0a0f1e;
    --surface: #111a2f;
    --surface-2: #37383c;
    --blue: #6d87ff;
    --blue-deep: #5470f0;
    --blue-soft: #1a2549;
    --blue-ink: #dfe6ff;
    --amber: #f0a33a;
    --amber-soft: #3a2a10;
    --green: #3ccf92;
    --green-soft: #0f2d22;
    --red: #ff7b6e;
    --red-soft: #3a1a17;
    --hero-bg: #070b17;
    --hero-glow: rgba(90, 120, 255, 0.28);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.surface { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    white-space: nowrap;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.eyebrow.plain::before { display: none; }

.h-xl { font-size: clamp(34px, 4.6vw, 60px); }
.h-lg { font-size: clamp(28px, 3.4vw, 42px); }
.h-md { font-size: clamp(22px, 2.4vw, 28px); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head p.lead { max-width: 60ch; margin-top: 10px; }

.section-head .link-arrow { flex-shrink: 0; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--blue);
}

.link-arrow svg { width: 18px; height: 18px; transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--blue);
    border-radius: var(--radius-sm);
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    box-shadow: 0 8px 20px rgba(31, 63, 224, 0.22);
}

.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn.ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: none;
}
.btn.ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn.light {
    background: #fff;
    border-color: #fff;
    color: var(--blue-ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn.light:hover { background: #eef1ff; border-color: #eef1ff; }

.btn.outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: none;
}
.btn.outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn.full { width: 100%; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand svg { width: 46px; height: 26px; flex-shrink: 0; }
.brand .brand-mark { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand .brand-mark-accent { stroke: var(--blue); }
.brand span { color: var(--ink); }
.brand strong { color: var(--blue); font-weight: 900; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav > a {
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--ink-2);
    transition: background 0.18s ease, color 0.18s ease;
}

.site-nav > a:hover { background: var(--blue-soft); color: var(--blue); }
.site-nav > a.active { color: var(--blue); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 4px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 78% 20%, var(--hero-glow), transparent 60%),
        radial-gradient(600px 400px at 10% 90%, rgba(31, 63, 224, 0.18), transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 75%);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding-block: clamp(56px, 8vw, 110px);
}

.hero .eyebrow { color: #9fb3ff; }

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.hero h1 em { font-style: normal; color: #9fb3ff; }

.hero .lead { color: rgba(255, 255, 255, 0.78); margin-top: 20px; max-width: 58ch; }
.hero .lead strong { color: #fff; font-weight: 700; }

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) auto;
    gap: 10px;
    margin-top: 30px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.search-panel label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.search-panel label > span { padding-left: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #5d6675; }

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f3f5f9;
    color: #0c1222;
    font-size: 16px;
}

.search-panel input:focus,
.search-panel select:focus { outline: none; border-color: var(--blue); background: #fff; }

.search-panel .btn { align-self: end; min-height: 46px; margin-top: 18px; }

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
}

.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: #9fb3ff; }

.hero-visual { position: relative; }

/* Versetzter Rahmen hinter der Galerie - gibt dem Hero Tiefe */
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 26px -26px -26px 26px;
    border-radius: 26px;
    border: 1px solid rgba(159, 179, 255, 0.28);
    background: linear-gradient(140deg, rgba(64, 106, 255, 0.16), transparent 55%);
    pointer-events: none;
}

/* Drei Fotos: ein grosses oben, zwei kleinere darunter */
.hero-gallery {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.shot {
    position: relative;
    margin: 0; /* figure hat im UA-Stylesheet 40px Seitenrand */
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    background: #060a14;
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.shot.lead {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 2;
    border-radius: 20px;
    box-shadow: var(--shadow-lg), 0 34px 80px -28px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    filter: saturate(1.05) contrast(1.05);
}

/* Farbwaesche: blauer Schimmer oben, Abdunklung unten fuer die Live-Karte */
.shot::before,
.shot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.shot::before {
    background: radial-gradient(120% 80% at 82% 6%, rgba(96, 132, 255, 0.3), transparent 58%);
    mix-blend-mode: screen;
}

.shot::after {
    background: linear-gradient(180deg, rgba(11, 18, 38, 0.22) 0%, rgba(11, 18, 38, 0) 38%, rgba(11, 18, 38, 0.62) 100%);
}

.shot.lead::after {
    background: linear-gradient(180deg, rgba(11, 18, 38, 0.22) 0%, rgba(11, 18, 38, 0) 32%, rgba(11, 18, 38, 0.82) 100%);
}

.live-card {
    position: absolute;
    z-index: 3;
    left: -22px;
    bottom: 16px;
    display: grid;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
}

/* Kompakt, weil die Karte auf dem grossen Foto liegt */
.live-card p { display: none; }

.live-card .live-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #5d6675; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); animation: pulse 1.8s ease-in-out infinite; }
.live-card strong { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; color: #0c1222; }
.live-card strong small { font-size: 15px; font-weight: 700; color: #5d6675; margin-left: 6px; letter-spacing: 0; }
.live-card p { font-size: 13px; color: #5d6675; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.05); }
}

.brand-chip {
    position: absolute;
    z-index: 3;
    top: 22px;
    right: -14px;
    display: grid;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 13px;
}

.brand-chip strong { font-size: 15px; }

/* ---------- Marquee strip ---------- */

.strip {
    background: var(--blue);
    color: #fff;
    overflow: hidden;
    padding: 14px 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.strip-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.strip-track:hover { animation-play-state: paused; }

.strip-track ul { display: flex; gap: 0; }
.strip-track li { display: inline-flex; align-items: center; gap: 18px; padding: 0 18px; white-space: nowrap; }
.strip-track li::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .strip-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .strip-track ul:last-child { display: none; }
    .live-dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Parts grid & card ---------- */

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.parts-grid-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.part-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.part-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.part-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
}

.part-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.part-card:hover .part-image img { transform: scale(1.04); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    background: var(--surface);
    color: var(--ink-2);
    border: 1px solid var(--line);
}

.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }

.part-image .badge { position: absolute; top: 12px; left: 12px; box-shadow: var(--shadow-sm); }

.part-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.part-body .part-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.part-body h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.part-body h3 a:hover { color: var(--blue); }

.part-meta { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.part-meta div { display: flex; justify-content: space-between; gap: 12px; }
.part-meta dt { font-weight: 600; }
.part-meta dd { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.part-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.part-foot .price { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.part-foot .price.ask { font-size: 14px; font-weight: 700; color: var(--muted); }

/* ---------- Categories ---------- */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.cat-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 24px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent, var(--blue));
}

.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.cat-card .cat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent, var(--blue)) 12%, transparent);
    color: var(--accent, var(--blue));
}

.cat-card .cat-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-card h3 { font-size: 18px; font-weight: 700; }
.cat-card p { font-size: 14px; color: var(--muted); }
.cat-card .cat-count { font-size: 13px; font-weight: 700; color: var(--accent, var(--blue)); }

/* ---------- Two column intro / process ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.split .sticky { position: sticky; top: 100px; }

.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; color: var(--green); }

.steps { display: grid; gap: 14px; counter-reset: step; }

.step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.step-num {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); }

.note-card {
    display: grid;
    gap: 8px;
    padding: 22px 24px;
    border-radius: var(--radius);
    background: var(--amber-soft);
    border: 1px solid color-mix(in srgb, var(--amber) 25%, transparent);
}

.note-card strong { color: var(--amber); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.note-card p { color: var(--ink-2); }

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.feature-card {
    display: grid;
    gap: 12px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.feature-card .f-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
}

.feature-card .f-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 19px; font-weight: 700; }
.feature-card p { color: var(--muted); }

/* ---------- Dealer section ---------- */

.dealer {
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    color: #fff;
}

.dealer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 500px at 90% 90%, var(--hero-glow), transparent 65%);
    pointer-events: none;
}

.dealer .wrap { position: relative; z-index: 1; }
.dealer .eyebrow { color: #9fb3ff; }
.dealer .lead { color: rgba(255, 255, 255, 0.78); }

.dealer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.dealer-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dealer-benefits li {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dealer-benefits strong { font-size: 15px; }
.dealer-benefits span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

.dealer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.dealer-quote {
    margin-top: 28px;
    padding: 22px 26px;
    border-left: 3px solid #9fb3ff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.55;
}

/* ---------- CTA band ---------- */

.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.cta-band h2 { font-size: clamp(24px, 2.8vw, 34px); }
.cta-band p { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact block ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.info-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.info-card .i-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--blue-soft);
    color: var(--blue);
}

.info-card .i-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3 { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.info-card .big { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.info-card .big a:hover { color: var(--blue); }
.info-card p, .info-card small { color: var(--muted); }
.info-card .link-arrow { margin-top: 4px; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: clamp(40px, 6vw, 64px) 0 28px;
    color: var(--muted);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-grid h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--blue); }
.footer-grid p { max-width: 40ch; margin-top: 14px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.footer-bottom ul { display: flex; gap: 18px; }

/* ---------- Inner page hero ---------- */

.page-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.page-hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding-block: clamp(36px, 5vw, 64px);
}

.page-hero h1 { font-size: clamp(30px, 3.8vw, 46px); }
.page-hero .lead { margin-top: 12px; max-width: 62ch; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }

/* ---------- Catalog ---------- */

.catalog {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-block: clamp(28px, 4vw, 48px);
}

.filters {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.filters h2 { font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field small { font-size: 12px; color: var(--muted); }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }

.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }

.field.req > span::after { content: ' *'; color: var(--red); }

.results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.results-bar h2 { font-size: 22px; }
.results-bar h2 span { color: var(--blue); }
.results-bar p { color: var(--muted); font-size: 14px; margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}
.chip:hover { background: var(--blue); color: #fff; }

.empty {
    display: grid;
    gap: 12px;
    justify-items: start;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px dashed var(--line-strong);
}

.empty h2 { font-size: 24px; }
.empty p { color: var(--muted); max-width: 56ch; }

/* ---------- Voice search ---------- */

.voice-field { position: relative; display: flex; align-items: center; }
.voice-field input { padding-right: 52px !important; }

.voice-btn {
    position: absolute;
    right: 6px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.voice-btn:hover { background: var(--blue-soft); color: var(--blue); }
.voice-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.voice-btn.is-listening { background: var(--red); color: #fff; animation: listen 1.2s ease-in-out infinite; }
.voice-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.search-panel .voice-btn:hover { background: #e9edfd; }

@keyframes listen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(192, 57, 43, 0); }
}

.voice-status { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.search-panel .voice-status { grid-column: 1 / -1; padding-left: 14px; margin-top: -4px; color: #5d6675; }

/* ---------- Part detail ---------- */

.detail { padding-block: clamp(28px, 4vw, 56px); }

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.gallery {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}

.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-2); }
.gallery .badge { position: absolute; top: 14px; left: 14px; }

.buy-card {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.buy-card .kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.buy-card h1 { font-size: clamp(24px, 2.6vw, 32px); }

.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.price-row .price { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }
.price-row .price.ask { font-size: 22px; }
.price-row small { color: var(--muted); font-size: 13px; }

.status-row { display: flex; flex-wrap: wrap; gap: 8px; }

.buy-form { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.buy-form h2 { font-size: 15px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

.tiny { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tiny code { font-size: 12px; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

.detail-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: clamp(28px, 4vw, 48px);
}

.panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.panel h2 { font-size: 18px; font-weight: 700; }
.panel h3 { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.panel p { color: var(--ink-2); }
.panel a.inline { color: var(--blue); font-weight: 600; }

.spec { display: grid; gap: 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { font-weight: 600; text-align: right; }

.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.back-link:hover { color: var(--blue); }
.back-link svg { width: 16px; height: 16px; }

/* ---------- Forms page ---------- */

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    padding-block: clamp(28px, 4vw, 56px);
}

.form-card {
    display: grid;
    gap: 18px;
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.form-card fieldset { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form-card legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.side-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.side-card h2 { font-size: 18px; }
.side-card p, .side-card li { color: var(--muted); font-size: 15px; }
.side-card ul { display: grid; gap: 8px; }
.side-card li { display: flex; gap: 10px; }
.side-card li::before { content: '•'; color: var(--blue); font-weight: 900; }

.selected-part {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: var(--blue-soft);
}

.selected-part img { width: 90px; height: 68px; object-fit: cover; border-radius: 8px; background: #fff; }
.selected-part strong { display: block; font-size: 16px; }
.selected-part span { font-size: 13px; color: var(--muted); }

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--red-soft);
    color: var(--red);
    border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
    font-weight: 600;
}

.success {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.success .ok {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
}

.success .ok svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success h2 { font-size: 26px; }
.success p { color: var(--muted); }
.success .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.kv { display: grid; gap: 8px; width: 100%; padding: 16px; border-radius: 10px; background: var(--surface-2); }
.kv div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 700; }

/* ---------- Contact page ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    padding-block: clamp(28px, 4vw, 56px);
}

.map-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}

.map-card .map-head { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.map-card .map-head h2 { font-size: 18px; }
.map-card .map-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.map-placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    min-height: 300px;
    padding: 30px;
    text-align: center;
    background:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 28px 28px;
    background-color: var(--surface-2);
}

.map-placeholder .pin { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(31, 63, 224, 0.35); }
.map-placeholder .pin svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.map-placeholder strong { font-size: 18px; }
.map-placeholder span { color: var(--muted); font-size: 14px; }

/* ---------- Legal / prose pages ---------- */

.prose { max-width: 76ch; padding-block: clamp(28px, 4vw, 56px); }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose a { color: var(--blue); font-weight: 600; word-break: break-word; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.prose dt { color: var(--muted); font-weight: 600; }
.prose dd { font-weight: 600; }

/* ---------- Händler-Login / Registrierung ---------- */

.auth-card { max-width: 520px; }
.auth-card .btn.lg { width: 100%; justify-content: center; }
.auth-card .tiny { margin-top: 12px; }

.form-layout > aside .side-card + .side-card { margin-top: 16px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; }
    .hero-visual::before { display: none; }
    .live-card { left: 16px; }
    .brand-chip { right: 16px; }
    .split, .dealer-grid, .detail-grid, .form-layout, .contact-layout { grid-template-columns: 1fr; }
    .split .sticky, .buy-card, .filters { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .catalog { grid-template-columns: 1fr; }
    .parts-grid-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px var(--gutter) 20px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
    }

    .site-nav.open { display: flex; }
    .site-nav > a { padding: 12px 14px; font-size: 17px; }
    .site-nav .btn { margin: 10px 0 0; }
    .site-nav .theme-toggle { align-self: flex-start; margin: 8px 14px 0; }

    .search-panel { grid-template-columns: 1fr; }
    .search-panel .btn { margin-top: 4px; }

    .section-head { flex-direction: column; align-items: flex-start; }
    .page-hero .wrap { grid-template-columns: 1fr; align-items: start; }
    .cta-band { grid-template-columns: 1fr; }
    .dealer-benefits { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(32px, 9vw, 44px); }
}

@media (max-width: 560px) {
    .parts-grid-preview { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .step { grid-template-columns: 1fr; }
    .step-num { width: 44px; height: 44px; font-size: 16px; border-radius: 10px; }
    .live-card { left: 10px; right: 10px; bottom: 10px; padding: 12px 16px; min-width: 0; }
    .live-card strong { font-size: 24px; }
    /* Auf kleinen Screens soll das Foto sichtbar bleiben - Fliesstext raus */
    .live-card p { display: none; }
    .hero-gallery { gap: 10px; }
    .shot { border-radius: 12px; }
    .shot.lead { border-radius: 14px; }
    .brand-chip { display: none; }
    .prose dl { grid-template-columns: 1fr; gap: 4px 0; }
    .prose dd { margin-bottom: 10px; }
    .selected-part { grid-template-columns: 1fr; }
    .selected-part img { width: 100%; height: 140px; }
}

/* Dark-mode tweaks for white-on-dark components */
html[data-theme="dark"] .search-panel { background: #121b32; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .search-panel label > span { color: #9aa5b8; }
html[data-theme="dark"] .search-panel input,
html[data-theme="dark"] .search-panel select { background: #0d1426; color: #e9edf5; }
html[data-theme="dark"] .search-panel input:focus,
html[data-theme="dark"] .search-panel select:focus { background: #0d1426; }
html[data-theme="dark"] .search-panel .voice-btn:hover { background: var(--blue-soft); }
html[data-theme="dark"] .search-panel .voice-status { color: #9aa5b8; }
html[data-theme="dark"] .live-card { background: #121b32; }
html[data-theme="dark"] .live-card strong { color: #e9edf5; }
html[data-theme="dark"] .live-card .live-label,
html[data-theme="dark"] .live-card p,
html[data-theme="dark"] .live-card strong small { color: #9aa5b8; }
html[data-theme="dark"] .btn.light { background: #e9edf5; color: #0d1b4d; }
