/* Malna – Website. Benutzeroberfläche flach: Karten und Knöpfe ohne Verläufe, Schatten und Glow.
   Licht und Leuchten gibt es nur im gerenderten Körper (Bildfolge). */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font: var(--font-weight-regular) 17px / var(--line-height-text) var(--font-system);
  overflow-x: clip;
}

img,
svg,
canvas,
picture {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

/* Nur die Gewichte 400 und 500 (Design-System) */
strong,
b,
th {
  font-weight: var(--font-weight-medium);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Das hidden-Attribut gilt immer, auch wenn eine Klasse display setzt */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon {
  flex: none;
  width: var(--icon-size);
  height: var(--icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.num {
  font-variant-numeric: tabular-nums;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Sprunglink und Kopfzeile ---------- */

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-4);
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--text);
  background: color-mix(in srgb, var(--page) 96%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--content-max);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: var(--space-2) var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  margin-right: auto;
  color: var(--text);
  font: var(--font-weight-regular) 22px / 1.2 var(--font-display);
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  clip-path: inset(2% round 22%);
}

.site-menu {
  position: relative;
}

.site-menu summary {
  display: flex;
  align-items: center;
  min-height: var(--control-height);
  min-width: var(--control-height);
  padding: 0 var(--space-2);
  font-size: 15px;
  list-style: none;
  cursor: pointer;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-nav {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  width: max-content;
  padding: var(--space-2);
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  padding: 0 var(--space-3);
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius-button);
}

.site-nav a:hover {
  color: var(--text);
}

/* ---------- Knöpfe ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-4);
  font: var(--font-weight-medium) 16px / 1.3 var(--font-system);
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
}

.button--primary {
  color: var(--on-accent);
  background: var(--accent-fill);
}

.button--primary:hover {
  background: var(--accent-fill-hover);
}

.button--secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.button--secondary:hover {
  border-color: var(--text-3);
}

.button--small {
  padding: var(--space-1) var(--space-3);
  font-size: 15px;
}

.button--large {
  min-height: 52px;
  padding: var(--space-3) var(--space-5);
  font-size: 17px;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.text-link {
  /* Tippfläche 44 px hoch, ohne die Zeile zu verschieben (senkrechter Innenabstand wirkt bei Inline-Elementen
     nicht auf die Zeilenhöhe) */
  padding-block: calc((44px - 1.15em) / 2);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Typografie ---------- */

.display {
  font-family: var(--font-display);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-title);
  letter-spacing: 0;
  text-wrap: balance;
}

.muted {
  color: var(--text-3);
}

.lead {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.step-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.4;
}

.step-label__num {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 var(--space-1);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

/* ---------- Startseite: Figur mit Handy ----------
   Eine Bühne über die ganze Höhe: unten das Startbild bzw. die Schichten des Körpers (Bilder) und die Bildfolge des Clips
   (Canvas), darüber das Handy (HTML, per matrix3d auf den Bildschirm gelegt, front.js), darüber Überschrift und die
   Glas-Tab-Leiste. Alle Bilder liegen nach denselben Regeln (.front__media), front.js liest daraus die Lage. */

.front,
.explode,
.is-dark-top .site-header {
  --page: #2A0503;
  --card: var(--cinema-card);
  --surface-2: var(--cinema-surface);
  --border: var(--cinema-border);
  --text: var(--cinema-text);
  --text-2: var(--cinema-copy);
  --text-3: var(--cinema-muted);
  --text-3-on-surface: var(--cinema-muted);
  --accent: var(--cinema-focus);
}

.is-dark-top .site-header {
  background: transparent;
  border-bottom-color: transparent;
}

.is-dark-top .site-header .button--secondary {
  padding-inline: var(--space-5);
  color: var(--text);
  border-color: rgb(255 255 255 / 0.75);
  border-radius: 999px;
  transition: color 300ms ease, background 300ms ease, border-color 300ms ease;
}

.is-dark-top .site-header .button--secondary:hover,
.is-dark-top .site-header .button--secondary:focus-visible {
  color: #1c1917;
  background: #fff;
  border-color: #fff;
}

.front {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.65, 0, 0.35, 1);
  color: var(--text);
  background: var(--page);
}

.front__stage {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--page);
}

/* Lage aller Bilder: breit wie «cover», die Figur in der Mitte, oben etwas mehr Gewicht (der Kopf bleibt im Bild) */
.front__media {
  position: absolute;
  top: 30%;
  left: 50%;
  width: max(100%, calc(100svh * 16 / 9));
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  translate: -50% -30%;
}

/* Hochformat: so gross, dass die Figur fast die Breite füllt; unten bleibt Platz für die Tab-Leiste */
@media (max-aspect-ratio: 4 / 5) {
  .front__media {
    top: calc(var(--header-height) - 4%);
    width: calc(100% / 0.38);
    translate: -50% 0;
  }
}

/* Eigene Ebene: die Reihenfolge der Schichten beim Scan bleibt darin und liegt nie über dem Handy */
.front__layers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.front__layer {
  visibility: hidden;
}

.front__layer.is-on {
  visibility: visible;
}

/* Unterer Bildrand weich in den Grund (im Hochformat endet das Bild über der Tab-Leiste) */
.front__fade {
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 78%, var(--page) 99%);
}

.front__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Scanlinie zwischen zwei Schichten: eine helle Linie über die Breite der Figur */
.front__scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  background: rgb(255 255 255 / 0.85);
}

.front__scan.is-on {
  opacity: 1;
}

.front__hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.front__title {
  position: absolute;
  top: 31%;
  left: 50%;
  width: min(1200px, calc(100% - 48px));
  font: var(--font-weight-medium) clamp(46px, 6.4vw, 104px) / 0.9 var(--font-system);
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.12);
  translate: -50% 0;
}

.front__title span {
  display: inline-block;
  transition: opacity 900ms var(--ease), filter 900ms var(--ease), transform 900ms var(--ease);
}

.front__title span:nth-child(2) {
  transition-delay: 90ms;
}

.front__title span:nth-child(3) {
  transition-delay: 180ms;
}

.front.is-up .front__title span {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(-10px);
}

.front__lead {
  position: absolute;
  top: calc(47% + 96px);
  left: 50%;
  width: min(560px, calc(100% - 48px));
  color: var(--text);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.16);
  translate: -50% 0;
  transition: opacity 420ms var(--ease);
}

.front.is-up .front__lead {
  opacity: 0;
}

.front__note {
  position: absolute;
  right: var(--gutter);
  bottom: max(var(--space-3), env(safe-area-inset-bottom));
  z-index: 2;
  color: var(--text-3);
  font-size: 12px;
}

/* Glas-Tab-Leiste (Vorbild: Steuerleiste der LTX-Seite). Glas mit Unschärfe und feinen Lichtkanten ist die einzige
   Ausnahme von der flachen Oberfläche, wie die Tab-Leiste der App (Entscheid 04.10.2026). */
.tabbar {
  --cap-left: -5px;
  --cap-width: 22%;
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: 3;
  width: min(1000px, calc(100% - 48px));
  height: 72px;
  visibility: hidden;
  translate: -50% 0;
  transition: top 900ms var(--ease-slow);
}

.front.is-live .tabbar {
  visibility: visible;
}

.front.is-up .tabbar {
  top: calc(100% - 72px - max(var(--space-5), env(safe-area-inset-bottom)));
}

.tabbar__track,
.tabbar__capsule {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

/* Glas wie bei LTX, aber neutral: kaum getönt, feiner Lichtrand, sanfte Tiefe */
.tabbar__track {
  top: 4px;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(12px) saturate(140%) contrast(106%);
  backdrop-filter: blur(12px) saturate(140%) contrast(106%);
  box-shadow: 0 14px 38px rgb(0 0 0 / 0.16), 0 2px 7px rgb(0 0 0 / 0.1), inset 1px 1px 0 rgb(255 255 255 / 0.32), inset -1px -1px 0 rgb(0 0 0 / 0.12);
  transition: opacity 400ms linear;
}

.tabbar__capsule {
  top: -1px;
  left: var(--cap-left);
  width: var(--cap-width);
  height: 72px;
  background: rgb(255 255 255 / 0.13);
  border: 1px solid rgb(255 255 255 / 0.26);
  -webkit-backdrop-filter: blur(16px) saturate(140%) brightness(108%);
  backdrop-filter: blur(16px) saturate(140%) brightness(108%);
  box-shadow: 0 11px 28px rgb(0 0 0 / 0.18), 0 2px 6px rgb(0 0 0 / 0.1), inset 1px 1px 0 rgb(255 255 255 / 0.5), inset -1px -1px 0 rgb(0 0 0 / 0.14), inset 0 0 12px rgb(255 255 255 / 0.05);
  transition: left 620ms var(--ease), width 620ms var(--ease), opacity 300ms ease;
}

/* Breites, weiches Licht (folgt dem Zeiger) und ein haarfeiner, leicht schimmernder Rand */
.tabbar__track::before,
.tabbar__capsule::before,
.tabbar__track::after,
.tabbar__capsule::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  pointer-events: none;
}

.tabbar__track::before,
.tabbar__capsule::before {
  background:
    radial-gradient(120% 150% at var(--glass-x, 24%) var(--glass-y, 8%), rgb(255 255 255 / 0.2), rgb(255 255 255 / 0) 53%),
    linear-gradient(115deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0) 42%);
}

.tabbar__track::after,
.tabbar__capsule::after {
  inset: -1px;
  padding: 1px;
  background: conic-gradient(from 225deg, #f3d9c9, rgb(255 255 255 / 0.35), #fff, #f6c9cf, rgb(255 255 255 / 0.35), #f3d9c9);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.27;
}

.tabbar__capsule::after {
  opacity: 0.32;
}

.tabbar__cells {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(5, minmax(0, 1fr));
  align-items: center;
}

.tabbar__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 100%;
  min-width: 44px;
  padding: 0 var(--space-3);
  color: var(--text);
  font: var(--font-weight-regular) clamp(16px, 1.55vw, 22px) / 1.2 var(--font-system);
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

button.tabbar__cell {
  cursor: pointer;
}

.tabbar__cell .icon {
  width: 18px;
  height: 18px;
}

.tabbar__hint {
  transition: opacity 300ms ease;
}

.tabbar.is-pointing .tabbar__hint {
  opacity: 0.5;
}

.tabbar__tab[aria-current="true"] {
  font-weight: var(--font-weight-medium);
}

.tabbar__cell:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -4px;
}

/* Schmal: Leiste unten, oben «Bereich wählen» bzw. «Zurück», darunter die fünf Tabs */
@media (max-width: 900px) {
  .tabbar,
  .front.is-up .tabbar {
    top: auto;
    bottom: max(var(--space-4), env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    height: 112px;
  }

  .tabbar__track {
    top: 0;
    height: 112px;
    border-radius: 28px;
  }

  .tabbar__capsule {
    opacity: 0;
  }

  .tabbar__cells {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 48px 64px;
  }

  .tabbar__hint,
  .tabbar__back {
    grid-column: 1 / -1;
    font-size: 15px;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 28px 28px 0 0;
  }

  .tabbar__tab {
    padding: 0 var(--space-1);
    font-size: 14px;
  }

  .tabbar__tab[aria-current="true"] {
    background: rgb(255 246 244 / 0.16);
  }

  .front__title {
    top: auto;
    bottom: calc(112px + var(--space-5) + 4.4em + max(var(--space-4), env(safe-area-inset-bottom)));
    font-size: clamp(40px, 12.5vw, 60px);
    line-height: 0.92;
    white-space: normal;
  }

  .front__lead {
    top: auto;
    bottom: calc(112px + var(--space-5) + max(var(--space-4), env(safe-area-inset-bottom)));
    font-size: 15px;
  }

  .front__note {
    display: none;
  }
}

/* ---------- Handy ---------- */

.phone {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  visibility: hidden;
  transform-origin: 0 0;
}

.front.is-holding .phone {
  visibility: visible;
}

/* Rahmen des Handys, nur gewachsen sichtbar (klein liegt das Handy aus dem Bild darunter) */
.phone__bezel {
  position: absolute;
  inset: -16px;
  z-index: 0;
  background: #0c0c0e;
  border: 1px solid #45454a;
  border-radius: 72px;
  opacity: 0;
  pointer-events: none;
}

.phone.is-big .phone__bezel {
  border-color: rgb(255 255 255 / 0.42);
}

.front__mirror {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transform-origin: 0 0;
}

.front__start img.is-hidden {
  visibility: hidden;
}

body.is-loading .front__stage {
  cursor: progress;
}

.phone__focus {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-card);
  cursor: zoom-in;
}

.phone__focus:focus-visible {
  outline: 6px solid var(--accent);
  outline-offset: 8px;
}

.phone__screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--app-text);
  background: var(--app-page);
  font-family: var(--font-system);
}

.phone__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 180ms ease;
}

.phone__shot.is-on {
  opacity: 1;
}

.phone__shot.is-top {
  z-index: 1;
}

/* Unsichtbare Knöpfe über den Stellen im Screenshot: Tabs, Pills, Zeilen, Zurück */
.phone__hit {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  border: 0;
  border-radius: var(--radius-button);
  cursor: pointer;
}

.phone__hit:focus-visible {
  outline: 3px solid var(--app-accent);
  outline-offset: -3px;
}

.phone__ring {
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid var(--app-text);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.phone__ring.is-on {
  animation: phone-ring 420ms ease-out;
}

@keyframes phone-ring {
  from {
    opacity: 0.8;
    transform: scale(0.5);
  }

  to {
    opacity: 0;
    transform: scale(1.3);
  }
}

/* Today mit dem aktuellen Datum: Kopfzeile, Wochenleiste und Uhrzeit wie in der App (dunkles Erscheinungsbild) */
/* Ebenen im Handy: Screenshot (der neue oben, 1) · Uhrzeit und Today (2) · Tipp-Kreis (3) · Knöpfe (4) */
.phone__today,
.phone__status {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.phone__cover {
  position: absolute;
}

.phone__time {
  position: absolute;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: var(--font-weight-medium);
}

.phone__head {
  position: absolute;
  display: grid;
  align-content: start;
  padding: 0 var(--space-1);
}

.phone__label,
.phone__date {
  position: absolute;
  white-space: nowrap;
}

.phone__head .phone__label,
.phone__head .phone__date {
  position: static;
}

.phone__arrow {
  position: absolute;
  display: grid;
  place-items: center;
}

.phone__arrow .phone__chevron {
  width: 18px;
  flex: none;
}

.phone__day.phone__day--placed {
  position: absolute;
}

.phone__label {
  min-height: 18px;
  color: var(--app-text-3);
  font-size: 13px;
  line-height: 1.4;
}

/* Wie die Überschriften der App: Serifenschrift (dieselbe Playfair Display wie in der App) */
.phone__date {
  font: var(--font-weight-regular) 28px / 1.2 "Malna Serif", var(--font-display);
}

.phone__week {
  position: absolute;
  display: grid;
  align-content: center;
}

.phone__week-row {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.phone__chevron {
  flex: 0 0 44px;
  height: 18px;
  fill: none;
  stroke: var(--app-text-2);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone__range {
  flex: 1;
  color: var(--app-text-2);
  font-size: 13px;
  text-align: center;
}

.phone__days {
  display: flex;
  flex: 1;
}

.phone__day {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 52px;
  color: var(--app-text-2);
  isolation: isolate;
}

.phone__day.is-today {
  color: var(--app-on-accent);
}

.phone__day.is-today::before {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: var(--pill);
  content: "";
  background: var(--app-accent-fill);
  border-radius: var(--radius-pill);
  box-shadow: var(--app-accent-glow-small);
  translate: -50% 0;
}

.phone__day-name {
  font-size: 11px;
}

.phone__day-num {
  font-size: 13px;
}

/* ---------- Zerlegung beim Scrollen ----------
   Die Bühne steht fest im Bild (sticky), die Kapitel ziehen darüber. Darin ein Canvas mit dem Clip «Zerlegung», Bild
   für Bild nach der Scrollstellung (explode.js). */

.explode {
  position: relative;
  color: var(--text);
  background: radial-gradient(120% 90% at 60% 40%, #440b03 0%, #2c0502 55%, #170201 100%);
}

.explode__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}

.explode__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 400ms ease;
}

.explode.is-live .explode__canvas {
  opacity: 1;
}

/* Auflösen (WebGL) über der Bildfolge, nur sichtbar, solange eine Schicht zerfällt oder steht */
.explode__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.explode__gl.is-on {
  visibility: visible;
}

.explode__chapters {
  position: relative;
  z-index: 1;
  margin-top: -100svh;
}

.explode__chapter {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: var(--header-height) max(var(--gutter), 5vw) var(--space-6);
}

.explode__text {
  display: grid;
  gap: var(--space-3);
  max-width: min(28rem, 34vw);
}

.explode__title {
  font: var(--font-weight-medium) clamp(34px, 3.6vw, 60px) / 0.98 var(--font-system);
  letter-spacing: -0.04em;
}

.explode__chapter:first-child .explode__title {
  font-size: clamp(40px, 4.6vw, 76px);
}

.explode__line {
  color: var(--text-2);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
  text-wrap: pretty;
}

@media (max-width: 899.98px) {
  .explode__chapter {
    align-items: flex-end;
    padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
  }

  .explode__text {
    max-width: 30rem;
  }
}

/* Abschluss */
.closing {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-8) var(--gutter);
}

.closing__title {
  font-size: clamp(36px, 7vw, 64px);
}

.closing__lead {
  max-width: 34em;
  color: var(--text-2);
}

.closing__points {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.closing__points li {
  display: flex;
  gap: var(--space-3);
  max-width: 40em;
  color: var(--text-2);
}

.closing__points .icon {
  margin-top: 3px;
  color: var(--text);
}

.closing__points strong {
  color: var(--text);
}

@media (min-width: 900px) {
  .closing__points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

/* ---------- Abschnitte ---------- */

.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-8) var(--gutter);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section__head {
  display: grid;
  gap: var(--space-3);
  max-width: 720px;
  margin-bottom: var(--space-6);
}

.section__title {
  font-size: clamp(32px, 6.5vw, 56px);
}

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
  }
}

.trust__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-1) var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.trust__item .icon {
  grid-row: span 2;
  margin-top: 3px;
  color: var(--text-2);
}

.trust__item h3 {
  font-size: 17px;
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
}

.trust__item p {
  color: var(--text-2);
  font-size: 15px;
}

.coach {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .coach {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.coach__list {
  display: grid;
  gap: var(--space-3);
}

.coach__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  color: var(--text-2);
}

.coach__list .icon {
  margin-top: 4px;
  color: var(--text-2);
}

.coach-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--control-height);
  padding: var(--space-1) 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.share-row:first-of-type {
  border-top: 0;
}

.share-row__state {
  color: var(--text-2);
  font-size: 13px;
}

/* Unverändertes App-Icon; die hellen Ecken der Datei schneidet nur die Rundung ab */
.closing__logo {
  width: 96px;
  height: 96px;
  clip-path: inset(1.6% round 21%);
}

.notice {
  max-width: 720px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Fusszeile ---------- */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-5);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) max(var(--space-6), env(safe-area-inset-bottom));
  color: var(--text-2);
  font-size: 15px;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  padding: 0 var(--space-2);
  margin-left: calc(var(--space-2) * -1);
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer nav a:hover {
  color: var(--text);
}

.site-footer .brand {
  justify-self: start;
}

.site-footer small .text-link {
  color: var(--text-2);
}

.site-footer small {
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- Rechtsseiten ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-6)) var(--gutter) var(--space-8);
}

.legal h1 {
  margin-bottom: var(--space-5);
  font-size: clamp(34px, 7vw, 52px);
}

.legal h2 {
  margin: var(--space-6) 0 var(--space-3);
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

.legal p,
.legal li {
  color: var(--text-2);
}

.legal p + p {
  margin-top: var(--space-3);
}

.legal ul {
  display: grid;
  gap: var(--space-2);
  padding-left: 1.2em;
  list-style: disc;
}

.legal .placeholder {
  padding: 0 var(--space-1);
  color: var(--warning-color);
  border: 1px dashed currentColor;
  border-radius: 4px;
}

.legal__meta {
  color: var(--text-3);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
