/* FLYD – Website im Coral-Glass-Dunkel der App (flyd_app/DESIGN.md).
   Nacht als Grund, geschichtetes Glas, Hot Coral als einziges Licht. */

@font-face { font-family: 'Satoshi'; src: url('../fonts/Satoshi-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/Satoshi-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/Satoshi-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../fonts/ClashDisplay-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../fonts/ClashDisplay-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;

  /* Glas dunkel (palette.ts → darkPalette, tokens.ts) */
  --night: #000000;
  --well: #0A0A0B;
  --well-to: #111112;
  --hero-top: #232325;
  --hero-mid: #161617;
  --hero-bottom: #0E0E0F;
  --group: #1A1A1C;
  --tile: #1C1C1E;
  --tile-to: #141415;
  --graphite: #2C2C2E;
  --graphite-to: #1F1F21;
  --line: #262628;
  --track: #48484A;
  --hairline: rgba(255, 255, 255, .06);
  --top-edge: rgba(255, 255, 255, .12);

  --ink-1: #FFFFFF;
  --ink-2: #D1D1D6;
  --ink-3: #A1A1A6;
  --ink-4: #8E8E93; /* hellste erlaubte Stufe für Text (Untergrenze-Regel) */

  --coral: #FF4326;
  --coral-top: #FF6247;
  --coral-light: #FF6A50;
  --coral-pale: #FF8E7B;
  --coral-deep: #E8341A;
  --coral-darker: #D42C14;
  --coral-deepest: #B82410;
  --ok: #34C759;
  --ok-light: #6FDD8B;

  --coral-button: linear-gradient(180deg, var(--coral-top) 0%, var(--coral) 52%, var(--coral-deep) 100%);
  --coral-bar: linear-gradient(180deg, #FF7A62 0%, var(--coral) 46%, var(--coral-deepest) 100%);
  --hero-surface: linear-gradient(165deg, var(--hero-top) 0%, var(--hero-mid) 45%, var(--hero-bottom) 100%);
  --tile-surface: linear-gradient(180deg, var(--tile), var(--tile-to));
  --well-surface: linear-gradient(180deg, var(--well), var(--well-to));

  --r-row: 12px;
  --r-button: 18px;
  --r-well: 20px;
  --r-card: 22px;
  --r-group: 24px;
  --r-hero: 30px;
  --r-sheet: 34px;

  --display: 'Clash Display', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4.2vw, 48px);
  --wrap: 1240px;
}

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

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: var(--track) var(--night);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100vh;
  background: var(--night);
  color: var(--ink-2);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--coral);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: rgba(255, 67, 38, .38); color: #fff; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--graphite); border-radius: 10px; border: 2px solid var(--night); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* Ziffern fester Breite für Clash Display (die Schrift hat kein tnum) */
.digits { display: inline-flex; align-items: baseline; white-space: nowrap; }
.digits > .d, .digits > .s { display: inline-block !important; font: inherit !important; color: inherit !important; margin: 0 !important; padding: 0 !important; letter-spacing: 0 !important; text-align: center; }
.digits > .d { width: .66em; }
.digits > .s { width: .27em; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* ── Typografie ── */
.claim {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(52px, 7.6vw, 96px);
  line-height: .95; letter-spacing: -.022em; word-spacing: .06em;
  color: var(--ink-1);
  text-wrap: balance;
}
.h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02; letter-spacing: -.025em;
  color: var(--ink-1);
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.copy { font-size: 17px; line-height: 1.6; color: var(--ink-3); max-width: 52ch; text-wrap: pretty; }
.copy strong, .lead strong { color: var(--ink-1); font-weight: 700; }
.fineprint { font-size: 13px; line-height: 1.45; color: var(--ink-4); }

/* ── Knöpfe (ActionButton) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: var(--r-button);
  font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--coral-button); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 14px 28px -10px rgba(255, 67, 38, .65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 18px 34px -10px rgba(255, 67, 38, .78); }
.btn-primary:active { transform: translateY(0); filter: brightness(.92); }
.btn-secondary {
  background: linear-gradient(180deg, var(--graphite), var(--graphite-to)); color: var(--ink-1);
  box-shadow: inset 0 1px 0 var(--top-edge);
}
.btn-secondary:hover { filter: brightness(1.12); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 999px; }
.btn[disabled] { opacity: .4; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--ink-1); font-weight: 700; text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateY(2px); }

/* Pillen (PillChip) */
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px;
  border-radius: 999px; white-space: nowrap;
  background: var(--graphite); color: var(--ink-3);
  font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: background-color .25s var(--ease), color .2s ease, box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill:hover { color: var(--ink-1); }
.pill[aria-checked='true'], .pill[aria-pressed='true'] {
  background: var(--coral-button); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 22px -12px rgba(255, 67, 38, .8);
}

/* ── Navigation: schwebende Glas-Pille, später mit Zyklusleiste ── */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  pointer-events: none;
}
.nav-bar {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  height: 58px; padding: 0 9px 0 20px;
  max-width: calc(var(--wrap) + 2 * var(--gutter) - 2 * var(--gutter));
  margin: 0 auto;
  border-radius: 999px;
  pointer-events: auto;
}
.nav-bar::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(22, 22, 23, .62);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 var(--top-edge), 0 18px 40px -22px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
}
@media (max-width: 700px) { .nav { inset: 10px 10px auto; } .nav-bar { padding-left: 16px; } }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink-1); flex: none; min-height: 44px; }
.logo svg { width: 30px; height: 23px; }
.logo span { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .01em; }
.logo .ly { margin-left: -.18em; }

.tracker {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px; justify-content: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.nav.is-tracking .tracker { opacity: 1; transform: none; }
.tracker-label { font-size: 13px; font-weight: 700; color: var(--ink-1); white-space: nowrap; }
.tracker-label span { color: var(--ink-4); font-weight: 500; }
.tracker-track {
  display: flex; gap: 3px; padding: 3px; border-radius: 6px;
  background: #0C0C0D; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9);
  width: min(320px, 100%);
}
.tracker-track i {
  flex: 1; height: 5px; border-radius: 3px; background: var(--line);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.tracker-track i.past { background: linear-gradient(90deg, var(--coral-light), var(--coral-deep)); box-shadow: 0 0 6px rgba(255, 67, 38, .5); }
.tracker-track i.now { background: linear-gradient(90deg, #fff, #CFCFD4); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.nav-links .text-link { padding: 0 12px; font-size: 15px; color: var(--ink-2); }
.nav-links .text-link:hover { color: var(--ink-1); }
@media (max-width: 820px) {
  .nav-links .text-link { display: none; }
  .tracker { flex-direction: column; gap: 6px; }
  .tracker-track { width: min(150px, 100%); padding: 2px; }
  .tracker-track i { height: 4px; }
}
@media (max-width: 420px) { .tracker-label span { display: none; } }

/* ── Hero: der Plan als Landschaft ── */
.hero {
  position: relative;
  padding: calc(14px + 58px + clamp(24px, 5vh, 56px)) 0 clamp(36px, 6vh, 64px);
  isolation: isolate;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-top { order: 1; }
.deck-wrap { order: 2; }
.hero .landscape { order: 3; }
@media (max-width: 760px) {
  .hero .landscape { order: 2; }
  .deck-wrap { order: 3; }
  .deck-wrap .deck { margin-top: 28px; }
}
/* Coral-Glühen oben, wie auf jedem App-Screen – hier über dem Ziel */
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  right: -10vw; top: -16vh; width: 70vw; height: 90vh;
  background: radial-gradient(closest-side, rgba(255, 67, 38, .2), rgba(255, 67, 38, .06) 55%, rgba(255, 67, 38, 0));
}
.hero-top .lead { margin-top: clamp(14px, 2.2vh, 24px); }
.hero-foot { order: 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 18px 56px; align-items: start; margin-top: 26px; }
.deck-cta { width: 100%; margin-top: 6px; }
.deck-note { margin-top: 8px; text-align: center; color: var(--ink-3); }
.hero-foot .fineprint { color: var(--ink-3); }
@media (max-width: 900px) { .hero-foot { grid-template-columns: 1fr; } }

/* Instrument */
.deck {
  margin-top: clamp(26px, 4vh, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  gap: 18px 34px; align-items: start;
}
.deck-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 10px; }
.goal-pills { display: flex; flex-wrap: wrap; gap: 7px; }

.time-row { display: flex; align-items: center; gap: 10px; }
.time-display {
  font-family: var(--display); font-weight: 600; color: var(--ink-1);
  font-size: clamp(46px, 5vw, 64px); line-height: .9; letter-spacing: -.02em;
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.time-unit { font-size: 15px; color: var(--ink-3); font-weight: 700; align-self: flex-end; margin-bottom: 4px; }
.step-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--graphite); color: var(--ink-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: filter .2s ease, transform .2s var(--ease);
}
.step-btn:hover { filter: brightness(1.2); }
.step-btn:active { transform: scale(.94); }
.step-btn svg { width: 18px; height: 18px; }
.time-meta { margin-top: 12px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); }
.group-pips { display: inline-flex; gap: 3px; }
.group-pips i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.group-pips i.on { background: var(--coral); }

/* Schieberegler (Zeit, Tagesform) */
.range {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 30px; margin-top: 10px;
  background: transparent; cursor: pointer;
  --fill: 50%;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--coral) 0 var(--fill), var(--line) var(--fill) 100%);
}
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--coral); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff, #D9D9DE);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .6), 0 0 0 4px rgba(255, 67, 38, .18);
}
.range::-moz-range-thumb {
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff, #D9D9DE);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .6), 0 0 0 4px rgba(255, 67, 38, .18);
}

/* Tage-Tasten mit Lauflicht */
.day-keys { display: flex; gap: 6px; }
.day-key {
  position: relative;
  width: 44px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--ink-4);
  background: var(--well-surface);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9), inset 0 0 0 1px var(--hairline);
  transition: color .2s ease, background .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.day-key::after {
  content: ''; position: absolute; left: 50%; bottom: 7px; width: 14px; height: 3px; margin-left: -7px;
  border-radius: 2px; background: var(--line); transition: background .2s ease, box-shadow .2s ease;
}
.day-key[aria-pressed='true'] { color: var(--ink-1); background: linear-gradient(180deg, #2E2E31, #1D1D20); box-shadow: inset 0 1px 0 var(--top-edge), 0 8px 18px -10px rgba(0, 0, 0, .9); }
.day-key[aria-pressed='true']::after { background: var(--coral); }
.day-key.chase::after { background: #fff; }
.deck-hint { min-height: 18px; margin-top: 6px; font-size: 13px; color: var(--coral-pale); }

@media (max-width: 1080px) {
  .deck { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .deck-goal { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .deck { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .goal-pills { gap: 6px; }
  .goal-pills .pill { min-height: 38px; padding: 0 13px; font-size: 14px; }
  .day-keys { justify-content: space-between; }
  .day-key { width: auto; flex: 1; }
}

/* Landschaft */
.landscape { position: relative; margin-top: clamp(30px, 5vh, 56px); }
.landscape-say {
  font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-3); line-height: 1.45;
  max-width: 62ch;
}
.landscape-say b { font-family: var(--display); font-weight: 600; color: var(--ink-1); font-size: 1.12em; letter-spacing: -.01em; }
.bars-frame {
  position: relative;
  height: clamp(210px, 28vh, 360px);
  margin-top: 0;
  padding: 64px var(--gutter) 0;
  max-width: calc(1440px);
  margin-inline: auto;
}
.bars {
  position: relative; height: 100%;
  display: flex; align-items: flex-end; gap: clamp(3px, .85vw, 14px);
}
.bar {
  position: relative; flex: 1 1 0; min-width: 0;
  height: calc(var(--h, .3) * 100%);
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #4A4A4F 0%, #2A2A2D 70%, #202022 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .03);
  transition: height .75s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), filter .2s ease;
  transition-delay: calc(var(--i, 0) * 22ms);
  -webkit-tap-highlight-color: transparent;
}
.bar[data-phase='0'] { background: linear-gradient(180deg, #3A3A3E 0%, #232325 72%, #1A1A1C 100%); }
.bar[data-phase='2'] { background: linear-gradient(180deg, #5A5A5F 0%, #303033 70%, #232325 100%); }
.bar[data-phase='3'] { background: linear-gradient(180deg, #44444A 0%, #262628 75%, #1C1C1E 100%); }
.bar.is-deload { opacity: .72; }
.bar.is-race { background: linear-gradient(180deg, #5A5A5F 0%, #303033 70%, #232325 100%); }
.bar.is-race::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 10px 10px 2px 2px; background: var(--coral-button); }
.bar.is-open { background: var(--coral-bar); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 22px 44px -18px rgba(255, 67, 38, .75); }
.bar .tag { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.bar:hover { filter: brightness(1.25); }

/* Zielflagge am Renntag */
.flag {
  position: absolute; right: var(--gutter); bottom: var(--flag-b, 50%);
  display: flex; flex-direction: column; align-items: flex-end;
  pointer-events: none; margin-bottom: 10px;
  transition: bottom .75s var(--ease);
}
.flag-text { font-size: 13px; font-weight: 700; color: var(--ink-1); white-space: nowrap; margin-bottom: 6px; }
.flag-text span { color: var(--coral-pale); }
.flag-pole { position: relative; width: 2px; height: 34px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .2)); margin-right: calc(var(--bar-w, 40px) / 2 - 1px); }
.flag-pole::before {
  content: ''; position: absolute; left: 2px; top: 0; width: 22px; height: 14px;
  background: var(--coral-button); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.floor { height: 1px; margin: 0 var(--gutter); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22) 15%, rgba(255, 255, 255, .22) 85%, transparent); }
.phases { display: flex; gap: clamp(3px, .85vw, 14px); padding: 14px var(--gutter) 0; max-width: 1440px; margin: 0 auto; }
.phase { min-width: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 9px; font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase:last-child { overflow: visible; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.phase.is-dropped { padding-top: 27px; }
.phase small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-4); }
.phase .ph-name { display: inline; }
.bar-tip {
  position: absolute; z-index: 5; bottom: calc(100% + 12px); left: 0;
  width: max-content; max-width: 280px; padding: 12px 14px;
  border-radius: 16px; background: rgba(22, 22, 23, .92);
  box-shadow: inset 0 1px 0 var(--top-edge), 0 18px 40px -16px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 13px; color: var(--ink-3); pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .3s var(--ease);
}
.bar-tip.is-on { opacity: 1; transform: none; }
.bar-tip strong { display: block; color: var(--ink-1); font-size: 14px; margin-bottom: 4px; }

@media (max-width: 640px) {
  .bars-frame { height: 240px; padding-top: 52px; }
  .phase small { display: none; }
  .phase { font-size: 12px; }
}

/* ── Etappen: der Plan Woche für Woche ── */
.leg { position: relative; padding: clamp(72px, 11vh, 128px) 0; }
.hero + .leg { padding-top: clamp(48px, 7vh, 88px); }
.leg + .leg { border-top: 1px solid rgba(255, 255, 255, .04); }
.leg-head { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 28px; align-items: start; }
.week-mark { padding-top: .2em; }
.week-mark .n { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5vw, 72px); line-height: .9; color: var(--ink-1); letter-spacing: -.02em; }
.week-mark .t { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink-4); }
.week-mark .t b { color: var(--coral-pale); font-weight: 700; }
.leg-head .copy { margin-top: 18px; }
@media (max-width: 760px) {
  .leg-head { grid-template-columns: 1fr; }
  .week-mark { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
  .week-mark .t { margin-top: 0; }
}
.leg-body { margin-top: clamp(36px, 5vh, 56px); }
.leg-head--stack { grid-template-columns: 1fr; }
.leg-head--stack .week-mark { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.leg-head--stack .week-mark .t { margin-top: 0; }

/* Flächen */
.surface-hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-hero);
  background: var(--hero-surface);
  box-shadow: inset 0 1px 0 var(--top-edge), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 30px 60px -18px rgba(0, 0, 0, .95);
}
.surface-hero::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
}
.surface-tile { border-radius: var(--r-card); background: var(--tile-surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px var(--hairline); }
.surface-well { border-radius: var(--r-well); background: var(--well-surface); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9); }
.chip-ki {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-4);
}
.chip-ki svg { width: 13px; height: 13px; }

/* Etappe 0 – Testlauf mit Halte-Kuppel */
.test-stage { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
.act-wrap { position: relative; width: 100%; max-width: 440px; }
@media (max-width: 900px) { .test-stage { grid-template-columns: 1fr; justify-items: center; } }
.act-card { --energy: 1; width: 100%; padding: 24px 24px 92px; }
.act-card::before {
  content: ''; position: absolute; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 67, 38, calc(.42 * var(--energy))), rgba(255, 67, 38, 0) 100%);
  transition: opacity .4s ease;
}
.act-card { box-shadow: inset 0 1px 0 var(--top-edge), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 30px 60px -18px rgba(0, 0, 0, .95), 0 18px 40px -20px rgba(255, 67, 38, calc(.35 * var(--energy))); }
.act-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.act-status { flex: none; display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 700; color: var(--coral-pale); }
.act-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px rgba(255, 67, 38, .9); }
.act-card[data-state='done'] .act-status { color: var(--ok-light); }
.act-card[data-state='done'] .act-status i { background: var(--ok); box-shadow: 0 0 8px rgba(52, 199, 89, .9); }
.act-title { position: relative; font-family: var(--display); font-weight: 600; font-size: 42px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink-1); }
.act-stats { position: relative; display: flex; gap: 26px; margin-top: 22px; }
.act-stats b { display: block; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.05; color: var(--ink-1); }
.act-stats span { display: block; margin-top: 5px; font-size: 13px; color: var(--ink-3); }
.dome-dock { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -64px; z-index: 2; }
.dome {
  --p: 0;
  position: relative; width: 128px; height: 128px; border-radius: 50%;
  background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 40px -10px rgba(0, 0, 0, .9);
  display: grid; place-items: center;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.dome svg.ring { position: absolute; inset: 6px; width: 116px; height: 116px; transform: rotate(-90deg); }
.dome .ring-track { stroke: var(--track); }
.dome .ring-fill { stroke: var(--coral); stroke-dasharray: 339.3; stroke-dashoffset: calc(339.3 * (1 - var(--p))); }
.dome .core { position: absolute; inset: 14px; border-radius: 50%; background: #000; }
.dome .cap {
  position: relative; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 28%, #FF7A62 0%, var(--coral) 52%, var(--coral-darker) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -5px 10px rgba(0, 0, 0, .25), 0 0 calc(10px + 30px * var(--p)) rgba(255, 67, 38, .55);
  transition: transform .2s var(--ease);
}
.dome.is-pressed .cap { transform: scale(.93); }
.dome .cap svg { width: 36px; height: 36px; margin-left: 4px; }
.dome[data-icon='pause'] .cap svg { margin-left: 0; }
.dome-label { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--ink-1); }
.dome-caption { margin-top: 4px; max-width: 280px; text-align: center; font-size: 13px; color: var(--ink-4); }
.test-side .pill { margin-top: 30px; }
.test-steps { margin-top: 0; }
.test-result { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.test-steps { margin-top: 30px; display: grid; gap: 14px; counter-reset: s; max-width: 46ch; }
.test-steps li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: baseline; color: var(--ink-3); font-size: 16px; }
.test-steps li b { color: var(--ink-1); }
.test-steps li::before {
  counter-increment: s; content: counter(s);
  font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink-1); line-height: 1;
}

/* Etappe: Wochenbrett */
.week-board { padding: clamp(18px, 2.4vw, 30px); }
.week-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.week-top h3 { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--ink-1); letter-spacing: -.01em; }
.week-top .fineprint { margin-left: 2px; }
.week-nav { margin-left: auto; display: flex; gap: 8px; }
.cols { margin-top: 26px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); align-items: end; height: 190px; }
.col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 10px; }
.col-bar { width: min(100%, 54px); border-radius: 12px 12px 6px 6px; height: calc(var(--h, 0) * 150px); min-height: 6px; transition: height .6s var(--ease);
  background: linear-gradient(180deg, #5A5A5F, #303033); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.col-bar.is-key { background: var(--coral-bar); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 26px -8px rgba(255, 67, 38, .55); }
.col-bar.is-rest { height: 6px; background: var(--line); box-shadow: none; }
.col-day { font-size: 13px; font-weight: 700; color: var(--ink-4); }
.col.on .col-day { color: var(--ink-1); }
.sessions { margin-top: 22px; display: grid; gap: 2px; }
.session { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 4px; border-top: 1px solid var(--hairline); align-items: baseline; }
.session:first-child { border-top: 0; }
.session-day { font-size: 14px; font-weight: 700; color: var(--ink-4); }
.session-title { font-weight: 700; color: var(--ink-1); }
.session-title i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin-left: 8px; vertical-align: 2px; }
.session-desc { grid-column: 2; font-size: 15px; color: var(--ink-3); }
.session-num { grid-row: 1 / span 2; grid-column: 3; text-align: right; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.session-num span { display: block; font-size: 13px; color: var(--ink-4); }
.mix { margin-top: 20px; }
.mix-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); }
.mix-bar i { display: block; height: 100%; transition: width .6s var(--ease); }
.mix-bar i:first-child { background: linear-gradient(90deg, #6A6A70, #48484C); }
.mix-bar i:last-child { background: var(--coral); }
.mix-legend { margin-top: 10px; display: flex; gap: 20px; font-size: 14px; color: var(--ink-3); }
.mix-legend b { color: var(--ink-1); }
@media (max-width: 640px) {
  .cols { height: 150px; }
  .col-bar { height: calc(var(--h, 0) * 112px); }
  .session { grid-template-columns: 40px minmax(0, 1fr) auto; }
}

/* Etappe: Tagesform */
.ready-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; }
@media (max-width: 900px) { .ready-stage { grid-template-columns: 1fr; } }
.checkin { padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; }
.checkin-q { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--ink-1); }
.checkin-scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; color: var(--ink-4); }
.ready-row { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 12px; }
.factors { margin-top: 30px; display: grid; gap: 12px; }
.factors li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; color: var(--ink-3); }
.factors li::before { content: ''; width: 8px; height: 8px; margin: 7px 0 0 4px; border-radius: 50%; background: var(--track); }
.factors b { color: var(--ink-1); }
.ready-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 199, 89, .2), 0 0 10px rgba(52, 199, 89, .7); transition: background .3s ease, box-shadow .3s ease; }
.ready-row[data-level='mid'] .ready-dot { background: #FF9F0A; box-shadow: 0 0 0 3px rgba(255, 159, 10, .2), 0 0 10px rgba(255, 159, 10, .6); }
.ready-row[data-level='low'] .ready-dot { background: var(--ink-4); box-shadow: 0 0 0 3px rgba(142, 142, 147, .2); }
.ready-label { font-size: 16px; color: var(--ink-1); }
.ready-score { margin-left: auto; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink-1); }
.today { padding: clamp(22px, 2.6vw, 34px); }
.today-title { font-family: var(--display); font-weight: 600; font-size: 34px; color: var(--ink-1); letter-spacing: -.015em; }
.today-title .digits .d { width: .6em; }
.structure { margin-top: 20px; padding: 18px 16px 14px; }
.structure-bars { display: flex; align-items: flex-end; gap: 4px; height: 78px; transform: perspective(500px) rotateX(14deg); transform-origin: bottom; }
.sb { border-radius: 6px 6px 3px 3px; transition: flex-grow .5s var(--ease), opacity .4s ease, height .5s var(--ease); }
.sb-warm { flex: 2.2 1 0; height: 22px; background: linear-gradient(180deg, #5A5A5F, #303033); }
.sb-work { flex: 1.4 1 0; height: 64px; background: var(--coral-bar); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px -6px rgba(255, 67, 38, .6); }
.sb-rest { flex: .9 1 0; height: 16px; background: linear-gradient(180deg, #4A4A4E, #2A2A2D); }
.sb.is-gone { flex-grow: 0; opacity: 0; margin-left: -4px; }
.structure-legend { margin-top: 12px; display: grid; grid-template-columns: 1fr auto 1fr; font-size: 13px; color: var(--ink-4); }
.structure-legend b { display: block; color: var(--ink-1); font-size: 15px; text-align: center; }
.structure-legend span:last-child { text-align: right; }
.bands { margin-top: 18px; display: grid; }
.band { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 2px; border-top: 1px solid var(--hairline); }
.band span { font-size: 15px; color: var(--ink-3); }
.band b { font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--ink-1); }
.band b small { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--ink-4); margin-left: 4px; }
.today-note { margin-top: 14px; min-height: 42px; font-size: 14px; color: var(--ink-3); }
.today-note b { color: var(--coral-pale); }

/* Etappe: KI-Laufanalyse */
.analyse-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
@media (max-width: 960px) { .analyse-stage { grid-template-columns: 1fr; } }
.lab { position: relative; min-height: 460px; overflow: hidden; border-radius: var(--r-hero);
  background: radial-gradient(90% 70% at 47% 88%, #1C1C1E, #070707 62%, #030303);
  box-shadow: inset 0 1px 0 var(--top-edge), inset 0 0 0 1px var(--hairline);
}
.lab svg.runner { position: absolute; inset: 0; width: 100%; height: 100%; }
.runner .flesh { stroke: rgba(255, 255, 255, .07); stroke-width: 24; stroke-linecap: round; fill: none; }
.runner .flesh.far { stroke: rgba(255, 255, 255, .035); }
.runner .bone { stroke: rgba(255, 255, 255, .82); stroke-width: 5; stroke-linecap: round; fill: none; }
.runner .bracket { stroke: var(--coral); stroke-width: 2; fill: none; opacity: 0; transition: opacity .15s ease; }
.runner .bracket.is-on { opacity: 1; }
.runner .bracket-label { fill: var(--coral-pale); font: 700 12px Satoshi, sans-serif; opacity: 0; transition: opacity .15s ease; }
.runner .bracket-label.is-on { opacity: 1; }
.runner .bone.far { stroke: rgba(255, 255, 255, .28); }
.runner .joint { fill: #fff; }
.runner .joint.far { fill: rgba(255, 255, 255, .4); }
.runner .head { fill: none; stroke: rgba(255, 255, 255, .78); stroke-width: 5; }
.runner .ground { stroke: rgba(255, 255, 255, .18); stroke-width: 1; stroke-dasharray: 4 6; }
.runner .cog { stroke: rgba(255, 106, 80, .55); stroke-width: 1.5; stroke-dasharray: 3 5; }
.runner .leader { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: 1.2; transition: stroke .25s ease, stroke-width .25s ease; }
.runner .leader.is-on { stroke: var(--coral); stroke-width: 2; }
.runner .mark-dot { fill: var(--coral); }
.callout {
  position: absolute; display: flex; gap: 10px; align-items: flex-start; max-width: 210px;
  font-size: 13px; color: var(--ink-3); text-align: left; padding: 6px; border-radius: 12px;
  transition: color .2s ease, background-color .2s ease;
}
.callout .num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink-1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.callout b { display: block; font-size: 14px; color: var(--ink-1); }
.callout.is-on { background: rgba(255, 255, 255, .04); }
.callout.is-on .num { background: var(--coral); box-shadow: none; }
.lab-foot { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .lab { min-height: 0; aspect-ratio: auto; display: flex; flex-direction: column; }
  .lab svg.runner { position: relative; height: 330px; }
  .callouts { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px 76px; }
  .callout { position: static; max-width: none; }
}
.score-card { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 20px; }
.score-top { display: flex; align-items: center; gap: 20px; }
.score-ring { position: relative; width: 104px; height: 104px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .t { stroke: var(--line); }
.score-ring .f { stroke: var(--coral); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.score-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-ring b { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--ink-1); }
.score-ring span { font-size: 12px; color: var(--ink-4); }
.score-say b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--ink-1); }
.score-say span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-4); }
.findings { display: grid; }
.finding { padding: 14px 2px; border-top: 1px solid var(--hairline); }
.finding b { display: flex; align-items: center; gap: 8px; color: var(--ink-1); font-size: 15px; }
.finding b i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.finding b i.ok { background: var(--ok); }
.finding span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }

/* Etappe: KI-Coach */
.coach-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: 'copy chat' 'tasks chat'; grid-template-rows: auto 1fr; gap: 36px 72px; }
.coach-side { grid-area: copy; }
.chat { grid-area: chat; }
.tasks { grid-area: tasks; align-self: end; padding: clamp(20px, 2.4vw, 28px); }
@media (max-width: 960px) { .coach-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'chat' 'tasks'; grid-template-rows: none; } }
.task[hidden] { display: none; }
.task-list { margin-top: 16px; display: grid; }
.task { list-style: none; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--hairline); }
.task b { display: block; color: var(--ink-1); font-size: 15px; }
.task small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-4); }
.task-box { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--track); color: #fff; }
.task-box svg { width: 16px; height: 16px; }
.task-box.is-on { background: var(--coral-button); box-shadow: none; }
.task--new:not([hidden]) { animation: taskIn .7s var(--ease) both; }
@keyframes taskIn { from { opacity: 0; transform: translateY(-8px); background: rgba(255, 67, 38, .14); } to { opacity: 1; transform: none; background: transparent; } }
#taskHint { margin-top: 12px; }
.chat {
  position: relative; overflow: hidden; padding: 22px 18px 18px;
  border-radius: var(--r-sheet);
  background: radial-gradient(120% 70% at 50% -10%, rgba(255, 67, 38, .32), rgba(255, 67, 38, 0) 62%), linear-gradient(180deg, #120807, #050505 60%);
  box-shadow: inset 0 1px 0 var(--top-edge), inset 0 0 0 1px var(--hairline), 0 30px 60px -18px rgba(0, 0, 0, .95);
}
.chat-head { text-align: center; }
.chat-head b { display: block; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink-1); }
.chat-head span { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.chat-log { margin-top: 22px; display: grid; gap: 16px; min-height: 380px; align-content: start; }
.msg-me {
  justify-self: end; max-width: 82%; padding: 13px 16px; border-radius: 20px 20px 6px 20px;
  background: var(--coral-button); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 26px -14px rgba(255, 67, 38, .8);
}
.msg-coach { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.msg-coach h4 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink-1); margin-bottom: 8px; }
.msg-coach h4 i { width: 22px; height: 22px; border-radius: 50%; background: var(--coral-button); flex: none; }
.msg-coach ul { margin: 10px 0; display: grid; gap: 6px; }
.msg-coach li { list-style: none; position: relative; padding-left: 16px; }
.msg-coach li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.msg-coach li b { color: var(--ink-1); }
.proposal { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.proposal .tick { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--graphite); color: var(--ink-3); transition: background .3s ease, color .3s ease; }
.proposal .tick svg { width: 16px; height: 16px; }
.proposal.is-added .tick { background: var(--coral-button); color: #fff; }
.proposal b { display: block; color: var(--ink-1); font-size: 14px; }
.proposal span { display: block; font-size: 13px; color: var(--ink-4); }
.proposal .btn { margin-left: auto; }
.chat-input { margin-top: 18px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-4); font-size: 15px; }
.chat-input i { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.chat-input svg { width: 16px; height: 16px; }
.chat-foot { margin-top: 12px; text-align: center; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

/* Etappe: Kraft */
.kraft-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 900px) { .kraft-stage { grid-template-columns: 1fr; } }
.set-card { padding: clamp(22px, 2.4vw, 30px); }
.set-card h3 { font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--ink-1); }
.set-card .fineprint { margin-top: 4px; }
.sets { margin-top: 20px; display: grid; }
.set { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--hairline); }
.set > span:first-child { font-family: var(--display); font-weight: 600; color: var(--ink-4); }
.set b { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink-1); }
.set small { font-size: 13px; color: var(--ink-4); margin-left: 4px; font-family: var(--body); font-weight: 500; }
.set-check { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); color: var(--ink-3); transition: background .25s ease, color .25s ease, transform .2s var(--ease); }
.set-check svg { width: 18px; height: 18px; }
.set-check[aria-pressed='true'] { background: var(--coral-button); color: #fff; }
.set-check:active { transform: scale(.92); }
.rest-card { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; }
.rest-value { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: clamp(64px, 7vw, 92px); line-height: .9; color: var(--ink-1); letter-spacing: -.02em; }
.rest-value.is-running { color: var(--coral-pale); }
.wheel { position: relative; margin-top: 22px; }
.wheel-strip {
  display: flex; align-items: flex-end; gap: 0; height: 74px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab; touch-action: pan-x; overscroll-behavior-x: contain;
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.wheel-strip::-webkit-scrollbar { display: none; }
.wheel-strip:active { cursor: grabbing; }
.wt { position: relative; flex: none; width: 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; scroll-snap-align: center; }
.wt::before { content: ''; width: 2px; height: 18px; border-radius: 1px; background: rgba(255, 255, 255, .22); }
.wt.major::before { height: 34px; background: rgba(255, 255, 255, .5); }
.wt span { position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.wt-pad { flex: none; }
.wheel-needle { position: absolute; left: 50%; bottom: 0; width: 3px; height: 50px; margin-left: -1.5px; border-radius: 2px; background: var(--coral); pointer-events: none; }

/* Etappe: Renntag live */
.live-stage { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
@media (max-width: 960px) { .live-stage { grid-template-columns: 1fr; } .live-side { order: -1; } }
.live-points { margin-top: 34px; display: grid; gap: 6px; }
.live-point { display: grid; grid-template-columns: 26px 1fr; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 18px; color: var(--ink-3); font-size: 16px; transition: background-color .25s ease; }
.live-point svg { width: 22px; height: 22px; color: var(--coral-light); margin-top: 2px; }
.live-point b { color: var(--ink-1); }
.live-point:hover, .live-point.is-on { background: rgba(255, 255, 255, .05); }
/* Das Coral-Handy (wie das frühere 3D-Modell: Chrom, das die Coral-Bühne
   spiegelt). Bildschirm live, Maße darin in cqw. */
.phone-wrap { justify-self: center; width: min(100%, 420px, 50vh); display: grid; justify-items: center; gap: 22px; }
.phone-stage { width: min(100%, 340px, 38vh); perspective: 1600px; }
.phone-stage.is-3d { width: 100%; }
.phone {
  --rx: 4deg; --ry: -12deg;
  position: relative; width: 100%; aspect-ratio: 1206 / 2622;
  border-radius: 15% / 6.9%;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 70%, rgba(80, 10, 0, .22) 100%),
    linear-gradient(180deg, #FF7458 0%, #FF5D40 38%, #F7492C 72%, #E23E23 100%);
  box-shadow: inset 0 0 0 1px rgba(110, 18, 6, .55), inset 0 2px 1px rgba(255, 220, 210, .55), 0 60px 90px -40px rgba(0, 0, 0, .95), 0 30px 70px -40px rgba(255, 67, 38, .55);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.phone::before { content: ''; position: absolute; inset: 2.7%; border-radius: 13.4% / 6.2%; background: #0B0B0C; }
.phone-btn { position: absolute; width: 1.5%; border-radius: 2px; background: linear-gradient(90deg, #B42E19, #FF7458 55%, #C93A22); }
.phone-btn.b-action { left: -1.2%; top: 17%; height: 4.2%; }
.phone-btn.b-up { left: -1.2%; top: 24.5%; height: 7.4%; }
.phone-btn.b-down { left: -1.2%; top: 33.4%; height: 7.4%; }
.phone-btn.b-power { right: -1.2%; top: 27%; height: 11.5%; }
.phone-screen {
  position: absolute; inset: 3.3%; overflow: hidden; container-type: inline-size;
  border-radius: 12.6% / 5.8%;
  background: radial-gradient(130% 55% at 50% 4%, #2C120C 0%, #0A0606 55%, #000 100%);
}
.phone-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .06) 48%, transparent 58%);
  transform: translateX(calc(var(--sheen, 0) * 1%));
  transition: transform .9s var(--ease);
}
.view { position: absolute; inset: 0; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.phone[data-view='lock'] .view-app, .phone[data-view='app'] .view-lock { opacity: 0; transform: scale(.97); pointer-events: none; }
.phone[data-view='app'] .phone-screen { background: #000; }

/* Dynamic Island: wie das echte Widget – links Zeit (Coral), rechts Distanz, unten Titel und Pace */
.island {
  position: absolute; left: 50%; top: 3.4cqw; transform: translateX(-50%); z-index: 4;
  width: 33cqw; height: 9.6cqw; border-radius: 6cqw; background: #000;
  overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
  transition: width .7s var(--ease), height .7s var(--ease), border-radius .7s var(--ease), top .7s var(--ease), box-shadow .3s ease;
}
.phone.is-live[data-view='lock'] .island { width: 93cqw; height: 28cqw; border-radius: 12cqw; top: 10cqw; }
.isl { position: absolute; inset: 0; padding: 4.2cqw 6cqw 0; opacity: 0; transition: opacity .3s ease; }
.phone.is-live[data-view='lock'] .isl-run { opacity: 1; transition-delay: .25s; }
.phone.is-live[data-view='lock'].is-rest .isl-run { opacity: 0; transition-delay: 0s; }
.phone.is-live[data-view='lock'].is-rest .isl-rest { opacity: 1; transition-delay: .2s; }
.isl-top { display: flex; justify-content: space-between; align-items: flex-start; }
.isl-m b { display: block; font-family: var(--display); font-weight: 600; font-size: 7.6cqw; line-height: 1; color: var(--ink-1); }
.isl-m span { display: block; margin-top: 1.2cqw; font-size: 2.9cqw; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.isl-m.coral b { color: var(--coral); }
.isl-m.right { text-align: right; }
.isl-bottom { display: flex; justify-content: space-between; margin-top: 3.4cqw; font-size: 3.5cqw; font-weight: 700; color: var(--ink-3); }
.isl-bar { margin-top: 4cqw; height: 1.4cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .14); overflow: hidden; }
.isl-bar i, .act-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--left, .5)); background: var(--coral); transition: transform 1s linear; }

/* Sperrbildschirm */
.lock-clock { position: absolute; left: 0; right: 0; top: 48cqw; text-align: center; color: rgba(255, 255, 255, .94); }
.lock-clock span { display: block; font-size: 4.6cqw; font-weight: 700; color: var(--ink-2); margin-bottom: 1cqw; }
.lock-clock b { display: block; font-family: var(--display); font-weight: 600; font-size: 25cqw; line-height: 1; letter-spacing: -.02em; }
.activity { position: absolute; left: 4cqw; right: 4cqw; top: 98cqw; padding: 5cqw 5.4cqw; border-radius: 8cqw; background: rgba(28, 28, 30, .72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 var(--top-edge); transition: box-shadow .3s ease; }
.act-rest { display: none; }
.phone.is-rest .act-run { display: none; }
.phone.is-rest .act-rest { display: block; }
.activity-top { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; font-size: 3.9cqw; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--coral); }
.act-phase { font-size: 3.3cqw; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.activity-stats { display: flex; justify-content: space-between; margin-top: 4cqw; }
.activity-stats b { display: block; font-family: var(--display); font-weight: 600; font-size: 6.8cqw; color: var(--ink-1); line-height: 1.05; }
.activity-stats .coral b { color: var(--coral); }
.activity-stats span { display: block; margin-top: 1cqw; font-size: 3cqw; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.act-bar { flex: none; width: 34cqw; height: 1.4cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .14); overflow: hidden; }
.rest-big { display: block; margin-top: 3cqw; font-family: var(--display); font-weight: 600; font-size: 13cqw; line-height: 1; color: var(--ink-1); }
.act-next { margin-top: 3cqw; font-size: 3.9cqw; font-weight: 700; color: var(--ink-1); }
.act-next span { font-size: 3cqw; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-right: 1.4cqw; }
.lock-dock { position: absolute; left: 8cqw; right: 8cqw; bottom: 9cqw; display: flex; justify-content: space-between; }
.lock-btn { width: 14cqw; height: 14cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(44, 44, 46, .7); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.lock-btn svg { width: 6.4cqw; height: 6.4cqw; }
.home-bar { position: absolute; left: 50%; bottom: 2.6cqw; width: 36cqw; height: 1.4cqw; margin-left: -18cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .85); z-index: 4; }

/* Lauf-Bildschirm der App (Handoff „Aktiver Lauf“) */
.view-app { padding: 17cqw 4.6cqw 0; }
.hud, .zone { border-radius: 7.5cqw; background: linear-gradient(180deg, rgba(34, 34, 36, .9), rgba(18, 18, 19, .92)); box-shadow: inset 0 1px 0 var(--top-edge), inset 0 0 0 1px var(--hairline); }
.hud { padding: 4.6cqw 5.2cqw 5cqw; transition: box-shadow .3s ease; }
.hud-top { display: flex; justify-content: space-between; align-items: center; font-size: 3.2cqw; font-weight: 700; color: var(--ink-3); }
.hud-live { display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1cqw 2.6cqw; border-radius: 999px; background: rgba(255, 67, 38, .14); color: var(--coral-pale); }
.hud-live i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--coral); }
.hud-time { display: block; margin-top: 3cqw; font-family: var(--display); font-weight: 700; font-size: 15.5cqw; line-height: 1; color: var(--ink-1); }
.hud-cols { margin-top: 4cqw; padding-top: 3.6cqw; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2cqw; }
.hud-cols b { display: block; font-family: var(--display); font-weight: 700; font-size: 5.3cqw; color: var(--ink-1); white-space: nowrap; }
.hud-cols span { display: flex; align-items: center; gap: .8cqw; margin-top: 1cqw; font-size: 2.6cqw; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.hud-cols svg { width: 2.8cqw; height: 2.8cqw; color: var(--coral); }
.zone { margin-top: 3cqw; padding: 3.6cqw 5cqw 4.2cqw; }
.zone-top { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; font-size: 3.4cqw; color: var(--ink-3); white-space: nowrap; }
.zone-top b { color: var(--ink-1); font-weight: 700; }
.zone-chip { padding: 1cqw 2.6cqw; border-radius: 999px; font-size: 3cqw; font-weight: 700; transition: color .3s ease, background-color .3s ease; }
.zone-chip[data-s='in'] { color: #5FD37C; background: rgba(52, 199, 89, .16); }
.zone-chip[data-s='fast'] { color: #FFB24D; background: rgba(255, 149, 0, .16); }
.zone-chip[data-s='slow'] { color: #8EC5FF; background: rgba(64, 156, 255, .16); }
.zone-scale { position: relative; margin-top: 3.6cqw; height: 3cqw; border-radius: 2cqw; background: #0A0A0B; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9); }
.zone-band { position: absolute; left: 30%; width: 40%; top: 0; bottom: 0; border-radius: 2cqw; background: linear-gradient(90deg, rgba(52, 199, 89, .55), rgba(111, 221, 139, .75), rgba(52, 199, 89, .55)); box-shadow: inset 0 0 0 1px rgba(52, 199, 89, .45); }
.zone-marker { position: absolute; top: 50%; left: var(--m, 50%); width: 5.4cqw; height: 5.4cqw; margin: -2.7cqw 0 0 -2.7cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .9cqw var(--zc, #34C759), 0 0 3cqw var(--zc, #34C759); transition: left .8s var(--ease), box-shadow .3s ease; }
.zone-axis { display: flex; justify-content: space-between; margin-top: 2.6cqw; font-size: 2.9cqw; color: var(--ink-4); }
.hud-route { display: block; width: 100%; margin-top: 4cqw; border-radius: 7cqw; background: radial-gradient(120% 90% at 50% 30%, #1A1A1C, #0B0B0C); }
.hud-dome { position: absolute; left: 50%; bottom: 8cqw; width: 22cqw; height: 22cqw; margin-left: -11cqw; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 28%, #FF7A62 0%, var(--coral) 52%, var(--coral-darker) 100%);
  box-shadow: 0 0 0 2.4cqw #000, 0 0 0 calc(2.4cqw + 1px) rgba(255, 255, 255, .06), inset 0 2px 0 rgba(255, 255, 255, .45), 0 14px 28px -10px rgba(255, 67, 38, .7); }
.hud-dome svg { width: 9cqw; height: 9cqw; }
.view-switch { display: flex; gap: 7px; }
.phone.hl-activity .activity { box-shadow: inset 0 1px 0 var(--top-edge), 0 0 0 2px var(--coral); }
.phone.hl-island .island { box-shadow: 0 0 0 2px var(--coral); }
.phone.hl-hr [data-hr], .phone.hl-hr .zone { box-shadow: 0 0 0 2px var(--coral); border-radius: 3cqw; }
.phone.hl-hr .zone { border-radius: 7.5cqw; }
@media (prefers-reduced-motion: reduce) { .phone { --rx: 0deg; --ry: 0deg; } }
/* 3D-Modus: das three.js-Modell zeichnet Rahmen und Tasten, das HTML-Bildschirm-
   element wird per matrix3d auf seine Bildschirmfläche gelegt (js/phone3d.js). */
.phone-stage.is-3d { position: relative; aspect-ratio: .62; }
.phone-stage.is-3d .phone { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; background: none; box-shadow: none; border-radius: 0; transform: none; transition: none; }
.phone-stage.is-3d .phone::before, .phone-stage.is-3d .phone-btn { display: none; }
.phone-stage.is-3d .phone-screen { inset: auto; left: 0; top: 0; width: 320px; height: 684px; transform-origin: 0 0; border-radius: 9.2% / 4.3%; will-change: transform; }
.phone-stage.is-3d .phone-screen::after { display: none; }
.phone3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }


/* Etappe: danach */
.after-stage { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
@media (max-width: 1040px) { .after-stage { grid-template-columns: 1fr 1fr; } .finish-card { grid-column: 1 / -1; } }
@media (max-width: 640px) { .after-stage { grid-template-columns: 1fr; } }
.finish-card { padding: 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.check-dome { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 28%, #FF7A62 0%, var(--coral) 52%, var(--coral-darker) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 12px 26px -8px rgba(255, 67, 38, .7); }
.check-dome svg { width: 28px; height: 28px; }
.finish-card h3 { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--ink-1); letter-spacing: -.02em; }
.finish-card .fineprint { margin-top: 4px; font-weight: 700; color: var(--coral-pale); }
.route { width: 100%; margin-top: 18px; border-radius: 20px; }
.route path.r { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s var(--ease); }
.is-seen .route path.r { stroke-dashoffset: 0; }
.finish-stats { margin-top: 18px; display: flex; justify-content: center; gap: 26px; }
.finish-stats b { display: block; font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--ink-1); }
.finish-stats span { font-size: 12px; color: var(--ink-4); }
.podium-card, .streak-card { padding: 24px; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink-1); }
.podium { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; }
.pod { text-align: center; }
.pod .av { width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: var(--ink-1); background: #111; box-shadow: 0 0 0 2px #C9C9CE, 0 0 0 4px #000; }
.pod.first .av { box-shadow: 0 0 0 2px var(--coral), 0 0 0 4px #000; }
.pod .name { font-size: 13px; font-weight: 700; color: var(--ink-1); }
.pod .block { margin-top: 8px; border-radius: 14px 14px 6px 6px; padding: 10px 0; background: linear-gradient(180deg, #2E2E31, #1A1A1C); box-shadow: inset 0 1px 0 var(--top-edge); }
.pod.first .block { background: var(--coral-bar); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -10px rgba(255, 67, 38, .7); }
.pod .block b { display: block; font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--ink-1); }
.pod .block span { font-size: 11px; color: rgba(255, 255, 255, .7); }
.pod.p2 .block { height: 96px; } .pod.first .block { height: 126px; } .pod.p3 .block { height: 78px; }
.likes { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.likes svg { width: 28px; height: 22px; color: var(--coral); }
.likes b { color: var(--ink-1); }
.streak-num { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.streak-num b { font-family: var(--display); font-weight: 700; font-size: 88px; line-height: .85; color: var(--ink-1); letter-spacing: -.03em; }
.streak-num span { font-size: 14px; color: var(--ink-3); }
.week-dots { margin-top: 20px; display: flex; justify-content: space-between; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--ink-4); }
.wd i { width: 24px; height: 24px; border-radius: 50%; background: var(--line); display: grid; place-items: center; }
.wd.done i { background: var(--coral-button); }
.wd.done i::after { content: ''; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.wd.rest i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.freeze { margin-top: 18px; display: flex; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink-3); }
.freeze svg { width: 22px; height: 22px; color: var(--coral-light); flex: none; }
.freeze b { display: block; color: var(--ink-1); }
.badges { margin-top: 18px; display: flex; gap: 10px; }
.badges img { width: 33%; max-width: 76px; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .7)); }
.example-note { margin-top: 18px; }

/* ── Ziel: Beta ── */
.finish { position: relative; padding: clamp(96px, 15vh, 170px) 0 clamp(80px, 12vh, 130px); isolation: isolate; overflow: hidden; }
.finish::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: -10%; width: min(1100px, 140vw); height: 80%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 67, 38, .26), rgba(255, 67, 38, .06) 60%, rgba(255, 67, 38, 0));
  pointer-events: none;
}
.finish-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px 72px; align-items: start; }
@media (max-width: 960px) { .finish-grid { grid-template-columns: 1fr; } }
.finish-title { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 7vw, 96px); line-height: .96; letter-spacing: -.022em; word-spacing: .06em; color: var(--ink-1); text-wrap: balance; }
.finish .copy { margin-top: 22px; }
.plan-summary { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.plan-summary span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 14px; font-weight: 700; color: var(--ink-1); }
.plan-summary span:first-child { color: var(--coral-pale); }
.tf-steps { margin-top: 40px; display: grid; gap: 16px; counter-reset: tf; max-width: 46ch; }
.tf-steps li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 14px; color: var(--ink-3); }
.tf-steps li::before { counter-increment: tf; content: counter(tf); font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--ink-1); }
.tf-steps b { color: var(--ink-1); }
.beta-card { padding: clamp(22px, 2.6vw, 34px); }
.beta-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; color: var(--ink-1); }
.field input, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid transparent;
  background: var(--well-surface); color: var(--ink-1); font-size: 16px; font-weight: 500;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9);
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255, 67, 38, .9); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9), 0 0 0 4px rgba(255, 67, 38, .18); }
.field .fineprint { margin-top: -2px; }
.beta-form .btn { width: 100%; margin-top: 4px; }
.beta-status { font-size: 14px; color: var(--ink-3); text-align: center; }
.beta-status:empty { display: none; }
.beta-status.is-error { color: var(--coral-pale); }
.testflight { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.beta-done { display: none; text-align: center; padding: 30px 0 10px; }
.beta-form.is-done > * { display: none; }
.beta-form.is-done .beta-done { display: block; }
.beta-done h3 { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--ink-1); }
.beta-done p { margin-top: 8px; color: var(--ink-3); }
.flap { width: 120px; height: 92px; margin: 0 auto; color: var(--ink-1); }
.flap .wl, .flap .wr { transform-box: fill-box; }
.flap .wl { transform-origin: 100% 60%; animation: flapL 1.1s var(--ease) 3; }
.flap .wr { transform-origin: 0% 60%; animation: flapR 1.1s var(--ease) 3; }
@keyframes flapL { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-16deg) scaleY(.92); } }
@keyframes flapR { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(16deg) scaleY(.92); } }

/* ── Footer ── */
.footer { padding: 46px 0 56px; border-top: 1px solid var(--hairline); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 6px 26px; flex-wrap: wrap; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-3); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--ink-1); }
.footer-bottom { margin-top: 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-4); }

/* ── Rechtsseiten ── */
.page { padding: calc(14px + 58px + 64px) 0 96px; }
.page .wrap { max-width: calc(780px + 2 * var(--gutter)); }
.page h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 6vw, 64px); line-height: 1.04; letter-spacing: -.02em; color: var(--ink-1); -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.page .updated { margin-top: 12px; color: var(--ink-4); font-size: 14px; }
.page section { margin-top: 44px; }
.page h2 { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--ink-1); margin-bottom: 10px; }
.page p, .page li { color: var(--ink-3); max-width: 68ch; }
.page p + p { margin-top: 10px; }
.page ul { margin: 10px 0 0 20px; }
.page a { color: var(--coral-pale); text-underline-offset: 3px; }
.page a:hover { color: #fff; }

/* Kein Verstecken von Inhalt: Inhalte sind standardmäßig sichtbar; nur Akzente bewegen sich. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-delay: 0s !important; }
}
