:root {
  --bg: #0a111e;
  --bg-2: #0e1727;
  --card: #131c2d;
  --card-2: #182338;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #eef2f8;
  --muted: #98a4b8;
  --dim: #66728a;
  --primary: #3d8bff;
  --primary-2: #2a6ff0;
  --primary-soft: #b9d6ff;
  --ok: #26c281;
  --danger: #ff5d6c;
  --c-kaelte: #4aa8ff;
  --c-hitze: #ff7a3d;
  --c-bewegung: #3ddc84;
  --c-fasten: #f5c542;
  --c-atmung: #8b7bff;
  --c-regeneration: #2fc98f;
  --radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tab-h: 68px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #060a12; color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.ic { flex: none; display: block; }

#app {
  position: relative; max-width: 460px; margin: 0 auto; min-height: 100%; min-height: 100dvh;
  background: var(--bg); overflow-x: hidden;
}
@media (min-width: 520px) {
  #app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .6); }
}

.screen { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 18px) 20px calc(var(--safe-b) + 24px); animation: fadeIn .35s ease; }
.screen.with-tabs { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Hintergrund mit Bergen ── */
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 560px; background: url(/img/hero.jpg) center 30% / cover no-repeat; z-index: 0; pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,17,30,.5) 0%, rgba(10,17,30,.1) 28%, rgba(10,17,30,.25) 60%, var(--bg) 100%); }
.hero-bg.tall { height: 100%; background-size: 100% auto; background-position: center top; background-color: var(--bg); }
.hero-bg.tall::after { background: linear-gradient(to bottom, rgba(10,17,30,.5), rgba(10,17,30,.05) 30%, rgba(10,17,30,0) 55%, rgba(10,17,30,.6) 68%, var(--bg) 80%); }
.rel { position: relative; z-index: 1; }

/* ── Brand ── */
.brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.brand .logo { width: 64px; height: 40px; color: #fff; }
.wordmark { font-weight: 500; letter-spacing: .5em; font-size: 30px; margin-right: -.5em; }
.claim { font-size: 21px; text-align: center; line-height: 1.3; font-weight: 400; color: #f3f5f9; }

/* ── Buttons ── */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border-radius: 999px; font-weight: 600; font-size: 17px; transition: transform .12s, opacity .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-light { background: #f4f1ea; color: #0c1322; }
.btn-primary { background: linear-gradient(180deg, #4b95ff, var(--primary-2)); color: #fff; box-shadow: 0 8px 24px rgba(42, 111, 240, .35); }
.btn-soft { background: var(--primary-soft); color: #0c1a33; }
.btn-ghost { background: var(--card); border: 1px solid var(--line-2); color: var(--text); }
.btn-danger { background: rgba(255, 93, 108, .12); color: var(--danger); border: 1px solid rgba(255, 93, 108, .3); }
.link { color: #7fb3ff; font-size: 14px; text-align: center; padding: 10px; display: block; width: 100%; }
.btn-sm { height: 40px; font-size: 15px; padding: 0 18px; width: auto; }

/* ── Topbar ── */
.topbar { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); }
.icon-btn:active { background: var(--card); }
.progress { flex: 1; height: 6px; background: var(--card-2); border-radius: 99px; margin: 0 14px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .4s; }
.step-count { color: var(--muted); font-size: 14px; min-width: 32px; text-align: right; }

/* ── Onboarding ── */
.ob-title { font-size: 27px; font-weight: 700; line-height: 1.2; margin: 14px 0 6px; }
.ob-sub { color: var(--muted); margin-bottom: 22px; }
.options { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1.5px solid transparent; text-align: left; transition: border-color .15s, background .15s; }
.opt .opt-ic { width: 30px; display: grid; place-items: center; }
.opt .opt-label { flex: 1; font-size: 16px; }
.opt .opt-label small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.opt .radio { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--dim); display: grid; place-items: center; color: #fff; flex: none; }
.opt.on { border-color: var(--primary); background: linear-gradient(180deg, rgba(61, 139, 255, .12), rgba(61, 139, 255, .05)); }
.opt.on .radio { background: var(--primary); border-color: var(--primary); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip { min-width: 0; padding: 14px 12px; border-radius: 14px; background: var(--card); border: 1.5px solid transparent; text-align: left; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.chip.on { border-color: var(--primary); background: rgba(61, 139, 255, .1); }
.chip .chk { margin-left: auto; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--dim); display: grid; place-items: center; flex: none; }
.chip.on .chk { background: var(--primary); border-color: var(--primary); }
.spacer { flex: 1; min-height: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; color: var(--muted); }
.field input { height: 54px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); padding: 0 16px; font-size: 17px; outline: none; }
.field input:focus { border-color: var(--primary); }
.field input[type=time] { font-size: 28px; height: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin: 4px 0 8px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--card); text-align: left; margin-top: 14px; font-size: 14px; color: var(--muted); }
.check-row .chk { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--dim); display: grid; place-items: center; flex: none; margin-top: 1px; }
.check-row.on .chk { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Level-Karten ── */
.level-card { padding: 16px; border-radius: 16px; background: var(--card); border: 1.5px solid transparent; text-align: left; display: flex; gap: 14px; align-items: center; }
.level-card.on { border-color: var(--primary); background: rgba(61, 139, 255, .1); }
.level-bars { display: flex; gap: 3px; align-items: flex-end; height: 26px; width: 26px; flex: none; }
.level-bars i { flex: 1; background: var(--dim); border-radius: 2px; }
.level-bars i.f { background: var(--primary); }
.level-card b { display: block; font-size: 17px; }
.level-card span { color: var(--muted); font-size: 14px; }

/* ── Tabbar ── */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(10, 16, 28, .88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); display: flex; z-index: 50; }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--dim); }
.tabbar button.on { color: var(--primary); }

/* ── Heute ── */
.greet { text-align: center; margin: 22px 0 6px; }
.greet h1 { font-size: 32px; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.greet p { color: #d5dbe6; font-size: 16px; margin-top: 6px; }
.glass { background: linear-gradient(180deg, rgba(24, 34, 54, .55), rgba(14, 22, 38, .8)); border: 1px solid var(--line-2); border-radius: 26px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.reveal-card { margin-top: 150px; padding: 22px 18px 24px; text-align: center; }
.reveal-card h2 { font-size: 22px; font-weight: 600; line-height: 1.25; margin-top: 8px; }
.mood-q { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1.5px solid transparent; font-size: 12px; color: var(--muted); }
.mood .face { font-size: 30px; line-height: 1; filter: grayscale(.2); }
.mood.on { border-color: var(--primary); background: rgba(61, 139, 255, .14); color: var(--text); }
.reveal-btn-wrap { position: relative; margin-top: 22px; }
.reveal-btn { height: 66px; font-size: 22px; letter-spacing: .12em; font-weight: 700; border-radius: 999px; width: 100%; background: radial-gradient(120% 140% at 50% 0%, #6fb0ff, #2f74f0 60%, #2159d8); color: #fff; box-shadow: 0 0 0 1px rgba(160, 200, 255, .35) inset, 0 10px 40px rgba(61, 139, 255, .55); position: relative; overflow: hidden; }
.reveal-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.reveal-btn[disabled] { filter: grayscale(.6) brightness(.7); box-shadow: none; }

/* ── Würfel ── */
.dice-stage { perspective: 700px; height: 190px; display: grid; place-items: center; margin: -120px auto 10px; position: relative; }
.dice-stage::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(120, 180, 255, .55), rgba(61, 139, 255, .15) 45%, transparent 70%); filter: blur(6px); animation: pulse 3s ease-in-out infinite; }
.rays { position: absolute; width: 300px; height: 300px; background: repeating-conic-gradient(from 0deg, rgba(160,200,255,.14) 0 2deg, transparent 2deg 14deg); border-radius: 50%; mask: radial-gradient(circle, transparent 30%, #000 45%, transparent 70%); -webkit-mask: radial-gradient(circle, transparent 30%, #000 45%, transparent 70%); animation: spin 40s linear infinite; }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes spin { to { transform: rotate(360deg); } }
.dice-lift { width: 120px; height: 120px; transform-style: preserve-3d; }
.dice { width: 120px; height: 120px; position: relative; transform-style: preserve-3d; transform: rotateX(-28deg) rotateY(38deg); }
.dice.idle { animation: idle 8s ease-in-out infinite; }
@keyframes idle { 0%, 100% { transform: rotateX(-28deg) rotateY(38deg); } 50% { transform: rotateX(-20deg) rotateY(52deg); } }
.dice-stage.landed::before { background: radial-gradient(circle, color-mix(in srgb, var(--wc) 70%, transparent), color-mix(in srgb, var(--wc) 20%, transparent) 45%, transparent 70%); animation: burst .9s ease-out; }
@keyframes burst { from { transform: scale(.6); opacity: .4; } 60% { transform: scale(1.25); opacity: 1; } to { transform: scale(1.1); } }
.dice-stage.landed .rays { background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--wc) 35%, transparent) 0 2deg, transparent 2deg 14deg); }
.face-d.win { background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--wc) 30%, #fff)); box-shadow: inset 0 0 0 2px #fff, inset 0 0 30px color-mix(in srgb, var(--wc) 50%, transparent), 0 0 50px var(--wc); }
.face-d.win .ic { animation: iconpop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes iconpop { from { transform: scale(.5); } }
.dice-result { color: var(--text); font-size: 26px; font-weight: 700; }
.face-d { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(240, 247, 255, .96), rgba(190, 215, 250, .9)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), inset 0 0 30px rgba(120, 170, 255, .45), 0 0 40px rgba(120, 180, 255, .3); color: #13213a; backface-visibility: hidden; }
.face-d .ic { width: 50px; height: 50px; }
.face-d.f1 { transform: translateZ(60px); } .face-d.f2 { transform: rotateY(90deg) translateZ(60px); }
.face-d.f3 { transform: rotateY(180deg) translateZ(60px); } .face-d.f4 { transform: rotateY(-90deg) translateZ(60px); }
.face-d.f5 { transform: rotateX(90deg) translateZ(60px); } .face-d.f6 { transform: rotateX(-90deg) translateZ(60px); }
.face-d.f1 .ic { color: #1c62c9; } .face-d.f2 .ic { color: #d6591f; } .face-d.f3 .ic { color: #1b9a58; }
.face-d.f4 .ic { color: #b88a10; } .face-d.f5 .ic { color: #5a49d6; } .face-d.f6 .ic { color: #14875d; }
.flash { position: fixed; inset: 0; background: radial-gradient(circle at 50% 45%, #fff, rgba(180, 210, 255, .6) 30%, transparent 70%); opacity: 0; pointer-events: none; z-index: 90; }
.flash.go { animation: flash .7s ease-out; }
@keyframes flash { 30% { opacity: 1; } 100% { opacity: 0; } }

/* ── Karten allgemein ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.section-title { font-size: 19px; font-weight: 700; margin: 26px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.section-title small { font-size: 13px; color: var(--muted); font-weight: 400; }
.today-card { margin-top: 160px; padding: 20px; }
.cat-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--cc) 16%, transparent); color: var(--cc); }
.today-card h2 { font-size: 26px; margin-top: 12px; }
.today-card .sub { color: var(--muted); margin-top: 2px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.gap { gap: 12px; }
.mt { margin-top: 16px; } .mt-s { margin-top: 10px; } .mt-l { margin-top: 26px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.center { text-align: center; }

/* ── Weekly ── */
.weekly { padding: 18px; position: relative; overflow: hidden; }
.weekly::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cc) 30%, transparent), transparent 70%); }
.weekly h3 { font-size: 18px; margin-top: 10px; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.wd .dot { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: transparent; color: #fff; }
.wd.on .dot { background: var(--cc); border-color: var(--cc); color: #0a111e; }
.wd.today .dot { border-color: var(--cc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc) 25%, transparent); }
.wd.future { opacity: .35; pointer-events: none; }
.weekly-lock { display: flex; align-items: center; gap: 14px; }
.weekly-lock .gift { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #3d8bff, #7a5cff); color: #fff; flex: none; }

/* ── Challenge-Detail ── */
.detail-hero { margin: calc(-1 * (var(--safe-t) + 18px)) -20px 0; padding: calc(var(--safe-t) + 18px) 20px 36px; position: relative; overflow: hidden; background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--cc) 40%, #0b1424), #0b1424 75%); text-align: center; }
.detail-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(to bottom, transparent, var(--bg)); }
.detail-hero .kicker { color: #e5eaf2; font-size: 18px; font-weight: 600; }
.hero-icon { width: 110px; height: 110px; margin: 22px auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle, color-mix(in srgb, var(--cc) 60%, transparent), transparent 70%); filter: drop-shadow(0 0 20px var(--cc)); }
.hero-icon .ic { width: 70px; height: 70px; stroke-width: 1.6; }
.combo-icons { display: flex; justify-content: center; gap: 12px; margin: 22px 0 16px; }
.combo-icons span { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: color-mix(in srgb, var(--c) 28%, transparent); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 40%, transparent); }
.detail-hero h1 { font-size: 30px; font-weight: 700; }
.detail-hero .sub { color: #c9d2e0; font-size: 17px; margin-top: 2px; }
.level-tag { display: inline-block; margin-top: 12px; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.1); color: #dfe6f1; letter-spacing: .03em; }
.facts { padding: 6px 16px; position: relative; z-index: 2; margin-top: -8px; }
.fact { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact .ic { color: var(--primary); margin-top: 2px; }
.fact .ic.warm { color: var(--c-hitze); }
.fact b { display: block; font-size: 15px; font-weight: 600; }
.fact span { color: #c8d0dc; font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 40px; color: #d4dbe6; font-size: 15px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--cc) 20%, transparent); color: var(--cc); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.warn { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 122, 61, .08); border: 1px solid rgba(255, 122, 61, .25); color: #ffc7a8; font-size: 14px; }
.warn .ic { color: var(--c-hitze); margin-top: 1px; }
.load-dots { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 6px; }
.load-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.load-dots i.f { background: var(--cc); }
.sticky-cta { position: sticky; bottom: calc(var(--safe-b) + 12px); margin-top: 20px; z-index: 5; }
.sticky-cta .btn { box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 8px 24px rgba(42, 111, 240, .35); }

/* ── Timer ── */
.timer-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring { position: relative; width: 270px; height: 270px; margin: 20px auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--card-2); }
.ring .bar { stroke: var(--cc); transition: stroke-dashoffset .3s linear; }
.ring .inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .time { font-size: 58px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ring .phase { color: var(--muted); font-size: 16px; margin-top: 4px; min-height: 22px; }
.breath-orb { position: absolute; inset: 40px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cc) 45%, transparent), transparent 70%); transform: scale(.55); transition: transform 1s ease-in-out; }
.timer-ctrl { display: flex; gap: 12px; width: 100%; margin-top: 18px; }
.timer-ctrl .btn { flex: 1; }

/* ── Erledigt ── */
.done-check { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; margin: 30px auto 18px; color: #fff; box-shadow: 0 0 0 10px rgba(38, 194, 129, .12), 0 10px 40px rgba(38, 194, 129, .4); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.done-check .ic { width: 44px; height: 44px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.big-title { font-size: 28px; font-weight: 700; text-align: center; }
.points-card { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.medal { width: 52px; height: 58px; }
.points-card .plus { font-size: 30px; font-weight: 300; }
.points-card b { font-size: 30px; display: block; line-height: 1; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { display: flex; gap: 12px; align-items: center; padding: 16px; }
.stat .ic { width: 30px; height: 30px; color: var(--primary); }
.ic.fire { color: #ff6a2b; } .ic.blue { color: var(--primary); } .ic.gold { color: var(--c-fasten); }
.stat b { font-size: 26px; display: block; line-height: 1.05; }
.stat span { color: var(--muted); font-size: 13px; line-height: 1.2; display: block; }
.fb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb { padding: 12px 6px; border-radius: 14px; background: var(--card); border: 1.5px solid transparent; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fb .e { font-size: 24px; }
.fb.on { border-color: var(--primary); background: rgba(61, 139, 255, .12); }

/* ── Balance ── */
.balance { display: flex; flex-direction: column; gap: 14px; }
.bal-row { display: grid; grid-template-columns: 24px 110px 1fr; gap: 10px; align-items: center; font-size: 15px; }
.bal-row .ic { color: var(--cc); width: 20px; height: 20px; }
.bal-bar { height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.bal-bar i { display: block; height: 100%; border-radius: 99px; background: var(--cc); transition: width .8s cubic-bezier(.2, .8, .2, 1); }

/* ── Statistik ── */
.page-title { font-size: 30px; font-weight: 700; margin: 10px 0 18px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dh { font-size: 11px; color: var(--dim); text-align: center; }
.cal .c { aspect-ratio: 1; border-radius: 8px; background: var(--card-2); display: grid; place-items: center; position: relative; }
.cal .c.done { background: color-mix(in srgb, var(--cc) 75%, #000); }
.cal .c.skipped { background: transparent; border: 1.5px dashed var(--line-2); }
.cal .c.open { background: transparent; border: 1.5px solid color-mix(in srgb, var(--cc) 60%, transparent); }
.cal .c.today { box-shadow: 0 0 0 2px var(--primary); }
.cal .c.combo::after { content: "✦"; font-size: 10px; color: #fff; }
.cal .c.empty { background: transparent; }
.hist { display: flex; flex-direction: column; }
.hist-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist-item:last-child { border-bottom: 0; }
.hist-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); flex: none; }
.hist-item .t { flex: 1; min-width: 0; }
.hist-item b { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-item span { font-size: 13px; color: var(--muted); }
.hist-item .pts { font-size: 14px; color: var(--c-fasten); font-weight: 600; }
.empty-state { text-align: center; color: var(--muted); padding: 30px 10px; }

/* ── Wissen ── */
.art-list { display: flex; flex-direction: column; gap: 10px; }
.art { display: flex; gap: 14px; align-items: center; padding: 14px 16px; text-align: left; width: 100%; }
.art .ai { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); flex: none; }
.art .t { flex: 1; }
.art b { display: block; font-size: 16px; }
.art span { font-size: 14px; color: var(--muted); }
.art > .ic:last-child { color: var(--dim); }
.article h1 { font-size: 28px; margin: 12px 0 6px; }
.article h3 { font-size: 18px; margin: 22px 0 8px; }
.article p { color: #cfd6e2; font-size: 16px; line-height: 1.6; }
.article ul { padding-left: 20px; color: #cfd6e2; line-height: 1.6; margin: 8px 0; }
.article li { margin: 6px 0; }
.article .warn { margin-top: 20px; }
.art-head { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 16%, transparent); margin-top: 6px; }
.art-head .ic { width: 34px; height: 34px; }

/* ── Profil ── */
.profile-head { display: flex; gap: 16px; align-items: center; margin: 6px 0 20px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; background: linear-gradient(145deg, #3d8bff, #7a5cff); flex: none; }
.profile-head b { font-size: 22px; display: block; }
.list { padding: 0; overflow: hidden; }
.li { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.li:last-child { border-bottom: 0; }
.li .ic { color: var(--primary); }
.li .t { flex: 1; }
.li .v { color: var(--muted); font-size: 14px; text-align: right; max-width: 50%; }
.toggle { width: 50px; height: 30px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line-2); position: relative; flex: none; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle.on { background: var(--ok); border-color: var(--ok); }
.toggle.on::after { transform: translateX(20px); }

/* ── Sheet / Modal ── */
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fadeBg .2s; }
@keyframes fadeBg { from { opacity: 0; } }
.sheet { width: 100%; max-width: 460px; max-height: 88dvh; overflow-y: auto; background: var(--bg-2); border-radius: 26px 26px 0 0; padding: 12px 20px calc(var(--safe-b) + 22px); animation: up .3s cubic-bezier(.2, .9, .3, 1); border-top: 1px solid var(--line-2); }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 16px; }
.sheet h3 { font-size: 21px; margin-bottom: 6px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); transform: translateX(-50%); background: #22314d; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: fadeIn .25s; max-width: calc(100% - 40px); }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(61, 139, 255, .2), rgba(122, 92, 255, .2)); border: 1px solid rgba(122, 140, 255, .35); margin-top: 14px; }
.banner .t { flex: 1; font-size: 14px; }
.banner b { display: block; font-size: 15px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--primary); animation: spin .8s linear infinite; margin: 40vh auto; }
.foot-legal { font-size: 12px; color: var(--dim); text-align: center; margin-top: 24px; line-height: 1.5; }
.test-badge { position: fixed; top: calc(var(--safe-t) + 4px); left: 50%; transform: translateX(-50%); z-index: 300; font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 3px 10px; border-radius: 99px; background: #f5c542; color: #1a1300; pointer-events: none; }
.reveal-card > .mt, .reveal-card > .reveal-btn-wrap, .reveal-card > .note { transition: opacity .4s; }
.reveal-card.is-rolling > .mt, .reveal-card.is-rolling > .reveal-btn-wrap, .reveal-card.is-rolling > .note { opacity: 0; pointer-events: none; }

/* ── Community ── */
.tabbar button { position: relative; }
.tab-badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.rules { padding: 0; overflow: hidden; }
.rules-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 16px; text-align: left; color: var(--text); }
.rules-head .ic:first-child { color: var(--c-fasten); }
.rules-head b { flex: 1; font-size: 16px; }
.rules-head .ic:last-child { color: var(--dim); transform: rotate(90deg); transition: transform .2s; }
.rules.closed .rules-head .ic:last-child { transform: none; }
.rules.closed .rules-body { display: none; }
.rules-body { padding: 0 16px 8px; }
.rule { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: #c8d0dc; }
.rule > span { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(61, 139, 255, .15); color: var(--primary); font-weight: 700; font-size: 13px; }
.rule b { color: var(--text); }
.rule > div > b:first-child { display: block; margin-bottom: 2px; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.hist-item .rank { width: 18px; color: var(--dim); font-weight: 700; font-size: 14px; text-align: center; }
.hist-item.me b { color: var(--primary-soft); }
.share-card { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; margin-bottom: 10px; border-color: color-mix(in srgb, var(--cc) 35%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--cc) 12%, var(--card)), var(--card)); }
.share-card .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.share-card .t .ic { display: inline-block; vertical-align: -2px; }
.share-card b { font-size: 16px; }
.share-st { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--muted); flex: none; }
.share-st.open { background: var(--danger); color: #fff; }
.share-st.done { background: rgba(38, 194, 129, .18); color: var(--ok); }
.inp { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg-2); padding: 0 14px; font-size: 16px; outline: none; }
.inp:focus { border-color: var(--primary); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--card-2); margin: 3px 2px; }
.pill button { width: 20px; height: 20px; border-radius: 50%; color: var(--muted); }
/* ── Hormesis-Info im Onboarding ── */
.dose-curve { width: 100%; height: auto; display: block; }
.info-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.info-steps > div { background: var(--card); border-radius: 14px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.info-steps span { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-bottom: 4px; }
.info-steps b { font-size: 14px; }
.info-steps small { font-size: 12px; color: var(--muted); }
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #cfd6e2; line-height: 1.45; }
.info-list .ic { color: var(--primary); margin-top: 1px; }
