/* Dinofino (vorher FINOLINO) – Gestaltung (Platzhalter bis zu Meggies Design)
   Hinweis für die echte App: Schriften selbst hosten (DSGVO), nicht von Google laden. */
:root {
  --ink: #2b2340; --ink-2: #6a627c; --paper: #fff8ee; --card: #fff; --line: #efe3d1;
  --sky: #4f8fd6; --berry: #e8657a; --orange: #ee7a32; --magenta: #c25bb8;
  --leaf: #4fa35e; --teal: #23a39b; --violet: #8c6bd8; --gold: #e3a514; --sun: #ffc94d;
  --accent: var(--sky); --tint: #eef4fc;
  --r: 28px; --toy: 0 5px 0 rgba(43,35,64,.10), 0 14px 28px rgba(43,35,64,.09);
  font-size: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; color: var(--ink); background-color: var(--paper);
  background-image: radial-gradient(rgba(43,35,64,.045) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
}
body.t-klein { --accent: #e8657a; --tint: #fff0ea; }
body.t-fug   { --accent: #3f9a52; --tint: #edf7e6; }
body.t-dur   { --accent: #e0662a; --tint: #fff2db; }
body.t-eltern{ --accent: #5b4fa8; --tint: #f1effa; }
h1, h2, h3, .brand, .bar-title, .tile-label, .btn, .badge, .age { font-family: Fredoka, Nunito, sans-serif; }
h1 { font-size: 2rem; line-height: 1.15; margin: .2em 0 .4em; font-weight: 700; }
h2 { font-size: 1.35rem; margin: 0 0 .6em; font-weight: 600; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
.ico svg, .btn-ico svg, .tile-ico svg, .thumb svg, .big-ico svg, .badge svg, .btn svg, .round svg, .empty svg {
  fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}
.tile-ico svg circle, .thumb svg circle, .big-ico svg circle { fill: currentColor; stroke: none; }

/* ---------- Kopfleiste ---------- */
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px;
  padding: 12px max(18px, env(safe-area-inset-left)) 12px max(18px, env(safe-area-inset-right));
  background: rgba(255,248,238,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark { font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; }
.wordmark span:nth-child(8n+1) { color: var(--berry); } .wordmark span:nth-child(8n+2) { color: var(--orange); }
.wordmark span:nth-child(8n+3) { color: var(--gold); }  .wordmark span:nth-child(8n+4) { color: var(--leaf); }
.wordmark span:nth-child(8n+5) { color: var(--teal); }  .wordmark span:nth-child(8n+6) { color: var(--sky); }
.wordmark span:nth-child(8n+7) { color: var(--violet); }.wordmark span:nth-child(8n+8) { color: var(--magenta); }
.brand small { font-family: Nunito, sans-serif; font-size: .72rem; font-weight: 700; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.bar-title { flex: 1; font-size: 1.25rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-right { display: flex; align-items: center; gap: 10px; }
.btn-ico {
  width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--card); box-shadow: var(--toy); border: 0; text-decoration: none; color: var(--ink);
  transition: transform .12s;
}
.btn-ico svg { width: 26px; height: 26px; }
.btn-ico:active, .tile:active, .world:active, .item:active, .btn:active, .round:active { transform: translateY(3px) scale(.98); }
.chip { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); box-shadow: var(--toy); text-decoration: none; font-weight: 700; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: Fredoka, sans-serif; font-weight: 700; font-size: 1.1rem; background: var(--sky); flex: none; }
.av.t-klein { background: var(--berry); } .av.t-fug { background: var(--leaf); } .av.t-dur { background: var(--orange); }

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 8px 20px 60px; }
.wrap.narrow { max-width: 720px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--toy); padding: 28px; }

/* ---------- Start ---------- */
.hello { text-align: center; font-size: 2.3rem; margin: 18px 0 26px; }
.hello em { font-style: normal; color: var(--berry); }
.who { text-align: center; margin-bottom: 26px; }
.who-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.who-chip { display: flex; align-items: center; gap: 10px; border: 0; background: var(--card); border-radius: 999px; padding: 8px 18px 8px 8px; box-shadow: var(--toy); font-weight: 700; font-size: 1.05rem; }
.who-chip small { color: var(--ink-2); font-weight: 600; }
.who-chip.on { outline: 3px solid var(--sky); }
.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.world { display: block; text-decoration: none; background: var(--card); border-radius: 34px; overflow: hidden; box-shadow: var(--toy); transition: transform .15s; }
.world:hover { transform: translateY(-3px); }
.scene { position: relative; height: 200px; }
.scene svg { width: 100%; height: 100%; }
.scene .mark { position: absolute; left: 18px; bottom: 14px; background: #fff; border-radius: 999px; padding: 6px 14px; font-family: Fredoka, sans-serif; font-weight: 700; font-size: 1.05rem; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.w-klein .mark { color: var(--berry); } .w-fug .mark { color: var(--leaf); } .w-dur .mark { color: var(--orange); }
.world-txt { padding: 18px 22px 22px; }
.world-txt h2 { font-size: 1.55rem; margin: 6px 0 2px; }
.world-txt p { margin: 0; color: var(--ink-2); font-weight: 600; }
.age { display: inline-block; font-weight: 600; font-size: .9rem; padding: 3px 12px; border-radius: 999px; color: #fff; }
.w-klein .age { background: var(--berry); } .w-fug .age { background: var(--leaf); } .w-dur .age { background: var(--orange); }
.promo { margin: 30px auto 0; max-width: 760px; display: flex; gap: 18px; align-items: center; background: var(--card); border-radius: var(--r); box-shadow: var(--toy); padding: 18px 22px; }
.promo .medal { width: 64px; height: 64px; flex: none; font-size: .78rem; }
.promo p { margin: 0; }

/* ---------- Welt ---------- */
.world-head { display: flex; align-items: center; gap: 18px; margin: 6px 0 22px; }
.world-head .scene { flex: none; width: 150px; height: 96px; border-radius: 22px; overflow: hidden; box-shadow: var(--toy); }
.world-head .scene .mark { display: none; }
.world-head h1 { margin: 0; }
.world-head p { margin: 2px 0 0; color: var(--ink-2); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.tile {
  --c: var(--accent); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 1 / 1; text-decoration: none; background: var(--card); border-radius: 32px; box-shadow: var(--toy);
  border: 3px solid transparent; transition: transform .12s, border-color .12s; padding: 12px; text-align: center;
}
.tile:hover { border-color: var(--c); }
.tile-ico { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: inset 0 -5px 0 rgba(0,0,0,.12); }
.tile-ico svg { width: 46px; height: 46px; }
.tile-label { font-size: 1.35rem; font-weight: 600; }
.tile-hint { font-size: .85rem; color: var(--ink-2); font-weight: 700; }
.t-klein .tile-hint { display: none; }
.t-klein .tile-ico { width: 104px; height: 104px; } .t-klein .tile-ico svg { width: 56px; height: 56px; }
.a-hoeren { --c: var(--sky); } .a-lesen { --c: var(--berry); } .a-schauen { --c: var(--orange); } .a-musik { --c: var(--magenta); }
.a-spielen { --c: var(--leaf); } .a-entdecken { --c: var(--teal); } .a-kreativ { --c: var(--violet); } .a-goldclub { --c: var(--gold); }
.tile.a-goldclub { background: linear-gradient(160deg, #fff7dc, #fff); }
.tile .lockdot { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.tile .lockdot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.section-title { margin: 34px 0 14px; }

/* ---------- Listen ---------- */
.list { display: grid; gap: 14px; }
.item { display: flex; align-items: center; gap: 16px; text-decoration: none; background: var(--card); border-radius: 24px; box-shadow: var(--toy); padding: 12px 16px 12px 12px; transition: transform .12s; }
.thumb { --c: var(--accent); width: 72px; height: 72px; border-radius: 20px; flex: none; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.thumb svg { width: 38px; height: 38px; }
.item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-txt strong { font-size: 1.08rem; line-height: 1.25; }
.item-txt small { color: var(--ink-2); font-weight: 600; }
.badge { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.badge svg { width: 16px; height: 16px; }
.b-frei { background: #e3f4e4; color: #2c7a3c; } .b-lock { background: #efedf3; color: var(--ink-2); } .b-bald { background: #fff1c9; color: #8a6100; }
.empty { text-align: center; padding: 50px 20px; color: var(--ink-2); }
.empty svg { width: 70px; height: 70px; margin: 0 auto 10px; }

/* ---------- Detail ---------- */
.big-ico { --c: var(--accent); width: 120px; height: 120px; margin: 0 auto 10px; border-radius: 36px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.big-ico svg { width: 64px; height: 64px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-size: 1.15rem; font-weight: 600; text-decoration: none; box-shadow: 0 5px 0 rgba(0,0,0,.16); transition: transform .12s; }
.btn svg { width: 22px; height: 22px; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--toy); }
.btn.small { min-height: 48px; padding: 0 20px; font-size: 1rem; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--card); box-shadow: var(--toy); font-family: Fredoka, sans-serif; font-weight: 600; transition: transform .12s; }
.round svg { width: 28px; height: 28px; }
.round.big { width: 96px; height: 96px; background: var(--accent); color: #fff; }
.round.big svg { width: 42px; height: 42px; fill: currentColor; stroke: none; }
.round:disabled { opacity: .35; cursor: default; }
.flip svg { transform: scaleX(-1); }

/* Player */
.player { text-align: center; }
.cover { position: relative; width: min(320px, 80%); aspect-ratio: 1; margin: 0 auto 18px; border-radius: 32px; overflow: hidden; box-shadow: var(--toy); }
.cover svg { width: 100%; height: 100%; }
.controls { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 18px 0 10px; }
.progress { width: 100%; accent-color: var(--accent); }
.time { display: flex; justify-content: space-between; color: var(--ink-2); font-weight: 700; font-size: .9rem; }
.note { background: var(--tint); border-radius: 18px; padding: 14px 18px; font-weight: 600; color: var(--ink-2); margin-top: 14px; }
video { width: 100%; border-radius: 22px; background: #000; }

/* Reader */
.page { min-height: 52vh; font-size: 1.28rem; line-height: 1.65; padding: 36px 40px; user-select: none; touch-action: pan-y; }
.page h2 { font-size: 1.6rem; margin-bottom: .8em; }
.page p { margin: 0 0 .9em; }
.page .blau { color: #2f6fc0; }
.page .blass { color: #9b93ab; }
.book-title { font-family: Fredoka, sans-serif; color: var(--accent); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-weight: 700; color: var(--ink-2); }

/* Memo */
.game-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; font-weight: 700; font-size: 1.1rem; }
.memo { display: grid; gap: 14px; margin: 0 auto; }
.memo.p3 { grid-template-columns: repeat(3, 1fr); max-width: 520px; }
.memo.p6 { grid-template-columns: repeat(4, 1fr); max-width: 680px; }
.mc { border: 0; padding: 0; background: none; aspect-ratio: 3 / 4; perspective: 800px; }
.mc-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.mc.open .mc-in, .mc.found .mc-in { transform: rotateY(180deg); }
.mc-back, .mc-front { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; box-shadow: var(--toy); }
.mc-back { background: var(--accent); background-image: radial-gradient(rgba(255,255,255,.28) 2px, transparent 2.5px); background-size: 16px 16px; }
.mc-front { background: #fff; transform: rotateY(180deg); font-size: clamp(2rem, 7vw, 3.4rem); }
.mc.found .mc-front { background: #f3fbef; outline: 3px solid var(--leaf); }

/* Quiz */
.quiz { text-align: center; }
.ricky-says { position: relative; background: var(--card); border-radius: 30px; box-shadow: var(--toy); padding: 30px 26px; font-family: Fredoka, sans-serif; font-size: 1.7rem; font-weight: 600; margin: 10px 0 26px; }
.ricky-says::after { content: ""; position: absolute; left: 50%; bottom: -16px; margin-left: -16px; border: 16px solid transparent; border-bottom: 0; border-top-color: var(--card); }
.who-says { font-weight: 800; color: var(--accent); margin-bottom: 6px; font-family: Nunito, sans-serif; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.answers { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.answers .btn { min-width: 200px; min-height: 72px; font-size: 1.3rem; }
.answers .yes { background: var(--leaf); } .answers .no { background: var(--berry); }
.verdict { margin-top: 22px; font-size: 1.15rem; font-weight: 700; min-height: 3em; }
.verdict.ok { color: #2c7a3c; } .verdict.bad { color: #b03a4c; }
.dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dots i.ok { background: var(--leaf); } .dots i.bad { background: var(--berry); } .dots i.cur { background: var(--accent); }

/* Malbrett */
.paint-wrap { display: grid; gap: 14px; }
.palette { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.swatch { width: 52px; height: 52px; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--toy); }
.swatch.on { outline: 4px solid var(--ink); }
.sizes button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--toy); display: inline-grid; place-items: center; }
.sizes button.on { outline: 3px solid var(--ink); }
.sizes i { display: block; border-radius: 50%; background: var(--ink); }
canvas.board { width: 100%; height: 62vh; background: #fff; border-radius: 26px; box-shadow: var(--toy); touch-action: none; cursor: crosshair; }

/* Medaillen */
.medal { width: 120px; height: 120px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-family: Fredoka, sans-serif; font-weight: 700; color: #fff; font-size: 1.1rem; box-shadow: inset 0 -8px 0 rgba(0,0,0,.15), 0 6px 18px rgba(0,0,0,.12); }
.m-gold { background: radial-gradient(circle at 35% 30%, #ffe48a, #e3a514 60%, #b97f00); }
.m-silber { background: radial-gradient(circle at 35% 30%, #fff, #b9c2cc 60%, #8a95a1); color: #4b5563; }
.m-bronze { background: radial-gradient(circle at 35% 30%, #ffd2a8, #cd7f32 60%, #9a5a1d); }
.m-none { background: #ece6dc; color: #a39a8c; box-shadow: inset 0 4px 0 rgba(0,0,0,.05); }
.mini-medal { width: 30px; height: 30px; flex: none; border-radius: 50%; }
.shelf { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.shelf .medal { width: 84px; height: 84px; margin: 0; font-size: .85rem; }
.shelf figure { margin: 0; text-align: center; width: 120px; }
.shelf figcaption { font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.club-door { text-align: center; }
.club-door .door { width: 170px; height: 220px; margin: 0 auto 18px; border-radius: 85px 85px 18px 18px; background: linear-gradient(#f5c64a, #d99a06); box-shadow: inset 0 -10px 0 rgba(0,0,0,.12), var(--toy); position: relative; display: grid; place-items: center; color: #fff; }
.club-door .door svg { width: 60px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.club-door .door.open { background: linear-gradient(#fff3c4, #f5c64a); color: #b97f00; }

/* ---------- Overlay ---------- */
#overlay { position: fixed; inset: 0; z-index: 50; background: rgba(43,35,64,.5); display: grid; place-items: center; padding: 20px; }
#overlay[hidden] { display: none; }
.ov-box { background: var(--card); border-radius: 32px; padding: 30px; width: min(440px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .22s ease-out; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.gate h2 { text-align: center; }
.gate p { text-align: center; font-size: 1.1rem; }
.gate-display { height: 64px; border-radius: 18px; background: var(--tint); display: grid; place-items: center; font-family: Fredoka, sans-serif; font-size: 2rem; font-weight: 600; letter-spacing: .15em; margin: 12px 0 16px; }
.gate-display.shake { animation: shake .35s; background: #fde6ea; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { height: 64px; border-radius: 18px; border: 0; background: #f5f1ea; font-family: Fredoka, sans-serif; font-size: 1.5rem; font-weight: 600; }
.keypad button[data-k="OK"] { background: var(--accent); color: #fff; }
.link { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--ink-2); font-weight: 700; text-decoration: underline; }
.ov-box.pause { background: linear-gradient(170deg, #2e2a5a, #4b3f8c); color: #fff; text-align: center; }
.moon { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; box-shadow: inset -22px -6px 0 0 #ffe48a; transform: rotate(-20deg); }

/* ---------- Elternbereich ---------- */
.eltern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.panel { background: var(--card); border-radius: var(--r); box-shadow: var(--toy); padding: 24px; }
.panel.wide { grid-column: 1 / -1; }
.status { display: inline-block; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: #efedf3; color: var(--ink-2); margin: 0 0 14px; }
.status.on { background: #e3f4e4; color: #2c7a3c; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.plan { position: relative; border: 3px solid var(--line); border-radius: 22px; padding: 18px 16px 14px; text-align: center; }
.plan.best { border-color: var(--accent); background: var(--tint); }
.plan h3 { margin: 0; font-size: 1.05rem; }
.plan .price { font-family: Fredoka, sans-serif; font-size: 2rem; font-weight: 700; margin: 4px 0 0; }
.plan p { margin: 2px 0; font-size: .9rem; }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: #fff; font-family: Fredoka, sans-serif; font-weight: 600; font-size: .8rem; padding: 3px 12px; border-radius: 999px; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-weight: 600; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; background: #e3f4e4; color: #2c7a3c; font-weight: 900; font-size: .8rem; }
.profs { display: grid; gap: 10px; margin-bottom: 14px; }
.prof { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: #faf6ef; }
.prof span:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-weight: 800; }
.prof small { font-weight: 600; color: var(--ink-2); }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; line-height: 1; color: var(--ink-2); box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.pf { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.pf input, .pf select { min-height: 48px; border-radius: 14px; border: 2px solid var(--line); padding: 0 12px; font: inherit; background: #fff; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 800; }
.seg button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.log li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.log time { color: var(--ink-2); font-size: .85rem; min-width: 92px; }
.fine { font-size: .82rem; color: var(--ink-2); }

@media (max-width: 640px) {
  :root { font-size: 16px; }
  .hello { font-size: 1.8rem; }
  .bar-title { display: none; }
  .chip-name { display: none; }
  .memo.p6 { grid-template-columns: repeat(3, 1fr); }
  .page { padding: 24px 22px; }
  .pf { grid-template-columns: 1fr; }
  .world-head .scene { width: 110px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.page.img { padding: 14px; min-height: 0; }
.page.img img { display: block; width: 100%; border-radius: 16px; }
.gameframe { width: 100%; height: 76vh; border: 0; border-radius: 26px; box-shadow: var(--toy); background: #fff; }
/* Bereichsfarben zuletzt, damit sie für Kacheln, Listen und Detailseiten gelten */
.a-hoeren { --c: var(--sky); } .a-lesen { --c: var(--berry); } .a-schauen { --c: var(--orange); } .a-musik { --c: var(--magenta); }
.a-spielen { --c: var(--leaf); } .a-entdecken { --c: var(--teal); } .a-kreativ { --c: var(--violet); } .a-goldclub { --c: var(--gold); }
.memo.p6 { max-width: min(680px, calc(100vh - 180px)); }
.memo.p3 { max-width: min(520px, calc(56vh - 60px)); }
.item-txt strong, .world-head h1, .card h1 { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 640px) {
  .bar-title { display: block; visibility: hidden; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile { border-radius: 26px; }
  .tile-ico { width: 64px; height: 64px; border-radius: 22px; } .tile-ico svg { width: 36px; height: 36px; }
  .t-klein .tile-ico { width: 76px; height: 76px; } .t-klein .tile-ico svg { width: 42px; height: 42px; }
  .tile-label { font-size: 1.15rem; } .tile-hint { font-size: .75rem; }
  .item { gap: 12px; padding: 10px 12px 10px 10px; } .thumb { width: 58px; height: 58px; border-radius: 16px; } .thumb svg { width: 30px; height: 30px; }
  .badge { padding: 5px 9px; font-size: .78rem; }
  .world-head h1 { font-size: 1.6rem; }
  .plans { grid-template-columns: 1fr; gap: 20px; }
}

/* =====================================================================
   Dinofino-Design nach dem Start-Video: Pflaume, großer Kreis, Bogenfenster,
   weiße Schrift mit dunkler Kontur. (Überschreibt die Grundgestaltung oben.)
   ===================================================================== */
:root { --plum: #934174; --plum-2: #9f5382; --plum-ink: #4b1c40; --yellow: #ffcf3d;
  --outline: 0 2px 0 var(--plum-ink), 0 -2px 0 var(--plum-ink), 2px 0 0 var(--plum-ink), -2px 0 0 var(--plum-ink),
             1.5px 1.5px 0 var(--plum-ink), -1.5px 1.5px 0 var(--plum-ink), 1.5px -1.5px 0 var(--plum-ink), -1.5px -1.5px 0 var(--plum-ink),
             0 4px 0 rgba(75,28,64,.35); }
html { background: var(--plum); }
body { background: transparent; background-image: none; overflow-x: hidden; }
body::before { content: ""; position: fixed; z-index: -1; pointer-events: none; width: 80vmin; height: 80vmin; border-radius: 50%; background: var(--plum-2); top: -32vmin; right: -24vmin; }
body::after  { content: ""; position: fixed; z-index: -1; pointer-events: none; width: 44vmin; height: 44vmin; border-radius: 50%; background: rgba(255,255,255,.045); bottom: -16vmin; left: -14vmin; }
body.t-eltern { --accent: #934174; --tint: #f7ebf3; }
body.t-start  { --accent: #934174; }

/* Schrift auf Pflaume */
.hello, .world-head h1, .world-head p, .section-title, .claim, .who h2, .bar-title,
.game-head > span, .pager > span, .empty, .shelf figcaption, .club-hint {
  color: #fff; text-shadow: var(--outline); font-family: Delius, Fredoka, sans-serif; font-weight: 400;
}
.world-head p { color: #fff; opacity: .95; font-size: 1.05rem; }
.hello { font-size: 2.3rem; margin: 10px 0 28px; }
.section-title { font-size: 1.5rem; }
.empty svg { stroke: #fff; filter: drop-shadow(0 2px 0 var(--plum-ink)); }

/* Kopfleiste */
.bar { background: rgba(147,65,116,.9); }
.brand img { display: block; height: 46px; width: auto; filter: drop-shadow(0 3px 0 rgba(75,28,64,.35)); }

/* Bilder */
.scene img, .cover img, .thumb.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.world .scene { height: auto; aspect-ratio: 1 / 1; background: #fff; }
.world { border-radius: 30px; }
.world-txt h2 { font-family: Delius, Fredoka, sans-serif; font-weight: 400; font-size: 1.6rem; }
.world-head .scene { width: 104px; height: 104px; border-radius: 26px; border: 4px solid #fff; }
.thumb.pic { background: #fff; overflow: hidden; box-shadow: none; }
.cover { background: #fff; }

/* Begrüßung */
.splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.4vh; padding: 4vh 20px; text-align: center; }
.logo-wrap { position: relative; margin: 0; width: min(76vw, 470px); line-height: 0; animation: logoIn .9s cubic-bezier(.2,1.5,.4,1) both; }
.logo-wrap img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 0 rgba(75,28,64,.35)); }
.logo-wrap::after { content: ""; position: absolute; inset: 0;
  -webkit-mask: url(../img/logo.webp) center / 100% 100% no-repeat; mask: url(../img/logo.webp) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,214,70,.95) 47%, rgba(255,150,40,.9) 53%, transparent 62%);
  background-size: 320% 100%; background-position: 130% 0; animation: glint 3.4s ease-in-out 1.1s infinite; }
@keyframes glint { 0% { background-position: 130% 0; } 45%, 100% { background-position: -30% 0; } }
@keyframes logoIn { from { transform: scale(.55) translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.bogen { width: min(72vw, 440px); max-height: 48vh; object-fit: contain; animation: rise .8s .25s ease-out both, float 5s 1.4s ease-in-out infinite; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes float { 50% { transform: translateY(-7px); } }
.claim { font-size: clamp(1.15rem, 3.4vw, 1.65rem); margin: 0; animation: rise .8s .5s ease-out both; }
.btn.go { background: var(--yellow); color: var(--plum-ink); font-family: Delius, Fredoka, sans-serif; font-weight: 400; font-size: 1.55rem;
  min-height: 70px; padding: 0 46px; box-shadow: 0 6px 0 #c98f00, 0 14px 28px rgba(0,0,0,.22); animation: rise .8s .7s ease-out both, pulse 2.4s 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }

/* Spiele und Lesen auf Pflaume */
.verdict:not(:empty) { background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: var(--toy); }
.dots i { background: rgba(255,255,255,.35); }
.memo-head, .game-head { color: #fff; }
.mc-back { box-shadow: 0 5px 0 rgba(0,0,0,.18), 0 12px 24px rgba(0,0,0,.14); border: 4px solid #fff; }
.bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .2s, box-shadow .2s; }
html.scrolled .bar { background: rgba(147,65,116,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(75,28,64,.25); }
.ricky-says { margin-top: 64px; padding-top: 54px; }
.ricky-av { position: absolute; left: 50%; top: -58px; transform: translateX(-50%); width: 108px; height: 108px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 6px 0 rgba(75,28,64,.25); background: #8dc6ec; }
/* Spiele im Vollbild */
.gamestage { position: fixed; inset: 0; z-index: 30; background: #000; }
.gamestage iframe { display: block; width: 100%; height: 100%; border: 0; }
.game-close { position: absolute; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); z-index: 2; opacity: .92; }
.thumb.pic.wide { width: 96px; border-radius: 16px; }
@media (max-width: 640px) { .thumb.pic.wide { width: 78px; } }
/* Buchseiten */
.page.img { display: flex; justify-content: center; align-items: center; padding: 10px; min-height: 0; }
.page.img img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.endpage { padding: 40px 10px; }
.thumb.pic.book { width: 60px; height: 84px; border-radius: 10px; }
.thumb.pic.book img { object-position: top; }
/* Kapitel im Hörbuch-Player */
.now { font-weight: 800; color: var(--accent); margin: 6px 0 0; min-height: 1.3em; }
.chapters { display: grid; gap: 8px; }
.chap { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--toy); font-weight: 700; }
.chap.on { outline: 3px solid var(--yellow); }
.chap.locked { opacity: .72; }
.chap-nr { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: Fredoka, sans-serif; }
.chap.locked .chap-nr { background: #cfc6d6; }
.chap-t { flex: 1; }
.chap-d { color: var(--ink-2); font-size: .9rem; }
.chap-d svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.player .cover { width: min(300px, 80%, 34vh); }
/* Songs: breite Vorschaubilder */
.thumb.pic.wide img { object-fit: cover; }
/* Ausmalbilder – Galerie */
.section-title .badge { text-shadow: none; vertical-align: middle; font-size: .8rem; margin-left: 10px; font-family: Fredoka, sans-serif; }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pic-card { display: flex; flex-direction: column; gap: 7px; background: var(--card); border-radius: 20px; padding: 8px 8px 10px; box-shadow: var(--toy); text-decoration: none; transition: transform .12s; }
.pic-card:active { transform: translateY(3px) scale(.98); }
.pic-img { position: relative; display: block; aspect-ratio: 1200 / 849; border-radius: 14px; overflow: hidden; background: #fff; border: 2px solid var(--line); }
.pic-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pic-lock { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 50%; background: rgba(43,35,64,.78); color: #fff; display: grid; place-items: center; }
.pic-lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pic-t { font-weight: 700; font-size: .95rem; line-height: 1.2; padding: 0 4px; }
/* Ausmalbilder – Ausmalen */
.color-wrap { display: grid; gap: 12px; }
.color-wrap .palette { gap: 8px; }
.color-wrap .swatch { width: 46px; height: 46px; }
.swatch[data-c="#ffffff"] { background-image: linear-gradient(135deg, transparent 45%, #e53935 45%, #e53935 55%, transparent 55%) !important; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.tools { display: inline-flex; gap: 10px; }
.tools[hidden] { display: none; }
.tool { width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--card); box-shadow: var(--toy); display: grid; place-items: center; color: var(--ink); transition: transform .12s; }
.tool svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tool i { display: block; border-radius: 50%; background: var(--ink); }
.tool.on { background: var(--yellow); box-shadow: 0 0 0 3px var(--plum-ink), var(--toy); }
.tool:disabled { opacity: .4; cursor: default; }
.tool:active { transform: translateY(3px) scale(.97); }
.color-stage { position: relative; width: min(100%, calc((100vh - 340px) * 1.42)); width: min(100%, calc((100dvh - 340px) * 1.42)); min-width: min(100%, 300px);
  margin: 0 auto; aspect-ratio: 1200 / 849; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--toy); }
.color-stage canvas, .color-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.color-stage canvas { touch-action: none; cursor: crosshair; }
.color-stage img { mix-blend-mode: multiply; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.color-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-weight: 700; color: var(--ink-2); }
.color-wrap .pager { margin-top: 0; }
a.round { text-decoration: none; color: var(--ink); }
.round.off { opacity: .3; }
@media (min-width: 900px) and (orientation: landscape) {
  .color-wrap { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 18px; }
  .color-wrap .palette { grid-column: 1; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(2, 46px); }
  .color-wrap .toolbar { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; flex-wrap: nowrap; }
  .color-wrap .tools { flex-direction: column; }
  .color-stage { grid-column: 2; grid-row: 1; width: min(100%, calc((100vh - 190px) * 1.42)); width: min(100%, calc((100dvh - 190px) * 1.42)); }
  .color-wrap .pager { grid-column: 2; grid-row: 2; }
}
@media (max-width: 640px) {
  .pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .color-wrap .swatch { width: 38px; height: 38px; border-width: 3px; }
  .tool { width: 48px; height: 48px; border-radius: 15px; } .tool svg { width: 26px; height: 26px; }
  .color-stage { width: 100%; }
}
/* Drucken: nur das Ausmalbild */
.print-sheet { display: none; }
@media print {
  @page { size: landscape; margin: 10mm; }
  html.printing, html.printing body { background: #fff !important; }
  html.printing body::before, html.printing body::after { display: none !important; }
  html.printing body > :not(.print-sheet) { display: none !important; }
  html.printing .print-sheet { display: flex; align-items: center; justify-content: center; }
  html.printing .print-sheet img { max-width: 100%; max-height: 180mm; }
}
/* =====================================================================
   Drehen: Alles folgt dem Gerät (hoch und quer). Nichts ist auf eine Richtung festgelegt.
   ===================================================================== */
/* Spiele: Hinweis „Dreh dein Gerät quer!“ nur auf Touch-Geräten im Hochformat */
.turn-hint { display: none; }
@media (orientation: portrait) and (pointer: coarse) {
  .gamestage .turn-hint { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    background: rgba(147,65,116,.94); color: #fff; text-align: center; padding: 30px; }
  .gamestage.no-hint .turn-hint { display: none; }
}
.turn-hint p { margin: 0; font-family: Delius, Fredoka, sans-serif; font-size: 1.7rem; text-shadow: var(--outline); }
.turn-phone { width: 78px; height: 130px; border: 7px solid #fff; border-radius: 18px; position: relative; animation: turnme 2.4s ease-in-out infinite; box-shadow: 0 6px 0 rgba(75,28,64,.35); }
.turn-phone::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; }
@keyframes turnme { 0%, 20% { transform: rotate(0); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
.game-close { z-index: 2; }

/* Videos: im Querformat auf Tablet/Handy füllt das laufende Video den ganzen Bildschirm */
.vid-box { position: relative; }
.kino-close { display: none; }
@media (orientation: landscape) and (pointer: coarse) {
  .vid-view.started .vid-box { position: fixed; inset: 0; z-index: 40; background: #000; }
  .vid-view.started .vid-box video { width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
  .vid-view.started .kino-close { display: grid; position: absolute; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); opacity: .85; }
  .vid-view.started ~ * { display: none; }
  html:has(.vid-view.started) { overflow: hidden; }
}

/* Handy quer (wenig Höhe): kompakte Kopfleiste, Seiten und Bilder so groß wie möglich */
@media (orientation: landscape) and (max-height: 560px) {
  .bar { padding-top: 6px; padding-bottom: 6px; }
  .bar .btn-ico { width: 44px; height: 44px; } .brand img { height: 36px; }
  .wrap { padding-top: 2px; }
  /* Lesen: Pfeile links und rechts neben der Seite */
  .page.img { padding: 4px; }
  .page.img img { max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px); }
  .rd-pager { margin: 0; }
  .rd-pager .round { position: fixed; top: 50%; transform: translateY(-50%); z-index: 5; width: 56px; height: 56px; }
  .rd-pager #prev { left: max(10px, env(safe-area-inset-left)); }
  .rd-pager #next { right: max(10px, env(safe-area-inset-right)); }
  .rd-pager > span { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: 8px; font-size: .9rem; }
  /* Hören: Cover kleiner */
  .player .cover { width: min(180px, 40vh); }
  .player h1 { font-size: 1.5rem; }
  /* Ausmalen: Farben links, Bild Mitte, Werkzeuge rechts */
  .color-wrap { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 12px; row-gap: 6px; }
  .color-wrap .palette { grid-column: 1; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(3, 32px); gap: 6px; }
  .color-wrap .swatch { width: 32px; height: 32px; border-width: 3px; }
  .color-wrap .toolbar { grid-column: 3; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(2, 44px); gap: 6px; }
  .color-wrap .tools { display: contents; }
  .color-wrap .tools[hidden] { display: none; }
  .color-wrap .tool { width: 44px; height: 44px; border-radius: 13px; } .color-wrap .tool svg { width: 24px; height: 24px; }
  .color-stage { grid-column: 2; grid-row: 1; width: min(100%, calc((100vh - 120px) * 1.42)); width: min(100%, calc((100dvh - 120px) * 1.42)); min-width: 0; border-radius: 14px; }
  .color-wrap .pager { grid-column: 2; grid-row: 2; }
  .color-wrap .pager .round { width: 44px; height: 44px; } .color-wrap .pager .round svg { width: 22px; height: 22px; }
}

/* Startvideo (Dinofino-Logo, 25.11.2026) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.start-box { position: relative; width: min(96vw, 980px, 118vh); }
.start-vid { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: transparent; animation: rise .6s ease-out both;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect; }
.start-ton { position: absolute; right: 6%; bottom: 8%; }
.splash .btn.go { animation-delay: 1.2s, 3s; }
/* Auf dem Startbild nur die Kreise aus dem Video zeigen, damit kein Rand zu sehen ist */
body.t-splash::before, body.t-splash::after { display: none; }
html:has(body.t-splash) { background: #994a73; }
