/* Gratlicht – Alpenglühen: Tinte, Morgenrot, Gold, Creme. Mobile first. */
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
:root {
  --bg: #F7F1EA; --bg2: #EEE5DA; --card: #FFFDF9; --line: #E2D7CA;
  --ink: #1F2A44; --ink2: #4A5470; --ink3: #7F8597;
  --clay: #B0482A; --clay2: #E07A4F; --clayS: #FBE3D5; --moss: #2E7C7A; --water: #7C93C3; --sun: #F2A65A; --gold: #C48A1A;
  --glow: #E07A4F; --night: #1F2A44;
  --r: 20px; --rs: 14px; --sh: 0 1px 2px rgba(31, 42, 68, .05), 0 8px 24px rgba(31, 42, 68, .07);
  --fs: 16px; --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif; --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html.fs-1 { --fs: 18px; } html.fs-2 { --fs: 20px; }
html.hc { --ink2: #2E3650; --ink3: #4E5570; --line: #A99A88; --clay: #8E3418; --card: #fff; }
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-synthesis: none; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs)/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body { min-height: 100vh; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; border-radius: 8px; }
a { color: var(--clay); }
svg { flex: none; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 .6em; }
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.content { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: calc(var(--top) + 8px) 20px calc(var(--bot) + 100px); display: flex; flex-direction: column; gap: 14px; }
.screen:not(:has(.tabbar)) .content { padding-bottom: calc(var(--bot) + 28px); }
.content.center { align-items: center; text-align: center; }
.content.center > .topbar { align-self: stretch; }

/* Topbar */
.topbar { display: flex; align-items: center; gap: 8px; min-height: 52px; margin: 0 -6px 2px; }
.tb-mid { flex: 1; display: flex; justify-content: center; }
.tb-t { font-weight: 700; color: var(--ink2); }
.brandrow { display: flex; align-items: center; gap: 8px; font: 400 1.3rem var(--serif); color: var(--ink); padding-left: 6px; }
.logo { width: 30px; height: 30px; display: grid; place-items: center; }
.logo svg { width: 28px; height: 28px; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); flex: none; transition: background .15s; }
.iconbtn:active { background: var(--bg2); }
.iconbtn.sm { width: 36px; height: 36px; }
.helpbtn { color: var(--clay); }
.iconbtn.add { background: var(--night); color: #fff; width: 40px; height: 40px; }
.iconbtn.star { color: var(--ink3); } .iconbtn.star.on, .gold { color: var(--gold); }

/* Typo */
.h1 { font-size: 2.05rem; line-height: 1.08; margin-top: 4px; }
.lead { color: var(--ink2); font-size: 1.02rem; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin: 0; display: flex; align-items: center; gap: 6px; }
.lbl { display: block; font-weight: 700; font-size: .92rem; color: var(--ink2); margin: 6px 0 -6px; }
.lbl.inline { margin: 0 0 6px; }
.opt { font-weight: 400; color: var(--ink3); }
.hint { font-size: .86rem; color: var(--ink3); margin: 0; }
.hint svg { vertical-align: -2px; }
.hint.center, .center { text-align: center; }
.small { font-size: .82rem; }
.muted { color: var(--ink3); }
.sh { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin: 14px 0 -4px; }
.quote { font-family: var(--serif); font-style: italic; color: var(--ink2); border-left: 3px solid var(--line); padding-left: 12px; }
.prose { color: var(--ink); } .prose p, .prose li { margin: 0 0 .7em; } .prose ul { padding-left: 1.2em; margin: 0; }
.version { text-align: center; color: var(--ink3); font-size: .8rem; margin: 6px 0 0; }

/* Felder */
.field { width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--rs); padding: 13px 14px; min-height: 50px; outline: none; transition: border-color .15s; }
.field:focus { border-color: var(--clay2); }
.field.area { resize: vertical; min-height: 110px; line-height: 1.5; }
input[type=date].field, input[type=time].field { appearance: none; -webkit-appearance: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .lbl { margin-bottom: 8px; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border-radius: 999px; font-weight: 800; padding: 12px 22px; transition: transform .1s, background .15s, opacity .15s; text-align: center; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, #2B3963, #1F2A44); color: #fff; box-shadow: 0 6px 18px rgba(31, 42, 68, .22), inset 0 -2px 0 rgba(224, 122, 79, .55); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.danger { background: #A33A22; color: #fff; }
.btn.small { min-height: 42px; padding: 8px 16px; font-size: .92rem; width: auto; }
.btn:disabled { opacity: .4; box-shadow: none; }
.link { color: var(--clay); font-weight: 700; padding: 10px 4px; display: inline-flex; align-items: center; gap: 6px; }
.link.inline { padding: 4px 0; font-size: .92rem; }
.linkrow { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; }
.row2 { display: flex; gap: 10px; flex-wrap: wrap; } .row2 .btn { flex: 1; width: auto; }
.bottom { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.bottom .link { align-self: center; }
.flowbtns { flex-direction: row; } .flowbtns .btn.ghost { flex: 0 0 auto; width: auto; } .flowbtns .btn.primary { flex: 1; }
.actions { display: flex; flex-direction: column; gap: 10px; }

/* Karten */
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 8px; }
.card.soft { background: var(--bg2); box-shadow: none; }
.card h3, .cardhead h3 { font-size: 1.02rem; font-weight: 800; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.count { font-size: .82rem; color: var(--ink3); font-weight: 700; }
.card.tile { flex-direction: row; align-items: center; gap: 14px; text-align: left; width: 100%; }
.card.tile > svg:first-child { color: var(--clay); }
.card.tile > div { flex: 1; display: flex; flex-direction: column; }
.card.tile small { color: var(--ink3); font-size: .86rem; }
.card.tile .eyebrow { margin-bottom: 2px; }
.card.akut { flex-direction: row; align-items: center; gap: 12px; background: #F8DED3; box-shadow: none; text-align: left; width: 100%; color: #7A2C17; }
.card.akut > div { flex: 1; display: flex; flex-direction: column; } .card.akut small { color: #8E4A36; }
.tools3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card.tile.sm { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px; font-size: .9rem; }
.card.plusok { flex-direction: row; align-items: center; gap: 12px; } .card.plusok > div { flex: 1; display: flex; flex-direction: column; } .card.plusok small { color: var(--ink3); }
.pl { font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--clay); background: var(--clayS); border-radius: 999px; padding: 3px 9px; }
.sect { display: flex; flex-direction: column; gap: 10px; }
.tiles { gap: 10px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
ul.plain li { padding-left: 16px; position: relative; } ul.plain li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.footnote { text-align: center; font-size: .8rem; color: var(--ink3); margin: 10px 0 0; }
.footnote a { color: var(--ink2); font-weight: 700; text-decoration: none; }

/* Hero */
.hero-card { background: linear-gradient(165deg, #FFFBF5, #F7E3D6); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.hero-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 166, 90, .42), transparent 70%); pointer-events: none; }
.hero-card.soon, .hero-card.post { background: linear-gradient(165deg, #26335A, #1F2A44); color: #F7F1EA; }
.hero-card.soon p, .hero-card.post p { color: #D7DAE6; } .hero-card.soon .eyebrow, .hero-card.post .eyebrow { color: #F2B48E; }
.hero-card.soon .btn.primary, .hero-card.post .btn.primary { background: linear-gradient(135deg, #F08A63, #D9623F); box-shadow: 0 6px 18px rgba(217, 98, 63, .35); }
.hero-card.soon .btn.ghost, .hero-card.post .btn.ghost { color: #F7F1EA; border-color: rgba(247, 241, 234, .35); } .hero-card.soon .link, .hero-card.post .link { color: #F2B48E; }
.hero-card h2 { font: 400 1.85rem/1.1 var(--serif); }
.hero-card p { color: var(--ink2); }
.hero-card .btn { margin-top: 4px; }
.hero-card .link { align-self: flex-start; }

/* Onboarding */
.s-onb.o0 { position: relative; background: var(--bg); }
.onb-scene { position: absolute; inset: 0 0 auto 0; height: 52vh; overflow: hidden; }
.onb-scene svg { width: 100%; height: 100%; display: block; }
.s-onb.o0 .content { position: relative; z-index: 1; }
.onb-spacer { height: 44vh; }
.onb-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, rgba(247, 241, 234, 0), var(--bg)); }
[data-focus]:focus, [data-focus]:focus-visible { outline: none; }
.onb-title { font-size: 2.6rem; line-height: 1.02; }
.promise { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--ink2); font-weight: 700; font-size: .9rem; }
.promise span { display: inline-flex; align-items: center; gap: 6px; } .promise svg { color: var(--moss); }
.onb-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 4px; }
.onb-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .2s; } .onb-dots i.on { width: 22px; background: var(--clay); }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; background: var(--card); border: 2px solid transparent; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); width: 100%; transition: border-color .15s, background .15s; }
.choice b { display: block; } .choice small { color: var(--ink3); font-size: .86rem; display: block; line-height: 1.35; }
.choice.sel { border-color: var(--glow); background: #FFF7F1; }
.ci { width: 40px; height: 40px; border-radius: 12px; background: var(--bg2); color: var(--clay); display: grid; place-items: center; flex: none; }
.choice.sel .ci { background: var(--clayS); }
.choices.tight .choice { padding: 12px 14px; }
.fdot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin: 0 6px; } .f-ja, .z-ja { background: var(--moss); } .f-unsicher, .z-teils { background: var(--sun); } .f-nein, .z-nein { background: #B98A7C; } .z-anders { background: var(--water); }
.check { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; font-weight: 600; text-align: left; }
.box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; color: transparent; flex: none; transition: all .15s; }
.check.on .box, .tcheck[aria-checked=true] .box { background: var(--moss); border-color: var(--moss); color: #fff; }
.checks { display: flex; flex-direction: column; }
.helprows { display: flex; flex-direction: column; gap: 8px; }
.helprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border-radius: var(--rs); padding: 12px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--sh); }
.helprow .hn { font-weight: 700; display: flex; flex-direction: column; } .helprow small { font-weight: 400; color: var(--ink3); font-size: .82rem; }
.hnr { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: var(--clay); white-space: nowrap; }
.helprows.compact .helprow { padding: 9px 12px; }

/* Segmente, Schalter, Chips */
.seg { display: flex; background: var(--bg2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { flex: 1; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--ink2); text-align: center; padding: 6px 8px; transition: background .15s; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(31, 42, 68, .12); }
.sub { margin-top: -4px; }
.switches { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.switch { display: flex; align-items: center; gap: 14px; padding: 13px 16px; width: 100%; text-align: left; }
.switch + .switch { border-top: 1px solid var(--bg2); }
.switch > span { flex: 1; display: flex; flex-direction: column; } .switch small { color: var(--ink3); font-size: .84rem; line-height: 1.35; }
.switch i { width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch.on i { background: var(--moss); } .switch.on i::after { transform: translateX(18px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: .94rem; min-height: 40px; transition: all .15s; }
.chip.on { background: var(--night); border-color: var(--night); color: #fff; }
.chip.fam.on { background: var(--fc); border-color: var(--fc); }
.chips.words { justify-content: center; animation: fadeUp .25s ease; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: .86rem; background: color-mix(in srgb, var(--fc) 18%, #fff); color: color-mix(in srgb, var(--fc) 70%, #222); }
.fchip.x { min-height: 32px; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ktag { font-size: .74rem; font-weight: 900; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }
.ktag.k-erst { background: #DDEDEC; color: #1F5B59; }
.stags { display: flex; flex-wrap: wrap; gap: 6px; }
.stag { font-size: .84rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sc) 16%, #fff); color: color-mix(in srgb, var(--sc) 75%, #222); }

/* Gefühlsrad */
.wheelwrap { display: flex; justify-content: center; margin: 2px 0; }
.wheel { width: min(300px, 82vw); height: auto; overflow: visible; }
.wseg { cursor: pointer; transition: transform .2s, opacity .2s; transform-origin: 120px 120px; outline: none; }
.wseg path { stroke: var(--bg); stroke-width: 2; }
.wseg text { fill: #fff; font: 800 10.5px var(--sans); pointer-events: none; }
.wheel:has(.wseg.on) .wseg:not(.on) { opacity: .45; }
.wseg.on { transform: scale(1.05); }
.wseg:focus-visible path { stroke: var(--ink); stroke-width: 3; }
.wc { fill: var(--card); } .wct { font: 700 12px var(--sans); fill: var(--ink2); }

/* Eingabe-Liste */
.composer { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; }
.composer:focus-within { border-color: var(--clay2); }
.composer input { flex: 1; border: 0; outline: none; background: transparent; min-height: 42px; min-width: 0; }
.composer.slim { align-self: center; width: min(100%, 300px); }
.items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.items li { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: var(--rs); padding: 6px 6px 6px 12px; box-shadow: var(--sh); animation: fadeUp .2s ease; }
.items li > span:not(.ii) { flex: 1; padding: 6px 0; overflow-wrap: anywhere; }
.items.muted li { opacity: .7; box-shadow: none; background: var(--bg2); }
.ii { color: var(--clay); display: grid; place-items: center; }
.k-da .ii { color: var(--water); } .k-aha .ii { color: var(--gold); } .k-offen .ii { color: var(--moss); }
.items.themen li { padding-left: 4px; } .items.themen li:not(.on) { box-shadow: none; background: var(--bg2); }
.tcheck { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 4px; text-align: left; }
.tcheck span:last-child { overflow-wrap: anywhere; }
.alist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.alist li { display: flex; align-items: center; gap: 10px; }
.alist .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); margin: 0 4px; flex: none; }
details.done summary { cursor: pointer; color: var(--ink3); font-weight: 700; padding: 8px 0; }
.tipbox { display: flex; flex-direction: column; gap: 4px; }
.tip { background: #FFF4E3; border-radius: var(--rs); padding: 12px 14px; font-family: var(--serif); font-style: italic; color: var(--ink2); margin: 0; animation: fadeUp .25s ease; }
.tiprow { display: flex; gap: 16px; flex-wrap: wrap; }

/* Fortschritt */
.prog { display: flex; gap: 5px; }
.prog i { width: 22px; height: 5px; border-radius: 3px; background: var(--line); transition: background .2s; } .prog i.on { background: var(--clay); }

/* Spickzettel */
.s-spick { background: #FBF5EC; }
.spick { background: #FFFDF8; border-radius: 22px; padding: 24px 22px; box-shadow: 0 10px 40px rgba(31, 42, 68, .12); display: flex; flex-direction: column; gap: 18px; position: relative; }
.spick::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, var(--sun), var(--clay2)); }
.spick h2 { font-size: .78rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.spick ul { margin: 0; padding-left: 1.2em; font-size: 1.12rem; } .spick li { margin: 4px 0; }
.spick p { font-size: 1.08rem; margin: 0; }
.spick .big { font-size: 1.6rem; line-height: 1.25; color: var(--ink); }
.sp-top { background: #FBE8DA; border-radius: 14px; padding: 14px 16px; }

/* Weg */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats div { padding: 10px 4px !important; } .stats span { font-size: .72rem !important; }
.stats div { background: var(--card); border-radius: var(--r); padding: 12px; text-align: center; box-shadow: var(--sh); display: flex; flex-direction: column; }
.stats b { font: 400 1.9rem/1.1 var(--serif); } .stats span { font-size: .8rem; color: var(--ink3); font-weight: 700; }
.list { display: flex; flex-direction: column; gap: 8px; }
.rowcard { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh); width: 100%; text-align: left; }
.rowcard > svg:last-child { color: var(--ink3); }
.rc-main { flex: 1; display: flex; flex-direction: column; min-width: 0; } .rc-main small { color: var(--ink3); font-size: .86rem; }
.rc-date { width: 46px; height: 50px; border-radius: 12px; background: var(--bg2); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.rc-date b { font: 400 1.25rem/1 var(--serif); } .rc-date small { font-size: .7rem; font-weight: 800; color: var(--ink3); text-transform: uppercase; }
.ok { width: 24px; height: 24px; border-radius: 50%; background: #E3EDE1; color: var(--moss); display: grid; place-items: center; flex: none; }
.rowcard.danger { color: #A33A22; } .rowcard.danger .ci { background: #F6DCD2; color: #A33A22; }
.rowcard.anf { align-items: flex-start; }
.sdot { width: 12px; height: 12px; border-radius: 50%; background: var(--sc); margin-top: 6px; flex: none; }
.ssel { margin-top: 8px; align-self: flex-start; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--bg); font-weight: 700; font-size: .88rem; }
.nudge { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink2); } .nudge svg { color: var(--clay); margin-top: 2px; } .nudge p { margin: 0; }
.mark { display: block; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 16px; background: var(--bg2); border-radius: var(--r); color: var(--ink2); }
.empty svg { color: var(--clay); } .empty h3 { font: 400 1.4rem var(--serif); color: var(--ink); } .empty p { margin: 0; font-size: .92rem; }

/* Fertig */
.s-fertig { background: radial-gradient(circle at 50% 28%, #FADCC8, var(--bg) 62%); }
.s-fertig .content { justify-content: center; }
.drop { margin: 40px 0 10px; animation: dropmark .9s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes dropmark { 0% { transform: translateY(-60px) scale(.85); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.s-fertig .bottom { width: 100%; }

/* Tabbar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 4px; padding: 8px 12px calc(var(--bot) + 8px); background: #FBF7F2; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(31, 42, 68, .05); }
.tab { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .74rem; font-weight: 800; color: var(--ink3); padding: 4px 0; border-radius: 12px; }
.tab.on { color: var(--night); } .tab.on svg { color: var(--glow); }
.tab { max-width: 96px; font-size: .7rem; }

/* Sheet */
.backdrop { position: fixed; inset: 0; background: rgba(31, 42, 68, .38); z-index: 40; opacity: 0; transition: opacity .2s; }
.backdrop.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; max-height: 90vh; overflow-y: auto; background: var(--bg); border-radius: 26px 26px 0 0; padding: 12px 20px calc(var(--bot) + 22px); display: flex; flex-direction: column; gap: 12px; transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .3, 1); }
.sheet.on { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; }
.sclose { position: absolute; right: 10px; top: 8px; }
.sheet h2 { font-size: 1.4rem; padding-right: 40px; }
.sheet .pindots, .sheet .keypad { align-self: center; }

/* Toast & Banner */
.toast { position: fixed; left: 50%; bottom: calc(var(--bot) + 92px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; z-index: 60; animation: fadeUp .2s ease; max-width: 90vw; text-align: center; }
.banner { position: fixed; left: 12px; right: 12px; top: calc(var(--top) + 10px); z-index: 50; max-width: 540px; margin: 0 auto; background: var(--card); border-radius: 18px; box-shadow: 0 10px 30px rgba(31, 42, 68, .2); padding: 12px; display: flex; align-items: center; gap: 10px; animation: fadeUp .25s ease; }
.banner > span { color: var(--clay); } .banner p { flex: 1; margin: 0; font-size: .92rem; font-weight: 600; }

/* PIN */
.s-lock .content { justify-content: center; }
.lockic { width: 64px; height: 64px; border-radius: 22px; background: var(--clayS); color: var(--clay); display: grid; place-items: center; margin-top: 30px; }
.pindots { display: flex; gap: 16px; margin: 6px 0 10px; }
.pindots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink3); transition: background .15s; } .pindots i.on { background: var(--ink); border-color: var(--ink); }
.pindots.err { animation: shake .35s; } .pindots.err i { border-color: #A33A22; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 22px; }
.keypad button { width: 72px; height: 72px; border-radius: 50%; background: var(--card); box-shadow: var(--sh); font: 400 1.8rem var(--serif); display: grid; place-items: center; }
.keypad button:active { background: var(--bg2); } .keypad button:disabled { opacity: .4; }

/* Plus */
.feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.feat { display: flex; gap: 12px; align-items: flex-start; } .feat svg { color: var(--clay); margin-top: 2px; }
.feat span { display: flex; flex-direction: column; } .feat small { color: var(--ink3); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.plan { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 20px 8px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.plan.sel { border-color: var(--glow); background: #FFF7F1; }
.plan b { font-size: .86rem; color: var(--ink2); } .pp { font: 400 1.45rem var(--serif); } .plan small { font-size: .74rem; color: var(--ink3); }
.badge { position: absolute; top: -10px; background: var(--moss); color: #fff; font-size: .72rem; font-weight: 900; border-radius: 999px; padding: 2px 9px; }
.testnote { text-align: center; color: var(--clay); }
.treasure { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gem { gap: 6px; } .gem svg { color: var(--clay); } .gem.k-aha svg { color: var(--gold); } .gem p { margin: 0; font-family: var(--serif); } .gem small { color: var(--ink3); font-size: .78rem; }
.legend { display: flex; gap: 16px; font-size: .84rem; color: var(--ink2); font-weight: 700; } .legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 18px; height: 8px; border-radius: 4px; background: var(--clay); } .lg.pre { opacity: .45; }
.fbar { display: grid; grid-template-columns: 110px 1fr; gap: 3px 10px; align-items: center; margin-bottom: 8px; }
.fbl { grid-row: span 2; font-weight: 700; font-size: .9rem; }
.fbt { height: 8px; background: var(--bg2); border-radius: 4px; overflow: hidden; } .fbt i { display: block; height: 100%; border-radius: 4px; }

/* Kompass / Artikel */
.wegpunkte { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.wegpunkte button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; text-align: left; }
.wegpunkte button > span:nth-child(2) { flex: 1; } .wegpunkte button > svg { color: var(--ink3); }
.wp { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.wegpunkte li.done .wp { background: var(--moss); border-color: var(--moss); color: #fff; } .wegpunkte li.done span:nth-child(2) { color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--line); }
.vorlage { white-space: pre-wrap; font: 400 .9rem/1.5 var(--sans); margin: 0; background: var(--card); border-radius: var(--rs); padding: 12px; user-select: text; -webkit-user-select: text; }
.src { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; } .src a { color: var(--ink2); }
.rsec h4 { font-size: .8rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); margin: 8px 0 4px; display: flex; gap: 6px; align-items: center; }

/* Hero-Szene */
.sunglow { animation: glow 6s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
@keyframes glow { to { opacity: .7; transform: scale(1.07); } }
html.paused .sunglow { animation-play-state: paused; }

/* Druck */
.book { background: #fff; border-radius: 16px; padding: 24px; box-shadow: var(--sh); font-family: var(--serif); }
.book header { border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 10px; } .book header h1 { font-size: 2rem; } .book header p { color: var(--ink3); font-family: var(--sans); }
.book h2 { font-size: 1.3rem; font-weight: 400; margin: 18px 0 6px; } .book h3 { font: 800 .78rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin: 10px 0 4px; }
.book ul { margin: 0; padding-left: 1.2em; } .entry { break-inside: avoid; }
@media print {
  @page { margin: 18mm; }
  body, .screen { background: #fff !important; }
  .topbar, .noprint, .tabbar, .toast, .banner, .footnote { display: none !important; }
  .content { padding: 0 !important; max-width: none; }
  .book { box-shadow: none; padding: 0; }
}
@media (min-width: 700px) { .content { padding-top: calc(var(--top) + 20px); } }

/* Gratlicht: Ziele, Umsetzung, Gratweg */
.ring { display: block; flex: none; } .ring text { font: 800 11px var(--sans); fill: var(--ink); }
.zrow, .rowcard.mk { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border-radius: var(--r); padding: 10px 14px 10px 10px; box-shadow: var(--sh); }
.zcard .zrow { box-shadow: none; background: var(--bg); }
.zlist { display: flex; flex-direction: column; gap: 8px; }
.zrow.done { opacity: .75; }
.zrow > svg:last-child, .rowcard.mk > svg:last-child { color: var(--ink3); }
.zhead { display: flex; align-items: center; gap: 14px; }
.zhead .ring text { font-size: 10px; }
.slist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.srow { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.srow + .srow { border-top: 1px solid var(--bg2); }
.scheck { width: 44px; height: 44px; margin: -6px -4px -6px -8px; display: grid; place-items: center; flex: none; }
.sbox { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; color: #fff; }
.srow:not(.s-offen) .sbox { background: var(--sc); border-color: var(--sc); }
.sbox .half { width: 10px; height: 10px; border-radius: 3px; background: #fff; }
.st { display: flex; flex-direction: column; padding-top: 3px; } .st small { color: var(--ink3); font-size: .84rem; }
.srow.s-geschafft .st > span, .srow.s-los .st > span { color: var(--ink2); }
.seg.wrap4 { flex-wrap: wrap; border-radius: 18px; } .seg.wrap4 button { flex: 1 1 45%; }
.items.ms li.on span { color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--line); }
.goal { display: flex; gap: 8px; align-items: flex-start; font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; } .goal svg { color: var(--glow); margin-top: 3px; }
.goalq { flex-direction: row; align-items: flex-start; gap: 10px; } .goalq svg { color: var(--glow); margin-top: 2px; } .goalq p { margin: 0; font: italic 400 1.2rem/1.25 var(--serif); }
.zsug { align-items: center; } .chip.ghost { border-style: dashed; background: transparent; font-weight: 600; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; cursor: default; }
.ridgewrap { border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, #F6D9C6, #F7EDE3); box-shadow: var(--sh); }
.ridge { display: block; width: 100%; height: auto; }
.list.marks { margin-top: 4px; }
.gem.k-lern svg { color: var(--moss); }
.sp-top .big { font-size: 1.6rem; line-height: 1.15; }
