/* ==========================================================================
   Element 6 · studio.css
   Designsprache nach BetterMe: helle Leinenfläche, eine runde Grotesk (Figtree), große Bildkarten
   mit runden Ecken, Karussells zum Wischen, eine Kopfzeile, die über dem Titelbild durchsichtig ist,
   und ruhige Bewegung (Bilder setzen sich beim Scrollen, Texte stehen still).
   Farbsprache 1:1 von BetterMe, nur hell: Elfenbein-Flächen wie dort, die warmen dunklen Töne (Schoko)
   durch Navy mit derselben Helligkeit ersetzt. Gold bleibt der Marke vorbehalten: Logo in der Fußzeile.
   ========================================================================== */

/* ---------- Schrift (lokal, keine Drittanbieter) ---------- */
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Grundwerte ---------- */
:root {
  /* Figtree ist die nächste freie Entsprechung zur lizenzpflichtigen Aeonik von BetterMe.
     Gewicht 520 entspricht Aeonik 450 (Überschriften), 400 bleibt 400 (Text). */
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Raster, Abstände und Schriftgrade folgen dem System von BetterMe:
     Smartphone feste Werte, Tablet wächst mit der Breite (Basis 768 px),
     Desktop wächst von 1024 bis 1920 px und bleibt dann stehen. */
  --w: 1792px;          /* Inhaltsbreite bei 1920 px minus Ränder */
  --gutter: 16px;       /* Seitenrand */
  --gap: 16px;          /* Abstand zwischen Spalten und Karten */
  --space: 64px;        /* Abstand der Bereiche oben und unten */
  --radius: 12px;
  --glass-w: 36rem;     /* Breite des Kastens „Über David“, auch die Liste im Coaching (Desktop) */
  --radius-btn: 8px;
  --btn-h: 48px;        /* Buttons wie BetterMes „button-size-default“: Höhe, Schrift, Innenabstand */
  --btn-fs: 16px;
  --btn-pad: 24px;
  --round-h: 48px;      /* runde Buttons (Pfeile, Kopieren, Aufklappen) */
  --header-h: 56px;
  --ease: cubic-bezier(.16, 1, .3, 1);   /* weiches Auslaufen wie bei BetterMe */

  --x2: 8px;
  --x3: 12px;
  --x4: 16px;
  --x5: 20px;
  --x6: 24px;
  --x8: 32px;
  --x10: 40px;
  --x12: 48px;

  --t-display-lg: 40px;
  --t-display-md: 32px;
  --t-heading-lg: 28px;
  --t-heading-md: 24px;
  --t-heading-xs: 20px;
  --t-body-ml: 16px;
  --t-body: 16px;
  --t-body-sm: 14px;
  --t-label: 14px;

  /* Farbsprache von BetterMe (gemessen Dezember 2026): Verteilung hell/dunkel und die hellen Töne sind übernommen.
     Die dunklen Töne (bei BetterMe Schoko) sind moody dark mit einem Hauch Midnight Blue, wie der Hero
     (Vorgabe des Inhabers, Dezember 2026). Für eine dunkel-warme Variante nur --ink-rgb und --deep-rgb tauschen:
     51 39 38 und 26 17 17. Alle dunklen Flächen, Verläufe und Abdunkelungen leiten sich aus diesen beiden Werten ab. */
  --ivory-rgb: 255 252 245;   /* ivory-50: Seitengrund, Schrift auf Bildern */
  --ivory-2: #f4efe8;         /* ivory-100: graue Bereiche, erhabene Karten (Partner) */
  --ink-rgb: 30 42 58;        /* #1e2a3a Midnight-Navy: Text, Buttons, Abdunkelung über Fotos */
  --deep-rgb: 9 15 27;        /* #090f1b fast Schwarz mit Blau: Fußzeile, tiefste Flächen */
  --ivory: rgb(var(--ivory-rgb));
  --ink: rgb(var(--ink-rgb));
  --deep: rgb(var(--deep-rgb));
  /* Nur für den ausgeschalteten Dark Mode (.theme-dark, siehe unten): Seitengrund und zweiter Ton */
  --night: color-mix(in oklab, var(--deep), var(--ink) 30%);
  --night-2: color-mix(in oklab, var(--deep), var(--ink) 60%);
  /* Dunkle Bildflächen ohne Foto (Ersatzflächen): etwas heller als --ink */
  --ink-hi: color-mix(in oklab, var(--ink), #fff 9%);
  --gold-light: #d4b274;

  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M11.67 4.58 17.08 10l-5.41 5.42M16.67 10H2.92' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6.5' y='6.5' width='10' height='10' rx='2' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M13.5 3.5h-8a2 2 0 0 0-2 2v8' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10.5 4 4 8-9' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Tablet: alles wächst mit der Breite */
@media (min-width: 768px) {
  :root {
    --s: calc(100vw / 768);
    --gutter: calc(48 * var(--s));
    --gap: calc(16 * var(--s));
    --space: calc(96 * var(--s));
    --radius: calc(12 * var(--s));
    --btn-h: calc(48 * var(--s));
    --btn-fs: calc(16 * var(--s));
    --btn-pad: calc(24 * var(--s));
    --radius-btn: calc(8 * var(--s));
    --round-h: calc(48 * var(--s));
    --x2: calc(8 * var(--s));
    --x3: calc(12 * var(--s));
    --x4: calc(16 * var(--s));
    --x5: calc(20 * var(--s));
    --x6: calc(24 * var(--s));
    --x8: calc(32 * var(--s));
    --x10: calc(40 * var(--s));
    --x12: calc(48 * var(--s));
    --t-display-lg: calc(56 * var(--s));
    --t-display-md: calc(48 * var(--s));
    --t-heading-lg: calc(36 * var(--s));
    --t-heading-md: calc(32 * var(--s));
    --t-heading-xs: calc(20 * var(--s));
    --t-body-ml: calc(18 * var(--s));
    --t-body: calc(16 * var(--s));
    --t-body-sm: calc(14 * var(--s));
    --t-label: calc(14 * var(--s));
  }
}

/* Desktop: von 1024 bis 1920 px fließend, darüber fest */
@media (min-width: 1024px) {
  :root {
    --p: calc((100vw - 1024px) / 896);
    --gutter: clamp(36px, calc(36px + 28 * var(--p)), 64px);
    --gap: clamp(8px, calc(8px + 8 * var(--p)), 16px);
    --space: clamp(72px, calc(72px + 56 * var(--p)), 128px);
    --radius: clamp(8px, calc(8px + 4 * var(--p)), 12px);
    /* Buttons wie bei BetterMe gemessen: 1024 px 48 hoch, 14 px Schrift; 1920 px 64 hoch, 18 px */
    --btn-h: clamp(48px, calc(48px + 16 * var(--p)), 64px);
    --btn-fs: clamp(14px, calc(14px + 4 * var(--p)), 18px);
    --btn-pad: clamp(20px, calc(20px + 12 * var(--p)), 32px);
    --radius-btn: clamp(6px, calc(6px + 2 * var(--p)), 8px);
    /* Button auf Bildkarten wie bei BetterMe gemessen (Dezember 2026, Wunsch des Inhabers): Höhe 10,85 % der Kartenhöhe,
       Schrift 3,8 % der Kartenhöhe, Innenabstand 4,7 % und Radius 1 % der Kartenbreite. Festgemacht an der Themenkarte
       (1440 px: 46 hoch, 16 px Schrift, 26 px Innenabstand), damit alle Bildkarten denselben Button haben. */
    --card-btn-h: clamp(40px, calc(32.5px + 28.5 * var(--p)), 61px);
    --card-btn-fs: clamp(14px, calc(11.2px + 9.9 * var(--p)), 21px);
    --card-btn-pad: clamp(20px, calc(18.5px + 16.2 * var(--p)), 35px);
    --card-btn-r: clamp(5px, calc(4.1px + 3.5 * var(--p)), 8px);
    --round-h: clamp(40px, calc(40px + 16 * var(--p)), 56px);
    --header-h: 64px;
    --x2: clamp(4px, calc(4px + 4 * var(--p)), 8px);
    --x3: clamp(8px, calc(8px + 4 * var(--p)), 12px);
    --x4: clamp(12px, calc(12px + 4 * var(--p)), 16px);
    --x5: clamp(12px, calc(12px + 8 * var(--p)), 20px);
    --x6: clamp(12px, calc(12px + 12 * var(--p)), 24px);
    --x8: clamp(16px, calc(16px + 16 * var(--p)), 32px);
    --x10: clamp(20px, calc(20px + 20 * var(--p)), 40px);
    --x12: clamp(24px, calc(24px + 24 * var(--p)), 48px);
    --t-display-lg: clamp(48px, calc(48px + 40 * var(--p)), 88px);
    --t-display-md: clamp(34px, calc(34px + 30 * var(--p)), 64px);
    --t-heading-lg: clamp(28px, calc(28px + 20 * var(--p)), 48px);
    --t-heading-md: clamp(20px, calc(20px + 20 * var(--p)), 40px);
    --t-heading-xs: clamp(18px, calc(18px + 6 * var(--p)), 24px);
    --t-body-ml: clamp(15px, calc(15px + 5 * var(--p)), 20px);
    --t-body: clamp(15px, calc(15px + 3 * var(--p)), 18px);
    --t-body-sm: clamp(14px, calc(14px + 2 * var(--p)), 16px);
    --t-label: clamp(12px, calc(12px + 4 * var(--p)), 16px);
  }
}

/* Nur die helle Ansicht (Vorgabe des Inhabers, Dezember 2026): kein Nachtmodus, wie bei BetterMe. */
:root {
  color-scheme: light;
  --bg: var(--ivory);
  --bg-2: var(--ivory-2);
  --text: var(--ink);
  --text-2: rgb(var(--ink-rgb) / .8);    /* BetterMe text-secondary */
  --text-3: rgb(var(--ink-rgb) / .7);    /* BetterMe nutzt .6 (3,9 : 1); .7 hält kleine Schrift über 4,5 : 1 */
  --label: rgb(var(--ink-rgb) / .7);     /* kleine Zeilen über Überschriften, wie BetterMe */
  --line: rgb(var(--ink-rgb) / .16);     /* border-primary */
  --line-strong: rgb(var(--ink-rgb) / .2);   /* outline */
  --accent-text: #7f6228;
  --btn-bg: var(--ink);
  --btn-text: var(--ivory);
  --btn-hover: var(--deep);
  --ghost-bg: rgb(var(--ink-rgb) / .05);
  --ghost-hover: rgb(var(--ink-rgb) / .1);
  --soft-bg: rgb(var(--ink-rgb) / .05);  /* Pille hinter den Punkten */
  --dot: rgba(29, 29, 29, .1);           /* inaktiver Punkt, wie BetterMe */
  --header-bg: var(--ivory);
  --footer-bg: var(--deep);
}

/* Bildflächen (Hero, Karten, Über David, Fußzeile) sind dunkel, ebenso die Kopfzeile,
   solange sie durchsichtig über dem Titelbild liegt. Werte wie BetterMes „inverse“-Farben. */
.on-dark,
.js:not(.menu-open) .site-header:not(.is-solid) {
  color-scheme: dark;
  --bg: var(--deep);
  --text: var(--ivory);
  --text-2: rgb(var(--ivory-rgb) / .8);
  --text-3: rgb(var(--ivory-rgb) / .6);   /* text-secondary-inverse */
  --label: rgb(var(--ivory-rgb) / .7);
  --line: rgb(var(--ivory-rgb) / .2);     /* border-inverse */
  --line-strong: rgb(var(--ivory-rgb) / .32);
  --accent-text: #d4b274;
  --btn-bg: var(--ivory);
  --btn-text: var(--ink);
  --btn-hover: rgb(var(--ivory-rgb) / .84);
  --ghost-bg: rgb(var(--ivory-rgb) / .2);
  --ghost-hover: rgb(var(--ivory-rgb) / .28);
  --soft-bg: rgb(var(--ivory-rgb) / .1);
  --dot: rgb(var(--ivory-rgb) / .3);
  color: var(--text);
}

/* ---------- Dark Mode (ausgeschaltet) ----------
   Die ganze Seite moody dark statt heller Bereiche (Entwurf vom Dezember 2026, auf Wunsch des Inhabers aufbewahrt,
   aber nicht aktiv). Einschalten: in index.html <html lang="de" class="theme-dark"> setzen, dazu die Meta-Tags
   theme-color auf #0f1724 und color-scheme auf dark. Bewusst ohne automatische Umschaltung (prefers-color-scheme).
   Seitengrund --night, zweiter Ton der Bereiche --night-2, Fußzeile --deep, Schrift Elfenbein, Buttons hell. */
:root.theme-dark {
  color-scheme: dark;
  --bg: var(--night);
  --bg-2: var(--night-2);
  --text: var(--ivory);
  --text-2: rgb(var(--ivory-rgb) / .8);
  --text-3: rgb(var(--ivory-rgb) / .64);
  --label: rgb(var(--ivory-rgb) / .7);
  --line: rgb(var(--ivory-rgb) / .14);
  --line-strong: rgb(var(--ivory-rgb) / .26);
  --accent-text: var(--gold-light);
  --btn-bg: var(--ivory);
  --btn-text: var(--ink);
  --btn-hover: rgb(var(--ivory-rgb) / .84);
  --ghost-bg: rgb(var(--ivory-rgb) / .2);
  --ghost-hover: rgb(var(--ivory-rgb) / .28);
  --soft-bg: rgb(var(--ivory-rgb) / .1);
  --dot: rgb(var(--ivory-rgb) / .3);
  --header-bg: color-mix(in srgb, var(--night) 86%, transparent);   /* fast deckend, mit dem Weichzeichner der Kopfzeile */
}
/* Ohne JavaScript fehlt der Weichzeichner: Kopfzeile deckend */
:root.theme-dark:not(.js) .site-header { background: var(--night); }
/* Partnerlogos einfarbig hell, ihre Markenfarben wären auf Dunkel nicht zu sehen */
:root.theme-dark .partner-logo { filter: brightness(0) invert(1); opacity: .9; }
/* Smartphone und Tablet: der Hero läuft unten weich in den Seitengrund aus, ohne Kante zum nächsten Bereich */
@media (max-width: 767px) {
  :root.theme-dark .hero::after {
    background:
      linear-gradient(180deg, transparent 86%, var(--night) 100%),
      linear-gradient(180deg, rgb(var(--ink-rgb) / 0) 52%, rgb(var(--ink-rgb) / .4) 70%, rgb(var(--ink-rgb) / .72) 100%);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  :root.theme-dark .hero::after {
    background:
      linear-gradient(180deg, transparent 86%, var(--night) 100%),
      linear-gradient(180deg, rgb(var(--ink-rgb) / 0) 42%, rgb(var(--ink-rgb) / .5) 64%, rgb(var(--ink-rgb) / .92) 100%);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.menu-open body { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
figure { margin: 0; }
::selection { background: rgba(180, 142, 73, .3); }

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 520;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--w));
  margin-inline: auto;
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 520;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-display-lg); }
h2 { font-size: var(--t-display-md); }
h3 { font-size: var(--t-heading-md); }

/* Kleine Zeile über Überschriften wie bei BetterMe: in der leisen Textfarbe, nicht in Gold */
.label {
  margin: 0 0 var(--x4);
  font-size: var(--t-label);
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label);
}

/* Wie BetterMe: 24 Einheiten zwischen der Zeile in Großbuchstaben und der Überschrift (Tablet 32) */
.section-head .label { margin-bottom: var(--x6); }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--x4);
  margin-bottom: var(--x8);
  text-align: center;
}
.section-sub {
  margin: var(--x4) 0 0;
  color: var(--text-2);
  font-size: var(--t-body-ml);
  line-height: 1.4;
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 var(--btn-pad);
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-text);
  font: 520 var(--btn-fs)/1.1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .3s var(--ease);
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.98); }
/* Durchscheinend: Buttons auf Bildkarten (auf dem Desktop deckend, siehe .card-btn) und der zweite Button,
   wie bei BetterMe (Elfenbein 20 %, weich gezeichnet) */
.btn-ghost {
  background: var(--ghost-bg);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--ghost-hover); }

/* Rabattcode zum Kopieren: Code groß wie ein Zitat, daneben ein runder Kopier-Button.
   Nach dem Klick steht dort kurz „Kopiert“ mit Haken. */
.code-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--x4);
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.code-value {
  font-size: var(--t-heading-md);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: .03em;
  overflow-wrap: anywhere;
}
.code-icon {
  position: relative;
  flex: none;
  width: var(--round-h);
  height: var(--round-h);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.code-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--copy) center / contain no-repeat;
  mask: var(--copy) center / contain no-repeat;
}
.code-btn:hover .code-icon,
.code-btn.is-copied .code-icon { background: var(--text); border-color: var(--text); color: var(--bg); }
.code-btn.is-copied .code-icon::before { -webkit-mask-image: var(--check); mask-image: var(--check); }

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

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--text);
  font-weight: 520;
  text-decoration: none;
}
.text-link::after {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform .4s var(--ease);
}
.text-link:hover::after { transform: translateX(4px); }

/* Runde Pfeil-Buttons mit feiner Linie */
.round-btn {
  position: relative;
  flex: none;
  width: var(--round-h);
  height: var(--round-h);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.round-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
.round-btn.prev::before { transform: scaleX(-1); }
.round-btn:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.round-btn:disabled,
.round-btn:disabled:hover { opacity: .32; cursor: default; background: transparent; border-color: var(--line-strong); color: var(--text); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
/* Wie bei BetterMe: Mit JavaScript liegt die Kopfzeile durchsichtig über dem Titelbild (helle Schrift,
   feine helle Linie) und wird hell, sobald der nächste Bereich unter ihr ankommt (site.js setzt .is-solid).
   Bei offenem Menü ist sie immer hell. Ohne JavaScript bleibt sie hell und schiebt den Hero nach unten.
   Beim Runterscrollen fährt sie nach oben weg, beim Hochscrollen kommt sie zurück (site.js setzt .is-hidden).
   Zeiten und Kurven von BetterMe: weg in 0,4 s, zurück in 0,55 s. */
.js .site-header {
  position: fixed;
  left: 0;
  right: 0;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.js .site-header.is-hidden {
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.65, 0, .35, 1), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.js.menu-open .site-header { transform: none; }
/* Über dem Titelbild: ohne Tönung wie bei BetterMe, das Bild läuft durch und nur die feine helle Linie trennt
   (Wunsch des Inhabers). Dahinter leicht weich gezeichnet (früherer Wunsch des Inhabers, BetterMe hat das nicht).
   Der Weichzeichner bleibt in jedem Zustand, damit er beim Wechsel zu hell nicht springt; deckend sieht man ihn nicht. */
.js .site-header { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.js:not(.menu-open) .site-header:not(.is-solid) { background: transparent; }
.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--w) + 2 * var(--gutter));
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Logo: nur das Atom, in der Schriftfarbe der Kopfzeile (über dem Foto weiß, auf hellem Grund Navy) */
.brand { display: inline-flex; flex: none; color: var(--text); transition: color .3s var(--ease); }
.brand-mark { display: block; width: 42px; height: 28px; }
.nav { display: none; }
.nav a,
.nav-login {
  color: var(--text);
  font-size: .9375rem;
  font-weight: 480;
  text-decoration: none;
  transition: opacity .3s var(--ease);
}
.nav a:hover,
.nav-login:hover { opacity: .6; }
/* Rechts wie bei BetterMe: Person + „Login“, daneben drei Striche + „Menü“, je 16 px Schrift und 20 px Symbol.
   Auf Smartphone und Tablet steht nur „Login“, „Academy“ bleibt für Screenreader im Linknamen. */
.bar-end { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-login { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: 1rem; }
.nav-login svg { flex: none; width: 20px; height: 20px; }
.nav-login-pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 480 1rem/1 var(--sans);
  cursor: pointer;
}
/* Drei gleich starke Striche. Abstand ganze 5 px, damit der Browser jeden Strich gleich auf die Pixel legt
   (bei halben Pixeln wirken sie unterschiedlich dick). Offen wird aus dem oberen und unteren ein X. */
.menu-lines { position: relative; width: 16px; height: 11.5px; margin-inline: 2px; }
.menu-lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-lines span:nth-child(1) { top: 0; }
.menu-lines span:nth-child(2) { top: 5px; }
.menu-lines span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-lines span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-lines span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Menü (Smartphone & Tablet) */
.menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* Buttons direkt unter der Liste, nicht unter der Safari-Leiste */
  gap: 32px;
  padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; }
.menu-nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: var(--t-heading-xs);   /* 20px: ruhige Liste statt Plakatschrift */
  font-weight: 480;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-decoration: none;
}
.menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.menu-foot .btn { width: 100%; }


/* ---------- Hero: großes Bild, Text unten ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100svh - var(--header-h)), 900px);
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in oklab, var(--ink), #fff 12%) 0%, var(--ink-hi) 50%, var(--ink) 100%);
}
/* Zwei Ebenen: hinten ein Tal in der Abenddämmerung (leicht weich gezeichnet), davor David freigestellt (WebP mit Alpha) */
.hero-portrait { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Smartphone und Tablet: eigenes Hochformat (hero-natur-hoch.webp): Ausschnitt um das Leuchten im Tal, das hinter
   Davids Kopf steht, darunter läuft das Wasser ins Dunkle aus (tools/bilder/natur-hero.py).
   Die Felsen stehen frei unter der Kopfzeile; erst beim Scrollen gleiten sie darunter und werden weich.
   Oben geht der Himmel weich in den Grund des Heros über. */
.hero-portrait .hero-sky {
  top: calc(var(--header-h) - 22px);
  bottom: auto;
  height: auto;
  aspect-ratio: 1170 / 2632;
  object-position: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 3%, #000 94%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 3%, #000 94%, transparent 100%);
}
.hero-david { object-position: 50% 12%; }
/* Das Hero-Foto setzt sich nach dem Laden mit einem leichten Zoom (104 % auf 100 %). Bewusst ohne Einblenden über die
   Deckkraft: Sonst zählt Google das Bild erst am Ende der Einblendung als geladen (LCP 2,4 statt 0,15 s gemessen). */
.js .hero-portrait img {
  transform: scale(1.04);
  transition: transform 2.2s var(--ease);
}
.hero-loaded .hero-portrait img { transform: none; }
/* Abdunkelung unten für den Text, in --ink (BetterMe: Schoko), damit sich der Hero vom Seitengrund abhebt.
   Seit dem kürzeren Text beginnt sie tiefer und ist leichter, damit David weniger verdeckt wird (Wunsch des Inhabers). */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(var(--ink-rgb) / 0) 52%, rgb(var(--ink-rgb) / .4) 70%, rgb(var(--ink-rgb) / .72) 100%);
}
/* Tablet: der Titel steht dort über Davids Oberkörper, deshalb beginnt die Abdunkelung früher */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero::after { background: linear-gradient(180deg, rgb(var(--ink-rgb) / 0) 42%, rgb(var(--ink-rgb) / .5) 64%, rgb(var(--ink-rgb) / .92) 100%); }
}
/* Mit JavaScript liegt die Kopfzeile über dem Bild: der Hero füllt den ganzen Bildschirm */
.js .hero { min-height: 100svh; }
.hero-copy { position: relative; padding-block: 160px 32px; text-align: center; }
/* Smartphone und Tablet: unten leicht weich gezeichnet, von knapp über der Überschrift bis zum Rand (Wunsch des
   Inhabers). Liegt unter dem Text und unter der Abdunkelung (.hero::after) und reicht über die ganze Breite. */
@media (max-width: 1023px) {
  .hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 112px calc(50% - 50vw) 0;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 64px);
    mask-image: linear-gradient(180deg, transparent 0, #000 64px);
    pointer-events: none;
  }
}
.hero h1 { color: var(--ivory); }
.hero-lead {
  max-width: 34rem;
  margin: 18px auto 0;
  color: var(--ivory);
  font-size: var(--t-body-ml);
}
.hero-foot { display: flex; flex-direction: column; align-items: center; }
.hero .actions { justify-content: center; margin: 28px 0 20px; }
/* Button wie bei BetterMe deckend in Elfenbein mit dunkler Schrift (Werte aus .on-dark); kein eigener Stil nötig */
.hero-meta { color: var(--ivory); font-size: .9375rem; }   /* alles im Hero in Weiß (Wunsch des Inhabers) */

/* ---------- Karussell (Themen, Feedback, Angebote, Partner) ---------- */
.carousel { container-type: inline-size; }
.carousel-track {
  --cw: 100vw;
  --edge: max(var(--gutter), calc((var(--cw) - var(--w)) / 2));
  --content: calc(var(--cw) - 2 * var(--edge));
  --card: calc(var(--cw) - 64px);
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  padding: 4px 0 var(--x6) var(--edge);
  scrollbar-width: none;
}
@supports (container-type: inline-size) {
  .carousel-track { --cw: 100cqi; }
}
.carousel-track::-webkit-scrollbar { display: none; }
/* Abstand nach der letzten Karte (Innenabstand am Ende ignorieren manche Browser) */
.carousel-track::after { content: ""; flex: 0 0 calc(var(--edge) - var(--gap)); }
.carousel-track > * { flex: 0 0 var(--card); scroll-snap-align: start; }
.carousel-track:focus-visible { outline-offset: -2px; border-radius: 0; }

.carousel-nav { display: none; gap: 8px; flex: none; }

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 0 auto;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--soft-bg);
}
.carousel-dots button {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--dot);
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.carousel-dots button::after { content: ""; position: absolute; inset: -14px -5px; }
.carousel-dots button:hover { background: var(--line-strong); }
.carousel-dots button[aria-current="true"] { background: var(--text); }

/* ---------- Bildkarten ---------- */
.media-card {
  --tall: 1.5;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(var(--card) * var(--tall));
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--text);
}
.media-card > img,
.media-card picture { position: absolute; inset: 0; z-index: -2; }
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Zwei schwache Verläufe wie bei BetterMe (dort in Braun, hier in Navy), keine weitere Tönung */
  background:
    linear-gradient(180deg, rgb(var(--ink-rgb) / 0) 50%, rgb(var(--ink-rgb) / .6) 100%),
    linear-gradient(180deg, rgb(var(--ink-rgb) / 0) 54.17%, rgb(var(--ink-rgb) / .3) 100%);
}
.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(var(--ivory-rgb) / .08);
  pointer-events: none;
}
/* Standard für alle Bildkarten (Vorgabe des Inhabers), 1 : 1 wie BetterMes „Ecosystem“-Karten: unten eine feine
   helle Linie als leichte Trennung, darunter der Text linksbündig und ein durchscheinender Button über die ganze
   Breite. Keine Tönung im Textbereich, das Bild kommt durch. BetterMe hat den Blur ins Foto gerechnet; hier macht ihn
   CSS, damit er mit jedem neuen Foto funktioniert. Neue Bildkarten einfach als .media-card bauen. */
.card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;   /* Titel immer direkt unter der Linie, auch wenn eine Karte weniger Text hat */
  gap: var(--x6);
  min-height: var(--body-h, 0);
  padding: var(--x6);
  border-top: 1px solid rgb(var(--ivory-rgb) / .12);
  text-align: left;
}
/* Weicher, zunehmender Blur wie in BetterMes Fotos: beginnt schon über der Linie, wird nach unten stärker */
.card-body::before,
.card-body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.card-body::before {
  top: calc(-1 * var(--x12));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--x12));
  mask-image: linear-gradient(180deg, transparent 0, #000 var(--x12));
}
.card-body::after {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(2 * var(--x12)));
  mask-image: linear-gradient(180deg, transparent 0, #000 calc(2 * var(--x12)));
}
/* Button wie bei BetterMe ohne eigenen Weichzeichner: das Bild darunter ist schon weich, so bleibt er leicht */
.card-btn {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.card-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--x2); }
.card-text h3 { font-size: var(--t-heading-md); }
.card-text p { margin: 0; color: rgb(var(--ivory-rgb) / .8); font-size: var(--t-body-sm); line-height: 1.4; }
.card-text .card-label {
  color: rgb(var(--ivory-rgb) / .88);
  font-size: var(--t-label);
  font-weight: 450;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.card-text .card-price { margin-top: var(--x2); color: var(--ivory); font-size: var(--t-body); font-weight: 520; }

/* ---------- Themen ---------- */
/* Helle Bereiche wechseln wie bei BetterMe zwischen --bg (ivory-50) und --bg-2 (ivory-100); nach einer dunklen
   Bildfläche beginnt es wieder mit --bg: Themen weiß, Coaching grau, (Über David), Feedback weiß, Wissen grau,
   Kooperationen weiß. */
.programs { padding-block: var(--space); background: var(--bg); }
.goal-track .media-card { --tall: 1.4724; }   /* 326 : 480 wie BetterMe */

/* ---------- Coaching: aufklappbare Schritte wie BetterMes „Everything you need in one place“ ----------
   Zeile: Nummer und Titel, rechts ein kleiner runder Pfeil (--step-arrow). Ein Klick öffnet den Text weich (Höhe über
   grid-template-rows, Text blendet mit leichtem Weichzeichner ein wie bei BetterMe), das Bild wechselt mit.
   Ohne JavaScript sind alle Texte offen. Smartphone und Tablet: Überschrift, Bild, Liste untereinander. */
.coaching { padding-block: var(--space); background: var(--bg-2); }
.steps { display: grid; gap: var(--x8); }
.steps-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 887 / 760;
  border-radius: var(--radius);
  background: rgb(var(--ink-rgb) / .08);
}
/* Ein Schritt = Foto mit Glas-Display darüber (.step-scene); site.js schaltet .is-on */
.step-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  /* Das alte Bild bleibt stehen, bis das neue darüber eingeblendet ist */
  transition: opacity 0s linear .5s, visibility 0s linear .5s;
}
.step-scene.is-on {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity .5s cubic-bezier(.33, 1, .68, 1);
}
.steps-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.steps-list {
  --num-w: 40px;
  --step-arrow: 36px;   /* kleiner als die übrigen runden Buttons (Wunsch des Inhabers) */
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .steps-list { --step-arrow: calc(36 * var(--s)); }
}
.step { padding-block: var(--x6); box-shadow: inset 0 -1px 0 var(--line); }
.step:first-child { padding-top: 0; }
.step:last-child { padding-bottom: 0; box-shadow: none; }
.step h3 { font-size: var(--t-heading-md); }
.step-btn {
  display: flex;
  align-items: flex-start;
  gap: var(--x6);
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.step-title {
  display: flex;
  flex: 1;
  align-items: flex-start;
  min-width: 0;
  /* Titel und Pfeil stehen mittig zueinander, egal welches von beiden höher ist */
  padding-top: max(0px, calc((var(--step-arrow) - 1.1em) / 2));
}
.step-num {
  flex: none;
  width: var(--num-w);
  color: var(--label);
  font-size: var(--t-label);
  font-weight: 450;
  /* So hoch wie die Titelzeile: Die kleine Zahl steht in deren Mitte, auf einer Ebene mit dem Titel */
  line-height: calc(var(--t-heading-md) * 1.1);
  letter-spacing: .08em;
}
.step-arrow {
  position: relative;
  flex: none;
  width: var(--step-arrow);
  height: var(--step-arrow);
  margin-top: max(0px, calc((1.1em - var(--step-arrow)) / 2));
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.step-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44%;
  height: 44%;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transform: rotate(90deg);   /* Pfeil zeigt nach unten (Wunsch des Inhabers) */
}
/* Offen oder unter der Maus: Pfeil gefüllt wie bei BetterMe */
.step.is-open .step-arrow { border-color: transparent; background: var(--text); color: var(--bg); }
@media (hover: hover) {
  .step-btn:hover .step-arrow { border-color: transparent; background: var(--text); color: var(--bg); }
}
.step-panel {
  display: grid;
  grid-template-rows: 1fr;
  margin-inline: var(--num-w) calc(var(--step-arrow) + var(--x6));
  transition: grid-template-rows .45s cubic-bezier(.33, 1, .68, 1);
}
.step-panel > div { min-height: 0; overflow: hidden; }
.step-panel p {
  margin: 0;
  padding: var(--x4) var(--x2) 0 0;
  color: var(--text-2);
  font-size: var(--t-body-ml);
  line-height: 1.4;
  /* Öffnen: kurz verzögert, weich und ohne Unschärfe einblenden; Schließen schneller */
  transition: opacity .5s cubic-bezier(.33, 1, .68, 1) .14s, translate .5s cubic-bezier(.33, 1, .68, 1) .14s, filter .5s cubic-bezier(.33, 1, .68, 1) .14s;
}
.js .step:not(.is-open) .step-panel { grid-template-rows: 0fr; }
.js .step:not(.is-open) .step-panel p {
  opacity: 0;
  translate: 0 8px;
  filter: blur(4px);
  transition-duration: .2s;
  transition-delay: 0s;
}
html:not(.js) .step-arrow { display: none; }
/* Desktop mit Maus öffnet per Überfahren (site.js): alle Texte so hoch wie der längste, damit die Liste nicht springt.
   Sind alle zu, hält ein unsichtbarer Innenabstand unter der Liste den Platz eines offenen Textes frei; er schrumpft
   im selben Takt, in dem ein Text aufgeht. So ändert sich die Höhe des Bereichs nie und nichts darunter rutscht. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .step-panel p { box-sizing: border-box; min-height: var(--step-desc-h, 0px); }
  .js .steps-list { transition: padding-bottom .45s cubic-bezier(.33,1,.68,1); }
  .js .steps:not(.has-open) .steps-list { padding-bottom: var(--step-desc-h, 0px); }
}
/* Smartphone und ohne Pfeile: Text bis zum rechten Rand, sonst werden die Zeilen sehr kurz */
html:not(.js) .step-panel { margin-right: 0; }
@media (max-width: 767px) {
  .step-panel { margin-right: 0; }
}

/* ---------- Glas-Displays über den Coaching-Bildern (Wunsch des Inhabers, Dezember 2026) ----------
   Wie die Tracking-Anzeigen bei BetterMe: eine Karte aus Milchglas mit Werten einer App, Beispielwerte, für
   Screenreader ausgeblendet. Helle Fotos bekommen helles Glas mit Navy-Schrift, dunkle Fotos (.on-dark) dunkles Glas
   mit Elfenbein-Schrift; Akzent in --accent-text. Alles in em: Die Schriftgröße der Karte wächst mit der Breite des
   Bildes (Container-Einheit cqw), so behält das Display auf jedem Gerät dieselbe Größe im Verhältnis zum Foto
   (Smartphone etwa 46 %, Desktop etwa 35 % der Bildbreite). Ohne cqw gelten 14 px.
   Wird ein Schritt gezeigt, steigt die Karte 0,25 s nach dem Bild leicht auf, Ring, Linie und Balken laufen voll. */
.steps-media { container-type: inline-size; }
.stat-card {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 14em;
  padding: 1em;
  border: 1px solid rgb(var(--ivory-rgb) / .5);
  border-radius: 1.15em;
  background: rgb(var(--ivory-rgb) / .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 .75em 2.25em rgb(var(--deep-rgb) / .16);
  color: var(--text);
  font-size: 14px;
  font-size: calc(6px + 1.55cqw);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: 0;
  transition: opacity .6s var(--ease) .25s, translate .6s var(--ease) .25s;
}
.stat-card.on-dark {
  border-color: rgb(var(--ivory-rgb) / .16);
  background: rgb(var(--deep-rgb) / .42);
  box-shadow: 0 .75em 2.25em rgb(var(--deep-rgb) / .3);
}
.stat-card.is-left { left: 5%; }
.stat-card.is-right { right: 5%; }
.stat-card.is-top { top: 7%; }
/* Ausgeblendet: Schritt nicht gezeigt oder Bereich noch nicht im Bild (nur mit JavaScript, site.js setzt .is-seen) */
.step-scene:not(.is-on) .stat-card,
.js .steps-media:not(.is-seen) .stat-card {
  opacity: 0;
  translate: 0 .75em;
  transition: opacity .2s linear, translate 0s linear .2s;
}

.stat-head {
  display: flex;
  align-items: center;
  gap: .45em;
  margin-bottom: .85em;
  font-size: .86em;
  font-weight: 600;
}
.stat-when { margin-left: auto; color: var(--text-3); font-weight: 450; }
.stat-icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-sub { display: block; color: var(--text-3); font-size: .74em; }
.stat-value { display: block; font-size: 1.6em; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.stat-unit { margin-left: .12em; font-size: .55em; font-weight: 500; }
.stat-num { display: block; margin-top: .2em; font-size: .98em; font-weight: 600; }

/* Ring (Schlaf, Schritte): Wert links daneben */
.stat-main { display: flex; align-items: center; gap: .8em; margin-bottom: .85em; }
.stat-main .stat-value { margin-bottom: .2em; }
.stat-ring { flex: none; width: 4.4em; height: 4.4em; }
.stat-ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: var(--line); }
.ring-value {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s var(--ease) .45s;
}
.stat-ring.is-accent .ring-value { stroke: var(--accent-text); }

/* Kacheln unten */
.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.stat-tile {
  display: block;
  padding: .6em .7em;
  border-radius: .7em;
  background: var(--soft-bg);
}
.stat-tile.is-row { display: flex; align-items: center; gap: .6em; }
.stat-tile.is-row:not(:last-child) { margin-bottom: .85em; }
.stat-tile.is-row .stat-icon { width: 1.4em; height: 1.4em; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: .5em; margin-bottom: .2em; }
.stat-chip {
  padding: .35em .65em;
  border-radius: 2em;
  background: var(--soft-bg);
  font-size: .7em;
  font-weight: 500;
  white-space: nowrap;
}
.stat-dot {
  display: inline-block;
  width: .5em;
  height: .5em;
  margin-right: .35em;
  border-radius: 50%;
  background: var(--accent-text);
  vertical-align: .08em;
}

/* Wochenleiste (Plan): erledigt gefüllt mit Haken, heute im Akzent, geplant mit Ring, Ruhetage leise */
.stat-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .2em;
  margin-bottom: .85em;
  color: var(--text-3);
  font-size: .7em;
  text-align: center;
}
.stat-week span::after {
  content: "";
  display: block;
  width: 1.9em;
  height: 1.9em;
  margin: .45em auto 0;
  box-sizing: border-box;
  border-radius: 50%;
  background: currentColor;
  -webkit-mask: radial-gradient(circle, #000 .16em, transparent .2em);
  mask: radial-gradient(circle, #000 .16em, transparent .2em);
  opacity: .6;
}
.stat-week .is-planned::after { border: .14em solid var(--text); background: none; -webkit-mask: none; mask: none; opacity: 1; }
/* Haken aus dem gefüllten Kreis ausgestanzt, das Glas scheint durch */
.stat-week .is-done::after {
  background: var(--text);
  -webkit-mask: var(--check) center / 62% no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: var(--check) center / 62% no-repeat exclude, linear-gradient(#000 0 0);
  opacity: 1;
}
.stat-week .is-today { color: var(--text); font-weight: 600; }
.stat-week .is-today::after { background: var(--accent-text); -webkit-mask: none; mask: none; opacity: 1; }

/* Balken (Protein): 118 von 150 g */
.stat-bar { display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: .45em; }
.stat-track {
  flex: 0 0 100%;
  height: .45em;
  overflow: hidden;
  border-radius: 1em;
  background: var(--line);
}
.stat-fill {
  display: block;
  width: 79%;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  transform-origin: left;
  transition: scale 1.2s var(--ease) .45s;
}

/* Beispielwerte im Labor-Display */
.stat-lab-marker { margin-top: .65em; }
.stat-range { flex: 0 0 100%; width: 100%; height: .65em; }
.stat-range-track { fill: var(--line); }
.stat-range-band { fill: var(--accent-text); opacity: .6; }
.stat-range-point { fill: var(--text); }

/* Linie über acht Wochen (Kraft) */
.stat-chart { display: block; width: 100%; height: auto; aspect-ratio: 120 / 34; margin: .7em 0 .85em; overflow: visible; }
.chart-line {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100 200;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease) .45s;
}
.chart-area { fill: var(--soft-bg); transition: opacity .8s linear .8s; }
.chart-dot { fill: var(--accent-text); transition: opacity .3s linear 1.5s; }

/* Zurückgesetzt, solange ausgeblendet: Beim nächsten Zeigen laufen Ring, Linie und Balken wieder voll */
.step-scene:not(.is-on) .ring-value,
.js .steps-media:not(.is-seen) .ring-value,
.step-scene:not(.is-on) .chart-line,
.js .steps-media:not(.is-seen) .chart-line { stroke-dashoffset: 100; transition: stroke-dashoffset 0s linear .5s; }
.step-scene:not(.is-on) .stat-fill,
.js .steps-media:not(.is-seen) .stat-fill { scale: 0 1; transition: scale 0s linear .5s; }
.step-scene:not(.is-on) .chart-area,
.js .steps-media:not(.is-seen) .chart-area,
.step-scene:not(.is-on) .chart-dot,
.js .steps-media:not(.is-seen) .chart-dot { opacity: 0; transition: opacity 0s linear .5s; }

/* ---------- Kooperationen: Karten mit feiner Linie wie die Presse-Leiste bei BetterMe ---------- */
.partners { padding-block: var(--space); background: var(--bg); }
.partner-track { --card: min(calc(var(--cw) - 64px), 320px); }
/* Wie BetterMes Auszeichnungskarten: Elfenbein-100 ohne Rahmen. Die Logos sind freigestellt
   und stehen in ihren Markenfarben auf dem hellen Grund. */
.partner-card {
  position: relative;   /* hält die unsichtbaren Screenreader-Texte in der Karte */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: calc(var(--card) * .9);
  padding: var(--x8) var(--x8) var(--x6);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
}
/* Gleich hohe Logo-Zeile, damit Label und Code auf allen Karten auf einer Linie stehen */
.partner-name { display: flex; align-items: center; align-self: stretch; height: calc(var(--logo-h) * 1.5); margin: 0; line-height: 1; }
/* Logos in ihren Markenfarben. --h: Höhe im Verhältnis zu den anderen (zweizeilige Logos etwas größer).
   Sehr breite Schriftzüge werden auf sechs Logohöhen begrenzt. */
.partner-card { --logo-h: 28px; }
.partner-logo {
  display: block;
  width: auto;
  height: calc(var(--logo-h) * var(--h, 1));
  max-width: min(100%, calc(var(--logo-h) * 6));
  object-fit: contain;
  object-position: left center;
}
.partner-wordmark { font-size: var(--t-heading-xs); font-weight: 600; line-height: 1.2; }   /* Name, solange ein Logo fehlt */
.partner-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--x2);
  max-width: 100%;
  margin: var(--x12) 0 var(--x8);
}
.partner-label { margin: 0; color: var(--text-3); font-size: var(--t-body-sm); }
.partner-hint { max-width: 22rem; margin: var(--x2) 0 0; color: var(--text-3); font-size: var(--t-body-sm); line-height: 1.4; }
.partner-text { margin: 0; font-size: var(--t-heading-md); font-weight: 480; line-height: 1.15; letter-spacing: -.01em; }
.partner-text.is-soon { color: var(--text-3); }
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: var(--x2);
  margin: auto 0 0;
  color: var(--text-2);
  font-size: var(--t-label);
  font-weight: 520;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
a.partner-link::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform .4s var(--ease);
}
a.partner-link:hover { color: var(--text); }
a.partner-link:hover::after { transform: translateX(4px); }
.partner-link.is-soon { color: var(--text-3); }

/* ---------- Über David: Glasfläche über dem Bild ---------- */
.about {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(640px, 56vw, 1000px);
  padding-block: 120px;   /* oben und unten gleich: die Glaskarte sitzt mittig im Foto */
  overflow: hidden;
  background: var(--deep);
}
.about-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 35%;   /* etwas mehr oben: Turmspitzen bleiben im Bild */
}
.about::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(var(--deep-rgb) / .05) 0%, rgb(var(--deep-rgb) / .45) 100%);
}
/* David vor der Skyline: über dem Abdunkeln (::after), unter der Glaskarte, die ihn weich zeichnet, wo sie ihn überdeckt.
   Smartphone und Tablet: mittig über der Karte; die Karte beginnt bei 45 % seiner Bildhöhe (Kopf und Schultern frei).
   Desktop: unten bündig, 88 % der Bereichshöhe (höchstens 52vw), mittig zwischen Karte und Zahlen (Wunsch des
   Inhabers); die Hände bleiben außerhalb der Karte, sonst färbt die Haut das Glas rosa. */
.about {
  --david-w: min(88vw, 460px);
  --david-top: 32px;
}
.about-david {
  position: absolute;
  z-index: 0;
  top: var(--david-top);
  left: calc(var(--gutter) + min(100% - 2 * var(--gutter), var(--glass-w)) / 2);
  width: var(--david-w);
  height: auto;
  translate: -50% 0;
  pointer-events: none;
}
@media (max-width: 1023px) {
  .about { padding-top: calc(var(--david-top) + .45 * 1680 / 1180 * var(--david-w)); }
  /* Unter der Karte blendet David aus: Seine Hände färbten das Glas sonst rosa */
  .about-david {
    -webkit-mask-image: linear-gradient(180deg, #000 44%, transparent 54%);
    mask-image: linear-gradient(180deg, #000 44%, transparent 54%);
  }
  /* Die Etihad Towers stehen links und rechts hinter Davids Kopf (Wunsch des Inhabers) */
  .about-bg { object-position: 78% 0; }
}
/* Smartphone: eigenes Hochformat (skyline-abudhabi-hoch.webp): oben die Türme, das Wasser läuft lang nach unten
   bis zum Ende des Bereichs (Wunsch des Inhabers), oben bündig */
@media (max-width: 767px) {
  .about-bg { object-position: 50% 0; }
}
.glass {
  position: relative;
  max-width: var(--glass-w);
  padding: clamp(24px, 3.4vw, 52px);
  border: 1px solid rgb(var(--ivory-rgb) / .14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(var(--ink-rgb) / .5), rgb(var(--deep-rgb) / .62));
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
}
.glass h2 { margin-bottom: 24px; }
.glass p { color: var(--text-2); }
.facts { margin: 28px 0 0; }
.facts div {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.facts div:last-child { padding-bottom: 0; }
.facts dt {
  min-width: 5.4ch;
  color: var(--text);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-weight: 520;
  line-height: 1;
  letter-spacing: -.03em;
}
[data-count] { display: inline-block; }   /* site.js reserviert die Breite der Endzahl: beim Hochzählen springt nichts */
.facts dt small { margin-right: .2em; color: var(--text-2); font-size: .42em; font-weight: 480; letter-spacing: 0; }
.facts dd { margin: 0; color: var(--text-2); }

/* Desktop (Wunsch des Inhabers, Dezember 2026): Die Zahlen stehen ohne Kasten groß rechts im Foto, leicht versetzt
   wie zufällig gesetzt (die mittlere weiter links), die Bezeichnung klein darunter. Sie bleiben im HTML in der
   Glaskarte (Reihenfolge für Screenreader, ohne JavaScript); die Karte ist hier ihr Bezug (position: relative),
   die Breite reicht bis zum rechten Rand des Inhalts (.about .wrap ist Container, 100cqw = Inhaltsbreite), davor
   24 bis 80 px Abstand.
   Ein weicher dunkler Schein hinter der Schrift hält sie auf hellen Stellen des Fotos lesbar.
   Beim Hereinscrollen steigen sie nacheinander auf (0,15 s versetzt) und zählen hoch (site.js setzt .is-waiting und
   nimmt es dann weg; ohne JavaScript oder bei „Bewegung reduzieren“ stehen sie gleich da). */
@media (min-width: 1024px) {
  .about .wrap { container-type: inline-size; }
  /* Karte auf schmalen Desktops höchstens 44 % breit, damit David und die Zahlen daneben Platz haben */
  .about .glass { max-width: min(var(--glass-w), 44%); }
  /* Davids Mitte liegt 30 % des Wegs vom rechten Kartenrand zum rechten Inhaltsrand: mittig zwischen Karte und Zahlen */
  .about-david {
    --wrap-l: max(var(--gutter), (100% - var(--w)) / 2);
    --wrap-w: min(100% - 2 * var(--gutter), var(--w));
    --card-w: min(var(--glass-w), .44 * var(--wrap-w));
    top: auto;
    bottom: 0;
    left: calc(var(--wrap-l) + .7 * var(--card-w) + .3 * var(--wrap-w));
    width: auto;
    height: min(88%, 52vw);
    translate: -50% 0;
  }
  .facts {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% + var(--x12));
    box-sizing: border-box;
    width: calc(100cqw - 100% - var(--x12));
    margin: 0;
    padding-right: clamp(24px, calc(24px + 56 * var(--p)), 80px);   /* Abstand zum rechten Rand (Wunsch des Inhabers) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(20px, calc(20px + 28 * var(--p)), 48px);
  }
  .facts div {
    display: block;
    padding: 0;
    border: 0;
    text-align: right;
    text-shadow: 0 0 .5em rgb(var(--deep-rgb) / .55), 0 0 1.5em rgb(var(--deep-rgb) / .35);
    transition: opacity 1s var(--ease), translate 1s var(--ease), filter 1s var(--ease);
  }
  .facts div:nth-child(2) { margin-right: 10%; transition-delay: .15s; }
  .facts div:nth-child(3) { margin-right: 3%; transition-delay: .3s; }
  .facts dt {
    min-width: 0;
    font-size: clamp(64px, calc(64px + 64 * var(--p)), 128px);
    font-weight: 300;
    letter-spacing: -.045em;
  }
  /* „Über 500“ steht hier als „500+“: Das kleine „Über“ ragte sonst nach links in David hinein.
     Screenreader lesen weiter „Über 500“ (das Plus hat einen leeren Alternativtext). */
  .facts dt small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .facts .is-over::after { content: "+"; content: "+" / ""; margin-left: .04em; font-size: .6em; vertical-align: .55em; }
  .facts dd {
    margin-top: .5em;
    color: var(--text);
    font-size: var(--t-label);
    font-weight: 450;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .facts.is-waiting div { opacity: 0; translate: 0 24px; filter: blur(6px); }
}

/* ---------- Feedback: Ausschnitte aus Nachrichten an David als Chatblasen, je Thema eine Karte ---------- */
.feedback { padding-block: var(--space); background: var(--bg); }
/* Hellgraue Karte wie ein Chatverlauf, oben das Thema als Pille, darunter die Nachrichten */
.chat-card {
  display: flex;
  flex-direction: column;
  gap: var(--x5);
  padding: var(--x6) var(--x6) var(--x8);
  border-radius: var(--radius);
  background: var(--bg-2);
}
/* Atom aus dem Logo über jeder Karte, wie das Emblem bei BetterMe, aber ohne Kranz (Wunsch des Inhabers).
   Als Maske in --text gefärbt, damit es dem Navy des Logos entspricht und auch im Dark Mode passt */
.chat-mark {
  display: block;
  width: 64px;
  aspect-ratio: 776 / 520;
  margin: var(--x2) auto var(--x2);
  background: var(--text);
  -webkit-mask: url("media/atom-navy.svg") center / contain no-repeat;
  mask: url("media/atom-navy.svg") center / contain no-repeat;
}
.chat-topic {
  display: flex;
  justify-content: center;
  margin-bottom: var(--x2);
  font-size: var(--t-label);
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: .02em;
}
.chat-topic span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(var(--ink-rgb) / .06);
  color: var(--label);
}
.chat-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--x2);
  margin: 0;
}
/* Eingehende Nachricht: helle Blase, unten links die kleine Ecke wie in Messengern */
.chat-msg blockquote {
  max-width: 92%;
  margin: 0;
  padding: 14px 18px;
  border-radius: 20px 20px 20px 6px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / .06), 0 4px 16px rgb(var(--ink-rgb) / .05);
}
.chat-msg p { margin: 0; color: var(--text); font-size: var(--t-body); line-height: 1.45; }
.chat-msg figcaption { padding-left: 6px; color: var(--label); font-size: var(--t-body-sm); line-height: 1.4; }
.eco-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--x2) var(--x6); margin-top: var(--x6); margin-bottom: 0; color: var(--text-3); font-size: .875rem; }
.eco-note .text-link { color: var(--text); font-size: var(--t-body); }

/* ---------- Mehr von Element 6 ---------- */
.ecosystem { padding-block: var(--space); background: var(--bg-2); }
/* Bildkarten im Standard (siehe Bildkarten), Hochformat 326 : 480 wie BetterMe */
.eco-track .media-card { --tall: 1.4724; }

/* ---------- Fußzeile mit Karte ---------- */
.site-footer {
  position: relative;
  padding-block: clamp(48px, 6vw, 96px) 28px;
  background: var(--footer-bg);
}
.footer-grid { display: grid; gap: clamp(32px, 4vw, 72px); }
.footer-content { min-width: 0; display: flex; flex-direction: column; }
.promo {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink), var(--deep));
}
.promo-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}
.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(var(--deep-rgb) / 0) 30%, rgb(var(--deep-rgb) / .62) 60%, rgb(var(--deep-rgb) / .92) 100%);
}
.promo-body { padding: clamp(22px, 2.3vw, 36px); }
.promo-quote { margin-bottom: 24px; }
.promo blockquote { margin: 0; }
.promo blockquote p {
  margin: 0 0 12px;
  color: var(--ivory);
  font-size: var(--t-heading-md);
  font-weight: 480;
  line-height: 1.18;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.promo figcaption {
  color: var(--label);
  font-size: var(--t-label);
  font-weight: 450;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
  align-content: start;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col .label { margin-bottom: 6px; color: var(--text-3); }
.footer-col a {
  color: var(--text-2);
  font-size: var(--t-body);
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--text); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgb(var(--ivory-rgb) / .09);
  color: var(--text);
}
a.footer-social-icon:hover,
a.footer-social-icon:focus-visible { background: rgb(var(--ivory-rgb) / .18); }
span.footer-social-icon { color: var(--text-3); }
.footer-social-icon svg { width: 22px; height: 22px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-bottom { margin-top: clamp(28px, 4vw, 56px); }
.footer-note {
  flex: 1 1 24rem;
  max-width: 58ch;
  margin: 0;
  color: var(--text-2);
}
/* Fehlende Bilder: ruhige Fläche statt kaputtem Symbol */
img.is-missing { background: linear-gradient(160deg, var(--ink-hi), var(--deep)); }

/* ---------- Bewegung beim Scrollen (wie BetterMe) ----------
   Texte stehen still. Auf dem Desktop setzen sich Fotos beim Hereinscrollen von 110 % auf 100 %,
   gekoppelt an die Scrollposition. Reines CSS (Scroll-Zeitleiste); Browser ohne Unterstützung zeigen
   die Bilder einfach ruhig. Die Zeitleiste hängt am Behälter außerhalb der Karussellspur, weil die Spur
   selbst seitlich scrollt. */
@keyframes settle {
  from { transform: scale(1.1); }
  to { transform: none; }
}

/* ==========================================================================
   Ab Tablet
   ========================================================================== */
@media (min-width: 600px) {
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .steps-media { aspect-ratio: 16 / 10; }
}

@media (min-width: 768px) {
  /* Kopfzeile wächst mit wie bei BetterMe (bei 834 px: 17,4 px Schrift, 22 px Symbole) */
  .nav-login,
  .menu-toggle { font-size: calc(16 * var(--s)); }
  .nav-login svg { width: calc(20 * var(--s)); height: calc(20 * var(--s)); }
  .nav-login { gap: calc(8 * var(--s)); }
  .menu-toggle { gap: calc(8 * var(--s)); }
  .bar-end { gap: calc(32 * var(--s)); }

  /* Tablet: Karten 400 Einheiten breit, 400 : 589 wie BetterMe */
  .goal-track,
  .eco-track,
  .chat-track { --card: calc(400 * var(--s)); }
  .chat-mark { width: calc(64 * var(--s)); }
  .partner-track { --card: calc(320 * var(--s)); }
  .partner-card { --logo-h: calc(28 * var(--s)); }
  .section-head { margin-bottom: var(--x12); }
  .section-head .label { margin-bottom: var(--x8); }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 1024px) {
  .menu, .menu-toggle { display: none !important; }
  .brand-mark { width: 60px; height: 40px; }
  .nav { display: flex; gap: clamp(20px, 2.4vw, 40px); margin-inline: auto; }
  .bar-end { margin-left: 0; gap: 24px; }
  .nav-login { gap: 8px; font-size: .9375rem; }
  .nav-login svg { width: 20px; height: 20px; }
  .nav-login-pre { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }

  /* Hero: bleibt stehen, die nächsten Bereiche schieben sich darüber */
  .hero {
    position: sticky;
    top: var(--header-h);
    z-index: 0;
    min-height: max(600px, calc(100svh - var(--header-h)));
  }
  .js .hero { top: 0; min-height: max(600px, 100svh); }
  main > section:not(.hero),
  .site-footer { position: relative; z-index: 1; }
  /* Bild über die ganze Breite, das Leuchten zwischen Text und David, David rechts */
  .hero-portrait .hero-sky {
    top: 0;
    bottom: 0;
    height: 100%;
    aspect-ratio: auto;
    object-position: 50% 40%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-portrait .hero-david { left: auto; width: min(58%, 1000px); object-position: 50% 10%; }
  /* Davids Hose und Beine weich wie auf dem Smartphone (Wunsch des Inhabers): Eine Schicht im Bild zeichnet alles ab
     knapp über dem Hosenbund weich, über die ganze Breite. Die Höhe folgt Davids Bild: Bund bei 60 % der Bildhöhe,
     Bild 58 % breit (höchstens 1000 px, Seitenverhältnis 1414 : 2000), oben 10 % angeschnitten, also liegt der Bund
     bei 0,707 × Bildbreite + 10 % der Höhe. Weich einsetzend ab 72 px darüber. */
  .hero-portrait::after {
    content: "";
    position: absolute;
    inset: calc(.707 * min(58vw, 1000px) + 10% - 72px) 0 0;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 96px);
    mask-image: linear-gradient(180deg, transparent 0, #000 96px);
    pointer-events: none;
  }
  /* Links abdunkeln, damit der Text über dem Bild lesbar bleibt, unten leicht */
  .hero::after {
    background:
      linear-gradient(90deg, rgb(var(--ink-rgb) / .82) 0%, rgb(var(--ink-rgb) / .5) 38%, rgb(var(--ink-rgb) / 0) 62%),
      linear-gradient(180deg, rgb(var(--ink-rgb) / 0) 60%, rgb(var(--ink-rgb) / .3) 100%);
  }
  /* Beim Scrollen wird der stehende Hero unscharf, während sich der nächste Bereich darüberschiebt (wie BetterMe).
     site.js setzt --hero-blur (0 bis 1). */
  .hero-portrait,
  .hero-copy { filter: blur(calc(var(--hero-blur, 0) * 22px)); }
  /* Das Foto wächst dabei leicht, damit die weichen Ränder außerhalb des Bildausschnitts liegen */
  .hero-portrait { transform: scale(calc(1 + var(--hero-blur, 0) * .1)); }
  .hero.is-blurring .hero-portrait { will-change: filter, transform; }
  .hero.is-blurring .hero-copy { will-change: filter; }
  /* Wie bei BetterMe: Text unten links, darunter eine feine Linie über die ganze Breite,
     links die Buttons, rechts der kleine Hinweis */
  .hero-copy { padding-block: 160px clamp(36px, calc(36px + 28 * var(--p)), 64px); text-align: left; }
  .hero-copy > :not(.hero-foot) { max-width: min(42rem, 52%); }
  .hero-lead { margin-left: 0; }
  .hero-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: var(--x8);
    margin-top: var(--x12);
    padding-top: clamp(35px, calc(35px + 28 * var(--p)), 63px);
  }
  /* Feine Linie über die ganze Bildschirmbreite, von Rand zu Rand wie bei BetterMe (Elfenbein 20 %) */
  .hero-foot::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    border-top: 1px solid var(--line);
  }
  .hero .actions { justify-content: flex-start; margin: 0; }

  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; text-align: left; }
  .section-head .label { margin-bottom: var(--x6); }

  @supports (animation-timeline: view()) {
    .carousel,
    .steps-media,
    .about,
    .promo { view-timeline: --settle block; }
    .media-card > img,
    .steps-media img,
    .about-bg,
    .promo-bg {
      animation: settle linear both;
      animation-timeline: --settle;
      animation-range: entry 0% cover 50%;
    }
  }
  .carousel-nav { display: flex; padding-bottom: var(--x3); }
  .carousel-dots { display: none; }

  /* Themen: Querformat 392 : 299, 10 von 24 Spalten breit, Textleiste mit feiner Linie (wie BetterMe).
     Mindestens 472 px, weil die deutschen Titel länger sind; ab etwa 1240 px gilt die BetterMe-Breite. */
  .goal-track { --card: max(472px, calc((var(--content) - 23 * var(--gap)) * 10 / 24 + 9 * var(--gap))); }
  .goal-track .media-card { --tall: .7628; }
  /* Bildkarten im Standard: Linie, Blur und Verläufe wie auf dem Smartphone, nur die Leiste liegt quer,
     Text links, Button rechts unten */
  .card-body {
    flex-direction: row;
    align-items: flex-end;
    gap: var(--x5);
    padding: var(--x8) var(--x10) var(--x10);
  }
  .card-text { gap: var(--x3); }
  .card-text p { max-width: 30rem; font-size: var(--t-body-ml); line-height: 1.3; text-wrap: pretty; }
  /* Desktop: Button deckend Elfenbein wie bei BetterMe und wie im Hero (Wunsch des Inhabers), Größe wie dort im
     Verhältnis zur Karte. Smartphone und Tablet behalten den durchscheinenden Button über die ganze Breite. */
  .card-btn {
    flex: none;
    min-height: var(--card-btn-h);
    padding: 0 var(--card-btn-pad);
    border-radius: var(--card-btn-r);
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: var(--card-btn-fs);
  }
  .card-btn:hover { background: var(--btn-hover); }

  /* Feedback: drei Karten zu je 8 Spalten, alle drei passen nebeneinander, darum keine Pfeile */
  .chat-track { --card: calc((var(--content) - 23 * var(--gap)) * 8 / 24 + 7 * var(--gap)); }
  .chat-card { padding: var(--x8); }
  .chat-mark { width: clamp(64px, calc(64px + 16 * var(--p)), 80px); }

  /* Angebote: zwei Karten, je halbe Breite (12 von 24 Spalten), quer wie die Themenkarten */
  .eco-track { --card: calc((var(--content) - 23 * var(--gap)) * 12 / 24 + 11 * var(--gap)); }
  .eco-track .media-card { --tall: .7628; }
  .eco-track .media-card > img { object-position: 50% 20%; }
  .eco-track .academy-card > img { object-position: 50% 16%; }
  .partner-track { --card: calc((var(--content) - 23 * var(--gap)) * 6 / 24 + 5 * var(--gap)); }
  .partner-card { min-height: calc(var(--card) * .74); }
  .partner-card { --logo-h: clamp(24px, calc(24px + 8 * var(--p)), 32px); }

  /* Coaching wie BetterMe: rechts 12 von 24 Spalten Bild. Links Überschrift, darunter mit --x12 + --x4 Abstand die Liste
     (wächst beim Aufklappen nach unten), so breit wie der Kasten „Über David“ (--glass-w, Wunsch des Inhabers),
     auf schmalen Desktops so breit, wie neben dem Bild Platz ist */
  .steps {
    --media-w: calc((100% - 23 * var(--gap)) * 12 / 24 + 11 * var(--gap));
    grid-template-columns: min(var(--glass-w), calc(100% - var(--media-w) - var(--x8))) var(--media-w);
    grid-template-rows: auto 1fr;
    justify-content: space-between;
    gap: 0;
  }
  .steps-head { grid-column: 1; grid-row: 1; }
  .steps-body { grid-column: 1; grid-row: 2; align-self: start; padding-top: calc(var(--x12) + var(--x4)); }
  .steps-media { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .steps-list {
    --num-w: clamp(32px, calc(32px + 16 * var(--p)), 48px);
    --step-arrow: clamp(32px, calc(32px + 12 * var(--p)), 44px);
  }
  /* Text der Schritte wie bei BetterMe: 12 px bei 1024, 20 px bei 1920 */
  .step-panel p { font-size: clamp(12px, calc(12px + 8 * var(--p)), 20px); }

  .about { padding-block: 128px; }
  .about::after { background: linear-gradient(90deg, rgb(var(--deep-rgb) / .5) 0%, rgb(var(--deep-rgb) / .1) 70%); }

  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.85fr); }
  .promo { min-height: 390px; aspect-ratio: 4 / 5; }
  .promo-body .btn { max-width: 100%; }
  .promo blockquote p { font-size: clamp(1.125rem, 1.65vw, 1.75rem); }
  .footer-cols { flex: 1; padding-top: 6px; }
  .footer-col a { font-size: clamp(14px, calc(14px + 2.5 * var(--p)), 16.5px); }
  .footer-note { font-size: var(--t-body-sm); line-height: 1.4; text-align: right; }
}

/* Smartphone */
@media (max-width: 767px) {
  /* ein Button über die ganze Breite, 24 px vom Rand wie bei BetterMe */
  .hero .actions { align-self: stretch; padding-inline: calc(var(--x6) - var(--gutter)); }
  .hero .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .bar { gap: 12px; }
  .bar-end { gap: 12px; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .js .hero-portrait img { transform: none; }
}
