/* Trittstein – warm, ruhig, nicht klinisch. Mobile first. */
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
:root {
  --bg: #F6EFE6; --bg2: #EFE5D8; --card: #FFFBF6; --line: #E4D8C8;
  --ink: #2E2A33; --ink2: #5D5662; --ink3: #8A8290;
  --clay: #A9533A; --clay2: #C46B4F; --clayS: #F3DED4; --moss: #6F8F6B; --water: #7FA8B6; --sun: #F2B66D; --gold: #D9962E;
  --r: 18px; --rs: 12px; --sh: 0 1px 2px rgba(70, 50, 30, .05), 0 6px 20px rgba(70, 50, 30, .06);
  --fs: 16px; --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
  --serif: 'Fraunces', Georgia, serif; --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html.fs-1 { --fs: 18px; } html.fs-2 { --fs: 20px; }
html.hc { --ink2: #3C3640; --ink3: #57505C; --line: #BFAE98; --clay: #8C3C25; --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, 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: 500; letter-spacing: -.01em; }
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: 600 1.05rem var(--serif); color: var(--ink); padding-left: 6px; }
.logo { width: 30px; height: 30px; border-radius: 10px; background: var(--clayS); color: var(--clay); display: grid; place-items: center; }
.logo svg { width: 20px; height: 20px; }
.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(--clay); color: #fff; width: 40px; height: 40px; }
.iconbtn.star { color: var(--ink3); } .iconbtn.star.on, .gold { color: var(--gold); }

/* Typo */
.h1 { font-size: 1.75rem; 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: var(--clay); color: #fff; box-shadow: 0 6px 16px rgba(169, 83, 58, .25); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.danger { background: #B5432A; 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; min-height: 44px; }
.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: #F6DCD2; box-shadow: none; text-align: left; width: 100%; color: #7C2F1B; }
.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(160deg, #FFF8EE, #F7E6D5); 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, 182, 109, .45), transparent 70%); pointer-events: none; }
.hero-card.soon, .hero-card.post { background: linear-gradient(160deg, #FCEBDD, #F2D6C4); }
.hero-card h2 { font: 500 1.5rem 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: linear-gradient(180deg, #F9E3CC 0%, var(--bg) 70%); }
.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(246, 239, 230, 0), var(--bg)); }
[data-focus]:focus, [data-focus]:focus-visible { outline: none; }
.onb-title { font-size: 2.1rem; line-height: 1.12; }
.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(--clay); background: #FFF6EF; }
.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 { background: var(--moss); } .f-unsicher { background: var(--sun); } .f-nein { background: #B98A7C; }
.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(60, 40, 20, .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(--clay); border-color: var(--clay); 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: #E3EDE1; color: #4C6A48; }
.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(80, 55, 30, .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: #FFF2DE; border-radius: 14px; padding: 14px 16px; }

/* Weg */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.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: 500 1.6rem 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: 500 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; }
.path { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 0 4px; }
.path::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 70%; transform: translateX(-50%); background: linear-gradient(180deg, rgba(127, 168, 182, .22), rgba(127, 168, 182, .08)); border-radius: 40px; z-index: 0; }
.pstone { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: 64%; padding: 4px; text-align: left; animation: fadeUp .3s ease both; }
.pstone.l { align-self: flex-start; margin-left: 8%; } .pstone.r { align-self: flex-end; margin-right: 8%; flex-direction: row-reverse; text-align: right; }
.pd { display: flex; flex-direction: column; line-height: 1.25; } .pd b { font-size: .92rem; } .pd small { color: var(--ink3); font-size: .8rem; }
.pstart { position: relative; z-index: 1; align-self: center; font-size: .8rem; color: var(--ink3); font-weight: 700; display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.stone { display: block; filter: drop-shadow(0 2px 2px rgba(60, 40, 20, .1)); }
.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: 500 1.15rem var(--serif); color: var(--ink); } .empty p { margin: 0; font-size: .92rem; }

/* Fertig */
.s-fertig { background: radial-gradient(circle at 50% 30%, #FBE3C8, var(--bg) 60%); }
.s-fertig .content { justify-content: center; }
.drop { margin: 40px 0 10px; animation: dropstone 1s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes dropstone { 0% { transform: translateY(-120px) rotate(-8deg); 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: rgba(246, 239, 230, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.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(--clay); }

/* Sheet */
.backdrop { position: fixed; inset: 0; background: rgba(46, 42, 51, .35); 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(60, 40, 20, .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: #B5432A; }
@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: 500 1.6rem 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(--clay); background: #FFF6EF; }
.plan b { font-size: .86rem; color: var(--ink2); } .pp { font: 600 1.2rem 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; }
.ripples { animation: drift 8s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: .75; transform: scale(1.06); } }
@keyframes drift { to { transform: translateX(-10px); } }

/* 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.1rem; 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); } }
.stones-a ellipse { animation: bob 5s ease-in-out infinite alternate; } .stones-a ellipse:nth-child(2n) { animation-delay: -2.5s; }
@keyframes bob { to { transform: translateY(1.5px); } }

/* ===== 2.0: fließend weiter, Suche, Wegkarte ===== */
.topbar.stick { position: sticky; top: 0; z-index: 20; background: var(--bg); margin: calc(-8px - var(--top)) -20px 2px; padding: calc(var(--top) + 8px) 14px 4px; }
.tb-t { font-weight: 800; font-size: .95rem; color: var(--ink2); }
.nextup { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.nextup > .eyebrow { margin-bottom: 2px; }
.card.tile.nx > svg:first-child { color: var(--clay); }
.card.tile.nx:first-of-type { border: 2px solid var(--clayS); }
.nx-more { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-more .btn { flex: 1 1 auto; }
.linkrow.left { justify-content: flex-start; }
.srow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sform { gap: 10px; }
select.field { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.morefilter { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 0 16px; }
.morefilter > summary { cursor: pointer; font-weight: 800; padding: 14px 0; min-height: 48px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.morefilter > summary::-webkit-details-marker { display: none; }
.morefilter > summary::after { content: '+'; font-size: 1.3rem; color: var(--clay); }
.morefilter[open] > summary::after { content: '–'; }
.morefilter[open] { padding-bottom: 16px; display: flex; flex-direction: column; }
.morefilter[open] > * + * { margin-top: 10px; }
.morefilter .switches { box-shadow: none; border: 1.5px solid var(--bg2); }
a.btn { text-decoration: none; }
.extlink { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; min-height: 44px; font-weight: 700; text-decoration: none; border-top: 1px solid var(--line); }
.srcs { display: flex; flex-direction: column; }
.srcs p { margin: 6px 0 2px; }
.srcs p:first-child { margin-top: 0; }
ul.wahl { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
ul.wahl li { display: flex; flex-direction: column; } ul.wahl b { color: var(--clay); } ul.wahl span { color: var(--ink2); }
.kartetile .kt-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--clayS); color: var(--clay); display: grid; place-items: center; flex: none; }
.kwrap { border-radius: 22px; overflow: hidden; box-shadow: var(--sh); background: #EDE3D2; }
svg.karte { display: block; width: 100%; height: auto; }
.kbase { fill: none; stroke: #CDBBA3; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 11; }
.kseg { fill: none; stroke: transparent; stroke-width: 6; stroke-linecap: round; }
.kseg.done { stroke: var(--moss); }
.kst { cursor: pointer; outline: none; }
.khit { fill: transparent; }
.kdot { fill: #FFFBF6; stroke: #CDBBA3; stroke-width: 3; }
.kic { color: #8A8290; }
.kst.done .kdot { fill: var(--moss); stroke: var(--moss); } .kst.done .kic { color: #fff; }
.kst.cur .kdot { fill: var(--clay); stroke: #fff; stroke-width: 4; } .kst.cur .kic { color: #fff; }
.kst.next .kdot { stroke: var(--clay2); stroke-dasharray: 5 4; } .kst.next .kic { color: var(--clay); }
.klab { font: 800 17px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #F6EFE6; stroke-width: 5px; stroke-linejoin: round; }
.ksub { font: 700 13px var(--sans); fill: var(--ink2); paint-order: stroke; stroke: #F6EFE6; stroke-width: 4px; stroke-linejoin: round; }
.kst.cur .ksub { fill: var(--clay); }
.kst.later .klab, .kst.later .ksub { fill: var(--ink3); }
.kst:focus-visible .kdot { stroke: var(--water); stroke-width: 5; }
.kpulse { fill: none; stroke: var(--clay2); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: kpulse 2.4s ease-out 3; opacity: 0; }
@keyframes kpulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
html.hid .kpulse { animation-play-state: paused; }
.klist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.klist button { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--card); border-radius: var(--rs); padding: 12px 14px; min-height: 56px; box-shadow: var(--sh); }
.klist .rc-main { flex: 1; display: flex; flex-direction: column; } .klist small { color: var(--ink3); font-size: .84rem; }
.kl-dot { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line); display: grid; place-items: center; flex: none; color: #fff; }
.klist .done .kl-dot { background: var(--moss); border-color: var(--moss); }
.klist .cur .kl-dot { background: var(--clay); border-color: var(--clay); }
.klist .cur button { outline: 2px solid var(--clayS); }
.klist .next .kl-dot { border-color: var(--clay2); border-style: dashed; }
html.hc .kbase { stroke: #8A7A66; } html.hc .ksub { fill: var(--ink); }
@media print { .nextup { display: none; } }
.src a { display: flex; align-items: center; min-height: 40px; }
