/* Edgework – Kür: Countdown, Musik-Player, Zeitleiste, Durchlauf, Video-Editor */
.countdown { font: inherit; color: #fff; width: 100%; align-items: center; text-align: center; gap: 6px; padding: 22px 18px; cursor: pointer; }
.countdown:disabled { cursor: default; opacity: 1; }
.countdown .gauge-num { font-size: 72px; }
.cd-name { font-family: var(--display); font-size: 22px; font-weight: 700; margin-top: 4px; }

/* Musik-Player */
.music-card { gap: 14px; }
.player { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tiny-num { font-size: 14px; min-width: 52px; }
.player .tiny-num:last-child { text-align: right; }
.play-btn { width: 62px; height: 62px; border-radius: 31px; border: none; background: #fff; color: var(--on-light); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.play-btn:disabled { opacity: 0.4; }
.skip { font-family: var(--display); font-weight: 700; font-size: 14px; }

/* Zeitleiste */
.tl { position: relative; height: 54px; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.tl-track { position: absolute; left: 0; right: 0; bottom: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); border-radius: 4px; }
.tl-region { position: absolute; top: 0; bottom: 0; background: rgba(140,141,255,0.28); }
.tl-head { position: absolute; bottom: 2px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.6); }
.tl-mark { position: absolute; bottom: 6px; width: 2px; height: 12px; margin-left: -1px; background: var(--c); border-radius: 1px; animation: pop 0.4s var(--ease) backwards; }
.tl-lab { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; letter-spacing: 0.02em; color: var(--c); white-space: nowrap; }
.tl-mark.low .tl-lab { bottom: 27px; }

/* Ablauf */
.pe-row { padding: 10px 10px 10px 12px; gap: 10px; }
.pe-row.now { border-color: var(--good); box-shadow: 0 0 0 1px var(--good), 0 0 22px rgba(74,222,155,0.18); }
.pe-idx { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.pe-main { all: unset; cursor: pointer; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.time-chip { height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.time-chip.empty { color: var(--muted); border-style: dashed; font-family: var(--font); font-size: 12px; }
.icon-btn.pin { width: 38px; height: 38px; color: var(--violet); }

/* Durchlauf */
.run-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 0; }
.el-chip.cue:not(.on) { box-shadow: inset 0 0 0 2px var(--good); }
.el-chip.ok .n { color: var(--good); opacity: 1; font-weight: 700; }
.el-chip.bad .n { color: var(--warm); opacity: 1; font-weight: 700; }
.el-chip.on.ok .n { color: #118A57; }
.el-chip.on.bad .n { color: #B4500E; }
.goe-btn.sel { box-shadow: inset 0 0 0 2px #fff; }
.goe-btn.other { line-height: 1.15; }

/* Video-Editor */
.title-input { font-family: var(--display); font-size: 28px; font-weight: 700; background: transparent; border: none; color: var(--ink); padding: 0; width: 100%; }
.title-input:focus { outline: none; box-shadow: 0 2px 0 var(--accent); }
.video-stage { position: relative; border-radius: 22px; overflow: hidden; background: #000; min-height: 200px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.video-stage video { display: block; width: 100%; max-height: 62vh; background: #000; }
.stage-play { position: absolute; width: 76px; height: 76px; border-radius: 38px; border: none; background: rgba(255,255,255,0.92); color: var(--on-light); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.45); animation: pop 0.3s var(--ease) backwards; }
.range-row { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 10px; }
.rr-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nudge { display: flex; gap: 6px; flex-wrap: wrap; }
.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
.rng::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.rng::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 12px; background: #fff; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.rng::-moz-range-thumb { width: 24px; height: 24px; border-radius: 12px; background: #fff; border: none; }

/* Videos zu Elementen */
.video-chip { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; font-size: 12.5px; font-weight: 700; color: #B9BAFF; background: rgba(140,141,255,0.14); border: 1px solid rgba(140,141,255,0.35); cursor: pointer; }
.video-chip.busy { opacity: 0.7; }
.mini-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); border-top-color: #B9BAFF; animation: spin 0.8s linear infinite; display: inline-block; flex: 0 0 auto; }
.link-btn.busy { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Globale Anpassungen (v0.8) ---------- */
/* Hintergrund als feste Ebene hinter der Seite: beim Nachfedern oben und unten
   wandert die ganze Seite mit, dahinter erscheint aber kein dunkler Streifen */
html { background: var(--bg-top); }
body { overflow-x: hidden; background: transparent; }
body::before { content: ''; position: fixed; z-index: -1; left: 0; right: 0; top: -200px; bottom: -200px; pointer-events: none;
  background: linear-gradient(180deg, var(--bg-top) 0px, var(--bg-top) 200px, #1B242E 460px, #12181E 760px, var(--bg) 1100px); }
.content { min-width: 0; }
.field { min-width: 0; }

/* Datum & Uhrzeit nicht breiter als der Bildschirm (iOS) */
input[type="datetime-local"].input, input[type="date"].input, input[type="time"].input { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; text-align: left; }
input[type="datetime-local"].input, input[type="date"].input, input[type="time"].input { height: 50px; line-height: 48px; padding-top: 0; padding-bottom: 0; }
input[type="datetime-local"]::-webkit-date-and-time-value, input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; line-height: 48px; min-height: 48px; margin: 0; }
input[type="datetime-local"]::-webkit-datetime-edit, input[type="date"]::-webkit-datetime-edit { padding: 0; line-height: 48px; }

/* Kategorien in der Element-Auswahl deutlich von den Elementen abheben */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-soft); }
.cat-tab { height: 32px; padding: 0 12px; border: none; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.cat-tab.on { background: var(--violet-soft, rgba(140,141,255,0.16)); color: #B9BAFF; box-shadow: inset 0 0 0 1px rgba(140,141,255,0.4); }
.pick-grid { padding-top: 4px; }

/* Plus-Knopf bleibt beim Scrollen sichtbar */
.fab-top { position: fixed; z-index: 30; top: calc(30px + var(--safe-top)); right: max(20px, calc((100vw - 560px) / 2 + 20px)); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.head-spacer { width: 44px; height: 44px; flex: 0 0 auto; }

/* Kür-Auswahl beim Planen */
.prog-pick { gap: 10px; border-color: rgba(140,141,255,0.35); }
.prog-pick .el-pick.on { border-color: var(--violet); }
.pe-num { font-size: 10px; font-weight: 800; color: var(--violet); margin-right: 4px; }
.cat-tab.special { color: #B9BAFF; }
.cat-tab.special::before { content: '♪ '; }

/* Ablauf: Element aufklappen */
.pe-row.open { border-color: rgba(140,141,255,0.45); border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.icon-btn.pin.edit { color: var(--muted); }
.pe-info { margin-top: -6px; padding: 12px 14px 14px; border: 1px solid rgba(140,141,255,0.3); border-top: none; border-radius: 0 0 16px 16px; background: rgba(140,141,255,0.06); display: flex; flex-direction: column; gap: 10px; animation: rise 0.3s var(--ease) backwards; }
.pe-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pe-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.pe-stats .stat-num { font-size: 20px; }

/* Boxen mit „Alle ansehen“ – einheitlich wie „Letzte Erfolge“ (v0.9) */
.box-list { gap: 2px; }
.box-head { justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.box-title { font-weight: 700; font-size: 15px; }
.box-list > .plain-row + .plain-row { border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 6px; }
.sess-row { gap: 12px; }
.sess-row .date-tile { width: 40px; height: 40px; border-radius: 12px; }
.sess-row .date-tile .d { font-size: 16px; }
.box-list > .goal-card { background: transparent; border: none; border-radius: 0; padding: 8px 0; box-shadow: none; }
.box-list > .goal-card + .goal-card { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.box-list > .ring-grid { margin-top: 2px; }

/* Kür: Bereitschafts-Kreis & Countdown (v0.9) */
.ready-card { align-items: center; text-align: center; gap: 12px; padding: 20px 16px 18px; }
.ready-top { all: unset; cursor: pointer; display: flex; justify-content: center; -webkit-tap-highlight-color: transparent; }
.ready-seg { animation: seg-in 0.7s var(--ease) backwards; }
@keyframes seg-in { from { stroke-dasharray: 0 360; } }
.ready-cd { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); max-width: 100%; min-width: 0; }
.ready-cd .stat-num { font-size: 30px; line-height: 1; color: #fff; }
.ready-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rchip { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; padding: 6px 8px 7px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: #C9D3DD; font-family: var(--display); font-size: 13px; font-weight: 700; }
.rchip.part { border-color: rgba(62,143,240,0.45); color: #fff; }
.rchip.ok { border-color: rgba(74,222,155,0.55); background: rgba(74,222,155,0.1); color: #4ADE9B; }
.rchip .pips { display: flex; gap: 3px; }
.rchip .pips i { width: 7px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.14); }
.rchip .pips i.on { background: #3E8FF0; }
.rchip.ok .pips i.on { background: #4ADE9B; }
.ready-actions .btn { height: 52px; }
.list-card.sel { border-color: rgba(140,141,255,0.5); }

/* Element: Kalender „Wann geübt“ (v0.9) */
.pc-card { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--card-grad), var(--surface); color: var(--ink); }
.pc-card:active { transform: scale(0.99); }
.pc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; width: 100%; }
.pc-wd { text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); padding-bottom: 2px; }
.pc-day { height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); background: rgba(255,255,255,0.03); border: none; font-family: inherit; padding: 0; }
.pc-day.on { color: #fff; font-weight: 800; }
.pc-day.on.l1 { background: rgba(62,143,240,0.7); }
.pc-day.on.l2 { background: var(--accent); }
.pc-day.on.l3 { background: var(--good); color: #0D2A1E; }
.pc-day.today { box-shadow: inset 0 0 0 1.5px #fff; color: var(--ink); }
.pc-day.fut { opacity: 0.35; }
button.pc-day { cursor: pointer; }
.pc-month { gap: 10px; }
.box-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.box-title .tiny { font-weight: 600; }
.box-head .link-btn { white-space: nowrap; flex: 0 0 auto; align-self: flex-start; margin-top: 1px; }

/* v0.9.1: Fenster scrollen nicht in den Hintergrund durch, Elementübersicht */
.sheet-scroll { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.el-group { gap: 12px; }
.el-group .ring-grid { margin-top: 0; }

/* v0.9.2: Fenster – Seite dahinter bleibt stehen, Navigationsleiste bleibt sichtbar */
html.sheet-open, html.sheet-open body { overflow: hidden; }
body:has(.nav:not([hidden] .nav)) .overlay { bottom: calc(65px + var(--safe-bottom)); }
body:has(.nav:not([hidden] .nav)) .sheet { padding-bottom: 18px; }
body:has(.overlay) .nav { z-index: 60; }
.overlay { overscroll-behavior: none; }
.sheet { will-change: transform; }
/* Fenster nie bis in den oberen Bereich: iOS zeichnet unter und unterhalb der Statusleiste (~100 pt) einen Unschärfe-Verlauf über die Seite (Titel und X wirkten unscharf) */
.sheet, body:has(.nav:not([hidden] .nav)) .sheet { max-height: min(88vh, calc(100% - var(--safe-top) - 52px)); }
.el-hero { flex-direction: row; align-items: center; gap: 18px; padding: 18px; }
.el-hero-ring { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.el-hero-stats { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 auto; }
.el-hero-stats > div { display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.el-hero-stats > div:last-child { border-bottom: none; padding-bottom: 0; }
.el-hero-stats .stat-num { font-size: 20px; }
.video-row.uploading { cursor: default; border-style: dashed; border-color: rgba(140,141,255,0.4); }
.up-spin { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: conic-gradient(rgba(140,141,255,0.35) calc(var(--p, 0) * 1%), rgba(140,141,255,0.08) 0); }
.up-spin .mini-spin { width: 20px; height: 20px; border-width: 2.5px; }
.video-chip.busy, .link-btn.busy { display: inline-flex; align-items: center; gap: 6px; }

/* Punkte */
.score-card { gap: 12px; }
.score-head { justify-content: space-between; background: none; border: none; padding: 0; color: inherit; width: 100%; }
.score-proj { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(74, 222, 155, 0.08); border: 1px solid rgba(74, 222, 155, 0.25); }
.score-proj .stat-num { font-size: 20px; white-space: nowrap; }
.score-runs { display: flex; flex-direction: column; gap: 2px; }
.score-run { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px; background: none; border: none; border-bottom: 1px solid var(--line); color: inherit; text-align: left; }
.score-run:last-child { border-bottom: none; }
.score-table { display: flex; flex-direction: column; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.score-tr { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr 1fr; gap: 6px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.score-tr > span:not(:first-child) { text-align: right; }
.score-tr > span:first-child { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-tr.th { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #8a96a3); }
.score-tr:last-child { border-bottom: none; }
.bonus-x { font-size: 11px; font-weight: 800; color: var(--warm, #f0a04b); }
.combo-plus { color: var(--muted, #8a96a3); margin-right: 2px; }
.pe-lv { font-size: 12px; margin-left: 2px; color: var(--accent-light, #8cc0ff); }
.result-card { gap: 8px; }
.result-card.best { border-color: rgba(74, 222, 155, 0.45); }
.result-parts { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted, #8a96a3); }
.result-parts strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.proto-sum { gap: 8px; }
.proto-row { gap: 10px; }
.proto-cmp { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.proto-out { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); }
.proto-out.clean { background: rgba(74, 222, 155, 0.14); color: var(--good); }
.proto-out.minus { background: rgba(242, 163, 58, 0.14); color: var(--warm, #f0a04b); }
.proto-out.fall { background: rgba(240, 90, 90, 0.16); color: #ff8a8a; }
.proto-edit { gap: 8px; padding: 12px; }
.input.mini { width: 84px; height: 38px; padding: 0 8px; font-size: 14px; text-align: right; }
.proto-line2 { display: flex; align-items: center; gap: 6px; }
.chip.mini { height: 34px; padding: 0 11px; font-size: 13px; }
.proto-line2 .input.mini { width: 74px; height: 34px; font-size: 13px; padding: 0 7px; }

/* Ausrüstung & Eiszeit */
.ice-card { gap: 12px; }
.ice-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; height: 110px; align-items: end; }
.ice-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.ice-bar .fill { width: 100%; max-width: 18px; border-radius: 5px 5px 2px 2px; background: rgba(62, 143, 240, 0.55); }
.ice-bar .fill.now { background: #3E8FF0; }
.ice-bar .tiny { font-size: 9.5px; white-space: nowrap; height: 12px; }
.gear-card { gap: 10px; }
.gear-card.due { border-color: rgba(242, 163, 58, 0.55); }
.gear-card.idle { opacity: 0.7; }
.gear-main { display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 0; color: inherit; width: 100%; }
.bar span.warn { background: linear-gradient(90deg, #F2A33A, #FFCF7A) !important; }
.gear-due { flex-direction: row; align-items: center; gap: 12px; border-color: rgba(242, 163, 58, 0.5); color: inherit; }
.goal-ico.warm { background: var(--warm-soft); color: var(--warm-ink); }

/* Vorlagen & Wochenplan */
.tpl-card { flex-direction: row; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; }
.tpl-main { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; background: none; border: none; padding: 0; color: inherit; }
.tpl-day { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-family: var(--display); line-height: 1.05; }
.tpl-day .tiny { font-size: 11px; opacity: .85; }
.tpl-codes { color: var(--accent-light, #8cc0ff); font-weight: 700; }
.week-plan { gap: 8px; }
.wp-day { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); }
.wp-day:last-of-type { border-bottom: none; }
.wp-day.empty { opacity: .55; }
.wp-name { width: 28px; flex: 0 0 auto; font-weight: 800; font-family: var(--display); padding-top: 2px; }
.wp-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; text-align: left; background: none; border: none; padding: 2px 0; color: inherit; width: 100%; }
.wp-item .tiny.muted { grid-column: 2; }
.tpl-chips { flex-wrap: wrap; }
.wp-list { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; text-align: left; }
.wp-day.empty { padding: 3px 0; }
.fav-btn.on { color: #FFCF5A; border-color: rgba(255, 207, 90, 0.5); }

/* Saisonrückblick */
.fav-star { color: #FFCF5A; }
.review .content { gap: 16px; }
.rv-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 0 6px; animation: rise .6s var(--ease) backwards; }
.rv-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light, #8cc0ff); }
.rv-title { font-size: 64px; line-height: 1; margin: 0; background: linear-gradient(120deg, #fff 30%, #8CC0FF 70%, #4ADE9B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv-sub { font-size: 16px; color: var(--muted, #a6b3c1); margin-bottom: 8px; }
.rv-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: 26px; border: 1px solid var(--line); animation: rise .6s var(--ease) backwards; }
.rv-card:nth-of-type(2) { animation-delay: .08s; } .rv-card:nth-of-type(3) { animation-delay: .16s; } .rv-card:nth-of-type(4) { animation-delay: .24s; }
.rv-blue { background: radial-gradient(120% 90% at 100% 0%, rgba(62,143,240,.35), rgba(62,143,240,0) 60%), #15202D; }
.rv-green { background: radial-gradient(120% 90% at 0% 0%, rgba(74,222,155,.28), rgba(74,222,155,0) 60%), #142420; }
.rv-violet { background: radial-gradient(120% 90% at 100% 100%, rgba(140,141,255,.30), rgba(140,141,255,0) 60%), #1A1A2C; }
.rv-warm { background: radial-gradient(120% 90% at 0% 100%, rgba(242,163,58,.28), rgba(242,163,58,0) 60%), #241D14; }
.rv-dark { background: #12171D; }
.rv-h { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.rv-big { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.2; }
.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.rv-stat { display: flex; flex-direction: column; gap: 2px; }
.rv-num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-lbl, .rv-note { font-size: 13px; opacity: .75; line-height: 1.45; }
.rv-learned { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chip { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 62px; padding: 8px 10px; border-radius: 14px; background: rgba(74,222,155,.14); border: 1px solid rgba(74,222,155,.35); color: inherit; text-decoration: none; }
.rv-code { font-family: var(--display); font-weight: 800; font-size: 18px; }
.rv-list { display: flex; flex-direction: column; }
.rv-row { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: inherit; text-decoration: none; }
.rv-row:last-child { border-bottom: none; }
.rv-k { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.rv-v { font-weight: 700; font-size: 17px; }
.rv-d { font-size: 13px; opacity: .75; }
.rv-favs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-fav { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0B0F14; padding: 0; color: #fff; }
.rv-fav video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.rv-fav-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; opacity: .5; }
.rv-fav-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 1px; padding: 22px 10px 9px; text-align: left; font-size: 13px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.75)); }
.rv-teaser { align-items: flex-start; gap: 4px; color: #fff; text-align: left; border-color: rgba(140,141,255,.45); background: radial-gradient(120% 120% at 100% 0%, rgba(140,141,255,.35), rgba(140,141,255,0) 60%), radial-gradient(120% 120% at 0% 100%, rgba(74,222,155,.22), rgba(74,222,155,0) 60%), #161B26; }

/* Wohlbefinden */
.wb-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wb-step { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.wb-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c); background: transparent; transition: transform .15s; }
.wb-step.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.wb-step.on .wb-dot { background: var(--c); transform: scale(1.1); }
.wb-l { font-size: 11.5px; font-weight: 700; line-height: 1.15; text-align: center; }
.wb-insight { gap: 6px; }
.wb-insight.low { border-color: rgba(242, 163, 58, .5); }
.wb-insight.high { border-color: rgba(74, 222, 155, .5); }
.wb-card { gap: 8px; }
.wb-bars { display: flex; flex-direction: column; gap: 6px; }
.wb-bar-row { display: flex; align-items: center; gap: 8px; }
.wb-track { position: relative; flex: 1 1 auto; height: 10px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.wb-fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.wb-fill.pos { background: #4ADE9B; } .wb-fill.neg { background: #F2A33A; }
.wb-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(255,255,255,.3); }

/* Kür-Seite aufgeräumt (v0.23): kompakter Kopf, Reiter */
.kuer-cd { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; min-width: 0; max-width: 100%; }
.kuer-cd svg { flex: 0 0 auto; color: #4ADE9B; }
.ready-card.compact { padding: 14px; gap: 10px; text-align: left; align-items: stretch; }
.ready-row { display: flex; align-items: center; gap: 14px; }
.ready-row .ready-top { flex: 0 0 auto; }
.ready-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.ready-card.compact .ready-chips { justify-content: flex-start; gap: 5px; margin-top: 2px; }
.ready-card.compact .rchip { min-width: 40px; padding: 5px 6px 6px; font-size: 12px; }
.kuer-tabs { position: sticky; top: calc(env(safe-area-inset-top) + 6px); z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(20,28,38,0.82); }
.kuer-tab { padding-top: 0; animation: fade 0.25s ease backwards; }
.music-card.compact { gap: 10px; padding: 12px 14px; }
.play-btn.sm { width: 44px; height: 44px; border-radius: 22px; flex: 0 0 auto; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.info-btn { all: unset; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); padding: 0 4px; vertical-align: 2px; }
.info-btn[aria-expanded="true"] { color: var(--accent); }
.info-text { line-height: 1.5; }

/* Training-Startseite: Ziele als schmale Zeilen (v0.24) */
.goal-row { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; flex-direction: column; gap: 7px; padding: 10px 0; }
.goal-row + .goal-row { border-top: 1px solid var(--line-soft); }
.goal-row .goal-val { font-size: 13px; }
.detail-tabs { margin-top: 4px; }
.untouched { gap: 10px; }

/* Mehr: gruppierte Liste (v0.25) */
.profile-card { flex-direction: row; align-items: center; gap: 14px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.avatar { width: 48px; height: 48px; border-radius: 24px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 21px; color: #fff; background: linear-gradient(135deg, #3E8FF0, #8C8DFF); }
.mgroup { display: flex; flex-direction: column; gap: 8px; }
.mgroup > .overline { padding-left: 4px; }
.mlist { padding: 4px 14px; gap: 0; }
.mrow { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; color: var(--ink); }
.mrow + .mrow { border-top: 1px solid var(--line-soft); }
.mrow > svg:last-child { color: var(--muted); flex: 0 0 auto; }
.mrow-ico { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.more-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.card.flat { background: transparent; border: none; box-shadow: none; padding: 0; }

/* Formkurve */
.form-curve svg { overflow: visible; }
.fc-base { stroke: rgba(255,255,255,0.22); stroke-width: 1; stroke-dasharray: 3 4; }
.fc-comp { stroke: #F5C451; stroke-width: 1.5; stroke-dasharray: 2 3; }
.fc-trend { stroke: #4ADE9B; stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; opacity: .85; }
.fc-line { fill: none; stroke: #3E8FF0; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fc-dot { fill: #3E8FF0; stroke: var(--bg, #0b1220); stroke-width: 1.5; }
.fc-dot.clean { fill: #4ADE9B; }
.fc-fc { fill: none; stroke: #4ADE9B; stroke-width: 2.5; }
.fc-lbl { font-size: 9px; fill: var(--muted, #8E9BA9); }
.fc-axis { display: flex; justify-content: space-between; margin-top: -4px; }

/* Videovergleich */
.cmp-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmp-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--card, rgba(255,255,255,0.04)); border: 1px solid var(--line); text-align: left; font-weight: 600; color: inherit; font: inherit; }
.cmp-name .cmp-tag.static { position: static; align-self: flex-start; }
.cmp-stage { display: grid; gap: 6px; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.cmp-stage.stack { grid-template-columns: 1fr; }
.cmp-stage.side { grid-template-columns: 1fr 1fr; }
.cmp-stage.ghost { grid-template-columns: 1fr; grid-template-areas: "v"; }
.cmp-stage.ghost .cmp-cell { grid-area: v; }
.cmp-stage.ghost .cmp-cell.ghost { pointer-events: none; mix-blend-mode: normal; }
.cmp-cell { position: relative; min-height: 120px; display: flex; align-items: center; justify-content: center; background: #000; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s; }
.cmp-cell.solo { outline-color: #F5C451; }
.cmp-cell video { display: block; width: 100%; min-height: 120px; max-height: 34vh; object-fit: contain; background: #000; }
.cmp-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cmp-cell.loaded .cmp-spin, .cmp-stage.ghost .cmp-tag { display: none; }
.cmp-stage[hidden] { display: none; }
.cmp-stage.side .cmp-cell video { max-height: 50vh; }
.cmp-stage.ghost .cmp-cell video { max-height: 56vh; }
.cmp-tag { position: absolute; top: 8px; left: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: rgba(0,0,0,0.55); color: #fff; backdrop-filter: blur(6px); }

.cmp-layer { position: fixed; inset: 0; z-index: 60; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: linear-gradient(180deg, var(--bg-top) 0px, #1B242E 260px, #12181E 560px, var(--bg) 900px); }
.cmp-layer .screen { min-height: 100%; }
.cmp-diag { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 9999; max-height: 45vh; overflow: auto; margin: 0; padding: 10px 12px; border-radius: 12px; background: #3a0d12; color: #ffd6d6; font: 11px/1.4 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-all; }

/* Drehschieber */
.jog-row { display: flex; align-items: center; gap: 10px; }
.jog { position: relative; flex: 1; height: 54px; border-radius: 14px; overflow: hidden; touch-action: none; cursor: ew-resize;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.06) 30%, rgba(255,255,255,.06) 70%, rgba(0,0,0,.45)), #1a222b;
  border: 1px solid var(--line); box-shadow: inset 0 2px 8px rgba(0,0,0,.45); }
.jog.on { border-color: #F5C451; }
.jog-ticks { position: absolute; inset: 8px 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 2px, transparent 2px 12px), repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 2px, transparent 2px 60px);
  background-size: 100% 60%, 100% 100%; background-repeat: repeat-x; background-position-y: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.jog-mark { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #F5C451; box-shadow: 0 0 8px rgba(245,196,81,.6); }

/* Vergleich: kompakte Steuerung, damit Videos und Drehschieber näher beieinander sind */
.cmp-page { gap: 12px; }
.cmp-ctrl { gap: 8px; padding: 10px 14px; }
.cmp-ctrl .player { gap: 8px; }
.cmp-ctrl .play-btn { width: 48px; height: 48px; border-radius: 24px; }
.cmp-ctrl .play-btn svg { width: 22px; height: 22px; }
.cmp-ctrl .icon-btn { width: 40px; height: 40px; }
.cmp-ctrl .seg { padding: 3px; }
.cmp-ctrl .seg button { height: 32px; }
.cmp-stage.stack .cmp-cell video { max-height: 30vh; }
