/* NCX — Startseite. Farben aus lib/constants/colors.ts (Nachtblau + Mint).
   MINT RULE wie in der App: Mint nur als Akzent, Haken und Link — nie als
   Knopf- oder Flächenfarbe. Die eine Primäraktion ist mattweiß.

   Bauweise nach Gravl, Welt bleibt NCX (dunkel):
     Hero     — zentriert, drei echte Screens im Fächer, Partikel-Coach dahinter
     01 App   — Segment-Reiter Training · Ernährung · Coach wechseln Screens + Liste
     02 Scan  — vorher → nachher, zwei echte Screens
     03 Daten — asymmetrisches Bento (die eine Karten-Sektion)
     04 Premium — Vergleichstabelle
   Kursiv + Serife nur im Hero und im Team-Zitat. */

@font-face {
  font-family: 'Archivo';
  src: url('./fonts/archivo.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('./fonts/archivo-italic.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('./fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #030718;
  --ground-2: #080d24;
  --card: #101425;
  --card-2: #1c202f;
  --line: #2f3448;
  --hair: rgba(255, 255, 255, 0.09);
  --text: #f4f5f8;
  --text-2: #c2c7d4;
  --text-3: #959bae;
  --mint: #90d6c4;
  --mint-dim: rgba(144, 214, 196, 0.14);
  --white: #f2f2ee;
  --radius: 26px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Archivo', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font-family: var(--display); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--mint); color: var(--ground); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
figure { margin: 0; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ground); padding: 10px 16px;
  border-radius: 12px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* ───────── Navigation ───────── */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 50;
  width: min(calc(100% - 24px), 1120px); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(10, 14, 34, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled { background: rgba(6, 9, 26, 0.86); border-color: var(--line); }
.nav__brand img { width: 80px; height: auto; }
.nav__links { display: none; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); }
.nav__links a { position: relative; }
.nav__links a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--mint);
}
/* Wie weit die Reise ist — ein feiner Strich an der Unterkante der Leiste. */
.nav__progress {
  position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--mint), rgba(144, 214, 196, 0.4));
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
}
.nav__end { display: flex; align-items: center; gap: 8px; }
.lang {
  min-width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-2); border: 1px solid var(--line);
  font: 600 13px var(--display); letter-spacing: 0.08em;
}
.lang:hover { color: var(--text); border-color: var(--text-3); }

/* ───────── Knöpfe ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 15px var(--display); text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--ground); border: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(242, 242, 238, 0.15); }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--text-3); box-shadow: none; }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 16px;
  background: var(--white); color: var(--ground); text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.store svg { width: 28px; height: 28px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.75; }
.store strong { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(144, 214, 196, 0.18); }

/* ───────── Handy: echte Screens, hell und groß ─────────
   Kein Glanz-Overlay über dem Bild: der Screen soll lesbar sein, nicht „Deko“. */
.phone { --w: 300px; width: var(--w); flex: none; transition: transform 0.6s var(--ease); transform-style: preserve-3d; }
/* Echtes 3D-Pendeln wie das Handy in der App-Vorstellung
   (`components/onboarding/showcase/Phone3D.tsx`): seitlich gedreht, leicht
   zurückgelehnt, ein halber Schlag dauert 4,2 s mit Sinus-Kurve. Die
   Gehäusekante ist dieselbe Form, dunkler, zur abgewandten Seite versetzt
   (hier als harter Schatten, der die Rundung exakt mitnimmt), daneben die
   Seitentasten. Kein harter Glanzstreifen übers Glas — der war in der App der
   gemeldete „Schnitt“. `--dir` (1 / −1) sagt, wohin sich das Handy dreht,
   `--phase` versetzt den Takt, damit zwei Handys nicht im Gleichschritt gehen. */
.phone { --dir: 1; --edge: calc(var(--w) * 0.03); }
.phone__frame {
  position: relative; aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * 0.16);
  padding: calc(var(--w) * 0.028);
  background: linear-gradient(150deg, #4a5068, #1a1e2c 38%, #2c3144 72%, #12151f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    calc(var(--edge) * var(--dir)) calc(var(--edge) * 0.4) 0 0 #1a1f2e,
    calc(var(--edge) * var(--dir)) calc(var(--edge) * 0.4) 0 1px rgba(255, 255, 255, 0.10),
    calc(var(--edge) * var(--dir) * 3) 50px 90px -24px rgba(0, 0, 0, 0.8);
  transform-origin: 50% 55%;
  animation: pendel 4.2s cubic-bezier(0.37, 0, 0.63, 1) var(--phase, 0s) infinite alternate;
  will-change: transform;
}
.phone__frame::after {
  content: ''; position: absolute; z-index: 6; top: 20%; width: 3px; height: 9%; border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  left: calc(50% + (50% + var(--edge) - 2px) * var(--dir) - 1.5px);
}
@keyframes pendel {
  from { transform: perspective(1100px) rotateX(5deg) rotateY(calc(-16deg * var(--dir))) rotateZ(calc(-1.5deg * var(--dir))) translateX(calc(var(--w) * -0.03)); }
  to   { transform: perspective(1100px) rotateX(3.5deg) rotateY(calc(-9deg * var(--dir))) rotateZ(calc(-1.5deg * var(--dir))) translateX(calc(var(--w) * 0.03)); }
}

/* Lebendige Screens — kleine Bewegungen genau über den echten Bildschirmfotos.
   Die Lagen sind aus den Aufnahmen gemessen (Anteil der Bildhöhe/-breite). */
.live { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.live--sets i {
  position: absolute; left: 5.1%; right: 5.1%; top: 47.9%; height: 5%; border-radius: 999px;
  border: 1.5px solid rgba(144, 214, 196, 0.85); background: rgba(144, 214, 196, 0.12);
  box-shadow: 0 0 18px rgba(144, 214, 196, 0.35);
  animation: saetze 4.8s var(--ease) infinite;
}
@keyframes saetze {
  0%, 28% { top: 47.9%; }
  34%, 61% { top: 54.1%; }
  67%, 94% { top: 60.3%; }
  100% { top: 47.9%; }
}
.live--scan::before {
  content: ''; position: absolute; left: 5%; right: 5%; top: 13%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  box-shadow: 0 0 16px 4px rgba(144, 214, 196, 0.4);
  animation: scanstrahl 3s var(--ease) infinite;
}
@keyframes scanstrahl { 0% { top: 13%; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { top: 46%; opacity: 0; } }
.screen {
  position: absolute; inset: calc(var(--w) * 0.028); overflow: hidden;
  border-radius: calc(var(--w) * 0.135); background: #0b1027;
}
.screen img { width: 100%; height: 100%; object-fit: cover; }
.phone--big { --w: clamp(250px, 72vw, 340px); }

/* ───────── Hero ───────── */
.hero {
  position: relative; overflow: hidden;
  display: grid; align-items: center; gap: 48px;
  padding: 112px var(--gutter) 56px; max-width: var(--max); margin: 0 auto;
}
.hero__coach {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(150vw, 820px); aspect-ratio: 1; left: 50%; bottom: 40px;
  transform: translateX(-50%); opacity: 0.75;
}
.hero__copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(16, 20, 37, 0.7);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(144, 214, 196, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(144, 214, 196, 0); } }

.hero__title {
  margin: 0; font-weight: 900; font-style: italic; font-stretch: 112%;
  font-size: clamp(50px, 12.5vw, 108px); line-height: 0.92; letter-spacing: -0.035em;
}
.hero__title .line { display: block; }
.hero__title .serif { font-size: 1.08em; letter-spacing: -0.02em; color: var(--text-2); padding-right: 0.06em; }
.shine {
  background: linear-gradient(100deg, var(--text) 0%, var(--text) 38%, #fff 46%, var(--mint) 50%, #fff 54%, var(--text) 62%, var(--text) 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s var(--ease) 1.2s infinite;
}
@keyframes shine { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0% 0; } }

.hero__lead { max-width: 36ch; margin: 24px 0 0; color: var(--text-2); font-size: clamp(17px, 1.5vw, 19px); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero__note { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }

/* Zwei Handys: vorne Ernährung, hinten Training — man sieht sofort zwei echte Bildschirme. */
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--mint-dim); position: relative; flex: none; }
.check::after {
  content: ''; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px;
  border: solid var(--mint); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
}


/* ───────── Abschnitte ───────── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 136px) var(--gutter) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint);
}
.kicker::before { content: ''; width: 18px; height: 1.5px; background: currentColor; }
/* Kapitel der Reise: 01 Coach … 06 Startklar */
.kicker[data-no]::before {
  content: attr(data-no); width: auto; height: auto; background: none;
  padding: 3px 8px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
/* Funktionale Überschrift: gerade, kompakt, zweite Hälfte leiser. */
.h2 {
  margin: 0; font-weight: 800; font-stretch: 100%;
  font-size: clamp(34px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -0.028em;
}
.h2 .muted { color: var(--text-3); }
.lead { margin: 18px 0 0; max-width: 54ch; color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); }

figcaption { margin-top: 16px; font-size: 14px; color: var(--text-3); text-align: center; }

/* ───────── Coach ───────── */
.coach .shot { justify-self: center; }
.chat {
  width: 100%; max-width: 520px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #121730, #0b0f20); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}
.chat__head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat__avatar { width: 44px; height: 44px; }
.chat__head b { display: block; font-size: 17px; }
.chat__head small { color: var(--text-3); font-size: 13px; }
.chat__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px 24px; min-height: 340px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: 16px; line-height: 1.45; animation: msgIn 0.35s var(--ease) both; }
.msg--me { align-self: flex-end; background: var(--white); color: var(--ground); border-bottom-right-radius: 6px; font-weight: 500; }
.msg--nex { align-self: flex-start; background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--nex .w { opacity: 0.18; transition: opacity 0.16s; }
.msg--nex .w.on { opacity: 1; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 16px 18px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: tdot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot { 30% { transform: translateY(-4px); background: var(--text-2); } 60% { transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }


/* ───────── Training: Screens tragen die Geschichte ───────── */

/* Mobil: zwei große Screens, überlappend statt nebeneinander gequetscht. */



/* ───────── Daten: Bento mit Spotlight ───────── */
.bento { display: grid; gap: 14px; }
.card {
  --x: 50%; --y: 50%;
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(144, 214, 196, 0.12), transparent 45%);
}
.card:hover { border-color: #444a60; }
.card:hover::before { opacity: 1; }
.card h3 { position: relative; margin: 0 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.card p { position: relative; margin: 0; color: var(--text-2); font-size: 16px; }
.card--xl { background: linear-gradient(160deg, #141b38, var(--card) 60%); }
.card--xl h3 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; max-width: 16ch; line-height: 1.05; letter-spacing: -0.025em; }
.card--xl p { max-width: 46ch; font-size: 17px; }
.lock { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 26px; background: var(--mint-dim); border: 1px solid rgba(144, 214, 196, 0.3); }
.lock svg { width: 28px; height: 28px; fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; }

/* ───────── Premium: Vergleich ───────── */
.compare { position: relative; border-top: 1px solid var(--hair); }
.compare__row { display: grid; grid-template-columns: 1fr 88px 104px; align-items: center; min-height: 60px; border-bottom: 1px solid var(--hair); }
.compare__label { padding: 14px 12px 14px 0; font-size: 16px; color: var(--text); }
.compare__col { text-align: center; font-size: 14px; color: var(--text-2); padding: 0 6px; }
.compare__col--pro { color: var(--text); font-weight: 600; background: linear-gradient(180deg, rgba(144, 214, 196, 0.07), rgba(144, 214, 196, 0.03)); align-self: stretch; display: flex; align-items: center; justify-content: center; }
.compare__row--head { min-height: 84px; border-bottom-color: var(--line); }
.compare__row--head .compare__col { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.compare__row--head b { font-size: 18px; font-weight: 800; color: var(--text); }
.compare__row--head small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.compare__row--head .compare__col--pro { border-top: 2px solid var(--mint); border-radius: 14px 14px 0 0; }
.compare__row:last-child .compare__col--pro { border-radius: 0 0 14px 14px; }
.yes, .no { display: inline-block; position: relative; width: 22px; height: 22px; }
.yes::after { content: ''; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid var(--mint); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.no::after { content: ''; position: absolute; left: 5px; right: 5px; top: 10px; height: 2px; background: var(--text-3); border-radius: 2px; }
@media (max-width: 767px) {
  .compare__row { grid-template-columns: 1fr 86px 96px; }
  .compare__label { font-size: 15px; }
  .compare__col { font-size: 13px; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
}

/* ───────── Team ───────── */
.team__inner { max-width: 980px; }
.manifest { margin: 0 0 36px; }
.manifest p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(36px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.02em; }
.team__text { display: grid; gap: 16px; max-width: 62ch; color: var(--text-2); font-size: 18px; }
.team__text p { margin: 0; }
.team__sign { display: block; margin-top: 22px; color: var(--text-2); font: italic 800 16px var(--display); }

/* ───────── FAQ ───────── */
.faq__list { display: grid; gap: 10px; max-width: 860px; }
details { border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 22px; font-size: 18px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 26px; font-weight: 300; color: var(--mint); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); max-width: 70ch; }

/* ───────── Fuß ───────── */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 44px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  color: var(--text-3); font-size: 14px;
}
.foot img { width: 64px; height: auto; opacity: 0.85; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot a { color: var(--text-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--mint); }
.foot p { margin: 0; }

/* Einblenden: nur ein kleiner Weg, kaum Abdunkeln — Inhalt ist sofort lesbar. */
.reveal { opacity: 0.6; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Der erste Blick wird nie abgedunkelt: der Hero steht sofort da. */
.hero .reveal { opacity: 1; transform: none; transition: none; }

/* ───────── ab Tablet ───────── */
@media (min-width: 768px) {
  .bento--data { grid-template-columns: repeat(2, 1fr); }
  .bento--data .card--xl { grid-column: span 2; }
  .compare__row { grid-template-columns: 1fr 160px 180px; }
  .compare__label { font-size: 17px; }
  .compare__col { font-size: 15px; }
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .hero__title { font-size: clamp(72px, 7vw, 108px); }
  .hero__title .line { white-space: nowrap; }

  .bento--data { grid-template-columns: repeat(3, 1fr); }
  .bento--data .card--xl { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 400px; }
}

@media (max-width: 1023px) {
}

@media (max-width: 420px) {
  .nav { padding-left: 16px; }
  .nav .btn--small { padding: 0 14px; font-size: 13px; }
}

/* ═════════════════ Gravl-Bauweise ═════════════════ */
.hero { display: block; text-align: center; padding: 128px var(--gutter) 0; }
.hero__copy { max-width: 860px; margin: 0 auto; }
.hero__lead { margin: 22px auto 0; max-width: 40ch; }
.hero__cta { justify-content: center; }
.hero__coach { left: 50%; top: auto; bottom: -140px; width: min(150vw, 900px); transform: translateX(-50%); opacity: 0.6; }

/* Drei Screens im Fächer: Mitte vorn, Seiten dahinter */
.fan { position: relative; height: clamp(520px, 62vw, 700px); margin-top: 48px; perspective: 1600px; }
.fan .phone { position: absolute; left: 50%; top: 0; }
.fan__main { --w: clamp(230px, 56vw, 320px); z-index: 3; transform: translateX(-50%); }
.fan__side { --w: clamp(190px, 46vw, 270px); z-index: 2; top: 60px !important; filter: brightness(0.78); }
.fan__side--l { transform: translateX(calc(-50% - min(40vw, 300px))) rotate(-5deg); }
.fan__side--r { transform: translateX(calc(-50% + min(40vw, 300px))) rotate(5deg); }

.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .kicker { justify-content: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }

/* Segment-Reiter */
.seg {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  width: min(100%, 460px); margin: 0 auto 48px; padding: 5px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
}
.seg__btn {
  position: relative; z-index: 1; min-height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-2); font: 700 15px var(--display);
  transition: color 0.3s var(--ease);
}
.seg__btn.is-on { color: var(--ground); }
.seg__pill {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3);
  border-radius: 999px; background: var(--white); transition: transform 0.45s var(--ease);
}

/* Panel: Screens links, Liste rechts */
.panel { display: grid; gap: 40px; align-items: center; }
.panel[hidden] { display: none; }
.panel.is-in { animation: panelIn 0.5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.panel > * { min-width: 0; }
.duo { position: relative; display: flex; justify-content: center; padding-bottom: 24px; }
.duo .shot:first-child { position: relative; z-index: 2; }
.duo .shot:nth-child(2) { margin-left: -60px; margin-top: 70px; }
.duo .phone { --w: min(56vw, 300px); }
.duo--chat .shot--chat { align-self: center; margin-top: 0; z-index: 3; }
.duo--chat .chat { width: min(78vw, 360px); }
.duo--chat .chat__body { min-height: 300px; }

.feats { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair); }
.feat { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.feat__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-dim); border: 1px solid rgba(144, 214, 196, 0.25); }
.feat__ico svg { width: 20px; height: 20px; fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 0 0 4px; font-size: clamp(19px, 2vw, 22px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.feat p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Foto-Scan: vorher → nachher */
.flow { display: flex; justify-content: center; align-items: center; gap: 28px; }
.flow .phone { --w: min(60vw, 300px); }
.flow__arrow { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--card); border: 1px solid var(--line); }
.flow__arrow svg { width: 24px; height: 24px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow__cap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font-size: 16px; color: var(--text-2); }
.flow__cap span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--ground); background: var(--mint); }

@media (min-width: 1024px) {
  .hero { padding-top: 140px; }
  .hero__title { font-size: clamp(76px, 7.4vw, 112px); }
  .fan__main { --w: 320px; }
  .fan__side { --w: 270px; }
  .fan__side--l { transform: translateX(calc(-50% - 330px)) rotate(-5deg); }
  .fan__side--r { transform: translateX(calc(-50% + 330px)) rotate(5deg); }
  .panel { grid-template-columns: 1.05fr 0.95fr; gap: 72px; }
  .duo .phone { --w: 300px; }
}

/* Sprachwechsel: ruhiger Schleier wie in der App, 2 Sekunden */
.veil {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; gap: 18px;
  background: rgba(3, 7, 24, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.veil.is-on { opacity: 1; pointer-events: auto; }
.veil__in { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 0 24px; }
.veil canvas { width: 96px; height: 96px; }
.veil p { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); }

/* ═════════════════ Handy-Fassung ═════════════════
   Auf dem Handy erzählt die Seite über Screens zum Wischen statt über
   Überlappungen: jeder Screen ist groß genug zum Lesen (≈ 74 % der Breite),
   rastet mittig ein, Punkte darunter zeigen, wo man ist. Unten läuft eine
   App-Store-Leiste mit, sobald der Hero vorbei ist. */
.swipe-cap, .swipe-dots, .dock { display: none; }
@media (min-width: 768px) { .only-swipe { display: none; } }

@media (max-width: 767px) {
  .section { padding-top: 64px; }
  .section__head { margin-bottom: 28px; }

  /* Hero: Titel füllt die Breite, Screens ragen schon ins erste Bild. */
  .hero { padding: 92px var(--gutter) 24px; gap: 8px; }
  .hero__title { font-size: 13.2vw; line-height: 0.92; }
  .hero__title .line { white-space: nowrap; }
  .hero__lead { font-size: 16px; margin-top: 18px; }
  .hero__cta { margin-top: 22px; }
  .hero__cta .store { flex: 1 1 auto; justify-content: center; }
  .hero__note { font-size: 12.5px; }

  /* Wischbare Galerien, randlos bis an den Bildschirmrand. */
  .swipe-wrap { margin: 0 calc(var(--gutter) * -1); }
  .fan { height: 122vw; max-height: 620px; margin-top: 36px; }
  .flow { gap: 14px; }
  .flow__arrow { display: none; }
  .flow__cap { margin-top: 14px; }
  .duo { padding-bottom: 0; }
  .duo--chat .chat { width: 74vw; }
  .seg { margin-bottom: 28px; }
  [data-swipe] {
    display: flex !important; justify-content: flex-start !important; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 13vw;
    padding: 6px 13vw 4px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] .shot { flex: none; margin: 0 !important; scroll-snap-align: center; scroll-snap-stop: always; }
  [data-swipe] .phone { --w: 74vw !important; transform: none !important; }
  .swipe-cap { display: block; margin-top: 14px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-2); }
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .swipe-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); transition: width 0.3s var(--ease), background 0.3s; }
  .swipe-dots i.on { width: 20px; background: var(--mint); }



  .chat__body { min-height: 300px; }


  /* Mitlaufende App-Store-Leiste */
  .dock {
    display: flex; align-items: center; gap: 12px;
    position: fixed; z-index: 60; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 8px 8px 8px 10px; border-radius: 20px; text-decoration: none; color: var(--text);
    background: rgba(12, 16, 36, 0.88); border: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(160%); transition: transform 0.45s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
  .dock__txt { display: grid; line-height: 1.2; min-width: 0; flex: 1; }
  .dock__txt b { font-size: 15px; }
  .dock__txt small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock__btn { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--white); color: var(--ground); font-size: 13px; font-weight: 700; }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* Weniger Bewegung: alles steht, nichts läuft endlos. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .shine { color: var(--text); background: none; }
}
