/*
 * COSMONIA, die Website. Dieselbe Gestaltung wie im Spiel: Grund Tintenwasser, Sonnengelb, Milch statt Weiss,
 * Knete-Knöpfe mit dicker Kante, die Schrift Baloo 2 (SIL Open Font License 1.1, liegt bei der Seite).
 * Farben stehen nur hier oben als Tokens.
 */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-display: swap;
  font-weight: 400 500;
  src: url('schrift/baloo-2-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-display: swap;
  font-weight: 600 700;
  src: url('schrift/baloo-2-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-display: swap;
  font-weight: 800 900;
  src: url('schrift/baloo-2-latin-800-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #343f78;
  --grund-tief: #262e5e;
  --tinte: #1d2150;
  --panel: #43508f;
  --panel-kante: #2a3366;
  --line: #5965a3;
  --text: #fff7ea;
  --muted: #c3c8e8;
  --accent: #ffc823;
  --accent-kante: #c99400;
  --koralle: #ff5a4e;
  --koralle-kante: #c23d34;
  --tuerkis: #4fc3b0;
  --tuerkis-kante: #2f8f80;
  --violett: #8a5be0;
  --violett-kante: #5e3aa6;
  --blau: #4e66e0;
  --blau-kante: #3044a8;
  --himmel: #8fe3ff;
  --milch: #fff7ea;
  --milch-kante: #d2c4aa;
  --schrift: 'Baloo 2', 'Nunito', 'Avenir Next Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --breite: 1120px;
  --rund: 22px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* Ein paar ruhige Sterne wie in der Kampfarena */
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255, 247, 234, 0.5) 0 1.2px, transparent 2px),
    radial-gradient(circle at 31% 6%, rgba(255, 247, 234, 0.35) 0 1px, transparent 1.6px),
    radial-gradient(circle at 74% 9%, rgba(255, 247, 234, 0.45) 0 1.3px, transparent 2px),
    radial-gradient(circle at 92% 28%, rgba(255, 247, 234, 0.3) 0 1px, transparent 1.6px),
    radial-gradient(circle at 4% 44%, rgba(255, 247, 234, 0.3) 0 1px, transparent 1.6px),
    radial-gradient(circle at 58% 22%, rgba(255, 247, 234, 0.25) 0 1px, transparent 1.6px),
    linear-gradient(180deg, #343f78 0%, #2c3670 55%, #262e5e 100%);
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: #ffd95c;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.7rem, 4.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

.huelle {
  width: min(100% - 32px, var(--breite));
  margin-inline: auto;
}

.leise {
  color: var(--muted);
}

/* ── Kopf ─────────────────────────────────────────────────────────────── */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(38, 46, 94, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(89, 101, 163, 0.5);
}

.kopf .huelle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
}

.marke img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--panel-kante);
}

.marke:hover {
  color: var(--text);
}

.navi {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navi a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.navi a:hover,
.navi a[aria-current='page'] {
  color: var(--text);
  background: var(--panel);
}

/* „Spielen“ steht oben immer als kleiner gelber Knopf */
.navi a.navi-spielen {
  background: var(--accent);
  color: var(--tinte);
  box-shadow: 0 3px 0 var(--accent-kante);
}

.navi a.navi-spielen:hover {
  color: var(--tinte);
}

.navi {
  flex-wrap: nowrap;
}

@media (max-width: 640px) {
  .navi .nur-breit {
    display: none;
  }
}

@media (max-width: 420px) {
  .navi .nur-mittel {
    display: none;
  }

  .marke {
    letter-spacing: 0.1em;
  }
}

/* ── Knöpfe: Knete mit heller Kante oben und dicker Kante unten ──────────── */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 24px;
  border: none;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--tinte);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 5px 0 var(--accent-kante);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.knopf:hover {
  color: var(--tinte);
  filter: brightness(1.04);
}

.knopf:active {
  transform: translateY(4px);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 1px 0 var(--accent-kante);
}

.knopf.leise {
  background: var(--panel);
  color: var(--text);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 5px 0 var(--panel-kante);
}

.knopf.leise:active {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 1px 0 var(--panel-kante);
}

.knopf.bald {
  cursor: default;
  opacity: 0.85;
}

.knopf.bald:active {
  transform: none;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 5px 0 var(--panel-kante);
}

/* ── Bühne (Startbereich) ─────────────────────────────────────────────── */
.buehne {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 88px) 0 clamp(48px, 8vw, 96px);
}

.buehne .huelle {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 860px) {
  .buehne .huelle {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
}

.symbol-gross {
  width: clamp(96px, 14vw, 132px);
  height: auto;
  border-radius: 24%;
  margin-bottom: 18px;
  box-shadow: 0 8px 0 var(--panel-kante), 0 18px 40px rgba(12, 16, 44, 0.45);
}

@media (max-width: 860px) {
  .symbol-gross {
    margin-inline: auto;
  }
}

.logo {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 5px 0 var(--accent-kante), 0 9px 0 rgba(29, 33, 80, 0.55), 0 0 30px rgba(255, 207, 90, 0.3);
  line-height: 1.05;
}

.unterzeile {
  margin: 14px 0 22px;
  font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  font-weight: 700;
  color: var(--milch);
  letter-spacing: 0.02em;
}

.anriss {
  font-size: clamp(1.08rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 34em;
}

@media (max-width: 860px) {
  .anriss {
    margin-inline: auto;
  }
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: 26px;
}

@media (max-width: 860px) {
  .knoepfe {
    justify-content: center;
  }
}

.knoepfe small {
  display: block;
  width: 100%;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Rechenzeichen wie Sterne: wenige, ruhig, sie schweben ganz langsam */
.himmelszeichen {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.himmelszeichen span {
  position: absolute;
  font-weight: 800;
  line-height: 1;
  opacity: 0.55;
  text-shadow: 0 0 16px currentColor;
  animation: schweben 11s ease-in-out infinite;
}

@keyframes schweben {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -14px;
    rotate: 8deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .himmelszeichen span {
    animation: none;
  }
}

/* ── Abschnitte ───────────────────────────────────────────────────────── */
.abschnitt {
  padding: clamp(48px, 8vw, 88px) 0;
}

.abschnitt.tief {
  background: rgba(29, 33, 80, 0.35);
  border-block: 1px solid rgba(89, 101, 163, 0.35);
}

.abschnitt-kopf {
  max-width: 44em;
  margin-bottom: 32px;
}

.abschnitt-kopf p {
  color: var(--muted);
  font-size: 1.12rem;
}

.dachzeile {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

/* Zahlen aus dem ersten Test */
.zahlen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 560px) {
  .zahlen {
    gap: 10px;
  }

  .zahl {
    padding: 12px 10px;
    text-align: center;
  }

  .zahl b {
    font-size: 1.3rem;
    white-space: nowrap;
  }

  .zahl span {
    display: block;
    font-size: 0.82rem;
    line-height: 1.25;
  }
}

.zahl {
  background: var(--milch);
  color: var(--tinte);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 5px 0 var(--milch-kante);
}

.zahl b {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 900;
  line-height: 1.1;
}

.zahl span {
  color: #5c5f8a;
  font-weight: 600;
}

/* ── Karussell ────────────────────────────────────────────────────────── */
.karussell {
  position: relative;
}

.karussell-band {
  /* Bezugspunkt für die Lage der Bilder (karussell.js) */
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(250px, 72vw);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding: 10px 4px 26px;
  scrollbar-width: none;
}

.karussell-band::-webkit-scrollbar {
  display: none;
}

.dia {
  scroll-snap-align: center;
  margin: 0;
}

.dia .bild {
  border-radius: 30px;
  padding: 8px;
  background: var(--tinte);
  box-shadow: 0 0 0 2px var(--line), 0 7px 0 var(--panel-kante);
  aspect-ratio: 800 / 1422;
}

.dia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
}

.dia figcaption {
  margin-top: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.dia figcaption b {
  display: block;
  color: var(--accent);
  font-weight: 800;
}

.karussell-steuerung {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.pfeil {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--milch);
  color: var(--tinte);
  font: inherit;
  font-weight: 900;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.8), 0 5px 0 var(--milch-kante);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.pfeil:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.8), 0 1px 0 var(--milch-kante);
}

.pfeil:disabled {
  opacity: 0.4;
  cursor: default;
}

.punkte {
  display: flex;
  gap: 8px;
}

.punkte button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}

.punkte button[aria-current='true'] {
  width: 28px;
  background: var(--accent);
}

/* ── Aufruf ───────────────────────────────────────────────────────────── */
.aufruf {
  text-align: center;
  background: var(--panel);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px) 22px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 7px 0 var(--panel-kante);
}

.aufruf .knoepfe {
  justify-content: center;
}

/* ── Textseiten (Impressum, Datenschutz) ──────────────────────────────── */
.text {
  max-width: 46em;
  padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 80px);
}

.text h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 900;
  color: var(--accent);
}

.text h2 {
  font-size: 1.35rem;
  margin-top: 1.8em;
}

.text ul {
  padding-left: 1.2em;
}

.text li {
  margin-bottom: 0.4em;
}

.text .kasten {
  background: var(--panel);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 5px 0 var(--panel-kante);
}

.text .kasten p:last-child {
  margin-bottom: 0;
}

.fehlt {
  background: var(--koralle);
  color: var(--milch);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 700;
}

/* ── Fuss ─────────────────────────────────────────────────────────────── */
.fuss {
  padding: 32px 0 40px;
  border-top: 1px solid rgba(89, 101, 163, 0.45);
  color: var(--muted);
  font-size: 0.95rem;
}

.fuss .huelle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.fuss a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.fuss a:hover {
  color: var(--accent);
}

/* Sprungziele nicht unter der festen Kopfleiste verstecken */
section[id] {
  scroll-margin-top: 72px;
}

.punkte[hidden] {
  display: none;
}

/* ── Bühne: Text links, Probier-Feld rechts ───────────────────────────── */
.buehne-text .dachzeile {
  margin-bottom: 14px;
}

.versprechen {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--milch);
}

.unterzeile {
  margin-bottom: 18px;
}

.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 860px) {
  .marken {
    justify-content: center;
  }
}

.marken li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: rgba(29, 33, 80, 0.55);
  border: 1px solid rgba(89, 101, 163, 0.6);
  font-weight: 700;
  font-size: 0.92rem;
}

.marken li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--tuerkis);
  color: var(--tinte);
  font-size: 0.8rem;
  font-weight: 900;
}

/* Das Probier-Feld sieht aus wie ein Kampf im Spiel */
.probe {
  justify-self: center;
  width: min(420px, 100%);
  background: var(--panel);
  border-radius: 28px;
  padding: 12px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 8px 0 var(--panel-kante), 0 26px 60px rgba(12, 16, 44, 0.5);
  rotate: 1.5deg;
}

@media (max-width: 860px) {
  .probe {
    rotate: 0deg;
  }
}

.probe-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 6px 10px;
}

.probe-titel {
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.9rem;
}

.probe-zaehler {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.arena {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 8px;
  padding: 14px 10px 18px;
  border-radius: 20px;
  background: radial-gradient(circle at 20% 15%, rgba(255, 247, 234, 0.5) 0 1px, transparent 2px), radial-gradient(circle at 70% 30%, rgba(255, 247, 234, 0.4) 0 1px, transparent 2px), #353f76;
  box-shadow: inset 0 0 0 2px rgba(89, 101, 163, 0.7);
  overflow: hidden;
}

.kaempfer {
  position: relative;
  display: grid;
  justify-items: center;
  padding-bottom: 30px;
}

/* Die schwebende Insel unter jedem Wesen: grüne Kante oben, brauner Boden darunter */
.kaempfer::before,
.kaempfer::after {
  content: '';
  position: absolute;
  left: 50%;
  translate: -50% 0;
}

.kaempfer::before {
  bottom: 18px;
  z-index: 1;
  width: 84%;
  height: 14px;
  border-radius: 999px;
  background: #8bc96a;
  box-shadow: inset 0 -4px 0 #6aa24f;
}

.kaempfer::after {
  bottom: 0;
  width: 70%;
  height: 28px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: #b07a4c;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.14);
}

.kaempfer img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 190px;
  height: auto;
  margin-top: -14%;
  translate: 0 16%;
}

.kaempfer.gegner {
  margin-bottom: 14px;
}

.schild {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  width: 100%;
  max-width: 160px;
  padding: 6px 10px 8px;
  border-radius: 12px;
  background: var(--milch);
  color: var(--tinte);
  box-shadow: 0 4px 0 var(--milch-kante);
  font-size: 0.82rem;
  line-height: 1.2;
}

.kaempfer.ich .schild {
  box-shadow: 0 0 0 3px var(--accent), 0 4px 0 var(--milch-kante);
}

.schild b {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.schild > span {
  font-weight: 700;
}

.lp {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #e6dcc8;
  overflow: hidden;
}

.lp i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #5fc77a;
  transition: width 0.45s ease;
}

.lp i[data-stufe='mittel'] {
  background: var(--accent);
}

.lp i[data-stufe='knapp'] {
  background: var(--koralle);
}

.kaempfer.getroffen img {
  animation: getroffen 0.45s ease;
}

@keyframes getroffen {
  0%,
  100% {
    translate: 0 16%;
    filter: none;
  }
  20% {
    translate: -8px 16%;
    filter: brightness(1.8);
  }
  45% {
    translate: 7px 16%;
  }
  70% {
    translate: -4px 16%;
    filter: brightness(1.3);
  }
}

.kaempfer.erschoepft img {
  opacity: 0.45;
  translate: 0 20%;
  transition: opacity 0.5s ease, translate 0.5s ease;
}

.probe-meldung {
  margin: 12px 0 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #3c4886;
  box-shadow: 0 4px 0 var(--panel-kante);
  font-weight: 800;
  min-height: 3.2em;
  display: flex;
  align-items: center;
}

.probe-aufgabe {
  padding: 12px;
  border-radius: 18px;
  background: #3c4886;
  box-shadow: 0 4px 0 var(--panel-kante);
  text-align: center;
}

.probe-zeile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-weight: 800;
}

.abzeichen {
  padding: 1px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--tinte);
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  box-shadow: 0 3px 0 var(--accent-kante);
}

.probe-term {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 7vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--milch);
}

.probe-antworten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.probe-antworten button {
  min-height: 56px;
  border: none;
  border-radius: 14px;
  background: var(--milch);
  color: var(--tinte);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.8), 0 5px 0 var(--milch-kante);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.2s ease;
}

.probe-antworten button:active {
  transform: translateY(4px);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.8), 0 1px 0 var(--milch-kante);
}

.probe-antworten button.richtig {
  background: #7fd99a;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 5px 0 #3f9a5a;
}

.probe-antworten button.falsch {
  background: #ff9a92;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 5px 0 var(--koralle-kante);
}

.probe-ende {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 6px;
}

.probe [hidden] {
  display: none !important;
}

/* ── Beleg: was ein echtes Kind gerechnet hat ─────────────────────────── */
.beleg {
  padding: clamp(36px, 6vw, 56px) 0;
  background: rgba(29, 33, 80, 0.35);
  border-block: 1px solid rgba(89, 101, 163, 0.35);
}

.beleg-titel {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-bottom: 18px;
  color: var(--milch);
}

.beleg-text {
  margin: 16px 0 0;
  color: var(--muted);
}

/* ── Vier Starter ─────────────────────────────────────────────────────── */
.starter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

@media (max-width: 860px) {
  .starter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.starter li {
  --farbe: var(--koralle);
  --kante: var(--koralle-kante);
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 0 14px 18px;
  border-radius: var(--rund);
  background: var(--panel);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 6px 0 var(--panel-kante);
}

.starter li.tuerkis {
  --farbe: var(--tuerkis);
  --kante: var(--tuerkis-kante);
}

.starter li.gelb {
  --farbe: var(--accent);
  --kante: var(--accent-kante);
}

.starter li.violett {
  --farbe: var(--violett);
  --kante: var(--violett-kante);
}

.starter img {
  width: min(170px, 100%);
  height: auto;
  margin: -6% 0 -16%;
  transition: translate 0.2s ease;
}

.starter li:hover img {
  translate: 0 -6px;
}

.starter-zeichen {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--farbe);
  color: var(--milch);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 4px 0 var(--kante);
}

.starter-zeichen svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
}

.starter-zeichen circle {
  stroke: none;
}

.starter li.gelb .starter-zeichen {
  color: var(--tinte);
}

.starter b {
  font-size: 1.25rem;
  font-weight: 800;
}

.starter li > span:last-child {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}

/* Ablauf in vier Schritten */
.ablauf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}

@media (max-width: 1000px) {
  .ablauf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.ablauf li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 14px;
  align-content: start;
}

.ablauf li::before {
  content: counter(schritt);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--milch);
  color: var(--tinte);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 4px 0 var(--milch-kante);
}

.ablauf b {
  font-size: 1.1rem;
}

.ablauf span {
  color: var(--muted);
  line-height: 1.45;
}

/* ── Reiter: Themen je Klasse ─────────────────────────────────────────── */
.reiter-leiste {
  display: none;
}

.reiter.bereit .reiter-leiste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 10px;
  margin-bottom: 18px;
}

@media (max-width: 560px) {
  .reiter.bereit .reiter-leiste {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .reiter-leiste button {
    padding: 6px 2px;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

.reiter-leiste button {
  min-height: 46px;
  padding: 6px 18px;
  border: none;
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 4px 0 var(--panel-kante);
}

.reiter-leiste button[aria-selected='true'] {
  background: var(--accent);
  color: var(--tinte);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 4px 0 var(--accent-kante);
}

.reiter-feld {
  background: var(--panel);
  border-radius: var(--rund);
  padding: 22px 24px 18px;
  margin-bottom: 18px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 6px 0 var(--panel-kante);
}

.reiter-feld[hidden] {
  display: none;
}

.reiter-feld h3 {
  color: var(--accent);
}

.themen {
  columns: 2 260px;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.themen li {
  break-inside: avoid;
  position: relative;
  padding: 4px 0 4px 26px;
  font-weight: 600;
}

.themen li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.85em;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: var(--tuerkis);
  box-shadow: 0 2px 0 var(--tuerkis-kante);
}

/* ── Zwei Wege: Eltern und Schule ─────────────────────────────────────── */
.wege {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 860px) {
  .wege {
    grid-template-columns: minmax(0, 1fr);
  }
}

.weg {
  background: var(--panel);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 7px 0 var(--panel-kante);
  scroll-margin-top: 80px;
}

.weg h2 {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
}

.haken {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.haken li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: start;
}

.haken li > * {
  grid-column: 2;
}

.haken li::before {
  grid-row: span 2;
  content: '✓';
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--tuerkis);
  color: var(--tinte);
  font-weight: 900;
  box-shadow: 0 3px 0 var(--tuerkis-kante);
}

.haken b {
  display: block;
}

.haken span {
  color: var(--muted);
}

.haken.klein {
  gap: 10px;
  margin: 14px 0 22px;
}

.haken.klein li {
  font-weight: 600;
}

/* ── Demo und Vollversion ─────────────────────────────────────────────── */
.abschnitt-kopf.mitte {
  margin-inline: auto;
  text-align: center;
}

.fassungen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 860px;
  margin-inline: auto;
}

@media (max-width: 720px) {
  .fassungen {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fassung {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--panel);
  border-radius: 26px;
  padding: 26px 26px 28px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 7px 0 var(--panel-kante);
}

.fassung .haken {
  flex: 1;
}

.fassung h3 {
  font-size: 1.6rem;
  margin: 0;
}

.fassung .preis {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.fassung.voll {
  background: linear-gradient(160deg, #5a4aa8, var(--panel) 70%);
  box-shadow: inset 0 0 0 2px rgba(255, 200, 35, 0.6), 0 7px 0 var(--panel-kante);
}

.fassung-band {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--koralle);
  color: var(--milch);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  box-shadow: 0 3px 0 var(--koralle-kante);
}

/* ── Häufige Fragen ───────────────────────────────────────────────────── */
.huelle.schmal {
  width: min(100% - 32px, 820px);
}

.fragen {
  display: grid;
  gap: 12px;
}

.fragen details {
  background: var(--panel);
  border-radius: 18px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 5px 0 var(--panel-kante);
}

.fragen summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 800;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}

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

.fragen summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--tinte);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 3px 0 var(--accent-kante);
  transition: rotate 0.2s ease;
}

.fragen details[open] summary::after {
  rotate: 45deg;
}

.fragen details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* ── Aufruf mit Plussi ────────────────────────────────────────────────── */
.aufruf {
  position: relative;
  overflow: hidden;
}

.aufruf-wesen {
  width: 150px;
  height: auto;
  margin: -40px auto -30px;
}

.fuss b {
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* ── Demo-Hinweis und Zähler ──────────────────────────────────────────── */
.demo-hinweis {
  margin: 16px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .demo-hinweis {
    margin-inline: auto;
  }
}

/* Der Live-Ticker: rollende Ziffern wie auf einer Anzeigetafel, dazu ein pulsierendes LIVE */
.ticker {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 16px 0 0;
  padding: 8px 16px 8px 8px;
  border-radius: 18px;
  background: var(--tinte);
  box-shadow: inset 0 0 0 2px rgba(255, 200, 35, 0.35), 0 5px 0 var(--panel-kante);
}

.ticker[hidden] {
  display: none;
}

.ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--koralle);
  color: var(--milch);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  box-shadow: 0 3px 0 var(--koralle-kante);
}

.ticker-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--milch);
  animation: live 1.4s ease-in-out infinite;
}

@keyframes live {
  0%,
  100% {
    opacity: 1;
    scale: 1;
  }
  50% {
    opacity: 0.35;
    scale: 0.7;
  }
}

.ticker-zahl {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  font-weight: 900;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ticker-zahl .ziffer {
  display: inline-block;
  height: 1.3em;
  width: 0.8em;
  overflow: hidden;
  border-radius: 7px;
  background: var(--milch);
  color: var(--tinte);
  box-shadow: inset 0 -3px 0 var(--milch-kante);
}

.ticker-zahl .band {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--z, 0) * -1.3em));
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ticker-zahl .band span {
  display: grid;
  place-items: center;
  height: 1.3em;
}

.ticker-zahl .trenner {
  color: var(--accent);
  padding-bottom: 0.12em;
}

.ticker-text {
  color: var(--milch);
  font-weight: 700;
  font-size: 0.95rem;
}

.ticker-plus {
  position: absolute;
  right: 12px;
  top: -6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--tinte);
  font-weight: 900;
  font-size: 0.85rem;
  pointer-events: none;
  animation: plus-steigt 1.6s ease-out forwards;
}

@keyframes plus-steigt {
  0% {
    opacity: 0;
    translate: 0 8px;
  }
  20% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
    translate: 0 -26px;
  }
}

.ticker.neu {
  animation: ticker-blitz 0.9s ease-out;
}

@keyframes ticker-blitz {
  0% {
    box-shadow: inset 0 0 0 2px rgba(255, 200, 35, 1), 0 0 24px rgba(255, 200, 35, 0.6), 0 5px 0 var(--panel-kante);
  }
  100% {
    box-shadow: inset 0 0 0 2px rgba(255, 200, 35, 0.35), 0 5px 0 var(--panel-kante);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-live::before,
  .ticker.neu {
    animation: none;
  }

  .ticker-zahl .band {
    transition: none;
  }
}

.ticker.klein {
  margin-top: 14px;
}

.ticker.klein .ticker-zahl {
  font-size: 1.2rem;
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .ticker {
    justify-content: center;
    text-align: center;
  }
}
