/* Mein ADHS – Mitmach-App
   Farbwelt aus dem Buch (ARBEITSWEISE_KI.md §4): Soft-Koralle, Honiggelb, Blattgrün, sanftes Petrol
   + Papier-Creme und das Hoodie-Blau der Hauptfigur. */

@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url(fonts/nunito-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(fonts/nunito-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Patrick Hand"; font-weight: 400; font-display: swap; src: url(fonts/patrick-hand-latin-400-normal.woff2) format("woff2"); }

:root {
  --paper: #FBF3E6;
  --paper-2: #F3E4CB;
  --ink: #26283A;
  --ink-soft: #5B5A66;
  --coral: #E8735A;
  --coral-soft: #F6B9A4;
  --honey: #F2B544;
  --honey-soft: #F8DA94;
  --leaf: #93B86A;
  --leaf-soft: #CFE0B0;
  --petrol: #3F7F8A;
  --sky-soft: #BFDCE6;
  --lilac-soft: #D9C9EA;
  --hoodie: #2E4C86;
  --radius: 22px;
  --hand: "Patrick Hand", "Chalkboard SE", "Comic Sans MS", cursive;
  --body: "Nunito", ui-rounded, -apple-system, system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
  background-color: var(--paper);
  /* Papier-Körnung wie in den Illustrationen */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .42  0 0 0 0 .25  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100%; position: relative; }

h1, h2 { margin: 0 0 .4em; line-height: 1.1; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: .2px; }
.hand.big { font-size: 46px; color: var(--hoodie); }
h2.hand { font-size: 32px; color: var(--hoodie); }
.center { text-align: center; }
p { margin: 0 0 .8em; }
.pad { padding: 8px 20px 24px; }
.lead { font-size: 18px; color: var(--ink-soft); }
.hint { color: var(--ink-soft); }
.mini { font-size: 14px; color: var(--ink-soft); margin: 14px 0 6px; }

/* ---------- Screens ---------- */
.screen { display: none; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(96px + var(--safe-bot)); animation: fadeIn .35s ease; }
.screen[data-active] { display: block; }
#home, #k09-start, #k09-done { padding-bottom: calc(24px + var(--safe-bot)); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Home ---------- */
.hero { position: relative; }
.hero-img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero-title { position: relative; margin-top: -54px; text-align: center; padding: 0 20px; }
.hero-title h1 { font-family: var(--hand); font-weight: 400; font-size: 38px; color: var(--hoodie); }
.kicker { display: inline-block; background: #fff; border-radius: 99px; padding: 4px 12px; margin-bottom: 6px; font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--coral); }

.task-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.task { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: rgba(255,255,255,.55); border: 2px dashed rgba(38,40,58,.12); }
.task.live { background: #fff; border: 2px solid var(--honey-soft); box-shadow: 0 6px 18px rgba(160,110,40,.14); cursor: pointer; }
.task.live:active { transform: scale(.98); }
.task .num { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--hand); font-size: 22px; color: var(--ink); }
.task .t { font-weight: 800; }
.task .s { font-size: 14px; color: var(--ink-soft); }
.task.soon { opacity: .6; }
.task .badge { margin-left: auto; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-soft); white-space: nowrap; }
.task.live .badge { background: var(--leaf-soft); color: #3f5d22; }

/* ---------- Start (Illustration oben) ---------- */
.img-top { position: relative; height: 52vh; height: 52dvh; overflow: hidden; }
.img-top img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.sheet { position: relative; margin-top: -28px; background: var(--paper); border-radius: 28px 28px 0 0; padding: 22px 20px 10px; box-shadow: 0 -8px 20px rgba(80,50,20,.12); }
.tag { display: inline-block; font-size: 13px; font-weight: 800; color: var(--coral); background: #fff; border-radius: 99px; padding: 4px 12px; margin-bottom: 8px; }

.field { display: block; margin: 16px 0 18px; }
.field > span { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.field i { font-weight: 400; color: var(--ink-soft); }

input[type=text] {
  width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 16px;
  border: 2px solid var(--paper-2); background: #fff; color: var(--ink); outline: none;
}
input[type=text]:focus { border-color: var(--honey); }

/* ---------- Buttons ---------- */
.btn { font: inherit; font-weight: 800; font-size: 18px; border: 0; border-radius: 99px; padding: 15px 24px; cursor: pointer; transition: transform .1s; }
.btn:active { transform: scale(.96); }
.btn.primary { width: 100%; background: var(--coral); color: #fff; box-shadow: 0 6px 0 #c4563f, 0 10px 20px rgba(200,90,60,.25); }
.btn.primary:active { box-shadow: 0 2px 0 #c4563f; transform: translateY(4px); }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--paper-2); }
.btn.add { flex: 0 0 54px; height: 54px; padding: 0; font-size: 30px; line-height: 1; background: var(--honey); color: var(--ink); }
.link { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 14px; text-decoration: underline; }
.back { background: none; border: 0; font-size: 38px; line-height: 1; color: var(--hoodie); width: 44px; height: 44px; cursor: pointer; }
.back.round { position: absolute; top: calc(10px + var(--safe-top)); left: 12px; background: rgba(251,243,230,.9); border-radius: 50%; font-size: 32px; padding-bottom: 4px; }
.row { display: flex; gap: 12px; margin-top: 18px; }
.row .btn { flex: 1; }

/* ---------- Top-Bar & Fuß ---------- */
.topbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(6px + var(--safe-top)) 10px 6px; background: linear-gradient(var(--paper) 75%, rgba(251,243,230,0)); }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-2); }
.dots i.on { background: var(--coral); }
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 14px 20px calc(14px + var(--safe-bot)); background: linear-gradient(rgba(251,243,230,0), var(--paper) 35%); max-width: 480px; margin: 0 auto; }

/* ---------- Eingabe-Zeile & Chips ---------- */
.add-row { display: flex; gap: 10px; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; padding: 8px 14px; border-radius: 99px; border: 2px dashed var(--coral-soft); background: #fff; color: var(--ink); cursor: pointer; }
.chip.used { opacity: .35; pointer-events: none; }

/* ---------- Vulkan ---------- */
.volcano-wrap { position: relative; width: 100%; max-width: 360px; margin: 4px auto 0; aspect-ratio: 360/330; }
.volcano-wrap.small { max-width: 250px; }
.volcano-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.magma { position: absolute; left: 16%; right: 16%; top: 64%; bottom: 4%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px; padding: 4px; }
.small .magma { gap: 3px; }
.ember { font-family: var(--hand); font-size: 16px; line-height: 1.1; background: rgba(255,240,200,.92); color: #8a2c14; border-radius: 10px; padding: 3px 9px; display: inline-flex; align-items: center; gap: 6px; animation: drop .55s cubic-bezier(.3,1.4,.5,1); max-width: 100%; }
.small .ember { font-size: 12.5px; padding: 2px 6px; }
.ember button { border: 0; background: none; font-size: 15px; color: #8a2c14; padding: 0; cursor: pointer; line-height: 1; }
.small .ember button { display: none; }
@keyframes drop { from { transform: translateY(-140px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.volcano-wrap.heat-1 svg { animation: rumble 3.2s infinite; }
.volcano-wrap.heat-2 svg { animation: rumble 1.6s infinite; }
.volcano-wrap.heat-3 svg { animation: rumble .7s infinite; }
@keyframes rumble { 0%,88%,100% { transform: none; } 90% { transform: translate(-1.5px, .5px) rotate(-.4deg); } 93% { transform: translate(1.5px,-.5px) rotate(.4deg); } 96% { transform: translate(-1px,0); } }
.small svg { animation: none !important; }
.puff { transform-box: fill-box; transform-origin: center; animation: puff 3.5s ease-in infinite; }
@keyframes puff { 0% { transform: translateY(10px) scale(.5); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-50px) scale(1.4); opacity: 0; } }

/* ---------- Karten im Wolken-Stil der Illustration ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.card {
  position: relative; font: inherit; text-align: center; cursor: pointer; border: 0;
  padding: 16px 10px 14px; min-height: 128px; color: var(--ink);
  border-radius: 46% 54% 50% 50% / 48% 44% 56% 52%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.55), transparent 60%), var(--c, var(--honey-soft));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: transform .15s, box-shadow .15s; opacity: .78;
}
.card::after { content: ""; position: absolute; inset: 6px; border-radius: inherit; border: 2px dashed rgba(255,255,255,.85); pointer-events: none; }
.card .ic { width: 62px; height: 62px; object-fit: contain; font-size: 40px; line-height: 62px; }
.card .lbl { font-family: var(--hand); font-size: 20px; line-height: 1.05; }
.card .sub { font-size: 12px; color: var(--ink-soft); }
.card.on { opacity: 1; transform: scale(1.03) rotate(-1deg); box-shadow: 0 0 0 3px var(--coral), 0 8px 18px rgba(0,0,0,.12); }
.card.on::before { content: "✓"; position: absolute; top: 4px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; z-index: 2; }
.card .try { margin-top: 2px; font: inherit; font-size: 12px; font-weight: 800; color: var(--petrol); background: rgba(255,255,255,.8); border: 0; border-radius: 99px; padding: 4px 10px; cursor: pointer; }

.c-honey { --c: var(--honey-soft); } .c-sky { --c: var(--sky-soft); } .c-coral { --c: var(--coral-soft); }
.c-leaf { --c: var(--leaf-soft); } .c-lilac { --c: var(--lilac-soft); }

.sentence { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: #fff; border-left: 6px solid var(--honey); font-size: 17px; }
.sentence:empty { display: none; }
.sentence b { color: var(--coral); }

/* ---------- Poster ---------- */
.poster { background: #fffaf1; border-radius: 26px; padding: 18px 14px 0; box-shadow: 0 10px 28px rgba(120,80,30,.16); overflow: hidden; }
.poster-stage { position: relative; padding: 70px 0 6px; }
.ring { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute; font-family: var(--hand); font-size: 15px; line-height: 1.05; text-align: center;
  width: 92px; min-height: 64px; padding: 8px 6px; display: grid; place-items: center;
  border-radius: 46% 54% 50% 50% / 48% 44% 56% 52%; background: var(--c, var(--honey-soft));
  animation: pop .5s cubic-bezier(.3,1.5,.5,1) both;
}
.bubble::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; border: 1.5px dashed rgba(255,255,255,.9); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.merk { display: flex; gap: 10px; align-items: center; margin: 14px 4px 6px; }
.merk img { width: 44px; height: 44px; flex: 0 0 44px; }
.merk p { margin: 0; font-family: var(--hand); font-size: 20px; line-height: 1.15; color: var(--hoodie); }
.poster-calm { display: block; width: calc(100% + 28px); margin: 10px -14px 0; aspect-ratio: 1/1; object-fit: cover; object-position: center 20%; -webkit-mask-image: linear-gradient(transparent, #000 25%); mask-image: linear-gradient(transparent, #000 25%); }

/* ---------- Atem-Übung ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(251,243,230,.97); display: grid; place-items: center; animation: fadeIn .3s; }
.overlay[hidden] { display: none; }
.breath-box { text-align: center; padding: 20px; }
.breath-circle { width: 220px; height: 220px; margin: 0 auto 24px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, var(--sky-soft) 70%); display: grid; place-items: center; transform: scale(.6); transition: transform 4s ease-in-out; box-shadow: 0 0 0 10px rgba(191,220,230,.35); }
.breath-circle img { width: 90px; }
.breath-circle.in { transform: scale(1); }
.breath-text { font-size: 34px; color: var(--petrol); margin: 0; min-height: 44px; }

/* ---------- Sterne ---------- */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.stars span { position: absolute; font-size: 26px; color: var(--honey); animation: fly 1.6s ease-out forwards; }
@keyframes fly { from { transform: translate(0,0) scale(.4) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(1.2) rotate(200deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =====================================================================
   Ab hier: Bausteine für K01, K16, K18 und den Tracker
   ===================================================================== */
.img-top.wide { height: 40vh; height: 40dvh; min-height: 260px; }
.top-safe { padding-top: calc(14px + var(--safe-top)); }
.pad.center, .center { text-align: center; }
.flash { position: fixed; left: 50%; bottom: calc(110px + var(--safe-bot)); transform: translateX(-50%); background: var(--hoodie); color: #fff; padding: 12px 18px; border-radius: 16px; z-index: 40; font-weight: 800; max-width: 86%; text-align: center; animation: fadeIn .3s; }
.extra { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.poster-calm.wide { aspect-ratio: 1168/543; object-position: center; }
.chip.pick.on { background: var(--coral); border-color: var(--coral); color: #fff; font-weight: 800; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices .chip { font-size: 17px; padding: 12px 18px; }

/* ---------- Tab-Leiste unten ---------- */
.screen.with-tabbar { padding-bottom: calc(92px + var(--safe-bot)); }
.tabbar { position: fixed; z-index: 8; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; display: flex; gap: 8px; padding: 8px 14px calc(8px + var(--safe-bot)); background: rgba(251,243,230,.96); border-top: 2px dashed rgba(38,40,58,.1); backdrop-filter: blur(6px); }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 800; color: var(--ink-soft); padding: 4px; border-radius: 14px; cursor: pointer; }
.tabbar img { width: 34px; height: 34px; opacity: .55; }
.tabbar button.on { color: var(--hoodie); background: #fff; }
.tabbar button.on img { opacity: 1; }

/* ---------- Startseite: Fortschritt-Kärtchen ---------- */
.progress-mini { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--honey-soft); border-radius: var(--radius); padding: 10px 14px; margin: 4px 0 14px; cursor: pointer; box-shadow: 0 6px 16px rgba(160,110,40,.12); }
.progress-mini img { width: 52px; height: 52px; }
.progress-mini small { color: var(--ink-soft); }
.progress-mini i { margin-left: auto; font-style: normal; font-size: 28px; color: var(--hoodie); }
.task .badge.done { background: var(--honey-soft); color: #7a4f00; }

/* ---------- Tracker ---------- */
.star-total { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 16px; }
.star-total img { width: 74px; height: 74px; }
.star-total b { display: block; font-family: var(--hand); font-size: 48px; line-height: 1; color: var(--coral); }
.star-total span { color: var(--ink-soft); font-weight: 800; }
.panel { background: #fff; border-radius: var(--radius); padding: 16px 14px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(120,80,30,.08); }
.panel h2.hand { font-size: 26px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.day { font: inherit; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; color: var(--ink); }
.day small { font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.day span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px dashed var(--paper-2); font-weight: 800; }
.day.today span { border: 2px solid var(--coral); }
.day.on span { background: var(--leaf); border: 2px solid var(--leaf); color: #fff; font-size: 20px; }
.day:disabled { opacity: .4; cursor: default; }
.day em { font-style: normal; font-size: 16px; min-height: 20px; }
.week-sum { margin: 10px 0 0; text-align: center; }
.moods { display: flex; justify-content: space-between; }
.mood { font-size: 34px; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; filter: grayscale(.6); opacity: .7; transition: transform .15s; }
.mood.on { filter: none; opacity: 1; background: var(--honey-soft); transform: scale(1.15); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; text-align: center; }
.stat-row b { display: block; font-family: var(--hand); font-size: 34px; color: var(--petrol); line-height: 1.1; }
.stat-row span { font-size: 12.5px; color: var(--ink-soft); }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; height: 110px; margin: 14px 0 4px; align-items: end; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar i { display: block; width: 70%; min-height: 4px; background: var(--leaf); border-radius: 8px 8px 3px 3px; }
.bar small { font-size: 11px; color: var(--ink-soft); }

/* Sterne-Weg: geschwungener Pfad mit Stationen */
.path { position: relative; padding: 6px 0; }
.path::before { content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 0; border-left: 4px dotted var(--honey); transform: translateX(-50%); }
.station { position: relative; display: flex; align-items: center; gap: 10px; width: 50%; padding: 8px 0; }
.station.l { flex-direction: row-reverse; text-align: right; margin-right: auto; padding-right: 0; transform: translateX(26px); }
.station.r { margin-left: auto; transform: translateX(-26px); }
.station .dot { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c); font-family: var(--hand); font-size: 22px; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.1); z-index: 1; }
.station .st-lbl { font-weight: 800; font-size: 14px; line-height: 1.2; }
.station .st-lbl small { font-weight: 400; color: var(--ink-soft); }
.station.soon { opacity: .5; }
.station.soon .dot { background: var(--paper); border: 3px dashed var(--paper-2); }
.station.done .dot { background: var(--honey); color: #fff; font-size: 26px; border-color: var(--honey-soft); }
.station.live { cursor: pointer; }
.station.live:not(.done) .dot { border-color: var(--coral); }

/* ---------- K01: Browser mit Tabs ---------- */
.browser { background: #fff; border-radius: 18px; border: 3px solid var(--hoodie); overflow: hidden; box-shadow: 0 8px 0 rgba(46,76,134,.15); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--sky-soft); border-bottom: 3px solid var(--hoodie); }
.browser-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); border: 2px solid var(--hoodie); }
.browser-bar i:nth-child(2) { background: var(--honey); } .browser-bar i:nth-child(3) { background: var(--leaf); }
.browser-count { margin-left: auto; font-family: var(--hand); font-size: 18px; color: var(--hoodie); }
.tabstrip { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 8px 0; background: var(--paper); max-height: 190px; overflow-y: auto; }
.tab { display: inline-flex; align-items: center; gap: 4px; max-width: 48%; font: inherit; font-size: 13.5px; font-weight: 800; padding: 5px 9px 5px 5px; border: 2px solid rgba(46,76,134,.35); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--c); color: var(--ink); cursor: pointer; animation: pop .35s cubic-bezier(.3,1.5,.5,1); }
.tab img { width: 22px; height: 22px; flex: 0 0 22px; }
.tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab.active { border-color: var(--hoodie); transform: translateY(2px); box-shadow: 0 -3px 0 var(--coral) inset; }
.tab.spark span::after { content: " ✨"; }
.tab-empty { font-size: 14px; color: var(--ink-soft); padding: 4px 6px 10px; }
.browser-page { min-height: 170px; padding: 16px; text-align: center; border-top: 2px solid rgba(46,76,134,.2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.page-hint { color: var(--ink-soft); margin: 0; }
.page-ic { width: 72px; height: 72px; }
.page-title { font-size: 28px; color: var(--hoodie); margin: 4px 0 10px; line-height: 1.1; word-break: break-word; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.browser.small .tabstrip { max-height: none; padding-bottom: 8px; }
.browser.small .tab { border-bottom: 2px solid rgba(46,76,134,.35); border-radius: 12px; animation-duration: .5s; }

/* ---------- K16: Plan & Timer ---------- */
.mini-hero { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.mini-hero img { width: 64px; height: 64px; }
.mini-hero span { font-size: 24px; color: #4f6b33; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 6px; }
.stepper .btn.add { flex: 0 0 64px; height: 64px; font-size: 36px; }
.stepper-val { text-align: center; min-width: 110px; }
.stepper-val span { display: block; font-family: var(--hand); font-size: 72px; line-height: .95; color: var(--petrol); }
.stepper-val small { font-weight: 800; color: var(--ink-soft); }
.plan { list-style: none; padding: 0; margin: 4px 0 8px; counter-reset: p; }
.plan li { counter-increment: p; position: relative; padding: 10px 10px 10px 46px; border-bottom: 2px dashed var(--paper-2); }
.plan li::before { content: counter(p); position: absolute; left: 4px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--leaf-soft); display: grid; place-items: center; font-family: var(--hand); font-size: 18px; }
.plan span { display: block; font-size: 13.5px; color: var(--ink-soft); }
.plan b { font-size: 17px; } .plan i { color: var(--ink-soft); font-weight: 400; }
.btn.big-go { margin-top: 18px; font-size: 22px; padding: 18px; background: var(--leaf); box-shadow: 0 6px 0 #6d8f48, 0 10px 20px rgba(100,140,60,.25); }
.ring-timer { position: relative; width: min(78vw, 290px); aspect-ratio: 1; margin: 6px auto 14px; }
.ring-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rt-bg { fill: #fff; stroke: var(--paper-2); stroke-width: 16; }
.rt-fg { fill: none; stroke: var(--honey); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 603; stroke-dashoffset: 0; transition: stroke-dashoffset .3s linear; }
.ring-timer.is-pause .rt-fg { stroke: var(--sky-soft); }
.rt-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rt-mid img { width: 58px; height: 58px; }
.rt-mid span { font-family: var(--hand); font-size: 64px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.rt-mid small { font-weight: 800; color: var(--ink-soft); }
#k16-timer .sentence { text-align: left; }
#k16ctrl { margin-top: 14px; }

/* ---------- K18: Fertig-Meter, Zeichnen, zwei Kreise ---------- */
.meter { background: #fff; border-radius: var(--radius); padding: 16px; text-align: center; }
.meter-big { font-family: var(--hand); font-size: 64px; line-height: 1; color: var(--honey); transition: color .2s; }
.meter.good .meter-big { color: #5f8a37; }
.meter input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; border-radius: 99px; margin: 14px 0 6px;
  background: linear-gradient(90deg, var(--honey) 0 var(--p, 50%), transparent var(--p, 50%)), linear-gradient(90deg, var(--paper-2) 0 80%, var(--leaf-soft) 80% 100%); }
.meter input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 4px solid var(--coral); box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.meter input[type=range]::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 4px solid var(--coral); }
.meter-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }
.meter-zone { margin-left: auto; margin-right: 8px; color: #4f6b33; font-weight: 800; }
.meter-msg { font-size: 22px; margin: 10px 0 0; color: var(--hoodie); min-height: 28px; }
.drawbox { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: 0 6px 16px rgba(120,80,30,.1); }
.drawbox canvas { width: 100%; aspect-ratio: 640/440; display: block; border-radius: 14px; border: 2px dashed var(--paper-2); background: #fffaf1; }
.draw-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.draw-time { font-family: var(--hand); font-size: 26px; min-width: 64px; color: var(--coral); }
.draw-time.over { color: #5f8a37; }
.pens { display: flex; gap: 6px; flex: 1; justify-content: center; }
.pen { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--paper-2); cursor: pointer; }
.pen.on { box-shadow: 0 0 0 3px var(--ink); }
.two-circles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.two-circles figure { margin: 0; text-align: center; }
.circ { aspect-ratio: 1; border-radius: 50%; background: var(--c); display: grid; place-items: center; overflow: hidden; padding: 12px; border: 3px dashed rgba(255,255,255,.9); }
.circ p { margin: 0; font-family: var(--hand); font-size: 17px; line-height: 1.15; }
.circ img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.two-circles figcaption { font-weight: 800; font-size: 13.5px; margin-top: 6px; color: var(--ink-soft); }

/* =====================================================================
   Baukasten (engine.js): Felder & Poster für alle weiteren Aufgaben
   ===================================================================== */
textarea { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--paper-2); background: #fff; color: var(--ink); outline: none; resize: vertical; }
textarea:focus { border-color: var(--honey); }
.field > span { display: block; font-weight: 800; font-size: 15.5px; margin-bottom: 8px; line-height: 1.3; }
.field .drawbox { margin-top: 2px; }
.chips.small { margin-top: 8px; }
.chips.small .chip { font-size: 13.5px; padding: 6px 10px; }
.btn.full { width: 100%; margin-top: 14px; }

/* Ankreuz-Gruppen (K02) */
.checkgroups { display: grid; gap: 12px; }
.checkgroup { background: var(--c); border-radius: 20px; padding: 12px; }
.checkgroup h3 { margin: 0 0 8px; font-family: var(--hand); font-weight: 400; font-size: 22px; display: flex; justify-content: space-between; align-items: baseline; }
.checkgroup h3 small { font-family: var(--body); font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.checkrow { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; font: inherit; font-size: 15.5px; background: rgba(255,255,255,.75); border: 0; border-radius: 14px; padding: 10px 12px; margin-top: 6px; cursor: pointer; color: var(--ink); }
.checkrow i { flex: 0 0 26px; height: 26px; border-radius: 8px; border: 2.5px solid var(--hoodie); display: grid; place-items: center; font-style: normal; background: #fff; }
.checkrow.on i::after { content: "✓"; font-weight: 800; color: var(--hoodie); }
.checkrow.on { background: #fff; font-weight: 800; }
.bars3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; height: 150px; margin: 6px 0; }
.bars3 > div { position: relative; border-radius: 16px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 8px 4px; text-align: center; }
.bars3 i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--c); }
.bars3 b, .bars3 span { position: relative; z-index: 1; }
.bars3 b { font-family: var(--hand); font-size: 34px; line-height: 1; }
.bars3 span { font-size: 11.5px; font-weight: 800; }

/* Skala (Smileys) */
.scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
.sc { font: inherit; border: 2px solid var(--paper-2); background: #fff; border-radius: 16px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; color: var(--ink); }
.sc b { font-size: 30px; line-height: 1.1; }
.sc small { font-size: 12px; font-weight: 800; color: var(--ink-soft); text-align: center; }
.sc.on { border-color: var(--coral); background: var(--honey-soft); }

/* Zahl, Nummernliste */
.stepper.small { justify-content: flex-start; gap: 14px; margin: 0; }
.stepper.small .btn.add { flex: 0 0 52px; height: 52px; font-size: 30px; }
.stepper.small .stepper-val span { font-size: 48px; }
.numlist { display: grid; gap: 8px; }
.numrow { display: flex; align-items: center; gap: 10px; }
.numrow b { font-family: var(--hand); font-size: 22px; color: var(--coral); width: 22px; }

/* Abhak-Liste */
.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.todo li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 8px 10px; border: 2px solid var(--paper-2); }
.todo li.empty { color: var(--ink-soft); border-style: dashed; justify-content: center; font-size: 14.5px; }
.todo li span { flex: 1; }
.todo li em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--petrol); background: var(--sky-soft); padding: 2px 8px; border-radius: 99px; }
.todo .tick { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 3px solid var(--leaf); background: #fff; font-weight: 800; color: #fff; font-size: 17px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.todo li.done .tick { background: var(--leaf); }
.todo li.done span { text-decoration: line-through; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; color: var(--ink-soft); }
.todo .rm { border: 0; background: none; font-size: 20px; color: var(--ink-soft); cursor: pointer; padding: 0 4px; }
.todo.mini li { padding: 4px 8px; font-size: 15px; }
.todo.mini .tick { flex-basis: 24px; height: 24px; font-size: 13px; border-width: 2px; }
.todo-count { margin: 8px 0 0; text-align: center; font-size: 15px; }

/* Menschen-Kreise (K07, K11) */
.orbit { position: relative; width: 100%; max-width: 330px; aspect-ratio: 1; margin: 4px auto 8px; }
.orbit .ring { position: absolute; border-radius: 50%; border: 3px dashed var(--honey); left: 50%; top: 50%; transform: translate(-50%,-50%); }
.orbit .r1 { width: 52%; height: 52%; background: rgba(248,218,148,.35); }
.orbit .r2 { width: 92%; height: 92%; border-color: var(--sky-soft); background: rgba(191,220,230,.18); }
.orbit .me { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 62px; height: 62px; border-radius: 50%; background: var(--hoodie); color: #fff; display: grid; place-items: center; font-family: var(--hand); font-size: 22px; box-shadow: 0 0 0 4px #fff; }
.orbit .person { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; font-size: 28px; line-height: 1; animation: pop .4s cubic-bezier(.3,1.5,.5,1); }
.orbit .person small { font-size: 12px; font-weight: 800; background: #fff; border-radius: 99px; padding: 2px 7px; margin-top: 2px; max-width: 86px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.orbit .person button { position: absolute; top: -6px; right: -10px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--coral); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.orbit.small { max-width: 280px; }

/* Countdown (K17) */
.countdown { text-align: center; background: #fff; border-radius: var(--radius); padding: 14px; }
.cd-num { font-size: 76px; line-height: 1; color: var(--coral); margin: 4px 0 10px; }

/* Hinweis-Kasten */
.note-box { background: var(--sky-soft); border-radius: 18px; padding: 14px 16px; margin: 6px 0 16px; font-size: 15.5px; }
.note-box .btn.primary { width: auto; padding: 12px 22px; font-size: 17px; }

/* Ergebnis-Poster: Antworten */
.answers { margin: 6px 0 4px; }
.answers dt { font-size: 13.5px; font-weight: 800; color: var(--ink-soft); margin-top: 12px; }
.answers dd { margin: 3px 0 0; font-family: var(--hand); font-size: 21px; line-height: 1.2; color: var(--hoodie); }
.answers dd ol { margin: 0; padding-left: 22px; }
.answers dd small { font-family: var(--body); font-size: 13px; color: var(--ink-soft); }
.answers dd .todo { font-family: var(--body); color: var(--ink); }
.answers dd .orbit { font-family: var(--body); }
.drawn { width: 100%; border-radius: 16px; border: 2px dashed var(--paper-2); display: block; }
.flame { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--honey-soft), var(--coral-soft)); border-radius: 22px; padding: 12px; margin: 6px 0; }
.flame > span { font-size: 54px; }
.flame div { display: flex; flex-wrap: wrap; gap: 6px; }
.flame b { background: #fff; border-radius: 99px; padding: 4px 10px; font-size: 14px; }

/* Werkzeugkiste (K20) */
.toolgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 6px 0 18px; }
.tool { font: inherit; display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--paper-2); background: #fff; border-radius: 18px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
.tool img { width: 44px; height: 44px; flex: 0 0 44px; }
.tool span { font-size: 30px; width: 44px; text-align: center; flex: 0 0 44px; }
.tool b { font-size: 14.5px; line-height: 1.2; }

/* Häuschen = zurück zur Startseite (auf jedem Bildschirm) */
.home-btn { width: 44px; height: 44px; border: 0; background: none; color: var(--hoodie); cursor: pointer; padding: 6px; justify-self: end; }
.home-btn svg { width: 100%; height: 100%; display: block; }
.home-btn.round { position: absolute; top: calc(10px + var(--safe-top)); right: 12px; background: rgba(251,243,230,.9); border-radius: 50%; padding: 8px; }
.tab-house { width: 34px; height: 34px; display: block; color: var(--ink-soft); }
.tab-house svg { width: 100%; height: 100%; }
.tabbar button.on .tab-house { color: var(--hoodie); }
