/* MOVEO Teamdiagnostik – Stylesheet (mobile first, Physio-Bereich auch für Desktop) */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/oswald-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/oswald-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }

:root {
  --primary: #1F4659; --primary-dark: #163444; --text: #18242B; --bg: #F4F6F7; --card: #FFFFFF;
  --muted: #4A5862; --muted2: #5A6872; --line: #E2E7EA; --line2: #CBD3D8;
  --rose: #E8A598; --red: #B8433A; --red-text: #9C3830; --green: #2E7D5B; --green-text: #25694C; --orange: #A35A00;
  --green-bg: #E6F2EC; --orange-bg: #FFF4E5; --blue-bg: #E8EEF1; --red-bg: #FDF3F1; --pos: #4F7FA0;
  /* 12.11.2026: Farben für helle und dunkle Ansicht (bisher fest im Stylesheet) */
  --on-primary: #FFFFFF; --hero: #1F4659; --surface2: #EEF1F3; --subtle: #F7FAFB; --elev: #DCE7EC; --hint: #8796A0; --focus: #4F7FA0;
  --warn-bg: #FFF7E8; --warn-text: #8A5A12; --warn-line: #F3D9B5; --red-line: #E3B7AF; --red-strong: #B42318; --switch-off: #8A97A0;
  --bc-fill: #E7EDF0; --bc-hover: #D5E1E7; --tag: #B23A2E; --done: #277A4C; --on-done: #FFFFFF;
  --radius: 16px; --gutter: 16px;
  color-scheme: light;
}
/* Dunkle Ansicht (MOVEO-Blau). Nur am Bildschirm – Druck/PDF bleibt hell. Kontrast Text ≥ 4,5:1 (test/theme.test.js). */
@media screen {
  :root[data-theme="dark"] {
    --primary: #9FD3E6; --primary-dark: #C9E8F2; --text: #F2F7F9; --bg: #0F2A37; --card: #173B4B;
    --muted: #A9C0CB; --muted2: #A9C0CB; --line: #2C5468; --line2: #5E8FA5;
    --rose: #FF8A7E; --red: #FF8A7E; --red-text: #FF9C92; --green: #3FD0A0; --green-text: #6FE0B8; --orange: #F2C94C;
    --green-bg: #164A3E; --orange-bg: #3A3418; --blue-bg: #1F4659; --red-bg: #4A2A2E; --pos: #9FD3E6;
    --on-primary: #0F2A37; --hero: #1F4659; --surface2: #1F4659; --subtle: #133445; --elev: #1F4659; --hint: #8FAAB7; --focus: #9FD3E6;
    --warn-bg: #3A3418; --warn-text: #F2C94C; --warn-line: #6B5A22; --red-line: #7A3A36; --red-strong: #FF9C92; --switch-off: #5E8FA5;
    --bc-fill: #2C5A70; --bc-hover: #3F748C; --tag: #FF8A7E; --done: #3FD0A0; --on-done: #06281C;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--primary); font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { background: var(--subtle); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { color: var(--red-text); border-color: var(--red-line); }
.btn.ghost { border-color: transparent; background: none; padding: 8px 4px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn.small { min-height: 44px; padding: 6px 12px; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; }
.back { background: none; border: 0; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 15px; font-weight: 600; cursor: pointer; align-self: flex-start; }

/* ---------- Header ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--gutter); background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand img.mark { height: 34px; width: auto; display: block; }
.brand img.word { height: 18px; width: auto; display: block; }
.brand .area { font-size: 12px; font-weight: 600; color: var(--muted2); border-left: 1px solid var(--line); padding-left: 8px; white-space: nowrap; }
.seg { display: inline-flex; background: var(--surface2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; min-height: 38px; min-width: 44px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--muted); border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.seg.light { background: rgba(255,255,255,.15); }
.seg.light button { color: #fff; }
.seg.light button[aria-pressed="true"] { background: #fff; color: var(--primary); }
.demo-banner { background: var(--warn-bg); color: var(--warn-text); font-size: 13px; padding: 6px var(--gutter); text-align: center; border-bottom: 1px solid var(--warn-line); }

/* ---------- Layout ---------- */
.page { max-width: 560px; margin: 0 auto; padding: 18px var(--gutter) 96px; }
.page.wide { max-width: 1200px; }
.physio-shell { display: block; }
.side-nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px var(--gutter); background: var(--card); border-bottom: 1px solid var(--line); }
.side-nav button { border: 0; background: none; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.side-nav button[aria-current="page"] { background: var(--blue-bg); color: var(--primary); }
@media (min-width: 900px) {
  .physio-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 57px); }
  .side-nav { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--line); padding: 16px 12px; overflow: visible; }
  .side-nav button { text-align: left; }
  .physio-shell .page { padding-bottom: 40px; }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.dark { background: var(--hero); color: #fff; border-color: var(--hero); }
.card h2 + p { margin-top: 4px; }
.label-up { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted2); }
.card.dark .label-up { color: #C9D6DD; }
.step-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); }
.listrow { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--surface2); }
.listrow:last-child { border-bottom: 0; }
.hr { height: 1px; background: var(--surface2); border: 0; margin: 4px 0; }

/* ---------- Chips / Tags ---------- */
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.band-wb, .band-b { background: var(--orange-bg); color: var(--orange); }
.band-av { background: var(--blue-bg); color: var(--primary); }
.band-a, .band-wa { background: var(--green-bg); color: var(--green-text); }
.band-none { background: var(--surface2); color: var(--muted); }
.tag-s { background: var(--green-bg); color: var(--green-text); }
.tag-c { background: var(--blue-bg); color: var(--primary); }
.tag-e { background: var(--orange-bg); color: var(--orange); }
.tag-n { background: var(--surface2); color: var(--muted); }
.chip.small { font-size: 11px; padding: 2px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.pick[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tagpill { display: inline-flex; align-items: center; gap: 4px; background: var(--blue-bg); color: var(--primary); border-radius: 999px; padding: 2px 4px 2px 12px; font-size: 13px; font-weight: 600; }
.tagpill button { border: 0; background: none; color: var(--primary); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.status-ok { color: var(--green-text); font-weight: 700; }
.status-warn { color: var(--orange); font-weight: 700; }
.status-bad { color: var(--red-text); font-weight: 700; }

/* ---------- Forms ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=date], input[type=time], select, textarea { min-height: 44px; border-radius: 10px; border: 1px solid var(--line2); padding: 8px 12px; font-size: 16px; background: var(--card); width: 100%; }
textarea { min-height: 72px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.check.on { border-color: var(--primary); }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--primary); }
.switch { width: 52px; height: 32px; border-radius: 999px; border: 0; background: var(--switch-off); position: relative; flex: none; cursor: pointer; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch span { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] span { left: 24px; }
.filebox { border: 2px dashed var(--line2); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--subtle); }

/* ---------- Tabellen (Physio) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--surface2); vertical-align: top; }
table.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted2); background: var(--subtle); white-space: nowrap; }
table.t tr.warn td { background: var(--warn-bg); }
table.t tr.bad td { background: var(--red-bg); }
table.t td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.issue { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--orange-bg); font-size: 14px; }
.issue.err { background: var(--red-bg); }
.issue .grow { min-width: 0; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.steps .st { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.steps .st b { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: var(--muted); font-size: 12px; }
.steps .st.done { background: var(--green-bg); color: var(--green-text); border-color: var(--green-bg); }
.steps .st.done b { background: var(--green); color: #fff; }
.steps .st.cur { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.steps .st.cur b { background: var(--on-primary); color: var(--primary); }
.trial { display: grid; grid-template-columns: 34px minmax(70px, auto) 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.trial:last-child { border-bottom: 0; }
.trial .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.trial.invalid .v { color: var(--muted2); text-decoration: line-through; }
details.acc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
details.acc > summary { list-style: none; cursor: pointer; padding: 12px 14px; min-height: 44px; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-weight: 700; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc[open] > summary { border-bottom: 1px solid var(--surface2); }
details.acc .acc-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Spieler:in: Ergebnisse ---------- */
.pbar { position: relative; padding: 5px 0; }
.pbar .scale { display: flex; height: 14px; border-radius: 7px; overflow: hidden; }
.pbar .scale span:nth-child(1) { width: 10%; background: #F1D3CB; }
.pbar .scale span:nth-child(2) { width: 15%; background: #F8E7E2; }
.pbar .scale span:nth-child(3) { width: 50%; background: #E3EAEE; }
.pbar .scale span:nth-child(4) { width: 15%; background: #D9ECE2; }
.pbar .scale span:nth-child(5) { width: 10%; background: #BFE0CF; }
.pbar .mk { position: absolute; }
.pbar .you { top: 0; width: 8px; height: 24px; margin-left: -4px; border-radius: 3px; background: var(--text); border: 2px solid var(--card); }
.pbar .team { top: 6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--muted2); background: var(--card); }
.pbar .posm { top: 7px; width: 10px; height: 10px; margin-left: -5px; background: var(--pos); transform: rotate(45deg); }
.pbar.lr { padding: 16px 0 4px; }
.pbar.lr .you { top: 13px; height: 20px; }
.pbar.lr .you.r { background: var(--red); }
.pbar.lr .lbl { top: 0; width: 16px; margin-left: -8px; text-align: center; font-size: 11px; font-weight: 700; }
.pbar.lr .team { top: 20px; } .pbar.lr .posm { top: 21px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-you { width: 6px; height: 16px; border-radius: 3px; background: var(--text); display: inline-block; }
.lg-team { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted2); background: var(--card); display: inline-block; }
.lg-pos { width: 9px; height: 9px; background: var(--pos); transform: rotate(45deg); display: inline-block; }
.explain { font-size: 13px; line-height: 1.5; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.ref { font-size: 12px; line-height: 1.4; color: var(--muted2); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 13px; }
.three b { font-size: 15px; }
.stand { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.stand.old { color: var(--orange); }
.bigbtn { text-align: left; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; cursor: pointer; width: 100%; }
.bigbtn.dark { background: var(--hero); color: #fff; border-color: var(--hero); flex-direction: column; align-items: stretch; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-bg); display: flex; align-items: center; justify-content: center; flex: none; }
.bar-row { display: flex; flex-direction: column; gap: 4px; }
.hbar { height: 8px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.hbar span { display: block; height: 8px; border-radius: 4px; }

/* ---------- Tab-Leiste (mobil) ---------- */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); display: flex; justify-content: center; z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
.tabs .inner { display: flex; width: 100%; max-width: 560px; }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 6px 0; min-height: 56px; color: var(--muted2); font-size: 11px; font-weight: 600; cursor: pointer; }
.tabs button[aria-current="page"] { color: var(--primary); font-weight: 700; }
.tabs svg { width: 22px; height: 22px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; background: var(--hero); color: #fff; display: flex; justify-content: center; }
.login .inner { width: 100%; max-width: 440px; padding: 20px var(--gutter) 32px; display: flex; flex-direction: column; }
.login .logo { margin: 40px auto 0; width: 230px; max-width: 70%; height: auto; display: block; }
.login p.sub { color: #D5E0E6; }
.login label { color: #fff; font-size: 13px; font-weight: 600; }
.login input { border: 0; height: 52px; color: var(--text); caret-color: var(--primary); }
.login input::placeholder { color: #8796A0; }
.login .btn.white { background: #fff; color: #1F4659; border-color: #fff; min-height: 52px; }
.login .panel { background: rgba(255,255,255,.1); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.login .demo { background: var(--card); color: var(--text); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.login .foot { margin-top: auto; padding-top: 28px; font-size: 12px; color: #C9D6DD; display: flex; gap: 8px; align-items: center; }

/* ---------- Dialog / Toast ---------- */
dialog.dlg { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.dlg::backdrop { background: rgba(24, 36, 43, .55); }
dialog.dlg .dlg-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); overflow-y: auto; }
dialog.dlg .dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.recipients { border: 1px solid var(--line); border-radius: 12px; max-height: 320px; overflow-y: auto; }
.recipients div { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.recipients div:last-child { border-bottom: 0; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 76px; background: var(--text); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100vw - 32px); z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.ranking .rk { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--surface2); width: 100%; background: var(--card); border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; min-height: 56px; }
.ranking .rk:last-child { border-bottom: 0; }
.flag { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 700; color: var(--red-text); }

@media print {
  .topbar, .tabs, .no-print, .demo-banner { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
}
input[type=file] { max-width: 100%; min-height: 44px; font-size: 14px; }
.filebox { min-width: 0; max-width: 100%; }
.page, .card, .stack > * { min-width: 0; }
.physio-shell > main { min-width: 0; }
.brand { overflow: hidden; }
@media (max-width: 420px) { .brand .area { display: none; } .brand img.word { height: 15px; } }
.bigbtn.dark .label-up { color: #C9D6DD; }

/* Trainingsplan: Wochenleiste (Spieler:in) */
.wk-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; touch-action: pan-y; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 8px; border: 0; background: none; border-radius: 14px; cursor: pointer; min-height: 72px; }
.wk-wd { font-size: 12px; font-weight: 600; color: var(--muted2); }
.wk-num { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: 17px; }
.wk-day.today .wk-num { box-shadow: inset 0 0 0 2px var(--primary); }
.wk-day.sel .wk-num { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.wk-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.wk-dot.on { background: var(--primary); }
.wk-dot.done { background: var(--green); }
.wk-item { padding: 12px 14px; }
.wk-item summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.wk-item summary::-webkit-details-marker { display: none; }
.wk-tile { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-bg); }
.wk-tile.done { background: var(--green); }
.wk-title { overflow-wrap: anywhere; }
.wk-ex { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 4px; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--primary); }
.iconbtn:hover:not([disabled]) { background: var(--blue-bg); }
.iconbtn[disabled] { opacity: .3; cursor: default; }

/* ---------- Patientenbereich: Fragebögen ---------- */
.qform .q-item { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qform .q-item.missing { border-color: var(--red-text); box-shadow: 0 0 0 2px var(--red-line); }
.qform .q-text { font-weight: 600; font-size: 15px; padding: 0; }
.qform .q-section { font-weight: 700; color: var(--primary); margin-top: 6px; }
.q-opts { display: flex; flex-direction: column; gap: 8px; }
.q-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line2); border-radius: 12px; padding: 11px 12px; min-height: 44px; cursor: pointer; font-size: 15px; }
.q-opt input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--primary); }
.q-opt:has(input:checked) { border-color: var(--primary); background: var(--blue-bg); }
.q-scale-row { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.q-num { position: relative; display: flex; }
.q-num input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.q-num span { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.q-num input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.q-num input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.q-ends { display: flex; justify-content: space-between; gap: 12px; }
.q-ends span:last-child { text-align: right; }
@media (max-width: 420px) { .q-scale-row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.area-switch { margin: 0 4px 0 0; }
.topbar .area-switch { margin-left: 10px; }
.topbar .area-switch button { font-size: 13px; padding: 6px 12px; white-space: nowrap; }
@media (max-width: 640px) { .topbar { flex-wrap: wrap; } .topbar .brand { flex-wrap: wrap; row-gap: 6px; } .topbar .area-switch { margin-left: 0; } }
.qform legend.q-text { float: left; width: 100%; margin: 0; }
.qform legend.q-text + * { clear: both; }

/* ---------- Übungsbibliothek ---------- */
.ex-filters { display: grid; grid-template-columns: 2fr 1.4fr 1.4fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 860px) { .ex-filters { grid-template-columns: 1fr 1fr; } }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ex-item { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; font: inherit; color: inherit; min-height: 44px; }
.ex-item:hover { border-color: var(--primary); }
.ex-item:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ex-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ex-tags .tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface2); color: var(--text); }
.ex-tags .tag.strong { background: var(--blue-bg); color: var(--primary); font-weight: 600; }
.ex-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; min-height: 36px; }
.ex-chip input { margin: 0; accent-color: var(--primary); }
.ex-chip:has(input:checked) { border-color: var(--primary); background: var(--blue-bg); color: var(--primary); font-weight: 600; }
.ex-video { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1F4659; }
.ex-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ex-video-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; color: #fff; }
.ex-video-ph .xs.muted { color: #C9D6DD; }
.ex-editor textarea { width: 100%; font: inherit; border: 1px solid var(--line2); border-radius: 10px; padding: 10px; }

/* ---------- Trainingspläne / Workouts ---------- */
.grid3 { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 10px; }
@media (max-width: 700px) { .grid3 { grid-template-columns: 1fr; } }
.icon-btn { min-width: 36px; min-height: 36px; border: 1px solid var(--line2); background: var(--card); border-radius: 10px; font-size: 16px; cursor: pointer; color: var(--text); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.wk-block { --bc: var(--primary); border: 1px solid var(--line); border-left: 6px solid var(--bc); border-radius: 14px; background: var(--card); padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.wk-block-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--bc); }
.wk-block-h input, .wk-block-h select { width: auto; flex: 1; min-width: 140px; }
.wk-letter { width: 32px; height: 32px; border-radius: 50%; background: var(--bc); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.wk-item { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--surface2); }
.wk-block-h + .wk-item, .wk-block-h + p + .wk-item { border-top: 0; padding-top: 0; }
.wk-item h3 { font-size: 17px; display: flex; align-items: center; gap: 6px; }
.wk-badge { display: inline-flex; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }
.wk-last { background: var(--subtle); border-radius: 8px; padding: 6px 10px; }
.coach-note { background: var(--warn-bg); border-left: 3px solid #E0A33B; border-radius: 8px; padding: 8px 10px; margin: 0; }
.coach-note p { margin-top: 2px; }
.coach-note > summary { cursor: pointer; font-weight: 700; min-height: 28px; display: flex; align-items: center; gap: 6px; list-style: none; }
.coach-note > summary::-webkit-details-marker { display: none; }
.coach-note > summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.coach-note[open] > summary::after { content: '▴'; }
.coach-note > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tag-pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface2); white-space: nowrap; }
.sets { display: flex; flex-direction: column; gap: 6px; }
.set-row { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.set-check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line2); background: var(--card); font-weight: 700; color: var(--muted); cursor: pointer; flex: none; }
.set-check.on { background: var(--done); border-color: var(--done); color: var(--on-done); }
.set-check:disabled { cursor: default; }
.set-f { display: flex; flex-direction: column; gap: 2px; width: 62px; text-align: center; }
.set-f input { min-height: 44px; text-align: center; font-variant-numeric: tabular-nums; padding: 6px; }
.set-f input::placeholder { color: var(--hint); }
.set-f.pain input { border-color: #E0A33B; }
.set-row.edit .set-f { width: 72px; }
.set-rest { align-self: center; }
.check-inline { display: inline-flex; gap: 4px; align-items: center; align-self: center; }
.pain-box { border: 1px dashed #E0A33B; border-radius: 12px; padding: 10px; }
.bodychart { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 420px; }
.bodychart figure { margin: 0; text-align: center; }
.bodychart svg { width: 100%; height: auto; }
.bodychart svg [data-region] { fill: var(--bc-fill); stroke: #9FB3BF; stroke-width: 1.2; cursor: pointer; }
.bodychart svg [data-region]:hover { fill: var(--bc-hover); }
.bodychart svg [data-region].on { fill: #E07A3B; stroke: #B0552A; }
.bodychart svg [data-region]:focus-visible { outline: none; stroke: var(--primary); stroke-width: 3; }
.bodychart .bc-side { font-size: 13px; font-weight: 700; fill: var(--muted2); }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 760px) { .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.day-col { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 90px; }
.day-wk { text-align: left; border: 1px solid var(--line2); border-left: 4px solid var(--primary); border-radius: 8px; background: var(--subtle); display: flex; flex-direction: column; color: inherit; position: relative; user-select: none; -webkit-user-select: none; }
.day-open { text-align: left; border: 0; background: transparent; padding: 6px 8px 2px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; color: inherit; }
.day-tools { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 2px; }
.day-grip, .day-copy { border: 0; background: transparent; color: var(--muted); min-width: 36px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; }
.day-grip { cursor: grab; touch-action: none; }
.day-grip svg { fill: currentColor; stroke: none; }
.day-copy:hover, .day-grip:hover { color: var(--primary); background: var(--subtle); }
.day-wk.dragging { z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.22); opacity: .95; pointer-events: none; cursor: grabbing; }
.day-wk.is-done { border-left-color: var(--line2); opacity: .7; }
.as-cal .day-open { cursor: default; }
.as-cal-row { background: var(--subtle); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.day-col.drop { outline: 2px dashed var(--primary); outline-offset: -2px; background: var(--subtle); }
.day-add { border: 1px dashed var(--line2); border-radius: 8px; background: transparent; min-height: 32px; cursor: pointer; color: var(--muted); font-size: 18px; }
.ex-tags button.tag { border: 0; cursor: pointer; font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--blue-bg); color: var(--primary); min-height: 28px; }
@media (max-width: 480px) {
  .wk-block { padding: 10px; }
  .set-row { gap: 4px; flex-wrap: nowrap; }
  .set-f { width: auto; flex: 1 1 0; min-width: 0; }
  .set-check { width: 40px; height: 40px; }
  .set-row.edit { flex-wrap: wrap; }
}
.set-wu { min-width: 30px; height: 30px; align-self: center; border-radius: 8px; border: 1px dashed var(--line2); background: var(--card); color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; flex: none; }
.set-wu.on { background: var(--warn-bg); border: 1px solid #E0A33B; color: var(--warn-text); }
.set-row.is-wu .set-check { border-style: dashed; }
.set-row.is-wu input { background: var(--warn-bg); }
.week-pick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day-pick { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; font: inherit; color: var(--text); padding: 6px 2px; }
.day-pick.quality { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.day-pick.easy { background: var(--blue-bg); border-color: var(--primary); color: var(--primary); }
.day-pick.off .xs { color: var(--muted); }
.swap-box { border: 1px solid var(--line2); border-radius: 12px; padding: 10px; background: var(--subtle); }
.swap-box .ex-item { min-height: 44px; }
.ex-tags button.tag.on { background: var(--primary); color: var(--on-primary); }
.swap-note { color: var(--warn-text); background: var(--warn-bg); border-radius: 8px; padding: 4px 8px; margin: 0; }

/* Reha-Art: Phasen, Kriterien, Trainingsfortschritt */
.phase-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.phase-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.phase-steps li > span:first-child { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface2); color: var(--muted); }
.phase-steps li.done > span:first-child { background: var(--green-bg); color: var(--green-text); }
.phase-steps li.now > span:first-child { background: var(--primary); color: var(--on-primary); }
.phase-steps li small { font-size: 11px; color: var(--muted); line-height: 1.2; overflow-wrap: anywhere; }
.phase-steps li.now small { color: var(--text); font-weight: 700; }
.meter { height: 10px; background: var(--surface2); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.crit-list, .prog-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.crit-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--surface2); }
.crit-dot { flex: 0 0 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2, var(--line2)); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.crit-list li.met .crit-dot { background: var(--green-text); border-color: var(--green-text); color: #fff; }
.prog-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--surface2); }
.crit-table input[type=text] { min-width: 90px; }
.crit-extra summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
@media (max-width: 480px) { .phase-steps li:not(.now) small { display: none; } }

/* Begrüßung mit Bild/Clip */
.greet { position: relative; border-radius: 18px; overflow: hidden; background: #0F2A3A; aspect-ratio: 4 / 5; max-height: 460px; width: 100%; }
.greet video, .greet img { width: 100%; height: 100%; object-fit: cover; display: block; }
.greet-zoom { animation: greetZoom 7s ease-out both; }
.greet-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; color: #fff; background: linear-gradient(to top, rgba(8, 24, 34, .85), rgba(8, 24, 34, 0)); animation: greetIn .8s .25s ease-out both; }
.greet-txt h1 { color: #fff; margin: 0; }
.greet-txt p { margin: 2px 0 0; opacity: .9; font-size: 14px; }
@keyframes greetZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes greetIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .greet-zoom, .greet-txt { animation: none; } }

/* Vereins-Branding: Vereinslogo neben dem MOVEO-Logo */
.topbar .club { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; color: var(--muted); font-size: 14px; }
.topbar .club img { height: 30px; width: auto; max-width: 90px; object-fit: contain; }

/* Übungsvideo im Workout: kleines Quadrat mit Play-Symbol, Klick vergrößert und spielt ab */
.vid-tile-wrap { align-self: flex-start; max-width: 100%; }
.vid-tile-wrap:has(.vid-open) { align-self: stretch; }
.vid-tile { width: 84px; height: 84px; border-radius: 14px; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--hero); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .15s ease; }
.vid-tile:hover, .vid-tile:focus-visible { transform: scale(1.05); }
.vid-tile:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.vid-play { font-size: 34px; line-height: 1; padding-left: 4px; }
.vid-cap { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.vid-open { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; animation: vid-grow .2s ease-out; }
.vid-open iframe { width: 100%; height: 100%; border: 0; display: block; }
.vid-close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
@keyframes vid-grow { from { transform: scale(.3); transform-origin: top left; opacity: .4; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vid-open { animation: none; } .vid-tile { transition: none; } }

/* Kopfzeile mit Vereinslogo: Logo größer, alles in einer Zeile (auch am Handy) */
.topbar .club img { height: 42px; max-width: 130px; }
.topbar .lo-ico { display: none; font-size: 20px; line-height: 1; }
@media (max-width: 640px) { .topbar.has-club, .topbar.has-club .brand { flex-wrap: nowrap; } }
@media (max-width: 460px) {
  .topbar.has-club { gap: 6px; }
  .topbar.has-club .brand { gap: 6px; }
  .topbar.has-club .brand img.mark { height: 30px; }
  .topbar.has-club .brand img.word { height: 13px; }
  .topbar.has-club .club { margin-left: 2px; gap: 6px; }
  .topbar.has-club .club img { height: 38px; max-width: 76px; }
  .topbar.has-club .seg button { min-width: 36px; padding: 6px 7px; font-size: 12px; }
  .topbar.has-club .lo-txt { display: none; }
  .topbar.has-club .lo-ico { display: inline; }
  /* Mehrere Rollen + Vereinslogo: Logos oben, Bereichswahl/Sprache/Abmelden in eigener Zeile */
  .topbar.has-club.has-switch { flex-wrap: wrap; row-gap: 6px; }
  .topbar.has-club.has-switch > .row { width: 100%; justify-content: flex-end; }
  .topbar.has-club .btn.ghost.small { padding: 6px 8px; min-width: 40px; }
}

/* Mitgliedschaft „MOVEO Training“ (Demo der Stripe-Anbindung) */
.pay-card { border: 2px solid var(--primary); }
.pay-list { margin: 0; padding-left: 20px; }
.pay-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pay-plan.best { border: 2px solid var(--primary); }
.pay-price { font-size: 30px; font-weight: 700; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stripe-sim { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.stripe-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 14px; background: var(--subtle); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.stripe-test { background: #FFDE92; color: #5C3B00; font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 11px; letter-spacing: .03em; }
.stripe-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stripe-left { background: #0A2540; color: #fff; padding: 22px 18px; }
.stripe-amount { font-size: 32px; font-weight: 700; margin-top: 6px; }
.stripe-right { padding: 18px; }

/* Wochenkalender der Workouts */
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; min-height: 74px; border: 1px solid transparent; border-radius: 12px; background: none; cursor: pointer; color: var(--text); }
.cal-day .cal-wd { font-size: 11px; font-weight: 600; color: var(--muted2); text-transform: uppercase; letter-spacing: .03em; }
.cal-day .cal-num { font-size: 17px; font-weight: 700; width: 34px; height: 34px; line-height: 34px; border-radius: 50%; text-align: center; }
.cal-day.today .cal-num { box-shadow: inset 0 0 0 2px var(--primary); }
.cal-day.sel { background: var(--surface2); border-color: var(--line); }
.cal-day.sel .cal-num { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.cal-dots { display: flex; gap: 3px; min-height: 9px; }
.cal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--primary); vertical-align: middle; }
.cal-dot.cond { border-color: #E07A1F; }
.cal-dot.on { background: var(--primary); }
.cal-dot.cond.on { background: #E07A1F; }
.cal-dot.skip { opacity: .35; }
.cal-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
/* Polar-Schaltfläche in der Uhr-Karte */
.polar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.polar-btn { display: inline-flex; align-items: center; gap: 8px; }
.polar-dot { width: 10px; height: 10px; border-radius: 50%; background: #D10027; display: inline-block; }

/* Sätze im Workout hinzufügen / entfernen */
.set-del { width: 32px; height: 32px; align-self: end; margin-bottom: 6px; border: 0; background: none; color: var(--red-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; }
.set-del:hover, .set-del:focus-visible { background: var(--red-bg); }
.set-add { align-self: flex-start; text-decoration: none; padding: 4px 0; }

/* Kader-Anmeldung (öffentliches Formular) */
.signup-head { display: flex; align-items: center; gap: 12px; padding: 6px 0 2px; }
.signup-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signup input, .signup select { font-size: 16px; min-height: 48px; }

/* Geräteeinstellung je Übung (z. B. Sitz 5 · Fußraster 2) */
.dev-set { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 4px; padding: 5px 10px; border-radius: 10px; background: var(--subtle); color: var(--primary); }
.dev-set svg { flex: none; }
.dev-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
@media (max-width: 520px) { .dev-row { grid-template-columns: 1fr; gap: 2px; } }

/* Satz kopieren, RPE-Auswahl im Satz */
.set-copy { width: 32px; height: 32px; align-self: end; margin-bottom: 6px; border: 0; background: none; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; flex: none; }
.set-copy:hover, .set-copy:focus-visible { background: var(--subtle); }
.set-del { flex: none; }
.set-f select { min-height: 44px; text-align: center; text-align-last: center; font-variant-numeric: tabular-nums; padding: 6px 2px; background-image: none; -webkit-appearance: none; appearance: none; width: 100%; }
.set-f select.is-empty { color: var(--hint); }
.set-row.is-wu select { background: var(--warn-bg); }
@media (max-width: 420px) { .set-copy, .set-del { width: 28px; } .set-wu { flex: none; } }

.set-links { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.pain-add { color: var(--warn-text); }
@media (max-width: 420px) { .set-f input, .set-f select { padding: 6px 1px; font-size: 15px; } }
/* Schmerz-Übersicht (Physio) */
.pain-list { display: grid; gap: 8px; }
.pain-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--red-strong); border-radius: 10px; background: var(--card); }
.pain-score { font-weight: 800; font-size: 20px; color: var(--red-text); min-width: 52px; font-variant-numeric: tabular-nums; }

.set-f input.is-flag { border-color: var(--red-text); background: var(--red-bg); color: var(--red-text); font-weight: 700; }

/* Adhärenz (Trainer-Ansicht) */
.adh-list { display: grid; gap: 12px; }
.adh-row { display: grid; gap: 5px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.adh-row:last-child { border-bottom: 0; padding-bottom: 0; }
.adh-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.adh-pct { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adh-weeks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.adh-cell { overflow: hidden; white-space: nowrap; }
.adh-cell { text-align: center; font-size: 11px; font-weight: 700; padding: 4px 0; border-radius: 5px; font-variant-numeric: tabular-nums; }
.adh-head { display: grid; gap: 3px; }
.adh-head .adh-weeks span { text-align: center; font-size: 10px; }

.kind-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--primary); }
.kind-dot.cond { background: #E08A1E; }
.kind-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--subtle); color: var(--primary); white-space: nowrap; flex: none; }
.kind-tag.cond { background: var(--warn-bg); color: var(--warn-text); }
.adh-line { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; align-items: center; }
.adh-kind { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.adh-dates span { text-align: center; font-size: 10px; }

/* Einklappbare Kacheln (Trainer-Ansicht) */
details.fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold.flush > summary { padding: 14px 16px; }
details.fold .fold-arrow { color: var(--muted); font-size: 18px; transition: transform .15s; flex: none; }
details.fold[open] .fold-arrow { transform: rotate(180deg); }
details.fold .fold-body { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { details.fold .fold-arrow { transition: none; } }

/* Online-Check-in */
.ci-card.is-locked { background: var(--subtle); color: var(--muted2); border-style: dashed; }
.ci-card.is-locked h2, .ci-card.is-locked p { color: var(--muted2); }
.ci-card.is-locked .btn[disabled] { opacity: .55; cursor: not-allowed; }
.ci-card .ci-note { color: var(--muted); }
.ci-quota { display: flex; gap: 8px; flex-wrap: wrap; }
.ci-times { display: flex; gap: 8px; flex-wrap: wrap; }
.ci-times .pick[disabled] { opacity: .45; cursor: not-allowed; }
.ci-row { gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ci-row:last-of-type { border-bottom: 0; }
.ci-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.ci-frame iframe { display: block; width: 100%; height: 640px; border: 0; }
.ci-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.ci-log { border-top: 1px solid var(--line); padding-top: 12px; }

.pay-group h2 { margin: 6px 0 0; }
.pay-group .pay-plan h3 { margin: 0; font-size: 17px; }

/* Selbst ergänzt / weggelassen im Workout */
.mod-tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--warn-text); background: var(--warn-bg); border-radius: 6px; padding: 1px 6px; }
.wk-item.is-removed { opacity: .75; }
.wk-item.is-removed s { color: var(--muted); }

/* Video-Vorschaubild (eigene Kopie des YouTube-Vorschaubilds) */
.vid-thumb { position: relative; display: block; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #0d2a36; cursor: pointer; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-thumb-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(31,74,92,.88); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; padding-left: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .15s; }
.vid-thumb:hover .vid-thumb-play, .vid-thumb:focus-visible .vid-thumb-play { transform: translate(-50%, -50%) scale(1.08); }
.vid-thumb:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.vid-tile-wrap:has(.vid-thumb) { align-self: stretch; }
.ex-item.has-thumb { display: grid; grid-template-columns: 96px 1fr; column-gap: 10px; align-items: start; }
.ex-item.has-thumb > :not(.ex-thumb) { grid-column: 2; }
.ex-item .ex-thumb { grid-row: 1 / span 3; width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--subtle); }
@media (prefers-reduced-motion: reduce) { .vid-thumb-play { transition: none; } }

/* Erledigtes Workout: Hinweis „nur Ansicht“ / nachträglich bearbeiten */
.done-note { border-left: 4px solid var(--pos); padding: 12px 14px; }

/* Übungsauswahl (Tauschen / Hinzufügen): ganze Kategorie zum Durchscrollen, Mehrfachauswahl */
.pick-scroll { max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding: 2px; border-radius: 10px; -webkit-overflow-scrolling: touch; }
.pick-scroll:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ex-item.pick { position: relative; padding-left: 44px; }
.ex-item.pick::before { content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); background: var(--card); }
.ex-item.pick.on { border-color: var(--primary); }
.ex-item.pick.on::before { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--card); }
.ss-tag { margin-left: 6px; }
.pick-scroll[hidden] { display: none; }
/* Einträge dürfen in der scrollenden Liste nicht gestaucht werden (sonst überlappen sie ab vielen Übungen) */
.pick-scroll > * { flex: 0 0 auto; }

/* Wissen: Bibliothek für Patient:innen (Themen nach Kategorie, Empfehlungen der Physio oben) */
.kn-item { align-items: flex-start; gap: 12px; padding: 12px; }
.kn-item[hidden], .kn-lib [hidden] { display: none !important; }
.kn-thumb { width: 80px; height: 45px; flex: none; object-fit: cover; border-radius: 8px; background: var(--primary); margin-top: 2px; }
.kn-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kn-title { font-weight: 700; text-align: left; }
.kn-kicker { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tag); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kn-new, .kn-rec { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.kn-new { background: #B4533C; color: #fff; }
.kn-rec { background: var(--blue-bg); color: var(--primary); }
.kn-seen { color: var(--green-text); font-weight: 600; }
.kn-sub { font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.kn-cat { display: flex; align-items: baseline; gap: 2px; }
.kn-count { font-weight: 500; }
.kn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-chip { border: 1px solid var(--line2); background: var(--card); color: var(--text); border-radius: 999px; padding: 6px 12px; min-height: 36px; font-size: 13px; font-weight: 600; cursor: pointer; }
.kn-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.kn-recbox { border-color: var(--red-line); background: var(--red-bg); }
.kn-pick legend { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 6px 0 2px; }

/* Workout-Editor (Physio): Vorschaubild/Video der gewählten Übung */
.edit-vid { max-width: 420px; }
/* Rest-Termine nach der Physio (Check-ins) */
.rest-big { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0; }
.ci-len-opt { display: inline-flex; align-items: center; gap: 6px; }
.ci-len-opt input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; }
.rest-preview { background: var(--subtle); border-radius: 10px; padding: 10px 12px; }
.rest-line input, .rest-line select { min-height: 44px; }

/* =====================================================================================
   12.11.2026 – Dunkle Ansicht (Ergänzungen), Workout-Ansicht, Muskel-Ansicht, Profil löschen
   ===================================================================================== */
:root { --mus-p: #B3261E; --mus-s: #F2A8A0; --mus-idle: #B4C6CF; --mus-base: #D5E0E6; --rest: #E0533F; --finish: #FF6B5E; --on-finish: #2A0B08; --pill-bg: #1F4659; --pill-ink: #FFFFFF; }
@media screen {
  :root[data-theme="dark"] { --mus-p: #D93A2B; --mus-s: #FFA59B; --mus-idle: #3F748C; --mus-base: #2C5A70; --rest: #FF6B5E; --pill-bg: #F2F7F9; --pill-ink: #0F2A37; }
  :root[data-theme="dark"] .ss-c0 { --ssc: #FF8A7E; } :root[data-theme="dark"] .ss-c1 { --ssc: #3FD0A0; } :root[data-theme="dark"] .ss-c2 { --ssc: #F2C94C; } :root[data-theme="dark"] .ss-c3 { --ssc: #9FD3E6; }
  :root[data-theme="dark"] .kg-chip { --kg-edge: #F2F7F9; border-width: 1px; }   /* dunkel: dünne weiße Umrandung; hell: dunkelgrau (Matthias 15.11.) */
  :root[data-theme="dark"] .btn.primary { background: var(--pill-bg); border-color: var(--pill-bg); color: var(--pill-ink); }
  :root[data-theme="dark"] .btn.primary:hover { background: #FFFFFF; }
  :root[data-theme="dark"] .btn[disabled], :root[data-theme="dark"] .btn[aria-disabled="true"] { background: #2C5468; border-color: #2C5468; color: #C3D4DC; }
  :root[data-theme="dark"] .login input { background: #FFFFFF; color: #18242B; }
  :root[data-theme="dark"] .login .demo { background: var(--card); }
  :root[data-theme="dark"] dialog.dlg { background: var(--card); }
  :root[data-theme="dark"] dialog.dlg::backdrop, :root[data-theme="dark"] dialog.sheet::backdrop { background: rgba(4, 14, 19, .7); }
  :root[data-theme="dark"] .toast { background: #F2F7F9; color: #0F2A37; }
  :root[data-theme="dark"] .demo-banner { background: #3A3418; color: #F2C94C; border-color: #6B5A22; }
  :root[data-theme="dark"] .bodychart svg [data-region] { stroke: #5E8FA5; }
  :root[data-theme="dark"] .bodychart svg [data-region].on { fill: #FF8A5E; stroke: #FFB89E; }
  :root[data-theme="dark"] .pbar .scale span:nth-child(1) { background: #6B3A36; }
  :root[data-theme="dark"] .pbar .scale span:nth-child(2) { background: #4A2E30; }
  :root[data-theme="dark"] .pbar .scale span:nth-child(3) { background: #2C5468; }
  :root[data-theme="dark"] .pbar .scale span:nth-child(4) { background: #1F5A4A; }
  :root[data-theme="dark"] .pbar .scale span:nth-child(5) { background: #237A60; }
  :root[data-theme="dark"] .stripe-sim, :root[data-theme="dark"] .ci-frame { background: var(--card); }
  :root[data-theme="dark"] .kn-new { background: #FF8A7E; color: #2A0B08; }
  :root[data-theme="dark"] .set-f input.is-flag { background: #4A2A2E; }
  :root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: var(--hint); }
  :root[data-theme="dark"] .side-nav button[aria-current="page"] { background: #1F4659; color: #F2F7F9; }
  :root[data-theme="dark"] .vid-tile { background: #1F4659; }
}
/* Logos: blau in der hellen, weiß in der dunklen Ansicht */
.logo-d { display: none !important; }
:root[data-theme="dark"] .logo-d { display: block !important; }
:root[data-theme="dark"] .logo-l { display: none !important; }
@media print { .logo-d { display: none !important; } .logo-l { display: block !important; } }
.theme-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.theme-btn:hover { background: var(--surface2); }

/* ---------- Schalter, Bottom-Sheets, 44-px-Symbolknöpfe ---------- */
.icon-44 { width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.icon-44:hover { background: var(--surface2); }
.sw-row { width: 100%; min-height: 64px; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px 0; cursor: pointer; font: inherit; }
.sw-row.small { min-height: 52px; }
.sw-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw-label { font-size: 15px; font-weight: 600; }
.sw-hint { font-size: 13px; color: var(--muted); }
.sw-track { width: 52px; height: 32px; border-radius: 16px; flex: none; position: relative; background: var(--bg); border: 1px solid var(--line2); transition: background .15s; }
.sw-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: left .15s; }
.sw-row[aria-checked="true"] .sw-track { background: var(--done); border-color: var(--done); }
.sw-row[aria-checked="true"] .sw-knob { left: 23px; }
.sw-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
dialog.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 88vh; border-radius: 24px 24px 0 0; background: var(--card); color: var(--text); box-shadow: 0 -10px 40px rgba(0,0,0,.3); }
dialog.sheet::backdrop { background: rgba(4, 14, 19, .55); }
.sheet-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; max-height: 88vh; overflow-y: auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-head h2 { font-size: 17px; }
.pill-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pill-opt { min-height: 48px; border-radius: 24px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pill-opt[aria-pressed="true"] { background: var(--pill-bg); border-color: var(--pill-bg); color: var(--pill-ink); }
.menu-item { min-height: 48px; border: 0; border-radius: 12px; background: var(--surface2); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; padding: 0 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.menu-item.danger { color: var(--red-text); }
.menu-item[disabled] { opacity: .5; cursor: not-allowed; }
.btn.pill { border-radius: 28px; min-height: 52px; }
.btn.pill-outline { border-radius: 28px; min-height: 52px; background: transparent; border-color: var(--line2); color: var(--text); }
.stack-xs { display: flex; flex-direction: column; gap: 3px; }

/* ---------- Workout: Übersicht ---------- */
.wo-ov-list { gap: 10px; }
.wo-ov-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; gap: 12px; align-items: center; }
.wo-ov-thumb { position: relative; width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--elev); color: var(--text); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wo-ov-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wo-ov-thumb svg { position: relative; fill: currentColor; stroke: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.wo-ov-thumb:has(img) svg { color: #FFFFFF; }
button.wo-ov-thumb { border: 0; padding: 0; cursor: pointer; font: inherit; } button.wo-ov-thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wo-vid-sheet .vid-open { max-width: none; animation: none; }
.wo-tag { font-size: 12px; font-weight: 700; color: var(--tag); letter-spacing: .01em; }
/* Supersatz/Zirkel: zusammengehörige Übungen in derselben Farbe */
.ss-c0 { --ssc: #B23A2E; } .ss-c1 { --ssc: #1E7A56; } .ss-c2 { --ssc: #9A5B00; } .ss-c3 { --ssc: #2F6F95; }
.ss .wo-tag { color: var(--ssc); }
.wo-ex.ss { border-left: 5px solid var(--ssc) !important; }
.wo-ov-item.ss { border-left: 5px solid var(--ssc); }
.wo-cols-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 0; }
.wo-start-wrap { position: sticky; bottom: 16px; z-index: 15; padding-top: 4px; }
.wo-screen.with-tabs .wo-start-wrap { bottom: calc(72px + env(safe-area-inset-bottom)); }
.wo-start { width: 100%; min-height: 56px; font-size: 17px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.wo-start svg { fill: currentColor; stroke: none; }
.mfig-pair { display: flex; gap: 4px; flex: none; }
.mfig-pair.small .mfig { width: 30px; height: auto; }
.mfig-pair.big { justify-content: center; gap: 24px; }
.mfig-pair.big .mfig { width: min(130px, 38vw); height: auto; }
.mfig { display: block; }
.mfig-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.mfig-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.mfig-legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.mfig-legend .sw.p { background: var(--mus-p); }
.mfig-legend .sw.s { background: var(--mus-s); }

/* ---------- Workout: gestartet ---------- */
.wo-bar { position: sticky; top: 0; z-index: 18; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 60px; margin: 0 calc(-1 * var(--gutter)); padding: 0 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.wo-elapsed { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wo-h1-sm { font-size: 20px; }
.wo-block { border: 0 !important; background: none !important; padding: 0 !important; gap: 12px; }
.wo-block-h { padding: 0 4px; }
.wo-ex { background: var(--card); border: 1px solid var(--line) !important; border-radius: 16px; padding: 14px 12px 10px !important; gap: 10px; }
.wo-ex-head { display: flex; gap: 8px; align-items: flex-start; }
.wo-ex-head h3 { font-size: 17px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.note-btn { color: var(--muted); }
.note-btn.has { background: var(--elev); color: var(--tag); }
.wo-note { font-size: 13px; background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 0; }
.wo-media { display: flex; gap: 10px; align-items: flex-start; }
.wo-vid { position: relative; width: 76px; height: 56px; flex: none; border: 0; border-radius: 10px; background: var(--elev); color: var(--text); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; padding: 0; }
.wo-vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wo-vid-play { position: relative; display: inline-flex; }
.wo-vid-play svg { fill: currentColor; stroke: none; }
.wo-vid:has(img) .wo-vid-play { color: #FFFFFF; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.wo-short { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wo-more { text-decoration: none; min-height: 32px; padding: 4px 0; font-size: 13px; align-self: flex-start; }
.wo-desc { background: var(--bg); border-radius: 12px; padding: 12px; }
.wo-table { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.wo-table .set-head, .wo-table .set-row { display: grid; gap: 6px; align-items: center; min-width: 0; }
/* Gewicht schnell wählen (unter der Satz-Zeile) */
.kg-bar { display: flex; gap: 6px; padding: 2px 0 6px; overflow-x: auto; }
.kg-chip { flex: 1 1 0; min-width: 56px; min-height: 44px; border: 1.5px solid var(--kg-edge, #3A4750); border-radius: 22px; background: var(--elev); color: var(--text); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.kg-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wo-table .set-head { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.wo-table .set-head > span:first-child { text-align: center; }
.wo-table .set-head .c { text-align: center; }
.wo-table .set-row { flex-wrap: nowrap; }
.set-no { width: 32px; height: 32px; margin: 0 auto; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: var(--elev); color: var(--text); }
.set-no.wu { background: #F2C94C; color: #2B2200; }
.set-last { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-table .set-f { width: auto; min-width: 0; display: block; }
.wo-table .set-f input, .wo-table .set-f select { width: 100%; min-height: 44px; height: 44px; border-radius: 10px; border: 1px solid transparent; background: var(--bg); text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 4px 2px; color: var(--text); }
.wo-table .set-f input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px var(--focus); }
.wo-table .set-f.pain input { border-color: #E0A33B; }
.wo-table .set-row.is-done input, .wo-table .set-row.is-done select { opacity: .65; }
.wo-table .set-row.is-wu input, .wo-table .set-row.is-wu select { background: var(--warn-bg); }
.set-more { width: 36px; height: 44px; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; padding: 0; }
.set-more:hover { background: var(--surface2); }
.wo-table .set-check { width: 44px; height: 44px; border-radius: 22px; border: 2px solid var(--line2); background: transparent; color: var(--line2); display: flex; align-items: center; justify-content: center; padding: 0; }
.wo-table .set-check svg { stroke-width: 3; }
.wo-table .set-check.on { border: 0; background: var(--done); color: var(--on-done); }
.wo-table .set-row.is-wu .set-check { border-style: dashed; }
.set-all { width: 44px; height: 44px; border-radius: 22px; border: 2px solid var(--line2); background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.set-all.on { border: 0; background: var(--done); color: var(--on-done); }
.set-all[disabled] { opacity: .5; cursor: default; }
.wo-table.ro .set-f input { background: transparent; }
.wo-ex-actions { gap: 6px 8px; align-items: center; flex-wrap: wrap; }
.wo-ex-actions > .linkbtn { font-size: 14px; white-space: nowrap; gap: 4px; }
.wo-ex-actions > .wo-drop { width: 40px; height: 40px; flex: none; }
.wo-ex-actions > .wo-cols-btn svg { width: 16px; height: 16px; }
.wo-ex-actions > .wo-drop { margin-left: auto; color: var(--muted); }
.wo-ex-actions > .swap-box { flex: 1 0 100%; }
.wo-swap-btn { text-decoration: none; padding: 4px 0; }
/* Übung tauschen: Vorschau unter der angetippten Übung */
/* „Nichts Passendes dabei?“ hebt sich ab: hell = MOVEO-Blau mit weißer Schrift, dunkel = Hellblau mit dunkler Schrift (beides aus der Palette) */
details.swap-other { border-color: var(--primary); overflow: hidden; }
details.swap-other > summary { background: var(--primary); color: var(--on-primary); border-bottom: 0; }
details.swap-other > summary .muted { color: var(--on-primary); }
details.swap-other > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.swap-item { display: flex; flex-direction: column; }
.swap-item > .ex-item { width: 100%; }
.swap-item.open > .ex-item { border-color: var(--primary); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.swap-preview { border: 1px solid var(--primary); border-top: 0; border-radius: 0 0 14px 14px; padding: 12px; background: var(--subtle); }
.swap-preview .mfig-pair { flex: none; }
.swap-preview .swap-pick { width: 100%; }
.wo-ex .set-links { gap: 2px 16px; }
.wo-ex .set-links .linkbtn { text-decoration: none; }
.finish-btn { min-height: 54px; border-radius: 27px; border: 0; background: var(--finish); color: var(--on-finish); font-size: 16px; }
.finish-btn:hover { background: #FF7F73; }
.wo-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wo-stats .card { display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.wo-stat { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wo-active { padding-bottom: 72px; }

/* ---------- Pausen-Timer ---------- */
.rest-bar { position: fixed; left: 50%; transform: translateX(-50%); width: min(540px, calc(100vw - 20px)); bottom: calc(16px + env(safe-area-inset-bottom)); height: 68px; border-radius: 34px; background: var(--elev); color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.35); display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px; z-index: 40; }
.rest-bar[hidden] { display: none; }
.wo-screen.with-tabs .rest-bar { bottom: calc(72px + env(safe-area-inset-bottom)); }
.rest-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rest-lbl { font-size: 12px; font-weight: 600; color: var(--tag); }
.rest-left { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rest-adj { width: 52px; height: 44px; border: 0; border-radius: 22px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; flex: none; }
.rest-skip { width: 48px; height: 48px; border: 0; border-radius: 24px; background: var(--pill-bg); color: var(--pill-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.rest-skip svg { fill: currentColor; stroke: none; }
body.resting .toast { bottom: 150px; }
@media (max-width: 380px) { .rest-adj { width: 44px; } .rest-bar { gap: 6px; } }

/* ---------- Profil löschen ---------- */
.del-card { border: 1px solid var(--red-line); }
.del-card .btn.danger-outline { border: 1px solid var(--red-text); color: var(--red-text); background: transparent; border-radius: 24px; min-height: 48px; }
.del-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.btn.danger-fill { background: var(--finish); border-color: var(--finish); color: var(--on-finish); }
.btn.danger-fill[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); }
.hr-fields { margin-top: -2px; }
.wo-table .set-f select.is-empty { color: var(--hint); font-weight: 500; }
.wo-bar { top: 64px; }
/* Kompakte Übungsauswahl (Kategorien → Übungen) */
.xpick-cats { gap: 6px; }
.xpick-cat { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.xpick-cat.open { border-color: var(--primary); }
.xpick-head { width: 100%; min-height: 48px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; cursor: pointer; border-radius: 12px; }
.xpick-n { min-width: 28px; height: 24px; border-radius: 12px; background: var(--surface2); color: var(--muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.xpick-chev { color: var(--muted); }
.xpick-cat .pick-scroll { padding: 0 8px 8px; max-height: min(46vh, 380px); }
.menu-item.set-copy, .menu-item.set-del { width: auto; height: auto; min-height: 48px; margin: 0; align-self: stretch; justify-content: flex-start; color: var(--text); }
.menu-item.set-del { color: var(--red-text); }

/* ---------- Version -63: Offline, Erinnerungen, „Wer braucht mich?“, Steigerung, Einführung, Rückmeldung, Fortschritt (Vorschau) ---------- */
.offline-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--warn-bg); color: var(--warn-text); border-bottom: 1px solid var(--warn-line); font-size: 14px; font-weight: 600; }
.offline-bar[hidden] { display: none; }
.offline-bar.is-bad { background: var(--red-bg); color: var(--red-text); border-bottom-color: var(--red-line); }
.offline-bar .off-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.offline-bar .btn { min-height: 44px; }
.prog-box { border: 1px solid var(--line2); border-left: 4px solid var(--done); border-radius: 10px; padding: 10px 12px; background: var(--subtle); display: flex; flex-direction: column; gap: 8px; }
.prog-box .btn { min-height: 44px; }
.prog-box.prog-line { flex-direction: row; align-items: center; gap: 8px; padding: 6px 4px 6px 10px; }
.prog-line .prog-txt { flex: 1; min-width: 0; } .prog-line .btn { flex: none; } .prog-line .prog-no { flex: none; width: 40px; height: 40px; font-size: 20px; color: var(--muted); }
/* Nur der aktuelle Block ist offen: die anderen Übungen als eine Zeile */
.wo-block.is-mini { gap: 8px; }
.wo-mini { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; color: var(--text); font: inherit; cursor: pointer; }
.wo-mini.ss { border-left: 5px solid var(--ssc); }
.wo-mini b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.wo-mini .wo-tag { flex: none; min-width: 22px; }
.wo-mini-n { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.wo-mini.is-done .wo-mini-n { color: var(--done); } .wo-mini.is-done b { color: var(--muted); }
.wo-mini:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.prog-tag { color: var(--green-text); font-weight: 600; }
.att-list { display: flex; flex-direction: column; gap: 8px; }
.att-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.att-main { display: flex; align-items: center; gap: 8px; }
.att-open { flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--text); }
.att-open:hover { background: var(--subtle); }
.att-reason { color: var(--muted); }
.att-reason.is-pain { color: var(--red-text); font-weight: 700; }
.att-seen, .att-read { min-height: 44px; flex: none; }
.att-fb { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.fb-box .att-fb { border: 1px solid var(--line); border-radius: 10px; }
.att-fb.is-new { border-left: 4px solid var(--primary); }
.att-fb q { color: var(--text); quotes: '„' '“'; }
.fb-show b { font-weight: 600; }
.intro { max-width: 460px; }
.intro-body { padding-bottom: 8px; }
.intro-body h2 { font-size: 21px; }
.intro-body p { font-size: 15px; }
.intro-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--blue-bg); color: var(--primary); }
.intro-icon svg { stroke: currentColor; }
.intro-dots { display: flex; gap: 6px; justify-content: center; padding: 6px 0; }
.intro-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.intro-dots span.on { background: var(--primary); width: 22px; border-radius: 4px; }
.intro-nav { justify-content: flex-end; }
.intro-nav .btn, .intro-skip { min-height: 44px; }
.intro-link { padding: 0; min-height: 44px; }
.rem-opts { padding-left: 4px; }
.wk8 { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; }
.wk8-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.wk8-val { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk8-bar { position: relative; width: 70%; max-width: 30px; min-height: 4px; background: var(--bc-fill); border-radius: 4px 4px 0 0; display: flex; align-items: flex-end; overflow: hidden; }
.wk8-fill { display: block; width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; }
.wk8-lbl { font-size: 11px; color: var(--muted); white-space: nowrap; }
.wk8-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--bc-fill); vertical-align: -2px; }
.wk8-key.fill { background: var(--primary); }
.pb-list { display: flex; flex-direction: column; }
.pb-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.pr-card h2 { color: var(--green-text); }
.fb-text { width: 100%; }
.legal-foot { display: flex; justify-content: center; align-items: center; gap: 4px 10px; flex-wrap: wrap; padding: 16px 16px 28px; font-size: 13px; }
.legal-foot a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; color: var(--primary); }
body:has(.tabs) .legal-foot { padding-bottom: 96px; }
.login .foot a { color: inherit; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.legal-link { color: var(--primary); }

/* Erinnerungen: Kopfzeile mit Schalter, Text erst auf Klick */
.rem-head { display: flex; align-items: center; gap: 12px; }
.rem-head h2 { flex: 1; margin: 0; min-width: 0; }
.rem-toggle { width: 100%; min-height: 44px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.rem-arrow { color: var(--muted); font-size: 16px; transition: transform .15s; }
.rem-toggle[aria-expanded="true"] .rem-arrow { transform: rotate(180deg); }
.sw-row.rem-sw { width: auto; min-height: 44px; flex: none; padding: 0; }
@media (prefers-reduced-motion: reduce) { .rem-arrow { transition: none; } }

/* ---------------------------------------------------------------- Assistent (Physio): verschiebbare Sprechblase + Chat */
#mv-assist { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
#mv-assist > * { pointer-events: auto; }
.as-bubble { position: fixed; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--hero); color: #fff; display: grid; place-items: center; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 6px 18px rgba(8, 28, 38, .35), 0 0 0 2px rgba(255, 255, 255, .85); }
.as-bubble:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.as-bubble.dragging { cursor: grabbing; transform: scale(1.06); }
.as-bubble .as-dot { fill: var(--hero); }
.as-bubble.busy .as-dot { animation: as-blink 1.1s infinite; }
.as-bubble.busy .as-dot:nth-of-type(2) { animation-delay: .18s; } .as-bubble.busy .as-dot:nth-of-type(3) { animation-delay: .36s; }
@keyframes as-blink { 0%, 60%, 100% { opacity: 1; } 30% { opacity: .15; } }
.as-panel { position: fixed; right: 12px; bottom: 12px; width: min(440px, calc(100vw - 24px)); height: min(680px, calc(100dvh - 24px)); display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 18px 50px rgba(8, 28, 38, .35); overflow: hidden; }
@media (max-width: 719px) { .as-panel { left: 0; right: 0; bottom: 0; width: 100%; height: min(86dvh, 720px); border-radius: 18px 18px 0 0; border-width: 1px 0 0; } }
.as-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 16px; background: var(--hero); color: #fff; }
.as-head .linkbtn { color: #fff; padding: 6px 8px; font-size: 13px; white-space: nowrap; }
.as-head-actions { display: flex; align-items: center; gap: 2px; }
.as-x { width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 10px; }
.as-x:focus-visible, .as-head .linkbtn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.as-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.as-log > * { flex: 0 0 auto; }
.as-empty { display: flex; flex-direction: column; gap: 8px; }
.as-ex-btn { text-align: left; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.as-ex-btn:hover { background: var(--subtle); }
.as-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.as-msg p { margin: 0; } .as-msg p + p, .as-msg p + ul, .as-msg ul + p { margin-top: 6px; }
.as-msg.user { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.as-msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.as-msg.error { align-self: flex-start; background: var(--card); border: 1px solid var(--red-line); color: var(--red-text); }
.as-ul { margin: 0; padding-left: 18px; }
.as-wait { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.as-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--primary); animation: as-rot .8s linear infinite; }
@keyframes as-rot { to { transform: rotate(360deg); } }
.as-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.as-card h3 { margin: 0; font-size: 17px; line-height: 1.25; } .as-card p { margin: 0; }
.as-h { margin: 6px 0 0; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted2); }
.as-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.as-kpi { background: var(--surface2); border-top: 3px solid var(--primary); border-radius: 0 0 8px 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.as-kpi strong { font-size: 20px; line-height: 1.2; }
.as-bars { display: flex; flex-direction: column; gap: 6px; }
.as-bar { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; align-items: center; gap: 8px; }
.as-track { height: 10px; background: var(--surface2); border-radius: 5px; overflow: hidden; } .as-track > span { display: block; height: 100%; background: var(--primary); }
.as-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.as-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.as-table th, .as-table td { padding: 7px 9px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.as-table thead th { background: var(--surface2); font-size: 12px; position: sticky; top: 0; }
.as-table tbody tr:last-child th, .as-table tbody tr:last-child td { border-bottom: 0; }
.as-table td { font-variant-numeric: tabular-nums; }
.as-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.as-actions a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.as-w { border-top: 1px solid var(--line); padding-top: 6px; }
.as-w summary { cursor: pointer; min-height: 32px; font-size: 14px; }
.as-ex { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.as-ex li { display: flex; flex-direction: column; font-size: 14px; }
.as-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.as-form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; line-height: 1.35; }
.as-mic { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: 20px; cursor: pointer; }
.as-mic.on { background: var(--red-text); border-color: var(--red-text); color: #fff; animation: as-pulse 1.2s infinite; }
@keyframes as-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 62, 62, .45); } 50% { box-shadow: 0 0 0 9px rgba(201, 62, 62, 0); } }
.as-send { min-height: 48px; }
@media (prefers-reduced-motion: reduce) { .as-bubble.busy .as-dot, .as-spin, .as-mic.on { animation: none; } }
@media print { #mv-assist { display: none !important; } }

/* ---------------------------------------------------------------- Nachrichten an die Physio */
#mv-chat { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
#mv-chat > * { pointer-events: auto; }
.ch-bubble .ch-badge { display: none; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #E0453A; border: 2px solid #fff; }
.ch-bubble.has-unread .ch-badge { display: block; }
.ch-hint { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ch-hint p { margin: 0; } .ch-hint .muted { color: inherit; opacity: .85; }
.ch-time { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.as-msg p { white-space: pre-wrap; }
.ch-count { align-self: center; min-width: 28px; text-align: right; }
.ch-count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: #C93E3E; color: #fff; font-size: 12px; font-weight: 700; }
.ch-row { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; padding: 12px 14px; min-height: 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.ch-row:hover { background: var(--subtle); } .ch-row.unread { border-color: var(--primary); }
.ch-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ch-thread { display: flex; flex-direction: column; gap: 10px; }
#chat-reply { width: 100%; }

/* Zugewiesener Plan einer Person: „Heute“ springt zur laufenden Woche */
.cal-week { scroll-margin-top: 84px; border-radius: 12px; }
.cal-week.flash { animation: cal-flash 1.4s ease-out; }
@keyframes cal-flash { 0% { box-shadow: 0 0 0 3px var(--focus); } 100% { box-shadow: 0 0 0 3px transparent; } }
.day-col.is-today { outline: 2px solid var(--primary); outline-offset: 1px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .cal-week.flash { animation: none; outline: 2px solid var(--focus); } }

/* Ausdruck (Übungsplan, Protokollbogen) */
.pr-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.pr-row a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* Assistent: Stopp, Wiederholen, Kopieren */
.as-user { align-self: flex-end; max-width: 88%; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.as-user .as-msg { max-width: 100%; align-self: auto; }
.as-tools { display: flex; gap: 2px; }
.as-tool { width: 36px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; }
.as-tool:hover { background: var(--surface2); color: var(--text); } .as-tool[disabled] { opacity: .4; cursor: default; }
.as-tool:focus-visible { outline: 2px solid var(--focus); }
/* Assistent: frühere Gespräche */
.as-hist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.as-hist-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 4px 6px 4px 4px; }
.as-hist-row.current { border-color: var(--primary); }
.as-hist-open { flex: 1 1 0; min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 0; background: none; color: var(--text); padding: 8px 10px; border-radius: 10px; cursor: pointer; font: inherit; }
.as-hist-open strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.as-hist-open:hover { background: var(--surface2); } .as-hist-open:focus-visible { outline: 2px solid var(--focus); }
.as-hist-row .as-tool { width: 44px; height: 44px; flex: none; }
.as-hist-ask { display: flex; gap: 6px; flex: 1 0 100%; justify-content: flex-end; padding: 0 4px 6px; }
.as-note { align-self: center; margin: 0; }
.as-stop { border-color: var(--red-line); color: var(--red-text); display: inline-flex; align-items: center; gap: 8px; }
.as-stop-sq { width: 11px; height: 11px; border-radius: 2px; background: currentColor; }

.as-loads { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--surface2); border-radius: 10px; }

/* ---------------------------------------------------------------- Trainingskalender (Physio: Patient:in / Athlet:in) */
.tc-title { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; }
.tc-title:hover .tc-more, .tc-title:focus-visible .tc-more { text-decoration: underline; }
.tc-more { font-size: 13px; font-weight: 600; color: var(--primary); }
.tc-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-nav .btn.ghost { min-width: 44px; font-size: 20px; padding: 4px 10px; }
.tc-scroll { overflow-x: auto; padding-bottom: 4px; }
.tc-week { display: grid; grid-template-columns: repeat(7, minmax(132px, 1fr)); gap: 6px; min-width: 960px; }
.tc-day { display: flex; flex-direction: column; gap: 6px; min-height: 72px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--subtle); }
.tc-day.is-empty { background: none; border-style: dashed; }
.tc-day.is-today { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.tc-day.flash { animation: cal-flash 1.4s ease-out; }
.tc-date { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted2); }
.tc-day.is-today .tc-num { background: var(--primary); color: var(--on-primary); border-radius: 10px; padding: 0 7px; }
.tc-wk { display: flex; flex-direction: column; gap: 5px; text-align: left; width: 100%; padding: 7px; border: 1px solid var(--line2); border-radius: 9px; background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.tc-wk:hover { border-color: var(--primary); }
.tc-wk.tc-is-missed { opacity: .78; }
.tc-head { display: flex; align-items: flex-start; gap: 6px; line-height: 1.25; }
.tc-st { flex: none; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; margin-top: 1px; border: 1.5px solid var(--line2); }
.tc-st.tc-done { background: var(--green); border-color: var(--green); color: #fff; }
.tc-st.tc-missed { background: var(--red); border-color: var(--red); color: #fff; }
.tc-block { display: flex; flex-direction: column; gap: 4px; border-left: 3px solid var(--bc); padding-left: 6px; }
.tc-kind { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bc); }
.tc-ex { display: flex; align-items: center; gap: 6px; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.tc-ex > span:last-child { min-width: 0; }
.tc-ex img, .tc-noimg { flex: none; width: 34px; height: 24px; border-radius: 4px; object-fit: cover; background: var(--surface2); }
.tc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
.tc-top h1 { margin: 0; }
.tc-headrow { display: grid; grid-template-columns: repeat(7, minmax(132px, 1fr)); gap: 6px; min-width: 960px; font-size: 12px; font-weight: 700; color: var(--muted2); padding: 0 6px; }
.tc-wrow { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; scroll-margin-top: 96px; min-width: 960px; }
.cal-dayhead { font-size: 16px; margin: 4px 0 0; }
#mv-update { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--primary); box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 14px; max-width: 560px; margin: 0 auto; }
/* Patientenliste: A–Z-Leiste und Buchstaben-Zwischenüberschriften */
.az-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.az { min-width: 32px; min-height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; }
.az.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.az:disabled { opacity: .3; cursor: default; }
.t tr.az-head th { text-align: left; font-size: 13px; letter-spacing: .08em; padding: 10px 12px 4px; background: transparent; color: var(--muted); border-bottom: 1px solid var(--line); }

/* Eigene Übungsvideos */
.ux-badge { display: inline-block; flex: none; font-size: 12px; font-weight: 600; border-radius: 12px; padding: 3px 9px; background: var(--elev); color: var(--text); white-space: nowrap; }
.ux-badge.ok { background: var(--green-bg); color: var(--green-text); } .ux-badge.warn { background: var(--warn-bg); color: var(--warn-text); } .ux-badge.bad { background: var(--red-bg); color: var(--red-text); }
.ux-video { border-radius: 12px; overflow: hidden; background: var(--surface2); aspect-ratio: 16 / 9; display: flex; }
.ux-video video { width: 100%; height: 100%; background: #000; }
.ux-play { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; min-height: 120px; }
.ux-play-ico { width: 52px; height: 52px; border-radius: 26px; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; padding-left: 3px; }
.ux-play:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.ux-opt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.ux-opt:has(input:checked) { border-color: var(--primary); background: var(--subtle); }
.ux-opt input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.ux-consent { background: var(--subtle); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14px; } .ux-consent p { margin: 0 0 8px; } .ux-consent p:last-child { margin: 0; }
.ux-stars { display: flex; gap: 6px; flex: none; } .ux-stars button { width: 40px; height: 40px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.ux-stars button.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); } .ux-stars button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ux-rate { gap: 8px; align-items: center; }

/* -114: Menü (⋯) und Info-Bild im laufenden Workout */
.wo-ex-head .wo-info { width: 60px; height: 46px; overflow: visible; }
.wo-ex-head .wo-info img { border-radius: 10px; }
.wo-info-i { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: italic 700 12px/20px Georgia, serif; text-align: center; box-shadow: 0 0 0 2px var(--surface, var(--bg)); }
.wo-info.has-hint .wo-info-i { background: var(--warn-text); color: var(--warn-bg); }
.wo-menu { flex: none; border: 1px solid var(--line); border-radius: 50%; }
.wo-menu-list { display: flex; flex-direction: column; }
.wo-mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 2px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wo-mi:first-child { border-top: 0; }
.wo-mi .grow { display: flex; flex-direction: column; min-width: 0; }
.wo-mi .grow .xs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-mi-ic { width: 28px; flex: none; display: inline-flex; justify-content: center; font-size: 20px; color: var(--primary); }
.wo-mi.pain-add .wo-mi-ic { color: var(--warn-text); }
.wo-mi.wo-drop, .wo-mi.wo-drop .wo-mi-ic { color: var(--red-text); }
.wo-info-sheet .coach-note { background: var(--warn-bg); border-left: 4px solid var(--warn-text); border-radius: 8px; padding: 8px 10px; }

/* ================= -118: ansprechendere Optik (gleiche Farbpalette) ================= */
:root { --shadow: 0 1px 2px rgba(16,40,52,.06), 0 6px 18px rgba(16,40,52,.08); --num: 'Oswald', 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif; --z1: #B9D3DE; --z2: #7FB3C7; --z3: #3F7F97; --z4: #FF6B5E; }
@media screen { :root[data-theme="dark"] { --shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 20px rgba(0,0,0,.28); --z1: #2C5468; --z2: #3F7F97; --z3: #7FB3C7; --z4: #FF8A7E; } }
@media screen {
  /* 3 Flächen statt Rahmen */
  .card, .wo-ov-item, .wo-mini, .bigbtn, .tr-stat { border-color: transparent; box-shadow: var(--shadow); }
  .wo-ex { border-color: transparent !important; box-shadow: var(--shadow); }
  .wo-ex.ss { border-left-color: var(--ssc) !important; }
  .wo-ov-item.ss { border-left-color: var(--ssc); }
  .card.dark, .bigbtn.dark { box-shadow: var(--shadow); }
  .card .card, .card .bigbtn, dialog .card { box-shadow: none; border-color: var(--line); }
  /* 2 Zahlen groß, Überschriften markant */
  h1 { font-family: var(--num); font-size: 28px; font-weight: 700; letter-spacing: .005em; line-height: 1.15; }
  .wo-h1-sm { font-size: 22px; }
  .wo-elapsed { font-family: var(--num); font-size: 24px; }
  .set-f input:not(:placeholder-shown) { font-weight: 700; font-size: 17px; }
  .set-f select:not(.is-empty) { font-weight: 700; font-size: 17px; }
  .wo-dose { color: var(--text); font-weight: 600; font-size: 14.5px; }
  /* 4 Bilder größer */
  .wo-ov-thumb { width: 64px; height: 64px; border-radius: 14px; }
  div.wo-ov-thumb { background: linear-gradient(145deg, var(--elev), var(--surface2)); }
  /* 5 Akzent nur für die Hauptaktion */
  .wo-start { background: var(--finish); border-color: var(--finish); color: var(--on-finish); }
  .wo-start:hover { background: #FF7F73; }
  .tr-links .btn.small { border-color: transparent; background: var(--surface2); }
  .tr-links .btn.small.ghost { background: none; text-decoration: underline; text-underline-offset: 3px; }
}
/* 1 Hauptsache: heutiges Workout */
.tr-today { gap: 2px; padding: 18px; }
.tr-today-title { font-family: var(--num); font-size: 24px; font-weight: 700; line-height: 1.15; }
.tr-today-meta { color: #C9D6DD; }
.tr-today-cta { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; min-height: 50px; border-radius: 25px; background: var(--finish); color: var(--on-finish); font-weight: 700; font-size: 16px; }
.tr-today-cta svg { fill: currentColor; stroke: none; }
.tr-today-done { color: var(--green-text); font-weight: 600; }
.tr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tr-stat { background: var(--subtle); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 9px; min-width: 0; }
.tr-stat b { display: block; font-family: var(--num); font-size: 24px; line-height: 1.05; }
.tr-stat span { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted2); }
/* 6 Bewegung */
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.wo-ring { --p: 0; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--done) calc(var(--p) * 1%), var(--surface2) 0); transition: --p .6s cubic-bezier(.2,.8,.2,1); }
.wo-ring > span { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .route-enter .page > .stack > *, .route-enter .wo-screen > * { animation: mv-rise .42s cubic-bezier(.2,.8,.2,1) both; }
  .route-enter .page > .stack > *:nth-child(2), .route-enter .wo-screen > *:nth-child(2) { animation-delay: .04s; }
  .route-enter .page > .stack > *:nth-child(3), .route-enter .wo-screen > *:nth-child(3) { animation-delay: .08s; }
  .route-enter .page > .stack > *:nth-child(4), .route-enter .wo-screen > *:nth-child(4) { animation-delay: .12s; }
  .route-enter .page > .stack > *:nth-child(n+5), .route-enter .wo-screen > *:nth-child(n+5) { animation-delay: .16s; }
  .set-check { transition: background .18s, border-color .18s; }
  .set-check.pop { animation: mv-pop .32s cubic-bezier(.3,1.6,.5,1); }
  .btn, .bigbtn, .finish-btn { transition: transform .12s; }
  .btn:active, .bigbtn:active, .finish-btn:active { transform: scale(.98); }
}
@keyframes mv-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mv-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.wo-bar, .wo-start-wrap, .rest-bar { animation: none !important; }
/* Ausdauer: Vorgabe mit Ablauf, Screenshot zuerst, Vergleich Vorgabe/Gemacht */
.cond-min { font-family: var(--num); font-size: 26px; font-weight: 700; line-height: 1; }
.cond-prof { display: flex; align-items: flex-end; gap: 2px; height: 60px; }
.cond-prof i { display: block; flex-basis: 0; min-width: 3px; border-radius: 4px 4px 0 0; }
.cond-prof .z1 { height: 30%; background: var(--z1); } .cond-prof .z2 { height: 48%; background: var(--z2); } .cond-prof .z3 { height: 72%; background: var(--z3); } .cond-prof .z4 { height: 100%; background: var(--z4); }
.cond-axis { display: flex; justify-content: space-between; }
.cond-steps { list-style: none; margin: 0; padding: 0; }
.cond-steps li { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-top: 1px solid var(--line); }
.cond-manual > summary, .watch-manual > summary { cursor: pointer; list-style: none; display: inline-flex; min-height: 44px; align-items: center; }
.cond-manual > summary::-webkit-details-marker, .watch-manual > summary::-webkit-details-marker { display: none; }
.cond-manual { text-align: left; }
.watch-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 2px dashed var(--primary); border-radius: 16px; padding: 20px 14px; cursor: pointer; color: var(--text); }
.watch-drop svg { color: var(--primary); }
.watch-drop b { font-size: 17px; }
.watch-drop.busy { border-style: solid; opacity: .8; }
.watch-cmp { display: grid; grid-template-columns: 1fr auto auto 22px; column-gap: 12px; align-items: baseline; font-size: 14.5px; }
.watch-cmp > * { padding: 8px 0; border-top: 1px solid var(--line); }
.watch-cmp > .cmp-h { border-top: 0; padding-top: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted2); text-align: right; }
.watch-cmp > b { font-family: var(--num); font-size: 19px; text-align: right; }
.watch-cmp .cmp-plan { color: var(--muted); text-align: right; }
.watch-cmp .cmp-ok { color: var(--green-text); font-weight: 700; }
.watch-cmp .cmp-off { color: var(--warn-text); font-weight: 700; }
/* -119: offene Workouts aufklappbar in der Startkachel (die Seite „Alle Workouts“ entfällt) */
.tr-openbox { background: var(--warn-bg); border-radius: 14px; padding: 8px 12px; }
.tr-openbox > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; font-weight: 700; color: var(--warn-text); }
.tr-openbox > summary::-webkit-details-marker { display: none; }
.tr-openbox[open] > summary { margin-bottom: 6px; }
.tr-openbox .ex-grid { padding-bottom: 4px; }
.tr-links { gap: 8px; flex-wrap: wrap; }

/* -122: Kachel „Dein Fortschritt“ + farbige Schmerzskala (grün bis 3, gelb 4–5, rot ab 6) */
:root { --pz-g: #2E7D5B; --pz-y: #C99A1A; --pz-r: #B8433A; }
.pg-quote { margin: 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--primary); font-size: 15px; font-weight: 600; line-height: 1.35; }
.pg-quote cite { display: block; margin-top: 4px; font-size: 12px; font-style: normal; font-weight: 600; color: var(--muted2); }
.pg-mets { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-mets.n1 { grid-template-columns: 1fr; }
.pg-mets.n3 > :first-child { grid-column: 1 / -1; }
.pg-met { position: relative; display: block; text-align: left; font: inherit; color: inherit; background: var(--subtle); border: 1px solid var(--line); border-radius: 14px; padding: 10px 26px 10px 12px; min-width: 0; }
button.pg-met { cursor: pointer; }
button.pg-met:active { transform: scale(.985); }
.pg-lab { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted2); }
.pg-v { display: block; font-family: var(--num); font-size: 26px; line-height: 1.1; margin-top: 2px; }
.pg-v small { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--muted2); }
.pg-d { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted2); }
.pg-d.up { color: var(--green-text); } .pg-d.down { color: var(--red-text); }
.pg-go { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted2); }
.pg-all { align-self: flex-start; }
.pg-big { margin: 0; font-family: var(--num); font-size: 34px; line-height: 1.1; }
.pg-big small { font-family: var(--font, inherit); font-size: 13px; font-weight: 600; color: var(--muted2); }
.pg-row { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.pg-row-h { display: flex; align-items: baseline; gap: 8px; }
.pg-row-h b { flex: 1; min-width: 0; }
.pg-row-v { font-family: var(--num); font-size: 18px; white-space: nowrap; }
.pg-row .pg-d { margin: 0; white-space: nowrap; }
.pz-bar { height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.pz-bar i { display: block; height: 100%; border-radius: 99px; }
.pz-bar .pz-g, .pz-t.pz-g { --pz: var(--pz-g); } .pz-bar .pz-y, .pz-t.pz-y { --pz: var(--pz-y); } .pz-bar .pz-r, .pz-t.pz-r { --pz: var(--pz-r); }
.pz-bar i { background: var(--pz); } .pz-t { color: var(--pz); }
.pz.pz-g { --pz: var(--pz-g); } .pz.pz-y { --pz: var(--pz-y); } .pz.pz-r { --pz: var(--pz-r); }
.q-num.pz span { border-bottom: 5px solid var(--pz); }
.q-num.pz input:checked + span { background: var(--pz); border-color: var(--pz); color: #fff; }
.seg:has(button.pz) { border-radius: 14px; gap: 3px; padding: 5px; }
.seg button.pz { border-bottom: 5px solid var(--pz); border-radius: 8px 8px 3px 3px; background: var(--card); min-height: 42px; }
.seg button.pz[aria-pressed="true"] { background: var(--pz); color: #fff; }
.pg-detail > .pg-row:first-child { border-top: 0; padding-top: 0; }

/* -123: Belastbarkeit als Weg (Reha-Stufen) und „Start → Heute“ statt Prozent */
.pg-cap { display: grid; gap: 8px; text-align: left; font: inherit; color: inherit; background: var(--subtle); border: 1px solid var(--line); border-radius: 14px; padding: 12px; width: 100%; }
button.pg-cap { cursor: pointer; }
.pg-stage { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.pg-stage small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--muted2); }
.pg-path { display: flex; align-items: center; margin: 2px 0; }
.pg-n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line2); background: var(--card); font-size: 12px; font-weight: 800; color: var(--muted2); }
.pg-n.done { background: var(--pz-g); border-color: var(--pz-g); color: #fff; }
.pg-n.now { border-color: var(--pz-g); color: var(--pz-g); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pz-g) 20%, transparent); }
.pg-l { flex: 1; height: 4px; background: linear-gradient(90deg, var(--pz-g) var(--f, 0%), var(--line2) var(--f, 0%)); }
.pg-l.done { background: var(--pz-g); }
.pg-then { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 5px 10px; align-items: baseline; font-size: 14px; }
.pg-th { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted2); text-align: right; }
.pg-ta { color: var(--muted2); text-align: right; white-space: nowrap; }
.pg-tb { font-family: var(--num); font-size: 17px; text-align: right; white-space: nowrap; }
.pg-ar { color: var(--muted2); }
.pg-tn { min-width: 0; overflow-wrap: anywhere; }
.pg-more { font-size: 13px; font-weight: 700; color: var(--primary); }
.pg-done { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 14px; }
.pg-done li::before { content: "✓ "; color: var(--pz-g); font-weight: 800; }
/* -124 */ .pg-crit .crit-list { margin: 0; } .pg-ex { width: 100%; }
.pg-ac { border-top: 1px solid var(--line); }
.pg-ac > summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; min-height: 44px; }
.pg-ac > summary::-webkit-details-marker { display: none; }
.pg-ac > summary b { flex: 1; min-width: 0; }
.pg-ac-sub { font-size: 13px; color: var(--muted2); white-space: nowrap; }
.pg-ac-ch { color: var(--muted2); font-size: 18px; transition: transform .15s; }
.pg-ac[open] > summary .pg-ac-ch { transform: rotate(90deg); }
.pg-ac-body { padding: 0 0 12px; }
.pg-ac-item + .pg-ac-item { border-top: 1px dashed var(--line); padding-top: 10px; }
/* -127: Kurzansicht Fragebogen (Physio) */
.qb { background: var(--subtle); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.qb-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.qb-k { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted2); padding-top: 2px; }
.qb-items ol { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 4px; }
/* -134: Geräte-Filter beim Zuweisen */
.eq-swaps { border-top: 1px solid var(--line); padding-top: 10px; }
.eq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); gap: 8px; align-items: center; font-size: 14px; }
.eq-row select { width: 100%; min-width: 0; }
.eq-arrow { color: var(--muted2); }
.eq-none .eq-from { color: var(--warn-text); font-weight: 600; }
/* -134 KI-Vorsortierung im Chat */
.as-msg.ch-ai { border: 1px dashed var(--line, #c9d3da); }
.ch-ai-label { display: block; font-weight: 600; opacity: .75; margin-bottom: 2px; }
.ch-consent .row-s { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ch-triage { margin: -4px 0 8px; }
.ch-urgent, .ch-aihandled { white-space: nowrap; }

/* ---------- Physio-Ansicht am Handy: Leiste unten statt Menüzeile oben (Stufe 1, 16.11.2026) ---------- */
.physio-tabs { display: none; }
.tab-ico { position: relative; display: inline-flex; }
.tab-badge { position: absolute; top: -5px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger, #B3261E); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; }
.more-list { padding: 0 16px; }
.more-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.more-row > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.more-row:last-child { border-bottom: 0; }
.more-row.static { cursor: default; font-weight: 600; }
.more-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 4px -4px; }
@media (max-width: 899px) {
  .physio-tabs { display: flex; }
  .physio-root .side-nav { display: none; }
  .physio-root .topbar .area-switch, .physio-root .topbar .theme-btn, .physio-root .topbar .seg, .physio-root .topbar .lo-btn { display: none; }
  .physio-root .topbar.has-switch, .physio-root .topbar .brand { flex-wrap: nowrap; }
  .physio-root .physio-shell .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* ---------- Patientenseite: Reiter (Stufe 1) ---------- */
.ptabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; margin: 0 -2px; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-strong, var(--line)); background: var(--card); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ptabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.ptabs button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.p-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.p-title h1 { margin: 0; }
/* ---------- Stufe 2 (16.11.2026): „+ Neu“, Seite „Heute“, Assistent-Blase am Handy ---------- */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-head h1 { margin: 0; }
.list-head .btn { min-height: 44px; flex: none; }
.new-form { border: 2px solid var(--primary); }
.today-msg { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; border: 0; }
.today-msg b { flex: 1; }
@media (max-width: 899px) {
  body:has(.physio-root) #mv-assist .as-bubble { width: 44px; height: 44px; }
  body:has(.physio-root) #mv-assist .as-bubble svg { width: 22px; height: 22px; }
}
/* Seite „Heute“: Karte „Belastung auffällig“ (16.11.2026) */
.lf-acwr { flex: none; min-width: 52px; text-align: center; padding: 4px 8px; border-radius: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lf-acwr.hi { background: #FBE3E0; color: #8E2019; }
.lf-acwr.lo { background: #FCEFD2; color: #6B4700; }
:root[data-theme="dark"] .lf-acwr.hi { background: #5a1f1a; color: #ffd9d4; }
:root[data-theme="dark"] .lf-acwr.lo { background: #4d3a10; color: #ffe7b0; }
/* -137 Übung tauschen im Chat */
.ch-swap { border: 1px solid var(--line, #c9d3da); border-radius: 12px; padding: 10px 12px; margin: -2px 0 10px 0; background: var(--card, #fff); }
.ch-swap .ex-item { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; }
/* Kleine Kacheln auf der Teamseite, ganze Kachel tippbar (16.11.2026) */
.card.tile-btn { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; align-items: flex-start; border: 1px solid transparent; }
.card.tile-btn:hover { border-color: var(--line, #d5dae0); }
.card.tile-btn:focus-visible { outline: 3px solid var(--primary, #203446); outline-offset: 2px; }
.card.tile-btn svg { max-width: 100%; height: auto; }
/* Messungen: Test-Auswahl je Datei am Handy lesbar (16.11.2026) */
.table-wrap td select { min-width: 160px; }
/* Drag & Drop für Messdateien (Meloq, Tindeq, Ergonizer) */
.dropzone { transition: border-color .15s, background .15s; }
.dropzone.drop-over { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--subtle)); }
.filebox.drop-compact { padding: 10px 12px; gap: 4px; }
.drop-hint { margin: 0; }
/* Karte „Uhr verbinden“ (Polar, Garmin): je Anbieter eine Zeile im gleichen Aufbau (16.11.2026) */
.watch-list { display: flex; flex-direction: column; border: 1px solid var(--surface2); border-radius: 12px; }
.watch-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; }
.watch-row + .watch-row { border-top: 1px solid var(--surface2); }
.watch-row .btn.small.ghost { padding: 6px 8px; color: var(--muted); }
#watch-connect.flash { animation: cal-flash 1.4s ease-out; }
@media (prefers-reduced-motion: reduce) { #watch-connect.flash { animation: none; outline: 2px solid var(--focus); } }
