/* SlowButSteady – iOS-ähnliches Standard-Design (gruppierte Listen, Karten, Hell/Dunkel) */
:root {
  --brand: #45A8B5; --brand-rgb: 69,168,181;
  --positive: #4DB878; --positive-rgb: 77,184,120;
  --negative: #E68C40; --negative-rgb: 230,140,64;
  --on-accent: #fff;
  --destructive: #FF3B30;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="light"] {
  --bg: #F2F2F7; --card: #FFFFFF; --bar: rgba(249,249,249,0.92); --text: #000; --secondary: rgba(60,60,67,0.6); --tertiary: rgba(60,60,67,0.3);
  --separator: rgba(60,60,67,0.18); --fill: rgba(120,120,128,0.12); --fill-2: rgba(120,120,128,0.2); --gray4: #D1D1D6; --stroke: rgba(0,0,0,0.07);
  --menu: rgba(248,248,248,0.97); --icon-invert: #fff; --backdrop: rgba(0,0,0,0.32); color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1C1C1E; --bar: rgba(22,22,24,0.92); --text: #fff; --secondary: rgba(235,235,245,0.6); --tertiary: rgba(235,235,245,0.3);
  --separator: rgba(84,84,88,0.6); --fill: rgba(118,118,128,0.24); --fill-2: rgba(118,118,128,0.36); --gray4: #3A3A3C; --stroke: rgba(255,255,255,0.07);
  --menu: rgba(40,40,42,0.97); --icon-invert: #1C1C1E; --backdrop: rgba(0,0,0,0.5); color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; overscroll-behavior: none; }
body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { opacity: 0.4; cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
#root, .app { height: 100%; }

/* Typografie */
.large-title { font-size: 34px; font-weight: 700; margin: 0 16px 8px; letter-spacing: 0.3px; }
.title { font-size: 28px; } .title2 { font-size: 22px; } .title3 { font-size: 20px; }
.headline { font-size: 17px; font-weight: 600; } .subheadline { font-size: 15px; } .footnote { font-size: 13px; }
.caption { font-size: 12px; } .caption2 { font-size: 11px; }
.large-num { font-size: 34px; font-weight: 700; }
.bold { font-weight: 700; } .strong { font-weight: 600; } .medium { font-weight: 500; }
.mono { font-variant-numeric: tabular-nums; }
.secondary { color: var(--secondary); } .tertiary { color: var(--tertiary); }
.upper { text-transform: uppercase; letter-spacing: 0.4px; }
.center { text-align: center; } .left { text-align: left; } .right { text-align: right; }
.strike { text-decoration: line-through; }
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-brand { color: var(--brand); } .c-positive { color: var(--positive); } .c-negative { color: var(--negative); }
.c-secondary { color: var(--secondary); } .c-destructive { color: var(--destructive); }

/* Layout-Hilfen */
.grow { flex: 1 1 auto; min-width: 0; }
.shrink { flex-shrink: 1; min-width: 0; }
.pad { padding: 16px; } .pad-h { padding: 0 16px; margin-bottom: 18px; } .pad-h4 { padding: 0 4px; }
.pad14 { padding: 14px; } .pad16 { padding: 16px; } .pad18 { padding: 18px; }
.pad-v6 { padding: 6px 0; } .pad-v8 { padding: 8px 0; } .pad-v10 { padding: 10px 0; }
.mt4 { margin-top: 4px; }
[class*="stack-"] { display: flex; flex-direction: column; }
.stack-2 { gap: 2px; } .stack-4 { gap: 4px; } .stack-6 { gap: 6px; } .stack-8 { gap: 8px; } .stack-10 { gap: 10px; }
.stack-12 { gap: 12px; } .stack-14 { gap: 14px; } .stack-16 { gap: 16px; } .stack-20 { gap: 20px; }
[class*="hstack-"] { display: flex; align-items: center; flex-direction: row; }
.hstack-8 { gap: 8px; } .hstack-10 { gap: 10px; } .hstack-12 { gap: 12px; } .hstack-14 { gap: 14px; }
.hstack-12 > *, .hstack-10 > * { min-width: 0; }
.top { align-items: flex-start !important; }
.hrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hrow.base, .base { align-items: baseline; }
.gap4 { gap: 4px; } .gap5 { gap: 5px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; }
.col { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.w18 { width: 18px; } .w40 { width: 40px; } .w58 { width: 58px; } .w64 { width: 64px; } .w74 { width: 74px; } .w90 { width: 90px; }
.divider { height: 0.5px; background: var(--separator); }
.label { display: inline-flex; align-items: center; gap: 6px; }
.label .icon-wrap { flex-shrink: 0; }
.compact-label { display: inline-flex; align-items: center; gap: 4px; }
.compact-label .icon-wrap { color: var(--brand); }
.icon-wrap { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }

/* Tabs */
.tabs { position: absolute; inset: 0 0 calc(50px + var(--safe-bottom)) 0; }
.tab-pane { position: absolute; inset: 0; display: none; }
.tab-pane.active { display: block; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(50px + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  display: flex; background: var(--bar); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 0.5px solid var(--separator); z-index: 20; }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--secondary); font-size: 10px; font-weight: 500; }
.tabbar button.on { color: var(--brand); }

/* Navigation */
.navstack { position: absolute; inset: 0; }
.navlayer { position: absolute; inset: 0; }
.navlayer.hidden { display: none; }
.page { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.page-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 24px; }
.navbar { display: flex; align-items: center; min-height: 44px; padding: var(--safe-top) 8px 0; background: var(--bar);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 0.5px solid var(--separator); position: relative; flex-shrink: 0; }
.sheet .navbar { padding-top: 0; }
.navbar.large { border-bottom: 0; background: var(--bg); }
.navbar.large .nav-title { opacity: 0; }
.nav-leading, .nav-trailing { flex: 1 0 0; display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav-trailing { justify-content: flex-end; }
.nav-title { flex: 0 1 auto; max-width: 60%; font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-btn { color: var(--brand); padding: 8px; display: inline-flex; align-items: center; gap: 2px; font-size: 17px; min-height: 44px; }
.nav-btn.strong { font-weight: 600; }
.nav-btn.back { padding-left: 0; }
.nav-btn.back span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Listen */
.list { padding: 8px 0 24px; }
.section { margin: 0 16px 22px; }
.section-header { font-size: 13px; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.2px; padding: 6px 16px 7px; }
.section-footer { font-size: 13px; color: var(--secondary); padding: 7px 16px 0; line-height: 1.35; }
.section-body { background: var(--card); border-radius: 10px; overflow: hidden; }
.section-body > * + * { border-top: 0.5px solid var(--separator); }
.row { display: flex; align-items: center; min-height: 44px; padding: 10px 16px; width: 100%; background: var(--card); gap: 10px; text-align: left; position: relative; }
.row.tappable:active, .plain-row:active { background: var(--fill); }
.row-content { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.row .chev { color: var(--tertiary); flex-shrink: 0; }
.row-icon { color: var(--brand); width: 24px; flex-shrink: 0; }
.row .sub { font-size: 12px; color: var(--secondary); margin-top: 2px; }
.row.disabled { opacity: 0.5; }
.plain-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; text-align: left; }
.inset-list { padding: 0 16px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; color: var(--secondary); }

/* Schalter */
.switch { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill-2); position: relative; flex-shrink: 0; transition: background .2s; cursor: pointer; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s; }
.switch:checked { background: var(--positive); }
.switch:checked::after { transform: translateX(20px); }
.toggle-row { cursor: pointer; }
.feature-row { display: flex; gap: 12px; align-items: flex-start; }
.feature-row .icon-wrap { margin-top: 1px; }

/* Stepper / Picker / Felder */
.stepper { display: inline-flex; background: var(--fill); border-radius: 8px; align-items: center; flex-shrink: 0; }
.stepper button { width: 46px; height: 32px; display: flex; align-items: center; justify-content: center; }
.stepper .sep { width: 0.5px; height: 18px; background: var(--separator); }
.picker-row { cursor: pointer; }
.picker-value { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--secondary); max-width: 60%; text-align: right; }
.picker-value select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; font-size: 16px; }
.textfield { width: 100%; border: 0; background: transparent; outline: none; font-size: 17px; padding: 2px 0; }
.textarea { width: 100%; border: 0; background: transparent; outline: none; resize: vertical; font-size: 17px; min-height: 2.6em; }
.date-input { border: 0; background: var(--fill); border-radius: 8px; padding: 6px 8px; font-size: 15px; color: var(--text); outline: none; max-width: 100%; }
.color-input { width: 44px; height: 30px; border: 0; padding: 0; background: none; border-radius: 6px; }
.segmented { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; width: 100%; }
.segmented button { flex: 1; padding: 6px 4px; border-radius: 7px; font-size: 13px; font-weight: 500; text-align: center; }
.segmented button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }
:root[data-theme="dark"] .segmented button.on { background: #636366; }
.search-wrap { display: flex; align-items: center; gap: 6px; margin: 8px 16px 0; padding: 7px 10px; background: var(--fill); border-radius: 10px; color: var(--secondary); }
.search { border: 0; background: transparent; outline: none; flex: 1; font-size: 17px; color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.btn.bordered { background: rgba(var(--brand-rgb), 0.15); color: var(--brand); }
.btn.bordered.destructive { background: rgba(255,59,48,0.15); color: var(--destructive); }
.btn.prominent { background: var(--brand); color: var(--on-accent); }
.btn.large { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
.btn.small { padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn.mono { font-variant-numeric: tabular-nums; font-size: 17px; padding: 10px 0; }
.link-btn { color: var(--brand); display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.link-btn.strong { font-weight: 600; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 4px; }
.plain-btn { display: block; width: 100%; text-align: left; }
.pill { padding: 6px 12px; border-radius: 999px; background: rgba(var(--brand-rgb), 0.2); font-size: 15px; font-weight: 600; }
.bottom-bar { position: sticky; bottom: 0; display: flex; justify-content: center; padding: 10px 16px calc(10px + var(--safe-bottom)); background: var(--bar); border-top: 0.5px solid var(--separator); backdrop-filter: blur(20px); }
.bottom-bar.space { justify-content: space-between; }
.kb-done { position: fixed; right: 12px; bottom: calc(12px + var(--safe-bottom)); z-index: 60; box-shadow: 0 4px 14px rgba(0,0,0,.3); }

/* Karten */
.card { background: var(--card); border-radius: 20px; border: 1px solid var(--stroke); }
.stat-tile { flex: 1; padding: 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-tile .date-input { font-size: 13px; padding: 5px 6px; width: 100%; }
.stat-title { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { display: flex; align-items: baseline; gap: 3px; }
.stat-value .num { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-value .unit { font-size: 15px; font-weight: 600; color: var(--secondary); }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; }
.note-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; width: 100%; text-align: left; }
.tip-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(var(--brand-rgb), 0.08); border: 1px solid rgba(var(--brand-rgb), 0.25); }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 60px 32px; }
.empty-icon { color: var(--secondary); margin-bottom: 6px; }
.empty-title { font-size: 22px; font-weight: 700; }
.empty-text { color: var(--secondary); font-size: 15px; margin-bottom: 8px; }
.selector { display: flex; align-items: center; padding: 18px; width: 100%; gap: 8px; text-align: left; }
.session-pick { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; width: 100%; }

/* Workout */
.exercise-card { padding: 20px; }
.ex-head { display: flex; align-items: center; gap: 8px; }
.ex-title { font-size: 22px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-tag { font-size: 12px; font-weight: 600; color: var(--brand); background: rgba(var(--brand-rgb), 0.14); padding: 2px 6px; border-radius: 5px; }
.dots { color: var(--brand); width: 40px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ex-notes { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.note-line { display: flex; gap: 6px; font-size: 13px; align-items: flex-start; }
.ex-foot { display: flex; align-items: center; gap: 18px; padding-top: 16px; }
.quick-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.badge-lg { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.b-positive { color: var(--positive); background: rgba(var(--positive-rgb), 0.14); }
.b-negative { color: var(--negative); background: rgba(var(--negative-rgb), 0.14); }
.b-secondary { color: var(--secondary); background: var(--fill); }
.b-brand { color: var(--brand); background: rgba(var(--brand-rgb), 0.14); }
.set-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; }
.set-main { display: flex; align-items: center; gap: 16px; }
.set-main.uni { align-items: flex-start; gap: 12px; }
.num-col { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.col-label { font-size: 15px; font-weight: 500; color: var(--secondary); }
.numfield { width: 100%; border: 0; outline: none; background: transparent; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0; color: var(--text); }
.numfield::placeholder { color: var(--secondary); opacity: 0.45; }
.numfield.f-title2 { font-size: 22px; } .numfield.f-title3 { font-size: 20px; }
.numfield:focus { background: rgba(var(--brand-rgb), 0.08); border-radius: 6px; }
.uni-fields { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.uni-head, .uni-row { display: flex; align-items: center; gap: 10px; }
.uni-row { height: 30px; }
.side { width: 12px; font-size: 12px; font-weight: 700; color: var(--secondary); }
.target-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.target-main, .side-target { display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; font-size: 15px; }
.side-target { height: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; }
.t-secondary { color: var(--secondary); background: var(--fill); }
.t-negative { color: var(--negative); background: rgba(var(--negative-rgb), 0.14); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rest-bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--bar); border-bottom: 0.5px solid var(--separator); overflow: hidden; flex-shrink: 0; }
.rest-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--brand-rgb), 0.18); transition: width 0.5s linear; }
.rest-bar > *:not(.rest-bar-fill) { position: relative; }
.rest-bar-main { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.rest-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.rest-label { font-size: 13px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.countdown { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0; }
.ring150 { position: relative; width: 150px; height: 150px; }
.ring150 svg, .ring50 svg { width: 100%; height: 100%; }
.ring-bg { stroke: var(--fill); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px; }
.big-time { font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.advice { display: flex; flex-direction: column; gap: 3px; }
.advice-title { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.warmup-grid { display: flex; gap: 8px; }
.warmup-cell { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; background: rgba(var(--brand-rgb), 0.10); }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--on-accent); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.goal-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ma-line { width: 14px; height: 2px; background: var(--secondary); display: inline-block; }

/* Tagebuch */
.session-row { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; min-width: 0; width: 100%; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 500; color: var(--secondary); font-variant-numeric: tabular-nums; }
.gs-card { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.gs-step { display: flex; gap: 14px; align-items: flex-start; }
.gs-num { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--secondary); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.gs-num.done { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.week-card { padding: 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 14px; }
.cal-head { text-align: center; }
.cal-year { font-size: 46px; font-weight: 800; line-height: 1.05; }
.cal-month { font-size: 20px; font-weight: 600; letter-spacing: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-sym { text-align: center; font-size: 11px; font-weight: 500; color: var(--secondary); }
.cal-cell { position: relative; height: 50px; border-radius: 3px; border: 0.7px solid rgba(127,127,127,0.45); overflow: hidden; text-align: left; }
.cal-cell.empty { border-color: rgba(127,127,127,0.12); }
.cal-cell.today { border: 1.6px solid var(--text); }
.cal-cell.trained { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.cal-cell.trained.ignored { background: rgba(var(--brand-rgb), 0.45); }
.cal-cell.planned { background: rgba(var(--brand-rgb), 0.10); border: 1px dashed var(--brand); color: var(--brand); }
.cal-cell:disabled { opacity: 1; }
.cal-cell.past:not(.trained):not(.planned) .cal-day { color: var(--secondary); }
.cal-day { position: absolute; top: 3px; right: 4px; font-size: 10px; font-variant-numeric: tabular-nums; }
.cal-cell.today .cal-day { font-weight: 700; }
.cal-labels { position: absolute; left: 3px; right: 3px; bottom: 3px; display: flex; flex-direction: column; font-size: 8px; font-weight: 600; line-height: 1.15; }
.cal-cell:not(.trained) .cal-labels { color: var(--brand); }
.legend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--secondary); }
.lg { width: 11px; height: 11px; border-radius: 2px; background: rgba(var(--brand-rgb), 0.10); border: 1px dashed var(--brand); }
.lg.filled { background: var(--brand); border-style: solid; }
.freq-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--secondary); white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot7 { width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.dot12 { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot14 { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.planned-row { display: flex; align-items: flex-start; gap: 12px; }
.pw-date { width: 40px; text-align: center; }
.bar6 { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.bar6 > div { height: 100%; border-radius: 3px; }

/* Pläne */
.plans-wrap { padding: 14px; border-radius: 26px; background: rgba(127,127,127,0.10); display: flex; flex-direction: column; gap: 12px; }
.plan-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; width: 100%; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ring50 { position: relative; width: 50px; height: 50px; flex-shrink: 0; }
.ring50 span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.num-circle { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; flex-shrink: 0; }
.del-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--destructive); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sel-num { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--on-accent); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sel-circle { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--secondary); }

/* Wischen zum Löschen */
.swipe-row { position: relative; overflow: hidden; background: var(--destructive); touch-action: pan-y; }
.swipe-actions { position: absolute; right: 0; top: 0; bottom: 0; display: flex; }
.swipe-actions button { flex: 1; color: #fff; font-weight: 600; font-size: 15px; text-align: center; }
.swipe-delete { background: var(--destructive); }
.swipe-extra { background: #8E8E93; }
.gray-action .swipe-delete, .gray-action.swipe-row { background: #8E8E93; }
.swipe-front { transition: transform 0.2s ease; }

/* Muskeln */
.figure-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.body-figure { width: 100%; height: auto; aspect-ratio: 1120 / 1830; }
.legend-row { display: flex; gap: 3px; }
.legend-cell { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.legend-bar { width: 100%; height: 8px; border-radius: 4px; }

/* Profil */
.profile-head { gap: 16px; padding: 6px 0; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(var(--brand-rgb), 0.14); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.color-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.swatches { display: inline-flex; margin-right: 8px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--card); margin-right: -6px; }
.preview { gap: 12px; padding: 6px 0; }
.preview-btn { text-align: center; padding: 12px; border-radius: 999px; font-weight: 600; }
.saved-summary { width: 100%; border-radius: 12px; display: block; }

/* Fotos */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--fill); display: flex; align-items: center; justify-content: center; -webkit-touch-callout: none; user-select: none; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo-date { position: absolute; left: 5px; bottom: 5px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,0.45); padding: 2px 5px; border-radius: 999px; }
.photo-view { flex: 1; min-height: 70vh; display: flex; align-items: center; justify-content: center; background: #000; }
.photo-view img { max-width: 100%; max-height: 75vh; object-fit: contain; }

/* Fazit */
.hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; }
.hero-icon { width: 68px; height: 68px; border-radius: 50%; background: rgba(var(--brand-rgb), 0.12); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.diff-col { min-width: 76px; text-align: right; white-space: nowrap; }
.export-host { position: fixed; left: -10000px; top: 0; width: 595px; }
.export-page { width: 595px; padding: 24px; background: #fff; color: #000;
  --bg: #fff; --card: #fff; --text: #000; --secondary: rgba(60,60,67,0.6); --tertiary: rgba(60,60,67,0.3); --separator: rgba(60,60,67,0.18); --fill: rgba(120,120,128,0.12); --stroke: rgba(0,0,0,0.09); }
.jam-btn { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; width: 100%; text-align: left; }

/* Sheets */
.sheet-backdrop { position: fixed; inset: 0; background: var(--backdrop); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet-backdrop.full { background: transparent; }
.sheet { position: relative; width: 100%; max-width: 700px; background: var(--bg); border-radius: 12px 12px 0 0; overflow: hidden; animation: up .28s cubic-bezier(.2,.8,.2,1); }
.sheet.detent-large { height: calc(100% - var(--safe-top) - 12px); }
.sheet.detent-medium { height: min(calc(100% - var(--safe-top) - 12px), 62%); min-height: 420px; }
.sheet.full { height: 100%; border-radius: 0; max-width: none; }
.sheet.full .navbar { padding-top: var(--safe-top); }
.sheet .page-body { padding-bottom: calc(24px + var(--safe-bottom)); }
.fullscreen { position: fixed; inset: 0; z-index: 50; background: var(--bg); animation: up .3s cubic-bezier(.2,.8,.2,1); }
.fullscreen .page-body { padding-bottom: calc(24px + var(--safe-bottom)); }
.dark-page .page-body { background: #000; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Dialoge */
.dialog-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 400; display: flex; align-items: center; justify-content: center; animation: fade .15s; }
.dialog-backdrop.bottom { align-items: flex-end; }
.alert { width: 270px; background: var(--menu); border-radius: 14px; overflow: hidden; backdrop-filter: blur(20px); }
.alert-body { padding: 18px 16px 16px; text-align: center; }
.alert-title { font-weight: 600; font-size: 17px; }
.alert-msg { font-size: 13px; margin-top: 4px; }
.alert-input { width: 100%; margin-top: 12px; padding: 7px 8px; border-radius: 7px; border: 0.5px solid var(--separator); background: var(--card); font-size: 15px; outline: none; }
.alert-actions { display: flex; border-top: 0.5px solid var(--separator); }
.alert-actions.vertical { flex-direction: column; }
.alert-btn { flex: 1; padding: 11px; text-align: center; color: var(--brand); font-size: 17px; }
.alert-actions:not(.vertical) .alert-btn + .alert-btn { border-left: 0.5px solid var(--separator); }
.alert-actions.vertical .alert-btn + .alert-btn { border-top: 0.5px solid var(--separator); }
.alert-btn.cancel { font-weight: 600; }
.alert-btn.destructive { color: var(--destructive); }
.action-sheet { width: 100%; max-width: 500px; padding: 8px 8px calc(8px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 8px; animation: up .25s; }
.action-group { background: var(--menu); border-radius: 14px; overflow: hidden; backdrop-filter: blur(20px); }
.action-head { padding: 14px 16px; text-align: center; color: var(--secondary); border-bottom: 0.5px solid var(--separator); }
.action-head .t { font-size: 13px; font-weight: 600; } .action-head .m { font-size: 13px; margin-top: 2px; }
.action-btn { display: block; width: 100%; padding: 17px; text-align: center; color: var(--brand); font-size: 19px; }
.action-btn + .action-btn { border-top: 0.5px solid var(--separator); }
.action-btn.destructive { color: var(--destructive); }
.action-btn.cancel { font-weight: 600; }

/* Menüs */
.menu-backdrop { position: fixed; inset: 0; z-index: 300; }
.menu { position: fixed; background: var(--menu); border-radius: 13px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); overflow-y: auto; max-height: 70vh; backdrop-filter: blur(20px); animation: fade .12s; padding: 4px 0; }
.menu-item { display: flex; align-items: center; gap: 6px; width: 100%; padding: 11px 14px 11px 8px; font-size: 16px; text-align: left; }
.menu-item:active { background: var(--fill); }
.menu-item.destructive { color: var(--destructive); }
.menu-check { width: 18px; display: inline-flex; justify-content: center; flex-shrink: 0; }
.menu-label { flex: 1; min-width: 0; }
.menu-section { font-size: 12px; color: var(--secondary); padding: 10px 14px 4px 32px; border-top: 6px solid var(--fill); }
.menu-section:first-child { border-top: 0; }
.menu-divider { height: 6px; background: var(--fill); }

/* Diagramm */
.chart { width: 100%; display: block; overflow: visible; }
.chart .grid { stroke: var(--separator); stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.chart .axis { fill: var(--secondary); font-size: 10px; }

@media (min-width: 700px) {
  .page-body > .pad, .page-body > .list, .page-body > .empty-state { max-width: 700px; margin: 0 auto; }
}
