/* ============================================================
   coches-alemania.es — "Precision Industrial"
   Graphit + Signalrot, harte Kanten, technische Datenflächen.
   ============================================================ */

:root {
  --ink: #0b0d0f;
  --graphite: #16191d;
  --steel: #262b31;
  --steel-2: #3a4048;
  --red: #e30613;
  --red-hover: #ff1b28;
  --red-ink: #c00510; /* rot auf Weiß, WCAG AA */
  --bg: #ffffff;
  --surface: #f4f5f7;
  --surface-2: #eaecef;
  --line: #dcdfe4;
  --line-dark: #2e343b;
  --text: #14171a;
  --muted: #5a626b;
  --muted-dark: #a9b1ba;
  --on-dark: #f6f7f8;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --radius: 3px;
  --radius-lg: 5px;
  --shadow: 0 1px 2px rgb(11 13 15 / 6%), 0 8px 24px -12px rgb(11 13 15 / 18%);
  --shadow-hi: 0 2px 4px rgb(11 13 15 / 8%), 0 18px 40px -18px rgb(11 13 15 / 28%);

  --f-display: "Saira", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;

  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.75vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.55rem + 2.75vw, 3.9rem);

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.25rem;
  --sp-5: clamp(3rem, 6vw, 5rem);
  --sp-6: clamp(4rem, 9vw, 7.5rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

mark { background: #fff2a8; color: #4a3b00; padding: 0 0.25em; font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 2px; }

.container { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - (var(--gutter) * 2), 760px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 0.75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- Wortmarke ---------- */
.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(0.88rem, 0.66rem + 1.05vw, 1.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding-block: 0.6rem;
}
.wordmark .accent { color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 68px;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(0.75rem, 1.6vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  color: var(--on-dark); padding: 0.5rem 0; display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--red); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--muted-dark);
  padding: 0.45rem 0.5rem; min-width: 40px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { color: #fff; background: var(--steel); border-radius: 2px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-dark); color: var(--on-dark);
  width: 46px; height: 44px; border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { border-color: var(--red); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 68px 0 auto; margin: 0;
    background: var(--graphite); border-bottom: 1px solid var(--line-dark);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .site-nav[data-open="true"] { max-height: 70vh; overflow-y: auto; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .site-nav li { border-bottom: 1px solid var(--line-dark); }
  .site-nav a { display: block; padding: 0.95rem 0; font-size: 1.05rem; border-bottom: none; }
  .header-actions { margin-left: auto; }
}

/* Sehr schmale Geräte: Header kompakt halten, damit nichts überläuft. */
@media (max-width: 480px) {
  :root { --gutter: 0.875rem; }
  .header-inner { gap: 0.4rem; min-height: 60px; }
  .header-actions { gap: 0.35rem; }
  .lang-switch a { min-width: 30px; padding: 0.5rem 0.2rem; font-size: 0.7rem; letter-spacing: 0.03em; }
  .nav-toggle { width: 42px; height: 42px; }
  .site-nav { inset-block-start: 60px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem; min-height: 48px;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgb(255 255 255 / 35%); }
.btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / 8%); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--steel); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); background: var(--surface); }
.btn--block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #d4d9df; }

.kicker {
  font-family: var(--f-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-ink);
  margin: 0 0 0.9rem;
}
.section--dark .kicker { color: #ff6a72; }
.section-head { max-width: 62ch; margin-bottom: var(--sp-4); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.section--dark .section-head p { color: #c6ccd3; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding-block: clamp(3rem, 8vw, 6.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, transparent 58%, rgb(227 6 19 / 12%) 58.2%, rgb(227 6 19 / 12%) 60%, transparent 60.2%),
    linear-gradient(105deg, transparent 64%, rgb(227 6 19 / 7%) 64.2%, rgb(227 6 19 / 7%) 67%, transparent 67.2%),
    radial-gradient(120% 90% at 85% 0%, rgb(58 64 72 / 65%) 0%, transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { max-width: 17ch; margin-bottom: 0.5em; }
.hero .hero-lead { font-size: var(--step-1); color: #ccd2d8; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--sp-3); }

.hero-stats {
  display: grid; gap: 1px; margin-top: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  background: var(--line-dark); border: 1px solid var(--line-dark);
}
.hero-stats div { background: var(--graphite); padding: 1.15rem 1.25rem; }
.hero-stats b {
  display: block; font-family: var(--f-display); font-size: var(--step-2);
  font-weight: 700; color: #fff; line-height: 1.1;
}
.hero-stats span { display: block; font-size: 0.88rem; color: var(--muted-dark); margin-top: 0.3rem; }

/* ---------- Filterleiste ---------- */
.filters {
  background: var(--graphite); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: clamp(1rem, 2.5vw, 1.6rem);
}
.filters--light { background: var(--bg); border-color: var(--line); box-shadow: var(--shadow); }
.filters h2 { font-size: var(--step-1); margin-bottom: 1rem; }
.filter-grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
}
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-dark);
}
.filters--light .field label { color: var(--muted); }
.field select, .field input, .field textarea {
  font-family: var(--f-body); font-size: 1rem; color: #fff;
  background-color: var(--ink); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 0.7rem 0.75rem; min-height: 48px; width: 100%;
}
.filters--light .field select,
.filters--light .field input,
.filters--light .field textarea { color: var(--text); background-color: var(--bg); border-color: var(--line); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b1ba' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.6rem center; background-size: 18px; padding-right: 2.2rem; }
.filters--light .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a626b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.filter-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1.1rem; }
.filter-count { font-size: 0.92rem; color: var(--muted-dark); margin-left: auto; }
.filters--light .filter-count { color: var(--muted); }
.btn-link {
  background: none; border: none; color: inherit; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; font: inherit; padding: 0.6rem 0.25rem; min-height: 44px;
}

/* ---------- Fahrzeugkarten ---------- */
.card-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.vehicle-card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.vehicle-card:hover { box-shadow: var(--shadow-hi); transform: translateY(-3px); border-color: #c8ccd2; }
.vehicle-card__media { position: relative; background: var(--surface-2); }
.vehicle-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--red); color: #fff; font-family: var(--f-display); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.35rem 0.6rem; border-radius: 2px;
}
.vehicle-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.vehicle-card__title { font-size: var(--step-1); margin: 0; }
.vehicle-card__title a { text-decoration: none; }
.vehicle-card__title a::after { content: ""; position: absolute; inset: 0; }
.vehicle-card { position: relative; }
.vehicle-card__sub { color: var(--muted); font-size: 0.93rem; margin: -0.4rem 0 0; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.spec-chips li {
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  padding: 0.3rem 0.55rem; border-radius: 2px; font-variant-numeric: tabular-nums;
}
.vehicle-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1rem; padding-top: 0.4rem; }
.price {
  font-family: var(--f-display); font-weight: 700; font-size: var(--step-2);
  line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.price small { display: block; font-family: var(--f-body); font-size: 0.75rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 0.35rem; }
.card-cta { font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: var(--red-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.card-cta svg { width: 17px; height: 17px; flex: none; }
.vehicle-card:hover .card-cta { text-decoration: underline; text-underline-offset: 3px; }

.empty-state {
  border: 1px dashed var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-4); text-align: center; color: var(--muted); background: var(--surface);
}

/* ---------- Feature-/Prozess-Raster ---------- */
.feature-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.feature {
  background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.section--dark .feature { background: var(--graphite); border-color: var(--line-dark); border-top-color: var(--red); }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--muted); margin: 0; }
.section--dark .feature p { color: #c6ccd3; }

.steps { counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.steps > li { counter-increment: step; list-style: none; background: var(--bg); padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--f-display); font-weight: 700; font-style: italic;
  font-size: 2.1rem; color: var(--red); line-height: 1; margin-bottom: 0.6rem;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.steps p { color: var(--muted); margin: 0; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 1.1rem; height: 0.6rem;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

/* ---------- Fahrzeug-Detail ---------- */
.breadcrumb { font-size: 0.86rem; color: var(--muted); padding-block: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

.vehicle-layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 1000px) { .vehicle-layout { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr); } }

.gallery-main { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-nav { position: absolute; inset-inline: 0.5rem; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; }
.gallery-nav button {
  pointer-events: auto; width: 46px; height: 46px; border-radius: 50%;
  background: rgb(11 13 15 / 72%); color: #fff; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.gallery-nav button:hover { background: var(--ink); }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-count {
  position: absolute; right: 0.75rem; bottom: 0.75rem;
  background: rgb(11 13 15 / 78%); color: #fff; font-size: 0.8rem; font-variant-numeric: tabular-nums;
  padding: 0.25rem 0.55rem; border-radius: 2px;
}
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.5rem; margin-top: 0.6rem; padding: 0; list-style: none; }
.thumbs button { display: block; width: 100%; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; border-radius: 2px; overflow: hidden; }
.thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.thumbs button[aria-current="true"] { border-color: var(--red); }

.buy-box { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--bg); }
@media (min-width: 1000px) { .buy-box { position: sticky; top: 88px; } }
.buy-box .price { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }
.buy-box .btn { margin-top: 0.6rem; }
.warranty-note { display: flex; gap: 0.6rem; align-items: flex-start; background: var(--surface); border-left: 3px solid var(--red); padding: 0.8rem 1rem; margin-top: 1.1rem; font-size: 0.92rem; }
.warranty-note svg { width: 20px; height: 20px; flex: none; color: var(--red-ink); margin-top: 2px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); width: 45%; }
.spec-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-table tr:nth-child(odd) { background: var(--surface); }

.equip-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.equip-grid h3 { font-size: var(--step-1); }
.equip-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.equip-grid li { position: relative; padding-left: 1.25rem; color: var(--text); }
.equip-grid li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; background: var(--red); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.6rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.15rem; position: relative;
  font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.15rem; top: 1.45rem;
  width: 12px; height: 12px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq .faq-body { padding: 0 1.15rem 1.15rem; color: var(--muted); }

/* ---------- Artikel ---------- */
.article-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.article-card { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.article-card:hover { box-shadow: var(--shadow-hi); transform: translateY(-3px); }
.article-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-card__body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.article-card h3 { font-size: var(--step-1); margin: 0; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; display: grid; gap: 0.45rem; }
.prose a { color: var(--red-ink); text-underline-offset: 3px; }
.prose .note { font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 0.9rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--ink); color: #fff; font-family: var(--f-display); font-weight: 600; }
.prose tbody tr:nth-child(even) { background: var(--surface); }

/* ---------- Formular ---------- */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid .cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.field .req { color: var(--red-ink); }
.field .error { color: var(--red-ink); font-size: 0.85rem; font-weight: 500; }
.field textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.consent input { width: 24px; height: 24px; min-height: 24px; flex: none; margin-top: 1px; accent-color: var(--red); }
.consent { cursor: pointer; padding-block: 0.25rem; }
.form-status { padding: 0.9rem 1.1rem; border-radius: var(--radius); font-weight: 500; }
.form-status[data-state="ok"] { background: #e8f6ec; color: #14532d; border: 1px solid #a7d7b6; }
.form-status[data-state="fail"] { background: #fdecec; color: #7f1010; border: 1px solid #f0b4b4; }

.contact-layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); } }
.info-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.info-box h3 { font-size: var(--step-1); }
.info-box + .info-box { margin-top: 1rem; }
.info-box a { color: var(--red-ink); }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--red); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff; font-size: var(--step-1); max-width: 60ch; }
.cta-band .btn--dark:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding-block: var(--sp-5) var(--sp-3); font-size: 0.95rem; }
.footer-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--muted-dark); text-decoration: none; display: inline-block; padding-block: 0.35rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .wordmark { color: #fff; margin-bottom: 0.8rem; }
.footer-bottom { margin-top: var(--sp-4); padding-top: 1.25rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between; font-size: 0.86rem; }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 200;
  max-width: 640px; margin-inline: auto;
  background: var(--graphite); color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 60%);
  padding: 1.15rem 1.25rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: var(--step-1); color: #fff; margin-bottom: 0.35rem; }
.cookie-banner p { font-size: 0.9rem; color: #c6ccd3; margin-bottom: 0.9rem; }
.cookie-banner a { color: #fff; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { padding-block: 0.65rem; min-height: 44px; font-size: 0.95rem; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .vehicle-card:hover, .article-card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .filters, .gallery-nav, .thumbs { display: none; }
}

/* ============================================================
   Runde 2 — Bewegung, Effekte, Charakter
   ============================================================ */

/* ---------- Wortmarke als SVG ---------- */
.wordmark { padding-block: 0.55rem; }
.wordmark img {
  height: clamp(15px, 0.55rem + 1.15vw, 26px);
  width: auto;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.wordmark:hover img { transform: translateX(3px); }
.site-footer .wordmark img { height: clamp(17px, 0.7rem + 1vw, 24px); }

/* ---------- Lese-Fortschritt (Artikel) ---------- */
.read-progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 150;
  background: transparent; pointer-events: none;
}
.read-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red), #ff6a72);
  transition: width 0.1s linear;
}

/* ---------- Header-Zustand beim Scrollen ---------- */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header[data-scrolled="true"] {
  background: rgb(11 13 15 / 88%);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 10px 30px -18px rgb(0 0 0 / 80%);
}
.site-nav a { position: relative; }
@media (min-width: 941px) {
  .site-nav a { border-bottom: none; }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--red); transform: scaleX(0); transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Hero: zweispaltig mit Fahrzeug ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-inner {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  position: relative; z-index: 1;
}
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.hero-copy h1 { max-width: 15ch; }
.hero-stripes {
  position: absolute; inset: -10% -20% -10% 30%;
  background:
    linear-gradient(105deg, transparent 40%, rgb(227 6 19 / 20%) 40.2%, rgb(227 6 19 / 20%) 42%, transparent 42.2%),
    linear-gradient(105deg, transparent 47%, rgb(227 6 19 / 9%) 47.2%, rgb(227 6 19 / 9%) 51%, transparent 51.2%),
    linear-gradient(105deg, transparent 58%, rgb(255 255 255 / 6%) 58.2%, rgb(255 255 255 / 6%) 59%, transparent 59.2%);
  animation: stripe-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes stripe-drift { from { transform: translateX(-2%); } to { transform: translateX(3%); } }

.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 85%);
}
.hero-media::before {
  content: ""; position: absolute; inset: auto 0 -14px 8%;
  height: 5px; background: var(--red); transform: skewX(-14deg);
}
.hero-media figcaption { position: absolute; top: 1rem; left: 1.6rem; }
.hero-tag {
  display: inline-block; background: var(--red); color: #fff;
  font-family: var(--f-display); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.4rem 0.85rem; transform: skewX(-14deg);
}

.hero-stats { margin-top: clamp(2.5rem, 5vw, 4rem); }
.hero-stats div { transition: background-color 0.25s ease; }
.hero-stats div:hover { background: var(--steel); }

/* Gestaffelter Auftritt im Hero */
.hero-copy > *, .hero-media, .hero-stats {
  animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Fakten-Laufband ---------- */
.ticker {
  background: var(--red); color: #fff; overflow: hidden;
  border-block: 1px solid rgb(0 0 0 / 15%);
}
.ticker__track {
  display: flex; width: max-content;
  animation: ticker 45s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font-family: var(--f-display); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.7rem clamp(1.25rem, 3vw, 2.5rem);
  white-space: nowrap; display: inline-flex; align-items: center;
}
.ticker__item::before {
  content: ""; width: 6px; height: 6px; background: #fff;
  transform: skewX(-14deg); margin-right: 0.8rem; flex: none;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Scroll-Einblendungen ---------- */
.js [data-reveal], .js [data-reveal-group] > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in, .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }

/* ---------- Buttons: Rot-Sweep ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn--outline:hover, .btn--ghost:hover { color: #fff; border-color: var(--red); }
.btn--outline:hover::before, .btn--ghost:hover::before { transform: scaleX(1); }
.btn svg { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Fahrzeugkarten ---------- */
.vehicle-card__media { overflow: hidden; }
.vehicle-card__media img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.vehicle-card:hover .vehicle-card__media img { transform: scale(1.06); }
.vehicle-card::after {
  content: ""; position: absolute; inset: auto 0 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.vehicle-card:hover::after { transform: scaleX(1); }
.badge { transform: skewX(-14deg); }
.card-cta svg { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.vehicle-card:hover .card-cta svg,
.article-card:hover .card-cta svg { transform: translateX(4px); }
.spec-chips li { transition: border-color 0.25s ease, background-color 0.25s ease; }
.vehicle-card:hover .spec-chips li { border-color: #c9ced5; }

/* ---------- Feature-Karten ---------- */
.feature { position: relative; overflow: hidden; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.feature::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--red); transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature:hover { transform: translateY(-4px); }
.feature:hover::after { transform: scaleY(1); }

.steps > li { position: relative; transition: background-color 0.3s ease; }
.steps > li:hover { background: var(--surface); }
.steps > li::before { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.steps > li:hover::before { transform: translateX(4px); }

/* ---------- Beitrags-Karten ohne Bild ---------- */
.article-card { border-left: 3px solid var(--red); }
.article-card__body { gap: 0.7rem; padding: clamp(1.35rem, 2.6vw, 1.85rem); }
.article-card h3 { font-size: var(--step-2); }
.article-card .card-cta { margin-top: auto; padding-top: 0.5rem; }
.article-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 55%, rgb(227 6 19 / 6%));
  opacity: 0; transition: opacity 0.35s ease;
}
.article-card:hover::after { opacity: 1; }

/* ---------- Artikel: Vorspann, Inhaltsverzeichnis, Anker ---------- */
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; max-width: 62ch; }
.toc {
  margin: var(--sp-4) 0; padding: 1.25rem 1.5rem;
  background: var(--surface); border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.toc h2 {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.8rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.toc li::marker { color: var(--red); font-weight: 700; }
.toc a {
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid transparent; display: inline-block; padding-block: 0.15rem;
}
.toc a:hover { color: var(--red-ink); border-bottom-color: currentColor; }

.prose h2 { scroll-margin-top: 90px; position: relative; }
.prose h2 .anchor {
  opacity: 0; margin-left: 0.4rem; color: var(--red); text-decoration: none;
  transition: opacity 0.2s ease;
}
.prose h2:hover .anchor, .prose h2 .anchor:focus-visible { opacity: 1; }

/* ---------- Galerie ---------- */
.gallery-main img { transition: opacity 0.28s ease; }
.gallery-main[data-swapping="true"] img { opacity: 0.15; }
.gallery-nav button { transition: background-color 0.2s ease, transform 0.2s ease; }
.gallery-nav button:hover { transform: scale(1.08); }
.thumbs button img { transition: transform 0.35s ease, opacity 0.25s ease; opacity: 0.72; }
.thumbs button:hover img { transform: scale(1.08); opacity: 1; }
.thumbs button[aria-current="true"] img { opacity: 1; }

/* ---------- FAQ ---------- */
.faq details { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.faq details[open] { border-color: #c9ced5; box-shadow: var(--shadow); }
.faq summary:hover { color: var(--red-ink); }
.faq .faq-body { animation: faq-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- CTA-Band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: -50% -10%;
  background: linear-gradient(105deg, transparent 45%, rgb(255 255 255 / 10%) 47%, transparent 49%);
  animation: sweep 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep { 0%, 100% { transform: translateX(-15%); } 50% { transform: translateX(15%); } }
.cta-band .container { position: relative; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-media, .hero-stats { animation: none; opacity: 1; transform: none; }
  .ticker__track, .hero-stripes, .cta-band::before { animation: none; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
  .vehicle-card:hover .vehicle-card__media img,
  .feature:hover, .gallery-nav button:hover, .thumbs button:hover img { transform: none; }
}

/* ============================================================
   Runde 3 — Suchbox im Hero + Ergebnisliste mit Filterspalte
   (Bedienlogik nach dem Vorbild großer Fahrzeugbörsen)
   ============================================================ */

/* ---------- Hero mit Hintergrundbild und Suchbox ---------- */
.hero { position: relative; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 45%;
  opacity: 0.3; filter: grayscale(0.35) contrast(1.05);
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(100deg, var(--ink) 18%, rgb(11 13 15 / 82%) 48%, rgb(11 13 15 / 55%) 100%);
}
.hero-stripes { z-index: 0; }
.hero-inner { z-index: 1; }
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr); align-items: center; }
}

.searchbox {
  background: var(--bg); color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.6vw, 1.75rem);
  box-shadow: 0 30px 70px -25px rgb(0 0 0 / 80%);
  border-top: 4px solid var(--red);
}
.searchbox h2 {
  font-size: var(--step-1); margin-bottom: 1rem;
}
.searchbox__grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin-bottom: 1.1rem;
}
.searchbox .field label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}
.searchbox .field select {
  color: var(--text); background-color: var(--bg); border-color: var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a626b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.6rem center; background-size: 18px;
  padding-right: 2.2rem;
}
.searchbox__note {
  margin: 0.85rem 0 0; font-size: 0.85rem; color: var(--muted); text-align: center;
}

/* ---------- Ergebnisseite: Filterspalte + Liste ---------- */
.results-layout { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
@media (min-width: 900px) {
  .results-layout { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); }
  .filter-rail { position: sticky; top: 88px; }
}

.filters--rail { padding: 1.25rem; }
.filters--rail .filter-grid { grid-template-columns: 1fr; gap: 0.85rem; }
.filters--rail h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.filters--rail .filter-actions { flex-direction: column; align-items: stretch; gap: 0.4rem; margin-top: 1.25rem; }
.filters--rail .filter-actions .btn { width: 100%; }

.results-bar {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem; margin-bottom: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.results-bar p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.results-bar strong { color: var(--text); font-family: var(--f-display); font-size: 1.15rem; }
.field--inline { flex-direction: row; align-items: center; gap: 0.6rem; }
.field--inline label { white-space: nowrap; letter-spacing: 0.06em; }
.field--inline select { min-height: 42px; width: auto; min-width: 190px; }

/* ---------- Ergebniszeile ---------- */
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.result {
  position: relative; display: grid; gap: 0 clamp(1rem, 2vw, 1.5rem);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.result:hover { box-shadow: var(--shadow-hi); border-color: #c8ccd2; transform: translateY(-2px); }
.result__media { position: relative; display: block; background: var(--surface-2); overflow: hidden; }
.result__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.result:hover .result__media img { transform: scale(1.05); }
.result__body { padding: 1rem 0 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.result__body h3 { font-size: var(--step-1); margin: 0; }
.result__body h3 a { text-decoration: none; }
.result__body h3 a::after { content: ""; position: absolute; inset: 0; }
.result__sub { margin: 0; color: var(--muted); font-size: 0.93rem; }
.result__specs { margin: 0.15rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.result__specs span { position: relative; }
.result__specs span + span::before {
  content: ""; position: absolute; left: -0.5rem; top: 0.35em; width: 3px; height: 3px;
  background: var(--red); border-radius: 50%;
}
.result__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0 0; padding: 0; }
.result__tags li {
  font-size: 0.79rem; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); padding: 0.22rem 0.5rem; border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.result__aside {
  display: flex; flex-direction: column; justify-content: center; gap: 0.75rem;
  padding: 1rem 1.1rem 1.2rem 0;
}
.result__aside .price { font-size: var(--step-2); }
.result__cta { pointer-events: none; }
.result:hover .result__cta { background: var(--red-hover); }

@media (min-width: 620px) {
  .result { grid-template-columns: clamp(180px, 26vw, 260px) minmax(0, 1fr); }
  .result__body { padding-block: 1.1rem; }
  .result__aside { grid-column: 2; padding: 0 1.1rem 1.2rem 0; flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
@media (min-width: 980px) {
  .result { grid-template-columns: 260px minmax(0, 1fr) minmax(180px, 220px); }
  .result__aside { grid-column: 3; grid-row: 1; padding: 1.1rem 1.25rem; flex-direction: column; align-items: stretch; justify-content: center; border-left: 1px solid var(--line); text-align: right; }
  .result__aside .price small { text-align: right; }
}
@media (max-width: 619px) {
  .result__body { padding-inline: 1.1rem; }
  .result__aside { padding: 0 1.1rem 1.2rem; flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
}

/* Mobil: Filter einklappbar über der Liste */
@media (max-width: 899px) {
  .filters--rail { padding: 1rem 1.1rem; }
  .filters--rail .filter-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
  .filters--rail .filter-actions { flex-direction: row; }
  .filters--rail .filter-actions .btn { width: auto; }
}

/* Korrekturen Runde 3 */
.results-bar .field select,
.field--inline select {
  color: var(--text); background-color: var(--bg); border-color: var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a626b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.6rem center; background-size: 18px;
  padding-right: 2.2rem;
}
.result__cta { font-size: 0.9rem; padding: 0.7rem 1rem; min-height: 44px; }
@media (min-width: 980px) {
  .result { grid-template-columns: 260px minmax(0, 1fr) minmax(200px, 240px); }
}

/* display:grid/flex überschreibt sonst das hidden-Attribut der gefilterten Karten */
[hidden] { display: none !important; }

/* ---------- Auktionen ---------- */
.badge--auction { background: var(--ink); }
.bid { margin: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.bid__label {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.bid b {
  font-family: var(--f-display); font-weight: 700; font-size: var(--step-2);
  line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.bid small { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.auction-empty {
  border: 1px dashed var(--line); border-left: 3px solid var(--red);
  border-radius: var(--radius-lg); background: var(--surface);
  padding: clamp(1.75rem, 5vw, 3rem);
  max-width: 62ch;
}
.auction-empty h2 { font-size: var(--step-2); }
.auction-empty p { color: var(--muted); margin-bottom: 1.5rem; }

/* Grid-Elemente dürfen unter ihre Mindestinhaltsbreite schrumpfen,
   sonst zieht das Sortierfeld die ganze Spalte auf 400 px auf. */
.results-layout > *,
.results-main > * { min-width: 0; }
.field--inline select { min-width: 150px; max-width: 100%; }
@media (max-width: 560px) {
  .results-bar { flex-direction: column; align-items: stretch; }
  .field--inline { flex-direction: column; align-items: stretch; gap: 0.35rem; }
  .field--inline select { width: 100%; min-width: 0; }
}

/* Lange deutsche Komposita dürfen umbrechen, sonst sprengen sie schmale Displays. */
h1, h2, h3, h4, p, li, td, th, dd, dt, summary, figcaption { overflow-wrap: break-word; }
.prose p, .prose li, .prose td, .prose th { hyphens: auto; }

/* ---------- Auktions-Teaser auf der Startseite ---------- */
.teaser-strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--red); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.teaser-strip h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.teaser-strip p { color: var(--muted); margin: 0; max-width: 62ch; }
.teaser-strip .kicker { margin-bottom: 0.5rem; }

/* ---------- Feste Aktionsleiste auf Fahrzeugseiten (mobil) ---------- */
.action-bar {
  position: fixed; inset: auto 0 0; z-index: 120;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgb(11 13 15 / 96%); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-dark);
}
.action-bar .price { color: #fff; font-size: 1.4rem; }
.action-bar .price small { color: var(--muted-dark); }
.action-bar .btn { padding: 0.7rem 1.1rem; min-height: 46px; font-size: 0.95rem; }
@media (max-width: 999px) {
  .action-bar { display: flex; }
  /* Platz schaffen, damit die Leiste den Footer nicht verdeckt */
  .site-footer { padding-bottom: calc(var(--sp-3) + 78px); }
}
@media print { .action-bar, .teaser-strip { display: none; } }
.action-bar .btn { white-space: nowrap; }
.action-bar .price { font-size: 1.25rem; }
.action-bar .price small { font-size: 0.7rem; }

/* Alle Hero-Container über die Verlaufsschicht heben — sonst legt sich
   .hero::after über die Zahlenzeile und macht sie fast unlesbar. */
.hero > .container { position: relative; z-index: 1; }
.hero-stats div { background: rgb(22 25 29 / 92%); backdrop-filter: blur(2px); }
.hero-stats b { color: #fff; }
.hero-stats span { color: #cfd5dc; }

/* ============================================================
   Runde 5 — Helle Kopfleiste (Originallogo unverändert) + WhatsApp
   ============================================================ */

/* ---------- Kopfleiste hell ---------- */
.site-header {
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.site-header[data-scrolled="true"] {
  background: rgb(255 255 255 / 94%);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 8px 28px -18px rgb(11 13 15 / 45%);
}
.site-nav a { color: var(--text); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--red-ink); }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: #fff; background: var(--ink); }
.nav-toggle { border-color: var(--line); color: var(--text); }
.nav-toggle:hover { border-color: var(--red); color: var(--red-ink); }

@media (max-width: 940px) {
  .site-nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -22px rgb(11 13 15 / 45%); }
  .site-nav li { border-bottom: 1px solid var(--line); }
}

/* Logo: Originaldatei unverändert, nur skaliert */
.wordmark { padding-block: 0.5rem; }
.wordmark img {
  height: clamp(16px, 0.5rem + 1.35vw, 30px);
  width: auto;
}

/* Footer trägt den Namen als Text — dort steht kein abgewandeltes Logo */
.footer-brand {
  font-family: var(--f-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.7rem;
}

/* ---------- WhatsApp: fixierter Button ---------- */
.wa-float {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 130;
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 56px; padding: 0 1.15rem;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgb(227 6 19 / 55%), 0 4px 10px rgb(0 0 0 / 20%);
  transition: background-color 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgb(227 6 19 / 65%); }
.wa-float:active { transform: translateY(0); }

/* Neben dem Cookie-Hinweis nicht doppelt aufpoppen */
.cookie-banner:not([hidden]) ~ .wa-float { opacity: 0; pointer-events: none; }

/* Über der festen Preisleiste auf Fahrzeugseiten bleiben */
@media (max-width: 999px) {
  .has-action-bar .wa-float { bottom: calc(var(--gutter) + 74px); }
  .wa-float { min-height: 52px; padding: 0 0.95rem; font-size: 0.92rem; }
}
/* Auf sehr schmalen Displays nur das Symbol */
@media (max-width: 420px) {
  .wa-float { padding: 0; width: 52px; justify-content: center; }
  .wa-float span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float:hover { transform: none; }
}
@media print { .wa-float { display: none; } }

/* Verfügbarkeitshinweis in der Kaufbox */
.stock-note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: #e8f6ec; border-left: 3px solid #0a7a35;
  padding: 0.8rem 1rem; margin-top: 1.1rem; font-size: 0.92rem; color: #14532d;
}
.stock-note svg { width: 20px; height: 20px; flex: none; color: #0a7a35; margin-top: 2px; }

/* ---------- Waagerechter Slider (Ratgeber) ---------- */
.slider { position: relative; }
.slider__track {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 4px 0 1.1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.slider__track::-webkit-scrollbar { height: 8px; }
.slider__track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.slider__track::-webkit-scrollbar-thumb:hover { background: #c3c8cf; }
.slider__track:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 2px; }

.slider__item {
  flex: 0 0 clamp(255px, 78vw, 340px);
  scroll-snap-align: start;
  display: flex;
}
.slider__item > * { width: 100%; }
@media (min-width: 760px) { .slider__item { flex-basis: calc((100% - 1.75rem) / 2); } }
@media (min-width: 1080px) { .slider__item { flex-basis: calc((100% - 3.5rem) / 3); } }

.slider__btn {
  position: absolute; top: calc(50% - 0.55rem); transform: translateY(-50%);
  z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.slider__btn svg { width: 22px; height: 22px; }
.slider__btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.slider__btn[hidden] { display: none; }
.slider__btn:disabled { opacity: 0.35; cursor: default; }
.slider__btn:disabled:hover { background: var(--bg); color: var(--text); border-color: var(--line); }
.slider__btn--prev { left: -8px; }
.slider__btn--next { right: -8px; }
@media (min-width: 1260px) {
  .slider__btn--prev { left: -23px; }
  .slider__btn--next { right: -23px; }
}

/* Karten im Slider gleich hoch */
.slider__item .article-card { height: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .slider__track { scroll-behavior: smooth; }
}
@media print { .slider__btn { display: none; } .slider__track { overflow: visible; flex-wrap: wrap; } }

/* ---------- WhatsApp-Schwebebutton: gleiche Optik wie jeder Button ---------- */
.wa-float {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 130;
  box-shadow: 0 12px 30px -10px rgb(227 6 19 / 55%), 0 4px 10px rgb(0 0 0 / 20%);
  border-radius: var(--radius);
}
.wa-float svg { width: 20px; height: 20px; }
.wa-float:hover { transform: translateY(-2px); }
@media (max-width: 999px) { .has-action-bar .wa-float { bottom: calc(var(--gutter) + 74px); } }
@media (max-width: 420px) {
  .wa-float { padding: 0; width: 48px; min-width: 48px; justify-content: center; }
  .wa-float span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-float:hover { transform: none; } }

/* ---------- Versandwege im Kontaktformular ---------- */
.send-options {
  border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: var(--radius); background: var(--surface);
  padding: clamp(1.15rem, 2.5vw, 1.6rem); margin-top: 0.5rem;
}
.send-options h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.send-options > p { color: var(--muted); margin-bottom: 1rem; }
.send-options__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.send-options__hint { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.send-options__hint a { color: var(--red-ink); }
