/* Lernwelt – lokale Gestaltung, keine externen Schriften oder Bibliotheken */
:root {
  --bg: #fbf8f2; --card: #ffffff; --ink: #2b2a26; --muted: #6c6a61; --line: #e6e0d2;
  --accent: #2f7d6b; --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1c1a; --card: #262825; --ink: #f0eee8; --muted: #a9a79d; --line: #3a3c37; --accent: #5cc4aa; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 920px; margin: 0 auto; padding: 8px 16px 48px; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 12px 0 8px; }
h2 { font-size: 1.05rem; margin: 22px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
a { color: inherit; }

.top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; max-width: 920px; margin: 0 auto; padding: 12px 16px 0; }
.brand { font-weight: 800; font-size: 1.1rem; }
.back { text-decoration: none; font-weight: 700; padding: 8px 0; }
.ages { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; color: var(--muted); }
.chip { min-width: 34px; text-align: center; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; min-height: 132px; border-radius: var(--radius); background: var(--card); border: 2px solid var(--line); border-top: 6px solid var(--c); text-decoration: none; }
.tile:hover, .tile:focus-visible { border-color: var(--c); transform: translateY(-2px); }
.tile.empty { opacity: .55; }
.t-icon { font-size: 2.2rem; line-height: 1; }
.tile strong { font-size: 1.05rem; line-height: 1.2; }
small { color: var(--muted); font-size: .85rem; }

.hero { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--accent); color: #fff; text-decoration: none; }
.hero small { color: rgba(255,255,255,.88); display: block; }
.hero strong { font-size: 1.25rem; }
.hero .t-icon { font-size: 2.8rem; }
@media (prefers-color-scheme: dark) { .hero { color: #10231e; } .hero small { color: rgba(16,35,30,.85); } }

.topics { color: var(--muted); margin: 0 0 16px; }
.hint { padding: 12px 14px; background: var(--card); border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.muted { color: var(--muted); }

.list { display: grid; gap: 10px; }
.gamecard { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--c); text-decoration: none; }
.gamecard:hover, .gamecard:focus-visible { border-color: var(--c); }
.gamecard.dim { opacity: .55; }
.gc-icon { font-size: 1.8rem; }
.gc-body { display: flex; flex-direction: column; }

.infocard { background: var(--card); border: 2px solid var(--line); border-top: 8px solid var(--c); border-radius: var(--radius); padding: 18px 20px 22px; margin-top: 12px; }
.eyebrow { margin: 0; color: var(--muted); font-weight: 600; }
.infocard h1 { margin-top: 4px; }
.agebadge { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pill { padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .95rem; }
.pill.link { text-decoration: none; border-color: var(--accent); }
.pill.link:hover { background: var(--accent); color: #fff; }
.pill.plain { color: var(--muted); }
.start { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 24px 0 8px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; }
.btn.off { background: var(--line); color: var(--muted); cursor: not-allowed; }
.parents { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.parents summary { cursor: pointer; font-weight: 700; }
.parents dt { margin-top: 12px; font-weight: 700; }
.parents dd { margin: 2px 0 0; }
.parents ol { margin: 0; padding-left: 20px; }

.steps { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; }
.steps li.todo { border-style: dashed; opacity: .75; }
.steps a, .steps div { display: flex; flex-direction: column; text-decoration: none; }
.steps .n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: .9rem; }
.steps li.todo .n { background: var(--line); color: var(--muted); }

@media (max-width: 480px) { h1 { font-size: 1.45rem; } .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---- Spiel: Einkaufsliste ---- */
.levels { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.levels .chip { padding: 7px 14px; }
.recipe { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 4px 18px 14px; }
.recipe h2 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 1.2rem; }
.ingredients { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 1.1rem; font-weight: 700; }
.ingredients li { padding: 6px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.ingredients li.home { text-decoration: line-through; opacity: .6; }
.em { font-size: 1.6rem; vertical-align: middle; margin-right: 4px; }
.athome { margin: 10px 0 2px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.prod { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; font-weight: 700; cursor: pointer; min-height: 96px; }
.prod .em { font-size: 2.4rem; margin: 0; line-height: 1.1; }
.prod:hover, .prod:focus-visible { border-color: var(--accent); }
.prod.picked { background: var(--accent); border-color: var(--accent); color: #fff; }
.mylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mylist li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; font-size: 1.1rem; font-weight: 700; }
.mylist li.empty { color: var(--muted); font-weight: 400; border-style: dashed; }
.mylist .nm { flex: 1; }
.qty { display: flex; align-items: center; gap: 8px; }
.step { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); color: inherit; font: inherit; font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.msg { min-height: 1.5em; margin: 10px 0; }
.msg.try { padding: 10px 14px; border-radius: 12px; background: var(--card); border: 2px solid #e8a33d; }
.btn { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.btn.ghost { background: transparent; color: inherit; border: 2px solid var(--line); }
.done { margin-top: 12px; }

/* ---- Spiel: Mein Einkauf ---- */
.aisles { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; }
.aisle { flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.aisle .em { font-size: 1.4rem; margin: 0; }
.aisle.on { background: #3f7fc4; border-color: #3f7fc4; color: #fff; }
.prod { position: relative; }
.badge { position: absolute; top: 4px; right: 6px; background: #fff; color: #10231e; border-radius: 999px; padding: 0 8px; font-size: .85rem; font-weight: 800; }
.want li.ok { border-color: var(--accent); }
.want li.ok .nm { text-decoration: line-through; opacity: .7; }
.aislehint { color: var(--muted); font-weight: 600; margin-left: 4px; }
.mylist b { font-weight: 800; }

/* ---- Spiel: An der Kasse ---- */
.bon { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.bon li { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.bon .nm { flex: 1; font-weight: 600; }
.sum { font-size: 1.3rem; margin: 8px 0 2px; }
.given { padding: 10px 14px; border-radius: 12px; background: var(--card); border: 2px solid var(--accent); font-weight: 700; }
.wallet, .pile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-height: 64px; }
.pile { padding: 12px; border-radius: var(--radius); border: 2px dashed var(--line); background: var(--card); }
.running { font-weight: 700; margin: 6px 0; }
.coin, .bill { border: 0; cursor: pointer; font: inherit; font-weight: 800; color: #2b2a26; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.coin { width: 60px; height: 60px; border-radius: 50%; }
.coin.v1, .coin.v2, .coin.v5 { background: #d9935b; }
.coin.v10, .coin.v20, .coin.v50 { background: #e9c65b; }
.coin.v100 { background: radial-gradient(circle, #e9c65b 55%, #cfd3d6 57%); width: 66px; height: 66px; }
.coin.v200 { background: radial-gradient(circle, #cfd3d6 55%, #e9c65b 57%); width: 72px; height: 72px; }
.bill { width: 108px; height: 58px; border-radius: 6px; }
.bill.v500 { background: #b9c1c1; } .bill.v1000 { background: #e58a86; }
.bill.v2000 { background: #7fb2e5; } .bill.v5000 { background: #f0b27a; }
.coin:hover, .bill:hover, .coin:focus-visible, .bill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- Spiel: Lebensmittel einräumen ---- */
.bag { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 12px; border-radius: var(--radius); border: 2px dashed var(--line); background: var(--card); min-height: 80px; }
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.place { display: flex; flex-direction: column; gap: 8px; min-height: 130px; padding: 12px; border-radius: var(--radius); border: 3px solid var(--line); background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.place.cold { border-color: #7fb2e5; background: color-mix(in srgb, #7fb2e5 12%, var(--card)); }
.place.ready:hover, .place.ready:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.place .pt { font-weight: 800; }
.inside { display: flex; flex-wrap: wrap; gap: 2px; font-size: 1.6rem; line-height: 1.2; }

/* ---- Spiel: Hände waschen ---- */
.seq { list-style: none; counter-reset: s; margin: 8px 0 16px; padding: 0; display: grid; gap: 8px; min-height: 20px; }
.seq li { counter-increment: s; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--accent); background: var(--card); font-weight: 700; }
.seq li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: .9rem; }
.sitcard { font-size: 1.6rem; font-weight: 800; margin: 8px 0; }
.yesno { display: flex; gap: 12px; }
.timer { padding: 12px 16px; border-radius: var(--radius); border: 2px solid #5aa9c9; background: var(--card); margin-bottom: 12px; }
.bar { height: 16px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: #5aa9c9; transition: width 1s linear; }
.prod:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Spiel: Kochen nach Rezept ---- */
.progress { color: var(--muted); font-weight: 700; margin: 4px 0; }
.opts { display: grid; gap: 10px; margin-top: 8px; }
.opt { padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.opt:hover:not(:disabled), .opt:focus-visible { border-color: var(--accent); }
.opt:disabled { opacity: .5; cursor: not-allowed; }
.opt.right { background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }
.dish { font-size: 4rem; margin: 0; line-height: 1.1; }

/* ---- Spiel: Tisch decken ---- */
.traybtn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.traybtn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.traybtn:disabled { opacity: .45; cursor: default; }
.ic { font-size: 2rem; line-height: 1.1; }
.napkin { display: inline-block; width: 30px; height: 30px; border-radius: 4px; background: linear-gradient(135deg, #f7d488 50%, #efc25f 50%); border: 2px solid #d9a93d; }
.table { display: grid; gap: 14px; padding: 14px; border-radius: var(--radius); background: #c99a5b; }
@media (prefers-color-scheme: dark) { .table { background: #7a5a33; } }
.mat { background: #f6efe0; border-radius: 14px; padding: 8px 10px 12px; }
.mat .who { margin: 0 0 6px; font-weight: 800; color: #4b3f2a; }
.seat { display: grid; grid-template-columns: 1fr 1fr 2fr 1fr 1fr; grid-template-areas: ". . . glass ." "napkin fork plate knife spoon"; gap: 5px; max-width: 460px; margin: 0 auto; }
.slot { min-height: 58px; border-radius: 10px; border: 2px dashed #b7a988; background: transparent; display: grid; place-items: center; cursor: pointer; font: inherit; }
.slot.unused { border-color: transparent; cursor: default; }
.slot.full { border: 2px solid transparent; background: rgba(255,255,255,.7); }
.slot .ghost { opacity: .3; }
.slot.pulse { animation: pulse 1s ease-in-out 3; border-color: var(--accent); }
.s-glass { grid-area: glass; } .s-napkin { grid-area: napkin; } .s-fork { grid-area: fork; }
.s-plate { grid-area: plate; min-height: 80px; border-radius: 50px; } .s-knife { grid-area: knife; } .s-spoon { grid-area: spoon; }
.s-plate .ic { font-size: 2.6rem; }
@keyframes pulse { 50% { background: rgba(47,125,107,.25); } }
@media (prefers-reduced-motion: reduce) { .slot.pulse { animation: none; background: rgba(47,125,107,.25); } }

/* ---- Spiel: Geschirrspüler einräumen ---- */
.place.hand { border-color: #e8a33d; background: color-mix(in srgb, #e8a33d 12%, var(--card)); }
.place.pulse { animation: pulse 1s ease-in-out 3; border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .place.pulse { animation: none; background: rgba(47,125,107,.25); } }

/* ---- Spiel: Müll richtig trennen ---- */
.place.bin { border-left-width: 10px; }
.finale { font-size: 1.25rem; font-weight: 800; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 2px solid var(--accent); }

/* ---- Spiel: Was kostet das? ---- */
.prod .price { font-weight: 800; color: var(--muted); }
.prod.picked .price { color: #fff; }

/* ---- Spiel: Wie spät ist es? ---- */
.stage { display: flex; justify-content: center; margin: 8px 0 12px; }
.clockrow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.clockbtn { padding: 6px; border-radius: 16px; border: 3px solid var(--line); background: #fff; cursor: pointer; }
.clockbtn:hover:not(:disabled), .clockbtn:focus-visible { border-color: var(--accent); }
.clockbtn:disabled { opacity: .4; cursor: not-allowed; }
.clockbtn.right { border-color: var(--accent); background: rgba(47,125,107,.2); opacity: 1; }
.setter { text-align: center; }
.setter p { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0; }

/* ---- Spiel: Was ziehe ich heute an? ---- */
.weather { text-align: center; }
.wicon { font-size: 4rem; margin: 6px 0 0; line-height: 1.1; }
.wtimes { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wtimes li { padding: 6px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; }
#wardrobe h2 { margin-top: 14px; }

/* ---- Spiel: Sicher über die Straße ---- */
.scene { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #b7d6a0; border: 2px solid var(--line); margin-bottom: 12px; }
.scene.night { background: #2f4a3a; }
.scene .road { position: absolute; left: 25%; width: 50%; top: 0; bottom: 0; background: #6b6e73; }
.scene .road::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, #f4f1e4 0 14px, transparent 14px 28px); }
.scene .zebra { position: absolute; left: 25%; width: 50%; top: 48%; height: 26%; background: repeating-linear-gradient(to bottom, #fff 0 10%, transparent 10% 20%); opacity: .92; }
.scene .bikelane { position: absolute; left: 22%; width: 8%; top: 0; bottom: 0; background: #b25a4a; opacity: .75; }
.scene .obj { position: absolute; transform: translate(-50%, -50%); line-height: 1; user-select: none; }

/* ---- Spiel: Bus fahren ---- */
.busstage { display: grid; gap: 10px; margin: 8px 0 12px; }
.busstage.signs { grid-template-columns: repeat(auto-fit, minmax(90px, 120px)); justify-content: center; }
.hsign { width: 100px; height: 100px; border-radius: 50%; border: 6px solid #fff; background: #2e8b57; color: #f4d03f; font: inherit; font-size: 3.2rem; font-weight: 900; cursor: pointer; box-shadow: 0 0 0 3px #2e8b57; display: grid; place-items: center; }
.hsign.other { background: #2b5fb0; color: #fff; box-shadow: 0 0 0 3px #2b5fb0; }
.hsign:hover:not(:disabled), .hsign:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.hsign:disabled { opacity: .4; cursor: not-allowed; }
.hsign.right { outline: 4px solid var(--accent); outline-offset: 4px; }
.buscard { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; border: 3px solid var(--bc); background: var(--card); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.buscard .bnum { min-width: 56px; padding: 6px 10px; border-radius: 12px; background: var(--bc); color: #fff; font-size: 1.8rem; font-weight: 900; text-align: center; }
.buscard .btxt { display: flex; flex-direction: column; flex: 1; }
.buscard .btxt strong { font-size: 1.15rem; }
.buscard .bemo { font-size: 2rem; }
.buscard:disabled { opacity: .4; cursor: not-allowed; }
.buscard.right { background: rgba(47,125,107,.2); }
.stops { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 4px; }
.stops li { padding: 6px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); font-weight: 600; }
.stops li.past { opacity: .5; text-decoration: line-through; }
.stops li.next { border-color: var(--accent); background: rgba(47,125,107,.15); font-weight: 800; }
.stops li.goal { border-style: dashed; }
.net { margin: 6px 0 0; padding-left: 18px; }

/* ---- Spiel: Beim Arzt ---- */
.bodystage { display: flex; justify-content: center; margin: 6px 0; }
.bodystage svg { max-width: 100%; height: auto; }
.bp { fill: #f3d6bf; stroke: #b08968; stroke-width: 2; cursor: pointer; }
.bp:hover, .bp:focus-visible { fill: #ffe6a8; outline: none; }
.bp.wrongtap { fill: #f0b4b0; }
.bp.right { fill: #7ac7a8; stroke: #2f7d6b; stroke-width: 3; }
.bp.pulse { animation: pulse 1s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) { .bp.pulse { animation: none; } }
.story { padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; }

/* ---- Spiel: Fahrplan lesen ---- */
.tablewrap { overflow-x: auto; }
.tt { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.tt th, .tt td { padding: 8px 12px; border: 1px solid var(--line); text-align: center; white-space: nowrap; }
.tt th { background: var(--bg); font-weight: 800; }
.tt th.mark, .tt td.mark { background: rgba(63,127,196,.14); }
.tt tbody tr:nth-child(even) td:not(.mark) { background: rgba(0,0,0,.03); }

/* ---- Spiel: Zimmer aufräumen ---- */
.room { position: relative; aspect-ratio: 4 / 3; min-height: 260px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line);
  background: linear-gradient(to bottom, #efe3c8 0 25%, #c99a5b 25% 100%); margin-bottom: 12px; }
.room::before { content: ""; position: absolute; left: 0; right: 0; top: 25%; height: 6px; background: #8a5a3c; }
@media (prefers-color-scheme: dark) { .room { background: linear-gradient(to bottom, #4a4232 0 25%, #7a5a33 25% 100%); } }
.litter { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 0; padding: 2px 4px; border: 2px solid transparent; border-radius: 12px; background: transparent; color: #2b2a26; font: inherit; cursor: pointer; max-width: 22%; }
.litter .ic { font-size: 2.2rem; line-height: 1.1; }
.litter .lab { font-size: .7rem; font-weight: 700; line-height: 1.1; text-align: center; background: rgba(255,255,255,.75); border-radius: 6px; padding: 0 3px; }
.litter:hover, .litter:focus-visible { border-color: var(--accent); }
.litter.on { border-color: var(--accent); background: rgba(255,255,255,.6); transform: translate(-50%, -50%) scale(1.12); }

.room .wall { position: absolute; top: 4%; transform: translateX(-50%); font-size: 2.4rem; opacity: .85; pointer-events: none; }

/* ---- Spiel: Wäsche sortieren ---- */
.tint-w { filter: grayscale(1) brightness(2.6) contrast(.8); text-shadow: 0 0 1px #888; }
.tint-d { filter: grayscale(1) brightness(.3); }
.care { font-size: .75rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.traybtn.on .care { color: #10231e; }

/* ---- Spiel: Waschmaschine bedienen ---- */
.load { text-align: center; }
.panel { display: grid; gap: 10px; margin: 12px 0; padding: 12px; border-radius: var(--radius); background: #d9dde0; }
@media (prefers-color-scheme: dark) { .panel { background: #3a3f44; } }
.dial { border: 2px solid var(--line); border-radius: 14px; background: var(--card); padding: 6px 12px 12px; margin: 0; }
.dial legend { font-weight: 800; padding: 0 6px; }
.dialrow { display: flex; flex-wrap: wrap; gap: 8px; }
.dialbtn { flex: 1 1 130px; text-align: center; padding: 10px 12px; }

/* ---- Spiel: Wen lade ich ein? ---- */
.seats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.seat { padding: 6px 12px; border-radius: 999px; border: 2px dashed var(--line); background: var(--bg); font-weight: 700; }
.seat.me { border-style: solid; border-color: var(--accent); }
.seat.full { border-style: solid; background: rgba(47,125,107,.18); }

/* ---- Spiel: Die Einladung ---- */
.letterstage { margin: 8px 0 12px; }
.letter { padding: 14px 18px; border-radius: 12px; background: #fffdf4; color: #2b2a26; border: 2px solid #e5d9a8; box-shadow: 0 2px 0 rgba(0,0,0,.1); min-height: 40px; }
.letter p { margin: 4px 0; }
.cardpick { min-height: 64px; }

/* ---- Spiel: Welcher Tag ist das? ---- */
.calwrap { margin: 8px 0 12px; max-width: 460px; }
.calhead { margin: 0 0 4px; font-weight: 800; font-size: 1.15rem; }
.cal { border-collapse: separate; border-spacing: 4px; width: 100%; }
.cal th { font-size: .85rem; color: var(--muted); }
.cal td { padding: 0; text-align: center; }
.cal .day { display: block; width: 100%; min-height: 44px; line-height: 44px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: inherit; font: inherit; font-weight: 700; }
.cal button.day { cursor: pointer; }
.cal button.day:hover, .cal button.day:focus-visible { border-color: var(--accent); }
.cal .day.today { background: #7ac7a8; border-color: #2f7d6b; color: #10231e; }
.cal .day.target { border-color: #e8a33d; background: #fbe3b0; color: #2b2a26; }
.cal .day.right { background: var(--accent); border-color: var(--accent); color: #fff; }
.cal .day.wrongtap { background: #f0b4b0; }
.legend { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

/* ---- Spiel: Kuchen teilen ---- */
.cakestage { display: flex; justify-content: center; margin: 6px 0; }
.cakestage svg { max-width: 100%; height: auto; }
.cakestage path:hover, .cakestage path:focus-visible { filter: brightness(1.08); outline: none; }
.plates { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0; }
.plate { display: flex; flex-direction: column; align-items: center; min-width: 88px; padding: 10px 12px; border-radius: 50%; aspect-ratio: 1; justify-content: center; border: 3px solid var(--line); background: var(--card); color: inherit; font: inherit; cursor: pointer; }
.plate.ready:hover, .plate.ready:focus-visible { border-color: var(--accent); }
.plate .pn { font-weight: 800; font-size: .9rem; }
.plate .pp { font-size: 1.1rem; }

/* ---- Spiel: Was kommt in den Rucksack? ---- */
.gauge { font-size: .95rem; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: 0; }
.gauge.over { color: #c94c4c; }

.place.picked { background: rgba(47,125,107,.2); border-color: var(--accent); }

/* ---- Spiel: Zähne putzen ---- */
.teeth { display: grid; gap: 10px; margin: 8px 0; }
.teethrow { display: grid; grid-template-columns: 60px repeat(3, 1fr); gap: 8px; align-items: center; }
.rowlabel { font-weight: 800; }
.tooth { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; border: 3px solid #e8c84a; background: #fff6cc; color: #2b2a26; font: inherit; cursor: pointer; }
.tooth.clean { border-color: var(--accent); background: #d8f3e8; cursor: default; }
.tooth .tic { font-size: 2rem; line-height: 1.1; }
.tooth .tn { font-weight: 700; font-size: .85rem; text-align: center; }
.tooth .dots { font-size: .8rem; letter-spacing: 2px; }

/* ---- Spiel: Meine Freizeit ---- */
.rulelist { margin: 6px 0 0; padding-left: 20px; font-weight: 600; }
.rulelist li { margin: 4px 0; }

/* ---- Spiel: Kühlschrank prüfen ---- */
.fridge { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: var(--radius); background: #e4f0f7; border: 3px solid #a9c9dc; }
@media (prefers-color-scheme: dark) { .fridge { background: #2b3b45; border-color: #4d6b7c; } }
.fitem { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); font-weight: 700; }
.fitem .em { font-size: 1.4rem; margin: 0; }
.fitem .cnt { color: var(--muted); }
.fitem.expired { border-color: #c94c4c; }
.fitem .warn { font-size: .8rem; color: #c94c4c; }

/* ---- Spiel: Frühstück machen ---- */
.counter { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); font-weight: 700; }
.counter .em { font-size: 2rem; margin: 0; line-height: 1.1; }
.counter .qty { display: flex; align-items: center; gap: 8px; }

/* ---- Gemeinsame Engine ---- */
.litter.wrongtap { background: rgba(240,180,176,.8); border-color: #c94c4c; }
.room .litter .ic { font-size: 2.2rem; }

/* ---- Vorlesen (assets/speech.js) ---- */
.speechbar { position: fixed; right: 12px; bottom: 12px; z-index: 50; display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--card); border: 2px solid var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.speechbar button { border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer; background: var(--accent); color: #fff; min-height: 44px; }
@media (prefers-color-scheme: dark) { .speechbar button { color: #10231e; } }
.speechbar .sp-auto { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.speechbar .sp-auto[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
main { padding-bottom: 88px; }
@media print { .speechbar { display: none; } }

/* ---- Größere Bilder (Rückmeldung 2026-09-30: viele Bilder zu klein) ---- */
.t-icon { font-size: 3.6rem; }
.hero .t-icon { font-size: 4.4rem; }
.tile { min-height: 168px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.gc-icon { font-size: 2.8rem; }
.gamecard { padding: 16px; }
.em { font-size: 2.3rem; }
.prod .em, .counter .em, .litter .ic, .room .litter .ic, .traybtn .ic, .ic { font-size: 3.4rem; }
.prod { min-height: 128px; }
.shelf { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.traybtn { min-width: 112px; padding: 12px 14px; }
.litter .lab { font-size: .8rem; }
.wicon { font-size: 6rem; }
.dish { font-size: 6rem; }
.inside { font-size: 2.3rem; }
.mini { font-size: 2.3rem; }
.fitem .em { font-size: 2.1rem; }
.aisle .em { font-size: 2.1rem; }
.tooth .tic { font-size: 3.2rem; }
.buscard .bemo { font-size: 3rem; }
.buscard .bnum { font-size: 2.2rem; min-width: 68px; }
.hsign { width: 124px; height: 124px; font-size: 4rem; }
.badge { font-size: 1rem; }
.place { min-height: 150px; }
.place .pt { font-size: 1.15rem; }
.coin { width: 74px; height: 74px; font-size: 1rem; }
.coin.v100 { width: 82px; height: 82px; }
.coin.v200 { width: 90px; height: 90px; }
.bill { width: 128px; height: 70px; font-size: 1.1rem; }
.ingredients .em, .mylist .em, .bon .em, .seq .em { font-size: 2.4rem; }
.scene .obj { transform: translate(-50%, -50%) scale(1.45); }
.stage svg { width: min(100%, 320px); height: auto; }
.bodystage svg { width: min(100%, 280px); height: auto; }
.cakestage svg { width: min(100%, 320px); height: auto; }
.clockbtn svg { width: 158px; height: 158px; }
.busstage.signs { grid-template-columns: repeat(auto-fit, minmax(124px, 140px)); }
.opt { font-size: 1.05rem; padding: 16px 18px; }
@media (max-width: 480px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 156px; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
}

/* Lokale Bilderbuch-Illustrationen: Orientierung auf Auswahlseiten, Gegenstände im Spiel. */
.illustration { display: block; max-width: 100%; height: auto; object-fit: cover; }
.illustrated-categories { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.illustrated-categories .tile { overflow: hidden; }
.category-image { width: 100%; aspect-ratio: 1; border-radius: 12px; margin-bottom: 8px; }
.illustrated-categories .t-icon { min-height: 140px; display: grid; place-items: center; font-size: 4rem; }
.gamecard-image { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 12px; }
.adventure-image { width: 128px; height: 128px; flex: 0 0 128px; border-radius: 14px; }
.scene-intro { margin: 18px 0; width: min(100%, 340px); }
.scene-intro-image { width: 100%; border-radius: 22px; }
.object-illustration { display: inline-block; width: 1.8em; height: 1.8em; object-fit: contain; vertical-align: middle; border-radius: 10px; background: white; }
.prod .object-illustration { width: 80px; height: 80px; }
.mini .object-illustration { width: 36px; height: 36px; }
@media (max-width: 480px) {
  .illustrated-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .illustrated-categories .tile { padding: 12px 10px; }
  .illustrated-categories .t-icon { min-height: 105px; }
  .adventure-image { width: 80px; height: 80px; flex-basis: 80px; }
  .gamecard-image { width: 64px; height: 64px; flex-basis: 64px; }
  .scene-intro { width: min(100%, 240px); }
}

.completion-image { width: min(100%, 280px); border-radius: 18px; margin: 16px 0; }

/* Formen-Puzzle */
.shapebox { display: flex; justify-content: center; margin: 8px 0 14px; }
.shapepic { max-width: 380px; margin: 0 auto 12px; }
.shapepic svg { width: 100%; height: auto; display: block; background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); color: #8a8f98; }
.shapepic .slotline.ready { stroke: var(--accent); stroke-width: 4; }
.formslot { align-items: center; text-align: center; color: #8a8f98; }
.formslot .pt { color: var(--text, inherit); }
.formslot.ready { color: var(--accent); }
.traybtn svg { display: block; }
.places:has(.formslot) { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.formslot { min-height: 0; padding: 8px; gap: 4px; }

/* Food illustrations keep a stable size in choice cards, labels and sorting bins. */
.traybtn .object-illustration, .counter .object-illustration { width: 80px; height: 80px; }
.food-inline .object-illustration { width: 32px; height: 32px; }
.pt .food-inline { display: inline-block; vertical-align: middle; }

/* Start, Logo, Elternbereich */
.topleft { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-small { display: inline-block; background: #fff; border-radius: 14px; padding: 4px 8px; line-height: 0; }
.logo-small img { height: 44px; width: auto; }
.parents-link { text-decoration: none; font-weight: 700; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: #6b4bb8; margin: 0; }
.btn.purple { background: #6b4bb8; border-color: #6b4bb8; color: #fff; }
.starthero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin: 12px 0 28px; }
.starthero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 6px 0 10px; }
.logo-big { display: block; width: min(100%, 560px); height: auto; background: #fff; border-radius: 22px; padding: 8px 14px; margin-bottom: 14px; }
.sh-panel { background: color-mix(in srgb, #7d8bc4 16%, var(--card)); border-radius: 28px; padding: 18px; }
.sh-title { text-align: center; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 700; margin: 0 0 12px; }
.sh-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sh-foot { text-align: center; color: var(--muted); margin: 12px 0 0; }
.bigh { font-size: 1.5rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 22px 0 10px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.parentbox { background: var(--card); border: 2px solid var(--line); border-radius: 28px; padding: 22px 26px; margin: 10px 0 18px; }
.parentbox h1 { margin-top: 4px; }
.gateform label { display: block; font-weight: 700; margin-bottom: 6px; }
.gateform input { font: inherit; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: inherit; width: min(240px, 100%); margin-right: 8px; }
.plainlist { padding-left: 1.2em; } .plainlist li { margin: 4px 0; }
.parentcat { background: var(--card); border: 2px solid var(--line); border-left: 8px solid var(--c); border-radius: 16px; padding: 10px 16px; margin: 8px 0; }
.parentcat summary { cursor: pointer; }
.parentgame { border-top: 1px solid var(--line); padding: 10px 0; }
.parentgame p { margin: 4px 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 10px 0; }
.plan { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 2px solid var(--line); border-radius: 18px; background: var(--card); }
.plan.best { border-color: #6b4bb8; background: color-mix(in srgb, #6b4bb8 12%, var(--card)); }
@media (max-width: 720px) { .starthero { grid-template-columns: 1fr; } }

/* Elternkonto */
.whoplays { text-decoration: none; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, #6b4bb8 14%, var(--card)); border: 2px solid #6b4bb8; }
.stack { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.stack label { font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.stack .check, .check { flex-direction: row; font-weight: 400; gap: 8px; align-items: flex-start; }
.stack input:not([type=checkbox]):not([type=radio]), .stack select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: inherit; width: 100%; }
.kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 12px 0; }
.kid { border: 2px solid var(--line); border-radius: 18px; padding: 14px; background: var(--bg); }
.kid.on { border-color: #6b4bb8; }
.kav { font-size: 2.4rem; display: block; }
.inline { display: block; margin: 8px 0; }
.avatars { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.avatars legend { font-weight: 700; margin-bottom: 4px; }
.avatars label { flex-direction: row; }
.avatars input { position: absolute; opacity: 0; }
.avatars span { font-size: 2rem; padding: 4px 8px; border: 3px solid var(--line); border-radius: 14px; cursor: pointer; display: inline-block; }
.avatars input:checked + span { border-color: #6b4bb8; background: color-mix(in srgb, #6b4bb8 14%, var(--card)); }
.avatars input:focus-visible + span { outline: 3px solid var(--accent); }

/* Rechtstexte, Kontakt */
.legal-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.legal-toc { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 8px; font-size: .9rem; }
.legal-toc-label { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; }
.legal-toc a { text-decoration: none; color: var(--muted); }
.legal-block { margin-bottom: 22px; }
.legal-block h2 { text-transform: none; letter-spacing: 0; font-size: 1.15rem; color: var(--ink); margin: 0 0 6px; }
.legal-block p { margin: 0 0 8px; }
.stack textarea { font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: inherit; width: 100%; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.foot nav a { color: var(--muted); }
@media (max-width: 720px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; } }

/* Wer spielt? */
.picker { background: color-mix(in srgb, #6b4bb8 10%, var(--card)); border: 2px solid #6b4bb8; border-radius: 28px; padding: 14px 20px 18px; margin: 12px 0 8px; }
.picker h2 { text-transform: none; letter-spacing: 0; font-size: 1.3rem; color: var(--ink); margin: 0 0 10px; }
.picker-row { display: flex; flex-wrap: wrap; gap: 14px; }
.picker-kid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; padding: 12px 18px; border-radius: 22px; border: 3px solid var(--line); background: var(--card); color: inherit; font: inherit; cursor: pointer; }
.picker-kid span { font-size: 3.2rem; line-height: 1; }
.picker-kid:hover, .picker-kid:focus-visible { border-color: #6b4bb8; }
.logo-rewa { display: inline-block; background: #fff; border-radius: 12px; padding: 3px 8px; line-height: 0; }
.logo-rewa img { height: 38px; width: auto; }

/* Begrüßung */
.greeting { display: flex; gap: 14px; align-items: center; margin: 12px 0 14px; }
.greeting img { width: 84px; height: 84px; border-radius: 26px; background: #fff; flex: none; }
.bubble { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 12px 18px; }
.bubble::before { content: ""; position: absolute; left: -10px; top: 30px; width: 16px; height: 16px; background: var(--card); border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(45deg); }
.bubble p { margin: 2px 0; }
.g-lead { font-weight: 800; font-size: 1.25rem; color: #6b4bb8; }
.greet-listen { display: none; margin-top: 6px; font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 2px solid #6b4bb8; background: transparent; color: inherit; cursor: pointer; }
.has-speech .greet-listen { display: inline-block; }
.speechbar { flex-wrap: wrap; justify-content: flex-end; border-radius: 24px; max-width: calc(100vw - 24px); }
.speechbar .sp-tempo, .speechbar .sp-voice { background: transparent; color: var(--ink); border: 2px solid var(--line); font-weight: 700; font-size: .9rem; }
#vt-list li { margin: 10px 0; list-style: none; }
#vt-list .btn { padding: 8px 16px; font-size: .95rem; }
#voicetest select { font: inherit; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: inherit; }
