/*
 * gym-arc.app, Startseite (Umbau „Ein Tag mit GymArc“, 2026-11-26).
 *
 * Die Seite steht ganz auf der dunklen Bühne der App. Flächen sind die
 * Bereichsfarben aus `arena.stage.wash` (gerader Verlauf von oben nach unten,
 * DESIGN.md §3, v6.27), der Akzent trägt nur die Hauptaktion und Fortschritt.
 * Bilder sind echte Bildschirmfotos im Telefonrahmen; die Demo baut das
 * Logbuch mit den Maßen der App nach (1em = 16 pt der App).
 *
 * Alles steht ohne Skript im Endzustand. `home.js` setzt Startzustände nur,
 * wenn GSAP läuft und Bewegung erwünscht ist.
 */

.page-home {
  background: var(--stage-base);
  color: var(--s-text);
  overflow-x: clip;
  --inset: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --phone-edge: #17191d;
}
.page-home main {
  position: relative;
}

/* ------------------------------------------------------------------ */
/* Schrift                                                              */
/* ------------------------------------------------------------------ */

.poster {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  /* Raum über der Zeile für Umlaut-Versalien (AGENTS.md, Barlow) */
  padding-top: 0.14em;
}
.poster--xl {
  font-size: clamp(3.5rem, 12vw, 8rem);
}
.display {
  font-size: clamp(1.875rem, 4.2vw, 3.125rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 18em;
}
.display-sm {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.6;
  color: var(--s-muted);
  max-width: 34em;
}
.body-muted {
  color: var(--s-muted);
  max-width: 36em;
}
.fine {
  color: var(--s-muted);
  font-size: 0.9375rem;
}
.page-home .text-link {
  color: var(--s-text);
}
.page-home :focus-visible {
  outline-color: var(--s-focus);
}

.section {
  position: relative;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(88px, 13vw, 176px) var(--gutter);
}

/* ------------------------------------------------------------------ */
/* Telefon                                                              */
/* ------------------------------------------------------------------ */

.phone {
  position: relative;
  width: var(--phone-w, 300px);
  max-width: 100%;
  padding: calc(var(--phone-w, 300px) * 0.026);
  border-radius: 17.1% / 8.1%;
  background: var(--phone-edge);
  box-shadow:
    inset 0 0 0 1px rgba(242, 244, 246, 0.16),
    inset 0 0 0 3px #0a0b0d,
    0 0 0 1px #000,
    0 50px 90px -40px rgba(0, 0, 0, 0.9),
    0 18px 36px -18px rgba(0, 0, 0, 0.7);
}
.phone-screen {
  position: relative;
  aspect-ratio: 660 / 1435;
  border-radius: 15.4% / 7.1%;
  overflow: hidden;
  background: var(--stage-bg);
  /* Safari: Ecken auch bei transformierten Kindern schneiden */
  isolation: isolate;
}
.shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(
      var(--head-h) + env(safe-area-inset-top) + clamp(24px, 5vh, 64px)
    )
    var(--gutter) 0;
  background: linear-gradient(
    180deg,
    var(--wash-training-top) 0%,
    var(--wash-training-bottom) 72%,
    var(--stage-base) 100%
  );
  overflow: hidden;
}
.hero-inner {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(24px, 6vh, 72px);
}
.hero-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 7.2vw, 6.5rem);
  line-height: 0.9;
  /* Jede Zeile des Plakats bleibt eine Zeile; die Größe folgt der Breite. */
  white-space: nowrap;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hero-line {
  display: block;
  padding-top: 0.14em;
  overflow: hidden;
}
.hero-line--quiet {
  color: rgba(242, 244, 246, 0.52);
}
.hero-lead {
  margin-top: 26px;
  max-width: 26em;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--s-muted);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions .btn {
  min-height: 56px;
  padding: 0 26px;
}

.hero-phones {
  position: relative;
  align-self: end;
  /* Rechts bleibt Platz für das hintere Telefon, links keins im Text. */
  justify-self: end;
  margin-right: calc(var(--phone-w) * 0.38);
  display: grid;
  justify-items: center;
  --phone-w: clamp(230px, min(23vw, 37vh), 372px);
  /* Das Telefon steht tiefer als die Bühne; sein Fuß verschwindet im Grund. */
  margin-bottom: clamp(-260px, -17vw, -170px);
  perspective: 1600px;
}
.hero-phones .phone {
  grid-area: 1 / 1;
  will-change: transform;
}
.phone--main {
  z-index: 2;
}
.phone--side {
  z-index: 1;
  filter: brightness(0.62) saturate(0.9);
}
.phone--left {
  transform: translate3d(-54%, 9%, 0) rotateY(24deg) rotateZ(-5deg) scale(0.84);
}
.phone--right {
  transform: translate3d(54%, 9%, 0) rotateY(-24deg) rotateZ(5deg) scale(0.84);
}

.hero-facts {
  position: relative;
  z-index: 3;
  list-style: none;
  /* Über die ganze Breite: Die Zeile liegt als weicher Grund über dem Fuß der Telefone. */
  margin: 0 calc(-1 * var(--gutter));
  padding: 120px var(--inset) calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  font-size: 0.9375rem;
  color: var(--s-muted);
  background: linear-gradient(180deg, transparent, var(--stage-base) 70%);
  pointer-events: none;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(242, 244, 246, 0.55);
}

/* Mittlere Breite: Die hinteren Telefone rücken näher, damit sie nicht unter den Text geraten. */
@media (min-width: 901px) and (max-width: 1180px) {
  .hero-lead {
    max-width: 24em;
  }
  .phone--left {
    transform: translate3d(-44%, 9%, 0) rotateY(24deg) rotateZ(-5deg)
      scale(0.82);
  }
  .phone--right {
    transform: translate3d(44%, 9%, 0) rotateY(-24deg) rotateZ(5deg) scale(0.82);
  }
  .hero-phones {
    margin-right: calc(var(--phone-w) * 0.3);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero-title {
    font-size: clamp(2.5rem, 13.2vw, 6rem);
  }
  .hero-phones {
    justify-self: center;
    margin-right: 0;
    --phone-w: clamp(210px, 56vw, 290px);
    margin-bottom: clamp(-200px, -36vw, -150px);
  }
  .phone--left {
    transform: translate3d(-62%, 10%, 0) rotateY(20deg) rotateZ(-5deg)
      scale(0.84);
  }
  .phone--right {
    transform: translate3d(62%, 10%, 0) rotateY(-20deg) rotateZ(5deg)
      scale(0.84);
  }
}

/* ------------------------------------------------------------------ */
/* Der eine Satz                                                        */
/* ------------------------------------------------------------------ */

.statement {
  padding: clamp(104px, 17vw, 240px) var(--inset) clamp(88px, 13vw, 200px);
}
.statement-text {
  max-width: 21em;
  font-size: clamp(1.625rem, 3.9vw, 3.25rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.statement-text .word {
  will-change: opacity;
}

/* ------------------------------------------------------------------ */
/* Ein Tag mit GymArc                                                   */
/* ------------------------------------------------------------------ */

.story {
  position: relative;
}
.story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Die Fläche bleibt im Bild stehen, solange der Abschnitt läuft, und endet mit ihm. */
.story-bg-stick {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
}
.wash {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.wash.is-on {
  opacity: 1;
}
.wash--training {
  background: linear-gradient(
    180deg,
    var(--wash-training-top),
    var(--wash-training-bottom)
  );
}
.wash--nutrition {
  background: linear-gradient(
    180deg,
    var(--wash-nutrition-top),
    var(--wash-nutrition-bottom)
  );
}
.wash--profile {
  background: linear-gradient(
    180deg,
    var(--wash-profile-top),
    var(--wash-profile-bottom)
  );
}
.wash--partners {
  background: linear-gradient(
    180deg,
    var(--wash-partners-top),
    var(--wash-partners-bottom)
  );
}
/* Die Bühne blendet oben aus dem Grund ein und unten wieder aus. */
.story::before,
.story::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 46vh;
  z-index: 1;
  pointer-events: none;
}
.story::before {
  top: 0;
  background: linear-gradient(180deg, var(--stage-base), transparent);
}
.story::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--stage-base), transparent);
}
.story-head,
.story-grid {
  position: relative;
  z-index: 2;
}
.story-head {
  padding: clamp(72px, 10vw, 140px) var(--inset) 0;
}
.story-head .lead {
  margin-top: 20px;
}
.story-grid {
  padding: 0 var(--inset);
}
.chapters {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chapter {
  padding: clamp(56px, 9vw, 96px) 0;
  display: grid;
  gap: 40px;
  justify-items: start;
}
.chapter-when {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
}
.chapter-clock {
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.chapter-clock small {
  margin-left: 0.3em;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--s-muted);
}
.chapter-area {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--s-muted);
}
.chapter-title {
  margin-top: 18px;
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 14em;
}
.chapter-body {
  margin-top: 16px;
  max-width: 31em;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--s-muted);
}
.points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-weight: 600;
}
.points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.points .icon {
  margin-top: 0.22em;
  color: var(--s-muted);
}
.chapter-shot {
  margin: 0;
  --phone-w: clamp(230px, 62vw, 300px);
  justify-self: center;
}
.story-stick {
  display: none;
}

/* Breit und mit Skript: Das Telefon bleibt stehen, die Kapitel laufen vorbei. */
@media (min-width: 900px) {
  .js .story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
  }
  .js .chapter {
    min-height: 100vh;
    padding: 0;
    align-content: center;
    opacity: 0.22;
    transition: opacity 0.5s var(--ease-out);
  }
  .js .chapter.is-on {
    opacity: 1;
  }
  .js .chapter-shot {
    display: none;
  }
  .js .story-stick {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 44px);
    --phone-w: min(350px, calc((100vh - 150px) * 0.46));
    perspective: 1800px;
  }
  .phone--story {
    will-change: transform;
  }
  .phone--story .shot {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(2.5%) scale(1.015);
    transition:
      opacity 0.45s var(--ease-out),
      transform 0.7s var(--ease-out);
  }
  .phone--story .shot.is-on {
    opacity: 1;
    transform: none;
  }
  .story-rail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    justify-items: end;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    color: rgba(242, 244, 246, 0.4);
  }
  .story-rail li {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.4s var(--ease-out);
  }
  .story-rail li::after {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: right center;
    transform: scaleX(0.45);
    transition: transform 0.4s var(--ease-out);
  }
  .story-rail li.is-on {
    color: var(--s-text);
  }
  .story-rail li.is-on::after {
    transform: none;
  }
  /* Ohne Skript: Text und Bild je Kapitel nebeneinander. */
  .no-js .chapter {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
  }
}
@media (min-width: 900px) and (max-width: 1040px) {
  .story-rail {
    display: none !important;
  }
}

/* ------------------------------------------------------------------ */
/* Bühnen-Karte (Demo, Pro)                                             */
/* ------------------------------------------------------------------ */

.demo,
.pro {
  position: relative;
  margin: clamp(40px, 6vw, 88px) clamp(10px, 2.4vw, 32px);
  border-radius: clamp(28px, 4vw, 48px);
  overflow: hidden;
}
.demo {
  background: linear-gradient(
    180deg,
    var(--wash-training-top),
    var(--wash-training-bottom)
  );
}
.pro {
  background: linear-gradient(
    180deg,
    var(--wash-pro-top),
    var(--wash-pro-bottom)
  );
}

/* ------------------------------------------------------------------ */
/* Demo: Logbuch zum Anfassen                                           */
/* ------------------------------------------------------------------ */

.demo-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) clamp(18px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.demo-copy .lead {
  margin-top: 20px;
}
.demo-notes {
  list-style: none;
  margin: clamp(32px, 4vw, 52px) 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-width: 32em;
}
.demo-note {
  position: relative;
  padding: 16px 0 16px 30px;
  color: var(--s-muted);
  opacity: 0.5;
  transition: opacity 0.4s var(--ease-out);
}
.demo-note::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(242, 244, 246, 0.5);
  transition:
    background-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.demo-note.is-on {
  opacity: 1;
}
.demo-note.is-on::before {
  background: var(--s-accent);
  box-shadow: inset 0 0 0 2px var(--s-accent);
}
.demo-note-head {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--s-text);
}

.demo-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  --phone-w: clamp(270px, 30vw, 352px);
}
.island-note {
  max-width: 22em;
  text-align: center;
  font-size: 0.875rem;
  color: var(--s-muted);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.island-note.is-on {
  opacity: 1;
}
.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 4;
}
.ring-track {
  stroke: var(--stage-track);
}
.ring-fill {
  stroke: var(--s-accent);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* Das Logbuch, mit den Maßen der App: 1em = 16 pt bei 402 pt Breite. */
.phone--demo .phone-screen {
  container-type: inline-size;
}
.app {
  --app-bg: var(--stage-bg);
  --app-surface: var(--stage-surface);
  --app-fill: var(--stage-fill);
  --app-muted: var(--stage-muted);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-size: 12.6px;
  line-height: 1.3;
  color: var(--s-text);
  background: var(--app-bg);
  text-align: left;
}
@supports (font-size: 1cqw) {
  .app {
    font-size: 3.98cqw;
  }
}
.app button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.app-status {
  flex: none;
  height: 3.4em;
  padding: 0.5em 1.9em 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-weight: 600;
  font-size: 1.02em;
}
.app-notch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 7.4em;
  height: 2.2em;
  padding: 0 0.6em 0 0.5em;
  border-radius: 2em;
  background: #000;
  overflow: hidden;
  /* Wie die Dynamic Island: Läuft die Pause, wird die Insel breit und zeigt Ring und Zeit. */
  transition: width 0.55s var(--ease-out);
}
.app-notch.is-on {
  width: 12.6em;
}
.app-notch-ring {
  flex: none;
  width: 1.3em;
  height: 1.3em;
}
.app-notch-time {
  font-family: var(--font-display);
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1;
  color: var(--s-accent);
  font-variant-numeric: tabular-nums;
}
.app-notch-ring,
.app-notch-time {
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.app-notch.is-on .app-notch-ring,
.app-notch.is-on .app-notch-time {
  opacity: 1;
  transition-delay: 0.2s;
}
.app-signal {
  justify-self: end;
  display: flex;
  align-items: flex-end;
  gap: 0.14em;
}
.app-signal i {
  width: 0.2em;
  border-radius: 0.1em;
  background: currentColor;
}
.app-signal i:nth-child(1) {
  height: 0.3em;
}
.app-signal i:nth-child(2) {
  height: 0.45em;
}
.app-signal i:nth-child(3) {
  height: 0.6em;
}
.app-signal i:nth-child(4) {
  height: 0.75em;
}
.app-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1em 0.5em;
}
.app-collapse {
  width: 1.9em;
  display: grid;
  place-items: center;
}
.app-title {
  flex: 1;
  min-width: 0;
}
.app-name {
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.app-meta {
  margin-top: 0.15em;
  font-size: 0.78em;
  color: var(--app-muted);
  font-variant-numeric: tabular-nums;
}
.app-pill,
.app-rest {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  height: 2.5em;
  padding: 0 0.9em;
  border-radius: 0.8em;
  background: var(--app-fill);
  font-size: 0.875em;
  font-weight: 600;
}
.app-rest {
  padding: 0 0.75em 0 0.55em;
  font-family: var(--font-display);
  font-size: 1.05em;
  font-variant-numeric: tabular-nums;
}
.app-rest[hidden] {
  display: none;
}
.app-rest-ring {
  width: 1.25em;
  height: 1.25em;
}
.app-order {
  flex: none;
  padding: 0.5em 1.25em 0;
  font-size: 0.8125em;
  color: var(--app-muted);
}
.app-exercise {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 1.1em 1em 0.6em;
}
.app-thumb {
  flex: none;
  width: 2.75em;
  height: 2.75em;
  border-radius: 0.6em;
  background: var(--app-surface);
  display: grid;
  place-items: center;
}
.app-thumb .glyph {
  width: 2em;
  height: 2em;
}
.app-exercise > div {
  flex: 1;
  min-width: 0;
}
.app-exercise-name {
  font-size: 1.0625em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-exercise-meta {
  font-size: 0.8125em;
  color: var(--app-muted);
  font-variant-numeric: tabular-nums;
}
.app-more {
  color: var(--app-muted);
}
.set-head,
.set {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) 4.4em 3.6em 3em;
  align-items: center;
  column-gap: 0.5em;
  padding: 0 1em;
}
.set-head {
  flex: none;
  height: 2.2em;
  font-size: 0.75em;
  color: var(--app-muted);
  /* dieselben Spalten bei kleinerer Schrift */
  grid-template-columns: 3.2em minmax(0, 1fr) 5.87em 4.8em 4em;
  column-gap: 0.667em;
  padding: 0 1.333em;
}
.set-head span:nth-child(3),
.set-head span:nth-child(4) {
  text-align: center;
}
.sets {
  list-style: none;
  margin: 0;
  padding: 0 0.25em;
  flex: 1;
  min-height: 0;
}
.set {
  position: relative;
  height: 3em;
  padding: 0 0.75em;
  border-radius: 0.75em;
  transition: background-color 0.25s var(--ease-out);
}
.set-label {
  font-weight: 600;
  font-size: 1.0625em;
}
.set--warmup .set-label > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 1.65em;
  height: 1.65em;
  border-radius: 0.35em;
  background: var(--stage-warmup-subtle);
  color: var(--stage-warmup);
  font-size: 0.875em;
}
.set-prev {
  font-size: 0.8125em;
  color: var(--app-muted);
  font-variant-numeric: tabular-nums;
}
.app .set-val {
  height: 2.25em;
  border-radius: 0.65em;
  background: transparent;
  font-weight: 600;
  font-size: 1em;
  color: var(--app-muted);
  font-variant-numeric: tabular-nums;
  transition:
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}
/* Vorschlag in Klammern, wie in der App */
.set:not(.is-done):not(.is-edited) .set-val span::before {
  content: "(";
}
.set:not(.is-done):not(.is-edited) .set-val span::after {
  content: ")";
}
.set.is-next .set-val {
  background: var(--app-fill);
  color: var(--s-text);
}
.set.is-next .set-val.is-editing {
  box-shadow: inset 0 0 0 1.5px var(--s-accent);
}
.set.is-done {
  background: var(--stage-success-subtle);
}
.set.is-done .set-val,
.set.is-done .set-prev {
  color: var(--s-text);
}
.app .set-check {
  justify-self: end;
  width: 2.5em;
  height: 2.1em;
  border-radius: 0.65em;
  background: var(--app-fill);
  color: var(--app-muted);
  display: grid;
  place-items: center;
  transition:
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.25s var(--ease-out);
}
.set-check .icon {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2.4;
}
.set.is-done .set-check {
  background: var(--s-success);
  color: var(--stage-on-success);
}
.set.is-pop .set-check {
  animation: check-pop 0.42s var(--ease-out);
}
@keyframes check-pop {
  0% {
    transform: scale(0.7);
  }
  55% {
    transform: scale(1.12);
  }
  100% {
    transform: none;
  }
}
/* Trefferfläche mindestens 44 px, auch wenn der Knopf kleiner gezeichnet ist */
.set-check::after,
.set-val::after {
  content: "";
  position: absolute;
  inset: -0.45em -0.2em;
}
.set-check,
.set-val {
  position: relative;
}
.app button:disabled {
  cursor: default;
}
.app-foot {
  flex: none;
  padding: 0.6em 1em 1.6em;
  display: grid;
  gap: 0.7em;
  background: linear-gradient(180deg, transparent, var(--app-bg) 30%);
}
.pad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}
.pad[hidden] {
  display: none;
}
.pad-group {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0.25em;
  border-radius: 0.9em;
  background: var(--app-surface);
}
.app .pad-key {
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.7em;
  background: var(--app-fill);
  display: grid;
  place-items: center;
}
.pad-key:active {
  transform: scale(0.94);
}
.pad-key .icon {
  width: 1.1em;
  height: 1.1em;
}
.pad-value {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pad-value strong {
  font-family: var(--font-display);
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1;
}
.pad-value small {
  margin-left: 0.25em;
  font-size: 0.72em;
  color: var(--app-muted);
}
.app .app-cta {
  height: 3.5em;
  border-radius: 1em;
  background: var(--s-accent);
  color: var(--s-on-accent);
  font-weight: 600;
  font-size: 1em;
  transition:
    transform 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}
.app-cta:hover {
  background: var(--s-accent-strong);
}
.app-cta:active {
  transform: scale(0.975);
}
.app :focus-visible {
  outline: 2px solid var(--s-focus);
  outline-offset: 2px;
  border-radius: 0.65em;
}
.app-done {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5em;
  padding: 2em 1.5em;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--wash-training-top),
    var(--wash-training-bottom)
  );
}
.app-done[hidden] {
  display: none;
}
.app-done-bogi {
  width: 11em;
  height: 11em;
}
.app-done-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 1;
  text-transform: uppercase;
  padding-top: 0.14em;
}
.app-done-line {
  color: var(--app-muted);
  font-variant-numeric: tabular-nums;
}
.app-done-record {
  margin-top: 0.4em;
  padding: 0.55em 0.9em;
  border-radius: 0.8em;
  background: rgba(242, 244, 246, 0.1);
  font-weight: 600;
  color: var(--stage-gold);
}
.app-done-record:empty {
  display: none;
}
.app .app-again {
  margin-top: 1.4em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  height: 3em;
  padding: 0 1.2em;
  border-radius: 0.9em;
  background: rgba(242, 244, 246, 0.14);
  font-weight: 600;
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .demo-stage {
    --phone-w: clamp(260px, 80vw, 340px);
  }
}

/* ------------------------------------------------------------------ */
/* Lernen                                                               */
/* ------------------------------------------------------------------ */

.learn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
}
.learn-copy .lead {
  margin-top: 20px;
}
.learn-copy .body-muted {
  margin-top: 28px;
}
.learn-shot {
  margin: 0;
  --phone-w: clamp(240px, 26vw, 318px);
}
.learn-path {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.quiz {
  margin-top: clamp(32px, 4vw, 48px);
  max-width: 34em;
}
.quiz-kicker {
  color: var(--s-muted);
  font-size: 0.9375rem;
}
.quiz-prompt {
  margin-top: 6px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.quiz-options {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 18px 12px 14px;
  border: 0;
  border-radius: 16px;
  background: var(--stage-tile);
  color: var(--s-text);
  font: 600 1rem/1.35 var(--font-text);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    opacity 0.3s var(--ease-out),
    transform 0.2s var(--ease-out);
}
.quiz-option:hover {
  background: rgba(242, 244, 246, 0.2);
}
.quiz-option:active {
  transform: scale(0.99);
}
.quiz-mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px rgba(242, 244, 246, 0.45);
  color: transparent;
  transition:
    background-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}
.quiz-mark .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}
.quiz-option.is-right {
  background: var(--stage-success-subtle);
}
.quiz-option.is-right .quiz-mark {
  background: var(--s-success);
  box-shadow: none;
  color: var(--stage-on-success);
}
.quiz-option.is-wrong {
  opacity: 0.45;
}
.quiz.is-solved .quiz-option:not(.is-right) {
  opacity: 0.45;
}
.quiz-result {
  min-height: 3.2em;
  margin-top: 14px;
  color: var(--s-muted);
}
.quiz-result strong {
  color: var(--s-text);
}

@media (max-width: 900px) {
  .learn-grid {
    grid-template-columns: 1fr;
  }
  .learn-shot {
    justify-self: center;
    --phone-w: clamp(230px, 62vw, 300px);
  }
}

/* ------------------------------------------------------------------ */
/* Alles andere                                                         */
/* ------------------------------------------------------------------ */

.more-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.more-copy .lead {
  margin-top: 20px;
}
.features {
  list-style: none;
  margin: clamp(32px, 4vw, 52px) 0 0;
  padding: 0;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--s-line);
}
.feature:last-child {
  border-bottom: 1px solid var(--s-line);
}
.glyph {
  flex: none;
  width: 40px;
  height: 40px;
}
.g-ink {
  fill: var(--s-text);
}
.g-spot--blue {
  fill: var(--tone-blue);
}
.g-spot--violet {
  fill: var(--tone-violet);
}
.g-spot--rose {
  fill: var(--tone-rose);
}
.g-spot--peach {
  fill: var(--tone-peach);
}
.g-spot--green {
  fill: var(--tone-green);
}
.g-spot--gold {
  fill: var(--tone-gold);
}
.feature-name {
  font-size: 1.125rem;
  font-weight: 600;
}
.feature-text {
  margin-top: 2px;
  color: var(--s-muted);
  max-width: 34em;
}
.more-phones {
  position: sticky;
  top: calc(var(--head-h) + 6vh);
  display: grid;
  justify-items: center;
  padding: 4vh 0 10vh;
  --phone-w: clamp(200px, 19vw, 264px);
}
.more-phones .phone {
  grid-area: 1 / 1;
}
.phone--back {
  transform: translate(-34%, 0) rotate(-6deg);
  filter: brightness(0.78);
}
.phone--front {
  transform: translate(30%, 14%) rotate(4deg);
}

@media (max-width: 900px) {
  .more-grid {
    grid-template-columns: 1fr;
  }
  .more-phones {
    position: relative;
    top: 0;
    order: -1;
    padding: 0 0 12vw;
    --phone-w: clamp(170px, 44vw, 240px);
  }
}

/* ------------------------------------------------------------------ */
/* Pro                                                                  */
/* ------------------------------------------------------------------ */

.pro-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) clamp(18px, 4vw, 56px);
}
.section-head .lead {
  margin-top: 20px;
}
.plans {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  line-height: 1;
  text-transform: uppercase;
  padding-top: 0.14em;
}
.plan-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--s-line);
}
.plan-list .icon {
  margin-top: 0.22em;
  color: var(--s-muted);
}
.plan--pro .plan-list .icon {
  color: var(--stage-gold);
}
.quota {
  width: 100%;
  margin-top: clamp(40px, 5vw, 64px);
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.quota caption {
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  padding-bottom: 10px;
}
.quota th,
.quota td {
  padding: 13px 0;
  border-top: 1px solid var(--s-line);
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}
.quota thead th {
  border-top: 0;
  color: var(--s-muted);
  font-size: 0.9375rem;
}
.quota .c-num {
  text-align: right;
  padding-left: 16px;
  color: var(--s-muted);
  white-space: nowrap;
}
.quota .c-pro {
  color: var(--s-text);
  font-weight: 600;
}
.pro .fine {
  margin-top: 22px;
}

@media (max-width: 620px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .quota .c-num {
    white-space: normal;
  }
}

/* ------------------------------------------------------------------ */
/* Daten, Konto                                                         */
/* ------------------------------------------------------------------ */

.principles {
  list-style: none;
  margin: clamp(32px, 4vw, 56px) 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.principles li {
  padding-top: 18px;
  border-top: 1px solid var(--s-line);
  color: var(--s-muted);
}
.principle-head {
  margin-bottom: 6px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--s-text);
}
.data {
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* ------------------------------------------------------------------ */
/* Konto im Browser: Text links, rechts die Übersicht in einem Rahmen   */
/* ------------------------------------------------------------------ */

.web {
  padding-top: clamp(24px, 4vw, 56px);
}
.web-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.web-copy .lead {
  margin-top: 20px;
}
.web-points {
  list-style: none;
  margin: clamp(28px, 3.5vw, 44px) 0 clamp(28px, 3.5vw, 40px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(20px, 3vw, 40px);
}
.web-points li {
  padding-top: 16px;
  border-top: 1px solid var(--s-line);
  color: var(--s-muted);
}
.web-points .principle-head {
  font-size: 1.0625rem;
}
.web-frame {
  margin: 0;
  border-radius: 18px;
  background: var(--stage-bg);
  box-shadow:
    0 0 0 1px var(--s-line),
    0 40px 80px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.web-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--stage-surface);
  border-bottom: 1px solid var(--s-line);
}
.web-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stage-fill);
}
.web-bar p {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  padding: 5px 14px;
  border-radius: 8px;
  background: var(--stage-tile);
  color: var(--s-muted);
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.web-screen {
  padding: clamp(18px, 2.6vw, 30px);
  /* Fläche der ruhigen Seiten wie die Bühne der Kontoseite. */
  background: linear-gradient(180deg, var(--wash-calm-top), var(--wash-calm-bottom) 62%);
}
.web-kicker {
  color: var(--s-muted);
  font-size: 0.8125rem;
}
.web-poster {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 0.95;
  text-transform: uppercase;
  /* Platz für Umlaute über der Zeile (AGENTS.md, Barlow) */
  padding-top: 0.16em;
}
.web-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(14px, 2vw, 22px);
  border-radius: 14px;
  background: var(--stage-tile);
}
.web-metrics > div {
  padding: clamp(10px, 1.4vw, 16px);
  min-width: 0;
}
.web-metrics > div + div {
  border-left: 1px solid var(--s-line);
}
.web-label,
.web-tile-head span {
  color: var(--s-muted);
  font-size: 0.6875rem;
  font-weight: 600;
}
.web-num {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  line-height: 1;
  padding-top: 0.14em;
  font-variant-numeric: tabular-nums;
}
.web-num span {
  color: var(--s-muted);
  font: 400 0.6875rem/1.2 var(--font-text);
}
.web-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
  margin-top: clamp(8px, 1.2vw, 14px);
}
.web-tile {
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: 14px;
  background: var(--stage-tile);
  min-width: 0;
}
.web-tile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 8px;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.web-heat {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
  margin-top: auto;
}
.web-heat > div {
  display: grid;
  gap: 3px;
}
.web-heat i {
  display: block;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--stage-track);
}
.web-heat .l1 {
  background: color-mix(in srgb, var(--s-accent) 30%, var(--stage-bg));
}
.web-heat .l2 {
  background: color-mix(in srgb, var(--s-accent) 50%, var(--stage-bg));
}
.web-heat .l3 {
  background: color-mix(in srgb, var(--s-accent) 72%, var(--stage-bg));
}
.web-heat .l4 {
  background: var(--s-accent);
}
.web-heat .is-off {
  opacity: 0.35;
}
.web-curve {
  flex: 1;
  width: 100%;
  min-height: 64px;
  margin-top: 8px;
  overflow: visible;
}
.web-curve-line {
  fill: none;
  stroke: var(--s-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.web-curve-area {
  fill: var(--s-accent);
  opacity: 0.12;
}
@media (max-width: 900px) {
  .web-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .web-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

/* ------------------------------------------------------------------ */
/* Ende                                                                 */
/* ------------------------------------------------------------------ */

.end {
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(96px, 14vw, 180px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}
.end-bogi {
  width: clamp(150px, 22vw, 220px);
  aspect-ratio: 1;
}
.end .lead {
  max-width: 30em;
}

/* ------------------------------------------------------------------ */
/* Reduce Motion                                                        */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .wash,
  .phone--story .shot,
  .chapter {
    transition: none !important;
  }
  .phone--story .shot {
    transform: none;
  }
  .set.is-pop .set-check {
    animation: none;
  }
}
