/* ==========================================================
   Die Ninja Freunde – www.ninja-freunde.at
   Mobil zuerst. Farben und Abstände als Variablen.
   ========================================================== */

@font-face { font-family: "Andika"; src: url("../fonts/Andika-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Andika"; src: url("../fonts/Andika-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Andika"; src: url("../fonts/Andika-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fff8ec;
  --paper-2: #fdefd6;
  --card: #ffffff;
  --ink: #23213a;
  --ink-soft: #5b5770;
  --line: #ecdcc0;

  --gold: #f6b511;
  --gold-dark: #c98a00;
  --gold-soft: #fff1c4;

  --lu: #e2332f;      --lu-dark: #a81d1a;      --lu-soft: #ffe3dc;
  --tommy: #2d6fe0;   --tommy-dark: #17479e;   --tommy-soft: #dfeaff;
  --sari: #8a4bd6;    --sari-dark: #5d2aa0;    --sari-soft: #efe3ff;
  --sato: #2a2935;    --sato-dark: #121118;    --sato-soft: #ececf2;
  --leaf: #3e9b4f;    --leaf-soft: #e1f4dc;

  --accent: var(--lu);
  --accent-dark: var(--lu-dark);
  --accent-soft: var(--lu-soft);

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px rgba(60, 40, 10, .12), 0 2px 6px rgba(60, 40, 10, .08);
  --shadow-lg: 0 24px 60px rgba(60, 40, 10, .20), 0 4px 12px rgba(60, 40, 10, .10);
  --gutter: 16px;
  --max: 1180px;
  --header-h: 64px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Andika", "Trebuchet MS", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(246, 181, 17, .10) 0 180px, transparent 181px),
    radial-gradient(circle at 92% 30%, rgba(138, 75, 214, .07) 0 220px, transparent 221px),
    radial-gradient(circle at 6% 70%, rgba(45, 111, 224, .06) 0 200px, transparent 201px);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: inherit; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 5.2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding: clamp(56px, 10vw, 110px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 5vw, 52px); }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 10px;
}
.eyebrow img { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink); --bc: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--b); color: var(--bc);
  font-weight: 700; font-size: 1.05rem; text-decoration: none; line-height: 1.2;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .22), var(--shadow);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0, 0, 0, .22), var(--shadow-lg); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .22), var(--shadow); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-gold { --b: linear-gradient(180deg, #ffd24a, var(--gold)); --bc: #3a2600; background: var(--b); }
.btn-accent { --b: var(--accent); --bc: #fff; }
.btn-light { --b: #fff; --bc: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 248, 236, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(60, 40, 10, .06); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12)); transition: transform .3s var(--ease-spring); }
.brand:hover img { transform: rotate(-3deg) scale(1.05); }
.main-nav { display: none; }
.main-nav a {
  position: relative; text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 12px; border-radius: 999px;
  transition: background .2s;
}
.main-nav a:hover { background: var(--paper-2); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-buy { display: none; }
.menu-toggle {
  width: 48px; height: 48px; border-radius: 16px; border: 0; background: var(--ink); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-open { display: none; }
.menu-open .menu-toggle .i-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--paper);
  padding: 20px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s;
}
.menu-open .mobile-menu { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.mobile-menu a.m-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  font-size: 1.3rem; font-weight: 700;
}
.mobile-menu a.m-link img { width: 44px; height: 44px; object-fit: contain; }
.mobile-menu .btn { margin-top: 8px; }

@media (min-width: 900px) {
  :root { --header-h: 76px; --gutter: 28px; }
  .main-nav { display: flex; gap: 4px; }
  .header-buy { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
  .brand img { height: 54px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92svh, 880px);
  display: grid; align-items: end;
  padding: 0 0 clamp(28px, 6vw, 64px);
  overflow: hidden;
  color: #fff;
}
.hero-bg { position: absolute; inset: -4% 0 0; z-index: -2; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0) 0%, rgba(255, 248, 236, 0) 40%, rgba(35, 33, 58, .35) 70%, rgba(35, 33, 58, .82) 100%);
}
.hero-petals { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: center; text-align: center; }
.hero-title { width: min(92vw, 640px); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .3)); animation: drop-in 1s var(--ease-spring) both; }
.hero-lead { font-size: clamp(1.1rem, 3.6vw, 1.4rem); max-width: 34ch; margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); font-weight: 700; }
.hero .btn-row { justify-content: center; }
.hero-badge {
  position: absolute; z-index: 2; right: max(8px, 3vw); top: calc(var(--header-h) * .1 + 12px);
  width: clamp(96px, 22vw, 170px);
  animation: wobble 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3));
}
.hero-meta { font-size: .95rem; opacity: .9; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-30px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(6deg) scale(1.05); } }

/* ---------- Big panels (Startseite) ---------- */
.panels { display: grid; gap: 18px; }
.panel {
  --pc: var(--lu); --pc-dark: var(--lu-dark); --pc-soft: var(--lu-soft);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr 40%; align-items: end;
  min-height: 220px; padding: 24px 0 0 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--pc) 0%, var(--pc-dark) 100%);
  color: #fff; text-decoration: none;
  box-shadow: 0 8px 0 var(--pc-dark), var(--shadow-lg);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .45s var(--ease-out), box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(circle, #fff 2px, transparent 2.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, #000 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 65%);
}
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .25), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.panel:hover::after { opacity: 1; }
.panel:active { --ty: 4px; box-shadow: 0 4px 0 var(--pc-dark), var(--shadow); }
.panel-text { align-self: center; padding-bottom: 24px; position: relative; z-index: 1; }
.panel-text h3 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: .25em; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.panel-text p { margin: 0 0 14px; font-size: 1rem; opacity: .95; max-width: 28ch; }
.panel-go {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  background: rgba(255, 255, 255, .95); color: var(--pc-dark); padding: 8px 16px 8px 18px; border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}
.panel-go svg { width: 18px; height: 18px; transition: transform .3s var(--ease-spring); }
.panel:hover .panel-go svg { transform: translateX(5px); }
.panel-art { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.panel-art img {
  max-height: 210px; width: auto; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .3));
  transform: translateY(8px);
  transition: transform .5s var(--ease-spring);
}
.panel:hover .panel-art img { transform: translateY(0) scale(1.06) rotate(-2deg); }
.panel-deco { position: absolute; z-index: 0; opacity: .9; pointer-events: none; animation: spin 18s linear infinite; }
.panel-count {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: var(--gold); color: #3a2600; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 2px 0 var(--gold-dark);
}
.panel--stories { --pc: #e2332f; --pc-dark: #a81d1a; }
.panel--colour  { --pc: #8a4bd6; --pc-dark: #5d2aa0; }
.panel--puzzle  { --pc: #2d6fe0; --pc-dark: #17479e; }
.panel--book    { --pc: #2a2935; --pc-dark: #121118; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 700px) {
  .panels { grid-template-columns: repeat(2, 1fr); }
  .panel--wide { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .panels { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 470px; padding: 32px 32px 0; align-items: start; }
  .panel-text { align-self: start; padding-bottom: 0; }
  .panel-art { justify-content: center; align-items: flex-end; }
  .panel-art img { max-height: 280px; }
  .panel--wide { grid-column: span 3; grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 300px; align-items: center; }
  .panel--wide .panel-text { align-self: center; padding-bottom: 32px; }
}

/* ---------- Book strip ---------- */
.book {
  display: grid; gap: 32px; align-items: center;
  background: var(--card); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.book::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
}
.book-cover { position: relative; justify-self: center; width: min(68vw, 320px); perspective: 1200px; }
.book-cover .cover-3d {
  position: relative; transform: rotateY(-18deg) rotateX(4deg); transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
  border-radius: 4px 12px 12px 4px; box-shadow: 18px 22px 40px rgba(40, 20, 0, .35);
}
.book-cover:hover .cover-3d { transform: rotateY(-4deg) rotateX(0); }
.book-cover img { border-radius: 4px 12px 12px 4px; }
.book-cover .cover-3d::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .25), rgba(0, 0, 0, .1));
}
.book-cover .stern-float { position: absolute; width: 74px; left: -24px; bottom: 30px; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
.book-info { position: relative; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts li { background: var(--paper); border-radius: 16px; padding: 12px 14px; font-weight: 700; line-height: 1.25; }
.facts li span { display: block; font-size: 1.6rem; color: var(--lu); }
.isbn { color: var(--ink-soft); font-size: .95rem; margin-top: 14px; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(20deg); } }
@media (min-width: 860px) { .book { grid-template-columns: 380px 1fr; } }

/* ---------- Ninja cards (flip) ---------- */
.ninja-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 30px;
  margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none;
}
.ninja-row::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .ninja-row { grid-auto-columns: 46%; } }
@media (min-width: 1000px) { .ninja-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 10px 0 30px; margin: 0; } }
.ninja-card { scroll-snap-align: center; perspective: 1000px; aspect-ratio: 3 / 4.1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ninja-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease-spring); }
.ninja-card.is-flipped .ninja-card-inner { transform: rotateY(180deg); }
.ninja-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  padding: 18px;
  background: linear-gradient(180deg, var(--c-soft) 0%, #fff 75%);
  border: 4px solid #fff;
}
.ninja-face .medal { width: 92%; margin: auto 0 0; transition: transform .5s var(--ease-spring); }
.ninja-card:hover .ninja-face .medal { transform: scale(1.04) rotate(-2deg); }
.ninja-face .hint { font-size: .9rem; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.ninja-face .hint svg { width: 16px; height: 16px; }
.ninja-back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--c), var(--c-dark)); color: #fff; justify-content: flex-start; text-align: left; align-items: stretch; padding: 22px; }
.ninja-back h3 { font-size: 2rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.ninja-back h3 img { width: 46px; height: 46px; }
.ninja-back dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0 16px; font-size: 1.05rem; }
.ninja-back dt { opacity: .8; }
.ninja-back dd { margin: 0; font-weight: 700; }
.ninja-back p { font-size: .98rem; opacity: .95; }
.ninja-back .btn { margin-top: auto; }
.c-lu { --c: var(--lu); --c-dark: var(--lu-dark); --c-soft: var(--lu-soft); }
.c-tommy { --c: var(--tommy); --c-dark: var(--tommy-dark); --c-soft: var(--tommy-soft); }
.c-sari { --c: var(--sari); --c-dark: var(--sari-dark); --c-soft: var(--sari-soft); }
.c-sato { --c: #3a3946; --c-dark: var(--sato-dark); --c-soft: #e9e7f0; }
.c-gold { --c: var(--gold); --c-dark: var(--gold-dark); --c-soft: var(--gold-soft); }

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(40px, 8vw, 84px) 0 clamp(36px, 6vw, 64px);
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .15;
  background-image: radial-gradient(circle, #fff 2px, transparent 2.5px); background-size: 24px 24px;
}
.page-hero .wrap { display: grid; gap: 20px; align-items: end; }
.page-hero h1 { margin: 0; text-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.page-hero p { font-size: 1.15rem; max-width: 52ch; margin: 0; opacity: .95; }
.page-hero .hero-fig { justify-self: end; max-height: 200px; width: auto; margin-bottom: -64px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); animation: bob 4s ease-in-out infinite; }
.page-hero canvas.fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
@media (min-width: 760px) {
  .page-hero .wrap { grid-template-columns: 1fr auto; }
  .page-hero .hero-fig { max-height: 300px; margin-bottom: -84px; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.crumbs { font-size: .95rem; margin-bottom: 8px; opacity: .9; }
.crumbs a { color: #fff; }
.theme-lu { --accent: var(--lu); --accent-dark: var(--lu-dark); --accent-soft: var(--lu-soft); }
.theme-tommy { --accent: var(--tommy); --accent-dark: var(--tommy-dark); --accent-soft: var(--tommy-soft); }
.theme-sari { --accent: var(--sari); --accent-dark: var(--sari-dark); --accent-soft: var(--sari-soft); }
.theme-sato { --accent: #3a3946; --accent-dark: var(--sato-dark); --accent-soft: #ececf2; }
.theme-leaf { --accent: #3e9b4f; --accent-dark: #22713a; --accent-soft: var(--leaf-soft); }
.theme-gold { --accent: #e59a00; --accent-dark: #a86a00; --accent-soft: var(--gold-soft); }

/* ---------- Tabs / chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap;
}
.chip img { width: 22px; height: 22px; }
.chip:hover { background: var(--accent-soft); }

/* ---------- Story cards ---------- */
.story-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .story-grid.four { grid-template-columns: repeat(4, 1fr); } .story-grid.three { grid-template-columns: repeat(3, 1fr); } }
.story-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.story-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.story-card .sc-art {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: linear-gradient(160deg, var(--c-soft), #fff);
  display: flex; align-items: flex-end; justify-content: center;
}
.story-card .sc-art img.fig { height: 92%; width: auto; transition: transform .5s var(--ease-spring); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .2)); }
.story-card .sc-art img.cover { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.story-card:hover .sc-art img.fig { transform: translateY(-6px) scale(1.05); }
.story-card:hover .sc-art img.cover { transform: scale(1.06); }
.story-card .sc-art .el { position: absolute; left: 12px; top: 12px; width: 48px; height: 48px; }
.story-card .sc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.story-card .sc-kicker { font-size: .85rem; font-weight: 700; color: var(--c-dark, var(--accent-dark)); text-transform: uppercase; letter-spacing: .08em; }
.story-card h3 { margin: 0; font-size: 1.35rem; }
.story-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.story-card .sc-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); }
.tag-gold { background: var(--gold-soft); color: #7a5300; }

.group-title { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.group-title img { width: 56px; height: 56px; }
.group-title h2 { margin: 0; }
.group-title p { margin: 2px 0 0; color: var(--ink-soft); }

/* ---------- Reader (Webansicht Geschichte) ---------- */
.reader-progress { position: fixed; left: 0; top: 0; height: 5px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--gold)); }
.reader-bar {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  padding: 10px 0; background: var(--paper);
}
.reader-bar .group { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  min-width: 46px; height: 46px; padding: 0 12px; border-radius: 14px; border: 0; cursor: pointer;
  background: #fff; box-shadow: var(--shadow); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  text-decoration: none; color: var(--ink);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--accent-soft); }
.story {
  --fs: 1.25rem;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(24px, 6vw, 64px) clamp(20px, 7vw, 80px);
  max-width: 820px; margin: 0 auto;
  font-size: var(--fs); line-height: 1.75;
  position: relative;
}
.story > p:first-of-type::first-letter {
  float: left; font-size: 3.6em; line-height: .9; font-weight: 700; color: var(--accent); margin: .06em .1em 0 0;
}
.story .sfx { font-family: inherit; font-weight: 700; color: var(--accent); font-size: 1.15em; display: inline-block; animation: pop 1.6s var(--ease-spring) infinite alternate; }
.story figure { margin: 1.4em 0; }
.story figure img { border-radius: var(--radius); }
.story figure.float-fig { float: right; width: 42%; max-width: 230px; margin: 0 0 1em 1em; shape-outside: margin-box; }
.story figure.float-fig img { border-radius: 0; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .15)); }
.story .placeholder-note {
  display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.5;
  background: var(--gold-soft); border-radius: 16px; padding: 12px 16px; margin-bottom: 1.5em; color: #6a4800;
}
.story .end { clear: both; text-align: center; margin-top: 2em; font-weight: 700; color: var(--accent-dark); }
.story .end img { width: 54px; margin: 0 auto 8px; animation: spin 10s linear infinite; }
@keyframes pop { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.12) rotate(3deg); } }
.story-nav { display: grid; gap: 14px; max-width: 820px; margin: 28px auto 0; }
@media (min-width: 640px) { .story-nav { grid-template-columns: 1fr 1fr; } }
.story-nav a { display: block; padding: 16px 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.story-nav a small { display: block; color: var(--ink-soft); }
.story-nav a strong { font-size: 1.15rem; }
.story-nav a.next { text-align: right; }

/* ---------- Ausmalbilder ---------- */
.colour-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .colour-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.colour-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.colour-card .cc-img { position: relative; aspect-ratio: 2 / 3; background: #fff; overflow: hidden; }
.colour-card .cc-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease-out); }
.colour-card:hover .cc-img img { transform: scale(1.04); }
.colour-card .cc-img .ribbon { position: absolute; left: 10px; top: 10px; width: 40px; height: 40px; }
.colour-card .cc-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-top: 6px solid var(--c); }
.colour-card h3 { margin: 0; font-size: 1.15rem; color: var(--c-dark); }
.colour-card .cc-actions { display: grid; gap: 8px; }
.colour-card .btn { min-height: 44px; padding: 8px 12px; font-size: .95rem; width: 100%; }
@media (min-width: 900px) { .colour-card .cc-actions { grid-template-columns: 1fr; } }

/* Mal-Studio */
.studio { display: grid; gap: 16px; }
@media (min-width: 900px) { .studio { grid-template-columns: 1fr 300px; align-items: start; } }
.canvas-wrap {
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  aspect-ratio: 2 / 3; width: 100%; max-height: calc(100svh - var(--header-h) - 150px); margin-inline: auto;
  touch-action: none;
}
@supports (aspect-ratio: 1) { .canvas-wrap { width: min(100%, calc((100svh - var(--header-h) - 150px) * 2 / 3)); } }
.canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tools { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 12px); }
.tools h3 { font-size: 1rem; margin: 0; color: var(--ink-soft); }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
@media (min-width: 900px) { .swatches { grid-template-columns: repeat(5, 1fr); } }
.swatch {
  aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; cursor: pointer; padding: 0;
  box-shadow: 0 0 0 2px var(--line); transition: transform .2s var(--ease-spring);
}
.swatch[aria-pressed="true"] { transform: scale(1.2); box-shadow: 0 0 0 3px var(--ink); }
.toolrow { display: flex; gap: 8px; flex-wrap: wrap; }
.toolrow .icon-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 899px) {
  .tools { position: static; }
}

/* ---------- Rätsel ---------- */
.puzzle { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 40px); margin-bottom: 28px; position: relative; overflow: hidden; }
.puzzle-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.puzzle-head .num {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem;
  background: var(--c); color: #fff; box-shadow: 0 4px 0 var(--c-dark);
}
.puzzle-head h2 { margin: 0; font-size: clamp(1.4rem, 4.6vw, 2rem); }
.puzzle-head p { margin: 2px 0 0; color: var(--ink-soft); }
.puzzle-body { display: grid; gap: 20px; }
@media (min-width: 900px) { .puzzle-body.split { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.puzzle-img { border-radius: var(--radius); overflow: hidden; background: #fff; border: 2px solid var(--line); position: relative; }
.puzzle-img img { width: 100%; }
.answer-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.answer-row button {
  aspect-ratio: 1; border: 0; border-radius: 16px; background: var(--paper-2); font-weight: 700; font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 3px 0 var(--line); transition: transform .15s;
}
.answer-row button:active { transform: translateY(2px); }
.answer-row button.right { background: var(--leaf); color: #fff; box-shadow: 0 3px 0 #22713a; }
.answer-row button.wrong { background: #ffd8d2; animation: shake .4s; }
.feedback { min-height: 1.6em; font-weight: 700; font-size: 1.15rem; margin: 6px 0 0; }
.feedback.ok { color: #22713a; }
.feedback.no { color: var(--lu-dark); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.match { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22%; user-select: none; -webkit-user-select: none; }
.match svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.match-item {
  position: relative; z-index: 1; border: 3px solid transparent; border-radius: 18px; background: #fff; padding: 4px; cursor: pointer;
  display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow); transition: transform .2s var(--ease-spring), border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.match-item img { width: 100%; max-height: 120px; object-fit: contain; }
.match-item .lbl { position: absolute; top: 6px; font-weight: 700; font-size: 1.05rem; background: var(--paper-2); border-radius: 10px; padding: 0 8px; }
.match-item.left .lbl { left: 6px; }
.match-item.right .lbl { right: 6px; }
.match-item.is-active { border-color: var(--gold); transform: scale(1.04); }
.match-item.is-linked { border-color: var(--line); }
.match-item.is-correct { border-color: var(--leaf); }
.match-item.is-wrong { border-color: var(--lu); animation: shake .4s; }

.solution { margin-top: 16px; }
.solution summary {
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; list-style: none;
  padding: 10px 16px; border-radius: 999px; background: var(--paper-2);
}
.solution summary::-webkit-details-marker { display: none; }
.solution .flip { margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: var(--gold-soft); font-weight: 700; display: inline-block; transform: rotate(180deg); transition: transform .8s var(--ease-spring); }
.solution[open] .flip.turned { transform: rotate(0); }
.solution .flip-hint { font-size: .9rem; color: var(--ink-soft); margin: 8px 0 0; }

.maze-wrap { position: relative; touch-action: none; }
.maze-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }

/* ---------- Content pages ---------- */
.prose { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 5vw, 56px); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 16px; }
.prose dt { color: var(--ink-soft); }
.prose dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Buy band ---------- */
.buy-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #2a2935, #121118); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 60px); display: grid; gap: 20px; align-items: center;
}
.buy-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 20%, rgba(246, 181, 17, .35), transparent 40%), radial-gradient(circle at 10% 100%, rgba(226, 51, 47, .35), transparent 45%); }
.buy-band h2 { margin: 0; }
.buy-band p { margin: 0; opacity: .9; }
.buy-band img.gruppe { width: min(100%, 520px); justify-self: center; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
@media (min-width: 900px) { .buy-band { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(60px, 10vw, 120px); background: var(--ink); color: #e9e6f5; position: relative; padding: 70px 0 calc(30px + env(safe-area-inset-bottom)); }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px;
  background: var(--ink);
  -webkit-mask: radial-gradient(40px 40px at 40px 40px, #000 98%, transparent) -40px 0 / 80px 40px repeat-x;
  mask: radial-gradient(40px 40px at 40px 40px, #000 98%, transparent) -40px 0 / 80px 40px repeat-x;
}
.site-footer .lanterns { position: absolute; top: -70px; right: 6%; display: flex; gap: 18px; pointer-events: none; }
.site-footer .lanterns img { width: 46px; transform-origin: 50% 0; animation: swing 3.5s ease-in-out infinite; }
.site-footer .lanterns img:nth-child(2) { width: 36px; animation-delay: -1.2s; margin-top: 18px; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: #fff; }
.site-footer h4 { color: var(--gold); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .f-brand img { width: 220px; margin-bottom: 12px; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; font-size: .9rem; opacity: .75; }
@keyframes swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* Shuriken-Klickeffekt */
.fx-star { position: fixed; z-index: 999; pointer-events: none; width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Druckansicht
   ========================================================== */
@media print {
  @page { size: A4; margin: 18mm 18mm 20mm; }
  body { background: #fff !important; color: #000; font-size: 13pt; }
  .site-header, .mobile-menu, .site-footer, .reader-bar, .reader-progress, .story-nav, .no-print, .page-hero canvas, .hero-petals, .skip-link, .fx-star { display: none !important; }
  .page-hero { background: none !important; color: #000; padding: 0 0 6mm; border-bottom: 2px solid #000; margin-bottom: 8mm; }
  .page-hero::before { display: none; }
  .page-hero .hero-fig { max-height: 45mm; margin: 0; animation: none; }
  .page-hero .crumbs { display: none; }
  .story { box-shadow: none; padding: 0; max-width: none; font-size: 14pt; line-height: 1.6; }
  .story .placeholder-note { border: 1px solid #999; background: none; }
  .story .sfx { animation: none; color: #000; }
  .print-only { display: block !important; }
  .story p { orphans: 3; widows: 3; }
  a { color: #000; text-decoration: none; }
  .wrap { width: 100%; }
  .section { padding: 0; }
}
.print-only { display: none; }
.site-footer .btn-gold { color: #3a2600; }
.solution summary svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 600px) { .story figure.float-fig { width: 34%; margin-left: .6em; } }
.match { column-gap: 26%; }
.match svg.lines { z-index: 2; }
.ninja-card { aspect-ratio: 3 / 4.6; }
.ninja-back { padding: 18px; }
.ninja-back dl { margin: 8px 0 10px; font-size: 1rem; }
.ninja-back p { font-size: .95rem; margin-bottom: 10px; line-height: 1.45; }
@media (max-width: 759px) {
  .page-hero--compact { padding: 22px 0 20px; }
  .page-hero--compact .hero-fig { display: none; }
  .page-hero--compact h1 { font-size: 1.8rem; }
  .page-hero--compact p:not(.crumbs) { font-size: 1rem; }
}
.story .moral {
  clear: both; display: flex; gap: 14px; align-items: center;
  margin: 2em 0 0; padding: 16px 18px; border-radius: 20px;
  background: var(--accent-soft); border: 2px dashed var(--accent);
  font-size: 1rem; line-height: 1.5;
}
.story .moral img { width: 56px; height: 56px; flex: none; }
.story .moral strong { display: block; color: var(--accent-dark); font-size: 1.05rem; }
.story .moral p { margin: 2px 0 0; }
@media print { .story .moral { background: none; border: 1.5px dashed #000; } }

/* ==========================================================
   Bonus-Geschichten: Bilder wie im Buch eingebunden
   ========================================================== */
.scene-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--accent-dark); }
.scene-hero-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; max-height: 78svh; }
.scene-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--paper)); pointer-events: none; }
.scene-hero canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: .8; }
.bonus-story .story-head {
  position: relative; z-index: 2; max-width: 820px; margin: clamp(-120px, -12vw, -48px) auto 0;
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(20px, 5vw, 40px) clamp(20px, 6vw, 56px);
  border-top: 8px solid var(--accent);
}
.bonus-story .story-head .crumbs { color: var(--ink-soft); }
.bonus-story .story-head .crumbs a { color: var(--accent-dark); }
.bonus-story .story-head h1 { margin: 10px 0 6px; color: var(--ink); }
.bonus-story .story-head .lead { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 16px; }
.bonus-badge {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem;
  background: var(--gold); color: #3a2600; padding: 4px 12px 4px 6px; border-radius: 999px; box-shadow: 0 2px 0 var(--gold-dark);
}
.bonus-badge img { width: 22px; height: 22px; }
.sc-art .bonus-badge { position: absolute; left: 12px; top: 12px; z-index: 1; }

.timeline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 10px 12px; background: var(--paper); border-radius: 16px; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: #fff; color: var(--ink-soft); box-shadow: inset 0 0 0 2px var(--line); }
.tl-star img { width: 34px; height: 34px; animation: spin 8s linear infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.tl-end img { width: 34px; height: 34px; }
.tl-text { font-size: .95rem; color: var(--ink-soft); margin: 8px 0 0; }

.story figure.scene {
  margin: 1.8em calc(-1 * clamp(20px, 7vw, 80px)); position: relative;
}
.story figure.scene > img {
  width: 100%; border-radius: 0; aspect-ratio: 3 / 2; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.story figure.scene--end { margin-bottom: 0; }
.story figure.scene--end > img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 100%); mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 100%); }
.story figure.scene--end .moral {
  position: relative; margin: -56px clamp(16px, 5vw, 56px) 0; background: #fff; border-style: solid; border-width: 3px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 600px) { .story figure.scene--end .moral { margin-top: -28px; } }

.journey { list-style: none; margin: 0 auto; padding: 0 0 0 28px; max-width: 900px; position: relative; }
.journey::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 20px; width: 4px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, var(--line) 0 10px, transparent 10px 18px); }
.j-chapter { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--ink-soft); }
.j-num { position: absolute; left: -28px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; font-size: .85rem; }
.j-num img { width: 30px; height: 30px; }
.j-title { padding-left: 12px; font-weight: 700; }
.j-tag { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); }
.j-goal .j-title { color: var(--ink); }
.j-bonus { position: relative; margin: 10px 0 14px 12px; }
.j-bonus::before { content: ""; position: absolute; left: -40px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  background: url("../img/stern.webp") center / contain no-repeat; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
@media (min-width: 760px) {
  .bonus-card { flex-direction: row; }
  .bonus-card .sc-art { flex: 0 0 46%; aspect-ratio: 3 / 2; }
  .bonus-card .sc-body { justify-content: center; }
}
.bonus-card .sc-art img.cover { aspect-ratio: auto; }
@media print {
  .scene-hero { display: block; }
  .scene-hero::after, .scene-hero canvas { display: none; }
  .scene-hero-img { max-height: 90mm; }
  .bonus-story .story-head { box-shadow: none; margin: 4mm 0 0; padding: 0; border: 0; }
  .timeline { display: none; }
  .story figure.scene { margin: 4mm 0; break-inside: avoid; }
  .story figure.scene > img { max-height: 95mm; -webkit-mask-image: none; mask-image: none; border-radius: 4mm; }
  .story figure.scene--end .moral { margin: 3mm 0 0; box-shadow: none; }
}
.story .moral > div { min-width: 0; flex: 1; }
.j-tag { flex: none; white-space: nowrap; }
.c-gold .btn-accent{color:#3a2600}.c-gold .btn-accent svg{stroke:#3a2600}

/* ---------- Ninja-Lied ---------- */
.song { display: grid; gap: 22px; align-items: center; background: linear-gradient(135deg, #2b2350, #4a2f86 55%, #7a3f9e); color: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
@media (min-width: 760px) { .song { grid-template-columns: minmax(220px, 340px) 1fr; padding: 32px 40px; gap: 40px; } }
.song h2 { color: #fff; margin: 6px 0 4px; }
.song p { color: rgba(255,255,255,.85); margin: 0 0 18px; }
.song .eyebrow { color: var(--gold); }
.song-art { position: relative; border-radius: 20px; background: radial-gradient(circle at 50% 60%, rgba(255,210,74,.35), transparent 65%); padding: 8px; }
.song-art img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease-out); }
.song.is-playing .song-art img { animation: song-bob 1.1s ease-in-out infinite; }
@keyframes song-bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
.song-art .note { position: absolute; font-size: 28px; color: var(--gold); opacity: 0; pointer-events: none; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.song-art .n1 { left: 6%; bottom: 30%; } .song-art .n2 { right: 8%; bottom: 40%; } .song-art .n3 { left: 30%; bottom: 60%; } .song-art .n4 { right: 30%; bottom: 70%; }
.song.is-playing .note { animation: song-note 2.4s ease-out infinite; }
.song.is-playing .n2 { animation-delay: .6s; } .song.is-playing .n3 { animation-delay: 1.2s; } .song.is-playing .n4 { animation-delay: 1.8s; }
@keyframes song-note { 0% { opacity: 0; transform: translateY(10px) scale(.7); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) scale(1.2) rotate(15deg); } }
.player { display: flex; align-items: center; gap: 16px; }
.play-btn { flex: none; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(180deg, #ffd24a, var(--gold)); color: #3a2600; box-shadow: 0 5px 0 var(--gold-dark), 0 10px 24px rgba(0,0,0,.3); display: grid; place-items: center; transition: transform .15s var(--ease-out), box-shadow .15s; }
.play-btn:hover { transform: translateY(-2px) scale(1.04); }
.play-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-dark), 0 4px 10px rgba(0,0,0,.3); }
.play-btn svg { width: 36px; height: 36px; }
.play-btn .i-play { margin-left: 4px; }
.play-btn .i-pause, .song.is-playing .play-btn .i-play { display: none; }
.song.is-playing .play-btn .i-pause { display: block; }
.song:not(.is-playing) .play-btn { animation: song-pulse 2.2s ease-in-out infinite; }
@keyframes song-pulse { 0%,100% { box-shadow: 0 5px 0 var(--gold-dark), 0 0 0 0 rgba(255,210,74,.55); } 60% { box-shadow: 0 5px 0 var(--gold-dark), 0 0 0 16px rgba(255,210,74,0); } }
.player-track { flex: 1; min-width: 0; }
.player-track input[type=range] { --p: 0%; width: 100%; height: 10px; -webkit-appearance: none; appearance: none; border-radius: 999px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(255,255,255,.25) var(--p)); cursor: pointer; margin: 0; }
.player-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.player-track input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); }
.player-time { display: flex; justify-content: space-between; font-size: .9rem; color: rgba(255,255,255,.8); margin-top: 6px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .song.is-playing .song-art img, .song.is-playing .note, .song:not(.is-playing) .play-btn { animation: none; } }
@media print { .song { display: none; } }
