/*
 * Firmenseite
 *
 * Formensprache nach Jack & Jill (Mobbin-Referenz): viel Weiß, zweifarbige
 * Überschriften (grau + dunkel), schwarze Pillen, flache Flächen in warmem
 * Hellgrau, App-Ausschnitte in Karten, Pixelgrafik, Konfetti-Quadrate.
 * Farben bleiben Birdie: Neutrale aus toby-skin.css und die Birdie-Blaurampe.
 * Schriften bleiben Birdie: Funnel Display (wo J&J eine Serifenschrift nutzt)
 * und Inter.
 *
 * Aufbau: 1 Schriften, 2 Tokens, 3 Basis, 4 Bausteine, 5 Kopf, 6 Abschnitte,
 * 7 App-Ausschnitte, 8 Fuß, 9 Unterseiten, 10 Responsive.
 */

/* 1 Schriften ------------------------------------------------------------ */
@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/funnel-display-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/funnel-display-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2 Tokens --------------------------------------------------------------- */
:root {
  /* Neutrale von Jack & Jill (jackandjill.ai, :root) */
  --white: #ffffff;
  --tint: #f9f9f6;
  --panel: #f2f2eb;
  --pill-light: #f2f2eb;
  --line: #ebe9e1;
  --line-strong: #ddd9d0;
  --ink: #100f0f;
  --ink-2: #595858;
  --muted: #6f6e6e;
  --focus: #0017c7;

  /* Birdie-Blau nur in den nachgebauten Birdie-Ausschnitten (Produktkarten,
     Umschalter), weil die das echte Produkt zeigen */
  --blue-50: #eaf2fd;
  --blue-100: #cde2fb;
  --blue-300: #86b6ef;
  --blue-400: #5598e7;
  --blue: #2a78d6;
  --blue-600: #256abf;
  --blue-700: #1c5cab;

  /* Bunte Akzente von Jack & Jill: Buchstabenwelle, Konfetti, Pixelkreis,
     Farbtupfer. Nie für große Flächen. */
  --fx-orange: #ff9463;
  --fx-yellow: #ffd862;
  --fx-green: #27d271;
  --fx-cyan: #00ccfa;
  --fx-blue: #92adfe;
  --fx-pink: #ff83e4;

  --font-display: "Funnel Display", "Inter", system-ui, sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 7.7vw, 148px);
  --max: 1720px;
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
  --shadow-sm: 0 1px 2px rgba(16, 15, 15, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 15, 15, 0.07);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 4 Bausteine ------------------------------------------------------------ */
.pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 20px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 15, 15, 0.14), 0 8px 18px -8px rgba(16, 15, 15, 0.45);
  transition: --pr 520ms var(--ease), box-shadow 320ms var(--ease), transform var(--dur) var(--ease);
}

/* Hover der schwarzen Pillen: Die neue Farbe (site.js wählt pro Hover eine
   andere J&J-Farbe) wächst als Kreis von der Eintrittsstelle des Cursors
   (--px/--py) auf, bis der Button voll ist, und zieht sich beim Verlassen
   zur Austrittsstelle zurück. Die Schrift wechselt genau an der Kreiskante
   von Weiß auf Schwarz (Verlauf in background-clip: text). --pr ist
   registriert, damit der Radius animiert. */
@property --pr {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
.pill:not(.pill--light)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pill-hover, var(--fx-green));
  clip-path: circle(var(--pr) at var(--px, 50%) var(--py, 50%));
}
.pill__label {
  background: radial-gradient(
    circle var(--pr) at calc(var(--px, 50%) - var(--lx, 0px)) calc(var(--py, 50%) - var(--ly, 0px)),
    var(--ink) calc(100% - 0.5px),
    var(--white) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pill:not(.pill--light):hover,
.pill:not(.pill--light):focus-visible {
  --pr: var(--pr-full, 260px);
  box-shadow:
    0 1px 2px rgba(16, 15, 15, 0.1),
    0 12px 26px -8px color-mix(in srgb, var(--pill-hover, var(--fx-green)) 80%, transparent);
  transform: translateY(-1px);
}
.pill:active {
  transform: translateY(0);
}
.pill--light {
  background: var(--pill-light);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 15, 15, 0.08), 0 6px 14px -8px rgba(16, 15, 15, 0.25);
  transition: background-color var(--dur) var(--ease), box-shadow 320ms var(--ease), transform var(--dur) var(--ease);
}
.pill--light:hover {
  background: var(--line);
  box-shadow: 0 1px 2px rgba(16, 15, 15, 0.08), 0 10px 20px -8px rgba(16, 15, 15, 0.3);
  transform: translateY(-1px);
}
/* Kopfzeile: flach, ohne Schatten und ohne Anheben */
.site-nav__actions .pill,
.site-nav__actions .pill:hover,
.site-nav__actions .pill:focus-visible {
  box-shadow: none;
  transform: none;
}
.pill--small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}
.pill__badge {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--fx-cyan);
}
.pill__badge--light {
  background: var(--fx-yellow);
}

.section-title {
  font-size: clamp(26px, 2.1vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.section-title--large {
  font-size: clamp(28px, 2.5vw, 44px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
}
.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}
.text-link:hover svg {
  transform: translateX(3px);
}

/* Kleine bunte Quadrate am unteren Rand, wie bei J&J */
.confetti {
  position: relative;
  height: 96px;
  pointer-events: none;
}
.confetti span {
  position: absolute;
  bottom: 8px;
  width: 13px;
  height: 18px;
}
.confetti span:nth-child(1) { left: 2%; bottom: 32px; background: var(--fx-orange); }
.confetti span:nth-child(2) { left: 9%; background: var(--fx-cyan); }
.confetti span:nth-child(3) { left: 23%; bottom: 32px; background: var(--fx-green); }
.confetti span:nth-child(4) { left: 38%; background: var(--fx-pink); }
.confetti span:nth-child(5) { left: 51%; bottom: 32px; background: var(--fx-yellow); }
.confetti span:nth-child(6) { left: 67%; bottom: 58px; background: var(--fx-blue); }
.confetti span:nth-child(7) { left: 84%; background: var(--fx-orange); }
.confetti span:nth-child(8) { left: 95%; bottom: 40px; background: var(--fx-green); }

/* 5 Kopf ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}

/* Wortmarke: nur der Name als Text, kein Logo */
.wordmark {
  justify-self: start;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.wordmark--large {
  font-size: 38px;
}

.site-nav {
  display: contents;
}
.site-nav__list {
  display: flex;
  gap: 38px;
}
.site-nav__list a {
  color: var(--ink-2);
  font-size: 16px;
  transition: color var(--dur) var(--ease);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--ink);
}
.site-nav__list a[aria-current="page"] {
  font-weight: 500;
}
.site-nav__actions {
  display: flex;
  gap: 12px;
  justify-self: end;
}

.nav-toggle {
  display: none;
}

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

/* Hero: zentriert wie bei J&J */
.hero {
  padding-block: clamp(64px, 7.5vw, 140px) clamp(72px, 9vw, 170px);
}
.hero__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}
.hero__title {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 86px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Bunte Buchstabenwelle (site.js zerlegt [data-letters] in Zeichen) */
.js [data-letters]:not(.is-split) {
  visibility: hidden;
}
.word {
  white-space: nowrap;
}

/* Bunte Farbschicht, die der Cursor im Kreis freilegt ([data-reveal],
   Hero-Überschrift). site.js legt eine Kopie mit festen Farben pro
   Buchstabe darüber; zwei gegenläufige Masken blenden im Kreis um den Cursor von
   Schwarz auf Farbe über. --r ist registriert, damit der Kreis weich auf-
   und zugeht. */
@property --r {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
[data-reveal] {
  --reveal-size: 2.3em;
  position: relative;
  transition: --r 420ms var(--ease);
}
.reveal-base,
.reveal-layer {
  display: block;
}
.reveal-base {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx, 50%) var(--my, 50%), transparent 40%, #000 100%);
  mask-image: radial-gradient(circle var(--r) at var(--mx, 50%) var(--my, 50%), transparent 40%, #000 100%);
}
.reveal-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx, 50%) var(--my, 50%), #000 40%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--mx, 50%) var(--my, 50%), #000 40%, transparent 100%);
}
.ch {
  opacity: 0;
}
.is-playing .ch {
  animation: letter-in 900ms var(--ease) var(--d, 0ms) both;
}
@keyframes letter-in {
  0% {
    opacity: 0;
    color: var(--c, var(--line-strong));
  }
  28% {
    opacity: 1;
    color: var(--c, var(--line-strong));
  }
  100% {
    opacity: 1;
    color: var(--to, var(--ink));
  }
}

/* Farbtupfer am oberen Rand der Produktkarten */
.dots span {
  position: absolute;
  z-index: 1;
  width: 1.6cqw;
  height: 2.1cqw;
  animation: dot-drift 6s ease-in-out infinite alternate;
}
.dots span:nth-child(1) { left: 2%; top: 4%; background: var(--fx-orange); }
.dots span:nth-child(2) { left: 15.5%; top: 0; background: var(--fx-cyan); animation-delay: -2s; }
.dots span:nth-child(3) { right: 2.4%; top: 7.5%; background: var(--fx-pink); animation-delay: -4s; }
#lehrende .dots span:nth-child(1) { left: 8%; top: 0; background: var(--fx-green); }
#lehrende .dots span:nth-child(2) { left: auto; right: 15%; top: 3.5%; background: var(--fx-yellow); }
#lehrende .dots span:nth-child(3) { display: none; }
@keyframes dot-drift {
  to {
    transform: translateY(0.9cqw);
  }
}

/* Produkte */
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.1vw, 40px);
}
.product__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 2.2vw, 42px);
}
.product__title {
  font-size: clamp(20px, 1.5vw, 28px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.product__kicker {
  display: block;
  color: var(--muted);
}
.product__stage {
  position: relative;
  aspect-ratio: 793 / 549;
  overflow: hidden;
  border-radius: 4px;
  background: var(--panel);
  container-type: inline-size;
}

/* Fächerleiste */
.subjects {
  padding-block: clamp(48px, 4.5vw, 84px) clamp(72px, 7vw, 132px);
}
.subjects__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.subjects__list li {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Umschalter */
.switcher__box {
  position: relative;
  margin-inline: clamp(0px, 2.1vw, 40px);
  background: var(--tint);
  overflow: hidden;
}
.switcher__inner {
  width: min(948px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-top: clamp(40px, 4vw, 72px);
}
.switcher__stage {
  display: grid;
  place-items: center;
  height: clamp(220px, 20vw, 320px);
  background: var(--white);
}
.stage-card {
  display: grid;
  gap: 8px;
  width: min(380px, 80%);
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.stage-card[hidden] {
  display: none;
}
.stage-card__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.stage-card__task {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.stage-card__timer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.stage-card__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--blue);
}
.stage-card__meter {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--blue-100);
  overflow: hidden;
}
.stage-card__meter i {
  display: block;
  width: 64%;
  height: 100%;
  background: var(--blue);
}
.stage-card__qr {
  width: 76px;
  height: 76px;
  margin-top: 6px;
  border-radius: 6px;
  background:
    url(/img/qr-muster.svg) center / 100% no-repeat,
    var(--white);
}

.segmented {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  margin: -28px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: var(--pill-light);
}
.segmented__item {
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.segmented__item.is-active {
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.switcher__panel {
  padding-top: clamp(32px, 3vw, 52px);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 54px;
}
.split__title {
  font-size: clamp(22px, 1.6vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.split__text {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.95;
}
.cta-center {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding-top: clamp(72px, 7vw, 132px);
  text-align: center;
}
.cta-center__title {
  font-size: clamp(22px, 1.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cta-center__note {
  margin-top: -2px;
  color: var(--ink-2);
  font-size: 14px;
}

/* Geschichten */
.stories {
  padding-block: clamp(80px, 7vw, 140px) clamp(72px, 6vw, 120px);
}
.stories__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 2.4vw, 44px);
}
.stories__arrows {
  display: flex;
  gap: 12px;
}
.arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.arrow:hover {
  background: var(--pill-light);
}
.arrow svg {
  width: 16px;
  height: 16px;
}
.stories__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter));
  padding-inline: max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter));
  scrollbar-width: none;
}
.stories__track::-webkit-scrollbar {
  display: none;
}
.story {
  flex: 0 0 clamp(240px, 19.5vw, 380px);
  scroll-snap-align: start;
}
.story__img {
  aspect-ratio: 4 / 5;
  background: var(--panel);
}
.story figcaption {
  display: grid;
  gap: 2px;
  padding-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
}
.story figcaption b {
  color: var(--ink);
  font-weight: 500;
}
.story--a .story__img { background: linear-gradient(170deg, var(--panel), #d9c59b); }
.story--b .story__img { background: linear-gradient(190deg, var(--panel), var(--line-strong)); }
.story--c .story__img { background: linear-gradient(160deg, #3a3733, var(--ink)); }
.story--d .story__img { background: linear-gradient(200deg, var(--tint), #a3b0a0); }
.story--e .story__img { background: linear-gradient(170deg, #a38a80, #3e4576); }

/* Mission mit Collage */
.mission {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 58vw;
  padding-block: 120px;
  overflow: hidden;
}
.mission__collage {
  position: absolute;
  inset: 0;
}
/* Statistik-Kacheln wie in Birdie Lehre, aufpoliert (Beispielwerte). Lage
   wie die Fotos der Referenz rund um die Überschrift. Schrift in vw, damit
   jede Karte als Ganzes mitskaliert. */
.stat {
  position: absolute;
  display: grid;
  align-content: start;
  gap: 0.55em;
  padding: 1.05em 1.1em 1.15em;
  border: 1px solid var(--line);
  border-radius: 1.1em;
  background: var(--white);
  font-size: clamp(9px, 0.84vw, 15px);
  line-height: 1.35;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 15, 15, 0.05), 0 14px 34px -14px rgba(16, 15, 15, 0.22);
}
.stat--kalender { left: 1.5%; top: 9%; width: 16.5vw; }
.stat--bereit { left: 20%; top: 1.5%; width: 12.5vw; }
.stat--formen { left: 35%; top: 12%; width: 14vw; }
.stat--kurve { left: 2.5%; top: 64%; width: 16.5vw; }
.stat--zeit { left: 21%; top: 75%; width: 12vw; }
.stat--effekt { left: 35%; top: 62%; width: 13.5vw; }

.stat__title {
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat__kpi {
  margin-top: 0.1em;
  font-family: var(--font-display);
  font-size: 2.15em;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__note {
  margin-top: -0.2em;
  color: var(--ink-2);
  font-size: 0.86em;
}
.stat__img,
.stat__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.stat__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em;
  color: var(--muted);
  font-size: 0.74em;
}
.stat__legend i {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  border-radius: 0.2em;
}
.stat__legend .k0 { background: #f2f2eb; }
.stat__legend .k1 { background: #d4f6e2; }
.stat__legend .k2 { background: #a9eec5; }
.stat__legend .k3 { background: #6fe29e; }
.stat__legend .k4 { background: #27d271; }
.stat__legend .l-now { height: 0.22em; background: var(--focus); }
.stat__legend .l-prev { height: 0.22em; margin-left: 0.6em; background: repeating-linear-gradient(90deg, var(--line-strong) 0 0.25em, transparent 0.25em 0.45em); }

.stat__dist {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4em 0.6em;
  margin-top: 0.3em;
  color: var(--muted);
  font-size: 0.74em;
  font-variant-numeric: tabular-nums;
}
.stat__dist b {
  height: 0.75em;
  border-radius: 99px;
  background: var(--fx-blue);
}
.stat__dist .d-19 { width: 100%; background: var(--focus); }
.stat__dist .d-14 { width: 74%; }
.stat__dist .d-12 { width: 63%; }
.stat__dist .d-7 { width: 37%; }
.stat__dist .d-4 { width: 21%; }

.stat__stack {
  display: flex;
  gap: 0.2em;
  height: 0.9em;
  margin-top: 0.2em;
}
.stat__stack i {
  border-radius: 0.25em;
}
.stat__stack .f-uebung { flex: 46; }
.stat__stack .f-tests { flex: 24; }
.stat__stack .f-blaetter { flex: 18; }
.stat__stack .f-drill { flex: 12; }
.f-uebung { background: var(--fx-blue); }
.f-tests { background: var(--fx-green); }
.f-blaetter { background: var(--fx-orange); }
.f-drill { background: var(--fx-pink); }
.stat__keys {
  display: grid;
  gap: 0.35em;
  margin-top: 0.2em;
  font-size: 0.86em;
}
.stat__keys li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5em;
}
.stat__keys i {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
}
.stat__keys b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat__grid {
  stroke: var(--line);
  stroke-width: 1;
}
.stat__prev {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.6;
  stroke-dasharray: 4 3;
}
.stat__area {
  fill: color-mix(in srgb, var(--fx-green) 28%, transparent);
}
.stat__line {
  fill: none;
  stroke: var(--focus);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat__line--blue {
  stroke: var(--focus);
}
.stat__dot {
  fill: var(--white);
  stroke: var(--focus);
  stroke-width: 2;
}
.stat__dot--blue {
  fill: var(--fx-blue);
}
.stat__mark {
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.stat__mark--exam {
  stroke: var(--fx-orange);
  stroke-dasharray: none;
  stroke-width: 1.6;
}
.stat__label {
  fill: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
}
.stat__label--exam {
  fill: #d9622b;
}
.stat__bar {
  fill: #dcd7cb;
}
.stat__bar--now {
  fill: var(--fx-orange);
}

/* 3D-Neigung der ganzen Collage als eine Fläche ([data-tilt], Werte aus
   site.js, Cursor irgendwo im Missionsteil). Gekippt wird um die Mitte der
   Kartengruppe; beim Kippen heben sich alle Karten gleich weit ab, und ihre
   Schatten wandern gemeinsam gegen die Neigung. */
.mission__collage {
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-origin: 24% 50%;
  transform-style: preserve-3d;
  transition: transform 800ms var(--ease);
}
.mission__collage .stat {
  transform: translateZ(var(--tz, 0px));
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease);
}
.mission__collage.is-tilting {
  --tz: 34px;
  transition: transform 140ms linear;
}
.mission__collage.is-tilting .stat {
  box-shadow: 0 1px 2px rgba(16, 15, 15, 0.05), var(--sx, 0px) var(--sy, 24px) 46px -14px rgba(16, 15, 15, 0.26);
  transition: transform 400ms var(--ease), box-shadow 140ms linear;
}

/* Das Raster liegt über der Collage; nur Text und Link fangen die Maus ab,
   damit die Karten darunter ihren Hover bekommen. */
.mission__grid {
  pointer-events: none;
}
.mission__grid > * {
  pointer-events: auto;
}
.mission__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 6vw;
  align-items: start;
}
.mission__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 2.9vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.mission__copy {
  display: grid;
  gap: 24px;
}
.mission__lead {
  color: var(--ink-2);
  font-size: clamp(20px, 1.5vw, 28px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.mission__text {
  max-width: 40em;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.95;
}
.mission__copy .text-link {
  justify-self: end;
  margin-top: 12px;
}

/* Preiskarte */
.pricing {
  padding-block: clamp(80px, 8vw, 156px);
  background: var(--tint);
}
.pricing__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 2.6vw, 48px) clamp(24px, 2.2vw, 42px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.pricing__title {
  font-size: clamp(28px, 2.5vw, 48px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.pricing__text {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.95;
}
.pricing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

/* Pixelgrafik */
.pixel {
  padding-block: clamp(64px, 4.5vw, 88px);
}
.pixel__grid {
  display: grid;
  grid-template-columns: 1.25fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.pixel__text {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 19px;
}
.pixel__art {
  width: clamp(240px, 23vw, 442px);
  height: auto;
}
.pixel__cta {
  justify-self: end;
}

/* 7 App-Ausschnitte ------------------------------------------------------ */
/* Maße relativ zur Karte (cqw), damit der Ausschnitt mitskaliert. */
.mock {
  position: absolute;
  inset: 0;
  font-size: 1.62cqw;
  line-height: 1.45;
  color: var(--ink);
}
.mock__side {
  position: absolute;
  left: 4.8%;
  top: 12.4%;
  bottom: 0;
  width: 24%;
  padding: 1.9em 1.4em;
  border-radius: 0.9em 0.9em 0 0;
  background: #f8f7f5;
  box-shadow: var(--shadow-sm);
}
.mock__brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 2em;
  font-size: 1.05em;
}
.mock__nav {
  display: grid;
  gap: 1.05em;
  color: var(--muted);
  font-size: 0.92em;
}
.mock__nav li {
  position: relative;
  padding-left: 1em;
}
.mock__nav .is-active {
  color: var(--ink);
  font-weight: 500;
}
.mock__nav .is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.36em;
  height: 0.36em;
  border-radius: 50%;
  background: var(--blue);
}
.mock__main {
  position: absolute;
  left: 19.6%;
  right: 4.8%;
  top: 7%;
  bottom: -4%;
  display: grid;
  align-content: start;
  gap: 1.2em;
  padding: 1.5em;
  border-radius: 0.9em;
  background: #f8f7f5;
  box-shadow: var(--shadow-md);
}
.mock__card {
  padding: 1em 1.1em;
  border-radius: 0.7em;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.mock__card--faint {
  opacity: 0.75;
}
.mock__row {
  display: flex;
  align-items: center;
  gap: 0.85em;
  padding-block: 0.5em;
}
.mock__row--head {
  justify-content: space-between;
  padding-block: 0.1em 0.7em;
  font-size: 1.05em;
}
.mock__pager {
  color: var(--muted);
  font-size: 0.82em;
}
.mock__icon {
  display: grid;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  flex: none;
  border-radius: 0.55em;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85em;
  font-weight: 600;
}
.mock__text {
  display: grid;
  flex: 1;
  min-width: 0;
}
.mock__text b {
  font-weight: 500;
}
.mock__text small {
  color: var(--muted);
  font-size: 0.78em;
}
.mock__tag {
  color: var(--ink-2);
  font-size: 0.78em;
}
.mock__chip,
.mock__chips span {
  padding: 0.35em 0.7em;
  border: 1px solid var(--line);
  border-radius: 0.45em;
  font-size: 0.78em;
  font-weight: 500;
}
.mock__chip {
  color: var(--blue);
  border-color: var(--blue-100);
  background: var(--blue-50);
}
.mock__label {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 0.6em;
  color: var(--muted);
  font-size: 0.74em;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mock__body,
.mock__list {
  font-size: 0.86em;
  line-height: 1.6;
}
.mock__list li {
  position: relative;
  padding-left: 1em;
}
.mock__list li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.7em;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--ink);
}
.mock__card--input {
  display: grid;
  gap: 0.8em;
}
.mock__chips {
  display: flex;
  gap: 0.6em;
}
.mock__input {
  min-height: 5em;
  padding: 0.7em 0.8em;
  border: 1px solid var(--line);
  border-radius: 0.45em;
  color: var(--muted);
  font-size: 0.82em;
}
.mock__question {
  margin: 0.2em 0 0.9em;
  font-size: 0.92em;
}
.mock__bars {
  display: grid;
  gap: 0.65em;
}
.mock__bar {
  display: grid;
  grid-template-columns: 10.5em 1fr 3em;
  align-items: center;
  gap: 0.8em;
  font-size: 0.8em;
  color: var(--ink-2);
}
.mock__bar i {
  display: block;
  height: 0.7em;
  border-radius: 99px;
  background: var(--blue-100);
}
.mock__bar em {
  font-style: normal;
  text-align: right;
}
.mock__bar--hit {
  color: var(--ink);
  font-weight: 500;
}
.mock__bar--hit i {
  background: var(--blue);
}
.w-22 { width: 40%; }
.w-24 { width: 44%; }
.w-54 { width: 100%; }
.mock__skeleton {
  height: 0.7em;
  margin-top: 0.4em;
  border-radius: 99px;
  background: var(--line);
}
.mock__skeleton--short {
  width: 58%;
}

/* 8 Fuß ------------------------------------------------------------------ */
.site-footer {
  background: var(--tint);
}
.site-footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}
.site-footer__claim {
  font-size: clamp(22px, 1.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.site-footer__main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-top: 46px;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.site-footer__copy {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 32px clamp(40px, 4.5vw, 80px);
}
.site-footer__title {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 500;
}
.site-footer__col li + li {
  margin-top: 12px;
}
.site-footer__col a {
  color: var(--ink-2);
  font-size: 15px;
  transition: color var(--dur) var(--ease);
}
.site-footer__col a:hover {
  color: var(--ink);
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 28px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top svg {
  width: 14px;
  height: 14px;
}

/* 9 Unterseiten ---------------------------------------------------------- */
.page-hero {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding-block: clamp(96px, 12vw, 220px) clamp(56px, 5vw, 96px);
  background: var(--tint);
  text-align: center;
}
.page-hero__title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 84px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.page-hero__text {
  max-width: 40em;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.8;
}
.page-hero__text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.page-band {
  height: clamp(180px, 22vw, 420px);
  margin-inline: clamp(16px, 2vw, 110px);
  background: linear-gradient(100deg, #a38a80, #d9c59b 45%, var(--panel));
}

.life {
  padding-block: clamp(72px, 7vw, 132px);
}
.life__stack {
  position: relative;
  width: min(460px, 80%);
  aspect-ratio: 4 / 3;
  margin: clamp(48px, 5vw, 96px) auto 0;
}
.life__stack span {
  position: absolute;
  inset: 0;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
}
.life__stack span:nth-child(1) { transform: rotate(-4deg) translate(-6%, -6%); background: linear-gradient(160deg, #a3b0a0, #d5d3ae); }
.life__stack span:nth-child(2) { transform: rotate(3deg) translate(5%, 4%); background: linear-gradient(200deg, var(--panel), var(--line-strong)); }
.life__stack span:nth-child(3) { transform: rotate(-1deg); background: linear-gradient(170deg, #3e4576, var(--ink)); }

.contact {
  padding-block: clamp(72px, 7vw, 132px);
  background: var(--tint);
}
.contact__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 2.6vw, 48px) clamp(24px, 2.2vw, 42px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.contact__text {
  margin-top: 12px;
  color: var(--ink-2);
}

.prose {
  display: grid;
  gap: 18px;
  max-width: 46rem;
  padding-block: clamp(72px, 8vw, 150px);
}
.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.4vw, 60px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.prose h2 {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.prose p {
  color: var(--ink-2);
  line-height: 1.85;
}
.prose .pill {
  justify-self: start;
  margin-top: 12px;
}

/* 10 Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .products__grid {
    grid-template-columns: 1fr;
    gap: 72px;
  }
  .mock {
    font-size: 1.55cqw;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }
  .nav-toggle {
    display: grid;
    gap: 6px;
    place-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-toggle__bar {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform var(--dur) var(--ease);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }
  .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    gap: 28px;
    padding: 28px var(--gutter) 32px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 18px;
  }
  .site-nav__list a {
    color: var(--ink);
    font-size: 22px;
  }
  .site-nav__actions {
    justify-self: auto;
  }

  .split,
  .mission__grid {
    grid-template-columns: 1fr;
  }

  .mission {
    min-height: 0;
    padding-block: 0 96px;
  }
  .mission__collage {
    position: static;
    transform: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 var(--gutter);
    margin-bottom: 40px;
  }
  .stat {
    position: static;
    width: auto;
    font-size: clamp(10px, 2.6vw, 13px);
  }
  .stat--formen,
  .stat--zeit {
    display: none;
  }
  .mission__copy .text-link {
    justify-self: start;
  }

  .pricing__card,
  .contact__card {
    flex-direction: column;
    align-items: flex-start;
  }
  .pricing__actions {
    justify-content: flex-start;
  }

  .pixel__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .pixel__cta {
    justify-self: center;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }
  .site-footer__brand {
    order: 2;
  }
  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .product__head,
  .site-footer__cta,
  .stories__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .mock {
    font-size: 1.9cqw;
  }
  .mock__side {
    display: none;
  }
  .mock__main {
    left: 4.8%;
  }
  .segmented__item {
    padding: 10px 18px;
    font-size: 16px;
  }
  .switcher__stage {
    height: auto;
    padding: 32px 0 56px;
  }
  .stage-card {
    width: 86%;
  }
  /* Auf dem Handy würde die schwebende Pille Text verdecken */
  .back-to-top {
    display: none;
  }
}

@media print {
  .ch {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ch {
    opacity: 1 !important;
    visibility: visible !important;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
