/*
  LexLaw, Website.

  Leitidee: Die Seite ist ein Lernpfad. Eine Leuchtröhre läuft durch alle
  Abschnitte, jeder Abschnitt hat genau ein Licht und höchstens einen
  räumlichen Gegenstand. Farben, Kanten und Federn sind die der App
  (JTheme.swift, LiquidGlass.swift).
*/

/* ───────── Schriften (alle OFL, siehe assets/lizenzen) ───────── */

@font-face {
  font-family: "Google Sans Flex";
  src: url("assets/fonts/google-sans-flex-rond.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ───────── Bausteine ───────── */

:root {
  color-scheme: dark;

  /* Grund und Flächen */
  --ground: #000;
  --card: #0d0d0d;
  --hairline: rgb(255 255 255 / 0.1);
  --fg: #fff;
  --fg-2: rgb(235 235 245 / 0.8);
  --fg-3: rgb(235 235 245 / 0.54);

  /* Lichter: die Kursfarben der App */
  --blue: #4c7dff;
  --indigo: #7a5cff;
  --gold: #f0b43c;
  --teal: #2ec8c0;
  --crimson: #ff5a6e;
  --azure: #34b0ff;
  --orchid: #e062d8;
  --flame: #ff9f2e;
  --success: #3ddc84;
  --danger: #ff5a6e;
  --light: var(--blue);

  /* Schrift: eine Familie wie in der App. Rund für Überschriften und
     Bedienelemente, gerade zum Lesen. Serif nur für § und Fundstellen. */
  --font-display: "Google Sans Flex", ui-rounded, system-ui, sans-serif;
  --font-text: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", ui-serif, Georgia, serif;

  /* Maße */
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --top: 68px;

  /* Die Federn der App (JMotion), als CSS-Kurven */
  --spring-snappy: linear(0, 0.0377 3.6%, 0.1294 7.1%, 0.2494 10.7%, 0.3791 14.3%, 0.5059 17.9%, 0.6219 21.4%, 0.7229 25%, 0.8071 28.6%, 0.8747 32.1%, 0.9269 35.7%, 0.9654 39.3%, 0.9926 42.9%, 1.0106 46.4%, 1.0214 50%, 1.0268 53.6%, 1.0284 57.1%, 1.0274 60.7%, 1.0249 64.3%, 1.0215 67.9%, 1.0178 71.4%, 1.0142 75%, 1.0109 78.6%, 1.008 82.1%, 1.0056 85.7%, 1.0036 89.3%, 1.0021 92.9%, 1.001 96.4%, 1);
  --dur-snappy: 462ms;
  --spring-smooth: linear(0, 0.0294 3.6%, 0.1014 7.1%, 0.1968 10.7%, 0.302 14.3%, 0.4076 17.9%, 0.5079 21.4%, 0.5991 25%, 0.6796 28.6%, 0.7488 32.1%, 0.8069 35.7%, 0.8548 39.3%, 0.8934 42.9%, 0.9241 46.4%, 0.9479 50%, 0.966 53.6%, 0.9795 57.1%, 0.9893 60.7%, 0.9961 64.3%, 1.0007 67.9%, 1.0037 71.4%, 1.0053 75%, 1.0061 78.6%, 1.0063 82.1%, 1.006 85.7%, 1.0056 89.3%, 1.0049 92.9%, 1.0043 96.4%, 1);
  --dur-smooth: 640ms;
  --spring-bouncy: linear(0, 0.0587 3.6%, 0.1992 7.1%, 0.3768 10.7%, 0.5588 14.3%, 0.7238 17.9%, 0.8598 21.4%, 0.9624 25%, 1.0323 28.6%, 1.0736 32.1%, 1.0921 35.7%, 1.0939 39.3%, 1.0848 42.9%, 1.0697 46.4%, 1.0524 50%, 1.0355 53.6%, 1.0209 57.1%, 1.0092 60.7%, 1.0007 64.3%, 0.9951 67.9%, 0.9921 71.4%, 0.9911 75%, 0.9913 78.6%, 0.9925 82.1%, 0.994 85.7%, 0.9957 89.3%, 0.9972 92.9%, 0.9985 96.4%, 1);
  --dur-bouncy: 824ms;
  --spring-gentle: linear(0, 0.0287 3.6%, 0.0991 7.1%, 0.1924 10.7%, 0.2955 14.3%, 0.3993 17.9%, 0.4981 21.4%, 0.5882 25%, 0.6681 28.6%, 0.7371 32.1%, 0.7955 35.7%, 0.8438 39.3%, 0.8832 42.9%, 0.9147 46.4%, 0.9395 50%, 0.9586 53.6%, 0.9731 57.1%, 0.9838 60.7%, 0.9916 64.3%, 0.997 67.9%, 1.0006 71.4%, 1.0029 75%, 1.0043 78.6%, 1.0049 82.1%, 1.005 85.7%, 1.0048 89.3%, 1.0045 92.9%, 1.004 96.4%, 1);
  --dur-gentle: 1035ms;
  --spring-hero: linear(0, 0.0367 3.6%, 0.1262 7.1%, 0.2433 10.7%, 0.3702 14.3%, 0.4947 17.9%, 0.6091 21.4%, 0.7092 25%, 0.7933 28.6%, 0.8614 32.1%, 0.9146 35.7%, 0.9546 39.3%, 0.9833 42.9%, 1.0029 46.4%, 1.0152 50%, 1.0221 53.6%, 1.025 57.1%, 1.0252 60.7%, 1.0236 64.3%, 1.0209 67.9%, 1.0178 71.4%, 1.0145 75%, 1.0115 78.6%, 1.0087 82.1%, 1.0064 85.7%, 1.0044 89.3%, 1.0029 92.9%, 1.0017 96.4%, 1);
  --dur-hero: 807ms;
}

/* Jeder Abschnitt setzt sein Licht. */
[data-light="blue"] { --light: var(--blue); }
[data-light="indigo"] { --light: var(--indigo); }
[data-light="gold"] { --light: var(--gold); }
[data-light="teal"] { --light: var(--teal); }
[data-light="orchid"] { --light: var(--orchid); }
[data-light="flame"] { --light: var(--flame); }
[data-light="plain"] { --light: #fff; }
.is-right { --light: var(--success); }
.is-wrong { --light: var(--danger); }
.is-hint { --light: var(--gold); }

/*
  Was aus dem Licht folgt. Steht auf jedem Element, das ein Licht setzt,
  damit die Ableitungen mit ihm wechseln: Schrift in Akzentfarbe (ink),
  Leuchtkörper (tube), gefüllte Flächen (fill).
*/
:root,
[data-light],
.is-right,
.is-wrong,
.is-hint {
  --ink: color-mix(in srgb, var(--light), white 32%);
  --tube: linear-gradient(135deg, color-mix(in srgb, var(--light), white 35%), var(--light) 55%, color-mix(in srgb, var(--light), black 12%));
  --fill: linear-gradient(135deg, color-mix(in srgb, var(--light), white 18%), var(--light) 55%, color-mix(in srgb, var(--light), black 20%));
  --edge: linear-gradient(135deg, rgb(255 255 255 / 0.42), rgb(255 255 255 / 0.07) 35%, rgb(255 255 255 / 0.03) 70%, rgb(255 255 255 / 0.2));
}

/* ───────── Grund ───────── */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-text);
  font-variation-settings: "ROND" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  background: color-mix(in srgb, var(--light) 45%, transparent);
}

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: 600 14px var(--font-display);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.wrap--narrow {
  max-width: calc(820px + 2 * var(--gutter));
}

/* ───────── Schrift ───────── */

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-variation-settings: "ROND" 100;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 1.2rem + 7.1vw, 6.6rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.75rem);
  font-weight: 730;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.lead {
  font-size: clamp(1.09rem, 1rem + 0.42vw, 1.31rem);
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: pretty;
  max-width: 34em;
}

.body {
  color: var(--fg-2);
  max-width: 36em;
  text-wrap: pretty;
}

.note {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--fg-3);
  max-width: 38em;
  text-wrap: pretty;
}

.meta {
  font-size: 0.84rem;
  color: var(--fg-3);
}

/* Das Etikett auf einer Karte („Normenregister“, „Sachverhalt“). Nur dort,
   wo es etwas sagt, und in normaler Schreibung. */
.overline {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font: 650 0.84rem/1.3 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: var(--ink);
}

/* Wortpaare, die nicht getrennt werden dürfen („EUR-Lex“, „XP-Boost“). */
.nobr {
  white-space: nowrap;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font: 650 0.95rem var(--font-display);
  font-variation-settings: "ROND" 100;
  color: var(--fg);
  padding-block: 6px;
  border-bottom: 1px solid rgb(255 255 255 / 0.22);
  transition: border-color 0.2s, color 0.2s;
}

.link:hover {
  border-color: #fff;
}

.link .icon {
  font-size: 0.85em;
  opacity: 0.7;
}

/* ───────── Knöpfe ─────────
   Flach: eine Füllung oder ein Rand, keine Verläufe, keine Glanzkante, kein
   Schein. Der Primärknopf ist weiß, damit er in jedem Abschnitt gleich
   aussieht, gleich welches Licht dort gerade leuchtet. */

.btn {
  --h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--h);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn .icon {
  font-size: 0.9em;
}

.btn--small {
  --h: 36px;
  padding: 0 15px;
  font-size: 0.875rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Die eine Haupthandlung: weiß, schwarze Schrift. */
.btn--primary {
  background: #fff;
  color: #0a0a0a;
}

.btn--primary:hover {
  background: rgb(255 255 255 / 0.86);
}

.btn--primary[disabled] {
  background: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.38);
  cursor: default;
  transform: none;
}

/* „Weiter“ nach einer richtigen Antwort: grün wie in der App, schwarze Schrift. */
.btn--primary.is-right {
  background: var(--success);
  color: #000;
}

.btn--primary.is-right:hover {
  background: color-mix(in srgb, var(--success), white 14%);
}

/* Die zweite Handlung: nur ein Rand. */
.btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.24);
}

.btn--secondary:hover {
  background: rgb(255 255 255 / 0.07);
  border-color: rgb(255 255 255 / 0.36);
}

@keyframes sweep {
  0%,
  35% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ───────── Karte (glassCard in der App) ───────── */

.card {
  --r: 24px;
  position: relative;
  border-radius: var(--r);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.015)) padding-box,
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(180deg, rgb(255 255 255 / 0.26), rgb(255 255 255 / 0.08) 40%, rgb(255 255 255 / 0.04)) border-box;
}

/* Die eine leuchtende Karte je Schirm, mit Lichtleiste an der Oberkante. */
.card--lit {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--light) 24%, transparent), color-mix(in srgb, var(--light) 8%, transparent) 42%, color-mix(in srgb, var(--light) 2%, transparent)) padding-box,
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(180deg, color-mix(in srgb, var(--light) 72%, transparent), color-mix(in srgb, var(--light) 20%, transparent) 40%, color-mix(in srgb, var(--light) 8%, transparent)) border-box;
}

/* Die Lichtleiste geht an, sobald die Röhre den Abschnitt erreicht. */
.js .station:not(.is-lit) .card--lit::before {
  opacity: 0.12;
}

.card--lit::before {
  transition: opacity 0.7s ease;
}

.card--lit::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: calc(var(--r) + 22px);
  right: calc(var(--r) + 22px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--light) 0%, transparent), color-mix(in srgb, var(--light), white 55%), color-mix(in srgb, var(--light) 0%, transparent));
  filter: drop-shadow(0 1px 5px color-mix(in srgb, var(--light) 90%, transparent));
  pointer-events: none;
}

/* ───────── Gegenstand (JObjectSurface): schwarzes Glas mit Dicke ───────── */

.surface {
  --r: 24px;
  --depth: 5px;
  --reach: 190px;
  /* Wie stark das Licht von unten in das Glas scheint: am Rand und auf halbem Weg. */
  --la: 46%;
  --lb: 15%;
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  isolation: isolate;
}

/* Die Seitenfläche, dunkler als die Oberseite. */
.surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #060606;
  border: 1px solid rgb(255 255 255 / 0.08);
  transform: translateY(var(--depth));
}

/* Die Oberseite: Glas, Licht von unten, Glanz von links oben, Lichtkante. */
.surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.075), rgb(255 255 255 / 0.012) 42%, rgb(255 255 255 / 0) 70%) padding-box,
    radial-gradient(circle var(--reach) at 50% 100%, color-mix(in srgb, var(--light) var(--la), transparent), color-mix(in srgb, var(--light) var(--lb), transparent) 50%, color-mix(in srgb, var(--light) 0%, transparent)) padding-box,
    linear-gradient(180deg, #1e1e1e, #0c0c0c) padding-box,
    linear-gradient(180deg, rgb(255 255 255 / 0.38), color-mix(in srgb, color-mix(in srgb, var(--light), white 45%) 15%, transparent) 26%, color-mix(in srgb, var(--light) 12%, transparent) 72%, color-mix(in srgb, color-mix(in srgb, var(--light), white 30%) 30%, transparent)) border-box;
}

.surface__in {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
  /* Zusätzlich zum Überlauf: Safari schneidet unter einer 3D-Drehung sonst nicht rund ab. */
  clip-path: inset(0 round var(--r));
  pointer-events: none;
}

/* Ein Lichtband, das ab und zu über die Fläche zieht. */
.shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(255 255 255 / 0) 30%, rgb(255 255 255 / 0.1) 50%, rgb(255 255 255 / 0) 70%);
  transform: translateX(-100%);
  animation: sweep 5.5s linear infinite;
}

/* Licht auf dem Boden (JFloorLight): ein weiter Schein mit hellerem Kern. */
.floor {
  position: absolute;
  left: 50%;
  pointer-events: none;
  translate: -50% -50%;
  width: var(--w);
  aspect-ratio: 1 / 0.19;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--light) 36%, transparent), color-mix(in srgb, var(--light) 20%, transparent) 32%, color-mix(in srgb, var(--light) 6.5%, transparent) 58%, color-mix(in srgb, var(--light) 1.5%, transparent) 80%, color-mix(in srgb, var(--light) 0%, transparent));
}

.floor::after {
  content: "";
  position: absolute;
  left: 22.5%;
  top: 50%;
  width: 55%;
  aspect-ratio: 1 / 0.13;
  translate: 0 calc(-50% + 2px);
  background: radial-gradient(closest-side, color-mix(in srgb, color-mix(in srgb, var(--light), white 25%) 50%, transparent), color-mix(in srgb, color-mix(in srgb, var(--light), white 25%) 27%, transparent) 32%, color-mix(in srgb, var(--light) 9%, transparent) 58%, color-mix(in srgb, var(--light) 2%, transparent) 80%, color-mix(in srgb, var(--light) 0%, transparent));
}

/* Die geprägte Münze der App. */
.coin {
  --s: 22px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffedb4, #f0b43c 50%, #8f5d0f);
  box-shadow: inset 0 0 0 max(1px, calc(var(--s) * 0.03)) rgb(143 93 15 / 0.55);
}

.coin::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: max(0.5px, calc(var(--s) * 0.04)) solid rgb(255 255 255 / 0.4);
}

.coin > span {
  font: 900 calc(var(--s) * 0.56) / 1 var(--font-serif);
  color: #6b4308;
  text-shadow: 0 calc(var(--s) * -0.03) 0 rgb(255 255 255 / 0.5);
  translate: 0 -3%;
}

.coin--small {
  --s: 20px;
}

/* ───────── Kopfzeile ───────── */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none;
}

/* Weicher Rand statt Balken: Der Inhalt taucht unter der Zeile ab. */
.top::before {
  content: "";
  position: absolute;
  inset: 0 0 -20px 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.94), rgb(0 0 0 / 0.82) 55%, rgb(0 0 0 / 0));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent);
  mask-image: linear-gradient(180deg, #000 68%, transparent);
}

.top__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--top);
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 730 1.2rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: -0.015em;
}

.brand img {
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16);
}

.top__nav {
  display: flex;
  gap: 4px;
  font: 560 0.92rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: var(--fg-2);
}

.top__nav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}

.top__nav a:hover,
.top__nav a[aria-current="true"] {
  color: #fff;
}

.top__nav a[aria-current="true"] {
  background: rgb(255 255 255 / 0.08);
}

/* ───────── Auftakt ───────── */

main {
  position: relative;
  /* Das Licht am Boden reicht über den Rand hinaus, die Seite soll deshalb nicht seitlich rollen. */
  overflow-x: clip;
}

.hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--top) + env(safe-area-inset-top, 0px) + clamp(28px, 6vw, 84px));
  padding-bottom: clamp(20px, 4vw, 60px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding-block: 20px;
}

/* „österreichisches“ ist ein langes Wort: Die Größe folgt der Spalte, damit
   es auf jeder Breite in eine Zeile passt (rund 7,8 em breit). */
.hero h1 {
  margin-top: -4px;
  font-size: clamp(min(2.5rem, 10.6vw), 0.4rem + 5.4vw, 4.75rem);
  line-height: 1.02;
}

.hero .lead {
  max-width: 30em;
}

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

.hero .meta {
  margin-top: -6px;
}


.hero__object {
  position: relative;
  display: grid;
  place-items: center;
}

/* ───────── Kartenfächer (LessonDeck) ─────────
   --u ist ein Punkt der App. Alle Maße stammen aus LessonDeck.swift. */

.deck {
  --u: clamp(1.25px, 0.5px + 0.092vw, 1.82px);
  --sway: 0deg;
  --pitch: 0deg;
  position: relative;
  width: 100%;
  height: calc(264 * var(--u));
  display: grid;
  place-items: center;
  perspective: calc(760 * var(--u));
  touch-action: pan-y;
  cursor: grab;
}

.deck::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(246 * var(--u));
  translate: -50% -50%;
  width: calc(400 * var(--u));
  aspect-ratio: 1 / 0.19;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--light) 40%, transparent), color-mix(in srgb, var(--light) 22%, transparent) 32%, color-mix(in srgb, var(--light) 7%, transparent) 58%, color-mix(in srgb, var(--light) 1.5%, transparent) 80%, color-mix(in srgb, var(--light) 0%, transparent));
}

.deck::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(248 * var(--u));
  translate: -50% -50%;
  width: calc(215 * var(--u));
  aspect-ratio: 1 / 0.13;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, color-mix(in srgb, var(--light), white 25%) 58%, transparent), color-mix(in srgb, color-mix(in srgb, var(--light), white 25%) 30%, transparent) 32%, color-mix(in srgb, var(--light) 10%, transparent) 58%, color-mix(in srgb, var(--light) 2%, transparent) 80%, color-mix(in srgb, var(--light) 0%, transparent));
}

.deck__fan {
  position: relative;
  z-index: 1;
  width: calc(152 * var(--u));
  height: calc(204 * var(--u));
  margin-top: calc(-14 * var(--u));
  transform-origin: 50% 100%;
  transform: rotateX(calc(12deg + var(--pitch))) rotateY(var(--sway));
  transition: transform var(--dur-bouncy) var(--spring-bouncy);
  animation: float 3.2s ease-in-out infinite alternate;
}

.deck.is-held .deck__fan {
  transition: none;
}

@keyframes float {
  from {
    translate: 0 calc(3 * var(--u));
  }
  to {
    translate: 0 calc(-5 * var(--u));
  }
}

.deck__card {
  position: absolute;
  --r: calc(24 * var(--u));
}

.deck__card .surface {
  --r: inherit;
  --depth: calc(5 * var(--u));
  --reach: calc(190 * var(--u));
}

.deck__card--front {
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(16 * var(--u));
  animation: card-front var(--dur-hero) var(--spring-hero) 0.15s both;
}

.deck__card--front > :not(.surface) {
  position: relative;
  z-index: 2;
}

.deck__card--back {
  --r: calc(22 * var(--u));
  top: calc(10 * var(--u));
  left: calc(8 * var(--u));
  width: calc(136 * var(--u));
  height: calc(184 * var(--u));
  transform-origin: 50% 100%;
}

.deck__card--back .surface {
  --depth: calc(4 * var(--u));
  --reach: calc(170 * var(--u));
  --la: 27.6%;
  --lb: 9%;
}

.deck__card--left {
  transform: translate(calc(-60 * var(--u)), calc(4 * var(--u))) rotate(-16deg);
  animation: card-left var(--dur-bouncy) var(--spring-bouncy) 0.38s both;
}

.deck__card--right {
  transform: translate(calc(60 * var(--u)), calc(4 * var(--u))) rotate(16deg);
  animation: card-right var(--dur-bouncy) var(--spring-bouncy) 0.46s both;
}

@keyframes card-front {
  from {
    opacity: 0;
    transform: translateY(calc(26 * var(--u))) scale(0.94);
  }
}

@keyframes card-left {
  from {
    opacity: 0;
    transform: translate(0, calc(14 * var(--u))) rotate(0deg);
  }
}

@keyframes card-right {
  from {
    opacity: 0;
    transform: translate(0, calc(14 * var(--u))) rotate(0deg);
  }
}

.deck__no {
  font: 700 calc(19 * var(--u)) / 1 var(--font-display);
  font-variation-settings: "ROND" 100;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.deck__card--back .deck__no {
  position: absolute;
  z-index: 2;
  top: calc(15 * var(--u));
  right: calc(15 * var(--u));
  font-size: calc(14 * var(--u));
  color: rgb(255 255 255 / 0.42);
}

.deck__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(22 * var(--u));
}

.deck__led {
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 calc(8 * var(--u)) var(--light);
}

.deck__emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(70 * var(--u));
  height: calc(70 * var(--u));
  margin: auto;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--fill) padding-box, var(--edge) border-box;
  box-shadow: 0 calc(6 * var(--u)) calc(30 * var(--u)) color-mix(in srgb, var(--light) 75%, transparent);
  font-size: calc(31 * var(--u));
  color: #fff;
}

.deck__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(8 * var(--u));
  font: 700 calc(9.5 * var(--u)) / 1 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.6);
}

.deck__pips {
  display: flex;
  gap: calc(3 * var(--u));
  width: 100%;
}

.deck__pips i {
  flex: 1;
  height: calc(2.5 * var(--u));
  border-radius: 99px;
  background: rgb(255 255 255 / 0.26);
}

/* ───────── Leuchtröhre und Knoten ───────── */

.spine {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.spine path {
  fill: none;
  stroke-linecap: round;
}

.spine__dark {
  stroke: rgb(255 255 255 / 0.085);
  stroke-width: 8;
}

.spine__glow {
  stroke-width: 12;
  opacity: 0.85;
}

.spine__lit {
  stroke-width: 8;
}

.spine__core {
  stroke: rgb(255 255 255 / 0.7);
  stroke-width: 2;
}

.spine__spark {
  fill: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}

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

.spine-point {
  position: absolute;
  left: 50%;
  top: calc(246 * var(--u, 1px));
  width: 0;
  height: 0;
}

.spine-point--bottom {
  top: auto;
  bottom: -18px;
}

.spine-point--hero {
  display: none;
  top: auto;
  bottom: 0;
}

/* Ein Knoten des Pfads: aus, dran, leuchtend (PathNodeView). */
.node {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 22px;
  color: rgb(255 255 255 / 0.3);
  background: #121212;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13);
  transition: color 0.4s, box-shadow 0.4s;
}

.node::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--tube) padding-box, var(--edge) border-box;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.35s, scale var(--dur-bouncy) var(--spring-bouncy);
}

/* Das Glanzlicht, das aus der Scheibe eine Perle macht. */
.node::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.12) 34%, rgb(255 255 255 / 0) 68%);
  opacity: 0;
  transition: opacity 0.35s;
}

.node .icon {
  position: relative;
  z-index: 1;
}

.is-lit > .wrap > .station__head > .node {
  color: #fff;
  box-shadow: 0 0 34px color-mix(in srgb, var(--light) 80%, transparent);
}

.is-lit > .wrap > .station__head > .node::before {
  opacity: 1;
  scale: 1;
}

.is-lit > .wrap > .station__head > .node::after {
  opacity: 1;
}

/* ───────── Abschnitte ───────── */

.station {
  position: relative;
  z-index: 1;
  padding-top: clamp(150px, 17vw, 250px);
}

.station__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.station__head .node {
  margin-bottom: 6px;
}

.station__head .lead {
  margin-top: -2px;
}

.station__exhibit {
  position: relative;
}

.station--split > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.station--center .station__head {
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.station--center .lead {
  text-wrap: balance;
  max-width: 36em;
}

.station--center .station__exhibit {
  margin-top: clamp(40px, 5vw, 64px);
}

/* Ohne Farbe leuchtet der Knoten weiß, sein Zeichen wird dunkel. */
.station[data-light="plain"].is-lit > .wrap > .station__head > .node {
  color: #0b0b0b;
}

.station--wide .station__exhibit {
  margin-top: clamp(36px, 4vw, 56px);
}

.station--wide .station__head {
  max-width: 880px;
}

/* ───────── Probelektion ───────── */

.lesson {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  scroll-margin-top: calc(var(--top) + 24px);
}

.lesson__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

/* Ein Abschnitt je Schritt (LessonTrack). */
.track {
  display: flex;
  flex: 1;
  gap: 5px;
  height: 10px;
}

.track i {
  position: relative;
  flex: 1;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  overflow: hidden;
}

.track i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--fill);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-smooth) var(--spring-smooth);
}

.track i.is-now {
  background: color-mix(in srgb, var(--light) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--light) 65%, transparent);
}

.track i.is-done::after {
  transform: none;
  box-shadow: 0 0 10px color-mix(in srgb, var(--light) 50%, transparent);
}

.track i.is-missed::after {
  transform: none;
  background: rgb(255 255 255 / 0.34);
}

.lesson__count {
  font: 700 0.95rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  font-variant-numeric: tabular-nums;
  color: var(--fg-2);
  min-width: 2.2em;
  text-align: right;
}

.lesson__stage {
  position: relative;
  min-height: 420px;
}

.lesson__noscript {
  color: var(--fg-2);
  text-align: center;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step:focus {
  outline: none;
}

.step > * {
  animation: rise var(--dur-smooth) var(--spring-smooth) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
}

/* Die Marke über einem Schritt: „Einstieg“, „Lückentext“ … */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--light) 18%, transparent);
  font: 700 0.69rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.tag--quiet {
  background: rgb(255 255 255 / 0.07);
  color: var(--fg-2);
}

.prompt {
  font: 700 clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem) / 1.25 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hint {
  font-size: 0.86rem;
  color: var(--fg-3);
}

/* Einstieg */
.concept {
  --r: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 4vw, 32px);
  overflow: hidden;
}

.concept::after {
  content: "§";
  position: absolute;
  right: -18px;
  bottom: -96px;
  font: 900 300px/1 var(--font-serif);
  color: color-mix(in srgb, var(--light) 10%, transparent);
  pointer-events: none;
}

.concept > * {
  position: relative;
  z-index: 1;
}

.concept h3 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.concept__body {
  font-size: 1.06rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.88);
}

.points {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 2px;
}

.points::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--light) 0%, transparent), color-mix(in srgb, var(--light) 55%, transparent) 15%, color-mix(in srgb, var(--light) 55%, transparent) 85%, color-mix(in srgb, var(--light) 0%, transparent));
}

.points li {
  position: relative;
  padding-left: 28px;
  color: rgb(255 255 255 / 0.95);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tube);
  box-shadow: 0 0 10px color-mix(in srgb, var(--light) 80%, transparent), inset 0 0 0 1px rgb(255 255 255 / 0.3);
}

.example {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.example .overline {
  font-size: 0.69rem;
  margin-bottom: 6px;
}

.example p:last-child {
  font-size: 0.96rem;
  color: rgb(255 255 255 / 0.86);
}

/* Fundstelle (ReferenceBadge): Serif, als Marke, mit Weg zum amtlichen Text. */
.ref {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--light) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--light) 55%, transparent);
  font: 600 0.86rem/1.2 var(--font-serif);
  color: var(--ink);
  transition: background-color 0.2s, transform var(--dur-snappy) var(--spring-snappy);
}

a.ref:hover {
  background: color-mix(in srgb, var(--light) 24%, transparent);
}

a.ref:active {
  transform: scale(0.96);
}

.ref .icon {
  font-size: 0.72em;
}

/* Lückentext */
.cloze__text {
  font: 650 clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem) / 1.75 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: -0.01em;
}

.gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.2em;
  height: 1.55em;
  margin-inline: 0.12em;
  padding: 0 0.6em;
  vertical-align: middle;
  border-radius: 0.5em;
  font: inherit;
  font-size: 0.86em;
  line-height: 1;
  color: #fff;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.2);
  transition: background-color 0.25s, box-shadow 0.25s, transform var(--dur-snappy) var(--spring-snappy);
}

.gap.is-next {
  box-shadow: inset 0 0 0 1.5px var(--light);
  background: color-mix(in srgb, var(--light) 14%, transparent);
}

.gap.is-filled {
  background: color-mix(in srgb, var(--light) 24%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--light) 80%, transparent);
}

.gap.is-right,
.gap.is-wrong {
  background: color-mix(in srgb, var(--light) 26%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--light), 0 0 18px color-mix(in srgb, var(--light) 45%, transparent);
}

.gap s {
  margin-right: 0.45em;
  opacity: 0.55;
  font-weight: 500;
}

.bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.05);
  font: 600 1rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.2s ease, transform 0.1s ease;
}

.chip:not([disabled]):hover {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.3);
}

.chip:active {
  transform: scale(0.97);
}

.chip[disabled] {
  opacity: 0.28;
  cursor: default;
}

/* Auswahl und Fall: die Antwortzeilen */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  --r: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.4;
  color: rgb(255 255 255 / 0.95);
  transition: transform var(--dur-snappy) var(--spring-snappy), opacity 0.3s, background 0.3s;
}

/* Vor dem Antippen flach: eine Fläche, eine gleichmäßige Haarlinie. Erst die
   Rückmeldung leuchtet (card--lit in Grün oder Rot). */
.card.option:not(.card--lit),
.card.tile:not(.card--lit) {
  background: rgb(255 255 255 / 0.05);
  border-color: rgb(255 255 255 / 0.12);
}

@media (hover: hover) {
  .card.option:not(.card--lit):not([disabled]):hover,
  .card.tile:not(.card--lit):not([disabled]):hover {
    background: rgb(255 255 255 / 0.09);
    border-color: rgb(255 255 255 / 0.22);
  }
}

.option:not([disabled]):active {
  transform: scale(0.98);
}

.option[disabled] {
  cursor: default;
}

.option.card--lit::before {
  display: none;
}

.option.is-dim {
  opacity: 0.55;
}

.option__letter {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  font: 700 0.75rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: rgb(255 255 255 / 0.7);
  transition: background 0.3s, box-shadow 0.3s;
}

.option.is-right .option__letter,
.option.is-wrong .option__letter {
  background: var(--tube);
  box-shadow: 0 0 14px color-mix(in srgb, var(--light) 70%, transparent), inset 0 0 0 1px rgb(255 255 255 / 0.3);
  color: #fff;
}

.option__text {
  flex: 1;
  min-width: 0;
}

.option__mark {
  font-size: 1.35rem;
  color: var(--light);
  animation: pop var(--dur-bouncy) var(--spring-bouncy) both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

.shake {
  animation: shake 0.4s linear;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  16% {
    transform: translateX(7px);
  }
  33% {
    transform: translateX(-7px);
  }
  50% {
    transform: translateX(7px);
  }
  66% {
    transform: translateX(-6px);
  }
  83% {
    transform: translateX(4px);
  }
}

/* Sachverhalt: ein Blatt aus einem Akt, mit leuchtender Kante links. */
.scenario {
  --r: 22px;
  padding: 18px 18px 18px 26px;
}

.scenario::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 3px;
  background: var(--tube);
  box-shadow: 0 0 12px color-mix(in srgb, var(--light) 70%, transparent);
}

.scenario .overline {
  font-size: 0.69rem;
  margin-bottom: 10px;
}

.scenario p:last-child {
  font-size: 1.04rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.92);
}

/* Zuordnen */
.match {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px 12px;
}

.match__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile {
  --r: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.3;
  color: rgb(255 255 255 / 0.95);
  transition: transform var(--dur-snappy) var(--spring-snappy), opacity 0.3s, background 0.25s;
}

.tile:not([disabled]):active {
  transform: scale(0.97);
}

.tile.card--lit::before {
  display: none;
}

.card.tile.is-picked:not(.card--lit) {
  background: color-mix(in srgb, var(--light) 16%, transparent);
  border-color: var(--light);
}

.tile.is-right {
  opacity: 0.86;
}

.tile[disabled] {
  cursor: default;
}

.tile__no {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--tube);
  box-shadow: 0 0 10px color-mix(in srgb, var(--light) 70%, transparent);
  font: 700 0.69rem/1 var(--font-display);
  color: #fff;
  animation: pop var(--dur-bouncy) var(--spring-bouncy) both;
}

.tile--left {
  font: 650 0.98rem/1.25 var(--font-display);
  font-variation-settings: "ROND" 100;
}

/* Rückmeldung nach einer Antwort */
.verdict {
  --r: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.verdict::before {
  display: none;
}

.verdict__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 1.06rem/1.2 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: var(--light);
}

.verdict__head .icon {
  font-size: 1.2em;
}

.verdict p:not(.verdict__head) {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.82);
}

.verdict .ref {
  margin-top: 4px;
}

/* Abschluss */
.done {
  align-items: center;
  text-align: center;
  gap: 20px;
  padding-top: 8px;
}

.done__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin-bottom: 4px;
}

.done__disc {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--fill) padding-box, var(--edge) border-box;
  box-shadow: 0 10px 46px color-mix(in srgb, var(--light) 70%, transparent);
  font-size: 44px;
  color: #fff;
}

.halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(0 0 0 / 0), color-mix(in srgb, var(--light) 6%, transparent) 24%, color-mix(in srgb, var(--light) 30%, transparent) 40%, color-mix(in srgb, var(--light) 80%, transparent) 50%, color-mix(in srgb, var(--light) 26%, transparent) 61%, color-mix(in srgb, var(--light) 4%, transparent) 78%, rgb(0 0 0 / 0));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 18s linear infinite;
}

.halo--2 {
  inset: -22px;
  opacity: 0.7;
  animation-duration: 25s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.done h3 {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem);
  letter-spacing: -0.02em;
}

.done__xp {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font: 800 clamp(3rem, 2.4rem + 2.4vw, 4.2rem) / 1 var(--font-display);
  font-variation-settings: "ROND" 100;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.done__xp small {
  font-size: 0.36em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.done__line {
  color: var(--fg-2);
  max-width: 30em;
}

.ledger {
  --r: 20px;
  width: 100%;
  max-width: 420px;
  padding: 6px 18px;
  text-align: left;
}

.ledger li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 11px;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.86);
}

.ledger li + li {
  border-top: 1px solid rgb(255 255 255 / 0.07);
}

.ledger b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 0.95rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.ledger li:last-child {
  font-weight: 600;
  color: #fff;
}

.done .actions {
  justify-content: center;
  margin-top: 4px;
}

/* ───────── Lernpfad ───────── */

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.steps li,
.aside {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.steps__mark,
.aside__mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  flex: none;
  font-size: 22px;
  color: var(--ink);
}

.steps p,
.aside p {
  margin-top: 3px;
  font-size: 0.96rem;
  color: var(--fg-2);
  max-width: 32em;
  text-wrap: pretty;
}

/* Begriffe der App mit je einem Satz dazu (Serien-Schutz, Lawcoins, Rangliste). */
.terms {
  display: flex;
  flex-direction: column;
  margin: 10px 0 0;
  max-width: 34em;
}

.terms > div {
  padding-block: 14px;
  border-top: 1px solid var(--hairline);
}

.terms > div:last-child {
  border-bottom: 1px solid var(--hairline);
}

.terms dt {
  font: 650 1.06rem/1.3 var(--font-display);
  font-variation-settings: "ROND" 100;
}

.terms dd {
  margin: 4px 0 0;
  font-size: 0.96rem;
  color: var(--fg-2);
  text-wrap: pretty;
}

.aside {
  margin-top: 10px;
}

.pathdemo {
  position: relative;
  width: min(430px, 100%);
  margin-inline: auto;
}

/* Die Abschnittskarte über dem Pfad. */
.pathdemo__head {
  --r: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.tilemark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 15px;
  border: 1px solid transparent;
  background: var(--tube) padding-box, var(--edge) border-box;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--light) 75%, transparent);
  font-size: 22px;
  color: #fff;
}

.pathdemo__title {
  flex: 1;
  min-width: 0;
}

.pathdemo__title .overline {
  font-size: 0.69rem;
}

.pathdemo__title h3 {
  margin-top: 3px;
  font-size: 1.22rem;
}

.pathdemo__title p:last-child {
  font-size: 0.82rem;
  color: var(--fg-2);
}

.ring {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  font: 800 0.69rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

.ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  rotate: -90deg;
  overflow: visible;
}

.ring circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.ring__track {
  stroke: rgb(255 255 255 / 0.09);
}

.ring__value {
  stroke: var(--light);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--light) 85%, transparent));
  stroke-dasharray: var(--v, 0) 100;
}

.js .ring__value {
  stroke-dasharray: 0 100;
}

.js .is-in .ring__value {
  stroke-dasharray: var(--v, 0) 100;
  transition: stroke-dasharray var(--dur-gentle) var(--spring-gentle) 0.3s;
}

.pathdemo__path {
  position: relative;
  margin-top: 46px;
  height: calc(var(--rows) * 160px);
}

.pathdemo__path > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pathdemo__path > svg path {
  fill: none;
  stroke-linecap: round;
}

.pd-dark {
  stroke: rgb(255 255 255 / 0.085);
  stroke-width: 8;
}

.pd-lit {
  stroke: var(--light);
  stroke-width: 8;
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--light) 90%, transparent));
}

.pd-core {
  stroke: rgb(255 255 255 / 0.7);
  stroke-width: 2;
}

.pd-lit,
.pd-core {
  stroke-dasharray: 0 1;
  transition: stroke-dasharray 1.4s cubic-bezier(0.3, 0.1, 0.2, 1) 0.25s;
}

.is-in .pd-lit,
.is-in .pd-core {
  stroke-dasharray: var(--done) 1;
}

.pnode {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 250px;
  translate: -50% -33px;
}

.pnode--locked {
  translate: -50% -31px;
}

.pnode__bulb {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.pnode--done .pnode__bulb {
  width: 66px;
  height: 66px;
  border: 1px solid transparent;
  background:
    radial-gradient(circle at 30% 22%, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.12) 34%, rgb(255 255 255 / 0) 68%) padding-box,
    var(--tube) padding-box,
    var(--edge) border-box;
  box-shadow: 0 0 28px color-mix(in srgb, var(--light) 85%, transparent);
  font-size: 25px;
}

.pnode--now {
  translate: -50% -42px;
}

.pnode--now .pnode__bulb {
  width: 84px;
  height: 84px;
  background: linear-gradient(color-mix(in srgb, var(--light) 36%, transparent), color-mix(in srgb, var(--light) 36%, transparent)), var(--card);
  font-size: 29px;
}

/* Der Lichthof um den Knoten, der dran ist. */
.pnode--now .pnode__bulb::before {
  content: "";
  position: absolute;
  inset: -63px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--light) 50%, transparent), color-mix(in srgb, var(--light) 27%, transparent) 32%, color-mix(in srgb, var(--light) 9%, transparent) 58%, color-mix(in srgb, var(--light) 2%, transparent) 80%, color-mix(in srgb, var(--light) 0%, transparent));
  pointer-events: none;
}

/* Das Licht, das um seinen Rand läuft. */
.pnode__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--light) 20%, transparent), var(--light) 22%, #fff 30%, var(--light) 38%, color-mix(in srgb, var(--light) 20%, transparent) 62%, color-mix(in srgb, var(--light) 20%, transparent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  animation: spin 4.5s linear infinite;
}

.pnode__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--light) 70%, transparent);
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.pnode--locked .pnode__bulb {
  width: 62px;
  height: 62px;
  background: #121212;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13);
  font-size: 21px;
  color: rgb(255 255 255 / 0.28);
}

.pnode__label {
  padding: 7px 13px;
  border-radius: 999px;
  background: #0e0e0e;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13);
  max-width: 100%;
  font: 700 0.81rem/1.25 var(--font-display);
  font-variation-settings: "ROND" 100;
  text-align: center;
  text-wrap: balance;
  color: #fff;
}

.pnode--now .pnode__label {
  background: linear-gradient(color-mix(in srgb, var(--light) 24%, transparent), color-mix(in srgb, var(--light) 24%, transparent)), #0e0e0e;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--light) 70%, transparent);
}

.pnode--locked .pnode__label {
  color: rgb(255 255 255 / 0.5);
}

.pnode__start {
  position: absolute;
  top: -34px;
  left: 50%;
  translate: -50% 0;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--tube) padding-box, var(--edge) border-box;
  box-shadow: 0 3px 16px color-mix(in srgb, var(--light) 80%, transparent);
  font: 700 0.69rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: 0.14em;
  color: #fff;
  animation: bob 0.9s ease-in-out infinite alternate;
}

@keyframes bob {
  to {
    translate: -50% -5px;
  }
}

.js .pathdemo .pnode {
  opacity: 0.3;
  scale: 0.7;
}

.js .is-in .pathdemo .pnode {
  opacity: 1;
  scale: 1;
  transition: opacity 0.4s, scale var(--dur-bouncy) var(--spring-bouncy);
  transition-delay: calc(0.3s + var(--n) * 0.22s);
}

/* ───────── Wiederholen ───────── */

.review {
  --r: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3.4vw, 34px);
  max-width: 540px;
  margin-inline: auto;
}

.review__graph {
  width: 100%;
  height: auto;
  overflow: visible;
}

.review__graph path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review__base {
  stroke: rgb(255 255 255 / 0.1);
  stroke-width: 1;
}

.review__decay {
  stroke: rgb(255 255 255 / 0.22);
  stroke-width: 4;
  stroke-dasharray: 0.02 0.03;
}

.review__keep {
  stroke: url(#kurve-farbe);
  stroke-width: 7;
  filter: drop-shadow(0 0 9px rgb(46 200 192 / 0.75));
  stroke-dasharray: 1 1;
}

.js .review__keep {
  stroke-dasharray: 0 1;
  transition: stroke-dasharray 1.8s cubic-bezier(0.35, 0.1, 0.2, 1) 0.35s;
}

.js .is-in .review__keep {
  stroke-dasharray: 1 1;
}

.review__dots circle {
  fill: var(--teal);
  stroke: rgb(255 255 255 / 0.9);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgb(46 200 192 / 0.9));
  transform-box: fill-box;
  transform-origin: center;
}

.js .review__dots circle {
  scale: 0;
}

.js .is-in .review__dots circle {
  scale: 1;
  transition: scale var(--dur-bouncy) var(--spring-bouncy);
}

.js .is-in .review__dots circle:nth-child(1) {
  transition-delay: 0.95s;
}

.js .is-in .review__dots circle:nth-child(2) {
  transition-delay: 1.45s;
}

.js .is-in .review__dots circle:nth-child(3) {
  transition-delay: 1.95s;
}

.review__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.84rem;
  color: var(--fg-2);
}

.review__legend li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.review__key {
  width: 26px;
  height: 4px;
  border-radius: 4px;
}

.review__key--keep {
  background: var(--tube);
  box-shadow: 0 0 8px color-mix(in srgb, var(--light) 70%, transparent);
}

.review__key--decay {
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.3) 0 5px, transparent 5px 10px);
}

.review__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--light) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--light) 40%, transparent);
  font-size: 0.84rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.88);
}

.pill b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--light);
  font: 800 0.82rem/1 var(--font-display);
  color: #0a0a0a;
}

.pill--quiet {
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}

.pill--quiet b {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}

/* ───────── Dranbleiben: die Tagesordnung ───────── */

.agenda {
  --r: 30px;
  padding: clamp(20px, 3vw, 30px);
  max-width: 540px;
  margin-inline: auto;
}

/* Die Leiste der App: Level links, Lawcoins und Serie rechts. */
.status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.status__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px 0 10px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  font: 650 0.95rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.status__chip .coin {
  --s: 19px;
}

.status__ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 62%, rgb(255 255 255 / 0.1) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
}

.status__flame {
  display: inline-flex;
  margin-left: 8px;
  font-size: 15px;
  color: var(--flame);
  filter: drop-shadow(0 0 5px rgb(255 159 46 / 0.8));
}

.agenda__note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--fg-3);
}

.agenda__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.agenda__head span {
  font-size: 0.84rem;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.agenda__head h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.012em;
}

.agenda__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.mission {
  --r: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 14px 16px;
}

.mission__mark {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  font-size: 19px;
  color: rgb(255 255 255 / 0.86);
}

.mission.is-done .mission__mark {
  border: 1px solid transparent;
  background: var(--tube) padding-box, var(--edge) border-box;
  box-shadow: 0 0 18px color-mix(in srgb, var(--light) 70%, transparent);
  color: #fff;
}

.mission h4 {
  margin: 0;
  font: 700 1rem/1.25 var(--font-display);
  font-variation-settings: "ROND" 100;
}

.mission__reward {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
  font: 700 0.84rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

.mission__reward .coin {
  --s: 17px;
}

.mission__progress {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.bar {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  overflow: hidden;
}

.bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--fill);
  transform-origin: 0 50%;
  transform: scaleX(var(--v, 0));
}

.js .bar i {
  transform: scaleX(0);
}

.js .is-in .bar i {
  transform: scaleX(var(--v, 0));
  transition: transform var(--dur-gentle) var(--spring-gentle) 0.5s;
}

/* ───────── Ränge: der Ausweis (MemberCard) ───────── */

.ranks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(46px, 6vw, 70px);
}

.pass {
  --u: clamp(0.92px, 0.62px + 0.085vw, 1.42px);
  --sway: 0deg;
  --pitch: 0deg;
  position: relative;
  width: min(calc(356 * var(--u)), 100%);
  perspective: calc(900 * var(--u));
  touch-action: pan-y;
  cursor: grab;
}

.pass::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 26 * var(--u));
  translate: -50% -50%;
  width: calc(400 * var(--u));
  max-width: 120%;
  aspect-ratio: 1 / 0.19;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--light) 40%, transparent), color-mix(in srgb, var(--light) 22%, transparent) 32%, color-mix(in srgb, var(--light) 7%, transparent) 58%, color-mix(in srgb, var(--light) 1.5%, transparent) 80%, color-mix(in srgb, var(--light) 0%, transparent));
  transition: background 0.5s;
}

.pass__card {
  position: relative;
  height: calc(220 * var(--u));
  padding: calc(20 * var(--u));
  display: flex;
  flex-direction: column;
  transform-origin: 50% 100%;
  transform: rotateX(calc(10deg + var(--pitch))) rotateY(var(--sway));
  transition: transform var(--dur-bouncy) var(--spring-bouncy);
}

.pass.is-held .pass__card {
  transition: none;
}

.pass__card > :not(.surface) {
  position: relative;
  z-index: 2;
}

.pass .surface {
  --r: calc(26 * var(--u));
  --depth: calc(6 * var(--u));
  --reach: calc(300 * var(--u));
}

/* Der schillernde Streifen, wie das Sicherheitsmerkmal einer echten Karte. */
.pass__stripe {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(122 92 255 / 0) 30%, rgb(52 176 255 / 0.17) 43%, rgb(46 200 192 / 0.15) 51%, rgb(240 180 60 / 0.15) 59%, rgb(255 90 110 / 0) 72%);
  background-size: 160% 160%;
  background-position: calc(50% + var(--shift, 0%)) 50%;
}

.pass__mark {
  position: absolute;
  right: calc(-10 * var(--u));
  top: 50%;
  translate: 0 -46%;
  font: 900 calc(210 * var(--u)) / 1 var(--font-serif);
  color: rgb(255 255 255 / 0.045);
}

.pass__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.pass__brand {
  display: inline-flex;
  align-items: center;
  gap: calc(9 * var(--u));
  font: 700 calc(12 * var(--u)) / 1 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.9);
}

.pass__seal {
  display: grid;
  place-items: center;
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #6c94ff, #4c7dff 55%, #3d64cc) padding-box, var(--edge) border-box;
  font: 900 calc(17 * var(--u)) / 1 var(--font-serif);
  letter-spacing: 0;
  color: #fff;
}

.pass__avatar {
  display: grid;
  place-items: center;
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #6c94ff, #4c7dff 55%, #3d64cc) padding-box, var(--edge) border-box;
  box-shadow: 0 calc(3 * var(--u)) calc(18 * var(--u)) rgb(76 125 255 / 0.45);
  font: 800 calc(15.5 * var(--u)) / 1 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: #fff;
}

.pass__rank {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--u));
  margin-top: auto;
  font: 700 calc(10 * var(--u)) / 1 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.4s;
}

.pass__rank .icon {
  font-size: 1.15em;
}

.pass__name {
  margin-top: calc(6 * var(--u));
  font: 700 calc(28 * var(--u)) / 1.1 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: -0.015em;
}

.pass__stats {
  display: flex;
  margin-top: calc(15 * var(--u));
}

.pass__stats div {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--u));
}

.pass__stats div + div {
  margin-left: calc(16 * var(--u));
  padding-left: calc(16 * var(--u));
  border-left: 1px solid rgb(255 255 255 / 0.12);
}

.pass__stats dt {
  font: 700 calc(8.5 * var(--u)) / 1 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.48);
}

.pass__stats dd {
  font: 700 calc(18 * var(--u)) / 1 var(--font-display);
  font-variation-settings: "ROND" 100;
  font-variant-numeric: tabular-nums;
}

.pass.is-promoted .pass__card {
  animation: promote var(--dur-bouncy) var(--spring-bouncy);
}

@keyframes promote {
  0% {
    scale: 0.94;
  }
}

/* Der Regler: das Level als Leuchtröhre mit den acht Rängen als Knoten. */
.ladder {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.ladder__now {
  text-align: center;
  font: 650 clamp(1.06rem, 1rem + 0.3vw, 1.2rem) / 1.3 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: var(--ink);
  transition: color 0.4s;
}

.ladder__rail {
  position: relative;
  width: 100%;
  height: 44px;
}

.ladder__marks {
  position: absolute;
  inset: 0 14px;
  pointer-events: none;
}

.ladder__marks i {
  position: absolute;
  top: 50%;
  left: var(--at);
  width: 10px;
  height: 10px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #2a2a2a;
  transition: background-color 0.3s ease;
}

.ladder__marks i.is-on {
  background: var(--light);
}

.ladder__input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  cursor: grab;
  touch-action: pan-y;
}

.ladder__input:active {
  cursor: grabbing;
}

.ladder__input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--light) var(--p, 0%), rgb(255 255 255 / 0.1) var(--p, 0%));
}

.ladder__input::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--light) var(--p, 0%), rgb(255 255 255 / 0.1) var(--p, 0%));
}

.ladder__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.ladder__input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.ladder__input:focus-visible {
  outline: none;
}

.ladder__input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Die acht Ränge unter dem Regler, jeder mit dem Level, ab dem er gilt. */
.ladder__names {
  position: relative;
  width: calc(100% - 28px);
  height: 40px;
  margin-top: -8px;
}

.ladder__names li {
  position: absolute;
  left: var(--at);
  top: 0;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font: 650 0.75rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: var(--fg-3);
  transition: color 0.3s;
}

.ladder__names small {
  font: 500 0.69rem/1 var(--font-text);
  font-variant-numeric: tabular-nums;
  color: var(--fg-3);
}

.ladder__names li.is-on {
  color: rgb(255 255 255 / 0.82);
}

.ladder__names li.is-now {
  color: var(--ink);
}

.ladder__hint {
  font-size: 0.84rem;
  color: var(--fg-3);
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .deck,
  .pass,
  .phones {
    cursor: default;
  }
}

/* ───────── Kurse ───────── */

.courses {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Der Kurswechsler: nur der gewählte Kurs zeigt seinen Namen. */
.rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rail button {
  --light: var(--c);
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(255 255 255 / 0.04);
  font: 600 1rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.rail button:hover {
  background: rgb(255 255 255 / 0.08);
}

.rail button:active {
  transform: scale(0.97);
}

.rail button .icon {
  font-size: 20px;
  color: color-mix(in srgb, var(--c), white 20%);
}

.rail button span {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns var(--dur-smooth) var(--spring-smooth), margin-left var(--dur-smooth) var(--spring-smooth);
}

.rail button span b {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: inherit;
}

.rail button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
}

.rail button[aria-pressed="true"] .icon {
  color: color-mix(in srgb, var(--c), white 30%);
}

.rail button[aria-pressed="true"] span {
  grid-template-columns: 1fr;
  margin-left: 10px;
}

.course {
  --r: 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 3.6vw, 44px);
  transition: background 0.4s;
}

.course__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.course__main .tilemark {
  width: 60px;
  height: 60px;
  border-radius: 19px;
  font-size: 28px;
}

.course__main h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
}

.course__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.course__counts div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.course__counts dd {
  order: -1;
  font: 780 clamp(1.7rem, 1.4rem + 1vw, 2.2rem) / 1 var(--font-display);
  font-variation-settings: "ROND" 100;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.course__counts dt {
  font-size: 0.84rem;
  color: var(--fg-2);
}

.course__modules .overline {
  font-size: 0.69rem;
  margin-bottom: 14px;
}

.modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modules li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.055);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09);
  font-size: 0.89rem;
  line-height: 1.25;
  color: rgb(255 255 255 / 0.9);
  animation: rise var(--dur-smooth) var(--spring-smooth) both;
  animation-delay: calc(var(--n) * 18ms);
}

.modules li i {
  font: 700 0.75rem/1 var(--font-display);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.modules__more {
  margin-top: 14px;
  font: 650 0.9rem var(--font-display);
  font-variation-settings: "ROND" 100;
  color: var(--ink);
  padding-block: 6px;
}

/* ───────── Quellen: das Normenregister ───────── */

.register {
  --r: 30px;
  padding: clamp(18px, 2.6vw, 28px) clamp(8px, 1.4vw, 14px) 10px;
  max-width: 560px;
  margin-inline: auto;
}

.register__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 12px;
  margin-bottom: 10px;
}

.register__count {
  font-size: 0.84rem;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.register__list a {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  border-radius: 14px;
  transition: background-color 0.2s;
}

.register__list li + li a {
  box-shadow: 0 -1px 0 rgb(255 255 255 / 0.07);
}

.register__list a:hover {
  background: rgb(255 255 255 / 0.05);
  box-shadow: none;
}

.register__list li:hover + li a {
  box-shadow: none;
}

.register__cite {
  font: 600 1.03rem/1.25 var(--font-serif);
  color: var(--ink);
}

.register__what {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--fg-2);
}

.register__what b {
  display: block;
  font-weight: 500;
  color: rgb(255 255 255 / 0.92);
}

.register__list .icon {
  font-size: 0.8rem;
  color: var(--fg-3);
  transition: color 0.2s, translate 0.2s;
}

.register__list a:hover .icon {
  color: var(--ink);
  translate: 2px -2px;
}

/* ───────── Datenschutz ───────── */

.prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 36em;
  margin-inline: auto;
  color: var(--fg-2);
  text-wrap: pretty;
}

.prose .link {
  margin-top: 4px;
}

/* ───────── Beta ───────── */

.install {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.install li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgb(255 255 255 / 0.9);
}

.install__no {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  font: 700 0.84rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: var(--ink);
}

.station--last .actions {
  margin-top: 14px;
}

.station--last .meta {
  margin-top: -6px;
}

/* Drei echte Bildschirme im Fächer: das Gegenstück zum Kartenfächer oben. */
.phones {
  --u: clamp(0.8px, 0.36px + 0.078vw, 1.3px);
  --sway: 0deg;
  --pitch: 0deg;
  position: relative;
  height: calc(470 * var(--u));
  display: grid;
  place-items: center;
  perspective: calc(1200 * var(--u));
  touch-action: pan-y;
  cursor: grab;
}

.phones::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(460 * var(--u));
  translate: -50% -50%;
  width: calc(560 * var(--u));
  max-width: 130%;
  aspect-ratio: 1 / 0.17;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--light) 44%, transparent), color-mix(in srgb, var(--light) 24%, transparent) 32%, color-mix(in srgb, var(--light) 8%, transparent) 58%, color-mix(in srgb, var(--light) 1.5%, transparent) 80%, color-mix(in srgb, var(--light) 0%, transparent));
}

.phones__fan {
  position: relative;
  width: calc(196 * var(--u));
  height: calc(426 * var(--u));
  margin-top: calc(-20 * var(--u));
  transform-origin: 50% 100%;
  transform: rotateX(calc(7deg + var(--pitch))) rotateY(var(--sway));
  transition: transform var(--dur-bouncy) var(--spring-bouncy);
}

.phone {
  position: absolute;
  inset: 0;
  padding: calc(5 * var(--u));
  border-radius: calc(34 * var(--u));
  background: linear-gradient(180deg, #2a2a2a, #0b0b0b);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2), 0 calc(5 * var(--u)) 0 #050505;
  transform-origin: 50% 100%;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(29 * var(--u));
}

.phone--left {
  transform: translate(calc(-112 * var(--u)), calc(8 * var(--u))) rotate(-11deg) scale(0.9);
}

.phone--right {
  transform: translate(calc(112 * var(--u)), calc(8 * var(--u))) rotate(11deg) scale(0.9);
}

.phone--left img,
.phone--right img {
  filter: brightness(0.62);
}

.js .phones .phone--left,
.js .phones .phone--right {
  transform: translate(0, calc(8 * var(--u))) rotate(0deg) scale(0.9);
}

.js .is-in .phones .phone--left {
  transform: translate(calc(-112 * var(--u)), calc(8 * var(--u))) rotate(-11deg) scale(0.9);
  transition: transform var(--dur-bouncy) var(--spring-bouncy) 0.25s;
}

.js .is-in .phones .phone--right {
  transform: translate(calc(112 * var(--u)), calc(8 * var(--u))) rotate(11deg) scale(0.9);
  transition: transform var(--dur-bouncy) var(--spring-bouncy) 0.33s;
}

/* ───────── Fragen ───────── */

.faq {
  position: relative;
  z-index: 1;
  padding-top: clamp(110px, 13vw, 190px);
}

.faq h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
}

.faq__list {
  margin-top: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font: 680 clamp(1.06rem, 1rem + 0.3vw, 1.22rem) / 1.3 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: -0.008em;
  transition: color 0.2s;
}

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

.faq summary .icon {
  font-size: 0.9rem;
  color: var(--fg-3);
  transition: rotate var(--dur-snappy) var(--spring-snappy), color 0.2s;
}

.faq summary:hover .icon {
  color: #fff;
}

.faq details[open] summary .icon {
  rotate: 180deg;
  color: #fff;
}

.faq details p {
  padding: 0 4px 24px;
  max-width: 44em;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ───────── Fuß ───────── */

.foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(90px, 11vw, 150px);
  padding-block: 36px calc(120px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hairline);
}

.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 40px;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.foot__brand img {
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16);
}

.foot__name {
  font: 730 1.12rem/1.2 var(--font-display);
  font-variation-settings: "ROND" 100;
}

.foot__line {
  font-size: 0.86rem;
  color: var(--fg-3);
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  font: 560 0.92rem var(--font-display);
  font-variation-settings: "ROND" 100;
  color: var(--fg-2);
}

.foot__nav a {
  padding-block: 6px;
  transition: color 0.2s;
}

.foot__nav a:hover {
  color: #fff;
}

.foot__legal {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--fg-3);
}

/* ───────── Tagesziel (DailyGoalAccessory): schwebt unten, füllt sich mit der Probelektion ───────── */

.goal {
  --light: var(--flame);
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: min(430px, calc(100% - 28px));
  translate: -50% 0;
  transform: translateY(150%);
  opacity: 0;
  /* Unsichtbar heißt auch: nicht mit der Tastatur erreichbar. */
  visibility: hidden;
  transition: transform var(--dur-smooth) var(--spring-smooth), opacity 0.3s, visibility 0s linear 0.4s;
}

.goal.is-up {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform var(--dur-smooth) var(--spring-smooth), opacity 0.3s, visibility 0s;
}

.goal.is-reached {
  --light: var(--success);
}

.goal__body,
.goal__cta {
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(24 24 26 / 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.5);
}

.goal__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 14px;
}

.goal__icon {
  font-size: 18px;
  color: var(--light);
}

.goal__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.goal__label {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  color: var(--fg-2);
}

.goal.is-reached .goal__label {
  color: var(--success);
}

.goal__bar {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.1);
  overflow: hidden;
}

.goal__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--light);
  transform-origin: 0 50%;
  transform: scaleX(var(--v, 0));
  transition: transform var(--dur-gentle) var(--spring-gentle);
}

.goal__xp {
  font: 600 0.82rem/1 var(--font-text);
  font-variant-numeric: tabular-nums;
  color: rgb(255 255 255 / 0.9);
}

.goal__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-color: transparent;
  background: #fff;
  font: 600 0.9rem/1 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: #0a0a0a;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.goal__cta:hover {
  background: rgb(255 255 255 / 0.86);
}

.goal__cta:active {
  transform: scale(0.97);
}

.goal__cta .icon {
  font-size: 0.85em;
}

/* ───────── Unterseiten: Impressum und Fehlerseite ───────── */

.doc {
  padding-top: calc(var(--top) + env(safe-area-inset-top, 0px) + clamp(40px, 8vw, 96px));
}

.doc h1 {
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.5rem);
  line-height: 1.04;
}

.doc h2 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.doc section {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.doc p {
  margin-top: 10px;
  max-width: 40em;
  color: var(--fg-2);
  text-wrap: pretty;
}

.doc a:not(.btn) {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.doc a:not(.btn):hover {
  text-decoration-color: #fff;
}

.doc__meta {
  font-size: 0.9rem;
}

.doc__lead {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.18rem);
  line-height: 1.55;
}

.doc address {
  margin-top: 10px;
  font-style: normal;
  line-height: 1.6;
  color: var(--fg);
}

.doc__facts {
  display: grid;
  margin: 12px 0 0;
  max-width: 44em;
}

.doc__facts > div {
  display: grid;
  grid-template-columns: minmax(0, 11em) minmax(0, 1fr);
  gap: 4px 20px;
  padding-block: 12px;
  border-top: 1px solid var(--hairline);
}

.doc__facts > div:first-child {
  border-top: 0;
  padding-top: 4px;
}

.doc__facts dt {
  font: 600 0.92rem/1.5 var(--font-display);
  font-variation-settings: "ROND" 100;
  color: var(--fg-3);
}

.doc__facts dd {
  margin: 0;
  color: var(--fg-2);
}

@media (max-width: 560px) {
  .doc__facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.doc .doc__meta,
.doc .doc__stand {
  color: var(--fg-3);
}

.doc__stand {
  margin-top: 40px;
  font-size: 0.84rem;
}

.doc--center {
  display: grid;
  min-height: 72vh;
  place-items: center;
  text-align: center;
}

.doc--center p {
  margin-inline: auto;
}

.doc--center .btn {
  margin-top: 18px;
}

.doc__code {
  font: 800 clamp(4.5rem, 3rem + 6vw, 7.5rem) / 1 var(--font-display);
  font-variation-settings: "ROND" 100;
  letter-spacing: -0.03em;
  color: rgb(255 255 255 / 0.14);
}

.foot--doc {
  margin-top: clamp(70px, 9vw, 120px);
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.foot__nav a[aria-current="page"] {
  color: #fff;
}

/* ───────── Auftritte ───────── */

/* Texte stehen sofort da. Die Ausstellungsstücke der Abschnitte (Lektion,
   Pfad, Karten, Ausweis) kommen, wenn sie ins Bild rücken: bis dahin gedimmt
   und ein Stück tiefer, wie scrollReveal() in der App. Nie unsichtbar, und
   ohne JavaScript steht alles einfach da. */
.js [data-reveal] > * {
  opacity: 0.3;
  transform: translateY(22px) scale(0.985);
}

.js [data-reveal].is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform var(--dur-smooth) var(--spring-smooth);
  transition-delay: calc(var(--i, 0) * 65ms);
}

.js [data-reveal] > :nth-child(2) { --i: 1; }
.js [data-reveal] > :nth-child(3) { --i: 2; }
.js [data-reveal] > :nth-child(4) { --i: 3; }
.js [data-reveal] > :nth-child(5) { --i: 4; }
.js [data-reveal] > :nth-child(6) { --i: 5; }
.js [data-reveal] > :nth-child(7) { --i: 6; }

/* ───────── Ohne JavaScript ─────────
   Texte, Ausweis, Kurve und Bildschirme stehen auch so da. Was erst ein Skript füllt, bleibt weg. */

html:not(.js) .lesson__bar,
html:not(.js) .lesson__stage,
html:not(.js) [data-pathdemo],
html:not(.js) [data-agenda],
html:not(.js) [data-courses],
html:not(.js) .register,
html:not(.js) .ladder {
  display: none;
}

/* ───────── Schmale Schirme ───────── */

@media (max-width: 1000px) {
  .top__nav {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hero__object {
    order: -1;
  }

  .deck .spine-point {
    display: none;
  }

  .spine-point--hero {
    display: block;
  }

  .deck {
    --u: clamp(0.95px, 0.36px + 0.195vw, 1.5px);
  }

  .hero__text {
    padding-top: 0;
    gap: 22px;
  }

  .station--split > .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .pass {
    --u: clamp(0.86px, 0.5px + 0.11vw, 1.3px);
  }

  .phones {
    --u: clamp(0.72px, 0.26px + 0.14vw, 1.2px);
  }

  .course {
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (max-width: 640px) {
  :root {
    --top: 60px;
  }

  body {
    font-size: 15.5px;
  }

  .station {
    padding-top: 136px;
  }

  .station--center .station__head {
    align-items: flex-start;
    text-align: left;
  }

  .actions {
    align-self: stretch;
  }

  .hero .btn,
  .station--last .btn,
  .done .btn {
    flex: 1 1 100%;
  }

  .node {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .spine__dark,
  .spine__lit {
    stroke-width: 6;
  }

  .spine__glow {
    stroke-width: 10;
  }

  .lesson__stage {
    min-height: 380px;
  }

  .match {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 8px;
  }

  .tile {
    padding: 9px 11px;
    font-size: 0.87rem;
  }

  .tile--left {
    font-size: 0.9rem;
  }

  .concept::after {
    font-size: 220px;
    bottom: -70px;
  }

  .register__list a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
  }

  .register__what {
    grid-column: 1;
    grid-row: 2;
  }

  .register__list .icon {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .foot__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Trennen nur lange Wörter, und nie nach zwei Buchstaben („ei-nen“). */
  p,
  li,
  .tile,
  .option__text {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
    -webkit-hyphenate-limit-before: 4;
    -webkit-hyphenate-limit-after: 4;
  }

  .goal__cta span {
    display: none;
  }

  .goal__cta {
    padding: 0 15px;
  }

  .goal__cta .icon {
    font-size: 1em;
    opacity: 1;
  }

  .ladder__marks i {
    width: 11px;
    height: 11px;
  }

  .ladder__names {
    display: none;
  }
}

/* ───────── Weniger Bewegung ───────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
  }

  .shimmer,
  .pnode__pulse {
    display: none;
  }

  .deck__fan,
  .pass__card,
  .phones__fan {
    transition: none;
  }

  .step > * {
    animation: none;
  }

  .js [data-reveal] > * {
    transform: none;
  }

  .js [data-reveal].is-in > * {
    transition: opacity 0.3s ease;
    transition-delay: 0ms;
  }
}
