/* ==========================================================================
   Doricom Automotive – Stylesheet
   Aufbau: Fonts · Tokens · Basis · Layout · Komponenten · Seiten · Motion
   ========================================================================== */

/* ---------- Fonts (lokal, SIL Open Font License – siehe assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-600.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-700.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0e0e0f;
  --bg-alt: #131315;
  --surface: #1a1a1c;
  --surface-2: #222225;
  --line: #2b2b2f;
  --line-strong: #3d3d42;

  --text: #f1f1f3;
  --text-muted: #b6b6bd;
  --text-subtle: #8f8f97;

  --red: #e8392f;          /* Logo-Rot: Linien, Grafiken, große Flächen */
  --red-strong: #c92c23;   /* Buttons mit weißer Schrift (Kontrast 5,4:1) */
  --red-hover: #dc3329;
  --red-text: #ff5d52;     /* Rot für Text auf dunklem Grund (≥ 5:1) */
  --ok: #4cc38a;

  --font-display: 'Barlow Condensed', 'Bahnschrift', 'Avenir Next Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif-condensed, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --radius: 6px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cta-bar-h: 0px;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --gutter: 32px; --header-h: 80px; } }
@media (max-width: 899.98px) { :root { --cta-bar-h: 62px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--cta-bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
body.nav-open, body.dialog-open { overflow: hidden; }
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .005em;
  text-transform: uppercase;
  font-stretch: condensed;
  overflow-wrap: break-word;
  hyphens: manual;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--text); text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #fff; text-decoration-thickness: 2px; }
strong { color: var(--text); font-weight: 600; }
ul, ol { padding: 0; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--red-strong); color: #fff; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: .75rem 1rem;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
.section__lead { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.1rem;
  color: var(--red-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .875rem;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kicker::before {
  content: '';
  width: 2.75rem;
  height: 4px;
  background: linear-gradient(90deg, rgba(232, 57, 47, 0), var(--red));
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
}
.kicker__num { color: var(--text-subtle); }
.section__head--center .kicker::after {
  content: '';
  width: 2.75rem;
  height: 4px;
  background: linear-gradient(270deg, rgba(232, 57, 47, 0), var(--red));
  clip-path: polygon(0 0, 100% 42%, 100% 58%, 0 100%);
}

/* Texturen */
.tex-carbon { position: relative; isolation: isolate; }
.tex-carbon::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background:
    linear-gradient(27deg, #121214 5px, transparent 5px) 0 5px,
    linear-gradient(207deg, #121214 5px, transparent 5px) 10px 0,
    linear-gradient(27deg, #1b1b1e 5px, transparent 5px) 0 10px,
    linear-gradient(207deg, #1b1b1e 5px, transparent 5px) 10px 5px,
    linear-gradient(90deg, #161618 10px, transparent 10px),
    linear-gradient(#18181a 25%, #151517 25%, #151517 50%, transparent 50%, transparent 75%, #1d1d20 75%, #1d1d20);
  background-color: #111113;
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.tex-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--red-strong); color: #fff; }
.btn--primary:hover { background: var(--red-hover); color: #fff; }
.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .3);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--text); color: #fff; }
.btn--small { min-height: 40px; padding: .55rem 1rem; font-size: .95rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-arrow .icon { color: var(--red); transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header--solid {
  background: rgba(14, 14, 15, .9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* Offenes Menü: kein backdrop-filter, sonst wird der Header zum Bezugsrahmen für das fixierte Menü-Panel */
body.nav-open .site-header {
  background: var(--bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}
.site-header__logo { display: block; flex-shrink: 0; border-radius: 2px; }
.site-header__logo img { width: 128px; height: auto; }
@media (min-width: 900px) { .site-header__logo img { width: 168px; } }

.nav { display: none; }
.nav__list { list-style: none; display: flex; gap: .25rem; }
.nav__list a {
  display: block;
  padding: .6rem .75rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: color .2s;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: .75rem; right: .75rem; bottom: .3rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active, .nav__list a[aria-current="page"] { color: var(--text); }
.nav__list a:hover::after, .nav__list a.is-active::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -8px;
  background: none;
  border: 0;
  color: var(--text);
  border-radius: 4px;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Mobile-Menü (bis 1099 px – sechs Menüpunkte passen erst darüber in eine Zeile) */
@media (max-width: 1099.98px) {
  .no-js .nav { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .no-js .nav__list { flex-wrap: wrap; padding: .5rem var(--gutter); }
  .no-js .nav-toggle, .no-js .nav__cta { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    padding: 1.5rem var(--gutter) calc(2rem + var(--cta-bar-h));
    background: var(--bg);
    overflow-y: auto;
  }
  .nav.is-open .nav__list { flex-direction: column; gap: 0; }
  .nav.is-open .nav__list a {
    padding: 1rem 0;
    font-size: 1.75rem;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__list a::after { display: none; }
  .nav.is-open .nav__cta { align-self: stretch; min-height: 56px; }
}
@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: 1rem; }
  .nav-toggle { display: none; }
}
@media (min-width: 1100px) and (max-width: 1239.98px) {
  .nav__list a { padding-inline: .55rem; font-size: 1rem; }
  .nav__list a::after { left: .55rem; right: .55rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg) url('../img/poster-hero.webp') 72% center / cover no-repeat;
}
@media (min-height: 1100px) { .hero { min-height: 960px; } }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
    linear-gradient(0deg, var(--bg) 0%, rgba(14, 14, 15, 0) 34%),
    linear-gradient(90deg, rgba(14, 14, 15, .9) 0%, rgba(14, 14, 15, .72) 48%, rgba(14, 14, 15, .3) 100%);
}
@media (max-width: 599.98px) {
  .hero__overlay {
    background:
      repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
      linear-gradient(0deg, var(--bg) 0%, rgba(14, 14, 15, .55) 45%, rgba(14, 14, 15, .7) 100%);
  }
}
.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 2rem + 4vh, 5rem) 2rem;
}
.hero__title {
  font-size: clamp(2.3rem, 1rem + 5.6vw, 5.25rem);
  line-height: .94;
}
.hero__title-accent {
  display: block;
  color: var(--text);
  position: relative;
}
.hero__title-accent em {
  font-style: normal;
  color: var(--red);
}
.hero__lead {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: #d0d0d5;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 419.98px) { .hero__actions .btn { flex: 1 1 100%; } }

.hero__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-bottom: clamp(1.5rem, 1rem + 2vh, 3rem);
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  background: rgba(16, 16, 18, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero__facts .icon { color: var(--red); width: 1.5rem; height: 1.5rem; }
@media (min-width: 900px) {
  .hero__facts { grid-template-columns: repeat(4, 1fr); }
  .hero__facts li { padding: 1.1rem 1.25rem; font-size: 1.0625rem; }
}
.hero__toggle {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 1rem);
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(14, 14, 15, .55);
  color: var(--text);
}
.hero.has-video .hero__toggle { display: inline-flex; }
.hero__toggle .icon { width: 18px; height: 18px; }
.hero__toggle .icon--play { display: none; }
.hero__toggle.is-paused .icon--play { display: block; }
.hero__toggle.is-paused .icon--pause { display: none; }

/* ---------- 01 Über uns ---------- */
.about__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.05fr 1fr; } }
.about__text p { max-width: 38rem; }
.about__figure { margin: 0; position: relative; }
.about__figure img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.about__figure figcaption {
  margin-top: .85rem;
  color: var(--text-subtle);
  font-size: .9rem;
}
.about__figure::before {
  content: '';
  position: absolute;
  top: -14px; right: -14px;
  width: 38%; height: 38%;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  border-top-right-radius: var(--radius);
  pointer-events: none;
}
@media (max-width: 599.98px) { .about__figure::before { top: -8px; right: -8px; } }

.vehicles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 2rem;
}
@media (min-width: 600px) { .vehicles { grid-template-columns: repeat(4, 1fr); } }
.vehicles li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vehicles .icon { width: 2rem; height: 2rem; color: var(--red); stroke-width: 1.4; }

.access { margin-top: clamp(3.5rem, 3rem + 3vw, 6rem); }
.access__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin-bottom: 1.75rem; }
.access__grid { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .access__grid { grid-template-columns: repeat(3, 1fr); } }
.access-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.access-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.access-card__body { padding: 1.25rem 1.25rem 1.5rem; }
.access-card__head { display: flex; align-items: center; gap: .65rem; margin-bottom: .6rem; }
.access-card__head .icon { color: var(--red); width: 1.6rem; height: 1.6rem; }
.access-card h4 { font-size: 1.5rem; }
.access-card p { font-size: 1rem; }

/* ---------- 02 Prüfstand ---------- */
.dyno { overflow: hidden; }
.dyno__lines {
  position: absolute;
  right: -6%;
  top: 4rem;
  width: min(900px, 80vw);
  opacity: .06;
  pointer-events: none;
}
.dyno__head { display: grid; gap: 2rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
@media (min-width: 900px) { .dyno__head { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.dyno__title { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.75rem); }
.dyno__title span { color: var(--red); }
.dyno__intro { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.badge-usp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .4rem .75rem;
  border: 1px solid rgba(232, 57, 47, .5);
  border-radius: 999px;
  background: rgba(232, 57, 47, .08);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.badge-usp::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(232, 57, 47, .2); }

/* Video-Player */
.player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  aspect-ratio: 16 / 9;
}
.player--portrait { aspect-ratio: 4 / 5; }
.player__video { width: 100%; height: 100%; object-fit: cover; background: #000; }

.dyno__stage { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .dyno__stage { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch; } }
.dyno__stage > * { min-width: 0; }
.dyno__kit { margin: 0; display: flex; flex-direction: column; }
.dyno__kit img { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); }
@media (min-width: 900px) { .dyno__kit img { flex: 1; min-height: 0; height: 100%; object-fit: cover; } }
.dyno__kit figcaption { margin-top: .9rem; color: var(--text-subtle); font-size: .9rem; }
.player::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55));
  transition: opacity .4s;
}
.player.is-started::after { opacity: 0; }
.player__big {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.player__big-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(76px, 10vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red-strong);
  box-shadow: 0 0 0 10px rgba(232, 57, 47, .18), 0 20px 40px -10px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.player__big-ring .icon { width: 38%; height: 38%; margin-left: 6%; color: #fff; }
.player__big > span:last-child {
  padding: .45rem .85rem;
  border-radius: 3px;
  background: rgba(14, 14, 15, .85);
}
.player__big:hover .player__big-ring { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(232, 57, 47, .16), 0 20px 40px -10px rgba(0, 0, 0, .7); }
.player__big:focus-visible { outline-offset: -6px; }
.player.is-started .player__big { display: none; }
.player.is-ended .player__big { display: flex; background: rgba(0, 0, 0, .45); }
.player__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .6rem .75rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
}
.player.is-started .player__bar { display: flex; }
.player__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 44px;
  height: 44px;
  padding: 0 .6rem;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.player__btn:hover { background: rgba(255, 255, 255, .18); }
.player__btn .icon { width: 20px; height: 20px; }
.player__btn .icon--alt { display: none; }
.player__btn.is-alt .icon--main { display: none; }
.player__btn.is-alt .icon--alt { display: block; }
.player__sound[aria-pressed="true"] { background: var(--red-strong); }
.player__progress { flex: 1; min-width: 60px; accent-color: var(--red); height: 44px; background: transparent; }
.player__time { color: #ddd; font-variant-numeric: tabular-nums; font-size: .85rem; min-width: 4.5rem; text-align: right; }
@media (max-width: 479.98px) { .player__time { display: none; } }
.player__error {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 4;
  display: none;
  padding: .75rem 1rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, .8);
  color: var(--text);
  font-size: .95rem;
  text-align: center;
}
.player.has-error .player__error { display: block; }
.player.has-error .player__big-ring { background: var(--surface-2); box-shadow: none; }
.player__caption { margin-top: .9rem; color: var(--text-subtle); font-size: .9rem; }

.dyno__body { display: grid; gap: 1.5rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 900px) { .dyno__body { grid-template-columns: 1fr 1fr; align-items: stretch; } }

.specs { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 600px) { .specs { grid-template-columns: 1fr 1fr; } }
.specs li { padding: 1.4rem 1.25rem 1.5rem; background: var(--surface); }
.specs__label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.specs__label .icon { color: var(--red); width: 1.5rem; height: 1.5rem; }
.specs p { font-size: .975rem; }

/* Tacho */
.gauge {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, #232326 0%, var(--surface) 60%);
}
.gauge__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gauge__tag {
  padding: .2rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text-subtle);
  font-size: .8rem;
  letter-spacing: .14em;
}
.gauge__dial { position: relative; width: 100%; max-width: 380px; margin: 1rem auto 0; }
.gauge__svg { width: 100%; height: auto; overflow: visible; }
.gauge__track { fill: none; stroke: #2c2c30; stroke-width: 12; stroke-linecap: round; }
.gauge__serie { fill: none; stroke: #6e6e76; stroke-width: 12; stroke-linecap: round; }
.gauge__gain { fill: none; stroke: var(--red); stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(232, 57, 47, .55)); }
.gauge__tick { stroke: #55555c; stroke-width: 2; }
.gauge__tick--major { stroke: #9a9aa2; stroke-width: 2.5; }
.gauge__num { fill: #9a9aa2; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.gauge__needle line { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.gauge__needle circle { fill: var(--surface-2); stroke: var(--red); stroke-width: 3; }
.gauge__readout {
  position: absolute;
  left: 50%;
  top: 69%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1;
  pointer-events: none;
}
.gauge__value {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 2rem + 2.5vw, 3.5rem);
  font-variant-numeric: tabular-nums;
}
.gauge__value small { font-size: .42em; letter-spacing: .1em; color: var(--text-subtle); margin-left: .15em; }
.gauge__plus {
  display: inline-block;
  margin-top: .35rem;
  padding: .25rem .55rem;
  border-radius: 3px;
  background: var(--red-strong);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.gauge__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.gauge__stats div { min-width: 0; }
.gauge__stats dt { color: var(--text-subtle); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.gauge__stats dd {
  margin: .2rem 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.gauge__stats dd.is-red { color: var(--red-text); }
.gauge__note { margin-top: 1rem; color: var(--text-subtle); font-size: .85rem; line-height: 1.5; }

/* ---------- 03 Leistungen ---------- */
.services { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1c1c1f 0%, #161618 100%);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.service::before {
  content: '';
  position: absolute;
  top: -1px; left: 1.35rem; right: 1.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(232, 57, 47, 0));
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.service:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }
.service:hover::before, .service:focus-within::before { transform: scaleX(1); }
@media (min-width: 640px) { .service--wide { grid-column: span 2; } }
.service__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.service__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  color: var(--red);
}
.service__icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.service__cat {
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.service__title { font-size: 1.5rem; line-height: 1.05; }
.service--wide .service__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.service__stages { display: flex; gap: .4rem; margin: .65rem 0 0; list-style: none; }
.service__stages li {
  padding: .2rem .55rem;
  border: 1px solid rgba(232, 57, 47, .45);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.service__text { margin-top: .75rem; font-size: .975rem; }
.service__more { margin-top: .9rem; border-top: 1px solid var(--line); }
.service__more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem 0;
  list-style: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.service__more summary::-webkit-details-marker { display: none; }
.service__more summary .icon { color: var(--red); transition: transform .3s var(--ease); }
.service__more[open] summary .icon { transform: rotate(180deg); }
.service__more p { padding-bottom: .5rem; font-size: .95rem; }
.service__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1rem;
}
.price-tag {
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.service__cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: 0 .1rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.service__cta .icon { color: var(--red); width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.service__cta:hover .icon { transform: translateX(3px); }
.services-note { margin-top: 1.75rem; color: var(--text-subtle); font-size: .95rem; }
.services__config-link { margin-top: 1.25rem; }
.player-wrap { margin: 0; }

/* ---------- 04 Chiptuning-Konfigurator ---------- */
.configurator__box {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1b1b1e 0%, #151517 100%);
  overflow: hidden;
}
.configurator__consent { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.configurator__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) { .configurator__steps { grid-template-columns: repeat(5, 1fr); } }
.configurator__steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 50px;
  padding: .6rem 2rem .6rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #121214;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.configurator__steps li::after {
  content: '';
  position: absolute;
  right: .9rem; top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid var(--text-subtle);
  border-bottom: 2px solid var(--text-subtle);
  transform: translateY(-70%) rotate(45deg);
}
.configurator__steps li:first-child { border-color: rgba(232, 57, 47, .7); color: var(--text); }
@media (max-width: 479.98px) {
  .configurator__steps li { gap: .45rem; padding: .55rem 1.5rem .55rem .55rem; font-size: .85rem; letter-spacing: .03em; }
  .configurator__steps li::after { right: .65rem; }
  .configurator__steps span { width: 1.4rem; height: 1.4rem; font-size: .78rem; }
}
.configurator__steps span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: .85rem;
}
.configurator__steps li:first-child span { background: var(--red-strong); }
.configurator__notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
}
@media (max-width: 599.98px) { .configurator__notice { grid-template-columns: 1fr; } }
.configurator__notice-icon { width: 1.75rem; height: 1.75rem; color: var(--red); }
.configurator__notice h3 { margin-bottom: .5rem; font-size: 1.3rem; letter-spacing: .03em; }
.configurator__notice p { margin-bottom: 1.1rem; font-size: .95rem; }
.configurator__frame { padding: clamp(.75rem, .5rem + 1vw, 1.25rem); }
.configurator__frame:focus { outline: none; }
.configurator__widget { min-height: 179px; }
.configurator__widget iframe { color-scheme: normal; }
.configurator__note { max-width: 760px; margin: 1.25rem auto 0; color: var(--text-subtle); font-size: .9rem; text-align: center; }

/* ---------- 04 Außerhalb des Straßenverkehrs ---------- */
.offroad { background: #101012; border-block: 1px solid var(--line); }
.offroad::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #101012 12px 24px);
  opacity: .85;
}
.offroad__grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .offroad__grid { grid-template-columns: 1fr 1.25fr; gap: 3.5rem; align-items: start; } }
.offroad__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.notice {
  display: flex;
  gap: .9rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(232, 57, 47, .55);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: rgba(232, 57, 47, .06);
  color: var(--text);
  font-size: .975rem;
}
.notice .icon { color: var(--red-text); width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
.notice strong { display: block; margin-bottom: .25rem; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.offroad__list { list-style: none; display: grid; gap: .75rem; }
.offroad__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem 1rem;
  align-items: start;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.offroad__item .icon { grid-row: span 3; width: 2rem; height: 2rem; color: var(--text-subtle); stroke-width: 1.4; margin-top: .1rem; }
.offroad__item h3 { font-size: 1.3rem; letter-spacing: .02em; }
.offroad__item p { font-size: .95rem; }
.offroad__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .25rem; }

/* ---------- 05 Ablauf ---------- */
.timeline { list-style: none; position: relative; display: grid; gap: 0; counter-reset: step; }
.timeline::before, .timeline::after {
  content: '';
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 2px;
  background: var(--line-strong);
}
.timeline::after {
  background: linear-gradient(180deg, var(--red), #ff7a5c);
  transform-origin: top;
  transform: scaleY(var(--progress, 1));
}
.timeline__step { position: relative; display: grid; grid-template-columns: 48px 1fr; align-content: start; gap: 1.25rem; padding-bottom: 2.25rem; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.section--alt .timeline__node { background: var(--bg-alt); }
.timeline__body { padding-top: .35rem; }
.timeline__icon { width: 1.75rem; height: 1.75rem; color: var(--red); margin-bottom: .6rem; }
.timeline__step h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.timeline__step p { font-size: .975rem; }
.timeline__hl { color: var(--text); }
@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .timeline::before, .timeline::after { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .timeline::after { transform-origin: left; transform: scaleX(var(--progress, 1)); background: linear-gradient(90deg, var(--red), #ff7a5c); }
  .timeline__step { grid-template-columns: 1fr; gap: 1.25rem; padding-bottom: 0; }
  .timeline__body { padding-top: 0; }
}

/* ---------- Referenzen (Karten, Filter, Lightbox) ---------- */
.ref-grid { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } }
.ref-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.ref-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9); }
.ref-card:focus-within { border-color: var(--text-subtle); }
.ref-card__media { position: relative; aspect-ratio: 16 / 10; background: #18181a; overflow: hidden; }
.ref-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ref-card:hover .ref-card__media img { transform: scale(1.03); }
.ref-card__hint {
  position: absolute;
  right: .75rem; bottom: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .6rem;
  border-radius: 3px;
  background: rgba(14, 14, 15, .82);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ref-card__hint .icon { width: 1rem; height: 1rem; color: var(--red); }
.ref-card__body { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.15rem 1.25rem; flex: 1; }
.ref-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  padding: .15rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tag--diesel { border-color: #5c5c64; color: var(--text); }
.tag--benzin { border-color: rgba(232, 57, 47, .55); color: var(--text); }
.ref-card__title { font-size: 1.45rem; line-height: 1.05; }
.ref-card__meta { margin: -.45rem 0 0; color: var(--text-subtle); font-size: .85rem; }
.lightbox__meta { margin-top: 1rem; color: var(--text); font-size: .9rem; }
.ref-card__btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
}
.ref-card__btn::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ref-card__btn:focus-visible { outline: none; }
.ref-card__btn:focus-visible::after { outline: 2px solid #fff; outline-offset: -4px; border-radius: var(--radius); }

.ref-bars { display: grid; gap: .9rem; margin: 0; }
.ref-bars dt {
  margin-bottom: .35rem;
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ref-bars dd { margin: 0; display: grid; gap: .35rem; }
.ref-bar { display: grid; grid-template-columns: 4.6rem 1fr 4.6rem; align-items: center; gap: .6rem; }
.ref-bar__label { color: var(--text-muted); font-size: .85rem; }
.ref-bar__track { position: relative; height: 10px; border-radius: 2px; background: #26262a; overflow: hidden; }
.ref-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  border-radius: 2px;
  background: #7a7a82;
  transform-origin: left;
}
.ref-bar__fill--measured { background: linear-gradient(90deg, #b8261e, var(--red)); }
.ref-bar__fill--pending {
  width: 100%;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 6px, transparent 6px 12px);
}
.ref-bar__val {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ref-bar__val--pending { color: var(--text-subtle); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.ref-card__gain {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.ref-card__gain span {
  color: var(--red-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.ref-card__gain span.is-pending { color: var(--text-subtle); font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }

.ref-teaser__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.ref-teaser__foot p { color: var(--text-subtle); font-size: .95rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--text-subtle); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--red-strong); border-color: var(--red-strong); color: #fff; }
.chip__count {
  min-width: 1.6em;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
  font-size: .85rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ref-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.ref-count { margin: 0; color: var(--text-subtle); font-size: .95rem; }
.ref-empty { padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }

.lightbox {
  width: min(1040px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(5, 5, 6, .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox__inner { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); }
.lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem .85rem .85rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.lightbox__title { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
.lightbox__close, .lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  flex-shrink: 0;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--surface-2); }
.lightbox__body { display: grid; gap: 1.25rem; padding: 1.25rem; overflow: auto; }
@media (min-width: 860px) { .lightbox__body { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.lightbox__media {
  display: grid;
  place-items: center;
  min-height: 240px;
  border-radius: 4px;
  background: #111113;
  overflow: hidden;
}
.lightbox__media img { width: 100%; height: auto; max-height: 70dvh; object-fit: contain; }
.lightbox__empty { padding: 2rem; text-align: center; color: var(--text-subtle); }
.lightbox__empty .icon { width: 2.5rem; height: 2.5rem; margin: 0 auto .75rem; color: var(--line-strong); }
.lightbox__table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.lightbox__table th, .lightbox__table td { padding: .6rem .4rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.lightbox__info { min-width: 0; overflow-x: auto; }
.lightbox__table th:first-child, .lightbox__table td:first-child { text-align: left; }
.lightbox__table thead th { color: var(--text-subtle); font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.lightbox__table td { color: var(--text); }
.lightbox__table .is-gain { color: var(--red-text); font-weight: 600; }
.lightbox__note { margin-top: 1rem; color: var(--text-subtle); font-size: .875rem; }
.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--line);
}
.lightbox__pos { color: var(--text-subtle); font-size: .9rem; font-variant-numeric: tabular-nums; }

/* ---------- 07 Kontakt & Formular ---------- */
.contact__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); }
.contact__grid > *, .about__grid > *, .dyno__head > *, .dyno__body > *, .offroad__grid > * { min-width: 0; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: .85fr 1.4fr; align-items: start; } }
.contact-list { list-style: none; display: grid; gap: .75rem; margin-top: 2rem; }
.contact-list a, .contact-list .contact-list__static {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.contact-list a:hover { border-color: var(--line-strong); background: var(--surface-2); }
.contact-list__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(232, 57, 47, .1);
  color: var(--red);
}
.contact-list__label { display: block; color: var(--text-subtle); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-list__value { display: block; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.contact-list__sub { display: block; color: var(--text-subtle); font-size: .875rem; }
.contact__area { margin-top: 1.75rem; color: var(--text-subtle); font-size: .95rem; }

.form-card {
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.form { display: grid; gap: 1.75rem; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.form__row { display: grid; gap: 1rem; }
@media (min-width: 600px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
  .form__row--vehicle { grid-template-columns: 1.2fr 1.4fr .8fr; }
}
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label, .field__label { color: var(--text); font-size: .95rem; font-weight: 600; }
.req { color: var(--red-text); }
.field__opt { color: var(--text-subtle); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #121214;
  color: var(--text);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #75757d; }
.field input:hover, .field textarea:hover { border-color: #55555c; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red-text); }
.field__hint { color: var(--text-subtle); font-size: .85rem; line-height: 1.45; }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  margin: 0;
  color: var(--red-text);
  font-size: .875rem;
  line-height: 1.4;
}
.field__error[hidden] { display: none; }
.input-upper { text-transform: uppercase; }
.input-upper::placeholder { text-transform: none; }

.hsn-hint {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: center;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  font-size: .9rem;
  line-height: 1.5;
}
.hsn-hint__doc {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 6px;
  padding: .45rem .6rem;
  border-radius: 3px;
  background: #e9e4d6;
  color: #2a2a2a;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  line-height: 1.3;
}
.hsn-hint__doc b { color: #a3241c; }

.checks { display: grid; gap: .5rem; }
@media (min-width: 600px) { .checks { grid-template-columns: 1fr 1fr; } }
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #151517;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.check:hover { border-color: var(--line-strong); }
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  margin: 0;
  border: 1.5px solid #6a6a72;
  border-radius: 3px;
  background: #0f0f10;
  cursor: pointer;
}
.check input::after {
  content: '';
  width: 11px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .15s var(--ease);
}
.check input:checked { background: var(--red-strong); border-color: var(--red-strong); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.check:has(input:checked) { border-color: rgba(232, 57, 47, .6); background: rgba(232, 57, 47, .07); }
.form__offroad-note { margin-bottom: .9rem; color: var(--text-subtle); font-size: .9rem; }
.confirm {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(232, 57, 47, .6);
  border-left-width: 4px;
  border-radius: 4px;
  background: rgba(232, 57, 47, .07);
}
.confirm[hidden] { display: none; }
.confirm .check { border: 0; background: transparent; padding: 0; font-weight: 600; }
.confirm .field__error { margin-top: .6rem; }

.form__submit { display: grid; gap: .9rem; }
.form__privacy { color: var(--text-subtle); font-size: .875rem; line-height: 1.5; }
.form-summary {
  padding: 1rem 1.1rem;
  border: 1px solid var(--red-text);
  border-radius: 4px;
  background: rgba(232, 57, 47, .08);
  color: var(--text);
}
.form-summary[hidden] { display: none; }
.form-summary h3 { font-size: 1.2rem; margin-bottom: .5rem; letter-spacing: .04em; }
.form-summary ul { padding-left: 1.2rem; }
.form-summary a { color: var(--text); }
.form-toast { min-height: 1.5em; margin: 0; color: var(--ok); font-size: .9rem; }

.fallback {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #151517;
}
.fallback[hidden] { display: none; }
.fallback__title { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; margin-bottom: .5rem; letter-spacing: .03em; }
.fallback__title .icon { color: var(--ok); }
.fallback textarea {
  width: 100%;
  min-height: 220px;
  margin: 1rem 0;
  padding: .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #0f0f10;
  color: var(--text);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: .85rem;
  line-height: 1.5;
  resize: vertical;
}
.fallback__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.fallback__status { min-height: 1.4em; margin-top: .75rem; color: var(--ok); font-size: .9rem; }
.fallback__status.is-error { color: var(--red-text); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); border-top: 1px solid var(--line); background: #0b0b0c; overflow: hidden; }
.site-footer__lines { position: absolute; right: -4%; bottom: 3rem; width: min(760px, 90vw); opacity: .05; pointer-events: none; }
.site-footer__grid { position: relative; display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__logo img { width: 210px; height: auto; }
.site-footer__claim { margin-top: 1.1rem; max-width: 26rem; font-size: .95rem; }
.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: .14em;
}
.site-footer ul { list-style: none; display: grid; gap: .35rem; }
.site-footer li a { display: inline-block; padding: .3rem 0; color: var(--text-muted); text-decoration: none; }
.site-footer li a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); }
.site-footer address { font-style: normal; font-size: .95rem; line-height: 1.7; }
.site-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-subtle);
  font-size: .875rem;
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer__bottom a { color: var(--text-subtle); }

/* ---------- Mobile CTA-Leiste ---------- */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--line-strong);
  background: rgba(14, 14, 15, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cta-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--cta-bar-h);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.cta-bar a + a { border-left: 1px solid var(--line); }
.cta-bar .icon { width: 22px; height: 22px; color: var(--red); }
.cta-bar a.cta-bar__primary { background: var(--red-strong); border-left-color: var(--red-strong); }
.cta-bar a.cta-bar__primary .icon { color: #fff; }
@media (min-width: 900px) { .cta-bar { display: none; } }

/* ---------- Unterseiten ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 5.5rem)) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero__lines { position: absolute; right: -8%; bottom: -10%; width: min(820px, 90vw); opacity: .07; pointer-events: none; }
.page-hero__title { position: relative; font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem); }
.page-hero__lead { position: relative; max-width: 46rem; margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.page-hero__note { position: relative; max-width: 46rem; margin-top: 1rem; color: var(--text-subtle); font-size: .925rem; }

.prose { max-width: 48rem; }
.prose h2 { margin: 2.75rem 0 1rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.75rem 0 .6rem; font-size: 1.3rem; letter-spacing: .03em; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--red); }
.prose address { font-style: normal; margin-bottom: 1em; }
.prose .prose__meta { margin-top: 3rem; color: var(--text-subtle); font-size: .9rem; }

.cta-band {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  padding: clamp(1.5rem, 1.2rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #1d1d20, #141416);
}
@media (min-width: 768px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
.cta-band p { margin-top: .6rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.error-page { min-height: 80vh; display: grid; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4rem; }
.error-page__code {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 4rem + 12vw, 13rem);
  line-height: .85;
}
.error-page__links { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .reveal-pending { opacity: 0; transform: translateY(18px); }

  .ref-bar__fill:not(.ref-bar__fill--pending) { transform: scaleX(0); transition: transform 1.1s var(--ease) .15s; }
  .ref-bar__fill--measured { transition-delay: .45s; }
  .is-visible .ref-bar__fill:not(.ref-bar__fill--pending) { transform: scaleX(1); }

  .timeline.is-animated { --progress: 0; }
  .timeline.is-animated::after { transition: transform 1.8s var(--ease) .2s; }
  .timeline.is-animated.is-visible::after { transform: scaleY(1); }
  .timeline.is-animated .timeline__step { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .timeline.is-animated.is-visible .timeline__step { opacity: 1; transform: none; }
  .timeline.is-animated.is-visible .timeline__step:nth-child(2) { transition-delay: .25s; }
  .timeline.is-animated.is-visible .timeline__step:nth-child(3) { transition-delay: .5s; }
  .timeline.is-animated.is-visible .timeline__step:nth-child(4) { transition-delay: .75s; }
  .timeline.is-animated.is-visible .timeline__step:nth-child(5) { transition-delay: 1s; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 960px) {
  .timeline.is-animated.is-visible::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .cta-bar, .hero__media, .player, .nav-toggle, .site-footer__lines { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  h1, h2, h3, h4, a, strong { color: #000; }
}
