/* ==========================================================================
   Tanuki – Website
   Farben und Bedeutungen folgen den Design-Tokens der App (Tokens.swift):
   Papier = Fläche, Kakao = Aktion, Pfirsich = nächster Schritt, Salbei = geschafft.
   ========================================================================== */

@font-face {
  font-family: "Tanuki Rounded";
  src: url("../fonts/m-plus-rounded-1c-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tanuki Rounded";
  src: url("../fonts/m-plus-rounded-1c-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF6EE;
  --surface: #FFFCF7;
  --raised: #FFFFFF;
  --ink: #3F3027;
  --muted: #756456;
  --line: #E7DDCF;
  --cocoa: #795139;
  --cocoa-press: #664330;
  --on-cocoa: #FFFFFF;
  --peach: #F8E4D4;
  --peach-deep: #F1D3BC;
  --peach-line: #E4C8AE;
  --sage: #E5EBDD;
  --sage-ink: #4E6F4C;
  --verde: #1E7F4F;
  --rosso: #C4453C;
  --frame: #2B211B;
  --night: #191510;
  --night-raised: #26201A;
  --night-ink: #F6EBDE;
  --night-muted: #C0AD99;
  --night-line: #4A3D31;
  --todo-bg: #FCE9A8;
  --todo-ink: #5A3E00;

  --shadow-card: 0 1px 0 rgba(63, 48, 39, .04), 0 18px 40px -18px rgba(63, 48, 39, .28);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  --font-display: "Tanuki Rounded", ui-rounded, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);

  /* Hell/Dunkel-Schalter (Tag) */
  --tt-track: #F3D7BF;
  --tt-border: #E4C8AE;
  --tt-x: 0px;
  --tt-moon: 0;
  --tt-bite: translate(-17px, -15px);
  --tt-clouds: 1;
  --tt-clouds-shift: none;
  --tt-stars: 0;
  --tt-stars-shift: translateX(-6px) scale(.6);
  --tt-glow: rgba(255, 205, 100, .75);

  color-scheme: light;
}

/* Dunkles Design: per Schalter (data-theme) oder nach Systemeinstellung */
:root[data-theme="dark"] {
  --paper: #191510;
  --surface: #26201A;
  --raised: #302820;
  --ink: #F6EBDE;
  --muted: #C0AD99;
  --line: #4A3D31;
  --cocoa: #D5A580;
  --cocoa-press: #E2B996;
  --on-cocoa: #191510;
  --peach: #3E2C22;
  --peach-deep: #4C372A;
  --peach-line: #72523B;
  --sage: #273329;
  --sage-ink: #ABC4A0;
  --verde: #6FCB96;
  --rosso: #E06A5F;
  --frame: #0D0A08;
  --night: #0F0C09;
  --night-raised: #1E1813;
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, .6);
  --tt-track: #0F0C09;
  --tt-border: #4A3D31;
  --tt-x: 26px;
  --tt-moon: 1;
  --tt-bite: translate(0, 0);
  --tt-clouds: 0;
  --tt-clouds-shift: translateX(8px);
  --tt-stars: 1;
  --tt-stars-shift: none;
  --tt-glow: rgba(246, 231, 210, .3);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #191510;
    --surface: #26201A;
    --raised: #302820;
    --ink: #F6EBDE;
    --muted: #C0AD99;
    --line: #4A3D31;
    --cocoa: #D5A580;
    --cocoa-press: #E2B996;
    --on-cocoa: #191510;
    --peach: #3E2C22;
    --peach-deep: #4C372A;
    --peach-line: #72523B;
    --sage: #273329;
    --sage-ink: #ABC4A0;
    --verde: #6FCB96;
    --rosso: #E06A5F;
    --frame: #0D0A08;
    --night: #0F0C09;
    --night-raised: #1E1813;
    --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, .6);
    --tt-track: #0F0C09;
    --tt-border: #4A3D31;
    --tt-x: 26px;
    --tt-moon: 1;
    --tt-bite: translate(0, 0);
    --tt-clouds: 0;
    --tt-clouds-shift: translateX(8px);
    --tt-stars: 1;
    --tt-stars-shift: none;
    --tt-glow: rgba(246, 231, 210, .3);
    color-scheme: dark;
  }
}

/* ---------- Grundlagen ---------- */

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 1.3rem + 2.7vw, 3.25rem); }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }

p { margin: 0; }
p + p { margin-top: .85em; }

a {
  color: var(--cocoa);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
a:hover { text-decoration-thickness: .14em; }

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

code {
  font-size: .9em;
  padding: .1em .35em;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

.section__intro { max-width: 38rem; }
.section__intro > p { margin-top: 1.1rem; }
.section__intro > p:first-of-type { margin-top: 1.25rem; font-size: 1.0625em; }

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

/* Tanuki mit Sprechblase: Basis (Komponenten überschreiben Position und Größe) */
.buddy { position: relative; aspect-ratio: 1; }
.buddy > .tanuki {
  position: relative;
  z-index: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 20;
  padding: 12px 18px;
  border-radius: var(--r-full);
  background: var(--cocoa);
  color: var(--on-cocoa);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

mark.todo {
  padding: .05em .4em;
  border-radius: 6px;
  background: var(--todo-bg);
  color: var(--todo-ink);
  font: 600 .875em/1.5 var(--font-body);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font: 700 1.0625rem/1 var(--font-display);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn .icon { width: 20px; height: 20px; flex: none; }

.btn--cocoa { background: var(--cocoa); color: var(--on-cocoa); }
.btn--cocoa:hover { background: var(--cocoa-press); }

.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--peach-line); background: var(--raised); }

.btn--small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }

.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 0 22px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  font: 700 1.0625rem/1 var(--font-display);
  color: var(--ink);
}
.store-soon .icon { width: 22px; height: 22px; color: var(--cocoa); }

.link-quiet {
  font-weight: 600;
  color: var(--ink);
  text-decoration-color: var(--peach-line);
  text-decoration-thickness: 2px;
}
.link-quiet:hover { text-decoration-color: var(--cocoa); }

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

.site-header { padding-block: 18px; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-block;
  color: var(--cocoa);
  font: 800 1.875rem/1 var(--font-display);
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand--small { font-size: 1.375rem; }

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-full);
  color: var(--ink);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: var(--surface); }

@media (max-width: 639px) {
  .site-nav li:not(:last-child) { display: none; }
}

/* ---------- Hell/Dunkel-Schalter (Tag: Sonne aus Ton, Nacht: Mondsichel, Sterne, Tanuki-„z“) ---------- */

.site-header__end { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  position: relative;
  flex: none;
  width: 56px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--tt-border);
  border-radius: var(--r-full);
  background: var(--tt-track);
  box-shadow: inset 0 1px 3px rgba(43, 33, 27, .16);
  cursor: pointer;
  overflow: hidden;
  transition: background-color .35s ease, border-color .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:focus-visible { outline: 3px solid var(--cocoa); outline-offset: 3px; border-radius: var(--r-full); }

.theme-toggle__stars,
.theme-toggle__clouds {
  position: absolute;
  top: 0;
  width: 26px;
  height: 28px;
  pointer-events: none;
  transition: opacity .3s ease, transform .45s cubic-bezier(.3, 1.3, .5, 1);
}
.theme-toggle__stars {
  left: 2px;
  fill: #F6E7D2;
  opacity: var(--tt-stars);
  transform: var(--tt-stars-shift);
  transition-delay: .08s;
}
.theme-toggle__stars text { font: 800 8px/1 var(--font-display); opacity: .75; }
.theme-toggle__clouds {
  right: 2px;
  fill: #FFFCF7;
  opacity: var(--tt-clouds);
  transform: var(--tt-clouds-shift);
}

.theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 34% 30%, #FCE7AE 0, #EEBF5C 46%, #D4932A 100%);
  box-shadow: 0 1px 2px rgba(43, 33, 27, .32);
  transform: translateX(var(--tt-x));
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), box-shadow .2s ease;
}
/* Mond aus cremefarbenem Ton */
.theme-toggle__knob::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFFDF8 0, #F4E3CB 55%, #D9C1A0 100%);
  opacity: var(--tt-moon);
  transition: opacity .35s ease;
}
/* Der „Biss“, der aus dem Kreis eine Sichel macht */
.theme-toggle__knob::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -6px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--tt-track);
  transform: var(--tt-bite);
  transition: transform .45s cubic-bezier(.3, 1.2, .5, 1), background-color .35s ease;
}
/* Sonne bzw. Mond leuchten leicht, wenn die Maus darüber ist (nicht auf Touch, dort bliebe es hängen) */
@media (hover: hover) {
  .theme-toggle:hover .theme-toggle__knob { box-shadow: 0 1px 2px rgba(43, 33, 27, .32), 0 0 9px 1px var(--tt-glow); }
}
.theme-toggle:active .theme-toggle__knob { transform: translateX(var(--tt-x)) scale(.92); }

/* Sanfter Farbwechsel der Seite beim Umschalten; der Schalter animiert selbst */
html.is-theme-switching body,
html.is-theme-switching body *:not(.theme-toggle):not(.theme-toggle *),
html.is-theme-switching body *:not(.theme-toggle):not(.theme-toggle *)::before,
html.is-theme-switching body *:not(.theme-toggle):not(.theme-toggle *)::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease !important;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(16px, 4vw, 56px) clamp(32px, 5vw, 72px); }

.hero__grid {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

.hero__title {
  font-size: clamp(2.875rem, 1.55rem + 5vw, 5.25rem);
  line-height: .98;
  letter-spacing: -0.03em;
  max-width: 10ch;
}

.hero__lead {
  margin-top: 28px;
  max-width: 31rem;
  font-size: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 22px;
  max-width: 30rem;
  color: var(--muted);
  font-size: .9375rem;
}

.hero__stage {
  position: relative;
  padding-top: clamp(104px, 11vw, 132px);
  max-width: 560px;
  width: 100%;
  justify-self: center;
}

/* Kein z-index am Wrapper: Tanuki bleibt hinter der Karte, die Sprechblase davor. */
.hero__buddy {
  position: absolute;
  top: 0;
  right: 9%;
  width: clamp(150px, 15vw, 184px);
}
.hero__buddy .bubble { max-width: min(220px, 52vw); }

/* ---------- Kostprobe (Quiz) ---------- */

.quiz {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 3.2vw, 32px);
  border: 1px solid var(--peach-line);
  border-radius: var(--r-xl);
  background: var(--peach);
  box-shadow: var(--shadow-card);
}

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

.quiz__label {
  font: 700 .9375rem/1.3 var(--font-display);
  letter-spacing: 0;
  color: var(--cocoa);
}

.quiz__progress {
  color: var(--muted);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}

.quiz__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  min-height: 112px;
}

.quiz__prompt { color: var(--muted); font-size: 1rem; }

.quiz__sentence {
  margin-top: 6px;
  font: 800 clamp(1.625rem, 1.2rem + 1.5vw, 2.125rem)/1.15 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.gap {
  display: inline-block;
  min-width: 2.6em;
  height: 1.05em;
  vertical-align: -.12em;
  border-bottom: 3px dotted var(--cocoa);
}
.gap.is-filled {
  min-width: 0;
  height: auto;
  vertical-align: baseline;
  border-bottom: 3px solid var(--sage-ink);
  color: var(--sage-ink);
}

.quiz__art {
  width: clamp(92px, 9vw, 120px);
  height: auto;
}

.quiz__options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: 600 1.0625rem/1.3 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease, transform .15s ease;
}
.option:hover { border-color: var(--peach-line); background: var(--raised); }
.option:active { transform: scale(.99); }

.option__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 2px solid var(--peach-line);
  border-radius: 50%;
  color: #fff;
}
.option__mark .icon { width: 18px; height: 18px; display: none; }

.option.is-correct {
  border-color: var(--sage-ink);
  background: var(--sage);
}
.option.is-correct .option__mark { border-color: var(--verde); background: var(--verde); }
.option.is-correct .i-check { display: block; }

.option.is-wrong {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
}
.option.is-wrong .option__mark { border-color: var(--rosso); background: var(--rosso); }
.option.is-wrong .i-cross { display: block; }

.option[aria-disabled="true"] { cursor: default; }
.option[aria-disabled="true"]:active { transform: none; }
.option.is-dimmed { opacity: .55; }

.quiz__result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  margin-top: 16px;
  min-height: 3em;
}
@media (max-width: 479px) {
  .quiz__result { grid-template-columns: 1fr; }
}

.quiz__feedback {
  font-size: 1rem;
  line-height: 1.5;
}
.quiz__feedback.is-hint { color: var(--muted); }

.quiz__nojs { display: none; margin-top: 12px; color: var(--muted); font-size: .9375rem; }

.quiz__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.quiz.is-done .quiz__options { display: none; }

/* ---------- Lernpfad ---------- */

/* Stufen-Reiter (wie im Lernpfad der App) */
.levels { margin-top: clamp(36px, 5vw, 56px); }

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

.level-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink);
  font: 800 1rem/1 var(--font-display);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.level-tab:hover { border-color: var(--peach-line); }
.level-tab[aria-selected="true"] {
  border-color: var(--cocoa);
  background: var(--cocoa);
  color: var(--on-cocoa);
}

/* Farben der Level-up-Kugeln (svg_animations/level-up-*.svg) */
.level-tab__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot, var(--muted));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}
.level-tab--a1 { --dot: #8C5A3C; }
.level-tab--a2 { --dot: #1E7F4F; }
.level-tab--b1 { --dot: #B6C2CF; }
.level-tab--b2 { --dot: #D69D30; }
.level-tab--c1 { --dot: #91C4D9; }
.level-tab--c2 { --dot: #373442; }
.level-tab[aria-selected="true"] .level-tab__dot { box-shadow: 0 0 0 2px var(--on-cocoa); }

.levels__panel { margin-top: clamp(28px, 4vw, 40px); }

.level-head { display: grid; gap: 6px 48px; }
@media (min-width: 900px) {
  .level-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title facts" "text facts";
    align-items: end;
  }
  .level-head__title { grid-area: title; }
  .level-head__text { grid-area: text; }
  .level-facts { grid-area: facts; }
}
.level-head__title { font-size: 1.5rem; }
.level-head__text { color: var(--muted); text-wrap: pretty; }

.level-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 10px 0 0;
}
/* Stufen mit Lernpfad: sechs Kennzahlen, mobil in zwei Spalten, breit in zwei Reihen */
.level-facts--path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px 28px;
}
.level-facts--path div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .level-facts--path { grid-template-columns: repeat(3, max-content); gap: 14px 32px; }
  .level-facts--path div:first-child { grid-column: auto; }
}
.level-facts div { display: flex; flex-direction: column; gap: 2px; }
.level-facts dt { color: var(--muted); font-size: .8125rem; }
.level-facts dd { margin: 0; font: 800 1.0625rem/1.25 var(--font-display); }

.level-card {
  display: grid;
  gap: 24px 48px;
  align-items: center;
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}
@media (min-width: 720px) {
  .level-card { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); }
}
.level-card__art { margin: 0; }
.level-card__art img { width: 100%; max-width: 240px; margin-inline: auto; }
.level-card__label { font: 700 1.0625rem/1.3 var(--font-display); }
.level-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.level-topics li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--paper);
  font-size: .9375rem;
}
.level-card__more { margin-top: 18px; color: var(--muted); font-size: 1rem; }

.trail {
  position: relative;
  margin-top: clamp(36px, 5vw, 56px);
}

.trail__line {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.trail__line path {
  fill: none;
  stroke: var(--peach-line);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0 13;
}

/* Auf schmalen Handys zwei Spalten: Die Kapitelnamen ab B1 sind lang
   („Medien, implizite Positionen und audiovisuelle Rezeption“). */
.trail__list {
  --cols: 2;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: clamp(36px, 4.5vw, 56px) clamp(10px, 2.2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 480px)  { .trail__list { --cols: 3; } }
@media (min-width: 560px)  { .trail__list { --cols: 4; } }
@media (min-width: 820px)  { .trail__list { --cols: 5; } }
@media (min-width: 1080px) { .trail__list { --cols: 7; } }

.station {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.station__art {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.station__art img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.station--start .station__art { background: var(--peach); border-color: var(--peach-line); }
.station--goal .station__art { background: var(--sage); border-color: color-mix(in srgb, var(--sage-ink) 30%, transparent); }

.station__flag {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -55%);
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--cocoa);
  color: var(--on-cocoa);
  font: 700 .8125rem/1 var(--font-display);
  white-space: nowrap;
}
.station__flag--goal { background: var(--sage-ink); color: var(--paper); }

.station__title {
  width: 100%; /* nie breiter als die Spalte, sonst ragen lange Namen hinaus */
  margin-top: 12px;
  font: 700 .9375rem/1.25 var(--font-display);
  color: var(--ink);
  -webkit-hyphens: auto;
  hyphens: auto;
  /* Nur lange Wörter trennen, mit mindestens 5 Buchstaben je Teil („Informations-struktur“, nicht „aushan-deln“) */
  hyphenate-limit-chars: 12 5 5;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 5;
  overflow-wrap: break-word; /* lange Wörter wie „Zusammenhängend“ notfalls umbrechen */
}

.station__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: .8125rem;
}

.trail__more { display: none; margin: 36px auto 0; }

@media (max-width: 559px) {
  .trail:not(.is-expanded) .station:nth-child(n + 10) { display: none; }
  .trail__more { display: flex; }
}
@media (max-width: 479px) {
  .station__art { max-width: 116px; }
  .trail:not(.is-expanded) .station:nth-child(n + 9) { display: none; }
}

/* ---------- Ablauf einer Lektion ---------- */

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 819px) {
  .steps__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(74%, 290px);
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .steps__list::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: start; }
}

.phone {
  margin: 0;
  max-width: 300px;
  padding: 9px;
  border-radius: 46px;
  background: var(--frame);
  box-shadow: var(--shadow-card);
}
.phone img {
  width: 100%;
  border-radius: 38px;
  background: var(--paper);
}

.step h3 { margin-top: 28px; }
.step p { margin-top: 8px; max-width: 30ch; color: var(--muted); font-size: 1rem; }

/* ---------- Wiederholen ---------- */

.review__grid {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
@media (min-width: 900px) {
  .review__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.review__art { margin: 0; }
.review__art img { width: 100%; max-width: 560px; margin-inline: auto; }

.review__lead { margin-top: 1.25rem; font-size: 1.0625em; max-width: 34rem; }

.intervals { margin: 36px 0 0; }

.intervals__track {
  position: relative;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.intervals__track::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 40px;
  height: 2px;
  background: var(--peach-line);
}
.intervals__track li {
  position: relative;
  flex: 1 1 0;
  padding-top: 26px;
  color: var(--muted);
  font-size: .8125rem;
  white-space: nowrap;
}
.intervals__track li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--cocoa);
}
.intervals__track li:nth-child(1) { flex-grow: .9; }
.intervals__track li:nth-child(2) { flex-grow: 1.05; }
.intervals__track li:nth-child(3) { flex-grow: 1.35; }
.intervals__track li:nth-child(4) { flex-grow: 1.8; }
.intervals__track li:last-child { flex: 0 0 auto; }
.intervals__track li:first-child { color: var(--ink); font-weight: 600; }
.intervals__track li:first-child::before { background: var(--cocoa); }

.intervals figcaption { margin-top: 14px; color: var(--muted); font-size: .875rem; }

.facts { display: grid; margin: 36px 0 0; }
.facts > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.facts dt { font: 700 1rem/1.5 var(--font-display); }
.facts dd { margin: 0; color: var(--muted); font-size: 1rem; }

@media (max-width: 520px) {
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Belohnung ---------- */

.rewards__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.rewards__buddy {
  flex: none;
  width: clamp(112px, 14vw, 176px);
  margin-right: clamp(0px, 4vw, 48px);
}
@media (max-width: 639px) {
  .rewards__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rewards__buddy { order: -1; width: 112px; margin: 0; }
  .rewards__buddy .bubble--left { right: auto; left: 84%; transform-origin: left center; }
  .rewards__buddy .bubble--left::after { right: auto; left: -8px; transform: rotate(135deg); }
}

.rewards__shelf {
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
}

.rewards__group h3 { font-size: 1.125rem; }

.rewards__levels {
  display: grid;
  gap: 24px 48px;
  align-items: center;
  padding-block: 28px;
  border-block: 1px solid var(--line);
}
@media (min-width: 900px) {
  .rewards__levels { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.rewards__levels p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

.balls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 559px) {
  .balls { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
}
.balls li { display: flex; flex-direction: column; align-items: center; text-align: center; }

.ball {
  display: block;
  width: 100%;
  max-width: 116px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.ball img { width: 100%; height: 100%; }
.ball:focus-visible { outline-offset: 4px; border-radius: 50%; }
.ball__code { margin-top: 8px; font: 800 1rem/1 var(--font-display); }
.ball__name { margin-top: 4px; color: var(--muted); font-size: .8125rem; }

.medals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .medals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .medals { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.medals li { display: flex; flex-direction: column; align-items: center; text-align: center; }

.medal__art {
  display: block;
  width: 116px;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: none;
  cursor: pointer;
}
.medal__art:focus-visible { outline-offset: 2px; }
.medal__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.85);
}

.medal__name { margin-top: 10px; font: 700 .9375rem/1.25 var(--font-display); }
.medal__desc { margin-top: 4px; max-width: 20ch; color: var(--muted); font-size: .8125rem; line-height: 1.4; }

/* ---------- Kursinhalt ---------- */

.course__grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) {
  .course__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 72px; }
}

.course__note {
  padding-left: 16px;
  border-left: 3px solid var(--peach-line);
  color: var(--muted);
  font-size: 1rem;
}

.spec { display: grid; margin: 0; }
.spec > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.spec > div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font: 700 1rem/1.6 var(--font-display); color: var(--muted); }
.spec dd { margin: 0; }
.spec strong { font-family: var(--font-display); font-weight: 800; }

@media (max-width: 520px) {
  .spec > div { grid-template-columns: 1fr; gap: 6px; }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: .875rem;
}

.grammar-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 819px) {
  .grammar-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
}
.grammar-strip li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.grammar-strip__art { display: grid; place-items: end center; height: 104px; }
.grammar-strip__art img { max-height: 104px; width: auto; max-width: 100%; }
.grammar-strip__name { margin-top: 14px; font: 700 .9375rem/1.25 var(--font-display); }

.level-tag {
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--peach-deep);
  color: var(--cocoa);
  font: 700 .75rem/1.2 var(--font-display);
}

/* ---------- Offline (Nacht) ---------- */

.night {
  position: relative;
  padding-block: var(--section);
  background: var(--night);
  color: var(--night-ink);
}
.night h2, .night h3 { color: var(--night-ink); }

.night__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .night__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; }
}

.night__moon {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--night-raised);
}
/* Mondsichel und zwei Sterne */
.night__moon::before {
  content: "";
  position: absolute;
  top: 9%;
  right: 13%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: -11px 7px 0 0 #F6E7D2;
}
.night__moon::after {
  content: "";
  position: absolute;
  top: 26%;
  left: 14%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #F6E7D2;
  box-shadow: 46px -38px 0 0 rgba(246, 231, 210, .7), 210px 196px 0 -1px rgba(246, 231, 210, .5);
}

.night__buddy { width: 74%; }
.night .bubble {
  border-color: transparent;
  background: var(--night-ink);
  color: #2B211B;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7);
}
.night .bubble::after { border-color: transparent; }
.night .bubble__de { color: #6A5A4C; }

.night__lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.1875rem;
}

.night__list {
  display: grid;
  gap: 28px 40px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .night__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.night__list h3 { font-size: 1.125rem; }
.night__list p { margin-top: 6px; color: var(--night-muted); font-size: 1rem; }

.night__link { margin-top: 40px; }
.night a { color: var(--night-ink); text-decoration-color: var(--night-muted); }
.night :focus-visible { outline-color: var(--night-ink); }

/* ---------- Fragen ---------- */

.faq__grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 72px; }
  .faq__intro { position: sticky; top: 32px; align-self: start; }
}
.faq__intro p { margin-top: 1rem; color: var(--muted); }

.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font: 700 1.125rem/1.35 var(--font-display);
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-right: 2.5px solid var(--cocoa);
  border-bottom: 2.5px solid var(--cocoa);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__item summary:hover { color: var(--cocoa); }

.faq__answer { max-width: 40rem; padding-bottom: 24px; color: var(--muted); }

/* Szene „Tanuki gegen den grünen Vogel“: auf breiten Bildschirmen links unter der
   Einleitung, auf schmalen in der zugehörigen Frage */
.faq__fight { display: none; }
.faq__item--fight .fight { max-width: 420px; margin-bottom: 14px; }
@media (min-width: 900px) {
  .faq__fight { display: block; max-width: 420px; margin-top: 36px; }
  .faq__item--fight .fight { display: none; }
}

/* ---------- Kampf (src/partials/fight.php) ----------
   Grundzustand = Schlussbild (ohne JS, „Bewegung reduzieren“).
   .is-armed hält den Ablauf am Anfang an, .is-playing spielt ihn ab.
   Zeitplan: Vogel hüpft herein (0–0,8 s), brüllt (0,8–1,66 s), Treffer (1,66 s),
   K.o. (2,5 s), Tanuki jubelt (2,8 s), Sprechblase (3,15 s). */

.fight { display: flex; flex-direction: column; margin: 0; }

.fight__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.fight__ring,
.fight__bird,
.fight__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.fight__bird *,
.fight__fx * { transform-box: view-box; }

.fight__tanuki { position: absolute; left: 1.5%; top: 32%; width: 46%; aspect-ratio: 1; }
.fight__tanuki .fight__tanuki-svg { width: 100%; height: 100%; }

/* Ring */
.r-floor { fill: var(--peach); }
.r-floor-edge,
.r-rope { fill: none; stroke: var(--peach-line); stroke-width: 3; stroke-linecap: round; }
.r-post { fill: var(--cocoa); opacity: .85; }
.r-pad--tanuki { fill: var(--rosso); }
.r-pad--bird { fill: #4E9F43; }

/* Schrift in der Szene */
.fight svg text { font-family: var(--font-display); font-weight: 800; }
.fx-round rect { fill: var(--cocoa); }
.fx-round text { fill: var(--on-cocoa); font-size: 12px; letter-spacing: 1.5px; }
.fx-shout__burst,
.fx-shout__tail { fill: var(--raised); stroke: var(--rosso); stroke-width: 3; stroke-linejoin: round; }
.fx-shout text { fill: var(--rosso); font-size: 19px; letter-spacing: .5px; }
.fx-wave { fill: none; stroke: var(--rosso); stroke-width: 2.6; stroke-linecap: round; }
.fx-bam polygon { fill: #F6C343; stroke: #C4453C; stroke-width: 3; stroke-linejoin: round; }
.fx-bam text { fill: #8E2A22; font-size: 14px; }
.fx-star { fill: #F2C14E; stroke: #A87A12; stroke-width: .8; }
.fx-ko {
  fill: var(--rosso);
  font-size: 50px;
  stroke: var(--surface);
  stroke-width: 8px;
  stroke-linejoin: round;
  paint-order: stroke;
}

/* Drehpunkte (Bühnenkoordinaten 400 × 300) */
.b-all { transform-origin: 284px 213px; }
.b-shadow { transform-origin: 284px 263px; }
.b-shake { transform-origin: 284px 262px; }
.b-mega { transform-origin: 232px 186px; }
.b-feet { transform-origin: 282px 258px; }
.fx-round { transform-origin: 200px 25px; }
.fx-shout { transform-origin: 211px 120px; }
.fx-bam { transform-origin: 230px 176px; }
.fx-mega { transform-origin: 218px 176px; }
.fx-ko { transform-origin: 300px 105px; }
.fx-feather,
.fx-star { transform-box: fill-box; transform-origin: center; }

/* Schlussbild */
.b-all { transform: translate(16px, 12px) rotate(100deg); }
.b-shadow { transform: translateX(16px) scaleX(1.45); }
.b-eye,
.b-brow,
.b-mega,
.fx-round,
.fx-waves,
.fx-shout,
.fx-feather,
.fx-bam { opacity: 0; }
.fx-mega { transform: translate(-28px, 74px) rotate(-395deg); }
.fx-ko { transform: rotate(-8deg); }
.fx-star--1 { transform: translate(22px, 0); }
.fx-star--2 { transform: translate(-11px, 5px) scale(1.12); }
.fx-star--3 { transform: translate(-11px, -5px) scale(.86); }

/* Tanuki: Handschuhe an, Siegergesicht im Schlussbild */
.fight .fight__tanuki-svg .t-eyes-open,
.fight .fight__tanuki-svg .t-mouth-neutral,
.fight .fight__tanuki-svg .t-brows-battle,
.fight .fight__tanuki-svg .t-eyes-closed,
.fight .fight__tanuki-svg .t-mouth-smile,
.fight .fight__tanuki-svg .t-blush { display: inline; }
.fight .fight__tanuki-svg .t-eyes-open,
.fight .fight__tanuki-svg .t-mouth-neutral,
.fight .fight__tanuki-svg .t-brows-battle { opacity: 0; }
.fight .fight__tanuki-svg * { animation: none; }
.fight .fight__tanuki-svg .t-box--l { transform: translate(-20px, -32px) rotate(-36deg); }
.fight .fight__tanuki-svg .t-box--r { transform: translate(20px, -32px) rotate(36deg); }

.fight .fight__bubble {
  max-width: 210px;
  padding: clamp(7px, 2.2cqw, 10px) clamp(10px, 3.2cqw, 14px) clamp(8px, 2.4cqw, 11px);
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: none;
}
/* Sprechblase wächst mit der Bühne (schmale Spalte ab 900 px) */
.fight__stage { container-type: inline-size; }
.fight .fight__bubble .bubble__it { font-size: clamp(.8125rem, 4.2cqw, 1.0625rem); }
.fight .fight__bubble .bubble__de { font-size: clamp(.6875rem, 3.2cqw, .8125rem); }

.fight__replay {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink);
  font: 700 .875rem/1 var(--font-display);
  cursor: pointer;
}
.fight__replay:hover { border-color: var(--peach-line); background: var(--raised); }
.fight__replay .icon { width: 16px; height: 16px; color: var(--cocoa); }

/* Ablauf */
.fight.is-armed *,
.fight.is-paused *,
.fight.is-armed *::before,
.fight.is-paused *::before { animation-play-state: paused !important; }

.fight:is(.is-armed, .is-playing) .b-all { animation: fight-bird 2.6s linear both; }
.fight:is(.is-armed, .is-playing) .b-shadow { animation: fight-bird-shadow 2.6s linear both; }
.fight:is(.is-armed, .is-playing) .b-shake { animation: fight-shake .1s linear .82s 8; }
.fight:is(.is-armed, .is-playing) .b-mega { animation: fight-mega-pulse .2s ease-in-out .82s 4 alternate, fight-hide 1.66s steps(1, end) both; }
.fight:is(.is-armed, .is-playing) .b-eye,
.fight:is(.is-armed, .is-playing) .b-brow { animation: fight-hide 1.7s steps(1, end) both; }
.fight:is(.is-armed, .is-playing) .b-ko { animation: fight-show 1.7s steps(1, end) both; }
.fight:is(.is-armed, .is-playing) .b-feet { animation: fight-kick .16s ease-in-out 2.62s 6 alternate; }

.fight:is(.is-armed, .is-playing) .fx-round { animation: fight-round 1.3s ease-out both; }
.fight:is(.is-armed, .is-playing) .fx-waves { opacity: 1; }
.fight:is(.is-armed, .is-playing) .fx-wave { animation: fight-wave .3s ease-out .82s 3 both; }
.fight:is(.is-armed, .is-playing) .fx-wave--2 { animation-delay: .9s; }
.fight:is(.is-armed, .is-playing) .fx-wave--3 { animation-delay: .98s; }
.fight:is(.is-armed, .is-playing) .fx-shout { animation: fight-shout .88s ease-out .78s both; }
.fight:is(.is-armed, .is-playing) .fx-bam { animation: fight-bam .5s ease-out 1.62s both; }
.fight:is(.is-armed, .is-playing) .fx-feather--1 { animation: fight-feather-1 1.9s ease-out 1.66s both; }
.fight:is(.is-armed, .is-playing) .fx-feather--2 { animation: fight-feather-2 1.9s ease-out 1.7s both; }
.fight:is(.is-armed, .is-playing) .fx-feather--3 { animation: fight-feather-3 1.9s ease-out 1.74s both; }
.fight:is(.is-armed, .is-playing) .fx-mega { animation: fight-fly-mega .95s linear 1.66s both; }
.fight:is(.is-armed, .is-playing) .fx-stars { animation: fight-show 2.45s steps(1, end) both; }
.fight:is(.is-armed, .is-playing) .fx-star { animation: fight-orbit 1.1s linear 2.45s infinite; }
.fight:is(.is-armed, .is-playing) .fx-star--2 { animation-delay: 2.083s; }
.fight:is(.is-armed, .is-playing) .fx-star--3 { animation-delay: 1.717s; }
.fight:is(.is-armed, .is-playing) .fx-ko { animation: fight-ko .55s ease-out 2.5s both; }

.fight:is(.is-armed, .is-playing) .fight__tanuki { animation: fight-dash 2.4s both; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-figure { animation: box-stance 1.4s ease-in-out .9s both, joy-hop 1.4s ease-in-out 2.8s forwards; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-head { animation: box-focus 1.4s ease-in-out .9s both; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-tail { animation: box-tail 1.4s ease-in-out .9s both, joy-tail 1.4s ease-in-out 2.8s forwards; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-box--l { animation: box-left 1.4s cubic-bezier(.2, .7, .25, 1) .9s both, fight-cheer-l .9s ease-out 2.8s forwards; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-box--r { animation: box-right 1.4s cubic-bezier(.2, .7, .25, 1) .9s both, fight-cheer-r .9s ease-out 2.8s forwards; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-shadow { animation: joy-shadow 1.4s ease-in-out 2.8s forwards; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-confetti { display: inline; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-conf { animation: joy-confetti 1.4s ease-out 2.8s both; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-eyes-open,
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-mouth-neutral { animation: fight-hide 2.8s steps(1, end) both; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-brows-battle { animation: fight-brows 2.8s linear both; }
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-eyes-closed,
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-mouth-smile,
.fight:is(.is-armed, .is-playing) .fight__tanuki-svg .t-blush { animation: fight-show 2.8s steps(1, end) both; }
.fight:is(.is-armed, .is-playing) .fight__bubble { animation: fight-bubble .35s ease-out 3.15s both; }
.fight:is(.is-armed, .is-playing) .fight__replay { animation: fight-appear .3s ease 3.4s both; }

@keyframes fight-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes fight-hide { from { opacity: 1; } to { opacity: 0; } }
@keyframes fight-appear { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }

@keyframes fight-bird {
  0% { transform: translate(230px, 0); animation-timing-function: ease-out; }
  6% { transform: translate(190px, -18px); animation-timing-function: ease-in; }
  12% { transform: translate(140px, 0); animation-timing-function: ease-out; }
  18% { transform: translate(90px, -16px); animation-timing-function: ease-in; }
  24% { transform: translate(40px, 0); animation-timing-function: ease-out; }
  28% { transform: translate(14px, -8px); animation-timing-function: ease-in; }
  31% { transform: translate(0, 0) scale(1.04, .95); }
  34%, 63.5% { transform: translate(0, 0); }
  66% { transform: translate(22px, -24px) rotate(22deg); animation-timing-function: ease-out; }
  75% { transform: translate(30px, -62px) rotate(64deg); animation-timing-function: ease-in; }
  85% { transform: translate(18px, 14px) rotate(104deg); animation-timing-function: ease-out; }
  90% { transform: translate(17px, 2px) rotate(97deg); animation-timing-function: ease-in; }
  95% { transform: translate(16px, 13px) rotate(101deg); }
  100% { transform: translate(16px, 12px) rotate(100deg); }
}
@keyframes fight-bird-shadow {
  0% { transform: translateX(230px); }
  6% { transform: translateX(190px) scaleX(.8); }
  12% { transform: translateX(140px); }
  18% { transform: translateX(90px) scaleX(.82); }
  24% { transform: translateX(40px); }
  31%, 63.5% { transform: none; opacity: .14; }
  75% { transform: translateX(30px) scaleX(.5); opacity: .05; }
  85% { transform: translateX(18px) scaleX(1.4); opacity: .14; }
  100% { transform: translateX(16px) scaleX(1.45); opacity: .14; }
}
@keyframes fight-shake {
  0%, 100% { transform: none; }
  25% { transform: translate(-1.6px, .6px) rotate(-1.2deg); }
  50% { transform: translate(1.2px, -.6px) rotate(.9deg); }
  75% { transform: translate(-.8px, .2px) rotate(-.6deg); }
}
@keyframes fight-mega-pulse { from { transform: none; } to { transform: rotate(-6deg) scale(1.1); } }
@keyframes fight-kick { from { transform: none; } to { transform: rotate(-14deg); } }
@keyframes fight-round {
  0% { opacity: 0; transform: scale(.6); }
  15% { opacity: 1; transform: scale(1.08); }
  25%, 75% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(.96); }
}
@keyframes fight-wave {
  0% { opacity: 0; }
  35% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fight-shout {
  0% { opacity: 0; transform: scale(.4) rotate(-6deg); }
  10% { opacity: 1; transform: scale(1.12) rotate(2deg); }
  16% { transform: none; }
  30% { transform: translate(-1.5px, 1px) rotate(-1deg); }
  45% { transform: translate(1.5px, -1px) rotate(1deg); }
  60% { transform: translate(-1px, 1px) rotate(-.6deg); }
  75% { transform: translate(1px, 0) rotate(.6deg); }
  99.9% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes fight-bam {
  0% { opacity: 0; transform: scale(.2) rotate(-12deg); }
  18% { opacity: 1; transform: scale(1.18) rotate(4deg); }
  45% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(1.12); }
}
@keyframes fight-feather-1 {
  0% { opacity: 0; transform: none; }
  8% { opacity: 1; transform: translate(-16px, -30px) rotate(-40deg); }
  35% { transform: translate(-30px, -14px) rotate(25deg); }
  65% { transform: translate(-40px, 22px) rotate(-20deg); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-48px, 58px) rotate(18deg); }
}
@keyframes fight-feather-2 {
  0% { opacity: 0; transform: none; }
  8% { opacity: 1; transform: translate(14px, -38px) rotate(35deg); }
  35% { transform: translate(30px, -22px) rotate(-20deg); }
  65% { transform: translate(40px, 14px) rotate(24deg); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(50px, 52px) rotate(-12deg); }
}
@keyframes fight-feather-3 {
  0% { opacity: 0; transform: none; }
  8% { opacity: 1; transform: translate(-2px, -48px) rotate(-15deg); }
  35% { transform: translate(10px, -30px) rotate(30deg); }
  65% { transform: translate(-6px, 6px) rotate(-25deg); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(4px, 44px) rotate(10deg); }
}
@keyframes fight-fly-mega {
  0% { opacity: 0; transform: none; }
  1% { opacity: 1; transform: none; animation-timing-function: ease-out; }
  38% { transform: translate(-22px, -70px) rotate(-170deg); animation-timing-function: ease-in; }
  72% { transform: translate(-28px, 74px) rotate(-372deg); animation-timing-function: ease-out; }
  84% { transform: translate(-29px, 64px) rotate(-388deg); animation-timing-function: ease-in; }
  100% { opacity: 1; transform: translate(-28px, 74px) rotate(-395deg); }
}
@keyframes fight-orbit {
  0% { transform: translate(22px, 0); }
  12.5% { transform: translate(15.6px, 4.2px) scale(1.13); }
  25% { transform: translate(0, 6px) scale(1.18); }
  37.5% { transform: translate(-15.6px, 4.2px) scale(1.13); }
  50% { transform: translate(-22px, 0); }
  62.5% { transform: translate(-15.6px, -4.2px) scale(.87); }
  75% { transform: translate(0, -6px) scale(.82); }
  87.5% { transform: translate(15.6px, -4.2px) scale(.87); }
  100% { transform: translate(22px, 0); }
}
@keyframes fight-ko {
  0% { opacity: 0; transform: scale(2.6) rotate(-14deg); }
  55% { opacity: 1; transform: scale(.9) rotate(-6deg); }
  78% { transform: scale(1.06) rotate(-9deg); }
  100% { opacity: 1; transform: rotate(-8deg); }
}
@keyframes fight-dash {
  0%, 54% { transform: none; animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  68% { transform: translate(41%, -5%) rotate(5deg); animation-timing-function: linear; }
  75% { transform: translate(41%, -5%) rotate(5deg); animation-timing-function: ease-in-out; }
  92%, 100% { transform: none; }
}
@keyframes fight-cheer-l {
  0% { transform: none; }
  40% { transform: translate(-21px, -36px) rotate(-40deg); }
  65% { transform: translate(-18px, -28px) rotate(-30deg); }
  100% { transform: translate(-20px, -32px) rotate(-36deg); }
}
@keyframes fight-cheer-r {
  0% { transform: none; }
  40% { transform: translate(21px, -36px) rotate(40deg); }
  65% { transform: translate(18px, -28px) rotate(30deg); }
  100% { transform: translate(20px, -32px) rotate(36deg); }
}
@keyframes fight-brows {
  0%, 32% { opacity: 0; }
  32.5%, 99.5% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fight-bubble {
  0% { opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.9); }
  1% { visibility: visible; }
  100% { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .fight__replay { display: none; }
}

/* ---------- Abschluss ---------- */

.cta__card {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--peach-line);
  border-radius: var(--r-xl);
  background: var(--peach);
}
@media (min-width: 760px) {
  .cta__card { grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
}
.cta__buddy { width: clamp(150px, 18vw, 224px); margin: 48px auto 0; }
.cta__copy p { margin-top: 14px; font-size: 1.125rem; }
.cta__action { margin-top: 28px; }

/* ---------- Fußzeile ---------- */

.site-footer {
  padding-block: 44px 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}
.site-footer__about p { margin-top: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 4px; }
.footer-nav a { color: var(--ink); }
.site-footer__fine { width: 100%; font-size: .875rem; }

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

.page { padding-block: clamp(24px, 5vw, 64px) var(--section); }

.page__grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .page__grid { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
  .page__aside { position: sticky; top: 48px; }
}
.page__buddy { width: 200px; max-width: 100%; margin-top: 72px; }
@media (max-width: 959px) { .page__aside { display: none; } }

.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.375rem, 1.6rem + 2.8vw, 3.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.prose h2 { margin-top: 56px; font-size: 1.625rem; }
.prose h3 { margin-top: 32px; font-size: 1.1875rem; }
.prose p, .prose ul, .prose .table-scroll { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose__lead { margin-top: 24px; font-size: 1.1875rem; }
.prose__meta { margin-top: 12px; color: var(--muted); font-size: .9375rem; }

.table-scroll { overflow-x: auto; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font: 700 .9375rem/1.4 var(--font-display); }

.draft {
  margin-bottom: 28px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-size: .9375rem;
}
.draft code { background: rgba(255, 255, 255, .55); border-color: rgba(90, 62, 0, .2); }

.page--center { display: grid; place-items: center; min-height: 60vh; text-align: center; }
.lost { display: flex; flex-direction: column; align-items: center; }
.lost__buddy { width: 200px; margin-top: 80px; }
.lost h1 { margin-top: 16px; font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.25rem); }
.lost p { margin-top: 14px; color: var(--muted); }
.lost p:last-child { margin-top: 32px; }

/* ---------- Guides: Übersicht ---------- */

.guides__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.guides__title { font-size: clamp(2.375rem, 1.6rem + 2.8vw, 3.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.guides__buddy {
  flex: none;
  width: clamp(112px, 14vw, 168px);
  margin-right: clamp(0px, 4vw, 48px);
}
@media (max-width: 639px) {
  .guides__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .guides__buddy { order: -1; width: 104px; margin: 0; }
  .guides__buddy .bubble--left { right: auto; left: 84%; transform-origin: left center; }
  .guides__buddy .bubble--left::after { right: auto; left: -8px; transform: rotate(135deg); }
}

.guide-start {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--peach-line);
  border-radius: var(--r-xl);
  background: var(--peach);
  color: var(--ink);
  text-decoration: none;
}
.guide-start__art { width: clamp(84px, 12vw, 140px); }
.guide-start__label { display: block; color: var(--cocoa); font: 700 .9375rem/1.2 var(--font-display); }
.guide-start__title {
  display: block;
  margin-top: 6px;
  font: 800 clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.15 var(--font-display);
  text-wrap: balance;
}
.guide-start__text { display: block; margin-top: 8px; color: var(--muted); font-size: 1rem; }
.guide-start:hover .guide-start__title { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
@media (max-width: 479px) {
  .guide-start { grid-template-columns: 1fr; }
}

.guide-group {
  display: grid;
  gap: 12px 40px;
  margin-top: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .guide-group { grid-template-columns: 220px minmax(0, 1fr); }
  .guide-group h2 { padding-top: 20px; }
}
.guide-group h2 { font-size: 1.375rem; }

.guide-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.guide-item { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.guide-item__title {
  color: var(--ink);
  font: 700 1.1875rem/1.3 var(--font-display);
  text-decoration: none;
}
.guide-item__title:hover { color: var(--cocoa); text-decoration: underline; text-decoration-thickness: .08em; }
.guide-item__text { max-width: 62ch; margin-top: 6px; color: var(--muted); font-size: 1rem; }
.guide-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .875rem;
}
.guide-item__meta .level-tag { margin-top: 0; }
.guides__empty { margin-top: 40px; color: var(--muted); }

/* ---------- Guides: Artikel ---------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .875rem;
}
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--peach-line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

.guide__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 20px; }
@media (min-width: 1040px) {
  .guide__grid { grid-template-columns: minmax(0, 44rem) 240px; justify-content: space-between; }
  .guide__aside { position: sticky; top: 32px; align-self: start; padding-top: 12px; }
}
@media (max-width: 1039px) { .guide__aside { display: none; } }

.guide__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; }
.guide__meta div { display: flex; align-items: center; gap: 8px; }
.guide__meta dt { color: var(--muted); font-size: .875rem; }
.guide__meta dd { margin: 0; font: 700 .9375rem/1.3 var(--font-display); }
.guide__meta .level-tag { display: inline-block; margin-top: 0; }

.guide__summary {
  margin-top: 26px;
  padding: 18px 22px 20px;
  border-radius: var(--r-lg);
  background: var(--sage);
}
.guide__summary p { margin: 0; }
.guide__summary-title { color: var(--sage-ink); font: 800 1rem/1.3 var(--font-display); }
.guide__summary-title + p { margin-top: 6px; }

.guide__body h2 { scroll-margin-top: 24px; }
.guide__body h3 { scroll-margin-top: 24px; }
.guide__body ol { margin-top: 14px; padding-left: 1.4em; }
.guide__body ol li + li { margin-top: 8px; }
.guide__body blockquote { margin: 18px 0 0; padding-left: 18px; border-left: 3px solid var(--peach-line); color: var(--muted); }
.guide__body table { min-width: 0; }
.guide__body td, .guide__body th { padding-right: 16px; }
.guide__body i[lang] { color: var(--ink); }

/* Beispielsätze: eine Sprechblase je Gruppe, Lernsprache in der runden Schrift,
   Übersetzung leise darunter */
.prose .examples {
  margin: 18px 0 0;
  padding: 4px 0;
  border: 1px solid var(--line);
  border-radius: 20px 20px 20px 6px;
  background: var(--raised);
  list-style: none;
}
.prose .example { position: relative; margin: 0; padding: 11px 60px 12px 18px; }
.prose .example + .example { border-top: 1px solid var(--line); }
.prose .example:has(.example__say[hidden]) { padding-right: 18px; }
.prose .example__it { margin: 0; color: var(--ink); font: 800 1.0625rem/1.4 var(--font-display); }
.example__it strong { color: var(--cocoa); font-weight: 800; }
.prose .example__de { margin: 1px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.example__say {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--cocoa);
  cursor: pointer;
  transform: translateY(-50%);
}
.example__say .icon { width: 18px; height: 18px; }
.example__say:hover { border-color: var(--peach-line); background: var(--peach); }
.example__say.is-speaking { border-color: var(--cocoa); background: var(--cocoa); color: var(--on-cocoa); }

.note {
  margin-top: 22px;
  padding: 16px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.note > :first-child { margin-top: 0; }
.note--merke { border-color: transparent; background: var(--sage); }
.note--fehler { border-color: var(--peach-line); background: var(--peach); }
.note__title { font: 800 1rem/1.3 var(--font-display); }
.note--merke .note__title { color: var(--sage-ink); }
.note--fehler .note__title { color: var(--cocoa); }
.note .note__title + * { margin-top: 6px; }

.toc__title { font: 800 1rem/1.3 var(--font-display); }
.toc ol { margin: 10px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc a {
  display: block;
  margin-left: -2px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.35;
  text-decoration: none;
}
.toc a:hover { border-left-color: var(--peach-line); color: var(--ink); }
.toc a[aria-current="true"] { border-left-color: var(--cocoa); color: var(--ink); font-weight: 600; }
.toc--inline {
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.toc--inline summary { cursor: pointer; font: 800 1rem/1.3 var(--font-display); }
@media (min-width: 1040px) { .toc--inline { display: none; } }
.guide__art { width: 168px; margin-bottom: 28px; }

.guide__author {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
}
.guide__author-name { color: var(--ink); font: 700 1rem/1.3 var(--font-display); }
.guide__author p + p { margin-top: 6px; }

.guide-practice {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--peach-line);
  border-radius: var(--r-xl);
  background: var(--peach);
}
@media (min-width: 760px) {
  .guide-practice { grid-template-columns: auto minmax(0, 1fr); gap: 40px; }
}
.guide-practice__buddy { width: clamp(120px, 14vw, 160px); margin: 44px auto 0; }
.guide-practice h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.guide-practice p { max-width: 52ch; margin-top: 10px; }
.guide-practice__action { margin-top: 22px; }

.guide-more { margin-top: clamp(48px, 7vw, 80px); }
.guide-more h2 { margin-bottom: 14px; font-size: 1.5rem; }

/* ---------- Guides auf der Startseite ---------- */

.guides-teaser__grid { display: grid; gap: 32px 64px; }
@media (min-width: 960px) {
  .guides-teaser__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
}
.guides-teaser__all { margin-top: 1.25rem; }

/* ---------- Tanuki mit Sprechblase ---------- */

.bubble {
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: min(240px, 60vw);
  margin: 0;
  padding: 10px 14px 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
  color: var(--ink);
  box-shadow: 0 12px 28px -14px rgba(63, 48, 39, .45);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.bubble.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.bubble__it { display: block; font: 800 1.0625rem/1.25 var(--font-display); }
.bubble__de { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; line-height: 1.35; }

/* Sprechblasen-Spitze: gedrehtes Quadrat mit zwei Kanten */
.bubble::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: inherit;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bubble--left { right: 74%; top: 2%; transform: translateX(-6px) scale(.96); transform-origin: right center; }
.bubble--left.is-visible { transform: none; }
.bubble--left::after { right: -8px; top: 20px; transform: rotate(-45deg); }

.bubble--right { left: 84%; top: 2%; transform: translateX(6px) scale(.96); transform-origin: left center; }
.bubble--right.is-visible { transform: none; }
.bubble--right::after { left: -8px; top: 20px; transform: rotate(135deg); }

.bubble--top { left: 50%; bottom: 90%; transform: translate(-50%, 6px) scale(.96); transform-origin: bottom center; }
.bubble--top.is-visible { transform: translate(-50%, 0); }
.bubble--top::after { left: calc(50% - 7px); bottom: -8px; transform: rotate(45deg); }

/* ---------- Tanuki-Steuerung ---------- */

.tanuki.is-paused,
.tanuki.is-paused * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
