/* ============================================================
   GNP Luxury Car Care - Design-System
   Klon-Aufbau nach 363sudbury.com:
   schwarze Bühne, schwebende Panels (6px Radius), gelber
   Explore-Button unten mittig, Bento-Dashboard als Menü.
   ============================================================ */

:root {
  /* Farben (gemessen an der Referenz) */
  --color-yellow: #eaff00;
  --color-yellow-dark: #bbcc03;
  --color-white: #fff;
  --color-black: #000;
  --color-near-black: #1a1a1a;
  --color-dark-grey: #4d4d4d;
  --color-grey: #b3b3b3;
  --color-light-grey: #f6f6f6;

  /* Typografie */
  --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-logo: "Big Shoulders Display", "Archivo", sans-serif;

  /* Fluide Typoskala (320 → 1140px) */
  --text-3xl: clamp(3.03rem, 2.14rem + 4.45vw, 5.31rem);
  --text-2xl: clamp(2.33rem, 1.54rem + 3.93vw, 4.34rem);   /* 69.5px h2 der Referenz */
  --text-xl:  clamp(2rem, 1.41rem + 2.93vw, 3.5rem);
  --text-lg:  clamp(1.62rem, 1.3rem + 1.61vw, 2.44rem);
  --text-md:  clamp(1.35rem, 1.29rem + 0.29vw, 1.5rem);
  --text-sm:  clamp(1.01rem, 0.99rem + 0.12vw, 1.0625rem);
  --text-xs:  clamp(0.875rem, 0.86rem + 0.12vw, 0.9375rem);

  --radius: 6px;
  --radius-sm: 4px;
  --gap: 8px;
  --chrome: 24px;              /* Abstand der fixen Bedienelemente zum Rand */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration-0: .3s;
  --duration-1: .5s;
  --duration-2: .15s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--color-yellow); color: var(--color-black); }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.muted { color: var(--color-grey); }
.accent { color: var(--color-yellow); }

/* ============================================================
   Ladescreen
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-black);
  display: grid;
  place-items: center;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}

.loader.done { opacity: 0; visibility: hidden; }
.loader.skip { display: none; }

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.loader-logo img {
  display: block;
  width: min(56vw, 250px);
  height: auto;
  filter: drop-shadow(0 14px 44px rgba(0, 0, 0, .8));
}

.loader-bar {
  width: min(220px, 50vw);
  height: 3px;
  margin-top: 8px;
  background: rgba(255, 255, 255, .15);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--color-yellow);
  border-radius: 2px;
  animation: loader-slide 1.1s var(--ease) infinite;
}

@keyframes loader-slide {
  from { translate: -110% 0; }
  to   { translate: 260% 0; }
}

/* Logo-Schnitt: durchgehender horizontaler Strich durch die ganze
   Wortmarke, wie im GNP-Original-Logo (Stencil-Optik) */
.logo-cut {
  -webkit-mask-image: linear-gradient(to bottom, #000 0 53%, transparent 53% 57%, #000 57% 100%);
  mask-image: linear-gradient(to bottom, #000 0 53%, transparent 53% 57%, #000 57% 100%);
}

/* Partner-Logos auf hellen Kacheln */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: var(--gap);
  margin-top: 28px;
}

.partner-tile {
  background: var(--color-light-grey);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 20px;
  min-height: 108px;
  transition: outline-color var(--duration-2) var(--ease);
  outline: 1px solid transparent;
  outline-offset: -1px;
}

.partner-tile:hover { outline-color: var(--color-yellow); }

.partner-tile img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

/* Shop: Produktbilder auf heller Fläche, Preis in Gelb */
.product-figure {
  background: var(--color-light-grey);
}

.product-figure img {
  object-fit: contain;
  padding: 14px;
}

.product-price {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-yellow) !important;
  letter-spacing: -.01em;
}

.product-btn { justify-self: start; margin-top: 4px; }

/* ============================================================
   Fixe Bedienelemente (Chrome) - auf jeder Seite identisch
   ============================================================ */

/* Logo-Box oben links (wie die "363"-Box) */
.chrome-logo {
  position: fixed;
  top: var(--chrome);
  left: var(--chrome);
  z-index: 60;
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .35);
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--color-white);
  transition: border-color var(--duration-0) var(--ease), color var(--duration-0) var(--ease);
}

.chrome-logo:hover { border-color: var(--color-yellow); color: var(--color-yellow); }

.chrome-logo img {
  display: block;
  width: 38px;
  height: auto;
  transition: scale .3s var(--ease);
}

.chrome-logo:hover img { scale: 1.08; }

/* Explore/Close-Button unten mittig */
.chrome-action {
  position: fixed;
  bottom: var(--chrome);
  left: 50%;
  translate: -50% 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 214px;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-yellow);
  color: var(--color-black);
  font: 500 15px/1 var(--font-sans);
  cursor: pointer;
  transition: background var(--duration-0) var(--ease), color var(--duration-0) var(--ease);
}

.chrome-action:hover { background: var(--color-yellow-dark); }

.chrome-action .icon-close { display: none; }

.chrome-action .label-open { display: inline; }
.chrome-action .label-close { display: none; }

body.menu-open .chrome-action {
  background: var(--color-near-black);
  color: var(--color-white);
}

body.menu-open .chrome-action:hover { background: #262626; }
body.menu-open .chrome-action .icon-burger { display: none; }
body.menu-open .chrome-action .icon-close { display: block; }
body.menu-open .chrome-action .label-open { display: none; }
body.menu-open .chrome-action .label-close { display: inline; }

.chrome-action svg { width: 16px; height: 16px; }

/* Link unten rechts (Pendant zu "Member Login") */
.chrome-corner {
  position: fixed;
  bottom: var(--chrome);
  right: var(--chrome);
  z-index: 60;
  font-size: 13px;
  color: var(--color-light-grey);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--duration-2) var(--ease);
}

.chrome-corner:hover { color: var(--color-yellow); }

/* Rechtliches unten links */
.chrome-legal {
  position: fixed;
  bottom: var(--chrome);
  left: var(--chrome);
  z-index: 60;
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--color-grey);
}

.chrome-legal a { text-decoration: underline; text-underline-offset: 4px; }
.chrome-legal a:hover { color: var(--color-white); }

/* ============================================================
   Startseite - Intro: Logo mittig, Foto-Collage fliegt beim
   Scrollen nach außen davon (Scroll-Fortschritt = --p, via JS)
   ============================================================ */
.collage {
  position: relative;
  height: 260svh;
}

.collage-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--color-black);
  display: grid;
  place-items: center;
}

/* Horizontale Foto-Lamellen über die volle Breite */
.collage-strip {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  gap: 2px;
  background: var(--color-black);
}

.strip-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: flex-grow .65s var(--ease);
  animation: strip-in 1s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms + .15s);
  will-change: flex-grow, translate;
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.42) saturate(.75);
  scale: 1.04;
  transition: filter .65s var(--ease), scale .65s var(--ease), opacity .45s var(--ease);
}

/* Licht-an-Variante: liegt über dem Aus-Bild und erscheint beim Hover */
.strip-item img.on {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: none;
}

.strip-item:hover { flex-grow: 2.6; }

.strip-item:hover img {
  filter: brightness(.95) saturate(1);
  scale: 1;
}

.strip-item:hover img.on { opacity: 1; }

@keyframes strip-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-Ausgang: Lamellen gleiten abwechselnd nach oben/unten hinaus */
.strip-item:nth-child(odd)  { translate: 0 calc(var(--p, 0) * -118%); }
.strip-item:nth-child(even) { translate: 0 calc(var(--p, 0) * 118%); }

.collage-title {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;   /* Hover soll die Lamellen dahinter erreichen */
  /* Ab ~55 % der Hero-Strecke zoomt das Logo auf und verblasst */
  scale: calc(1 + var(--p, 0) * .35);
  opacity: calc(1 - max(0, var(--p, 0) - 0.55) * 2.8);
  animation: title-in 1s var(--ease) .1s both;
}

@keyframes title-in {
  from { translate: 0 26px; }
  to   { translate: 0 0; }
}

.collage-title .kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.collage-title h1 {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(7rem, 30vw, 24rem);
  line-height: .9;
  letter-spacing: .01em;
  color: var(--color-white);
  text-shadow: 0 20px 80px rgba(0, 0, 0, .9);
}

/* Original-Logo-Datei im Hero */
.collage-title .collage-logo { line-height: 0; margin-top: 14px; }

.collage-title .collage-logo img {
  width: min(52vw, 440px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 60px rgba(0, 0, 0, .85));
}

.collage-title .lcc {
  font-size: clamp(.85rem, 2.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--color-light-grey);
  margin-top: 4px;
}

.collage-title .bar {
  display: block;
  width: 64px;
  height: 4px;
  background: var(--color-yellow);
  margin: 24px auto 0;
  border-radius: 2px;
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-grey);
  animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
  opacity: calc(1 - var(--p, 0) * 3);
}

@keyframes pulse {
  50% { opacity: .45; }
}

@keyframes fade-up {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}

@media (max-width: 640px) {
  .collage { height: 220svh; }
  .collage-strip .strip-item:nth-child(n + 5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .collage { height: auto; }
  .collage-sticky { position: relative; }
  .strip-item, .strip-item img, .collage-title { animation: none; opacity: 1; scale: 1; translate: none; }
  .scroll-hint { animation: none; }
}

/* Graue Sektion unter dem Vollbild (Sektion 1 der Referenz, #4D4D4D) */
.band {
  padding: var(--gap);
}

.band-inner {
  background: var(--color-near-black);
  border-radius: var(--radius);
  min-height: 92svh;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(2.5rem, 8vw, 7rem);
}

.band-inner h2 {
  font-size: var(--text-2xl);
  line-height: 1;
  max-width: 16ch;
}

.band-inner p {
  font-size: var(--text-md);
  line-height: 1.45;
  max-width: 52ch;
  color: rgba(255, 255, 255, .88);
}

.band-inner .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Variante mit Video rechts, das nach links in die Fläche verblasst */
.band-inner.band-media {
  position: relative;
  overflow: hidden;
}

.band-media .band-text {
  position: relative;
  z-index: 1;
  max-width: min(34rem, 55%);
  display: grid;
  gap: 28px;
}

.band-video {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 62%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%);
  mask-image: linear-gradient(to right, transparent 0, #000 45%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .band-media .band-text { max-width: 100%; }
  .band-video {
    position: relative;
    width: calc(100% + 2 * clamp(2.5rem, 8vw, 7rem));
    margin: 24px calc(-1 * clamp(2.5rem, 8vw, 7rem)) calc(-1 * clamp(2.5rem, 8vw, 7rem));
    height: auto;
    aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  }
}

/* „Aufploppen" einer Sektion */
.reveal-pop {
  opacity: 0;
  scale: .9;
  transition: opacity .55s var(--ease), scale .55s cubic-bezier(.34, 1.56, .64, 1);
}

.reveal-pop.in-view { opacity: 1; scale: 1; }

/* Seitliches Einfliegen: Text von links, Video von rechts */
.reveal-side .band-text {
  opacity: 0;
  translate: -9vw 0;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
}

.reveal-side .band-video {
  opacity: 0;
  translate: 9vw 0;
  transition: opacity .8s var(--ease) .1s, translate .8s var(--ease) .1s;
}

.reveal-side.in-view .band-text,
.reveal-side.in-view .band-video {
  opacity: 1;
  translate: 0 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 15px/1 var(--font-sans);
  padding: 15px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration-0) var(--ease), color var(--duration-0) var(--ease), border-color var(--duration-0) var(--ease);
}

.btn-primary { background: var(--color-yellow); color: var(--color-black); }
.btn-primary:hover { background: var(--color-yellow-dark); }

.btn-dark { background: var(--color-black); color: var(--color-white); }
.btn-dark:hover { background: var(--color-near-black); }

.btn-ghost { border-color: rgba(255, 255, 255, .4); color: var(--color-white); }
.btn-ghost:hover { border-color: var(--color-yellow); color: var(--color-yellow); }

/* ============================================================
   Dashboard-Overlay (das Menü hinter dem Explore-Button)
   ============================================================ */
.dash {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--color-black);
  padding: var(--gap) var(--gap) 78px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 68px 1.35fr 1fr;
  gap: var(--gap);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-0) var(--ease), visibility 0s linear var(--duration-0);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.menu-open .dash {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--duration-0) var(--ease);
}

body.menu-open { overflow: hidden; }

/* Kachel-Grundform */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-near-black);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  transition: outline-color var(--duration-2) var(--ease);
  outline: 1px solid transparent;
  outline-offset: -1px;
}

a.tile:hover { outline-color: var(--color-yellow); }

a.tile:hover .tile-scene { scale: 1.04; }

.tile-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  scale: 1;
  transition: scale .6s var(--ease);
  pointer-events: none;
}

.tile > *:not(.tile-scene, .chip, .star) { position: relative; z-index: 1; }

.tile h3 {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2.2rem);
  line-height: 1.08;
  max-width: 14ch;
}

.tile .tile-sub {
  margin-top: 10px;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .82);
  max-width: 38ch;
  text-wrap: pretty;
}

.tile .arrow {
  margin-top: auto;
  padding-top: 14px;
  width: 22px;
  height: 22px;
  color: var(--color-white);
  transition: translate var(--duration-0) var(--ease);
}

a.tile:hover .arrow { translate: 3px -3px; }

/* Gespiegelte Bildvariante (an der Hochachse) */
.img-spiegel { scale: -1 1; }

/* Foto in Kachel oder Szene */
.tile-scene img,
.scene .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gelber Icon-Chip oben rechts in der Kachel */
.chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--color-yellow);
  color: var(--color-black);
  border-radius: var(--radius-sm);
}

.chip svg { width: 16px; height: 16px; }

/* Platzierung im Raster */
.tile-about   { grid-column: 1 / 9;  grid-row: 1 / 3; justify-content: flex-end; }
.tile-left-a  { grid-column: 1 / 5;  grid-row: 3 / 4; }
.tile-left-b  { grid-column: 5 / 9;  grid-row: 3 / 4; }
.tile-mini-a  { grid-column: 9 / 10; grid-row: 1 / 2; }
.tile-mini-b  { grid-column: 10 / 11; grid-row: 1 / 2; }
.tile-status  { grid-column: 11 / 13; grid-row: 1 / 2; }
.tile-month   { grid-column: 9 / 13; grid-row: 2 / 3; }
.dash-actions { grid-column: 9 / 13; grid-row: 3 / 4; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); min-height: 0; }

.tile-about h3 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem); margin-top: auto; }

.tile-about .tile-sub { max-width: 44ch; font-size: var(--text-xs); }

.tile-about .arrow { margin-top: 16px; padding-top: 0; }

/* Mini-Kacheln (Telefon / Mail) */
.tile-mini {
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
}

.tile-mini svg { width: 20px; height: 20px; color: var(--color-yellow); }

.tile-mini span { font-size: 11px; color: var(--color-grey); }

/* Status-Widget (Pendant zum Wetter-Widget) */
.tile-status {
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
}

.tile-status .place {
  font-size: 11px;
  color: var(--color-grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-status .state {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 10px;
  font-size: clamp(.95rem, .85rem + .35vw, 1.15rem);
  font-weight: 500;
  line-height: 1.15;
}

.tile-status .state b { font-weight: 500; }
.tile-status .state span { font-size: 13px; color: var(--color-light-grey); white-space: nowrap; }

/* Fahrzeug des Monats */
.tile-month .eyebrow {
  font-size: 12px;
  color: var(--color-light-grey);
}

.tile-month h3 { margin-top: 6px; }

.tile-month .maker { font-size: 12px; color: var(--color-grey); margin-top: 4px; }

.tile-month .star {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--color-white);
  width: 18px;
  height: 18px;
}

/* Aktions-Kacheln (Termin / Jobs / Vermittlung) */
.tile-action { justify-content: flex-end; gap: 6px; }

.tile-action .chip { position: static; margin-bottom: auto; }

.tile-action h4 {
  font-size: clamp(.95rem, .85rem + .5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.2;
}

.tile-action .arrow { margin-top: 4px; padding-top: 0; width: 18px; height: 18px; }

/* Kachel-Einflug beim Öffnen */
.dash .tile, .dash .dash-actions {
  opacity: 0;
  translate: 0 14px;
}

body.menu-open .dash .tile,
body.menu-open .dash .dash-actions {
  opacity: 1;
  translate: 0 0;
  transition: opacity var(--duration-1) var(--ease), translate var(--duration-1) var(--ease);
}

body.menu-open .dash > *:nth-child(2) { transition-delay: .05s; }
body.menu-open .dash > *:nth-child(3) { transition-delay: .1s; }
body.menu-open .dash > *:nth-child(4) { transition-delay: .12s; }
body.menu-open .dash > *:nth-child(5) { transition-delay: .14s; }
body.menu-open .dash > *:nth-child(6) { transition-delay: .16s; }
body.menu-open .dash > *:nth-child(7) { transition-delay: .2s; }
body.menu-open .dash > *:nth-child(8) { transition-delay: .24s; }

/* Szenen (Grafik-Hintergründe der Kacheln - Foto-Slots) */
.scene-showroom {
  background:
    radial-gradient(ellipse 70% 60% at 70% 10%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(180deg, #2c2c2c 0%, #141414 55%, #050505 100%);
}

.scene-showroom::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
}

.scene-detail {
  background:
    radial-gradient(ellipse 50% 45% at 30% 25%, rgba(234, 255, 0, .16), transparent 65%),
    linear-gradient(160deg, #232323 0%, #0c0c0c 70%);
}

.scene-wheel {
  background:
    radial-gradient(circle at 78% 60%, #3a3a3a 0%, #222 18%, #0d0d0d 55%),
    #0d0d0d;
}

/* Deko-Felgenkreis nie über echten Fotos zeigen */
.scene-wheel:has(img)::after { display: none; }

.scene-wheel::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid #3f3f3f;
  box-shadow: inset 0 0 0 26px #0a0a0a, inset 0 0 0 30px #333, 0 0 60px rgba(0, 0, 0, .8);
  background:
    conic-gradient(#2c2c2c 0 9%, #101010 9% 12%, #2c2c2c 12% 21%, #101010 21% 24%, #2c2c2c 24% 33%, #101010 33% 36%, #2c2c2c 36% 45%, #101010 45% 48%, #2c2c2c 48% 57%, #101010 57% 60%, #2c2c2c 60% 69%, #101010 69% 72%, #2c2c2c 72% 81%, #101010 81% 84%, #2c2c2c 84% 93%, #101010 93% 96%, #2c2c2c 96% 100%);
}

.scene-classic {
  background:
    radial-gradient(ellipse 60% 50% at 50% 20%, rgba(255, 190, 120, .12), transparent 65%),
    linear-gradient(180deg, #262220 0%, #0e0d0c 65%);
}

.scene-car-img {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
}

.scene-car-img img {
  width: 88%;
  opacity: .85;
}

.scene-dim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .72) 100%);
  z-index: 1;
}

/* ============================================================
   Unterseiten - Fenster-Panels
   ============================================================ */
.page {
  padding: var(--gap);
  display: grid;
  gap: var(--gap);
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-near-black);
}

.page-hero {
  min-height: 86svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  isolation: isolate;
}

.page-hero .scene {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero h1 {
  font-size: var(--text-2xl);
  line-height: 1;
  max-width: 18ch;
}

.page-hero .intro {
  margin-top: 18px;
  max-width: 52ch;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .85);
  text-wrap: pretty;
}

.page-hero .kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 16px;
}

/* Inhalts-Panels */
.panel-pad { padding: clamp(1.5rem, 4vw, 3.5rem); }

.panel h2 { font-size: var(--text-lg); margin-bottom: 18px; max-width: 24ch; }

.panel .lead {
  font-size: var(--text-md);
  line-height: 1.45;
  color: var(--color-light-grey);
  max-width: 52ch;
}

.panel p + p { margin-top: 14px; }

.panel-grey { background: var(--color-dark-grey); }

.panel-yellow { background: var(--color-yellow); color: var(--color-black); }

.panel-yellow h2 { max-width: 20ch; }

/* Karten-Raster innerhalb der Seite */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--color-near-black);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 12px;
  outline: 1px solid rgba(255, 255, 255, .08);
  outline-offset: -1px;
  transition: outline-color var(--duration-2) var(--ease);
}

/* „Mehr erfahren": immer bündig am Kartenende, ganze Karte klickbar */
.card.has-img .card-body { flex: 1; }

.card-more {
  margin-top: auto;
  padding-top: 12px;
}

.card-more a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:hover { outline-color: var(--color-yellow); }

.card .num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-yellow);
}

.card h3 { font-size: clamp(1.3rem, 1.15rem + .8vw, 1.8rem); }

.card p, .card li { color: var(--color-grey); font-size: var(--text-xs); }

.card ul { display: grid; gap: 6px; }

.card li { padding-left: 1.1em; position: relative; }

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .42em;
  height: .42em;
  background: var(--color-yellow);
  rotate: 45deg;
  border-radius: 1px;
}

/* Statistiken */
.stats {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.stat {
  border-radius: var(--radius);
  background: var(--color-near-black);
  outline: 1px solid rgba(255, 255, 255, .08);
  outline-offset: -1px;
  padding: 24px 20px;
}

.stat b {
  display: block;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1;
  color: var(--color-yellow);
  letter-spacing: -.02em;
}

.stat span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-grey);
}

/* Preise */
.price-list { display: grid; gap: var(--gap); }

.price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--color-near-black);
  outline: 1px solid rgba(255, 255, 255, .08);
  outline-offset: -1px;
  transition: outline-color var(--duration-2) var(--ease);
}

.price-row:hover { outline-color: var(--color-yellow); }

.price-row .name { font-size: var(--text-md); font-weight: 600; letter-spacing: -.01em; }
.price-row .price { font-size: var(--text-md); font-weight: 600; color: var(--color-yellow); white-space: nowrap; }
.price-row .hint { flex-basis: 100%; color: var(--color-grey); font-size: var(--text-xs); }

/* Zitat */
.quote {
  border-left: 3px solid var(--color-yellow);
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
  display: grid;
  gap: 14px;
}

.quote blockquote { font-size: var(--text-lg); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }

.quote cite { font-style: normal; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-grey); }

/* Formular */
.form { display: grid; gap: 16px; max-width: 34rem; }

.form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.form input, .form textarea {
  font: inherit;
  color: var(--color-white);
  background: #101010;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color var(--duration-2) var(--ease);
}

.form input:focus, .form textarea:focus { outline: none; border-color: var(--color-yellow); }

.form textarea { min-height: 9rem; resize: vertical; }

.form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--text-xs);
  color: var(--color-grey);
  text-transform: none;
  letter-spacing: normal;
}

.form .consent input { accent-color: var(--color-yellow); margin-top: .2em; }

/* Kontakt-Infoliste */
.info-list { display: grid; gap: 20px; }
.info-list .label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-yellow); display: block; margin-bottom: 4px; }
.info-list .big { font-size: var(--text-md); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; display: block; }
.info-list a:hover { color: var(--color-yellow); }

/* Zweispalter im Panel */
.cols {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: start;
}

/* Seitenfuß (dezent, die Referenz hat keinen klassischen Footer) */
.page-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px clamp(1.5rem, 4vw, 3.5rem) 74px;
  font-size: 12px;
  color: var(--color-grey);
}

.page-end a { text-decoration: underline; text-underline-offset: 4px; }
.page-end a:hover { color: var(--color-white); }

/* Scroll-Reveal (mit Staffelung) */
.reveal { opacity: 0; translate: 0 24px; transition: opacity var(--duration-1) var(--ease), translate var(--duration-1) var(--ease); }
.reveal.in-view { opacity: 1; translate: 0 0; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* ============================================================
   Scroll-Scrub-Sektion („Der Lichtlauf")
   Die Scroll-Position steuert die Videozeit.
   ============================================================ */
.scrub {
  position: relative;
  height: 400svh;              /* Scrollstrecke: 4 Bildschirmhöhen */
}

.scrub.is-unavailable { display: none; }

.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
}

.scrub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrub-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 62%, rgba(0, 0, 0, .72));
}

.scrub-overlay .kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-yellow);
}

.scrub-captions {
  position: relative;
  height: 3.2em;
}

.scrub-captions span {
  position: absolute;
  inset: 0 auto auto 0;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  opacity: 0;
  translate: 0 14px;
  transition: opacity .4s var(--ease), translate .4s var(--ease);
  text-wrap: nowrap;
}

.scrub-captions span.is-active {
  opacity: 1;
  translate: 0 0;
}

.scrub-progress {
  width: min(320px, 40vw);
  height: 2px;
  background: rgba(255, 255, 255, .2);
  border-radius: 1px;
  overflow: hidden;
}

.scrub-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--color-yellow);
  transform-origin: left;
  scale: 0 1;
}

/* Aufblende: Sektion startet schwarz, Video taucht beim Scrollen auf */
.scrub-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--color-black);
  opacity: calc(1 - var(--p, 0) * 12);
  pointer-events: none;
}

/* Abblende: nach der kompletten Fahrt weich nach Schwarz ausblenden */
.scrub-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--color-black);
  opacity: calc((var(--p, 0) - 0.7) * 12);
  pointer-events: none;
}

/* Die Farbwandel-Sektion hat eine längere Strecke: Fahrt + Finale */
#farbwandel { height: 600svh; }

/* XPEL-Hero: Scroll-Verwandlung Hochglanz → Stealth-Matt */
#stealth { height: 320svh; }

.scrub-hero-titel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  pointer-events: none;
  opacity: calc(1 - var(--p, 0) * 3);
  translate: 0 calc(var(--p, 0) * -70px);
}

.scrub-hero-titel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .25) 45%, transparent 70%);
}

.scrub-hero-titel .kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 16px;
}

.scrub-hero-titel h1 {
  font-size: var(--text-2xl);
  line-height: 1;
  max-width: 18ch;
}

.scrub-hero-titel .intro {
  margin-top: 18px;
  max-width: 52ch;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .85);
  text-wrap: pretty;
}

#stealth .scroll-hint {
  position: absolute;
  bottom: 86px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-grey);
  opacity: calc(1 - var(--p, 0) * 6);
}

@media (max-width: 640px) {
  /* Ausschnitt wandert mit dem Auto von links (Hochglanz) nach rechts (Matt) */
  #stealth .scrub-video {
    --fahrt2: calc((min(0.94, max(0.08, var(--p, 0))) - 0.08) / 0.86);
    object-position: calc(12% + var(--fahrt2) * 76%) 50%;
  }
}

/* Gerasterter schwarzer Bildschirm für das Finale */
.scrub-raster-bg {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .10) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: calc((var(--p, 0) - 0.74) * 5);
}

/* Finale: Text fliegt von links, großes Video von rechts in den Raster-Bildschirm */
.scrub-finale {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 6vw, 6rem);
  pointer-events: none;
  --f: min(1, max(0, (var(--p, 0) - 0.78) * 7));
}

/* Video füllt die rechte Bildschirmhälfte in voller Höhe */
.finale-media {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 62%;
  opacity: var(--f);
  translate: calc((1 - var(--f)) * 60vw) 0;
  pointer-events: auto;
}

.finale-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42%);
  mask-image: linear-gradient(to right, transparent 0, #000 42%);
}

/* Galerie-Finale: nur am Handy Teil der Scroll-Sequenz */
.scrub-galerie { display: none; }

@media (max-width: 640px) {
  /* Längere Strecke: Fahrt + Finale + Finale-Ausflug + Galerie-Einflug */
  #farbwandel { height: 760svh; }

  /* Finale fliegt ein (ab p 0.78), hält kurz und fliegt wieder hinaus (ab p 0.88) */
  .scrub-finale {
    --v: calc(min(1, max(0, (var(--p, 0) - 0.78) * 14.3)) - min(1, max(0, (var(--p, 0) - 0.88) * 20)));
  }

  .scrub-finale .finale-text {
    opacity: var(--v);
    translate: calc((1 - var(--v)) * -60vw) 0;
  }

  .scrub-finale .finale-media {
    opacity: var(--v);
    translate: calc((1 - var(--v)) * 60vw) 0;
  }

  /* Galerie-Bilder fliegen nacheinander in den gerasterten Bildschirm */
  .scrub-galerie {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 6;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 90px 20px 110px;
    pointer-events: none;
  }

  .scrub-galerie .figure {
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
  }

  .scrub-galerie .figure:nth-child(1) {
    --g: min(1, max(0, (var(--p, 0) - 0.90) * 16.7));
    opacity: var(--g);
    translate: calc((1 - var(--g)) * -75vw) 0;
  }

  .scrub-galerie .figure:nth-child(2) {
    --g: min(1, max(0, (var(--p, 0) - 0.92) * 16.7));
    opacity: var(--g);
    translate: calc((1 - var(--g)) * 75vw) 0;
  }

  .scrub-galerie .figure:nth-child(3) {
    --g: min(1, max(0, (var(--p, 0) - 0.94) * 16.7));
    opacity: var(--g);
    translate: calc((1 - var(--g)) * -75vw) 0;
  }

  /* Die separate Galerie-Sektion entfällt am Handy (steckt in der Sequenz) */
  #galerie { display: none; }
}

.finale-text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: min(34rem, 52%);
  opacity: var(--f);
  translate: calc((1 - var(--f)) * -60vw) 0;
  pointer-events: auto;
}

.finale-text h2 {
  font-size: var(--text-xl);
  line-height: 1.05;
  max-width: 16ch;
}

.finale-text p {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
  max-width: 44ch;
  text-wrap: pretty;
}

.finale-text .row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .scrub-finale {
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 0;
  }
  .finale-text { max-width: 100%; }
  .finale-text h2 { font-size: var(--text-lg); }
  .finale-media {
    top: auto;
    bottom: 0;
    height: 46%;
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .finale-media video {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 35%);
  }
}

/* Info-Popups in den Halte-Momenten der Scroll-Fahrt */
.scrub-pop {
  position: absolute;
  z-index: 2;
  max-width: min(340px, 78vw);
  padding: 20px 22px;
  background: rgba(8, 8, 8, .92);
  border-left: 3px solid var(--color-yellow);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
  border-radius: var(--radius);
  opacity: 0;
  translate: 0 44px;
  transition: opacity .5s var(--ease), translate .5s var(--ease);
  pointer-events: none;
}

.scrub-pop.pop-from-top { translate: 0 -44px; }

.scrub-pop.is-on { opacity: 1; translate: 0 0; }

.scrub-pop .pop-step {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 8px;
}

.scrub-pop h3 {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  margin-bottom: 8px;
}

.scrub-pop p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .85);
}

.pop-r-mid { right: 6vw; top: 50%; margin-top: -90px; }
.pop-l-top { left: 6vw; top: 14vh; }
.pop-l-bot { left: 7vw; bottom: 16vh; }

@media (max-width: 640px) {
  .pop-r-mid { right: 4vw; }
  .pop-l-top { left: 4vw; }
  .pop-l-bot { left: 4vw; }
}

/* Reduced Motion: keine Scrollstrecke, Video als stehendes Bild */
@media (prefers-reduced-motion: reduce) {
  .scrub { height: auto; }
  .scrub-sticky { position: relative; height: 70svh; }
  .scrub-captions span:first-child { opacity: 1; translate: 0 0; }
  .scrub-veil, .scrub-fade, .scrub-pop, .scrub-raster-bg { display: none; }
  .reveal-side .band-text, .reveal-side .band-video { opacity: 1; translate: none; transition: none; }
  #farbwandel { height: auto; }
  .scrub-finale { position: static; display: block; }
  .finale-text, .finale-media { opacity: 1; translate: none; }
  .scrub-galerie { display: none !important; }
  #galerie { display: block !important; }
  .finale-media { position: static; height: auto; width: 100%; margin-top: 24px; }
  .finale-media video { height: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ============================================================
   Seitenübergänge & Einstiegs-Animationen
   ============================================================ */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation-duration: .3s; }
::view-transition-new(root) { animation-duration: .3s; }

.page-hero .scene .photo { animation: hero-zoom 1.8s var(--ease) both; }

.page-hero .kicker { animation: fade-up .7s var(--ease) .1s both; }
.page-hero h1     { animation: fade-up .8s var(--ease) .22s both; }
.page-hero .intro { animation: fade-up .8s var(--ease) .38s both; }

@keyframes hero-zoom {
  from { scale: 1.1; }
  to   { scale: 1; }
}

/* ============================================================
   Bild-Komponenten
   ============================================================ */
.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: #101010;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale .8s var(--ease);
}

.figure:hover img { scale: 1.06; }

.figure .tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--color-white);
  background: rgba(0, 0, 0, .6);
  padding: 4px 9px;
  border-radius: 3px;
}

/* Karte mit Bild oben */
.card.has-img { padding: 0; }

.card.has-img .figure {
  border-radius: 0;
  aspect-ratio: 16 / 9;
}

.card.has-img:hover .figure img { scale: 1.06; }

.card.has-img .card-body {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Panel halb Text / halb Bild */
.media-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-near-black);
}

.media-split .media-body {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  display: grid;
  gap: 14px;
  align-content: center;
}

.media-split .figure {
  aspect-ratio: auto;
  min-height: min(48svh, 380px);
  height: 100%;
  border-radius: 0;
}

/* Google-Rezensionen: endlos durchlaufendes Band auf der Startseite */
.rezensionen { display: grid; gap: 26px; }

.rez-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  padding-inline: 6px;
}

.rez-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-light-grey);
}

.rez-google svg { flex: 0 0 auto; translate: 0 4px; }

.rez-score {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  color: var(--color-white);
}

.rez-sterne { color: var(--color-yellow); font-size: .72em; letter-spacing: .12em; }

.rez-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--color-grey);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .3s var(--ease);
}

.rez-link:hover { color: var(--color-yellow); }

.rez-band {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.rez-spur {
  display: flex;
  width: max-content;
  animation: rez-lauf 60s linear infinite;
}

.rez-band:hover .rez-spur { animation-play-state: paused; }

.rez-gruppe {
  display: flex;
  gap: var(--gap);
  padding-right: var(--gap);
}

.rez-karte {
  width: clamp(280px, 34vw, 400px);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-near-black);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.rez-karte-sterne { color: var(--color-yellow); font-size: 15px; letter-spacing: .16em; }

.rez-karte blockquote {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-light-grey);
}

.rez-karte figcaption {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-white);
}

.rez-karte figcaption span {
  margin-left: 8px;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-grey);
}

@keyframes rez-lauf {
  to { translate: -50% 0; }
}

@media (max-width: 640px) {
  .rez-karte { width: min(78vw, 320px); padding: 20px 22px; }
  .rez-spur { animation-duration: 48s; }
  .rez-link { margin-left: 0; }
}

/* Social-Media-Kacheln: Instagram & TikTok, fliegen beim Scrollen
   von links und rechts ein (Sektion trägt .reveal-side) */
.social-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.social-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-end;
  min-height: min(46svh, 400px);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-radius: var(--radius);
  background: var(--color-near-black);
  color: var(--color-white);
}

/* Marken-Glow im Hintergrund, wird beim Hover kräftiger */
.social-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  transition: opacity .6s var(--ease);
}

.social-insta::before {
  background:
    radial-gradient(60% 55% at 88% -8%, rgba(214, 41, 118, .40), transparent 70%),
    radial-gradient(55% 50% at -6% 108%, rgba(254, 218, 117, .20), transparent 65%);
}

.social-tiktok::before {
  background:
    radial-gradient(55% 50% at 90% -8%, rgba(37, 244, 238, .24), transparent 68%),
    radial-gradient(58% 52% at -4% 110%, rgba(254, 44, 85, .30), transparent 68%);
}

.social-fb::before {
  background:
    radial-gradient(60% 55% at 85% -8%, rgba(24, 119, 242, .38), transparent 70%),
    radial-gradient(55% 50% at -5% 110%, rgba(24, 119, 242, .16), transparent 65%);
}

.social-tile:hover::before { opacity: 1; }

.social-tile > * { position: relative; }

.social-tile svg {
  width: clamp(44px, 6vw, 60px);
  height: clamp(44px, 6vw, 60px);
  margin-bottom: auto;
}

.social-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.social-handle {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(1.7rem, 1rem + 2.6vw, 3rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.social-tile p {
  color: var(--color-light-grey);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 42ch;
}

.social-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-yellow);
}

.social-cta i {
  font-style: normal;
  transition: translate .35s var(--ease);
}

.social-tile:hover .social-cta i { translate: 4px -4px; }

/* Einflug beim Scrollen: links rein / rechts rein */
.reveal-side .social-insta {
  opacity: 0;
  translate: -72px 0;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
}

.reveal-side .social-fb {
  opacity: 0;
  translate: 0 72px;
  transition: opacity .9s var(--ease) .06s, translate .9s var(--ease) .06s;
}

.reveal-side .social-tiktok {
  opacity: 0;
  translate: 72px 0;
  transition: opacity .9s var(--ease) .12s, translate .9s var(--ease) .12s;
}

.reveal-side.in-view .social-insta,
.reveal-side.in-view .social-fb,
.reveal-side.in-view .social-tiktok {
  opacity: 1;
  translate: 0 0;
}

@media (max-width: 640px) {
  .social-tile { min-height: 300px; }
  .reveal-side .social-insta,
  .reveal-side .social-fb,
  .reveal-side .social-tiktok { translate: 0 40px; }
}

/* Interaktiver Vorher/Nachher-Vergleich: unsichtbarer Range-Regler
   über dem Bild steuert --x, das Nachher-Bild wird daran geclippt */
.ba {
  --x: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #101010;
}

.media-split .ba { border-radius: 0; min-height: min(48svh, 380px); height: 100%; }

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba .ba-nachher { clip-path: inset(0 0 0 var(--x)); }

.ba-linie {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  translate: -1px 0;
  background: var(--color-yellow);
  z-index: 2;
  pointer-events: none;
}

.ba-linie::after {
  content: "◂ ▸";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 12px;
  letter-spacing: 1px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .55);
}

.ba input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.ba-tag {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(0, 0, 0, .6);
  padding: 4px 9px;
  border-radius: 3px;
  pointer-events: none;
}

.ba-tag-v { left: 12px; }
.ba-tag-n { right: 12px; }

/* Fahrzeug-Detailseiten (Autovermittlung) */
.fzg-preis {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem);
  line-height: 1;
  color: var(--color-yellow);
}

.fzg-preis s {
  color: var(--color-grey);
  font-size: .5em;
  font-weight: 500;
  font-family: var(--font-body, inherit);
}

.fzg-hinweis {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--color-grey);
  max-width: 52ch;
}

.spec-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  border-radius: var(--radius);
  overflow: hidden;
}

.spec {
  background: var(--color-near-black);
  padding: 16px 20px;
  display: grid;
  gap: 5px;
}

.spec span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.spec b {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
}

.chip-wolke {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-wolke span {
  font-size: 12.5px;
  padding: 6px 13px;
  background: var(--color-near-black);
  border-radius: 999px;
  color: var(--color-light-grey);
}

.fzg-liste {
  columns: 2;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  font-size: 14px;
  color: var(--color-light-grey);
  line-height: 1.7;
}

.fzg-liste li { break-inside: avoid; padding-left: 16px; position: relative; }

.fzg-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  background: var(--color-yellow);
  rotate: 45deg;
}

@media (max-width: 640px) {
  .fzg-liste { columns: 1; }
}

/* Team-Seite: Portrait-Karten mit Platzhalter, bis echte Fotos da sind */
.team-figure { aspect-ratio: 3 / 4; }

.team-platzhalter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: linear-gradient(160deg, #181818, #0a0a0a);
}

.team-platzhalter b {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: .04em;
  color: var(--color-yellow);
}

.team-platzhalter span {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.team-rolle {
  color: var(--color-yellow);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Verbotsschild-Grafik: mittig, nicht beschnitten */
.media-split .figure-schild {
  display: grid;
  place-items: center;
  min-height: min(44svh, 340px);
}

.media-split .figure-schild img {
  width: min(52%, 230px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 44px rgba(0, 0, 0, .55));
}

.figure-schild:hover img { scale: 1; }

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .stage-title { animation: none; opacity: 1; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .reveal-pop { opacity: 1; scale: 1; transition: none; }
  .dash .tile, .dash .dash-actions { transition: none !important; }
  a.tile:hover .tile-scene { scale: 1; }
  .page-hero .scene .photo, .page-hero .kicker, .page-hero h1, .page-hero .intro { animation: none; }
  .figure:hover img, .card.has-img:hover .figure img { scale: 1; }
  .rez-spur { animation: none; }
  .reveal-side .social-insta, .reveal-side .social-fb, .reveal-side .social-tiktok { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   Responsiv
   ============================================================ */
@media (max-width: 1100px) {
  .dash {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    overflow-y: auto;
    padding-top: calc(var(--chrome) + 68px);
  }
  .tile-about  { grid-column: 1 / 7; grid-row: auto; min-height: 44svh; }
  .tile-left-a { grid-column: 1 / 4; grid-row: auto; min-height: 30svh; }
  .tile-left-b { grid-column: 4 / 7; grid-row: auto; min-height: 30svh; }
  .tile-mini-a { grid-column: 1 / 2; grid-row: 1; }
  .tile-mini-b { grid-column: 2 / 3; grid-row: 1; }
  .tile-status { grid-column: 3 / 7; grid-row: 1; }
  .tile-month  { grid-column: 1 / 7; grid-row: auto; min-height: 34svh; }
  .dash-actions { grid-column: 1 / 7; grid-row: auto; }
}

@media (max-width: 640px) {
  :root { --chrome: 14px; }
  .chrome-legal { display: none; }
  .chrome-action { width: min(214px, 60vw); }

  /* Menü am Handy: eine klare Spalte in Lese-Reihenfolge */
  .dash {
    grid-template-columns: repeat(2, 1fr);
    padding-top: calc(var(--chrome) + 74px);
    padding-bottom: 180px;   /* genug Luft, damit nichts unter dem Schließen-Button liegt */
  }
  .tile-about  { grid-column: 1 / 3; min-height: 42svh; }
  .tile-left-a { grid-column: 1 / 3; min-height: 26svh; }
  .tile-left-b { grid-column: 1 / 3; min-height: 26svh; }

  /* Anrufen + E-Mail als fingerfreundliche Reihen nebeneinander */
  .tile-mini-a { grid-column: 1 / 2; grid-row: auto; }
  .tile-mini-b { grid-column: 2 / 3; grid-row: auto; }
  .tile-mini {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 56px;
    padding: 12px 14px;
  }
  .tile-mini span { font-size: 13px; color: var(--color-light-grey); }

  .tile-status {
    grid-column: 1 / 3;
    grid-row: auto;
    padding: 18px;
    gap: 8px;
    min-height: 96px;
  }
  .tile-status .place { font-size: 12px; }
  .tile-status .state { font-size: 1.1rem; gap: 6px 16px; line-height: 1.3; }
  .tile-status .state span { font-size: 14px; }
  .tile-month  { grid-column: 1 / 3; min-height: 32svh; }

  /* Reihenfolge am Handy: Monats-Fahrzeug vor Anrufen/E-Mail/Status,
     danach die Aktions-Zeilen */
  .tile-about  { order: 1; }
  .tile-left-a { order: 2; }
  .tile-left-b { order: 3; }
  .tile-month  { order: 4; }
  .tile-mini-a { order: 5; }
  .tile-mini-b { order: 6; }
  .tile-status { order: 7; }
  .dash-actions { order: 8; }

  /* Farbwandel-Video: Ausschnitt wandert mit dem Auto von links (Vorher)
     nach rechts (Nachher), damit die ganze Verwandlung sichtbar ist */
  #farbwandel .scrub-video {
    --fahrt: calc((min(0.72, max(0.08, var(--p, 0))) - 0.08) / 0.64);
    object-position: calc(10% + var(--fahrt) * 80%) 50%;
  }

  /* Aktions-Kacheln als volle Zeilen: Chip links, Titel, Pfeil rechts.
     Der margin-bottom schafft den Scroll-Freiraum über dem Schließen-Button
     (Container-Padding zählt dort nicht zuverlässig zum Scrollbereich). */
  .dash-actions { grid-column: 1 / 3; grid-template-columns: 1fr; margin-bottom: 120px; }
  .dash-actions .tile-action:last-child { grid-column: auto; }
  .tile-action {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 64px;
    padding: 12px 16px;
  }
  .tile-action .chip { position: static; margin: 0; flex: 0 0 auto; }
  .tile-action h4 { flex: 1; font-size: 1.05rem; }
  .tile-action .arrow { margin: 0; padding: 0; flex: 0 0 auto; }
}
