/* GRADICA WEBSITE
   ==========================================================================

   Erzeugt wird nur das HTML (scripts/build-website.js); diese Datei ist
   Handarbeit. Eigenstaendig von styles.css der App: die Website muss in
   einem Zug laden, ohne Webfont, ohne Fremdanfrage.

   FARBE - hell, wie Werbespot und Store-Bilder.
     --grund       #f3f2ec  Seite
     --grund-tief  #e9e7de  abgesetzte Felder
     --karte       #fbfaf6  Kacheln
     --text        #111315  Text (17,4:1 auf --grund)
     --leise       #4b5052  Fliesstext und Nebensachen (7,3:1)
     --gold        #c08a1e  NUR Schmuck: Linien, Punkte. Als Text zu schwach (2,7:1)
     --gold-gross  #a3721a  Gold fuer Text ab 24 px (3,8:1, WCAG "grosser Text")
     --gold-text   #85590f  Gold fuer Links, kleinen Text und den Fokus (5,4:1)
     --gold-hell   #d9a93f  Flaechen mit dunklem Text darauf (7,7:1)
   Ein Akzent. Kein zweiter Farbton.

   RADIEN - 28 px grosse Flaechen, 18 px kleine, 999 px alles Runde.
   Das iPhone hat seine eigenen (echte Geraetemasse, in Prozent).

   BEWEGUNG - nur transform und opacity. Alles, was sich zeigt, ist ohne
   JavaScript sofort da: erst site.js setzt `.bewegt` und versteckt, was
   noch unter dem Rand liegt. Bei "weniger Bewegung" bleibt alles stehen,
   Bildwechsel werden kurze Ueberblendungen.

   UMBRUECHE - mobil zuerst (375-430 px). 720 px Tablet, 1000 px Desktop.
   @media (max-width: 719px) ist das Gegenstueck fuer die Handy-Regeln. */

:root {
  color-scheme: light;
  --grund: #f3f2ec;
  --grund-tief: #e9e7de;
  --karte: #fbfaf6;
  --text: #111315;
  --leise: #4b5052;
  --gold: #c08a1e;
  --gold-gross: #a3721a;
  --gold-text: #85590f;
  --gold-hell: #d9a93f;
  --linie: rgba(17, 19, 21, 0.12);
  --linie-fein: rgba(17, 19, 21, 0.07);
  --schatten-iphone: 0 1px 2px rgba(84, 62, 16, 0.10), 0 14px 30px -8px rgba(84, 62, 16, 0.20), 0 42px 72px -26px rgba(84, 62, 16, 0.30);

  --schrift: "Avenir Next", "Century Gothic", Poppins, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --seite: min(1180px, calc(100% - 40px));
  --abschnitt: clamp(5rem, 3rem + 8vw, 10rem);
  --radius-gross: 28px;
  --radius: 18px;

  /* Kurven: ausklingen (expo) fuer Erscheinen, Feder ohne Ueberschwingen
     (iOS-Schublade) fuer Geraete, die sich heben. */
  --aus: cubic-bezier(0.16, 1, 0.3, 1);
  --feder: cubic-bezier(0.32, 0.72, 0, 1);

  /* Ebenen */
  --z-kopf: 20;
  --z-sprung: 30;
}

/* --- Grundlage ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.75rem); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }
.gold { color: var(--gold-gross); }

.nur-sr, .nur-fuer-screenreader:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.nur-fuer-screenreader:focus {
  position: fixed; top: 12px; left: 12px; z-index: var(--z-sprung);
  padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: #fff; font-weight: 600; text-decoration: none;
}

/* Jede Bahn ist gleich breit; nur der Rechtstext liest schmaler. */
.held-text, .buehne, .film-abschnitt, .statt, .teil, .paar, .teilen, .faq, .schluss,
.seitenkopf, .brotkrumen, .bento, .raster, .ausserdem, .weiter, .dokumente,
.presse-downloads, .presse-kontakt, .fehler {
  width: var(--seite);
  margin-inline: auto;
}

/* --- Kopfzeile ------------------------------------------------------------ */

.kopf-wache { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.kopf {
  position: sticky; top: 0; z-index: var(--z-kopf);
  background: rgba(243, 242, 236, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.kopf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--linie); opacity: 0; transition: opacity 200ms ease;
}
.kopf[data-gescrollt]::after, .kopf[data-offen]::after { opacity: 1; }
@media (prefers-reduced-transparency: reduce) {
  .kopf { background: var(--grund); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.kopf-innen { width: var(--seite); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 28px; }
.kopf-marke { display: block; flex: none; padding: 6px 0; }
.kopf-marke img { height: 30px; width: auto; }
.kopf-nav { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; }
.kopf-nav a { color: var(--leise); text-decoration: none; padding: 10px 0; }
.kopf-nav a:hover, .kopf-nav a[aria-current] { color: var(--text); }
.kopf-nav a[aria-current] { font-weight: 600; }
.kopf-menue { display: none; }

@media (max-width: 719px) {
  .kopf-innen { gap: 10px; }
  .kopf-marke img { height: 26px; }
  /* Auf dem Handy steht der Store-Hinweis im Held und am Seitenende -
     oben bleibt Platz fuer Marke und Menue. */
  .kopf-store { display: none; }
  .kopf-menue { margin-left: auto; }
  html:not(.js) .kopf-nav { display: none; }
  .js .kopf-menue {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px; margin-right: -10px; padding: 0;
    border: 0; border-radius: 999px; background: none; color: var(--text); cursor: pointer;
  }
  .kopf-menue-linien, .kopf-menue-linien::before {
    display: block; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor;
    transition: transform 260ms var(--aus);
  }
  .kopf-menue-linien { position: relative; transform: translateY(-3.5px); }
  .kopf-menue-linien::before { content: ""; position: absolute; left: 0; top: 7px; }
  .kopf[data-offen] .kopf-menue-linien { transform: rotate(45deg); }
  .kopf[data-offen] .kopf-menue-linien::before { transform: translateY(-7px) rotate(-90deg); }
  .kopf-nav {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 28px;
    background: var(--grund); border-bottom: 1px solid var(--linie);
    font-size: 1.625rem; font-weight: 600; letter-spacing: -0.02em;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 200ms ease, transform 280ms var(--aus), visibility 0s linear 280ms;
  }
  .kopf-nav a { color: var(--text); padding: 12px 0; }
  .kopf[data-offen] .kopf-nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 200ms ease, transform 280ms var(--aus), visibility 0s;
  }
}

/* --- App-Store: genau ein Baustein, zwei Zustaende ------------------------- */

.store-bald {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0.65rem 1.2rem;
  border-radius: 999px; background: var(--karte); box-shadow: 0 0 0 1px var(--linie);
  font-weight: 600; font-size: 1rem; line-height: 1.2; color: var(--text); white-space: nowrap;
}
.store-punkt { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(192, 138, 30, 0.2); }
.store-bald.ist-kopf { min-height: 36px; padding: 0.4rem 0.85rem; font-size: 0.8125rem; gap: 0.5rem; }
.store-bald.ist-kopf .store-punkt { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(192, 138, 30, 0.2); }
.store-abzeichen { display: inline-block; border-radius: 9px; }
.store-abzeichen img { height: 52px; width: auto; }
.store-abzeichen.ist-kopf img { height: 40px; }

/* --- Knoepfe und Links ------------------------------------------------------ */

.knopf-film {
  display: inline-flex; align-items: center; gap: 0.65rem;
  min-height: 48px; padding: 0.5rem 1.25rem 0.5rem 0.55rem;
  border-radius: 999px; background: var(--text); color: #fff;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 160ms ease-out;
}
.knopf-film:active { transform: scale(0.97); }
.knopf-film .film-dauer { color: rgba(255, 255, 255, 0.72); }
.store-abzeichen + .knopf-film { background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); }
.store-abzeichen + .knopf-film .film-dauer { color: var(--leise); }
.film-play {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-hell);
}
.film-play::after {
  content: ""; position: absolute; left: 13px; top: 10px;
  border-left: 11px solid var(--text); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.film-dauer { font-weight: 500; font-variant-numeric: tabular-nums; }

.mehr {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding-block: 0.6rem; color: var(--gold-text); font-weight: 600; text-decoration: none;
}
.mehr:hover { text-decoration: underline; text-underline-offset: 4px; }
.pfeil {
  display: inline-block; flex: none; width: 0.48em; height: 0.48em;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 220ms var(--aus);
}
.mehr:hover .pfeil, a:hover > .weiter-name .pfeil, a:hover .mehr-zeichen .pfeil { transform: translateX(3px) rotate(45deg); }

/* --- Das iPhone ---------------------------------------------------------------
   iPhone 15 Pro, gemessen in Bildschirmpunkten: Geraet 458 x 960, Schirm
   430 x 932 (14 Rand), Ecken 68/54, Insel 126 x 37 bei 11 von oben, Home-
   Leiste 134 x 5 bei 8 von unten. Hier als Prozent davon - Prozentwerte von
   `inset` und `border-radius` beziehen sich auf Breite bzw. Hoehe. Die
   Schrift der Uhrzeit folgt der Geraetebreite (cqw). */

.iphone { container-type: inline-size; width: 100%; }
.iphone-koerper {
  position: relative; aspect-ratio: 458 / 960;
  border-radius: 14.85% / 7.083%;
  background: linear-gradient(145deg, #eeede9 0%, #c6c3bd 36%, #e6e4df 54%, #b4b1ab 100%);
  box-shadow: inset 0 0 0 0.6px rgba(17, 19, 21, 0.3), var(--schatten-iphone);
}
.iphone-koerper::before {
  content: ""; position: absolute; inset: 0.271% 0.568%;
  border-radius: 14.45% / 6.83%; background: #0a0a0c;
}
.iphone-schirm {
  position: absolute; inset: 1.458% 3.057%;
  border-radius: 12.56% / 5.794%; overflow: hidden; isolation: isolate;
  background: var(--grund);
}
.iphone-lage { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms ease; }
.iphone-lage.ist-aktiv { opacity: 1; }
.iphone-lage picture, .iphone-lage img { width: 100%; height: 100%; }
.iphone-lage img { object-fit: cover; }
.iphone-status { position: absolute; left: 0; right: 0; top: 0; height: 6.33%; z-index: 2; color: #111315; }
.iphone-zeit {
  position: absolute; left: 7.44%; top: 30.5%; width: 21.4%; text-align: center;
  font: 600 8px/1.3 -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 3.71cqw; line-height: 4.8cqw; letter-spacing: -0.01em;
}
.iphone-insel { position: absolute; left: 35.35%; top: 18.64%; width: 29.3%; height: 62.7%; border-radius: 999px; background: #000; }
.iphone-symbole {
  position: absolute; left: 69.77%; top: 38.98%; width: 24.65%; height: 22.03%;
  display: flex; justify-content: center; align-items: center; gap: 5.19%;
}
.iphone-symbole svg { flex: none; height: auto; fill: currentColor; }
.iphone-symbole svg:nth-child(1) { width: 16.04%; }
.iphone-symbole svg:nth-child(2) { width: 14.62%; }
.iphone-symbole svg:nth-child(3) { width: 25.47%; }
.iphone-home { position: absolute; left: 34.42%; bottom: 0.858%; width: 31.16%; height: 0.536%; border-radius: 999px; background: #111315; z-index: 2; }

/* --- Startseite: Held --------------------------------------------------------- */

/* Der Held ist so breit wie das Fenster und schneidet dort ab: die seitlichen
   Geraete duerfen bis an den Rand reichen, aber nie darueber hinaus (sonst
   zoomt ein iPhone die ganze Seite heraus). */
.held { padding-top: clamp(2.75rem, 1.5rem + 5vw, 5.5rem); text-align: center; overflow-x: clip; }
.held-titel { font-size: clamp(2.6rem, 1.3rem + 6.2vw, 5.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.held-zeile { display: block; }
.held-lead { max-width: 34ch; margin: 1.35rem auto 0; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); line-height: 1.45; color: var(--leise); }
.held-aktionen { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; align-items: center; }

.buehne {
  margin-top: clamp(2.75rem, 1.5rem + 4vw, 4.75rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end;
}
.buehne-platz.mitte { grid-column: 2; grid-row: 1; width: clamp(220px, 60vw, 340px); position: relative; z-index: 1; }
.buehne-platz.links, .buehne-platz.rechts { grid-row: 1; width: clamp(160px, 44vw, 268px); margin-bottom: 4%; }
.buehne-platz.links { grid-column: 1; justify-self: end; margin-right: -14%; }
.buehne-platz.rechts { grid-column: 3; justify-self: start; margin-left: -14%; }
/* Ein warmer Schein hinter dem Geraet - wie der Glanz der Wortmarke. */
.buehne-platz.mitte::before {
  content: ""; position: absolute; inset: 8% -40% 20%; z-index: -1;
  background: radial-gradient(closest-side, rgba(217, 169, 63, 0.32), rgba(217, 169, 63, 0));
}

@media (prefers-reduced-motion: no-preference) {
  .held-zeile, .held-lead, .held-aktionen { animation: auftauchen 900ms var(--aus) both; }
  .held-zeile.gold { animation-delay: 80ms; }
  .held-lead { animation-delay: 160ms; }
  .held-aktionen { animation-delay: 240ms; }
  /* Das Hauptgeraet hebt sich ohne Ausblendung: es ist das groesste Bild
     der Seite und soll sofort gemalt werden. */
  .buehne-platz.mitte .iphone { animation: heben 1200ms var(--feder) 120ms both; }
  .buehne-platz.links .iphone, .buehne-platz.rechts .iphone { animation: heben-seite 1300ms var(--feder) 260ms both; }
  @supports (animation-timeline: view()) {
    .buehne-platz.links, .buehne-platz.rechts {
      animation: zurueckweichen linear both;
      animation-timeline: view();
      animation-range: contain 0% exit 100%;
    }
  }
}
@keyframes auftauchen { from { opacity: 0; transform: translateY(16px); } }
@keyframes heben { from { transform: translateY(80px); } }
@keyframes heben-seite { from { opacity: 0; transform: translateY(110px) scale(0.96); } }
@keyframes zurueckweichen { to { transform: translateY(-14%); } }

/* --- Film --------------------------------------------------------------------- */

.film-abschnitt { padding-top: var(--abschnitt); display: grid; gap: 2.5rem; justify-items: center; text-align: center; }
.film-text { max-width: 36rem; }
.film-text p { margin-top: 1.25rem; color: var(--leise); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); }
.film-platz { width: min(76vw, 340px); }
.film-rahmen {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-gross); overflow: hidden;
  background: var(--grund-tief); box-shadow: 0 0 0 1px var(--linie-fein), var(--schatten-iphone);
}
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--grund); }
.film-start { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; transition: opacity 300ms ease; }
.film-start picture, .film-start img { width: 100%; height: 100%; }
.film-start img { object-fit: cover; }
.film-knopf {
  position: absolute; left: 50%; bottom: 6%;
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 1.25rem 0.5rem 0.55rem; border-radius: 999px;
  background: rgba(17, 19, 21, 0.88); font-weight: 600; white-space: nowrap;
  transform: translateX(-50%); transition: transform 180ms ease-out;
}
.film-knopf .film-dauer { color: rgba(255, 255, 255, 0.72); }
.film-start:hover .film-knopf { transform: translateX(-50%) scale(1.03); }
.film-start:active .film-knopf { transform: translateX(-50%) scale(0.97); }
.film-start:focus-visible { outline-offset: -6px; border-radius: var(--radius-gross); }
.film-rahmen.laeuft .film-start { opacity: 0; pointer-events: none; }

@media (min-width: 1000px) {
  .film-abschnitt { grid-template-columns: 1fr auto; text-align: left; justify-items: start; align-items: center; gap: 5rem; }
  .film-platz { width: min(100%, 360px); justify-self: end; margin-right: 6%; }
}

/* --- Eine App statt fuenf --------------------------------------------------- */

.statt { padding-top: var(--abschnitt); display: grid; gap: 2.5rem; }
.statt-kopf p { margin-top: 1.25rem; max-width: 30ch; color: var(--leise); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }
.statt-liste { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); font-weight: 700; line-height: 1.14; letter-spacing: -0.03em; color: var(--leise); }
.statt-liste s { position: relative; display: inline-block; text-decoration: none; }
.statt-liste s::after {
  content: ""; position: absolute; left: -0.06em; right: -0.06em; top: 54%;
  height: max(3px, 0.075em); border-radius: 99px; background: var(--gold);
  transform-origin: left center;
}
.statt-ergebnis { margin-top: 0.3em; color: var(--gold-gross); }
.bewegt .statt-liste s::after { transition: transform 650ms var(--aus) calc(var(--v) * 130ms + 250ms); }
.bewegt .statt-liste:not(.ist-da) s::after { transform: scaleX(0); }
.bewegt .statt-ergebnis { transition: opacity 600ms ease calc(var(--v) * 130ms + 450ms), transform 900ms var(--aus) calc(var(--v) * 130ms + 450ms); }
.bewegt .statt-liste:not(.ist-da) .statt-ergebnis { opacity: 0; transform: translateY(14px); }
@media (min-width: 1000px) {
  .statt { grid-template-columns: 5fr 6fr; align-items: center; gap: 4rem; }
}

/* --- Abschnitte mit Text und Geraet ------------------------------------------- */

.teil { padding-top: var(--abschnitt); }
.teil-kopf { max-width: 44rem; }
.teil-kopf.mitte { margin-inline: auto; text-align: center; }
.teil-kopf p { margin-top: 1.25rem; color: var(--leise); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }
.teil-mehr { margin-top: 2rem; }
.teil-mehr.mitte { text-align: center; }
.teil-text > * + * { margin-top: 1.25rem; }
.teil-text > p { max-width: 36ch; color: var(--leise); font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); }
.teil-text > p:has(> .mehr) { margin-top: 0.75rem; }

.teil-training, .teil-freunde, .ueberall { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 900px) {
  .teil-training, .teil-freunde, .ueberall { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .gespiegelt .teil-text { order: 2; }
}

.teil-bild { display: flex; justify-content: center; }
.teil-bild > .iphone { width: min(64vw, 320px); }
.doppel { display: grid; justify-items: center; align-items: end; }
.doppel > .iphone { grid-area: 1 / 1; }
.doppel .vorn { width: min(60vw, 320px); z-index: 1; transform: translateX(-17%); }
.doppel .hinten { width: min(46vw, 250px); transform: translate(36%, -12%); }

/* Der Zaehler: jede Ziffer ist ein Band 0-9-0, das auf seinen Wert rollt. */
.zaehler { display: grid; gap: 0.35rem; margin-top: 2rem; }
.zaehler-wert {
  display: flex; font-size: clamp(4.25rem, 2.6rem + 6vw, 7.5rem); font-weight: 700; line-height: 1;
  letter-spacing: -0.04em; color: var(--gold-gross); font-variant-numeric: tabular-nums;
}
.ziffer { display: block; height: 1em; overflow: hidden; }
.ziffer-band { display: flex; flex-direction: column; transform: translateY(calc(var(--i) * -100% / 11)); }
.ziffer-band span { display: block; height: 1em; line-height: 1; }
.zaehler-text { max-width: 26ch; color: var(--leise); }
.bewegt .zaehler .ziffer-band { transition: transform 1700ms var(--aus) calc(var(--v) * 120ms + 250ms); }
.bewegt .zaehler:not(.ist-da) .ziffer-band { transform: translateY(0); }

/* Laufen: drei Geraete nebeneinander, auf dem Handy zum Wischen. Der
   Rahmen (.galerie) ist der verschiebbare Bereich, die Liste bleibt Liste. */
.galerie { margin-top: 3rem; }
.galerie-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); align-items: start; }
.galerie li { display: grid; justify-items: center; gap: 1.25rem; }
.galerie .iphone { width: min(100%, 290px); }
.galerie p { font-weight: 600; text-align: center; }
@media (max-width: 719px) {
  .galerie {
    margin-inline: calc(50% - 50vw); scroll-padding-inline: 19vw;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .galerie::-webkit-scrollbar { display: none; }
  .galerie-liste { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62vw; gap: 16px; width: max-content; padding: 12px 19vw 36px; }
  .galerie li { scroll-snap-align: center; }
  .galerie .iphone { width: 100%; }
}

/* Die Tour: festes Geraet, wandernde Schritte (ab 1000 px). */
.tour { margin-top: 3rem; }
.tour-buehne { display: none; }
.tour-schritte { display: grid; gap: 4.5rem; }
.tour-schritt { display: grid; gap: 1.75rem; justify-items: center; text-align: center; }
.tour-schritt-bild .iphone { width: min(60vw, 280px); }
.tour-schritt-text { max-width: 30rem; }
.tour-schritt h3, .tour-schritt h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); letter-spacing: -0.02em; }
.tour-schritt p { margin-top: 0.75rem; color: var(--leise); font-size: clamp(1.05rem, 1rem + 0.25vw, 1.1875rem); }
@media (min-width: 720px) and (max-width: 999px) {
  .tour-schritt { grid-template-columns: 1fr 1fr; align-items: center; justify-items: start; text-align: left; gap: 3rem; }
  .tour-schritt-bild { justify-self: center; }
  .tour-schritt:nth-child(even) .tour-schritt-bild { order: 2; }
}
@media (min-width: 1000px) {
  .tour {
    --tour-b: min(330px, calc((100svh - 150px) * 0.477));
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start;
  }
  .tour-buehne {
    display: block; position: sticky; align-self: start; justify-self: center;
    top: calc(50svh - var(--tour-b) * 1.048 + 32px);
  }
  .tour-iphone { width: var(--tour-b); }
  .tour-schritte { gap: 0; padding-block: 8svh; }
  .tour-schritt { min-height: 76svh; align-content: center; justify-items: start; text-align: left; }
  .tour-schritt-bild { display: none; }
}

/* Coach: ein abgesetztes Feld mit der Frage als Sprechblase. */
.feld {
  display: grid; gap: 3rem; align-items: center;
  padding: clamp(2rem, 0.75rem + 5vw, 5rem);
  border-radius: var(--radius-gross); background: var(--grund-tief);
}
@media (min-width: 900px) { .feld { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.coach-frage {
  max-width: 30ch; padding: 0.95rem 1.2rem;
  border-radius: 22px 22px 22px 6px; background: var(--karte); box-shadow: 0 0 0 1px var(--linie-fein);
  font-size: 1.125rem; line-height: 1.45;
}
.teil-coach .teil-text > p.coach-frage { color: var(--text); }

.haken li { position: relative; padding-left: 1.85rem; color: var(--leise); }
.haken li + li { margin-top: 0.65rem; }
.haken li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.42em; width: 0.85em; height: 0.45em;
  border-left: 2px solid var(--gold-gross); border-bottom: 2px solid var(--gold-gross);
  transform: rotate(-45deg);
}

/* Zwei Kacheln nebeneinander, das Geraet ragt von unten herein. */
.paar { padding-top: var(--abschnitt); display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .paar { grid-template-columns: 1fr 1fr; } }
.kachel { padding: clamp(1.6rem, 1rem + 2vw, 2.75rem); border-radius: var(--radius-gross); background: var(--karte); box-shadow: 0 0 0 1px var(--linie-fein); }
.paar .kachel { display: grid; grid-template-rows: auto 1fr; gap: 2.25rem; padding-bottom: 0; overflow: hidden; }
.kachel-text > * + * { margin-top: 1rem; }
.kachel-text p { color: var(--leise); }
.kachel-text p:has(> .mehr) { margin-top: 0.5rem; }
.paar h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
.kachel-bild { align-self: end; justify-self: center; width: min(68%, 300px); aspect-ratio: 458 / 640; }

/* Teilen */
.teilen { padding-top: var(--abschnitt); }
.teilen .feld { background: var(--karte); box-shadow: 0 0 0 1px var(--linie-fein); }
.teilen-bild { display: flex; justify-content: center; }
.teilen-bild .iphone { width: min(62vw, 300px); }
.punkte { margin-top: 2rem; display: grid; gap: 1.5rem; }
.punkte > div { padding-top: 1.25rem; border-top: 1px solid var(--linie); }
.punkte dt { font-weight: 700; font-size: 1.1875rem; }
.punkte dd { margin-top: 0.35rem; color: var(--leise); }
.punkte.zwei { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 2rem 2.5rem; }

/* Fragen */
.faq { padding-top: var(--abschnitt); display: grid; gap: 2rem; }
.faq-kopf p { margin-top: 0.5rem; }
@media (min-width: 900px) {
  .faq { grid-template-columns: 1fr 1.7fr; gap: 4rem; align-items: start; }
  .faq-kopf { position: sticky; top: 96px; }
}
.faq-liste { border-top: 1px solid var(--linie); }
.frage { border-bottom: 1px solid var(--linie); }
.frage summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  padding: 1.3rem 0; list-style: none; cursor: pointer;
  font-weight: 600; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.35;
}
.frage summary::-webkit-details-marker { display: none; }
.frage-zeichen { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--grund-tief); }
.frage-zeichen::before, .frage-zeichen::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: var(--text); transition: transform 260ms var(--aus);
}
.frage-zeichen::after { transform: rotate(90deg); }
.frage[open] .frage-zeichen::after { transform: rotate(0deg); }
.frage-antwort { padding-bottom: 1.5rem; max-width: 62ch; color: var(--leise); }
.frage-antwort p + p { margin-top: 0.75rem; }
.frage-antwort b { color: var(--text); }
.frage-antwort a { color: var(--gold-text); }
.frage-antwort .muted { font-size: 0.9375rem; }
@media (prefers-reduced-motion: no-preference) {
  .frage[open] .frage-antwort { animation: auftauchen 420ms var(--aus); }
}

/* Schluss */
.schluss { padding-block: var(--abschnitt) 0; display: grid; justify-items: center; gap: 1.75rem; text-align: center; }
.schluss-titel { font-size: clamp(2.4rem, 1.3rem + 4.8vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; }
.schluss-titel span { display: block; }
.schluss-text { max-width: 40ch; color: var(--leise); }

/* --- Unterseiten ---------------------------------------------------------------- */

.brotkrumen { margin-top: 1.5rem; font-size: 0.9375rem; }
.brotkrumen ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.brotkrumen li { display: inline-flex; align-items: center; gap: 0.6rem; }
.brotkrumen li + li::before {
  content: ""; width: 0.4em; height: 0.4em; border-top: 1.5px solid var(--leise); border-right: 1.5px solid var(--leise); transform: rotate(45deg);
}
.brotkrumen a { color: var(--gold-text); text-decoration: none; padding-block: 0.6rem; }
.brotkrumen a:hover { text-decoration: underline; }
.brotkrumen [aria-current] { color: var(--leise); }

.seitenkopf { padding-top: clamp(2.5rem, 1rem + 5vw, 5.5rem); }
.brotkrumen + .seitenkopf { padding-top: clamp(1.5rem, 0.75rem + 3vw, 3.5rem); }
.seitenkopf h1 { max-width: 18ch; font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem); line-height: 1.03; letter-spacing: -0.035em; }
.seitenkopf .lead { max-width: 40ch; margin-top: 1.35rem; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); line-height: 1.45; color: var(--leise); }
.seitenkopf.mitte { text-align: center; }
.seitenkopf.mitte h1, .seitenkopf.mitte .lead { margin-inline: auto; }
.teil-tour { padding-top: 1rem; }

/* Funktionen: Bento */
.bento { margin-top: 3rem; display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento-training { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento-training { grid-column: span 4; }
  .bento-laufen-rad, .bento-ernaehrung, .bento-coach, .bento-erholung { grid-column: span 2; }
  .bento-fortschritt, .bento-freunde { grid-column: span 3; }
}
.bento-zelle a {
  display: grid; grid-template-rows: auto 1fr; height: 100%;
  padding: clamp(1.6rem, 1rem + 1.6vw, 2.25rem) clamp(1.6rem, 1rem + 1.6vw, 2.25rem) 0;
  border-radius: var(--radius-gross); background: var(--karte); box-shadow: 0 0 0 1px var(--linie-fein);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform 320ms var(--aus);
}
.bento-zelle a:hover { transform: translateY(-4px); }
.bento-zelle a:active { transform: scale(0.985); }
.bento-text h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); }
.bento-text p { margin-top: 0.6rem; color: var(--leise); max-width: 30ch; }
.mehr-zeichen { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1rem; color: var(--gold-text); font-weight: 600; }
.bento-bild { align-self: end; justify-self: center; width: min(62%, 250px); aspect-ratio: 458 / 600; margin-top: 2rem; }
@media (min-width: 1000px) {
  .bento-training a { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 2rem; }
  .bento-training .bento-text { align-self: center; padding-bottom: 2rem; }
  .bento-training .bento-bild { width: min(80%, 270px); margin-top: 2.5rem; }
}

/* Bereichsseite: Ausserdem und Weiter */
.ausserdem {
  margin-top: var(--abschnitt); display: grid; gap: 1.5rem;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--radius-gross); background: var(--karte); box-shadow: 0 0 0 1px var(--linie-fein);
}
.ausserdem h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
@media (min-width: 900px) { .ausserdem { grid-template-columns: 1fr 2fr; gap: 3rem; } }
.weiter { margin-top: 1.25rem; }
.weiter a {
  display: grid; gap: 0.35rem; padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
  border-radius: var(--radius-gross); background: var(--grund-tief); color: inherit; text-decoration: none;
  transition: transform 320ms var(--aus);
}
.weiter a:hover { transform: translateY(-3px); }
.weiter a:active { transform: scale(0.99); }
.weiter-wort { color: var(--leise); font-weight: 600; font-size: 0.9375rem; }
.weiter-name { display: inline-flex; align-items: center; gap: 0.6rem; font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.weiter-name .pfeil { width: 0.32em; height: 0.32em; border-width: 3px; border-color: var(--gold-gross); }
.weiter-kurz { color: var(--leise); }

/* Support */
.raster { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .raster.zwei { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .raster.drei { grid-template-columns: repeat(3, 1fr); } }
.raster .kachel > * + * { margin-top: 0.9rem; }
.raster .kachel h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.02em; }
.raster .kachel p, .raster .kachel li { color: var(--leise); }
.raster .kachel b { color: var(--text); }
.raster .kachel a { color: var(--gold-text); }
.raster .kachel .muted { font-size: 0.9375rem; }
.raster .kachel ul { list-style: disc; padding-left: 1.25rem; }
.raster .kachel li + li { margin-top: 0.35rem; }
.raster .kachel .mail { margin-top: 1.25rem; }
.raster .kachel .mail a { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.raster .kachel .mail a:hover { text-decoration: underline; text-underline-offset: 5px; }
.steps { list-style: decimal; padding: 1rem 1.25rem 1rem 2.5rem; border-radius: var(--radius); background: var(--grund); }
.raster + .faq { padding-top: clamp(4rem, 2.5rem + 5vw, 7rem); }
.faq + .raster { margin-top: clamp(4rem, 2.5rem + 5vw, 7rem); }
.dokumente { margin-top: clamp(4rem, 2.5rem + 5vw, 7rem); }
.dokumente h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
.dokumente ul { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0 2rem; }

/* Presse */
@media (min-width: 900px) { .presse-oben { grid-template-columns: 1.35fr 1fr; align-items: start; gap: 3rem; } }
.presse-kurz h2, .presse-oben .kachel h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
.presse-kurz p { margin-top: 1rem; max-width: 62ch; color: var(--leise); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.1875rem); }
.fakten > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--linie); }
.fakten > div:first-child { border-top: 0; }
.fakten dt { color: var(--leise); }
.fakten dd { font-weight: 500; }
.presse-downloads { padding-top: clamp(4rem, 2.5rem + 5vw, 7rem); }
.downloads { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 1.75rem 1.25rem; }
@media (max-width: 719px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.download a { display: grid; gap: 0.35rem; color: inherit; text-decoration: none; }
.download-bild {
  display: grid; place-items: center; aspect-ratio: 3 / 4; margin-bottom: 0.4rem; padding: 1.1rem;
  border-radius: var(--radius); background: var(--karte); box-shadow: 0 0 0 1px var(--linie-fein); overflow: hidden;
}
.download-bild picture, .download-bild img { width: 100%; }
.ist-screen .download-bild { place-items: start center; padding-bottom: 0; }
.ist-screen .download-bild img { border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px var(--linie-fein); }
.ist-icon .download-bild img { width: 56%; border-radius: 22%; }
.download-name { font-weight: 600; line-height: 1.3; }
.download-groesse { color: var(--leise); font-size: 0.875rem; }
.download a:hover .download-name { text-decoration: underline; }
.presse-kontakt { padding-top: clamp(4rem, 2.5rem + 5vw, 7rem); }
.presse-kontakt h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
.presse-kontakt p { margin-top: 1rem; color: var(--leise); }
.presse-kontakt a { color: var(--gold-text); font-weight: 600; }

/* Rechtstexte: der Text der App, im Satz der Website */
.recht { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding-top: clamp(2rem, 1rem + 4vw, 4rem); color: #2c3032; }
.recht-hinweis { display: inline-block; padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--grund-tief); color: var(--leise); font-size: 0.875rem; }
.recht h1 { margin-top: 1.5rem; color: var(--text); font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.75rem); letter-spacing: -0.035em; }
.recht h2 { margin: 0 0 0.65rem; color: var(--text); font-size: 1.375rem; letter-spacing: -0.015em; }
.recht h3 { margin: 1.4em 0 0.3em; color: var(--text); font-size: 1.0625rem; letter-spacing: 0; }
.recht p, .recht address { margin: 0 0 0.85rem; }
.recht address { font-style: normal; }
.recht .lead { margin-top: 1rem; font-size: 1.1875rem; color: var(--leise); }
.recht .muted { color: var(--leise); font-size: 0.9375rem; }
.recht section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); }
.recht ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 0.85rem; }
.recht ol { list-style: decimal; padding-left: 1.4rem; margin: 0 0 0.85rem; }
.recht li { margin: 0.3rem 0; }
.recht a { color: var(--gold-text); }
.recht .toc { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--karte); box-shadow: 0 0 0 1px var(--linie-fein); }
.recht .toc ol { margin: 0; columns: 2; column-gap: 2rem; }
.recht .toc li { break-inside: avoid; }
@media (max-width: 559px) { .recht .toc ol { columns: 1; } }
.recht .scroll { overflow-x: auto; }
.recht table { width: 100%; margin: 0.8rem 0; border-collapse: collapse; font-size: 0.9375rem; }
.recht th, .recht td { padding: 0.55rem 0.75rem 0.55rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.recht th { color: var(--leise); font-weight: 600; }

/* 404 */
.fehler { padding-top: clamp(3rem, 2rem + 6vw, 7rem); display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.fehler-code { font-size: clamp(5.5rem, 3rem + 11vw, 10rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; color: var(--gold-gross); }
.fehler .lead { max-width: 36ch; color: var(--leise); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); }
.fehler-wege { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2rem; margin-top: 0.5rem; }

/* Einladung (/einladung/<schluessel>): dasselbe ruhige Raster wie 404. */
.einladung-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 32px rgba(17, 17, 15, 0.14); }
.einladung .knopf-film { padding-inline: 1.6rem; margin-top: 0.25rem; }
.einladung-hinweis { max-width: 34ch; color: var(--leise); }
.einladung [hidden] { display: none !important; }

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

.fuss { margin-top: var(--abschnitt); border-top: 1px solid var(--linie); }
.fuss-innen { width: var(--seite); margin: 0 auto; padding: 3.5rem 0 2.5rem; display: grid; gap: 2.75rem; }
@media (min-width: 1000px) { .fuss-innen { grid-template-columns: 1fr 2.3fr; gap: 3rem; } }
.fuss-logo { display: inline-block; }
.fuss-logo img { height: 34px; width: auto; }
.fuss-marke p { margin: 1rem 0 1.25rem; color: var(--leise); }
.fuss-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
@media (min-width: 720px) { .fuss-spalten { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fuss h2 { margin-bottom: 0.6rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.fuss a { display: inline-block; padding: 0.35rem 0; color: var(--leise); font-size: 0.9375rem; line-height: 1.35; text-decoration: none; }
.fuss a:hover { color: var(--text); text-decoration: underline; }
.fuss-handle { display: block; font-size: 0.8125rem; }
.fuss-unten {
  width: var(--seite); margin: 0 auto; padding: 1.5rem 0 max(2.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--linie); display: grid; gap: 0.5rem; font-size: 0.8125rem; color: var(--leise);
}
@media (min-width: 900px) { .fuss-unten { grid-template-columns: auto 1fr; gap: 2rem; } .fuss-unten p:last-child { text-align: right; } }

/* --- Erscheinen beim Scrollen (erst mit site.js) ------------------------------ */

.bewegt [data-zeige] { transition: opacity 700ms ease calc(var(--v, 0) * 90ms), transform 1000ms var(--aus) calc(var(--v, 0) * 90ms); }
.bewegt [data-zeige]:not(.ist-da) { opacity: 0; transform: translateY(28px); }
.bewegt .teil-bild[data-zeige], .bewegt .teilen-bild[data-zeige] { transition-timing-function: ease, var(--feder); transition-duration: 700ms, 1300ms; }
.bewegt .teil-bild[data-zeige]:not(.ist-da), .bewegt .teilen-bild[data-zeige]:not(.ist-da) { transform: translateY(72px) scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .bewegt [data-zeige], .bewegt [data-zeige]:not(.ist-da),
  .bewegt .teil-bild[data-zeige]:not(.ist-da), .bewegt .teilen-bild[data-zeige]:not(.ist-da) { opacity: 1; transform: none; transition: none; }
  .bewegt .zaehler .ziffer-band, .bewegt .zaehler:not(.ist-da) .ziffer-band { transform: translateY(calc(var(--i) * -100% / 11)); transition: none; }
  .bewegt .statt-liste s::after, .bewegt .statt-liste:not(.ist-da) s::after { transform: none; transition: none; }
  .bewegt .statt-ergebnis, .bewegt .statt-liste:not(.ist-da) .statt-ergebnis { opacity: 1; transform: none; transition: none; }
  .iphone-lage { transition: opacity 160ms linear; }
  .kopf-nav, .kopf[data-offen] .kopf-nav { transform: none; transition: opacity 150ms linear, visibility 0s; }
  .kopf-menue-linien, .kopf-menue-linien::before, .pfeil, .frage-zeichen::before, .frage-zeichen::after,
  .knopf-film, .film-knopf, .bento-zelle a, .weiter a { transition: none; }
  .bento-zelle a:hover, .weiter a:hover { transform: none; }
}

@media print {
  .kopf, .film-abschnitt, .galerie, .tour-buehne { display: none; }
  .bewegt [data-zeige] { opacity: 1 !important; transform: none !important; }
}
