/* Fortis Coaching – Design: Gold #A68F02 · Beige #dbbd86 · Schwarz · Weiss */
:root {
  --gold: #A68F02; --beige: #dbbd86; --bg: #dbbd86; --text: #14110a; --muted: rgba(20, 17, 10, .6);
  --card: rgba(255, 255, 255, .62); --line: rgba(120, 100, 0, .28); --accent: #7a6700; --sheet: rgba(255, 255, 255, .96);
  --modal: #fffaf0; --sheet-solid: #fffdf8; --inputbg: rgba(255, 255, 255, .8); --danger: #b3261e; --ok: #2e7d32; --ringbg: rgba(0, 0, 0, .1);
  --shadow: 0 6px 18px rgba(70, 50, 0, .13); --logo-op: .16; --mbase: rgba(0, 0, 0, .16); --water: #3b9be0;
  --radius: 18px; color-scheme: light;
}
[data-theme=dark] {
  --bg: #14110a; --text: #f6efe0; --muted: rgba(246, 239, 224, .62); --card: rgba(255, 255, 255, .07); --line: rgba(166, 143, 2, .42);
  --accent: #dcc04a; --sheet: rgba(20, 17, 10, .97); --sheet-solid: #181409; --modal: #221e14; --inputbg: rgba(255, 255, 255, .08); --danger: #ff6b5e; --ok: #66bb6a;
  --ringbg: rgba(255, 255, 255, .13); --shadow: 0 6px 18px rgba(0, 0, 0, .45); --logo-op: .09; --mbase: rgba(255, 255, 255, .2); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: Aptos, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif; font-size: 16px; line-height: 1.4; color: var(--text); background: var(--bg); overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 8px 0; }
[hidden] { display: none !important; }
.ic { width: 24px; height: 24px; flex: none; vertical-align: middle; }
.logo { display: block; width: 100%; height: auto; }
.note { font-size: 14px; font-style: italic; color: var(--muted); }
.note.err, .err { color: var(--danger); font-style: italic; min-height: 20px; }
.center { text-align: center; } .pad { padding: 22px 8px; } .pre { white-space: pre-wrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Start & Anmeldung ---------- */
#splash { position: fixed; inset: 0; z-index: 500; background: var(--beige); display: grid; place-items: center; transition: opacity .5s; }
#splash.out { opacity: 0; pointer-events: none; }
#splash .logo { width: min(62vw, 300px); animation: pop 1.1s cubic-bezier(.2, .8, .2, 1) both; filter: drop-shadow(0 8px 20px rgba(80, 60, 0, .25)); }
@keyframes pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
#auth { position: fixed; inset: 0; z-index: 400; background: var(--beige); color: #14110a; overflow: auto; display: flex; }
.auth-wrap { width: 100%; max-width: 440px; margin: auto; padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); }
.auth-logo { width: 116px; margin: 0 auto 10px; }
.auth-wrap h2 { text-align: center; color: #14110a; margin: 4px 0 6px; }
.auth-wrap p { text-align: center; }
.auth-wrap .note { color: rgba(20, 17, 10, .66); text-align: center; }
.auth-wrap .note.err, .auth-wrap .err { color: #a3190f; font-weight: 600; }
.auth-table { background: rgba(255, 255, 255, .5); border: 1px solid rgba(120, 100, 0, .3); border-radius: 18px; padding: 4px 14px; margin: 10px 0; }
.arow { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); transition: opacity .2s; }
.arow:last-child { border: 0; } .arow.dim { opacity: .38; } .arow label { font-weight: 600; font-size: 15px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 12px; border: 1.5px solid rgba(0, 0, 0, .18); background: #fff; color: #222; font-weight: 600; width: 100%; }
.auth-wrap .inp { background: #fff; color: #14110a; border-color: rgba(120, 100, 0, .35); }
.code-in { text-align: center; font-size: 28px; letter-spacing: 12px; font-weight: 700; margin: 12px 0 4px; }
.pwf { position: relative; margin: 8px 0; } .pwf .inp { padding-right: 48px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--accent); }
.link { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--accent); font-size: 14px; font-style: italic; text-decoration: underline; padding: 8px; }
.auth-wrap .link { color: #5a4a00; } .link.hot { color: var(--danger); font-weight: 700; }
.chk { display: flex; align-items: center; gap: 10px; margin: 10px 2px; font-size: 16px; }
.chk input { width: 22px; height: 22px; accent-color: var(--gold); }
.btn-row { display: flex; gap: 12px; } .btn-row .btn { flex: 1; }
.bio { margin-top: 4px; }
.auth-in .auth-wrap { padding: 4px 0; } .auth-in .auth-logo { display: none; }
.sheet .auth-wrap h2, .sheet .auth-wrap { color: var(--text); } .sheet .auth-wrap .note { color: var(--muted); }

/* ---------- Grundgerüst ---------- */
#main { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.topbar { flex: none; background: var(--gold); color: #fff; min-height: calc(56px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); display: grid; grid-template-columns: 56px 1fr minmax(56px, auto); align-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); z-index: 5; }
.tb-title { font-size: 24px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; letter-spacing: .2px; }
.overlay .tb-title { font-size: 20px; }
.tb-right { display: flex; justify-content: flex-end; align-items: center; padding-right: 4px; }
.tb-btn { position: relative; width: 52px; height: 52px; border: 0; background: none; color: #fff; display: grid; place-items: center; border-radius: 50%; }
.tb-btn:active { background: rgba(255, 255, 255, .18); }
.tb-btn .ic { width: 26px; height: 26px; }
.gear-ic { display: grid; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.tb-btn.spin .gear-ic { transform: rotate(360deg); }
.dot-badge, .badge-n { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #e53935; color: #fff; font: 700 11px/18px inherit; text-align: center; box-shadow: 0 0 0 2px var(--gold); }
.dot-badge { position: absolute; top: 6px; right: 6px; } .badge-n { box-shadow: none; font-size: 12px; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px; }
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.bg-logo { position: absolute; inset: 0; background: url(logo.png) center 46% / min(82vw, 440px) no-repeat; opacity: var(--logo-op); pointer-events: none; }
.viewport { position: absolute; inset: 0; overflow: hidden; }
.track { display: flex; height: 100%; width: 100%; transition: transform .38s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.page { flex: 0 0 100%; height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.page-in { max-width: 640px; margin: 0 auto; padding: 16px 16px 28px; }
.bottombar { flex: none; background: #000; display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(166, 143, 2, .5); z-index: 5; }
.nb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; color: #fff; opacity: .72; padding: 6px 2px; position: relative; transition: transform .2s, opacity .2s; min-width: 0; }
.nb span { font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.nb .ic { width: 25px; height: 25px; }
.nb.on { opacity: 1; transform: scale(1.06); } .nb.on span { font-weight: 800; } .nb.on .ic { stroke-width: 2.6; }
.nb.on::after { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 2px; background: var(--gold); }
.side-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 44px; height: 70px; border: 0; background: none; color: #000; font-size: 54px; line-height: 1; font-weight: 300; }
[data-theme=dark] .side-arrow { color: #f6efe0; }
.side-arrow.l { left: 4px; } .side-arrow.r { right: 4px; } .side-arrow:hover { color: var(--gold); }
@media (hover:hover) and (pointer:fine) { .side-arrow { display: block; } }

/* ---------- Bausteine ---------- */
.card { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 12px; box-shadow: var(--shadow); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--text); }
.card.flat { box-shadow: none; } .card.center { text-align: center; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-h h3 { display: flex; align-items: center; gap: 8px; } .card-h h3 .ic { color: var(--gold); width: 22px; height: 22px; }
.pill { display: inline-block; background: rgba(166, 143, 2, .18); color: var(--accent); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.pill.ok { background: rgba(46, 125, 50, .18); color: var(--ok); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 18px; margin: 8px 0; border: 2px solid var(--gold); border-radius: 14px; background: var(--gold); color: #fff; font-weight: 700; font-size: 16px; transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.98); } .btn:hover { filter: brightness(1.06); } .btn:disabled { opacity: .45; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--accent); } .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost.danger-t, .danger-t { color: var(--danger); border-color: var(--danger); } .btn.sm { min-height: 42px; font-size: 14px; }
.btn .ic { width: 20px; height: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 20px; border: 1.5px solid var(--gold); background: transparent; color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.chip.gold { background: var(--gold); color: #fff; } .chip .ic { width: 17px; height: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; } .chips.scrollx { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.ibtn { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; color: var(--accent); display: grid; place-items: center; }
.ibtn:active { background: var(--ringbg); } .ibtn.gold { color: var(--gold); } .ibtn .ic { width: 24px; height: 24px; }
.folder-plus { position: relative; } .folder-plus .ic { fill: var(--gold); width: 28px; height: 28px; }
.folder-plus i { position: absolute; font-style: normal; color: #fff; font-weight: 800; font-size: 15px; line-height: 1; top: 50%; left: 50%; transform: translate(-50%, -38%); }
.inp { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--inputbg); color: var(--text); margin: 4px 0; }
textarea.inp { padding: 10px 14px; resize: vertical; min-height: 80px; }
.inp:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.lbl { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 2px; color: var(--accent); }
.lockfield { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; margin: 10px 0 2px; }
.stat3 b { display: block; font-size: 19px; } .stat3 small, .tile small, .kc-side small, .pf-sum small { display: block; font-size: 12.5px; color: var(--muted); }
.bar { height: 8px; border-radius: 5px; background: var(--ringbg); overflow: hidden; margin: 8px 0; } .bar i { display: block; height: 100%; background: var(--gold); border-radius: 5px; transition: width .5s; } .bar.big { height: 12px; }
.li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); } .li:first-of-type { border-top: 0; } .li.slim { padding: 4px 0; }
.li-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(166, 143, 2, .2); color: var(--accent); flex: none; }
.li-i.physio { background: rgba(46, 125, 50, .18); color: var(--ok); }
.li-t { flex: 1; min-width: 0; } .li-t b, .li-t small { display: block; } .li-t small { color: var(--muted); font-size: 13px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 20px 2px 8px; } .sec-h h3 { font-size: 20px; } .sec-r { display: flex; gap: 2px; }
.sw { flex: none; width: 52px; height: 30px; border-radius: 15px; background: rgba(0, 0, 0, .28); border: 0; position: relative; transition: background .2s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sw.on { background: var(--gold); } .sw.on i { left: 25px; } .sw:disabled { opacity: .4; }
.seg { display: inline-flex; border: 2px solid var(--gold); border-radius: 12px; overflow: hidden; background: transparent; }
.seg button { padding: 9px 14px; border: 0; background: transparent; color: var(--text); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.seg button.on { background: var(--gold); color: #fff; } .seg.big { display: flex; width: 100%; } .seg.big button { flex: 1; padding: 11px 6px; font-size: 15px; }
.seg.sticky { position: sticky; top: 0; z-index: 4; margin-bottom: 12px; background: var(--bg); }
.seg .ic { width: 20px; height: 20px; }
.radio { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.radio button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--inputbg); }
.radio button i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gold); } .radio button.on { border-color: var(--gold); background: rgba(166, 143, 2, .14); } .radio button.on i { background: radial-gradient(var(--gold) 45%, transparent 50%); }
.menu { display: flex; flex-direction: column; gap: 2px; margin: -6px -6px; }
.mi { display: flex; align-items: center; gap: 14px; padding: 14px 10px; border: 0; background: none; text-align: left; font-weight: 600; font-size: 16px; border-radius: 12px; } .mi:active { background: var(--ringbg); } .mi .ic { color: var(--gold); } .mi.danger, .mi.danger .ic { color: var(--danger); }

/* Tiles, Ringe */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; } .tiles.two2 { grid-template-columns: 1fr 1fr; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); text-align: center; color: var(--text); backdrop-filter: blur(6px); }
.tile .t-top { display: flex; align-items: center; gap: 5px; color: var(--accent); font-size: 13.5px; } .tile .t-top .ic { width: 18px; height: 18px; }
.tile strong.mid { font-size: 27px; line-height: 1.1; }
.ringw { position: relative; margin: 6px auto; } .ringw svg { display: block; } .ringfg { transition: stroke-dashoffset .8s cubic-bezier(.3, .8, .3, 1); }
.ringc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.ringc strong { font-size: 17px; } .ringc strong.big { font-size: 32px; } .ringc strong.huge { font-size: 40px; } .ringc small { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Home ---------- */
.hello { color: #fff; font-size: 24px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); margin: 2px 2px 0; }
[data-theme=dark] .hello { text-shadow: none; }
.quote { margin: 4px 2px 14px; font-size: 14px; font-style: italic; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
[data-theme=dark] .quote { color: var(--muted); text-shadow: none; }
.weekrow { display: flex; justify-content: space-between; margin: 6px 0 4px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.wd i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; } .wd i .ic { width: 18px; height: 18px; stroke-width: 3; }
.wd.done i { background: var(--gold); border-color: var(--gold); } .wd.today i { border-color: var(--accent); border-width: 3px; } .wd.today { color: var(--text); font-weight: 700; }
.action { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px 10px; } .action .ic { width: 30px; height: 30px; color: var(--gold); } .action small { color: var(--muted); font-size: 13px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.badge { text-align: center; padding: 8px 4px; border-radius: 14px; background: var(--ringbg); opacity: .4; filter: grayscale(1); } .badge.got { opacity: 1; filter: none; background: rgba(166, 143, 2, .16); }
.badge span { font-size: 28px; display: block; } .badge small { font-size: 12px; font-weight: 700; display: block; line-height: 1.15; } .badge em { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.15; }
.foot { margin-top: 18px; }

/* ---------- Training ---------- */
.big-action { display: flex; align-items: center; gap: 14px; font-size: 17px; padding: 12px 14px; } .big-action.ghostc { box-shadow: none; }
.plus-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; flex: none; } .plus-ic .ic { width: 22px; height: 22px; }
.resume { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--gold), #c4a90a); color: #fff; border: 0; } .resume small { display: block; opacity: .9; } .resume .ic { width: 30px; height: 30px; }
.folder { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.f-head { display: flex; align-items: center; padding-right: 4px; } .f-tgl { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px; border: 0; background: none; text-align: left; font-size: 17px; color: var(--text); }
.chev { width: 20px; height: 20px; transition: transform .2s; color: var(--gold); margin-left: auto; } .f-tgl .chev { margin: 0; } .chev.rot { transform: rotate(90deg); }
.f-body { padding: 0 12px 8px; } .plan { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.plan-main { flex: 1; min-width: 0; text-align: left; border: 0; background: none; color: var(--text); } .plan-main b, .plan-main small { display: block; } .plan-main small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist { display: flex; flex-direction: column; gap: 6px; } .hist small { display: block; color: var(--muted); } .hs { display: flex; gap: 14px; font-size: 14px; color: var(--accent); flex-wrap: wrap; } .hs span { display: inline-flex; align-items: center; gap: 4px; } .hs .ic { width: 16px; height: 16px; }
.prc { color: var(--gold); display: inline-flex; align-items: center; gap: 3px; font-weight: 700; } .prc .ic { width: 16px; height: 16px; } .prc.big { font-size: 18px; justify-content: center; width: 100%; }
.exsum-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .ssum { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.stype { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; border: 0; background: var(--ringbg); color: var(--text); font-weight: 800; font-size: 15px; }
.stype.t-W { background: #e6a23c; color: #fff; } .stype.t-A { background: #d9534f; color: #fff; } .stype.t-D { background: #8e44ad; color: #fff; } .stype.t-B { background: #2c7be5; color: #fff; } .stype.t-X { background: var(--danger); color: #fff; } .stype.inl { height: 28px; min-width: 28px; vertical-align: middle; }
.rpe-b { font-size: 11px; font-weight: 800; color: var(--accent); font-style: normal; }
sup.rpe-b { margin-left: 2px; vertical-align: super; }

/* Übungsdatenbank */
.exdb-top { position: sticky; top: -14px; z-index: 3; background: var(--bg); margin: -14px -16px 6px; padding: 12px 16px 8px; }
.searchbar { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; background: var(--inputbg); border: 1.5px solid var(--line); } .searchbar .ic { color: var(--gold); } .searchbar input { flex: 1; min-height: 46px; background: none; border: 0; outline: 0; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 2px; } .filters select { min-height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--inputbg); padding: 0 10px; }
.exrow { display: flex; align-items: center; border-bottom: 1px solid var(--line); } .exrow.sel { background: rgba(166, 143, 2, .15); }
.ex-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 4px; border: 0; background: none; text-align: left; } .ex-t b, .ex-t small { display: block; } .ex-t small { color: var(--muted); font-size: 13px; } .ex-t { flex: 1; min-width: 0; }
.ex-chk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; flex: none; } .exrow.sel .ex-chk { background: var(--gold); color: #fff; } .ex-chk .ic { width: 16px; height: 16px; stroke-width: 3; }
.floatbar { position: sticky; bottom: -30px; margin: 10px -16px -30px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.muscle .mb * { fill: var(--mbase); } .m-p { fill: var(--gold); } .m-s { fill: var(--gold); opacity: .4; } .muscle { flex: none; }
.exd-fig { text-align: center; } .legend { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin-top: 6px; } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; } .lp { background: var(--gold); } .ls { background: var(--gold); opacity: .4; }
.exd a.btn { text-decoration: none; }

/* Workout */
.wo-stats { display: flex; justify-content: space-around; text-align: center; padding: 6px 0 12px; } .wo-stats small { display: block; color: var(--muted); font-size: 12.5px; } .wo-stats b { font-size: 20px; font-variant-numeric: tabular-nums; }
.wo-name { width: 100%; border: 0; background: none; font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 8px; border-bottom: 1.5px dashed var(--line); padding: 6px; }
.exc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 8px; margin-bottom: 14px; box-shadow: var(--shadow); }
.exc-h { display: flex; align-items: center; } .exc-t { flex: 1; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; min-width: 0; color: var(--accent); font-size: 17px; }
.note-in { width: 100%; border: 0; background: none; border-bottom: 1px dashed var(--line); font-size: 14px; font-style: italic; padding: 6px 2px; margin: 4px 0; outline: 0; } .exnote { margin: 2px 4px; }
.srow-h, .srow-s { display: grid; grid-template-columns: 50px 1fr 1fr 1fr 44px; gap: 6px; align-items: center; }
.srow-h { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; padding: 6px 0 2px; letter-spacing: .4px; }
.srow-s { padding: 4px 2px; border-radius: 12px; margin: 2px 0; transition: background .2s; } .srow-s.done { background: rgba(46, 125, 50, .17); }
.st-c { display: flex; align-items: center; justify-content: center; gap: 1px; }
.prev { border: 0; background: none; color: var(--muted); font-size: 14px; text-align: center; padding: 8px 0; }
.num { width: 100%; min-height: 40px; border-radius: 10px; border: 1.5px solid transparent; background: var(--ringbg); text-align: center; font-weight: 700; font-size: 17px; min-width: 0; } .num:focus { outline: 0; border-color: var(--gold); background: var(--inputbg); }
.srow-s.done .num { background: transparent; }
.chk-b { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--ringbg); color: transparent; display: grid; place-items: center; } .chk-b .ic { width: 22px; height: 22px; stroke-width: 3.2; } .chk-b.on { background: var(--ok); color: #fff; }
.add-set { width: 100%; margin-top: 6px; min-height: 40px; border: 0; border-radius: 10px; background: var(--ringbg); color: var(--text); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; } .add-set .ic { width: 18px; height: 18px; }
.add-ex { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; border: 2px dashed var(--gold); border-radius: var(--radius); background: transparent; color: var(--accent); font-weight: 700; font-size: 17px; margin: 4px 0 10px; } .add-ex .ic { background: var(--gold); color: #fff; border-radius: 50%; padding: 4px; width: 30px; height: 30px; }
.finish { border: 0; background: #fff; color: var(--gold); font-weight: 800; padding: 9px 16px; border-radius: 20px; margin: 0 10px 0 4px; font-size: 15px; }
.lg-row { display: flex; align-items: center; } .lg-sel { flex: 1; display: flex; align-items: center; gap: 14px; padding: 10px 6px; border: 0; background: none; text-align: left; border-radius: 12px; } .lg-sel.on { background: rgba(166, 143, 2, .16); }
.rest-root, #rest-root { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 90; pointer-events: none; display: flex; justify-content: center; }
.rest-card { pointer-events: auto; width: min(100%, 440px); background: #000; color: #fff; border: 1.5px solid var(--gold); border-radius: 22px; padding: 12px 16px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transform: translateY(160%); transition: transform .3s cubic-bezier(.3, .9, .3, 1); }
.rest-card.in { transform: none; } .rest-top { display: flex; justify-content: space-between; align-items: center; } .rest-top .ibtn { color: #fff; }
.rest-time { font-size: 46px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; color: var(--beige); } .rest-card .bar { background: rgba(255, 255, 255, .18); } .rest-btns { display: flex; gap: 8px; justify-content: center; margin-top: 4px; } .rest-card .chip { color: #fff; border-color: rgba(255, 255, 255, .5); } .rest-card .chip.gold { background: var(--gold); border-color: var(--gold); }
.rpe-face { font-size: 72px; text-align: center; line-height: 1.1; } .rpe-val { text-align: center; } .rpe-val b { font-size: 36px; } .rpe-val small { margin-left: 6px; color: var(--muted); }
.rpe-slider { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; } .rpe-slider input { flex: 1; accent-color: var(--gold); height: 34px; } .sm { font-size: 26px; } .rpe-ticks { display: flex; justify-content: space-between; margin: 0 38px; font-size: 11px; color: var(--muted); font-style: normal; } .rpe-ticks i { font-style: normal; width: 14px; text-align: center; }

/* ---------- Kalorien ---------- */
.datenav { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 12px; } .datelbl { border: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 22px; min-width: 170px; text-align: center; color: var(--text); } .datelbl b, .datelbl small { display: block; } .datelbl small { color: var(--muted); font-size: 12.5px; }
.datenav .ibtn { color: #fff; background: var(--gold); } [data-theme=dark] .datenav .ibtn { background: var(--gold); }
.kcal-row { display: flex; align-items: center; justify-content: space-between; } .kc-side { text-align: center; flex: 1; } .kc-side b { font-size: 22px; display: block; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; } .mc small { display: block; font-size: 12.5px; color: var(--muted); } .mc b { font-size: 13px; } .mbar { height: 7px; border-radius: 4px; background: var(--ringbg); overflow: hidden; margin: 4px 0; } .mbar i { display: block; height: 100%; border-radius: 4px; transition: width .5s; }
.meal-h { display: flex; align-items: center; gap: 12px; } .m-ic { font-size: 28px; } .m-t { flex: 1; } .m-t b, .m-t small { display: block; } .m-t small { color: var(--muted); font-size: 13px; }
.addb { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); } .addb .ic { width: 24px; height: 24px; }
.entry { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 10px 2px; margin-top: 8px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); } .entry small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; } .entry > b { white-space: nowrap; }
.glasses { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; } .gl-i { width: 38px; height: 44px; border: 0; background: none; color: var(--ringbg); filter: none; } [data-theme=dark] .gl-i { color: rgba(255, 255, 255, .2); } .gl-i .ic { width: 32px; height: 32px; fill: currentColor; } .gl-i.on { color: var(--water); }
.food-r { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; } .food-r small { display: block; color: var(--muted); font-size: 13px; } .food-r .ic { color: var(--gold); }
.pf-in { display: flex; align-items: center; justify-content: center; gap: 8px; } .pf-in .inp { width: 120px; text-align: center; font-size: 24px; font-weight: 800; } .pf-in .ibtn { background: var(--gold); color: #fff; }
.pf-sum { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin: 10px 0; } .pf-sum b { font-size: 20px; }

/* ---------- Schritte / Statistik ---------- */
.lvl { font-size: 17px; margin: 4px 0 0; } .tile.static { cursor: default; }
.hbar { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; } .hbar div { height: 12px; background: var(--ringbg); border-radius: 6px; overflow: hidden; } .hbar i { display: block; height: 100%; background: var(--gold); border-radius: 6px; } .hbar b { text-align: right; }
.heat { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 3px; } .hm { aspect-ratio: 1; border-radius: 4px; background: var(--ringbg); display: block; } .hm.l1 { background: rgba(166, 143, 2, .5); } .hm.l2 { background: rgba(166, 143, 2, .8); } .hm.l3 { background: var(--gold); } .hm.fut { opacity: .3; } .hm.today { outline: 2px solid var(--accent); }
.pr-row { display: flex; align-items: center; gap: 12px; } .pr-t { flex: 1; min-width: 0; } .pr-t b, .pr-t small { display: block; } .pr-t small { color: var(--muted); font-size: 13px; } .pr-v { text-align: right; } .pr-v b { font-size: 20px; display: block; color: var(--accent); }
.okc { color: var(--ok); font-weight: 700; } .errc { color: var(--danger); font-weight: 700; } .goal.done { border-color: var(--ok); }
.chart { width: 100%; height: auto; display: block; } .chart .gl { stroke: var(--ringbg); stroke-width: 1; } .chart .ax { fill: var(--muted); font-size: 9px; } .chart .ln { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; } .chart .area { fill: var(--gold); opacity: .16; } .chart .dot { fill: var(--gold); stroke: var(--modal); stroke-width: 1.5; } .chart .gline { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 3; } .chart .cbar { fill: var(--gold); opacity: .5; } .chart .cbar.hl { opacity: 1; } .chart .cbar.ok { fill: var(--ok); opacity: .9; }
.chart-empty { padding: 26px 8px; text-align: center; color: var(--muted); font-style: italic; font-size: 14px; }

/* ---------- Overlays, Einstellungen ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg); transform: translateX(100%); transition: transform .32s cubic-bezier(.3, .8, .3, 1); }
.overlay.in { transform: none; }
.overlay.sheet { transform: translateY(100%); background: var(--sheet); } .overlay.sheet.in { transform: none; }
.overlay.sheet.settings { transform: translateY(30px); opacity: 0; transition: transform .4s cubic-bezier(.3, .8, .3, 1), opacity .35s; } .overlay.sheet.settings.in { transform: none; opacity: 1; }
.overlay.sub { transform: translateX(100%); } .overlay.sub.in { transform: none; }
.ov-body { flex: 1; width: 100%; max-width: 680px; align-self: center; overflow-y: auto; padding: 14px 16px calc(30px + env(safe-area-inset-bottom)); }
.overlay.workout .ov-body { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.slist { display: flex; flex-direction: column; }
.srow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--accent); font-weight: 700; font-size: 17px; text-align: left; }
.srow:active:not(.static) { background: var(--ringbg); } .srow .si { color: var(--gold); display: grid; } .srow .si .ic { width: 28px; height: 28px; } .srow .sl { flex: 1; min-width: 0; } .srow .sl small { display: block; font-size: 13px; font-weight: 400; font-style: italic; color: var(--muted); }
.srow.static { cursor: default; } .srow.flat { border: 0; } .srow.out { color: var(--danger); margin-top: 12px; } .srow.out .si { color: var(--danger); }
.srow.msg.unread .sl { color: var(--text); } .dotr { width: 12px; height: 12px; border-radius: 50%; background: #e53935; flex: none; }
.soon { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 10px; background: var(--ringbg); color: var(--muted); } .okc { color: var(--ok); } .srow .okc { width: 24px; height: 24px; }
.form .btn { margin-top: 14px; } .h-acc { margin: 22px 0 8px; font-size: 18px; color: var(--accent); }
.faq { border-bottom: 1px solid var(--line); padding: 10px 2px; } .faq summary { font-weight: 700; color: var(--text); cursor: pointer; } .faq p { margin: 8px 0; font-size: 15px; }
.qa { margin: 10px 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; } .reply { background: rgba(166, 143, 2, .12); padding: 8px 10px; border-radius: 10px; }
.prev-row { display: flex; gap: 14px; justify-content: center; align-items: flex-start; } .prev-row .prev { flex: 1; max-width: 190px; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; border: 2px solid var(--line); padding: 0; text-align: left; }
.prev.light { background: #dbbd86; color: #14110a; } .prev.dark { background: #14110a; color: #f6efe0; } .pv-top { background: #A68F02; color: #fff; text-align: center; font-weight: 700; font-size: 11px; padding: 8px 4px; } .pv-body { flex: 1; padding: 10px; font-size: 11px; } .pv-card { height: 34px; border-radius: 8px; margin-top: 8px; background: rgba(255, 255, 255, .6); } .prev.dark .pv-card { background: rgba(255, 255, 255, .09); } .pv-card.s { height: 54px; } .pv-bot { background: #000; display: flex; justify-content: space-around; padding: 8px 4px; } .pv-bot i { width: 12px; height: 12px; border-radius: 3px; background: #fff; opacity: .8; }
.exdb-top + .exlist { margin-top: 4px; }

/* ---------- Dialoge ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .52); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.modal-wrap.in { opacity: 1; } .modal { width: min(100%, 430px); max-height: 88vh; overflow-y: auto; background: var(--modal); color: var(--text); border-radius: 22px; padding: 20px 18px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); transform: scale(.94); transition: transform .22s cubic-bezier(.3, .9, .3, 1); border: 1px solid var(--line); }
.modal-wrap.in .modal { transform: none; } .modal h2 { color: var(--accent); margin-bottom: 6px; } .modal.tall { max-height: 92vh; }
.modal-btns { display: flex; gap: 10px; margin-top: 12px; } .modal-btns .btn { margin: 0; flex: 1; min-height: 46px; padding: 0 10px; }
.toast { position: fixed; top: calc(env(safe-area-inset-top) + 66px); left: 50%; transform: translate(-50%, -14px); max-width: min(92vw, 460px); padding: 11px 18px; background: rgba(0, 0, 0, .9); color: #fff; border-radius: 16px; z-index: 600; opacity: 0; transition: opacity .25s, transform .25s; font-size: 15px; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); pointer-events: none; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.demo-banner { position: fixed; z-index: 700; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 440px; margin: auto; background: #000; color: #fff; padding: 12px 16px; border-radius: 16px; font-size: 14px; text-align: center; border: 1.5px solid var(--gold); } .dc { font-size: 26px; font-weight: 800; letter-spacing: 6px; color: var(--beige); }
#confetti { position: fixed; inset: 0; z-index: 650; pointer-events: none; display: none; }
@media (max-width: 380px) { .srow-h, .srow-s { grid-template-columns: 44px 1fr 1fr 1fr 40px; gap: 4px; } .tb-title { font-size: 21px; } .nb span { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.overlay.sheet.sub { background: var(--sheet-solid); }
