/* Rezeptwelt 1.3 – Premium-Schicht: Farbwelten, Animationen, Adventskalender und neue Helfer */

/* ── Farbwelten (Tür 20) ─────────────────────────────── */
:root[data-skin=winter] { --primary: #1e4d3a; --forest: #163d2e; --accent: #9fc3b5; --bg-light: #eef3f2; --bg: #eef3f2; --paper: #fbfdfc; --surface-2: #e3ebe9; --sage-50: #e4eeea; --sage-100: #d2e2dc; --line: #dbe5e2; --terra: #b7514b; }
:root[data-skin=frost] { --primary: #2b4f7a; --forest: #233f63; --accent: #9fb3c8; --bg-light: #eef2f8; --bg: #eef2f8; --paper: #fbfcfe; --surface-2: #e2e8f2; --sage-50: #e6ecf5; --sage-100: #d3dded; --line: #dce3ee; --terra: #4f7cb0; --gold: #8aa6c4; }
:root[data-skin=candle] { --primary: #7a1f2b; --forest: #5e1520; --accent: #d9a45a; --bg-light: #f8f0e6; --bg: #f8f0e6; --paper: #fffaf3; --surface-2: #f1e4d4; --sage-50: #f6e7df; --sage-100: #efd6ca; --line: #ecdcc9; --terra: #b8643a; }
:root[data-skin=gingerbread] { --primary: #7b4a2a; --forest: #5f3820; --accent: #e3b27a; --bg-light: #f6ecdf; --bg: #f6ecdf; --paper: #fffaf2; --surface-2: #eedfcb; --sage-50: #f3e3d1; --sage-100: #ead2b8; --line: #e8d6bf; --terra: #c0703a; }
:root[data-skin=night] { --bg: #0f1d2e; --paper: #162536; --surface: #162536; --surface-2: #1d3046; --sage-50: #1c2f45; --sage-100: #24405c; --text: #eef2f7; --muted: #a9b7c8; --line: #24384f; --line-strong: #2f4866;
  --primary: #e6c36a; --forest: #e6c36a; --primary-ink: #0f1d2e; --gold: #e6c36a; --accent: #8fb0d6; --shadow-1: none; --shadow-2: 0 10px 36px rgb(0 0 0 / .45); color-scheme: dark; }
:root[data-skin=night] body { background: radial-gradient(1200px 600px at 80% -10%, #1f3a5c 0%, transparent 60%), var(--bg); }
.snow-global { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ── Bewegung ────────────────────────────────────────── */
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.92) translateY(8px); } 100% { opacity: 1; transform: none; } }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgb(230 195 106 / .0), 0 10px 26px -10px rgb(0 0 0 / .45); } 50% { box-shadow: 0 0 0 6px rgb(230 195 106 / .35), 0 10px 26px -10px rgb(0 0 0 / .45); } }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
main.view-in { animation: viewIn .38s cubic-bezier(.2, .8, .2, 1); }
main.view-in .rcard, main.view-in .qtile, main.view-in .cat-tile, main.view-in .tool, main.view-in .coll, main.view-in .action, main.view-in .stat { animation: popIn .5s cubic-bezier(.2, .8, .2, 1) both; }
main.view-in .quick > :nth-child(2), main.view-in .grid > :nth-child(2), main.view-in .tool-grid > :nth-child(2) { animation-delay: .04s; }
main.view-in .quick > :nth-child(3), main.view-in .grid > :nth-child(3), main.view-in .tool-grid > :nth-child(3) { animation-delay: .08s; }
main.view-in .quick > :nth-child(4), main.view-in .grid > :nth-child(4), main.view-in .tool-grid > :nth-child(4) { animation-delay: .12s; }
main.view-in .quick > :nth-child(n+5), main.view-in .grid > :nth-child(n+5), main.view-in .tool-grid > :nth-child(n+5) { animation-delay: .16s; }
.rcard, .qtile, .cat-tile, .tool, .coll, .action, .daily, .adv-card { transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, background .2s; }
.rcard:hover, .cat-tile:hover, .tool:hover, .coll:hover, .action:hover, .daily:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.rcard:active, .qtile:active, .tool:active, .action:active, .door:active { transform: scale(.97); }
.btn { transition: transform .12s, background .2s, box-shadow .2s, color .2s; }
.btn.primary { background: linear-gradient(160deg, color-mix(in srgb, var(--forest) 86%, white), var(--forest)); }
.modal-back { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal { animation: popIn .28s cubic-bezier(.2, .8, .2, 1); }
.toast { animation: popIn .3s cubic-bezier(.2, .8, .2, 1); }
.hero { background: radial-gradient(900px 400px at 110% -20%, color-mix(in srgb, var(--gold) 45%, transparent), transparent 60%), linear-gradient(140deg, color-mix(in srgb, var(--primary) 92%, white), var(--forest)); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .16) 1px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(to left, #000, transparent 70%); pointer-events: none; }
.page-head.fancy h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.page-head.fancy { margin-bottom: 8px; } .page-head.center, .center { text-align: center; } .seg.center { justify-content: center; }
.hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ── Adventskarte auf der Startseite ─────────────────── */
.adv-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 18px; border-radius: 22px; text-decoration: none; color: #fff;
  background: radial-gradient(500px 200px at 100% 0%, rgb(230 195 106 / .35), transparent 60%), linear-gradient(135deg, #7a1f2b, #4a1018); box-shadow: 0 14px 34px -16px rgb(74 16 24 / .7); position: relative; overflow: hidden; }
.adv-card::after { content: "❄ ✦ ❄ ✦"; position: absolute; right: 70px; top: 8px; letter-spacing: 18px; opacity: .18; font-size: 1.2rem; }
.adv-card .adv-num { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #e6c36a, #b88a24); color: #3b1d06; font: 700 1.7rem var(--serif); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .15); }
.adv-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; } .adv-card small { opacity: .8; } .adv-card b { font: 600 1.25rem/1.25 var(--serif); }
.adv-card .go { opacity: .9; } .adv-card.ready .adv-num { animation: glow 1.8s infinite, floaty 3s ease-in-out infinite; }
.adv-card.wait { background: linear-gradient(135deg, #1e4d3a, #0f2a20); }

/* ── Adventskalender ─────────────────────────────────── */
.adv-hero { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(24px, 5vw, 46px); margin: 4px 0 20px; color: #fff;
  background: radial-gradient(700px 300px at 85% 0%, rgb(230 195 106 / .28), transparent 60%), linear-gradient(160deg, #173d2e 0%, #0d241b 100%); }
.adv-hero .snow, .finale .snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.adv-hero-in { position: relative; } .adv-hero h1 { color: #fff; margin: 6px 0; } .adv-hero p { color: rgb(255 255 255 / .86); margin: 4px 0 12px; }
.eyebrow.light, .light { color: rgb(255 255 255 / .78) !important; }
.adv-progress { height: 10px; border-radius: 99px; background: rgb(255 255 255 / .16); overflow: hidden; max-width: 420px; }
.adv-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e6c36a, #fff2c2, #e6c36a); background-size: 200% 100%; animation: shimmer 3s linear infinite; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.adv-progress.dark { background: var(--surface-2); margin: 8px 0 12px; max-width: none; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); grid-auto-flow: dense; gap: 12px; perspective: 1200px; }
.door { position: relative; aspect-ratio: 1 / 1.08; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: inherit; animation: popIn .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 25ms); }
.door.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.door-inside, .door-leaf { position: absolute; inset: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; }
.door-inside { background: linear-gradient(160deg, var(--paper), var(--surface-2)); border: 2px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
.door:not(.is-open):not(.opening) .door-inside > * { visibility: hidden; }
.door-title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; max-width: 100%; }
.door-emoji { font-size: 2.2rem; } .door.big .door-emoji { font-size: 4rem; } .door-title { font: 600 .82rem/1.2 var(--serif); } .door.big .door-title { font-size: 1.2rem; }
.door-leaf { transform-origin: left center; transition: transform .9s cubic-bezier(.3, .7, .2, 1), box-shadow .9s; backface-visibility: hidden; color: #fff;
  background: radial-gradient(120px 90px at 30% 20%, rgb(255 255 255 / .14), transparent 70%), var(--door, linear-gradient(150deg, #8a2a33, #5c1720)); box-shadow: 0 10px 24px -12px rgb(0 0 0 / .55), inset 0 0 0 2px rgb(230 195 106 / .45); }
.door:nth-child(3n) .door-leaf { --door: linear-gradient(150deg, #22553f, #123528); } .door:nth-child(4n+1) .door-leaf { --door: linear-gradient(150deg, #2a4b72, #172c47); }
.door:nth-child(5n+2) .door-leaf { --door: linear-gradient(150deg, #8c5a2b, #5c3a18); }
.door-leaf::before { content: ""; position: absolute; inset: 8px; border-radius: 12px; border: 1px solid rgb(230 195 106 / .45); }
.door-leaf::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #e6c36a; box-shadow: 0 0 0 2px rgb(0 0 0 / .15); }
.door-num { font: 700 clamp(2rem, 6vw, 2.6rem)/1 var(--serif); color: #f6dc93; text-shadow: 0 2px 0 rgb(0 0 0 / .25); } .door.big .door-num { font-size: clamp(3.4rem, 10vw, 5rem); }
.door-lock, .door-hint { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.door-hint { opacity: 1; background: #e6c36a; color: #3b1d06; padding: 3px 10px; border-radius: 99px; font-weight: 700; }
.door.is-locked .door-leaf { filter: saturate(.75) brightness(.92); }
.door.is-ready .door-leaf { animation: glow 1.8s infinite; } .door.is-ready:hover .door-leaf { transform: rotateY(-14deg); }
.door.is-open .door-leaf, .door.opening .door-leaf { transform: rotateY(-108deg); box-shadow: -14px 10px 24px -10px rgb(0 0 0 / .35); }
.door.is-open .door-leaf { pointer-events: none; } .door.shake { animation: shake .45s; }
.reveal { text-align: center; } .reveal-top { position: relative; margin: -4px auto 8px; width: 120px; height: 120px; }
.reveal-n { position: absolute; left: -12px; top: -10px; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font: 700 1.2rem var(--serif); color: #fff; background: #8a2a33; box-shadow: 0 4px 10px rgb(0 0 0 / .25); }
.reveal-emoji { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 34px; font-size: 4rem; background: radial-gradient(circle at 30% 25%, #fff7dc, #f3dfa3); box-shadow: 0 16px 40px -18px rgb(184 138 36 / .9); }
.reveal.fresh .reveal-emoji { animation: popIn .6s cubic-bezier(.2, 1.4, .3, 1) both, floaty 3s 0.6s ease-in-out infinite; }
.reveal h2 { font-size: 1.9rem; margin: 6px 0; } .reveal-text { font-size: 1.08rem; color: var(--muted); max-width: 44ch; margin: 0 auto 18px; }
.reveal .row.end { justify-content: center; }
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.burst span { position: absolute; transform: translate(-50%, -50%); animation: fly 1.4s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes fly { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 80px)) rotate(var(--r)) scale(1); } }
.locked { text-align: center; padding: 40px 20px; max-width: 520px; margin: 30px auto; }
.locked-door { width: 110px; height: 130px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(150deg, #8a2a33, #5c1720); box-shadow: inset 0 0 0 2px rgb(230 195 106 / .5), 0 14px 30px -14px rgb(0 0 0 / .6); animation: floaty 3s ease-in-out infinite; }
.locked-door span { font: 700 3rem var(--serif); color: #f6dc93; }

/* ── Küche & Werkzeuge ───────────────────────────────── */
.tool-grid, .coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.tool, .coll { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow-1); animation-delay: calc(var(--i) * 30ms) !important; }
.tool-e, .coll > span { font-size: 2rem; } .tool b, .coll b { font: 600 1.08rem var(--serif); } .tool small, .coll small { color: var(--muted); }
.tool.locked { background: repeating-linear-gradient(135deg, var(--surface-2) 0 12px, color-mix(in srgb, var(--surface-2) 70%, var(--paper)) 12px 24px); color: var(--muted); border-style: dashed; }
.action-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.action { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow-1); }
.action.big:first-child { background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 90%, white), var(--forest)); color: #fff; border: 0; }
:root[data-skin=night] .action.big:first-child { color: var(--primary-ink); }
.action .ai { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, currentColor 12%, transparent); margin-bottom: 4px; }
.action b { font: 600 1.15rem var(--serif); } .action small { opacity: .8; }
.pfilter { width: 100%; margin: 6px 0 14px; }
.warnbox { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); background: color-mix(in srgb, var(--warn-bg) 60%, var(--paper)); }
.soonbox { border-color: color-mix(in srgb, var(--terra) 40%, var(--line)); }
.name-it { margin: 8px 0; } .badge.err { background: #f6dcd6; color: var(--danger); }
.ploc h2 { display: flex; align-items: baseline; gap: 8px; }
.pantry li { transition: opacity .3s, transform .3s; } .pantry li.leaving { opacity: .3; transform: translateX(16px); }
.pantry .pn { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; } .pantry .pq { font-variant-numeric: tabular-nums; color: var(--muted); }

/* Scanner */
.scanner h2 { margin: 0; } .scan-view { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; margin: 12px 0 6px; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; left: 10%; right: 10%; top: 32%; bottom: 32%; border-radius: 14px; box-shadow: 0 0 0 999px rgb(0 0 0 / .38); border: 3px solid rgb(255 255 255 / .9); transition: border-color .2s; }
.scan-frame.hit { border-color: #5bd38b; animation: popIn .3s; }
.scan-line { position: absolute; left: 6px; right: 6px; height: 2px; background: #ff5a4f; box-shadow: 0 0 12px #ff5a4f; top: 50%; animation: scanline 1.8s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { transform: translateY(-260%); } 50% { transform: translateY(260%); } }
.scan-log { list-style: none; padding: 0; margin: 8px 0; max-height: 160px; overflow: auto; } .scan-log li { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); margin: 4px 0; animation: popIn .3s; }
.scan-log li.ok { background: var(--ok-bg); color: var(--ok); } .scan-log li.err { background: #f6dcd6; color: var(--danger); }
.spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; vertical-align: -1px; }
@keyframes rot { to { transform: rotate(360deg); } }
.receipt .checks li { display: flex; align-items: center; gap: 8px; margin: 6px 0; } .receipt .checks input[type=text], .receipt .checks input:not([type]) { flex: 1; }

/* Weihnachtsbäckerei & Menü */
.bake-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 28px; padding: clamp(22px, 4vw, 40px); margin: 4px 0 16px; color: #fff; overflow: hidden;
  background: radial-gradient(600px 260px at 100% 0%, rgb(230 195 106 / .4), transparent 60%), linear-gradient(140deg, #8c5a2b, #4f2f14); }
.bake-hero.xmas { background: radial-gradient(600px 260px at 100% 0%, rgb(230 195 106 / .35), transparent 60%), linear-gradient(140deg, #1e4d3a, #0d241b); }
.bake-hero h1 { color: #fff; margin: 4px 0; } .bake-hero p { margin: 0; opacity: .88; } .bake-deco { font-size: clamp(2rem, 6vw, 3.4rem); animation: floaty 4s ease-in-out infinite; }
.bakeplan { list-style: none; padding: 0; margin: 0; } .bakeplan li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bakeplan li a { flex: 1; color: var(--text); text-decoration: none; font-weight: 550; } .bakeplan li.done a { text-decoration: line-through; color: var(--muted); }
.tick { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 2px solid var(--line-strong); background: var(--paper); color: #fff; font-weight: 800; cursor: pointer; transition: .2s; }
li.done .tick { background: var(--ok); border-color: var(--ok); transform: rotate(-6deg); }
.bake-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.bake-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--tone); }
.bake-item a { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; min-width: 0; } .bake-item b { font-weight: 600; } .bake-item .btn { white-space: nowrap; margin-left: auto; } .bake-item a { flex: 1 1 160px; }
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.course { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; } .course h3 { margin-top: 0; } .cdish { padding: 4px 0; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--gold); } .timeline li { display: flex; gap: 14px; padding: 8px 0 8px 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.timeline li b { font-variant-numeric: tabular-nums; min-width: 52px; } .timeline li.eat::before { background: var(--gold); }

/* Glücksrad */
.wheel-wrap { position: relative; width: min(420px, 88vw); margin: 18px auto 10px; }
.wheel { width: 100%; height: auto; aspect-ratio: 1; display: block; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .25)); }
.wheel-pin { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid #8a2a33; z-index: 2; filter: drop-shadow(0 3px 3px rgb(0 0 0 / .3)); }
.wheel-go { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer; font: 800 .95rem var(--sans); letter-spacing: .05em; color: #3b1d06;
  background: radial-gradient(circle at 35% 30%, #fff2c2, #e6c36a); box-shadow: 0 6px 18px rgb(0 0 0 / .3); transition: transform .15s; } .wheel-go:active { transform: translate(-50%, -50%) scale(.92); }
.win-card { max-width: 320px; margin: 10px auto; animation: popIn .5s cubic-bezier(.2, 1.4, .3, 1); }
.seg.scroll { overflow-x: auto; } .seg.scroll button { flex: 0 0 auto; padding-inline: 14px; }

/* Küchenwecker */
.timer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 12px 0; }
.tcard { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 14px; text-align: center; box-shadow: var(--shadow-1); animation: popIn .4s both; }
.tcard .ring { width: 150px; height: 150px; display: block; margin: 0 auto; transform: rotate(-90deg); }
.tcard .ring circle { fill: none; stroke: var(--surface-2); stroke-width: 7; } .tcard .ring .pr { stroke: var(--terra); stroke-linecap: round; stroke-dasharray: 276.5; transition: stroke-dashoffset .5s linear; }
.tcard .tin { position: absolute; left: 0; right: 0; top: 50px; display: flex; flex-direction: column; } .tcard .tin b { font-size: .9rem; } .tcard .tt { font: 700 1.9rem var(--sans); font-variant-numeric: tabular-nums; }
.tcard.done { border-color: var(--danger); animation: shake .6s 3; } .tcard.done .pr { stroke: var(--danger); } .tcard.paused { opacity: .75; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.preset { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font: inherit; color: var(--text); transition: transform .15s; }
.preset:active { transform: scale(.95); } .preset span { font-size: 1.6rem; } .preset small { color: var(--muted); }
.timer-dock { position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
@media (min-width: 960px) { .timer-dock { bottom: 20px; } }
.tpill { display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 99px; background: var(--forest); color: #fff; text-decoration: none; box-shadow: var(--shadow-2); font-size: .88rem; animation: popIn .3s; }
.tpill b { font-variant-numeric: tabular-nums; } .tpill.done { background: var(--danger); animation: pulse .8s infinite; }

/* Was kann ich kochen & Listen */
.wc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.wc-item { display: block; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.wc-item > a { display: flex; flex-direction: column; color: var(--text); text-decoration: none; } .wc-item b { font: 600 1.05rem var(--serif); } .wc-item p { margin: 6px 0; }
.chip.warm { background: color-mix(in srgb, var(--terra) 14%, var(--paper)); color: var(--terra); } .chip.big { font-size: .92rem; padding: 7px 14px; animation: popIn .4s both; animation-delay: calc(var(--i) * 30ms); }
.season-chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* Umrechner */
.conv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; } .conv-grid.three { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.conv fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; } .conv legend { font-weight: 700; padding: 0 6px; }
.conv-out { margin: 10px 0; } .big-num { font: 700 clamp(2.2rem, 7vw, 3.2rem)/1 var(--serif); color: var(--terra); margin: 8px 0; }
.tchips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .tchips span { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.tchips b { font-size: 1.25rem; } .facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; } .facts dt { font-weight: 650; } .facts dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; } }
.subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sub { padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); animation: popIn .35s both; } .sub p { margin: 4px 0 0; color: var(--muted); }

/* Tagebuch */
.jlist { display: grid; gap: 10px; } .jentry { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.jphoto { width: 72px; height: 72px; flex: none; border-radius: 14px; background: var(--surface-2) center / cover; }
.jday { width: 72px; height: 72px; flex: none; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--sage-50); color: var(--forest); } .jday b { font: 700 1.6rem var(--serif); }
.jbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .jbody b { font: 600 1.05rem var(--serif); } .jstars { color: var(--gold); letter-spacing: 2px; }
.stars-in { display: flex; gap: 4px; } .stars-in button { font-size: 2rem; background: none; border: 0; cursor: pointer; color: var(--line-strong); transition: transform .15s, color .15s; padding: 2px; }
.stars-in button.on { color: var(--gold); transform: scale(1.1); }
.in-coll { position: relative; } .in-coll .rm { position: absolute; top: 8px; right: 8px; background: var(--paper); }

/* Farbwelten */
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.skin { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 20px; background: var(--paper); border: 2px solid var(--line); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .2s, border-color .2s; }
.skin.on { border-color: var(--forest); transform: translateY(-2px); box-shadow: var(--shadow-2); } .skin small { color: var(--muted); }
.skin-prev { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 74px; border-radius: 14px; overflow: hidden; margin-bottom: 6px; }
.skin-prev i:nth-child(1) { grid-row: span 2; background: var(--a); } .skin-prev i:nth-child(2) { background: var(--b); } .skin-prev i:nth-child(3) { background: var(--c); }

/* Rezeptkarte */
.card-prev { max-height: 60vh; overflow: auto; border-radius: 14px; background: var(--surface-2); padding: 10px; margin: 10px 0; text-align: center; }
.card-canvas { width: min(100%, 420px); height: auto; border-radius: 8px; box-shadow: var(--shadow-2); }

/* Heiligabend */
.finale { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(26px, 5vw, 54px); color: #fff; text-align: center;
  background: radial-gradient(800px 380px at 50% -10%, rgb(230 195 106 / .35), transparent 65%), linear-gradient(180deg, #0f1d2e, #1b2f47 60%, #0f1d2e); }
.finale-in { position: relative; } .finale h1, .finale h2 { color: #fff; } .finale h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 22px 0; }
.stat { padding: 16px 10px; border-radius: 20px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); animation-delay: calc(var(--i) * 120ms) !important; }
.stat b { display: block; font: 700 2.4rem var(--serif); color: #f6dc93; } .stat span { color: rgb(255 255 255 / .82); font-size: .9rem; }
.podium { list-style: none; padding: 0; max-width: 460px; margin: 0 auto 26px; } .podium li { display: flex; gap: 12px; align-items: center; padding: 10px 16px; margin: 8px 0; border-radius: 16px; background: rgb(255 255 255 / .08); animation: popIn .5s both; animation-delay: calc(.6s + var(--i) * .15s); }
.podium a { color: #fff; flex: 1; text-align: left; } .podium span { font-size: 1.6rem; }
.letter-wrap { display: grid; place-items: center; min-height: 260px; }
.envelope { position: relative; width: min(320px, 80vw); aspect-ratio: 1.55; border: 0; cursor: pointer; border-radius: 14px; background: linear-gradient(160deg, #f6ead2, #e8d3a8); box-shadow: 0 24px 50px -20px rgb(0 0 0 / .7); animation: floaty 3.4s ease-in-out infinite; transition: transform .6s; }
.envelope .flap { position: absolute; inset: 0 0 auto 0; height: 58%; background: linear-gradient(160deg, #ecdbb6, #d9bf8b); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .7s; border-radius: 14px 14px 0 0; }
.envelope .seal { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #c8434f, #8a1f2b); color: #ffd7dc; font-size: 1.4rem; box-shadow: 0 4px 10px rgb(0 0 0 / .3); }
.envelope .env-label { position: absolute; bottom: 14px; left: 0; right: 0; font: italic 600 1.1rem var(--serif); color: #6b4a1e; }
.envelope.open .flap { transform: rotateX(180deg); } .envelope.open { transform: scale(1.06); }
.letter { max-width: 560px; margin: 0 auto; text-align: left; padding: 28px 30px; border-radius: 6px; color: #2b241a; font: 400 1.12rem/1.7 var(--serif);
  background: linear-gradient(#fffaf0, #fbf1dc); box-shadow: 0 24px 60px -24px rgb(0 0 0 / .7); }
.letter.unfold { animation: unfold .9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: top; } .letter .sig { font-style: italic; text-align: right; font-size: 1.25rem; margin-top: 18px; }
@keyframes unfold { from { opacity: 0; transform: perspective(800px) rotateX(-70deg) translateY(-20px); } to { opacity: 1; transform: none; } }
