/* MNTRA. Website v3
   Gestaltung: docs/DESIGN-WEB.md (Leitmotiv „das Band“, App-Fragmente, Medien-Slots).
   Farben aus der App (docs/DESIGN.md + Assets.xcassets). Nur Tokens oben anfassen. */

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

  --bg: #F8F8F8;            /* mntraBase200 */
  --surface: #FFFFFF;       /* mntraBase100 */
  --surface-2: #EEEEEE;     /* MntraBase 300 */
  --ink: #18181B;           /* mntraBaseContent */
  --muted: #55555C;
  --line: rgb(24 24 27 / 0.08);

  --navy: #0D3B66;          /* mntraPrimary, als Fläche in beiden Modi */
  --navy-deep: #082640;     /* mntraNavyDeep */
  --on-navy: #FFFFFF;
  --sand: #D9CC9C;          /* mntraSecondary */
  --on-sand: #0D3B66;
  --accent: #0D3B66;        /* interaktiv, dunkel #68A7CE */

  --indigo: #344C99;        /* mntraTrainingIndigo */
  --mango: #F2C681;         /* mntraTrainingMango */
  --ai: #5E3AB0;            /* mntraAI */
  --protein: #F472B6;
  --carbs: #C084FC;
  --fat: #EAB308;
  --berry: #5B2360;         /* mntraBerry, Friend Challenge gegeneinander */
  --success: #42967C;
  --terra: #CE6E40;         /* mntraTraining: nur Presence „trainiert“ */

  /* Washes: Bereichsfarbe stark aufgehellt, Grund der Bänder */
  --wash-sand: #F4F0E1;
  --wash-indigo: #F1F2F8;
  --wash-macro: #FEF1F8;
  --wash-ai: #F2EFF9;
  --wash-plain: #FFFFFF;

  /* Verläufe aus der App */
  --grad-brand: linear-gradient(90deg, var(--navy), var(--sand));
  /* Bänder: helles Ende unter dem Text, dunkles hinter dem Phone */
  --grad-training: linear-gradient(90deg, color-mix(in srgb, var(--indigo) 50%, transparent), var(--indigo));
  --grad-training-accent: linear-gradient(90deg, var(--indigo), var(--mango));
  --grad-macro: linear-gradient(90deg, var(--carbs), var(--protein), var(--fat));
  --grad-community: linear-gradient(120deg, #0D3B66, var(--navy-deep));
  --grad-ai: linear-gradient(135deg, var(--navy), var(--ai));

  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-num: ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --step-eyebrow: 0.75rem;
  --step-small: 0.875rem;
  --step-fragment: 0.8125rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.5rem, 1.2rem + 4.6vw, 5.25rem);
  --step-display: clamp(3.5rem, 0.6rem + 10.5vw, 11rem);

  --margin: clamp(1rem, 3vw, 3rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5.5rem, 11vw, 11rem);
  --max: 90rem;

  --r-card: 20px;
  --r-shot: 28px;
  --shadow-s: 0 1px 3px rgb(0 0 0 / 0.10);
  --shadow-m: 0 3px 6px rgb(0 0 0 / 0.12);
  --shadow-l: 0 8px 28px rgb(0 0 0 / 0.18);
  --frag-edge: inset 0 0 0 1px rgb(255 255 255 / 0);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-tap: 140ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #363636;
    --surface-2: #1E1E1E;
    --ink: #E0E0E0;
    --muted: #A3A3A8;
    --line: rgb(255 255 255 / 0.10);
    --sand: #FAF0CA;
    --accent: #68A7CE;
    --indigo: #738FDA;
    --mango: #F5CD90;
    --ai: #9A7CE6;

    --wash-sand: #191814;
    --wash-indigo: #0C0E16;
    --wash-macro: #180B12;
    --wash-ai: #120F1C;
    --wash-plain: #121212;

    --grad-brand: linear-gradient(90deg, #68A7CE, var(--sand));
    --grad-community: linear-gradient(120deg, #1C5A94, var(--navy-deep));
    --grad-ai: linear-gradient(135deg, #68A7CE, var(--ai));

    --shadow-s: none;
    --shadow-m: 0 6px 18px rgb(0 0 0 / 0.5);
    --shadow-l: 0 12px 40px rgb(0 0 0 / 0.6);
    --frag-edge: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:target { scroll-margin-top: 6rem; }
::selection { background: var(--navy); color: var(--on-navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Typografie ---------- */
.display {
  font-size: var(--step-display);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.display .line { display: block; white-space: nowrap; }
.display--md { font-size: clamp(3rem, 1rem + 8vw, 8.5rem); }
.head { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.03em; }
.lead { font-size: var(--step-lead); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; max-width: 34ch; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step-eyebrow);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow .icon { width: 1.1rem; height: 1.1rem; }
/* Der 24 × 4-Strich aus dem App-Header, im Bereichsverlauf */
.stroke { display: inline-block; width: 24px; height: 4px; border-radius: 99px; background: var(--grad, var(--grad-brand)); }
[data-theme="training"] .stroke { background: var(--grad-training-accent); }
.num { font-family: var(--font-num); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.num--grad { background: var(--grad, var(--grad-brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { color: var(--sand); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--training { color: var(--indigo); }
.icon--nutrition { color: var(--protein); }
.icon--community { color: var(--accent); }
.icon--versus { color: var(--berry); }
.icon--ai { color: var(--ai); }
@media (prefers-color-scheme: dark) { .icon--versus { color: #C795CC; } }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.5rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 999px;
  background-size: 200% 100%;
  background-position: 0 0;
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-m);
  cursor: pointer;
  transition: background-position var(--t-ui) var(--ease-out), scale var(--t-tap) var(--ease-out), opacity var(--t-ui);
}
/* Verlauf Navy → Sand, Text sitzt auf der dunklen Hälfte */
.button { background-image: linear-gradient(110deg, var(--navy) 0%, #1F5486 55%, var(--sand) 130%); }
.button:active { scale: 1.04; }
.button--small { min-height: 2.5rem; padding: 0 1.1rem; font-size: var(--step-small); box-shadow: none; }
.button--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 18%, transparent); }
.button--light { background: #FFFFFF; color: var(--navy); }
.button--on-dark { color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.4); }
.button--sand { background: var(--sand); color: var(--on-sand); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background-position: 60% 0; }
  .button--ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .button--on-dark:hover { background: rgb(255 255 255 / 0.1); }
}
/* Nicht-iOS: Haupt-CTA bleibt klickbar, wirkt aber gedämpft, Hinweis „Nur für iPhone“ */
.text-link { font-weight: 600; text-underline-offset: 0.25em; }

.cta { margin-top: 2.25rem; }
.cta__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta__note, .cta-note { margin-top: 0.9rem; font-size: var(--step-small); color: var(--muted); max-width: 40ch; }
.only-other { font-weight: 700; color: var(--ink); }
.is-ios .only-other { display: none; }
/* Unterseiten (verified.html) */
.cta-block { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* QR-Karte: nur Desktop mit Maus, nie auf iOS */
.qr-card {
  position: absolute;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem 0.6rem 0.6rem;
  border-radius: var(--r-card);
  background: var(--navy);
  color: #FFFFFF;
  text-decoration: none;
  font-size: var(--step-small);
  font-weight: 600;
  line-height: 1.3;
  rotate: var(--r, 0deg);
  box-shadow: var(--shadow-l);
}
.qr-card img { width: 6.5rem; height: 6.5rem; padding: 0.5rem; border-radius: 14px; background: #FFFFFF; }
.qr-card > span { max-width: 11ch; }
.qr-card .eyebrow { display: block; margin-bottom: 0.3rem; color: var(--sand); }
.qr-card--sand { background: var(--sand); color: var(--on-sand); }
.qr-card--sand .eyebrow { color: var(--navy); }
@media (min-width: 64em) and (hover: hover) and (pointer: fine) {
  .qr-card { display: flex; }
}
.is-ios .qr-card { display: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--navy); color: #FFFFFF; }
.marquee__track { display: flex; width: max-content; }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding-inline: 1.25rem;
  font-size: var(--step-eyebrow);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track span::after { content: ""; width: 5px; height: 5px; margin-left: 2.5rem; border-radius: 50%; background: var(--sand); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 40s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem var(--margin);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; justify-self: start; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand__logo { width: 2rem; height: 2rem; }
.site-header > .button { justify-self: end; }
.site-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-s);
}
.site-nav a { padding: 0.5rem 0.95rem; border-radius: 999px; font-size: var(--step-small); font-weight: 600; text-decoration: none; transition: background var(--t-ui); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
}
/* Header bekommt Glas, sobald gescrollt (Klasse aus main.js) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity var(--t-ui);
}
.is-scrolled .site-header::before { opacity: 1; }
@media (max-width: 56em) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
}

/* ---------- Bänder (vollflächige Sections) ---------- */
.band-section {
  --wash: var(--bg);
  --grad: var(--grad-brand);
  position: relative;
  overflow: clip;
  padding: var(--section) var(--margin);
  background: var(--wash);
}
[data-theme="hero"] { --wash: var(--wash-sand); --grad: linear-gradient(90deg, var(--sand), var(--navy)); --band-top: 48%; --band-rot: -11deg; }
[data-theme="training"] { --wash: var(--wash-indigo); --grad: var(--grad-training); --band-top: 40%; --band-rot: -9deg; }
[data-theme="nutrition"] { --wash: var(--wash-macro); --grad: var(--grad-macro); --band-top: 44%; --band-rot: 10deg; --band-opacity: 0.7; }
[data-theme="community"] { --wash: var(--wash-sand); --grad: var(--grad-community); --band-top: 52%; --band-rot: -7deg; }
[data-theme="ai"] { --wash: var(--wash-ai); --grad: var(--grad-ai); --band-top: 62%; --band-rot: 8deg; }
[data-theme="final"] { --wash: var(--navy); --grad: var(--grad-brand); --band-top: 62%; --band-rot: -12deg; --band-opacity: 0.3; color: #FFFFFF; }

/* Das Band: der Titel-Strich der App, 60-mal größer */
.band {
  position: absolute;
  z-index: 0;
  left: -30vw;
  top: var(--band-top, 45%);
  width: 160vw;
  height: clamp(11rem, 26vw, 26rem);
  translate: 0 -50%;
  rotate: var(--band-rot, -10deg);
  border-radius: 999px;
  background: var(--grad);
  opacity: var(--band-opacity, 1);
  pointer-events: none;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.55;
}
/* Glanzkante oben, wie die Lichtkante der App-Karten */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.28), transparent 45%);
}
/* Dunkel: Band gedämpft, damit heller Text darauf lesbar bleibt */
@media (prefers-color-scheme: dark) {
  .band { opacity: calc(var(--band-opacity, 1) * 0.5); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band { animation: band-drift linear both; animation-timeline: view(); }
  }
}
@keyframes band-drift {
  from { rotate: calc(var(--band-rot, -10deg) + 3deg); translate: -4% -50%; }
  to { rotate: calc(var(--band-rot, -10deg) - 3deg); translate: 4% -50%; }
}
.band-section > :not(.band) { position: relative; z-index: 1; }

/* ---------- Section-Kopf ---------- */
.section-head { display: grid; gap: 1.25rem; align-content: start; }
.section-head .head { max-width: 12ch; }
.section-head--center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head--center .head { max-width: 16ch; }
.section-head--center .lead { max-width: 40ch; }

/* ---------- Bühne: Phone im Mittelpunkt, Fragmente drumherum ---------- */
.stage {
  --phone-w: clamp(15rem, 22vw, 20.5rem);
  position: relative;
  width: var(--phone-w);
  margin-inline: auto;
}
.stage__front { position: relative; z-index: 2; }
.stage__back {
  position: absolute;
  z-index: 1;
  top: 9%;
  right: 50%;
  width: 86%;
  rotate: -6deg;
  opacity: 0.98;
}

/* Medien: festes Format, Platzhalter bis die Datei da ist */
.media { position: relative; margin: 0; }
.media picture { display: contents; }
.media img, .media > video { width: 100%; height: 100%; }
.media--phone { aspect-ratio: var(--ar, 587 / 1200); }
.media--phone img { object-fit: contain; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.18)); }
.media--detail { aspect-ratio: 4 / 5; border-radius: var(--r-shot); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-m); }
.media--detail > img { object-fit: cover; }
.media--system { aspect-ratio: var(--ar, 1); border-radius: var(--r-shot); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-m); }
.media--system > img { object-fit: cover; }
/* Rohe Bildschirmaufnahme im leeren iPhone-Rahmen aus Figma (900 × 1840, Bildschirm 49 px / 47 px eingerückt) */
.media--device { aspect-ratio: 900 / 1840; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.18)); }
.media--device > video, .media--device > img {
  position: absolute;
  top: 2.55%;
  left: 5.44%;
  /* Video ist ein ersetztes Element: inset allein streckt es nicht */
  width: 89.12%;
  height: 94.9%;
  border-radius: 13% / 6%;
  object-fit: cover;
  background: #000;
}
.media--device::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: url("/assets/img/iphone-light.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) { .media--device::after { background-image: url("/assets/img/iphone-dark.webp"); } }
.media--watch {
  aspect-ratio: 422 / 514;
  padding: 7%;
  border-radius: 30%;
  background: #111;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), var(--shadow-l);
}
.media--watch > img { border-radius: 24%; object-fit: cover; }

/* Platzhalter-Ansicht (main.js setzt .is-missing, wenn die Datei fehlt) */
.media__ph { display: none; }
.media.is-missing img, .media.is-missing > video { visibility: hidden; }
.media.is-missing .media__ph {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  padding: 12%;
  border: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--ink) 3%, transparent) 10px 20px),
    var(--surface);
  color: var(--muted);
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.35;
}
.media--phone.is-missing .media__ph { border-radius: 13% / 6.4%; inset: 1.5% 3%; }
.media--device.is-missing .media__ph { inset: 2.55% 5.44%; border-radius: 13% / 6%; }
.media--watch.is-missing .media__ph { inset: 7%; border-radius: 24%; padding: 8%; }
.media.is-missing .media__ph b { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 0.6875rem; letter-spacing: 0.04em; }
.media__ph code { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink); word-break: break-all; }
.media__ph span { max-width: 28ch; }
/* sehr kleine Slots: nur ID und Dateiname */
.frag--mini .media__ph span, .collage__item.media--system[style*="300"] .media__ph span { display: none; }

/* Video-Steuerung (nur bei Reduce Motion sichtbar oder nach Pause) */
.media__play {
  position: absolute;
  z-index: 4;
  right: 11%;
  bottom: 5%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: var(--shadow-m);
  cursor: pointer;
}
.media__play svg { width: 1.1rem; height: 1.1rem; }
.media.is-missing .media__play { display: none; }

/* ---------- App-Fragmente ---------- */
.frag {
  --px: 0;
  --py: 0;
  position: absolute;
  z-index: 3;
  left: var(--x, 0);
  /* --y ohne Einheit: Prozent der Phone-Höhe, auch wenn die Bühne mobil höher wird */
  top: calc(var(--y, 0) * 1%);
  rotate: var(--r, 0deg);
  transform: translate3d(calc(var(--px) * var(--d, 1) * 7px), calc(var(--py) * var(--d, 1) * 7px), 0);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--frag-edge), var(--shadow-m);
  font-size: var(--step-fragment);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  width: max-content;
  transition: transform 600ms var(--ease-out);
}
.frag b { font-weight: 800; }
.frag__label { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-weight: 700; line-height: 1.15; }
.frag .num { font-size: 1.75rem; line-height: 1; }

/* Status-Punkt wie PresencePill: 7-px-Punkt im 14-px-Ring */
.presence { position: relative; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c) 50%, transparent); }
.presence::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: var(--c); }
.presence--studio { --c: var(--success); }
.presence--training { --c: var(--terra); }
@media (prefers-reduced-motion: no-preference) {
  .presence::after { animation: pulse 1.8s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.45; } }

.frag--streak .num { font-size: 2.25rem; }
.frag--count { border-radius: var(--r-card); padding: 0.85rem 1.1rem; }
.frag--count .num { font-size: 2.75rem; }
.frag--ai { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ai) 30%, transparent), var(--shadow-m); }
.frag--ai .icon { width: 1.25rem; height: 1.25rem; }
.frag--ai .icon, .eyebrow .icon--ai { color: var(--ai); }

.frag--timer { display: grid; gap: 0.35rem; min-width: 9.5rem; padding: 0.85rem 1.1rem; border-radius: var(--r-card); }
.frag--timer .num { font-size: 2rem; color: var(--indigo); }
.bar { display: block; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.bar i { display: block; width: var(--p, 100%); height: 100%; border-radius: inherit; background: var(--grad-training-accent); transition: width 1s linear; }

.frag--macros { gap: 0.9rem; }
.frag--macros span { display: inline-flex; align-items: center; gap: 0.4rem; }
.mdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mdot--carbs { background: var(--carbs); }
.mdot--protein { background: var(--protein); }
.mdot--fat { background: var(--fat); }

.frag--code { display: grid; gap: 0.5rem; padding: 0.85rem 1rem; border-radius: var(--r-card); }
.code { display: flex; gap: 0.3rem; }
.code i { display: grid; place-items: center; width: 1.9rem; height: 2.3rem; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font: 700 1.1rem var(--font-mono); font-style: normal; }

/* Bild-Fragmente */
.rail { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rail > * { pointer-events: auto; }
.frag.media { display: block; padding: 0; white-space: normal; border-radius: var(--r-shot); }
.frag--shot { width: 50%; }
.frag.media--phone, .frag.media--device { background: none; box-shadow: none; border-radius: 0; }
.frag--wide { width: 88%; }
.frag--mini { width: 44%; }

/* Mobil: Phone bleibt Mittelpunkt, Bild-Fragmente werden zur Wischreihe */
@media (max-width: 56em) {
  .stage { --phone-w: min(64vw, 18rem); }
  /* Ankerpunkt wandert mit: links bündig bei 0 %, rechts bündig bei 100 %, nichts ragt aus dem Bild */
  .frag:not(.media) { transform: translateX(calc(-1 * clamp(0%, var(--x), 100%))); scale: 0.88; }
  .frag:not(.media) { top: calc(var(--y, 0) * var(--phone-w) * 0.021); }
  /* Bild-Fragmente als Raster unter dem Phone: alles ganz sichtbar, Querformat über volle Breite */
  .rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.75rem;
    width: calc(100vw - 2 * var(--margin));
    margin: 2.5rem 0 0 calc((var(--phone-w) - 100vw) / 2 + var(--margin));
  }
  .rail > .frag {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    rotate: none;
    transform: none;
  }
  .rail > .frag--wide { grid-column: 1 / -1; }
  .rail > .frag--mini { justify-self: center; width: 78%; }
}

/* Feature-Chips: die vollständige Liste, auch ohne Bilder lesbar */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--step-small);
  font-weight: 600;
}
.chips--center { justify-content: center; }

/* ---------- 1 · Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--gutter);
  min-height: min(calc(100svh - 2.25rem), 60rem);
  margin-top: -4rem;
  padding-top: calc(4rem + clamp(2rem, 5vw, 4rem));
}
.hero__text { max-width: 46rem; }
.hero .display { font-size: clamp(3rem, 7vw, 8.5rem); }
.hero .lead { margin-top: 1.75rem; }
.hero__stage { --phone-w: clamp(15rem, 21vw, 20rem); }
.hero .qr-card { left: -62%; bottom: 2%; }
@media (max-width: 56em) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .display { font-size: 13.4vw; }
  .hero .stage__back { display: none; }
  .hero__stage { margin-top: 1rem; }
}

/* ---------- Statement ---------- */
.statement { padding: var(--section) var(--margin); background: var(--bg); }
.statement__text {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(2.25rem, 1rem + 5vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}
.statement .num { color: var(--accent); }
.w--brand { color: var(--accent); }
.js [data-scrub] > * { opacity: var(--o, 1); transition: opacity 300ms linear; }
@media (prefers-reduced-motion: reduce) { .js [data-scrub] > * { opacity: 1; } }

/* ---------- Geteilte Sections (Text | Bühne) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "head stage" "chips chips";
  align-items: center;
  column-gap: var(--gutter);
}
.split > .section-head { grid-area: head; max-width: 34rem; }
.split > .stage { grid-area: stage; }
.split > .chips { grid-area: chips; }
.split--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "stage head" "chips chips"; }
.split--flip > .chips { justify-content: flex-end; }
.center { display: grid; justify-items: center; }
.center > .stage { margin-top: clamp(3rem, 6vw, 5rem); }
@media (max-width: 56em) {
  .split, .split--flip { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "chips"; }
  .split > .stage { margin-top: 3rem; }
  .split--flip > .chips { justify-content: flex-start; }
}

/* Bereichs-Platzierung der Fragmente (Desktop) feiner abstimmen */
#training .frag--count .num, #training .frag--streak .num { --grad: var(--grad-training-accent); }

/* ---------- 5 · MNTRA AI ---------- */
.ai__duo {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3.5vw, 3.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.ai__item { width: clamp(14rem, 22vw, 19rem); }
.ai__item:nth-child(1) { rotate: -3deg; }
.ai__item--shot { margin-top: 2rem; }
.ai__item:nth-child(3) { rotate: 3deg; margin-top: 4rem; }
/* Karte statt freiem Text: das Band liegt hier dunkel unter der Bildunterschrift */
.ai__item figcaption { margin-top: 1.25rem; padding: 0.9rem 1rem; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-s); font-size: var(--step-small); color: var(--muted); }
.ai__item figcaption b { display: block; color: var(--ink); font-size: var(--step-body); }
.ai__rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: var(--max);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
}
.ai-card {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1.25rem;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ai) 22%, transparent), var(--shadow-s);
  font-size: var(--step-small);
  color: var(--muted);
}
.ai-card .eyebrow { color: var(--ai); }
.ai-card .eyebrow::before { content: ""; width: 0.9rem; height: 0.9rem; background: var(--grad-ai); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3l1.9 5.1L17 10l-5.1 1.9L10 17l-1.9-5.1L3 10l5.1-1.9L10 3zM18.5 14l.9 2.6 2.6.9-2.6.9-.9 2.6-.9-2.6-2.6-.9 2.6-.9.9-2.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3l1.9 5.1L17 10l-5.1 1.9L10 17l-1.9-5.1L3 10l5.1-1.9L10 3zM18.5 14l.9 2.6 2.6.9-2.6.9-.9 2.6-.9-2.6-2.6-.9 2.6-.9.9-2.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ai-card b { color: var(--ink); font-size: var(--step-body); line-height: 1.25; }
@media (max-width: 64em) {
  .ai__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40em) {
  .ai__duo { gap: 1rem; }
  .ai__item { width: 44vw; }
  .ai__duo { flex-wrap: wrap; row-gap: 2.5rem; }
  .ai__item:nth-child(3) { margin-top: 2.5rem; }
  /* Mobil: Analyse unter die beiden Videos */
  .ai__item--shot { order: 3; width: 48vw; margin-top: 0; }
}

/* ---------- 6 · Nativ ---------- */
.native { padding: var(--section) var(--margin); background: var(--wash-plain); }
.native > * { max-width: var(--max); margin-inline: auto; }
.collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.collage__item { rotate: var(--r, 0deg); }
.collage__item figcaption {
  position: absolute;
  z-index: 4;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 700;
}
.collage__item.media--phone figcaption { left: 50%; bottom: -2.4rem; translate: -50% 0; }
/* Links Live Activity und Dynamic Island, rechts Watch Training; darunter Widgets, Control Center, Watch Ernährung */
.collage__item:nth-child(3) { grid-column: 1 / 8; grid-row: 1; }
.collage__item:nth-child(6) { grid-column: 2 / 7; grid-row: 2; justify-self: center; width: min(100%, 20rem); }
.collage__item:nth-child(4) { grid-column: 9 / 12; grid-row: 1 / 3; }
.collage__item:nth-child(1) { grid-column: 2 / 5; grid-row: 3; }
.collage__item:nth-child(2) { grid-column: 5 / 8; grid-row: 3; margin-top: 4rem; }
.collage__item:nth-child(5) { grid-column: 9 / 12; grid-row: 3; }
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: clamp(4rem, 8vw, 7rem);
}
.benefits > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.benefits dt { font-size: var(--step-lead); font-weight: 700; line-height: 1.25; }
.benefits dd { color: var(--muted); }
.benefits .num { color: var(--ink); }
.backstage {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.backstage .eyebrow { color: var(--muted); }
.backstage ul { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: 1.25rem; font-size: var(--step-small); }
.backstage .num { display: inline; font-size: 1.5rem; }
@media (max-width: 56em) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collage__item:nth-child(n) { grid-column: auto; grid-row: auto; margin: 0; }
  .collage { row-gap: 3rem; }
  .collage__item:nth-child(3), .collage__item:nth-child(6) { grid-column: 1 / -1; }
  .collage__item:nth-child(6) { justify-self: center; width: min(100%, 18rem); margin-bottom: 1rem; }
  .collage__item { rotate: none; }
  .collage__item figcaption { font-size: 0.6875rem; }
  .collage .media__ph { padding: 8%; font-size: 0.6875rem; }
  .collage .media__ph span { display: none; }
  .benefits { grid-template-columns: 1fr; }
  .benefits > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .backstage ul { grid-template-columns: 1fr; }
}

/* ---------- 7 · Dranbleiben ---------- */
.keep {
  padding: var(--section) var(--margin);
  background: var(--bg);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "head stage list";
  align-items: center;
}
.keep > .stage { --phone-w: clamp(14rem, 19vw, 18rem); }
.keep__list { grid-area: list; display: grid; gap: 1.75rem; }
.keep__list li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.keep__list h3 { font-size: var(--step-lead); line-height: 1.2; }
.keep__list p { margin-top: 0.25rem; color: var(--muted); max-width: 32ch; }
.ring { width: 2.25rem; height: 2.25rem; rotate: -90deg; }
.ring circle { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s var(--ease-out); }
.keep__list li:nth-child(2) circle { stroke: var(--indigo); }
.keep__list li:nth-child(3) circle { stroke: var(--protein); }
.keep__list li:nth-child(4) circle { stroke: #CDA448; }
.keep__list li.is-in circle, html:not(.js) .ring circle { stroke-dasharray: 100 100; }
@media (max-width: 56em) {
  .keep { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "list"; }
  .keep__list { margin-top: 3rem; }
}

/* ---------- 8 · Ameise ---------- */
.ant { padding: var(--section) var(--margin); background: var(--wash-plain); text-align: center; }
/* Ameise: schaut dem Zeiger nach, blinzelt, hüpft bei Klick. --ex/--ey/--tilt setzt main.js */
.ant { --ant-head: #0D3B66; --ant-eye: #04111F; --ant-glint: #FAF0CA; --ant-halo: #F2C681; }
@media (prefers-color-scheme: dark) { .ant { --ant-head: #FAF0CA; --ant-eye: #0D3B66; --ant-glint: #F8F8F8; --ant-halo: #68A7CE; } }
.ant__stage { --ex: 0; --ey: 0; --tilt: 0deg; position: relative; width: clamp(10rem, 22vw, 17rem); margin: 0 auto 2.5rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ant__stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ant-halo) 45%, transparent), transparent);
  filter: blur(18px);
}
.ant__head { display: block; width: 100%; overflow: visible; rotate: var(--tilt); transform-origin: 50% 90%; transition: rotate 500ms var(--ease-out); }
.ant__body { fill: var(--ant-head); }
.ant__eyes { fill: var(--ant-eye); transform: translate(calc(var(--ex) * 1px), calc(var(--ey) * 1px)); transition: transform 300ms var(--ease-out); }
.ant__glints { fill: var(--ant-glint); transform: translate(calc(var(--ex) * 0.8px), calc(var(--ey) * 0.8px)); transition: transform 300ms var(--ease-out); }
.ant__stage.is-hop .ant__head { animation: ant-hop 620ms var(--ease-out); }
@keyframes ant-hop {
  0% { translate: 0 0; scale: 1 1; }
  18% { translate: 0 4%; scale: 1.06 0.9; }
  45% { translate: 0 -16%; scale: 0.96 1.05; }
  75% { translate: 0 0; scale: 1.04 0.96; }
  100% { translate: 0 0; scale: 1 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .ant__eyes > path { transform-box: fill-box; transform-origin: center; animation: ant-blink 4.8s infinite; }
  .ant__glints { animation: ant-blink-glint 4.8s infinite; }
}
@keyframes ant-blink { 0%, 93%, 100% { scale: 1 1; } 95.5% { scale: 1 0.08; } }
@keyframes ant-blink-glint { 0%, 93%, 100% { opacity: 1; } 94%, 97% { opacity: 0; } }
.ant .eyebrow { color: var(--muted); }
.ant__values { margin-top: 1.5rem; font-size: clamp(2.75rem, 0.8rem + 7.2vw, 8.5rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }
.ant__values li:nth-child(even) { color: var(--accent); }
.ant__note { margin: 2.5rem auto 0; color: var(--muted); }

/* ---------- 9 · FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section) var(--margin);
}
.faq__list { display: grid; gap: 0.5rem; align-content: start; }
.qa { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-s), var(--frag-edge); }
.qa summary {
  position: relative;
  padding: 1.35rem 4rem 1.35rem 1.75rem;
  list-style: none;
  cursor: pointer;
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 1.75rem;
  height: 1.75rem;
  translate: 0 -50%;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 11px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 11px no-repeat,
    color-mix(in srgb, var(--ink) 7%, transparent);
  transition: rotate var(--t-ui) var(--ease-out);
}
.qa[open] summary::after { rotate: 45deg; }
.qa p { padding: 0 1.75rem 1.5rem; max-width: 56ch; color: var(--muted); }
.qa a { color: var(--ink); font-weight: 600; text-underline-offset: 0.2em; }
@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: clip; transition: block-size 360ms var(--ease-out), content-visibility 360ms allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}
@media (max-width: 56em) {
  .faq { grid-template-columns: 1fr; }
  .qa summary { padding: 1.1rem 3.5rem 1.1rem 1.25rem; }
  .qa summary::after { right: 1rem; }
  .qa p { padding: 0 1.25rem 1.25rem; }
}

/* ---------- 10 · Abschluss ---------- */
.final { min-height: min(80svh, 52rem); display: grid; align-items: center; }
.final__inner { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; }
.final .display { max-width: 10ch; }
.final .lead { margin-top: 1.75rem; color: rgb(255 255 255 / 0.85); }
.final .cta__note { color: rgb(255 255 255 / 0.7); }
.final .only-other { color: #FFFFFF; }
.final .qr-card { right: 0; bottom: 0; }

/* ---------- Fußzeile ---------- */
.site-footer { position: relative; overflow: clip; padding: clamp(3rem, 6vw, 5rem) var(--margin) 0; background: var(--bg); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer__links a { padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--step-small); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover { background: color-mix(in srgb, var(--ink) 7%, var(--surface)); }
}
.footer__meta { margin-top: 1.25rem; font-size: var(--step-small); color: var(--muted); }
.footer__meta a { text-underline-offset: 0.2em; }
.footer__legal { margin-top: 0.5rem; font-size: 0.75rem; }
.footer__word {
  margin: clamp(2rem, 5vw, 4rem) 0 -0.17em;
  font-size: clamp(5rem, 1rem + 23vw, 24rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--ink) 9%, transparent);
  user-select: none;
}
.footer__word .dot { color: color-mix(in srgb, var(--sand) 60%, transparent); }

/* ---------- Unterseiten ---------- */
.subpage main, .subpage .support-page { min-height: 60svh; }
:is(.legal-page, .policy-section) { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--margin) 0; }
.legal-page__back { display: inline-block; margin-top: 2rem; font-weight: 600; text-underline-offset: 0.25em; }
:is(.legal-page, .policy-section, .support-content) h1 { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
:is(.legal-page, .policy-section) h2 { font-size: var(--step-lead); line-height: 1.25; margin: 3rem 0 0.75rem; }
:is(.legal-page, .policy-section) h3 { font-size: var(--step-body); margin: 2rem 0 0.5rem; }
:is(.legal-page, .policy-section) p, :is(.legal-page, .policy-section) li { margin: 0 0 1rem; }
:is(.legal-page, .policy-section) ul { padding-left: 1.25rem; }
:is(.legal-page, .policy-section, .support-content) a { text-underline-offset: 0.2em; }
:is(.legal-page, .policy-section) table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9375rem; }
:is(.legal-page, .policy-section) th, :is(.legal-page, .policy-section) td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; }
:is(.legal-page, .policy-section) th { background: var(--surface-2); font-weight: 700; }
:is(.legal-page, .policy-section) td { border-bottom: 1px solid var(--surface-2); }
.info-box { margin: 1rem 0 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-s); }
.info-box strong { display: block; margin-bottom: 0.35rem; }
.policy-section + .policy-section { margin-top: var(--section); }
.policy-lang-badge { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.policy-meta { color: var(--muted); margin-bottom: 2rem; }
.lang-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; max-width: 46rem; margin: 0 auto; padding: 1rem var(--margin) 0; }
.lang-switcher__label { color: var(--muted); }
.lang-switcher a { font-weight: 600; text-underline-offset: 0.25em; }

.verify { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) var(--margin) 0; }
.verify__logo { width: 4.5rem; height: 4.5rem; margin-bottom: 2rem; }
.verify h1 { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.03em; }
.verify p { margin-top: 1.25rem; max-width: 46ch; }
.verify .cta-block { margin-top: 2rem; }
.verify .cta-note { margin-top: 1.25rem; }

/* Support: Verzeichnis links, Inhalt rechts */
.support-page {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 46rem);
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vw, 6rem) var(--margin) 0;
}
.support-toc { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100svh - 7rem); overflow-y: auto; font-size: var(--step-small); }
.support-toc__title { font-size: var(--step-eyebrow); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.support-toc ol, .support-toc ul { margin: 0.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.support-toc ul { margin: 0.35rem 0 0.5rem; padding-left: 0.85rem; border-left: 2px solid var(--line); }
.support-toc ol > li > a { font-weight: 700; }
.support-toc a { text-decoration: none; color: var(--ink); }
.support-toc ul a { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .support-toc a:hover { color: var(--accent); } }
.support-content > section { margin-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 6rem; }
.support-content h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1rem; }
.support-content h2::before { content: ""; display: block; width: 24px; height: 4px; margin-bottom: 1rem; border-radius: 99px; background: var(--grad-brand); }
.support-content h3 { font-size: var(--step-body); margin-bottom: 0.4rem; }
.support-content p, .support-content li { margin-bottom: 0.75rem; }
.support-content ul:not([class]) { padding-left: 1.25rem; }
.support-content article { margin-top: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-s), var(--frag-edge); scroll-margin-top: 6rem; }
.support-content article p:last-child { margin-bottom: 0; }
.support-intro { font-size: var(--step-lead); line-height: 1.4; color: var(--muted); }
.support-quicklinks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.support-quicklinks a { display: inline-block; padding: 0.55rem 1rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--step-small); font-weight: 600; text-decoration: none; }
.support-callout { padding: 1.25rem 1.5rem; border-radius: var(--r-card); background: var(--wash-sand); }
.support-callout p:last-child { margin-bottom: 0; }
.support-permissions { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; margin-top: 1rem; border-top: 1px solid var(--line); }
.support-permissions dt, .support-permissions dd { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.support-permissions dt { font-weight: 700; padding-right: 1.5rem; }
.support-permissions dd { color: var(--muted); }
.support-contact { display: grid; gap: 0.25rem; margin: 1rem 0 1.5rem; }
.support-updated { margin-top: 2rem; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 56em) {
  .support-page { grid-template-columns: 1fr; }
  .support-toc { position: static; max-height: none; padding: 1.25rem; border-radius: var(--r-card); background: var(--surface); }
  .support-permissions { grid-template-columns: 1fr; }
  .support-permissions dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Share-Seiten /r/ und /p/ (config.php) ---------- */
.share { min-height: min(calc(100svh - 4rem), 62rem); margin-top: -4rem; padding-top: calc(4rem + clamp(2rem, 5vw, 4rem)); }
.share__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 76rem;
  margin: 0 auto;
}
.share__media { position: relative; margin: 0; }
.share__image {
  /* 3:2 wie der Zuschnitt in der App (mntraPhotoCrop, Rezepte und Pläne) */
  aspect-ratio: 3 / 2;
  border-radius: var(--r-shot);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-l);
  rotate: -2deg;
}
.share__image img { width: 100%; height: 100%; object-fit: cover; }
.share__image--empty { display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 70%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.share__glyph { display: grid; place-items: center; width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--grad); color: #FFFFFF; box-shadow: var(--shadow-m); }
.share__glyph .icon { width: 46%; height: 46%; }
.share .frag { opacity: 1; scale: 1; }
.share .share__badge { left: auto; right: -6%; top: 8%; }
.share .share__from { left: -5%; top: auto; bottom: 7%; }
.share__from img { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .share__from img { content: url("/assets/img/logo-dark.png"); } }
.share__body { display: grid; gap: 1.25rem; align-content: start; }
.share__title { max-width: 14ch; overflow-wrap: anywhere; }
.share__category { color: var(--muted); font-weight: 600; }
.share__week { display: flex; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.share__week li { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.share__week li.is-on { background: #344C99; color: #F2C681; box-shadow: none; } /* mntraTrainingIndigoFill + Mango, in beiden Modi */
.share__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.share__stats > div { padding: 0.9rem 1rem; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-s), var(--frag-edge); }
.share__stats dt { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.share__stats dt .icon { color: var(--icon, var(--accent)); width: 1rem; height: 1rem; }
[data-theme="nutrition"] .share__stats { --icon: var(--protein); }
[data-theme="training"] .share__stats { --icon: var(--indigo); }
.share__stats dd { margin-top: 0.2rem; }
.share__stats .num { font-size: 1.75rem; line-height: 1.1; }
.share__stats small { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.share__macros { padding: 1rem 1.1rem; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-s), var(--frag-edge); }
.share__macrobar { display: flex; gap: 3px; height: 8px; border-radius: 99px; overflow: hidden; }
.share__macrobar i { flex-basis: 0; }
.mbar--carbs { background: var(--carbs); }
.mbar--protein { background: var(--protein); }
.mbar--fat { background: var(--fat); }
.share__macros ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0.8rem 0 0; padding: 0; list-style: none; font-size: var(--step-small); color: var(--muted); }
.share__macros li { display: inline-flex; align-items: center; gap: 0.4rem; }
.share__macros b { color: var(--ink); font-size: 1rem; }
.share__list { padding: 1rem 1.1rem; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-s), var(--frag-edge); }
.share__list h2 { color: var(--muted); }
.share__list ul { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.share__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); font-size: var(--step-small); font-weight: 600; }
.share__list li:first-child { border-top: 0; }
.share__qty { color: var(--muted); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.share__more { margin-top: 0.4rem; font-size: var(--step-small); color: var(--muted); }
.share .cta { margin-top: 0.5rem; }
.share .button .icon { width: 1.1rem; height: 1.1rem; }
.share__desktop { display: none; }
@media (hover: hover) and (pointer: fine) { .share__desktop { display: inline; } }
.is-ios .share__desktop { display: none; }
.share__about { max-width: 76rem; margin: 0 auto; padding: var(--section) var(--margin) 0; display: grid; gap: 1rem; justify-items: start; }
.share__missing { max-width: 40rem; display: grid; gap: 1.25rem; }
.share--missing { display: grid; align-items: center; }
@media (max-width: 56em) {
  .share__grid { grid-template-columns: 1fr; }
  .share__media { width: min(78vw, 22rem); margin: 0 auto; }
  .share .frag { transform: none; scale: 0.9; }
  .share { padding-top: calc(4rem + 2.5rem); }
  .share .share__badge { right: -4%; top: -8%; }
  .share .share__from { left: -4%; bottom: -8%; }
  .share__body { margin-top: 1.5rem; }
}

/* ---------- Bewegung (Inhalt bleibt ohne JavaScript sichtbar) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; translate: 0 22px; animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 100ms + 150ms); }
  .js .hero .line { display: block; clip-path: inset(0 -0.5em 100% -0.5em); translate: 0 0.4em; animation: line-in 900ms var(--ease-out) forwards; }
  .js .hero .line:nth-child(2) { animation-delay: 120ms; }
  .js .hero .stage__front { opacity: 0; translate: 0 60px; animation: rise 1100ms var(--ease-out) 250ms forwards; }
  .js .hero .stage__back { opacity: 0; translate: 40px 80px; animation: rise 1300ms var(--ease-out) 380ms forwards; }

  .js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; translate: none; }

  /* Fragmente springen mit leichtem Überschwingen herein, wie in der App gestapelt */
  .js .frag { opacity: 0; scale: 0.7; transition: opacity 400ms var(--ease-out), scale 650ms var(--ease-spring), transform 600ms var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms + 200ms), calc(var(--d, 0) * 90ms + 200ms), 0ms; }
  .js .is-in .frag { opacity: 1; scale: 1; }
  .js .stage:not(.hero__stage) > .stage__front { opacity: 0; translate: 0 50px; transition: opacity 800ms var(--ease-out), translate 1000ms var(--ease-out); }
  .js .is-in > .stage > .stage__front { opacity: 1; translate: none; }
  @media (hover: hover) and (pointer: fine) and (min-width: 56em) {
    .js .is-in .frag { animation: float 6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1.3s); }
  }
}
@media (max-width: 56em) and (prefers-reduced-motion: no-preference) {
  .js .is-in .frag:not(.media) { scale: 0.88; }
}
@keyframes rise { to { opacity: 1; translate: none; } }
@keyframes line-in { to { clip-path: inset(-0.2em -0.5em -0.2em -0.5em); translate: none; } }
@keyframes float { 50% { translate: 0 -6px; } }
