/* ==========================================================================
   Automobilzentrum Nagold – Stylesheet
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b0b0c;
  --ink-2: #18181b;
  --ink-3: #26262a;
  --paper: #ecebe8;
  --paper-2: #f5f4f2;
  --white: #ffffff;
  --mute: #6d6d72;
  --mute-2: #9b9ba0;
  --line: rgba(11, 11, 12, .12);
  --line-light: rgba(255, 255, 255, .14);
  --steel: #77777c;
  --accent: #c8102e;

  --f-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--mute-2); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--white); }
.dark .btn--ghost { --fg: var(--white); border-color: var(--white); }
.dark .btn--ghost::before { background: var(--white); }
.dark .btn--ghost:hover { color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Logo (mit Glanz) ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo__mark { width: 52px; height: auto; flex: none; overflow: visible; }
.logo__mark .s1 { fill: url(#gradInk); }
.logo__mark .s2 { fill: var(--steel); }
.logo__text { display: flex; flex-direction: column; align-items: flex-end; }
.logo__main {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.025em;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, #8d8d93 50%, var(--ink) 60%, var(--ink) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s var(--ease-in-out) infinite;
}
.logo__sub {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .5em;
  margin-right: -.5em;
  color: var(--steel);
  margin-top: 3px;
  text-transform: uppercase;
}
.logo:hover .logo__main { animation-duration: 1.6s; }
.dark .logo__main, .logo--light .logo__main {
  background-image: linear-gradient(100deg, #fff 0%, #fff 40%, #8d8d93 50%, #fff 60%, #fff 100%);
}
.dark .logo__mark .s1, .logo--light .logo__mark .s1 { fill: url(#gradChrome); }
.dark .logo__mark .s2, .logo--light .logo__mark .s2 { fill: #8b8b91; }
@keyframes shine {
  0%, 55% { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}

/* ---------- Topbar & Header ---------- */
.topbar {
  background: var(--ink);
  color: #d7d7da;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--f-display);
  font-weight: 500;
  padding-top: var(--safe-top);
  position: relative;
  z-index: 60;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar__links { display: flex; gap: 18px; align-items: center; }
.topbar__links a { opacity: .85; transition: opacity .3s; }
.topbar__links a:hover { opacity: 1; }
.topbar__links .sep { opacity: .35; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease);
}
.header.is-scrolled {
  background: rgba(236, 235, 232, .82);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}
.nav { display: flex; gap: 30px; }
.nav a, .header__actions a {
  font-family: var(--f-display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 26px; }
.header__actions a { display: inline-flex; align-items: center; gap: 8px; }
.header__actions svg { width: 18px; height: 18px; }

.burger { display: none; width: 44px; height: 44px; position: relative; justify-self: end; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink);
  transition: transform .5s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; right: 18px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); right: 10px; }
.menu-open .burger span { background: var(--white); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink);
  color: var(--white);
  padding: calc(var(--header-h) + var(--safe-top) + 36px) var(--gutter) calc(32px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0 at calc(100% - 38px) 60px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 38px) 60px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--f-display);
  font-size: clamp(36px, 11vw, 64px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: .15s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .2s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .25s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .3s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .35s; }
.mobile-menu__foot { display: grid; gap: 10px; color: var(--mute-2); font-size: 15px; }
.mobile-menu__foot a { color: var(--white); }
.menu-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .header .logo__main { background-image: linear-gradient(100deg, #fff 0%, #fff 40%, #8d8d93 50%, #fff 60%, #fff 100%); }
.menu-open .header .logo__mark .s1 { fill: url(#gradChrome); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  background: var(--ink); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader svg { width: min(200px, 50vw); }
.preloader path {
  fill: none; stroke-width: 1.4;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: draw 1.2s var(--ease) forwards;
}
.preloader .s1 { stroke: #fff; }
.preloader .s2 { stroke: #8b8b91; animation-delay: .15s; }
.preloader__word {
  margin-top: 18px; color: #fff; text-align: center;
  font-family: var(--f-display); font-size: 12px; letter-spacing: .5em; text-transform: uppercase;
  opacity: 0; animation: fadeUp .8s .5s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 36px - var(--safe-top));
  min-height: max(640px, calc(100svh - 36px - var(--safe-top)));
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 100%, #dcdbd7 0%, transparent 60%),
    var(--paper);
}
.hero__grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: clamp(24px, 6vh, 72px);
  padding-bottom: clamp(28px, 6vh, 64px);
}
.hero__claim {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: .36em;
  text-transform: uppercase;
  line-height: 2.1;
  font-weight: 500;
  position: relative;
  z-index: 3;
}
.hero__claim::after { content: ""; display: block; width: 36px; height: 1px; background: var(--ink); margin-top: 12px; }

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(240px, 46vh, 520px);
}
.hero__word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(84px, 21.5vw, 360px);
  letter-spacing: -.055em;
  line-height: .8;
  color: var(--ink);
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}
.hero__word span { display: inline-block; transform: translateY(110%); opacity: 0; }
.is-ready .hero__word span { animation: letterIn 1.2s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .1s); }
@keyframes letterIn { to { transform: none; opacity: 1; } }

.hero__car-wrap {
  position: relative;
  z-index: 2;
  width: min(1040px, 96%);
  margin-top: clamp(40px, 9vw, 150px);
  transition: transform 1.2s var(--ease);
}
.hero__car { width: 100%; height: auto; transform: translateX(-120vw); }
.hero__word { transition: transform 1.2s var(--ease); }
[data-parallax] { translate: 0 var(--py, 0px); }
.is-ready .hero__car { animation: driveIn 2.2s .55s var(--ease) forwards; }
@keyframes driveIn {
  0% { transform: translateX(-120vw) skewX(8deg); }
  70% { transform: translateX(1.5%) skewX(-1deg); }
  100% { transform: translateX(0) skewX(0); }
}
.hero__car .wheel { transform-box: fill-box; transform-origin: center; }
.is-ready .hero__car .wheel { animation: spin 2.2s .55s var(--ease) forwards; }
@keyframes spin { from { transform: rotate(-1440deg); } to { transform: rotate(0); } }
.hero__car .reflex { animation: reflex 5s 3s var(--ease-in-out) infinite; }
@keyframes reflex { 0%, 60% { transform: translateX(-900px); } 100% { transform: translateX(900px); } }
.hero.is-live .hero__car .wheel { animation: none; }

/* Scroll-Fahrt: Hero bleibt stehen, während das Auto startet und wegfährt */
.hero-pin { position: relative; height: 270vh; margin-top: calc(var(--header-h) * -1); }
.hero-pin .hero { position: sticky; top: 0; margin-top: 0; height: 100vh; height: 100svh; min-height: 560px; }
.hero__smoke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.hero__car-drive { transform-origin: 24% 74%; will-change: transform; }
.hero__car { overflow: visible; --lights: 0; --tail: 0; }
.hero__car .beam { opacity: calc(var(--lights) * .6); }
.hero__car .lamp { opacity: calc(.35 + var(--lights) * .65); }
.hero__car .drl { opacity: var(--lights); }
.hero__car .tailglow { opacity: var(--tail); }
.hero__car .tail { filter: brightness(calc(1 + var(--tail) * .8)); }
.hero__hint {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--mute); opacity: 0; transition: opacity .6s var(--ease);
}
.hero.is-live .hero__hint { opacity: var(--hint, 1); }
.hero__hint span { width: 8px; height: 8px; border-radius: 50%; background: #d63a3a; box-shadow: 0 0 0 0 rgba(214, 58, 58, .6); animation: pulseRed 1.6s infinite; }
@keyframes pulseRed { 70% { box-shadow: 0 0 0 9px rgba(214, 58, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 58, 58, 0); } }
.split__visual svg.car { overflow: visible; }
.split__visual .beam { opacity: .35; }
.split__visual .tailglow { opacity: .8; }

.speedlines { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.speedlines i {
  position: absolute;
  left: -40%;
  height: 1px;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(11, 11, 12, .35), transparent);
  opacity: 0;
}
.is-ready .speedlines i { animation: streak 2.4s var(--ease) forwards; }
@keyframes streak { 0% { left: -40%; opacity: 0; } 20% { opacity: 1; } 100% { left: 120%; opacity: 0; } }

.hero__bottom {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__meta {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: .36em;
  text-transform: uppercase;
  line-height: 2.1;
  font-weight: 500;
  text-align: left;
}
.hero__meta::after { content: ""; display: block; width: 36px; height: 1px; background: var(--ink); margin-top: 10px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 1px; height: 44px; background: var(--line); overflow: hidden; z-index: 4;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%;
  background: var(--ink); animation: cue 2s var(--ease-in-out) infinite;
}
@keyframes cue { to { top: 110%; } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-light);
}
.marquee__track { display: inline-flex; animation: marquee 32s linear infinite; padding: 22px 0; }
.marquee__track span {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -.01em;
  padding: 0 28px;
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee__track span::after { content: ""; width: 10px; height: 10px; border: 1px solid #8b8b91; transform: rotate(45deg); }
.marquee__track span:nth-child(even) { color: #8b8b91; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section--white { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--white); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section__title { font-size: clamp(34px, 5.4vw, 76px); font-weight: 700; letter-spacing: -.035em; margin-top: 16px; }
.section__title em { font-style: normal; color: var(--steel); }
.dark .section__title em { color: #8b8b91; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--mute); max-width: 52ch; }
.dark .lead { color: var(--mute-2); }

/* Services band (like category band) */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.service {
  position: relative;
  background: var(--ink);
  padding: clamp(28px, 3.4vw, 48px);
  display: grid;
  gap: 18px;
  align-content: start;
  overflow: hidden;
  isolation: isolate;
  min-height: 340px;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .09), transparent 70%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.service:hover::before { opacity: 1; }
.service__num { font-family: var(--f-display); font-size: 13px; color: var(--mute-2); letter-spacing: .2em; }
.service__icon { width: 56px; height: 56px; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; transition: background .5s var(--ease), color .5s var(--ease); }
.service__icon svg { width: 24px; height: 24px; }
.service:hover .service__icon { background: var(--white); color: var(--ink); }
.service h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.service p { color: #b9b9be; max-width: 34ch; }
.service .link-arrow { margin-top: auto; justify-self: start; }

/* Statement (scroll text reveal) */
.statement { padding: clamp(90px, 14vw, 200px) 0; }
.statement__text {
  font-family: var(--f-display);
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
  max-width: 18ch;
}
.statement__text .w { opacity: .14; transition: opacity .4s linear; }
.statement__text .w.on { opacity: 1; }
.statement__row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.statement__mark { width: clamp(120px, 18vw, 260px); }
.statement__mark path { fill: none; stroke-width: 1; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 2.4s var(--ease); }
.statement__mark .s1 { stroke: var(--ink); }
.statement__mark .s2 { stroke: var(--steel); transition-delay: .2s; }
.statement__mark.is-in path { stroke-dashoffset: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); }
.stat { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--f-display); font-size: clamp(40px, 5vw, 68px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat__label { margin-top: 10px; color: var(--mute); font-size: 14px; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); counter-reset: s; }
.step {
  position: relative;
  padding: 30px 26px 32px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transition: background .6s var(--ease), color .6s var(--ease);
}
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--f-display); font-size: 88px; font-weight: 700; letter-spacing: -.05em; line-height: .9;
  color: rgba(255, 255, 255, .14);
  transition: color .6s var(--ease);
}
.step h3 { font-size: 22px; font-weight: 600; margin-top: auto; }
.step p { color: #b9b9be; font-size: 15px; transition: color .6s var(--ease); }
.step:hover { background: var(--white); color: var(--ink); }
.step:hover::before { color: var(--ink); }
.step:hover p { color: var(--mute); }

/* Features row */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: clamp(36px, 4vw, 56px) 0; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature svg { width: 30px; height: 30px; flex: none; stroke-width: 1.3; }
.feature h4 { font-family: var(--f-display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.feature p { font-size: 14px; color: var(--mute); margin-top: 4px; }

/* Split section (Ankauf) */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__visual {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; container-type: inline-size;
  background: radial-gradient(90% 70% at 50% 85%, #3b3b40 0%, #111113 60%, #0b0b0c 100%);
  display: grid; place-items: center;
}
.split__visual .big {
  position: absolute; inset: auto 0 6% 0; text-align: center;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 10vw, 140px); font-size: 21cqw; letter-spacing: -.06em; line-height: .8;
  color: rgba(255, 255, 255, .06);
}
.split__visual svg.car { width: 88%; position: relative; z-index: 1; margin-top: -12%; }
.split__visual .price-tag {
  position: absolute; z-index: 2; right: 7%; top: 9%;
  background: var(--white); color: var(--ink); padding: 14px 18px; border-radius: var(--radius);
  font-family: var(--f-display); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  animation: float 5s var(--ease-in-out) infinite;
}
.price-tag small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.price-tag strong { font-size: 24px; letter-spacing: -.02em; }
@keyframes float { 50% { transform: translateY(-10px); } }
.checklist { display: grid; gap: 14px; margin: 28px 0 36px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); }
.contact__info { display: grid; gap: 34px; align-content: start; }
.contact__block h4 { font-family: var(--f-display); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-bottom: 10px; }
.contact__block p, .contact__block a { font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.contact__block a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact__block a:hover { background-size: 100% 1px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; font-size: 16px; }
.hours dt { color: var(--mute); }
.hours dd { margin: 0; font-weight: 500; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; }
.open-badge i { width: 8px; height: 8px; border-radius: 50%; background: #9b9ba0; }
.open-badge.is-open i { background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; background: var(--white); padding: clamp(22px, 3vw, 44px); border-radius: var(--radius); }
.form h3 { grid-column: 1 / -1; font-size: 28px; margin-bottom: 6px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; /* 16px verhindert Auto-Zoom auf iPhone */
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s, background .3s;
}
.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='%230b0b0c' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.form__actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.form__note { grid-column: 1 / -1; font-size: 12.5px; color: var(--mute); }
.form__note a { text-decoration: underline; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.cta-band h2 { font-size: clamp(40px, 8vw, 120px); letter-spacing: -.05em; font-weight: 700; }
.cta-band p { margin: 22px auto 36px; color: var(--mute-2); max-width: 46ch; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band__lines { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.cta-band .container { position: relative; z-index: 1; }

/* Footer */
.footer { background: var(--ink); color: #c9c9cd; padding: clamp(60px, 8vw, 100px) 0 calc(28px + var(--safe-bottom)); border-top: 1px solid var(--line-light); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-family: var(--f-display); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--white); margin: 0 0 18px; font-weight: 600; }
.footer li { margin-bottom: 10px; font-size: 15px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--white); }
.footer__about { margin-top: 22px; max-width: 34ch; font-size: 15px; color: #9b9ba0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13px; color: #8b8b91; }
.footer__giant {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.06em; line-height: .78;
  font-size: clamp(64px, 17.5vw, 290px); color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text;
  white-space: nowrap; margin-top: clamp(40px, 6vw, 80px); user-select: none; text-align: center;
}

/* Floating WhatsApp / Call button (mobil) */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + var(--safe-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55);
  transform: scale(0); transition: transform .6s var(--ease);
}
.fab.is-visible { transform: scale(1); }
.fab svg { width: 26px; height: 26px; }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ink); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(52px, 11vw, 168px); letter-spacing: -.055em; line-height: .86; font-weight: 700; margin-top: 18px; }
.page-hero h1 em { font-style: normal; color: var(--steel); }
.page-hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.page-hero .lead { margin-top: 22px; }

/* mobile.de – eingebetteter Live-Bestand */
.mde__logo { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.mde__logo b { color: var(--steel); font-weight: 800; }
.mde__txt { font-family: var(--f-display); font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.mde-section { padding-bottom: clamp(72px, 10vw, 140px); }
.mde-frame {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .35), 0 0 0 1px var(--line);
}
.mde-frame__bar {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 18px;
  background: var(--ink); color: var(--white);
  font-family: var(--f-display); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.mde-frame__dots { display: inline-flex; gap: 6px; }
.mde-frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; }
.mde-frame__live { display: inline-flex; align-items: center; gap: 8px; }
.mde-frame__live i { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .6); animation: pulse 2s infinite; }
.mde-frame__open { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; opacity: .8; transition: opacity .3s; }
.mde-frame__open:hover { opacity: 1; }
.mde-frame__open svg { width: 14px; height: 14px; }
.mde-frame__body { position: relative; height: calc(100svh - var(--header-h) - 120px); min-height: 620px; max-height: 1400px; background: var(--paper-2); }
.mde-frame__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--white); opacity: 0; transition: opacity .8s var(--ease); }
.mde-frame__body.is-loaded iframe { opacity: 1; }
.mde-frame__state { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.mde-frame__state .mde__logo { animation: breathe 2.4s var(--ease-in-out) infinite; }
.mde-frame__state p { max-width: 44ch; color: var(--mute); font-size: 15px; }
.mde-frame__state code { background: var(--paper); padding: 2px 6px; border-radius: 3px; font-size: 13px; }
.mde-frame__body.is-loaded .mde-frame__state { display: none; }
@keyframes breathe { 50% { opacity: .45; transform: scale(.97); } }
.mde-frame__note { margin-top: 16px; text-align: center; font-size: 14px; color: var(--mute); }
.mde-frame__note a { color: var(--ink); text-decoration: underline; }

/* Startseite: Bestand-Teaser */
.stock { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.stock__visual {
  display: block; border-radius: 10px; overflow: hidden; background: var(--white);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .35), 0 0 0 1px var(--line);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.stock__visual:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 60px 90px -40px rgba(0, 0, 0, .4), 0 0 0 1px var(--line); }
.stock__brand { margin-left: auto; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -.03em; text-transform: none; }
.stock__brand b { color: #8b8b91; }
.stock__rows { padding: 18px; display: grid; gap: 12px; background: var(--paper-2); }
.stock__row {
  display: grid; grid-template-columns: 30% 1fr auto; gap: 16px; align-items: center;
  background: var(--white); border-radius: 6px; padding: 12px;
  opacity: 0; transform: translateY(18px);
  animation: rowIn 6s var(--ease) infinite; animation-delay: calc(var(--i) * .25s);
}
.stock__thumb { aspect-ratio: 4 / 3; border-radius: 4px; background: linear-gradient(100deg, #e3e2de 30%, #f1f0ed 50%, #e3e2de 70%); background-size: 300% 100%; animation: skel 1.6s linear infinite; }
.stock__lines { display: grid; gap: 8px; }
.stock__lines i { height: 9px; border-radius: 5px; background: #e6e5e2; }
.stock__lines i:nth-child(1) { width: 70%; background: #cfcecb; }
.stock__lines i:nth-child(2) { width: 90%; }
.stock__lines i:nth-child(3) { width: 50%; }
.stock__price { width: 64px; height: 18px; border-radius: 5px; background: var(--ink); }
@keyframes rowIn { 0% { opacity: 0; transform: translateY(18px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes skel { to { background-position: -150% 0; } }

/* Cookie-/Einwilligungs-Banner */
.consent {
  position: fixed; z-index: 190;
  left: 16px; bottom: calc(16px + var(--safe-bottom));
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px); overflow: auto;
  background: rgba(11, 11, 12, .96); color: #d7d7da;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-light); border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  transform: translateY(calc(100% + 40px)); opacity: 0;
  transition: transform .9s var(--ease), opacity .5s var(--ease);
}
.consent.is-open { transform: none; opacity: 1; }
.consent__head { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--f-display); font-size: 18px; margin-bottom: 10px; }
.consent__head svg { width: 26px; height: 26px; flex: none; animation: cookieSpin 6s var(--ease-in-out) infinite; }
@keyframes cookieSpin { 0%, 70% { transform: rotate(0); } 80% { transform: rotate(-14deg); } 90% { transform: rotate(10deg); } 100% { transform: rotate(0); } }
.consent__text { font-size: 14px; line-height: 1.55; }
.consent__text b { color: var(--white); font-weight: 600; }
.consent__text a { color: var(--white); text-decoration: underline; }
.consent__details { display: grid; gap: 10px; margin-top: 16px; }
.consent__details[hidden] { display: none; }
.consent__opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line-light); border-radius: 10px; cursor: pointer; }
.consent__opt span { display: grid; gap: 2px; font-size: 14px; color: var(--white); }
.consent__opt small { font-size: 12.5px; color: #9b9ba0; }
.consent__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 99px; background: #3a3a3e; transition: background .3s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .4s var(--ease); }
.consent__opt input:checked + .switch { background: #1f9d55; }
.consent__opt input:checked + .switch::after { transform: translateX(18px); }
.consent__opt input:disabled + .switch { opacity: .55; }
.consent__opt input:focus-visible + .switch { outline: 2px solid var(--white); outline-offset: 2px; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.consent__actions .btn { min-height: 46px; padding: 0 12px; font-size: 11.5px; letter-spacing: .1em; }
.consent .btn--ghost { --fg: var(--white); border-color: rgba(255, 255, 255, .5); }
.consent .btn--ghost::before { background: var(--white); }
.consent .btn--ghost:hover { color: var(--ink); }
.consent__more { display: block; margin: 12px auto 0; font-size: 13px; color: #b9b9be; text-decoration: underline; text-underline-offset: 3px; }
.consent__more.is-save { color: var(--white); font-weight: 600; }
.consent-open .fab { transform: scale(0); }

/* mobile.de erst nach Zustimmung laden */
.mde-gate { display: grid; justify-items: center; gap: 16px; margin-top: 8px; max-width: 46ch; }
.mde-gate p { color: var(--mute); font-size: 15px; }
.mde-gate__more { font-size: 13px; color: var(--mute); text-decoration: underline; }
.footer__bottom button { font-size: inherit; color: inherit; text-decoration: none; }
.footer__bottom button:hover { color: var(--white); }

.inline-link { color: inherit; text-decoration: underline; font: inherit; }
/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; }
.legal h3 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: #3b3b40; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal a { text-decoration: underline; }
.notice { background: #fff6d6; border: 1px solid #ecd486; padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 28px; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.img-reveal { position: relative; }
.img-reveal::after { content: ""; position: absolute; inset: 0; z-index: 5; background: var(--paper); transform-origin: 50% 0; transition: transform 1.4s var(--ease-in-out); pointer-events: none; }
.img-reveal.is-in::after { transform: scaleY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .header__actions .hide-md { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .header__inner { grid-template-columns: 1fr auto; }
  .nav, .header__actions { display: none; }
  .burger { display: block; }
  .logo__mark { width: 44px; }
  .logo__main { font-size: 19px; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .split, .contact, .stock { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .statement__row { grid-template-columns: 1fr; }
  .statement__mark { display: none; }
}
@media (max-width: 720px) {
  .topbar .container { justify-content: center; }
  .topbar__left { display: none; }
  .hero__claim, .hero__meta { font-size: 10.5px; letter-spacing: .3em; }
  .hero { min-height: 0; }
  .hero-pin { height: 240vh; }
  .hero__grid { padding-top: 28px; padding-bottom: 52px; }
  .hero__hint { top: 2vh; bottom: auto; font-size: 10px; letter-spacing: .22em; }
  .hero__word { font-size: 25.5vw; }
  .hero__car-wrap { width: 112%; margin-top: 26vw; }
  .hero__stage { min-height: 0; padding: 9vh 0 5vh; }
  .hero__meta { display: none; }
  .hero__ctas { width: 100%; flex-direction: column; align-items: stretch; gap: 18px; }
  .hero__ctas .link-arrow { align-self: center; }
  .btn { padding: 0 20px; }
  .scroll-cue { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .mde-frame__body { height: calc(100svh - var(--header-h) - 90px); min-height: 520px; }
  .mde-frame__bar { padding: 10px 14px; gap: 12px; }
  .mde-frame__dots, .hide-sm { display: none; }
  .consent { left: 10px; bottom: calc(10px + var(--safe-bottom)); width: calc(100% - 20px); padding: 20px 18px 16px; }
  .step { min-height: 0; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split-line > span { opacity: 1 !important; transform: none !important; }
  .img-reveal::after { display: none; }
  .hero__car { transform: none !important; }
  .hero-pin { height: auto; }
  .hero-pin .hero { position: relative; }
  .hero__hint, .hero__smoke { display: none; }
  .consent { transition: none; }
  .hero__word span { transform: none !important; opacity: 1 !important; }
  .marquee__track { animation: none; }
  .stock__row { opacity: 1; transform: none; animation: none; }
}
.split__visual { --cut: #1a1a1d; }
