/* ==========================================================================
   Mainfit – Produktseite, Prototyp A „Vom Foto zum Schrank“
   Eine Datei, keine Fremdanfragen, nur Systemschriften.
   Farben und Maße aus docs/DESIGN.md (Marke „Editorial Studio“).
   ========================================================================== */

/* ---------- 1 Tokens ---------------------------------------------------- */
:root {
  --ink: #121212; --ink2: #5C574F; --ink3: #736D64;
  --paper: #F6F4EF; --card: #FFFFFF; --sand: #ECE7DE; --line: #E1DBD0;
  --stage: #FFFFFF;                 /* Bühne unter Produktbildern: immer hell */
  --signal: #FF5A1F;                /* nie als Textfarbe */
  --bezel: #121212; --bezel-kante: #2E2E31;
  --schatten: 0 10px 30px rgba(0, 0, 0, .07);
  --schatten-geraet: 0 44px 60px -34px rgba(18, 18, 18, .38), 0 14px 26px -14px rgba(18, 18, 18, .2);
  --teil-schatten: drop-shadow(0 6px 14px rgba(0, 0, 0, .12));
  --tinte-band: #121212;

  /* -apple-system zuerst: nur so greift die breite Schnittführung (font-stretch) der Systemschrift. */
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Palatino, Georgia, serif;

  --r-chip: 12px; --r-card: 22px; --r-sheet: 30px;
  --rand: 20px; --breite: 1240px;
  --feder: cubic-bezier(.2, .8, .2, 1);
  --kopf: 56px;
  color-scheme: light dark;
}
@media (min-width: 700px)  { :root { --rand: 32px; --kopf: 64px; } }
@media (min-width: 1100px) { :root { --rand: 48px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F4F2EE; --ink2: #ABA69D; --ink3: #8C877E;
    --paper: #0E0E0F; --card: #1A1A1C; --sand: #26252A; --line: #2E2D33;
    --stage: #ECEAE5; --signal: #FF6A33;
    --bezel: #2A292E; --bezel-kante: #45444B;
    --schatten: none;
    --schatten-geraet: 0 44px 60px -34px rgba(0, 0, 0, .7);
    --teil-schatten: drop-shadow(0 6px 14px rgba(0, 0, 0, .18));
    --tinte-band: #1A1A1C;
  }
}
/* Hilfsschalter zum Rendern (?theme=dark / ?theme=light), sonst entscheidet das System. */
:root[data-theme="dark"] {
  --ink: #F4F2EE; --ink2: #ABA69D; --ink3: #8C877E;
  --paper: #0E0E0F; --card: #1A1A1C; --sand: #26252A; --line: #2E2D33;
  --stage: #ECEAE5; --signal: #FF6A33;
  --bezel: #2A292E; --bezel-kante: #45444B;
  --schatten: none;
  --schatten-geraet: 0 44px 60px -34px rgba(0, 0, 0, .7);
  --teil-schatten: drop-shadow(0 6px 14px rgba(0, 0, 0, .18));
  --tinte-band: #1A1A1C;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- 2 Grundlagen ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; background: var(--paper);
  scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 16px);
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ink3); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap {
  max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto;
  padding-inline: max(var(--rand), env(safe-area-inset-left)) max(var(--rand), env(safe-area-inset-right));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--rand); top: 10px; z-index: 50; background: var(--card); padding: 8px 14px; border-radius: 999px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 3 Schrift ---------------------------------------------------- */
.d1, .d2, .d3, .wordmark, .zahl {
  font-family: var(--sans); font-weight: 900; font-stretch: 125%; letter-spacing: -.02em;
}
.d1 { font-size: clamp(44px, 6.6vw, 96px); line-height: .96; }
.d2 { font-size: clamp(33px, 5vw, 66px); line-height: 1; overflow-wrap: anywhere; hyphens: manual; }
.d3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.12; font-weight: 800; }
.ed { /* Editorial-Akzent: höchstens ein Wort je Überschrift */
  font-family: var(--serif); font-style: italic; font-weight: 500; font-stretch: 100%;
  letter-spacing: -.012em; font-size: 1.07em; line-height: 0;
}
.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2);
}
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.45; color: var(--ink2); max-width: 34em; }
.klein { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.zahl { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
strong { font-weight: 600; }

.mark { /* „Beispiel · KI-generiert“ – steht unter oder neben der Bühne, nie darauf */
  display: inline-block; padding: 4px 8px; border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink2);
  font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.bildzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink2); }

/* ---------- 4 Kopf ------------------------------------------------------- */
.kopf { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .25s; }
.kopf.is-unten { border-bottom-color: var(--line); }
.kopf__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--kopf); }
.wordmark { font-size: 23px; line-height: 1; color: var(--ink); text-decoration: none; flex: none; }
.wordmark .i { position: relative; display: inline-block; }
.wordmark .i::after {
  content: ""; position: absolute; left: 50%; top: -.05em; width: .3em; height: .3em;
  border-radius: 50%; background: var(--signal); transform: translateX(-50%);
}
.kopf__nav { display: none; gap: 4px; }
.kopf__nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--ink2); text-decoration: none; transition: color .2s, background-color .2s;
}
.kopf__nav a:hover { color: var(--ink); }
.kopf__nav a[aria-current="true"] { color: var(--ink); background: var(--sand); }
.kopf__rechts { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; }
.lang a, .lang span {
  font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 6px 10px; border-radius: 999px;
  text-decoration: none; color: var(--ink2); min-width: 40px; text-align: center;
}
.lang [aria-current] { display: none; background: var(--ink); color: var(--paper); }
.kopf__fortschritt { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.kopf__fortschritt span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--fortschritt, 0)); }
@media (min-width: 700px) {
  .lang { background: var(--sand); border-radius: 999px; padding: 3px; }
  .lang [aria-current] { display: block; }
}
@media (min-width: 1020px) { .kopf__nav { display: flex; } }

/* Store-Knopf: zwei Zustände (S4) */
.store {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 30px;
  border-radius: 999px; font-size: 17px; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.store--laden { background: var(--ink); color: var(--paper); transition: transform .2s var(--feder); }
.store--laden:hover { transform: translateY(-1px); }
.store--bald { background: var(--sand); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.store--klein { height: 38px; padding: 0 16px; font-size: 14px; }
@media (max-width: 359px) { .store--klein { padding: 0 12px; font-size: 13px; } .wordmark { font-size: 20px; } .kopf__in { gap: 8px; } .kopf__rechts { gap: 4px; } }

/* ---------- 5 Erster Bildschirm ------------------------------------------ */
.hero { padding: clamp(20px, 3.4vw, 44px) 0 0; }
.hero__raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.hero__kopf .eyebrow { margin-bottom: 14px; }
.hero__rest .lead { margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__cta .weiter { font-weight: 600; font-size: 16px; white-space: nowrap; }
.hero__rest .klein { margin-top: 16px; max-width: 38em; }

/* Die Bühne passt immer ganz auf den Bildschirm: Breite folgt notfalls der Höhe. */
.beweis { width: min(100%, 520px); justify-self: center; }
@supports (height: 100svh) { .beweis { width: min(100%, 520px, max(280px, calc((100svh - var(--kopf) - 150px) * .8))); } }
.ba { /* Vorher/Nachher: Handyfoto links, KI-Produktbild rechts */
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-sheet); overflow: hidden;
  background: var(--stage); box-shadow: 0 0 0 1px var(--line), var(--schatten);
  -webkit-user-select: none; user-select: none; isolation: isolate; touch-action: pan-y; cursor: ew-resize;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__nachher { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); background: #fff; }
.ba__linie { /* Scanlinie: 2 px Signal, dahinter 40 px Verlauf 0 → 18 % */
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--signal); z-index: 2;
}
.ba__linie::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 2px; width: 40px;
  background: linear-gradient(to left, rgba(255, 90, 31, .18), rgba(255, 90, 31, 0));
}
.ba__griff {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: #fff; color: #121212; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22), 0 0 0 1px rgba(18, 18, 18, .06);
}
.ba__griff svg { width: 24px; height: 24px; }
.ba__regler {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y;
}
.ba__regler::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 100%; }
.ba__regler::-moz-range-thumb { width: 2px; height: 100%; border: 0; }
.ba:has(.ba__regler:focus-visible) .ba__griff { outline: 2px solid #121212; outline-offset: 3px; }
.beweis__seiten { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.beweis__seiten span:last-child { text-align: right; }
.beweis .bildzeile { margin-top: 8px; }

/* Der Weg eines Teils: acht Stationen als kleine Bildfolge, zugleich Inhaltsverzeichnis */
.weg { margin-top: clamp(40px, 6vw, 84px); }
.weg__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.weg ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; }
.weg a { display: block; text-decoration: none; }
.weg__bild { display: block; border-radius: 12px; overflow: hidden; background: var(--sand); box-shadow: 0 0 0 1px var(--line); aspect-ratio: 4 / 3; transition: transform .35s var(--feder); }
.weg__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.weg a:hover .weg__bild { transform: translateY(-3px); }
.weg a .zahl { display: block; margin-top: 10px; font-size: 12px; color: var(--ink3); }
.weg a .weg__name { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }

@media (min-width: 560px) { .weg a .weg__name { font-size: 15px; } }
@media (min-width: 1000px) {
  .hero__raster {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(520px, 44%)); column-gap: clamp(40px, 6vw, 96px); row-gap: 28px;
    grid-template-areas: "kopf beweis" "rest beweis"; align-items: start;
  }
  .hero__kopf { grid-area: kopf; align-self: end; padding-top: clamp(8px, 4vw, 64px); }
  .hero__rest { grid-area: rest; }
  .beweis { grid-area: beweis; justify-self: end; }
  .weg ol { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
  .weg__bild { border-radius: 14px; }
}

/* ---------- 6 Kapitel: gemeinsames Gerüst -------------------------------- */
.kap { padding-block: clamp(60px, 8.4vw, 124px); }
.band--karte { background: var(--card); }
.band--sand { background: var(--sand); }
.band--sand .mark, .band--sand .chip { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.band--tinte { /* dunkles Band: Tokens lokal umgestellt, Bühnen bleiben hell */
  background: var(--tinte-band); color: #F4F2EE;
  --ink: #F4F2EE; --ink2: #ABA69D; --ink3: #8C877E; --paper: #121212; --card: #1D1D20; --sand: #26252A; --line: #34333A;
  --signal: #FF6A33; --schatten: none;
  --bezel: #2A292E; --bezel-kante: #4A4950; --schatten-geraet: 0 44px 60px -34px rgba(0, 0, 0, .7);
}
.station { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.station .zahl { font-size: 13px; color: var(--ink); }
.station__punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }
.kap__kopf { max-width: 780px; }
.kap__kopf .lead { margin-top: 22px; }
.kap__kopf--mitte { margin-inline: auto; text-align: center; }
.kap__kopf--mitte .station { justify-content: center; }
.kap__kopf--mitte .lead { margin-inline: auto; }

.warum { margin-top: clamp(44px, 5.4vw, 80px); padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.warum p:last-child { font-size: clamp(21px, 2.3vw, 30px); line-height: 1.22; font-weight: 600; letter-spacing: -.015em; max-width: 24em; }
@media (min-width: 900px) { .warum { grid-template-columns: 220px minmax(0, 1fr); align-items: baseline; } }

.punkte { display: grid; gap: 22px; }
.punkte li { display: grid; gap: 4px; }
.punkte strong { font-size: 17px; }
.punkte span { color: var(--ink2); font-size: 16px; line-height: 1.5; }
.punkte--linie li { padding-top: 18px; border-top: 1px solid var(--line); }

.hinweis { /* ehrliche Randnotiz mit Schloss */
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: var(--r-card); background: var(--sand);
}
.band--sand .hinweis { background: var(--card); }
.hinweis__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--ink); }
.band--sand .hinweis__icon, .band--karte .hinweis__icon { background: var(--paper); }
.hinweis__icon svg { width: 18px; height: 18px; }
.hinweis > div strong { display: block; font-size: 17px; line-height: 1.35; }
.hinweis > div span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink2); }

/* ---------- 7 Gerät: gezeichneter Rahmen, Bildschirmfoto darin ----------- */
.phone { width: min(100%, var(--pw, 300px)); container-type: inline-size; flex: none; }
.phone__body {
  position: relative; padding: 10px; border-radius: 52px; background: var(--bezel);
  box-shadow: inset 0 0 0 1px var(--bezel-kante), var(--schatten-geraet);
}
.phone__screen { position: relative; overflow: hidden; border-radius: 43px; aspect-ratio: 1206 / 2622; background: #F6F4EF; }
.phone__screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone__body::before, .phone__body::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: var(--bezel); }
.phone__body::before { left: -2px; top: 24%; height: 7.5%; box-shadow: 0 34px 0 var(--bezel); }
.phone__body::after { right: -2px; top: 29%; height: 12%; }
@supports (width: 1cqw) {
  .phone__body { padding: 3.4cqw; border-radius: 17.6cqw; }
  .phone__screen { border-radius: 14.4cqw; }
  .phone__body::before, .phone__body::after { width: 1.1cqw; border-radius: .6cqw; }
  .phone__body::before { left: -.8cqw; box-shadow: 0 20cqw 0 var(--bezel); }
  .phone__body::after { right: -.8cqw; }
}
.phone figcaption, .unterzeile { margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--ink2); }

.ausschnitt { border-radius: var(--r-card); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--schatten); }
.ausschnitt img { display: block; width: 100%; }
.ausschnitt--lauf img { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 99%); mask-image: linear-gradient(to right, #000 80%, transparent 99%); }

/* Fächer: drei Geräte, das vordere wechselt von selbst */
.wechsel { display: grid; gap: 36px; align-items: center; }
.faecher { position: relative; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 100 / 127; }
.faecher .phone {
  position: absolute; left: 50%; top: 0; width: 60%; cursor: pointer;
  transition: transform .8s var(--feder), filter .8s var(--feder);
}
.faecher .phone[data-pos="0"] { transform: translateX(-50%); z-index: 3; cursor: default; }
.faecher .phone[data-pos="1"] { transform: translateX(-16.7%) scale(.8); z-index: 2; filter: brightness(.96); }
.faecher .phone[data-pos="2"] { transform: translateX(-83.3%) scale(.8); z-index: 1; filter: brightness(.96); }
@media (min-width: 620px) {
  .faecher { aspect-ratio: 100 / 89; }
  .faecher .phone { width: 42%; }
  .faecher .phone[data-pos="1"] { transform: translateX(23.8%) scale(.86); }
  .faecher .phone[data-pos="2"] { transform: translateX(-123.8%) scale(.86); }
}
.schritte { display: grid; gap: 4px; counter-reset: schritt; }
.schritte button {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; width: 100%;
  padding: 16px 16px 16px 14px; border: 0; border-radius: var(--r-card); background: transparent; text-align: left; cursor: pointer;
  transition: background-color .3s;
}
.schritte button::before {
  counter-increment: schritt; content: counter(schritt); grid-row: span 2;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; font-stretch: 125%; background: var(--sand); color: var(--ink2);
  transition: background-color .3s, color .3s;
}
.schritte strong { font-size: 17px; color: var(--ink2); transition: color .3s; align-self: center; }
.schritte span { grid-column: 2; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.schritte li.is-on button { background: var(--card); box-shadow: var(--schatten); }
.band--karte .schritte li.is-on button { background: var(--paper); box-shadow: none; }
.schritte li.is-on button::before { background: var(--ink); color: var(--paper); }
.schritte li.is-on strong { color: var(--ink); }
@media (min-width: 960px) {
  .wechsel { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
  .wechsel--rechts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .wechsel--rechts .faecher { order: 2; }
}

.farben { display: grid; gap: 32px; }
.farben__kopf, .farben__text { min-width: 0; }
@media (min-width: 960px) {
  .farben { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: clamp(32px, 5vw, 80px); row-gap: 30px; grid-template-areas: "kopf faecher" "text faecher"; align-items: start; }
  .farben__kopf { grid-area: kopf; }
  .farben__text { grid-area: text; }
  .farben .faecher { grid-area: faecher; align-self: center; }
}

/* ---------- 8 Kapitel 02: Erkannt ---------------------------------------- */
.erkannt { display: grid; gap: 28px; margin-top: clamp(40px, 5vw, 72px); align-items: center; }
.selfie { position: relative; width: 100%; max-width: 440px; justify-self: center; }
.selfie__bild { position: relative; border-radius: var(--r-sheet); overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); }
.selfie__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rahmen { /* Erkennungsrahmen wie in der App, Koordinaten aus scan_boxes.json */
  position: absolute; border: 2px solid #fff; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(18, 18, 18, .35), inset 0 0 0 1px rgba(18, 18, 18, .2);
}
.rahmen b {
  position: absolute; left: -2px; top: -2px; padding: 4px 9px; border-radius: 12px 12px 12px 0;
  background: #fff; color: #121212; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
}
.rahmen--unten b { top: auto; bottom: -2px; border-radius: 0 12px 12px 12px; }
/* Die Rahmen erscheinen nacheinander, so wie die App die Teile findet. */
.js .selfie.rv .rahmen { opacity: 0; transform: scale(.97); transition: opacity .4s ease-out, transform .6s var(--feder); transition-delay: calc(.35s + var(--k, 0) * .16s); }
.js .selfie.rv.is-in .rahmen { opacity: 1; transform: none; }
.daraus { display: grid; gap: 14px; }
.daraus__titel { display: flex; align-items: center; gap: 12px; }
.daraus__titel::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.teile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.teil { background: var(--card); border-radius: var(--r-card); padding: 10px 10px 14px; box-shadow: var(--schatten); }
.teil__buehne { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--stage); }
.teil__buehne img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; filter: var(--teil-schatten); }
.teil figcaption { padding: 10px 6px 0; font-size: 15px; font-weight: 500; }
@media (min-width: 860px) {
  .erkannt { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); }
  .selfie { justify-self: start; max-width: 520px; }
  .teile { gap: 16px; }
}
.wege { margin-top: clamp(56px, 7vw, 104px); }
.wege__titel { margin-bottom: 28px; }
.wege .wechsel { margin-top: 8px; }
.fakten { display: grid; gap: 22px; margin-top: clamp(48px, 6vw, 80px); }
.fakten li { padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.fakten strong { font-size: 18px; }
.fakten span { font-size: 15px; line-height: 1.5; color: var(--ink2); }
@media (min-width: 700px) { .fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; } }
@media (min-width: 1100px) { .fakten { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fakten--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 9 Kapitel 03: Schrank ---------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip {
  padding: 9px 16px; border: 0; border-radius: 999px; background: var(--sand); color: var(--ink);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.wand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 22px; }
.wand__teil {
  position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--stage);
  transition: opacity .35s, transform .45s var(--feder);
}
.wand__teil img { position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: contain; filter: var(--teil-schatten); }
.wand__teil.is-aus { opacity: .14; transform: scale(.92); }
.wand__teil--eigen::after { /* das Sweatshirt von oben, in Tinte: Signal bleibt dem Stationspunkt vorbehalten */
  content: ""; position: absolute; right: 9%; top: 9%; width: 9px; height: 9px; border-radius: 50%; background: #121212;
  box-shadow: 0 0 0 3px var(--stage);
}
.wand__legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.wand__legende i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); margin-right: 8px; }
@media (hover: hover) and (min-width: 1100px) {
  .wand__teil::before {
    content: attr(data-name); position: absolute; left: 50%; bottom: 6px; z-index: 2; transform: translate(-50%, 4px); opacity: 0;
    padding: 3px 8px; border-radius: 8px; background: #121212; color: #F6F4EF; font-size: 11px; line-height: 15px; font-weight: 500; white-space: nowrap;
    pointer-events: none; transition: opacity .2s, transform .25s var(--feder);
  }
  .wand__teil:hover::before { opacity: 1; transform: translate(-50%, 0); }
  .wand__teil.is-aus:hover::before { opacity: 0; }
}
@media (min-width: 700px) { .wand { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; } .wand__teil { border-radius: 18px; } }
@media (min-width: 1100px) { .wand { gap: 12px; } .wand__teil { border-radius: var(--r-card); } }

.zweier { display: grid; gap: 40px; margin-top: clamp(56px, 8vw, 112px); align-items: center; }
.duo { position: relative; width: 100%; max-width: 470px; margin-inline: auto; aspect-ratio: 100 / 138; }
.duo .phone { position: absolute; width: 62%; }
.duo .phone:first-child { left: 0; top: 0; z-index: 2; }
.duo .phone:last-child { right: 0; bottom: 0; z-index: 1; }
@media (min-width: 960px) {
  .zweier { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); }
}

/* ---------- 10 Kapitel 05: Outfit (dunkles Band) -------------------------- */
.outfit-kopf { display: grid; gap: 36px; align-items: center; }
.zutaten { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.zutaten li { padding: 8px 14px; border-radius: 999px; background: var(--sand); font-size: 15px; font-weight: 500; }
.regel { margin-top: 22px; font-size: 16px; color: var(--ink2); }
.collage { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1; border-radius: var(--r-sheet); background: var(--stage); }
.collage img {
  position: absolute; height: auto; filter: var(--teil-schatten);
  transform: translate(var(--fx, 0), calc(var(--fy, 0px) + var(--py, 0px))) rotate(var(--r, 0deg));
  transition: transform .75s var(--feder), opacity .4s;
}
.collage .c-jacke { left: 7%; top: 7%; width: 43%; --r: -4deg; z-index: 2; }
.collage .c-pulli { left: 39%; top: 5%; width: 46%; z-index: 3; }
.collage .c-hose { left: 37%; top: 43%; width: 21%; z-index: 1; }
.collage .c-schuhe { left: 60%; top: 74%; width: 31%; --r: 6deg; z-index: 2; }
.js .collage.rv img { opacity: 0; }
.js .collage.rv .c-jacke { --fx: -34%; --fy: -6%; --r: -11deg; }
.js .collage.rv .c-pulli { --fx: 26%; --fy: -30%; --r: 7deg; }
.js .collage.rv .c-hose { --fx: -8%; --fy: 34%; --r: -6deg; }
.js .collage.rv .c-schuhe { --fx: 40%; --fy: 12%; --r: 13deg; }
.js .collage.rv.is-in img { opacity: 1; --fx: 0%; --fy: 0px; }
.js .collage.rv.is-in .c-jacke { --r: -4deg; }
.js .collage.rv.is-in .c-pulli { --r: 0deg; transition-delay: .09s; }
.js .collage.rv.is-in .c-hose { --r: 0deg; transition-delay: .18s; }
.js .collage.rv.is-in .c-schuhe { --r: 6deg; transition-delay: .27s; }
.collage + .bildzeile { justify-content: center; max-width: 560px; margin-inline: auto; }
@media (min-width: 960px) { .outfit-kopf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); } }

.gerechnet { display: grid; gap: 16px; margin-top: clamp(48px, 6vw, 88px); }
@media (min-width: 860px) { .gerechnet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

.wetter { margin-top: clamp(64px, 9vw, 128px); }
.wetter__kopf { display: grid; gap: 14px; margin-bottom: 28px; }
.wetter__skala { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wetter__skala::before { content: ""; order: 1; flex: 1; height: 1px; background: var(--line); }
.wetter__skala span:last-child { order: 2; }
.outfits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
.outfit__buehne { border-radius: var(--r-card); overflow: hidden; background: #fff; aspect-ratio: 1; }
.outfit__buehne img { display: block; width: 100%; height: 100%; object-fit: cover; }
.outfit__grad { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 14px; }
.outfit__grad .zahl { font-size: clamp(20px, 2vw, 26px); line-height: 1.1; color: var(--ink); }
.outfit__grad span:last-child { font-size: 14px; color: var(--ink2); }
.outfit h3 { margin-top: 6px; font-size: 16px; line-height: 1.25; font-weight: 600; }
.outfit p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink2); }
@media (min-width: 700px) { .outfits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 18px; } .outfit h3 { font-size: 17px; } }

.mit-karte { position: relative; width: 100%; max-width: 480px; margin-inline: auto; padding-bottom: 12%; }
.mit-karte .phone { width: 66%; }
.mit-karte .ausschnitt { position: absolute; right: 0; bottom: 0; width: 58%; z-index: 2; box-shadow: 0 0 0 1px rgba(18, 18, 18, .08), 0 24px 50px -18px rgba(0, 0, 0, .45); transform: translateY(var(--py, 0px)); }
.phone-mitte { display: grid; justify-items: center; }
.phone-mitte .phone { --pw: 264px; }
@media (min-width: 960px) { .phone-mitte .phone { --pw: 300px; } }
.dreier { display: grid; gap: 28px; margin-top: clamp(64px, 9vw, 128px); align-items: center; }
.dreier__text { display: grid; gap: 14px; align-content: start; }
.dreier__text .lead { font-size: 18px; }
.dreier .mit-karte { margin-bottom: 8px; }
.dreier .phone-mitte { margin-top: 28px; }
.dreier .phone-mitte .phone { --pw: 280px; }
@media (min-width: 1100px) {
  .dreier {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, .8fr); column-gap: clamp(32px, 4vw, 64px); row-gap: 56px;
    grid-template-areas: "a t1 b" "a t2 b";
  }
  .dreier .mit-karte { grid-area: a; margin: 0; }
  .dreier .phone-mitte { grid-area: b; margin: 0; }
  .dreier__text--1 { grid-area: t1; align-self: end; }
  .dreier__text--2 { grid-area: t2; align-self: start; }
}

/* ---------- 11 Kapitel 06 bis 08: Reihen ---------------------------------- */
.woche { display: grid; gap: 18px; margin-top: clamp(40px, 5vw, 72px); align-items: center; }
.woche .ausschnitt { background: #F6F4EF; padding: 18px 0 16px 22px; }
@media (min-width: 900px) { .woche { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); } }

.trio { display: grid; gap: 56px; margin-top: clamp(56px, 7vw, 104px); }
.trio__teil { display: grid; justify-items: center; gap: 26px; text-align: center; }
.trio__teil .phone { --pw: 244px; transform: translateY(var(--py, 0px)); }
.trio__text { display: grid; gap: 8px; max-width: 22em; }
.trio__text p { font-size: 16px; line-height: 1.5; color: var(--ink2); }
@media (min-width: 900px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: start; }
  .trio__teil:nth-child(2) { margin-top: 72px; }
  .trio__teil .phone { --pw: 292px; }
}

.studio { display: grid; gap: 20px; margin-top: clamp(48px, 6vw, 88px); }
.studio__karte {
  display: grid; grid-template-rows: auto 1fr auto; gap: 26px; padding: clamp(22px, 2.4vw, 34px) clamp(20px, 2.2vw, 30px) clamp(26px, 3vw, 40px);
  border-radius: var(--r-sheet); background: var(--paper);
}
.studio__text { display: grid; gap: 10px; align-content: start; }
.studio__text p { font-size: 16px; line-height: 1.5; color: var(--ink2); }
.studio__karte .phone { justify-self: center; --pw: 244px; align-self: end; }
@media (min-width: 980px) { .studio__karte .phone { --pw: 264px; } }
.studio__ehrlich { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.studio__ehrlich svg { width: 16px; height: 16px; margin-top: 3px; color: var(--ink); }
@media (min-width: 980px) {
  .studio { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
  .studio__karte { grid-row: span 3; grid-template-rows: subgrid; }
}

/* ---------- 12 Ehrlich: Datenschutz, Abo ----------------------------------- */
.kasse { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 72px); }
.kasse__karte { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-sheet); background: var(--card); display: grid; gap: 18px; align-content: start; }
.kasse__karte h3 { display: grid; gap: 8px; }
.kasse__karte ul { display: grid; gap: 12px; }
.kasse__karte li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; color: var(--ink2); }
.kasse__karte li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.kasse__karte li strong { color: var(--ink); }
@media (min-width: 860px) { .kasse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }

.kontrolle { display: grid; gap: 40px; margin-top: clamp(56px, 7vw, 104px); align-items: center; }
.kontrolle__bild { position: relative; width: 100%; max-width: 500px; margin-inline: auto; padding-bottom: 14%; }
.kontrolle__bild .phone { width: 58%; }
.kontrolle__bild .ausschnitt { position: absolute; right: 0; bottom: 0; width: 64%; z-index: 2; background: #F6F4EF; box-shadow: 0 0 0 1px rgba(18, 18, 18, .08), 0 24px 50px -18px rgba(0, 0, 0, .3); transform: translateY(var(--py, 0px)); }
@media (min-width: 960px) { .kontrolle { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); } }

.abo { display: grid; gap: 40px; align-items: start; }
.abo__text { display: grid; gap: 20px; }
.abo__text p { max-width: 34em; }
.abo__karten { display: grid; gap: 14px; }
.abo__karte { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-sheet); background: var(--card); box-shadow: var(--schatten); display: grid; gap: 16px; }
.kontingent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.kontingent li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.kontingent .zahl { font-size: clamp(28px, 3.2vw, 40px); line-height: 1; }
.kontingent span:last-child { font-size: 14px; color: var(--ink2); }
.haken { display: grid; gap: 10px; }
.haken li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.45; }
.haken li::before {
  content: ""; position: absolute; left: 2px; top: .32em; width: 14px; height: 8px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) scale(.8);
}
.rahmenzeile { display: flex; flex-wrap: wrap; gap: 8px; }
.rahmenzeile li { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink2); }
@media (min-width: 960px) { .abo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); } }

/* ---------- 13 Schluss und Fuß --------------------------------------------- */
.schluss { text-align: center; }
.schluss__icon { width: 92px; height: 92px; border-radius: 22.4%; display: block; margin: 0 auto 30px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.schluss .d1 { font-size: clamp(42px, 7vw, 104px); }
.schluss .store { margin-top: 36px; }
.schluss .klein { margin: 18px auto 0; max-width: 30em; }

.fuss { padding: 44px 0 56px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink2); }
.fuss__in { display: grid; gap: 22px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fuss nav a { color: var(--ink); font-weight: 500; }
.fuss__hinweis { max-width: 60em; }
@media (min-width: 860px) {
  .fuss__in { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 40px; }
  .fuss__hinweis { grid-column: 1 / -1; }
}

.duo .phone, .phone-mitte .phone { transform: translateY(var(--py, 0px)); }

/* ---------- 14 Bewegung ------------------------------------------------------ */
/* Einblenden: 24 px gleiten, 0,35 s, gestaffelt 40 ms (höchstens 8). Ohne JavaScript bleibt alles sichtbar. */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .35s ease-out, transform .6s var(--feder); transition-delay: calc(var(--i, 0) * 40ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .collage.rv { opacity: 1; transform: none; }
.js .wand.rv { opacity: 1; transform: none; }
.js .wand.rv .wand__teil { opacity: 0; transform: translateY(14px) scale(.96); transition-delay: calc(var(--i, 0) * 18ms); }
.js .wand.rv.is-in .wand__teil { opacity: 1; transform: none; }
.js .wand.rv.is-in .wand__teil.is-aus { opacity: .14; transform: scale(.92); transition-delay: 0s; }
.js .wand.is-fertig .wand__teil { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .rv, .js .wand.rv .wand__teil, .js .selfie.rv .rahmen { opacity: 1; transform: none; }
  .js .collage.rv img { opacity: 1; --fx: 0%; --fy: 0px; }
  [style*="--py"] { --py: 0px !important; }
}
/* ?still: Standbild für das Rendern – alles sichtbar, nichts bewegt sich */
.still { scroll-behavior: auto; }
.still *, .still *::before, .still *::after { transition: none !important; animation: none !important; }
.still .rv, .still .wand.rv .wand__teil, .still .selfie.rv .rahmen { opacity: 1 !important; transform: none !important; }
.still .collage.rv img { opacity: 1 !important; --fx: 0% !important; --fy: 0px !important; }
.still .collage.rv .c-jacke { --r: -4deg !important; }
.still .collage.rv .c-pulli, .still .collage.rv .c-hose { --r: 0deg !important; }
.still .collage.rv .c-schuhe { --r: 6deg !important; }

@media print { .kopf { position: static; } .js .rv { opacity: 1; transform: none; } }
