/* ESC Oval – Sportler-Ansicht
   Farben: Dunkelblau (Flächen), ESC-Blau (Hervorhebungen), Akzentfarbe (Start, aktive Elemente).
   Hell: weißer Hintergrund. Dunkel: automatisch, wenn das Handy im Dunkelmodus ist. */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F2F5F9; --ink: #0D1117; --muted: #4A5565; --line: #DCE3EB;
  --navy: #0A2342; --navy-2: #12325A; --on-navy: #FFFFFF; --on-navy-muted: #C7D3E3;
  --blue: #0068B5; --on-blue: #FFFFFF; --blue-text: #0068B5; --blue-soft: #E6F0F8; --blue-line: #9CC3E3;
  --accent: #CC310E; --on-accent: #FFFFFF;
  --warn: #B42318; --warn-soft: #FDECEA;
  --fig: #0A2342; --fig-bg: #E6F0F8; --fig-ground: #9CC3E3;
  --display: 'Barlow Condensed', 'Avenir Next Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif-condensed, sans-serif;
  --body: 'Barlow', 'Avenir Next', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111B; --surface: #0E1C2B; --surface-2: #132539; --ink: #FFFFFF; --muted: #A9B6C4; --line: #22384D;
    --navy: #0F2A4D; --navy-2: #173A66; --on-navy: #FFFFFF; --on-navy-muted: #C7D3E3;
    --blue: #0068B5; --on-blue: #FFFFFF; --blue-text: #5AAEEA; --blue-soft: #10304D; --blue-line: #2C5F8A;
    --warn: #FF8A80; --warn-soft: #3A1512;
    --fig: #E8F1FA; --fig-bg: #10304D; --fig-ground: #2C5F8A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07111B; --surface: #0E1C2B; --surface-2: #132539; --ink: #FFFFFF; --muted: #A9B6C4; --line: #22384D;
  --navy: #0F2A4D; --navy-2: #173A66; --on-navy: #FFFFFF; --on-navy-muted: #C7D3E3;
  --blue: #0068B5; --on-blue: #FFFFFF; --blue-text: #5AAEEA; --blue-soft: #10304D; --blue-line: #2C5F8A;
  --warn: #FF8A80; --warn-soft: #3A1512;
  --fig: #E8F1FA; --fig-bg: #10304D; --fig-ground: #2C5F8A;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.45;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
img, video { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: var(--blue-text); }
:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 2px; border-radius: 8px; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.ic.filled { fill: currentColor; }
.innen { max-width: 600px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Kopfband */
.kopf { background: var(--navy); color: var(--on-navy); padding-top: env(safe-area-inset-top, 0px); border-bottom: 4px solid var(--accent); }
.kopf .innen { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.kopf-titel { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; }
.kopf-zusatz { font-size: 14px; color: var(--on-navy-muted); }
.kopf-zusatz a { color: var(--on-navy); font-weight: 700; }

/* Überschriften */
.h1 { margin: 22px 0 6px; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 42px; line-height: .95; text-transform: uppercase; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
.unter { margin: 0 0 16px; color: var(--muted); }
.h2 { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.h2::before { content: ""; width: 20px; height: 6px; border-radius: 3px; background: var(--blue); flex-shrink: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px 8px 0; margin-top: 8px; border: 0; background: none; font-weight: 600; color: var(--muted); }

/* Ablauf der Erwärmung */
.ablauf { margin: 4px 0 18px; border-radius: 16px; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.ablauf summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; cursor: pointer; }
.ablauf summary::-webkit-details-marker { display: none; }
.ablauf .ab-titel { flex-grow: 1; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.ablauf .ab-dauer { font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.ablauf .ab-pfeil { transition: transform .2s; }
.ablauf[open] .ab-pfeil { transform: rotate(180deg); }
.ablauf ol { list-style: none; margin: 0; padding: 0 16px 6px; display: grid; gap: 10px; }
.ablauf li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.ablauf li .n { width: 28px; height: 28px; border-radius: 50%; background: var(--on-navy); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.ablauf li strong { display: block; }
.ablauf .ab-hinweis { margin: 8px 16px 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); color: var(--on-navy-muted); font-size: 15px; }

/* Kategorien */
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kachel { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 10px; align-items: center; min-height: 64px; padding: 12px 12px 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.kachel:hover { border-color: var(--blue-line); }
.k-name { display: block; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.k-meta { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.kachel.leer .k-name { color: var(--muted); }
.k-tags { display: flex; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--ink); white-space: nowrap; }
.tag .ic { width: 14px; height: 14px; }
.tag-folgt { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.kachel .chev { color: var(--muted); }
.kachel-fav { background: var(--surface-2); }

/* Übungskarten */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card { width: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr) 20px; gap: 14px; align-items: center; text-align: left; padding: 10px 12px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.card:hover { border-color: var(--blue-line); }
.thumb { width: 72px; height: 88px; border-radius: 12px; background: var(--fig-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb .fig { width: 62px; height: 80px; }
.thumb img, .thumb video, .pthumb img, .pthumb video, .figbox img, .figbox video, .t-media img, .t-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-meta { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nr { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 20px; letter-spacing: 0; color: var(--blue-text); }
.card-name { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; hyphens: auto; overflow-wrap: break-word; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badges:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--ink); }
.badge .ic { width: 14px; height: 14px; }
.badge-draft { background: transparent; border: 1px dashed var(--blue-line); color: var(--muted); }
.card .chev { color: var(--muted); }
.empty { list-style: none; margin: 0; padding: 22px; border-radius: 16px; border: 2px dashed var(--line); color: var(--muted); text-align: center; }

/* Übung im Detail */
.dhead { display: flex; align-items: flex-end; gap: 14px; margin: 6px 0 14px; }
.bignr { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 64px; line-height: .8; color: var(--blue-text); }
.dhead-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); }
.pill-dos { background: var(--navy); color: var(--on-navy); }
.dname { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 30px; line-height: .95; text-transform: uppercase; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; max-width: 100%; }
.draftnote { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--blue-line); font-size: 15px; color: var(--muted); }
.video { margin: 0 0 10px; border-radius: 14px; overflow: hidden; background: #000; }
.video video { width: 100%; display: block; max-height: 60vh; }
.figrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.figrow.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figrow.n1 { grid-template-columns: minmax(0, 240px); justify-content: center; }
.figcell, .figsolo { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.figbox { border-radius: 14px; background: var(--fig-bg); display: flex; align-items: center; justify-content: center; aspect-ratio: 200 / 250; max-width: 100%; overflow: hidden; }
.figbox .fig { width: 88%; height: 88%; }
.leer-bild { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: center; padding: 8px; }
.figsolo .figbox { width: min(240px, 100%); align-self: center; }
.figsolo figcaption { text-align: center; font-size: 14px; color: var(--muted); }
.figcell figcaption { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.num { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--blue); color: var(--on-blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tog { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 600; font-size: 16px; }
.tog-fav[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.tog-fav[aria-pressed="true"] .ic { fill: currentColor; }
.tog-done[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.tog-prog[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--on-blue); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps li > span:last-child { padding-top: 1px; text-wrap: pretty; }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; margin-top: 20px; }
.tip { padding: 14px 16px; border-radius: 14px; background: var(--blue-soft); }
.tip-no { background: var(--warn-soft); }
.tip p { margin: 6px 0 0; }
.tip-head { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.tip-no .tip-head { color: var(--warn); }
.tip-ic { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: var(--on-blue); }
.tip-no .tip-ic { background: var(--warn); color: var(--bg); }
.tip-ic .ic { width: 15px; height: 15px; stroke-width: 3; }
.eis { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 16px 18px; border-radius: 16px; background: var(--navy); color: var(--on-navy); }
.eis p { margin: 2px 0 0; text-wrap: pretty; }
.eis-head { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; }
.eis-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; }
.notes textarea { width: 100%; min-height: 96px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.notes textarea:focus-visible { border-color: var(--blue-text); outline: none; }
.hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* Timer-Bereich */
.modus { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--surface-2); margin-bottom: 18px; }
.modus button { min-height: 44px; border: 0; border-radius: 10px; background: none; font-weight: 700; color: var(--muted); }
.modus button[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }
.einstellungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.zeitfeld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zeitfeld label { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.stepper button { height: 48px; border: 0; background: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.stepper button:hover { background: var(--blue-soft); }
.stepper input { width: 100%; min-width: 0; height: 48px; border: 0; background: none; color: var(--ink); font: inherit; font-family: var(--display); font-weight: 800; font-size: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper input:focus-visible { outline: none; background: var(--blue-soft); }
.stepper:focus-within { border-color: var(--blue-text); }
.sum { margin: 0 0 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.plist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.pitem { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 8px 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.pthumb { width: 44px; height: 54px; border-radius: 8px; background: var(--fig-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pthumb .fig { width: 38px; height: 48px; }
.pname { border: 0; background: none; padding: 4px 0; text-align: left; font-weight: 600; font-size: 16px; line-height: 1.25; min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.pctl { display: flex; gap: 2px; }
.icbtn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 0; background: none; color: var(--muted); }
.icbtn:hover:not(:disabled) { background: var(--blue-soft); color: var(--ink); }
.addlink { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 2px dashed var(--line); background: none; font-weight: 700; color: var(--ink); }
.addlink[aria-expanded="true"] { border-style: solid; border-color: var(--blue-line); }
.auswahl { margin: 10px 0 0; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.auswahl h3 { margin: 10px 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.auswahl h3:first-child { margin-top: 0; }
.auswahl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wahl { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) 32px; gap: 10px; align-items: center; min-height: 52px; padding: 6px 10px 6px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-weight: 600; }
.wahl .pthumb { width: 40px; height: 48px; }
.wahl .pthumb .fig { width: 34px; height: 44px; }
.wahl .plus { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); }
.wahl[aria-pressed="true"] .plus { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin-top: 18px; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-style: italic; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; }
.info { margin: 0 0 14px; color: var(--muted); }

/* Tab-Leiste */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
  padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar-in { max-width: 600px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 62px; padding: 8px 4px; border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent); }
.tab .count { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }

/* Timer-Ansicht (Vollbild, dunkelblau) */
.timer { position: fixed; inset: 0; z-index: 50; background: var(--navy); color: var(--on-navy); display: flex; flex-direction: column; overflow-y: auto;
  --fig: #0A2342; --fig-bg: #E6F0F8; --fig-ground: #9CC3E3;
  padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.t-wrap { width: 100%; max-width: 600px; margin: 0 auto; flex-grow: 1; display: flex; flex-direction: column; }
.t-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.t-count { font-weight: 700; color: var(--on-navy-muted); font-variant-numeric: tabular-nums; }
.t-topbtns { display: flex; align-items: center; gap: 4px; }
.timer .icbtn { color: var(--on-navy); }
.timer .icbtn:hover { background: rgba(255, 255, 255, .12); }
.t-close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .3); background: none; font-weight: 700; color: var(--on-navy); }
.t-main { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding-block: 10px; }
.t-phase { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 28px; letter-spacing: .05em; text-transform: uppercase; color: var(--on-navy-muted); }
.t-phase[data-phase="work"] { color: var(--accent); }
.t-phase[data-phase="done"] { color: var(--accent); }
.t-name { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 32px; line-height: .95; text-transform: uppercase; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; max-width: 100%; }
.t-stage { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 4px; width: 100%; }
.t-media { width: min(100%, 300px); height: clamp(170px, 34vh, 340px); border-radius: 18px; background: var(--fig-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.t-media .fig { width: 70%; height: 88%; }
.t-ring { position: relative; width: 150px; height: 150px; }
.t-stage.ohne-media .t-ring { width: min(260px, 70vw); height: min(260px, 70vw); }
.t-ring svg { width: 100%; height: 100%; }
.ring-track { stroke: rgba(255, 255, 255, .16); }
.ring-bar { stroke: var(--accent); transition: stroke-dashoffset .2s linear; }
.t-ring[data-phase="rest"] .ring-bar { stroke: #6FB6EE; }
.t-ring[data-phase="ready"] .ring-bar { stroke: var(--on-navy-muted); }
.t-sec { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 60px; font-variant-numeric: tabular-nums; }
.t-stage.ohne-media .t-sec { font-size: 96px; }
.t-cue { margin: 2px 0 0; max-width: 36ch; color: var(--on-navy-muted); text-wrap: pretty; }
.t-cue strong { color: var(--on-navy); }
.t-ctl { display: flex; align-items: center; justify-content: center; gap: 28px; padding-block: 8px; }
.t-side { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); background: none; color: var(--on-navy); display: inline-flex; align-items: center; justify-content: center; }
.t-play { width: 80px; height: 80px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; }
.t-play .ic { width: 32px; height: 32px; }
.t-donetext { margin: 0; font-size: 19px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ring-bar, .ablauf .ab-pfeil { transition: none; } }

/* ---------- Version 3 ---------- */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tab span:not(.count) { line-height: 1.1; text-align: center; }
.tabbar-in { grid-template-columns: repeat(4, 1fr); }
.tab { font-size: 12px; padding-inline: 2px; }
.tag-akzent { background: var(--accent); color: var(--on-accent); }
.kachel.prog .k-tags { flex-direction: column; align-items: flex-end; }
.chip-klein { font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--blue-soft); white-space: nowrap; }
.frei-n { display: inline-flex; color: var(--accent); }
.frei-n .ic { width: 24px; height: 24px; }
.eigen-karte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.eigen-karte .k-meta { display: block; margin-top: 2px; }
.eigen-karte.leer { flex-direction: column; align-items: stretch; background: var(--surface-2); border-style: dashed; }
.eigen-karte.leer p { margin: 0; color: var(--muted); }
.eigen-knopfe { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-zweit, .btn-akzent { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 12px; font-weight: 700; font-size: 16px; }
.btn-zweit { border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-akzent { border: 0; background: var(--accent); color: var(--on-accent); }
.suche { position: relative; margin: 6px 0 4px; }
.suche > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.suche input { width: 100%; min-height: 50px; padding: 10px 14px 10px 44px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.suche input:focus-visible { outline: none; border-color: var(--blue-text); }
.auswahl h3.aw-bereich { margin-top: 16px; padding-bottom: 4px; border-bottom: 2px solid var(--navy); color: var(--ink); font-size: 15px; }
.auswahl h3.aw-bereich:first-child { margin-top: 0; }

/* Wettkampf */
.wk-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px 12px; align-items: end; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.wk-form .feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wk-form label, .wk-zeile label { font-size: 14px; font-weight: 700; color: var(--muted); }
.wk-form .opt { font-weight: 500; }
.wk-form input, .wk-karte input[type="time"], .wk-min input { min-height: 46px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; width: 100%; min-width: 0; }
.wk-form input:focus-visible, .wk-karte input:focus-visible, .wk-min input:focus-visible { outline: none; border-color: var(--blue-text); }
.wk-naechste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wk-naechste li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.wk-naechste li.erste { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.wk-naechste li.faellig .wk-rel { background: var(--accent); color: var(--on-accent); }
.wk-uhr { font-family: var(--display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.wk-text { display: flex; flex-direction: column; min-width: 0; }
.wk-text span { font-size: 14px; opacity: .85; }
.wk-rel { font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--ink); white-space: nowrap; }
.wk-naechste li.erste .wk-rel { background: var(--on-navy); color: var(--navy); }
.wk-naechste li.erste.faellig .wk-rel { background: var(--accent); color: var(--on-accent); }
.wk-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wk-karte { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.wk-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.wk-kopf strong { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; flex-grow: 1; }
.wk-zeitfelder { display: flex; gap: 6px; }
.wk-zeitfelder input { width: 104px; min-height: 40px; }
.wk-strecke { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: start; padding-top: 6px; }
.wk-label { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.wk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-chip { font-size: 13px; padding: 3px 8px; border-radius: 999px; background: var(--blue-soft); white-space: nowrap; }
.wk-chip b { font-variant-numeric: tabular-nums; }
.wk-chip.start { background: var(--navy); color: var(--on-navy); }
.wk-chip.vorbei { opacity: .45; text-decoration: line-through; }
.wk-zeiten { margin-top: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; }
.wk-zeiten summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; font-weight: 700; cursor: pointer; }
.wk-zeiten summary .k-meta { font-weight: 500; }
.wk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-bottom: 12px; }
.wk-grid fieldset { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.wk-grid legend { font-weight: 800; padding: 0 4px; }
.wk-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.wk-min { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.wk-min input { width: 76px; text-align: center; }
.wk-zeiten .btn-zweit { margin-bottom: 14px; }

/* Timer: Fortschritt, Abhaken, Seitenwechsel */
.t-fortschritt { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); margin-top: 10px; overflow: hidden; }
.t-fortschritt span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.t-checkctl { display: flex; align-items: center; justify-content: center; gap: 16px; padding-block: 8px; }
.t-erledigt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 10px 24px; white-space: nowrap; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-style: italic; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.t-erledigt .ic { width: 26px; height: 26px; stroke-width: 3; }
.t-stage.nur-media .t-media { width: min(100%, 320px); height: clamp(200px, 42vh, 400px); }
.t-phase[data-phase="check"] { color: var(--on-navy-muted); }
.t-phase[data-phase="wechsel"] { color: var(--on-navy); background: var(--accent); padding: 2px 14px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .t-fortschritt span { transition: none; } }

/* =====================================================================
   Version 4: neues Design
   Grundlage für das Glas-Design (<html data-design="c">)
   ===================================================================== */

/* Bereichsfarben: 0 Erwärmung · 1 Nachbereitung · 2 Imitation · 3 Sprint · 4/5 weitere */
[data-farbe] { --bf: #0068B5; --bf-soft: #E6F0F8; }
[data-farbe="1"] { --bf: #0F7C7A; --bf-soft: #E0F2F1; }
[data-farbe="2"] { --bf: #0A2342; --bf-soft: #E5EAF1; }
[data-farbe="3"] { --bf: #CC310E; --bf-soft: #FBEAE5; }
[data-farbe="4"] { --bf: #9A6500; --bf-soft: #FBF1DC; }
[data-farbe="5"] { --bf: #6B3FA0; --bf-soft: #F0E9F8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-farbe] { --bf: #5AAEEA; --bf-soft: #10304D; }
  :root:not([data-theme="light"]) [data-farbe="1"] { --bf: #3CC1BC; --bf-soft: #0D3332; }
  :root:not([data-theme="light"]) [data-farbe="2"] { --bf: #9DB4DD; --bf-soft: #17294A; }
  :root:not([data-theme="light"]) [data-farbe="3"] { --bf: #FF7A5C; --bf-soft: #3A1810; }
  :root:not([data-theme="light"]) [data-farbe="4"] { --bf: #E8B04A; --bf-soft: #33260C; }
  :root:not([data-theme="light"]) [data-farbe="5"] { --bf: #BE98EA; --bf-soft: #2A1E3D; }
}

/* Schrift: schräge Großschrift nur noch für Seitentitel und große Nummern */
.h2 { gap: 10px; margin: 28px 0 12px; font-family: var(--body); font-weight: 700; font-size: 19px; letter-spacing: 0; text-transform: none; }
.h2::before { width: 5px; height: 20px; border-radius: 3px; }
.k-name, .card-name { font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.25; letter-spacing: 0; text-transform: none; }
.card-meta { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; letter-spacing: 0; text-transform: none; font-weight: 600; background: var(--surface-2); color: var(--ink); }
.pill .ic { width: 15px; height: 15px; }
.tip-head, .eis-head { font-family: var(--body); font-weight: 700; font-size: 17px; letter-spacing: 0; text-transform: none; }
.zeitfeld label, .auswahl h3 { letter-spacing: 0; text-transform: none; }
.cta { font-family: var(--body); font-style: normal; font-weight: 700; font-size: 19px; letter-spacing: 0; text-transform: none; border-radius: 999px; }
.wk-kopf strong { font-family: var(--body); font-size: 18px; letter-spacing: 0; text-transform: none; }

/* Kopf: schmal, mit Vereinslogo, scrollt mit weg */
.kopf { background: var(--surface); color: var(--ink); border-bottom: 3px solid var(--accent); }
.kopf .innen { min-height: 54px; }
.kopf-links { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kopf-marke { display: inline-flex; align-items: center; flex-shrink: 0; }
.kopf-marke img { display: block; height: 40px; width: auto; }
.kopf-titel { display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 20px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.kopf-titel small { margin-top: 3px; font-family: var(--body); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.kopf-zusatz { color: var(--muted); }
.kopf-zusatz a { color: var(--blue-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kopf-marke { padding: 3px 6px; border-radius: 8px; background: #FFFFFF; }
  :root:not([data-theme="light"]) .kopf-marke img { height: 40px; }
}
.tab[aria-current="page"] .ic { color: var(--accent); }

/* Startseite: große Karte für das erste Programm */
.hero { position: relative; isolation: isolate; overflow: hidden; margin: 10px 0 4px; padding: 20px 18px 18px; border-radius: 22px; background: var(--navy); color: #FFFFFF; }
.hero-label { font-size: 13px; font-weight: 700; color: #9CC3E3; }
.hero-titel { margin: 6px 0 4px; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 34px; line-height: .95; text-transform: uppercase; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
.hero-meta { margin: 0; font-weight: 600; color: #DCE7F3; }
.hero-text { margin: 6px 0 0; font-size: 15px; color: #C7D3E3; max-width: 34ch; }
.hero-knopfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-start { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 18px; }
.btn-start .ic { width: 18px; height: 18px; }
.btn-hell { min-height: 52px; padding: 10px 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .35); background: none; color: #FFFFFF; font-weight: 700; font-size: 16px; }
.hero-zahl { display: none; }
.prog-scroll { list-style: none; display: flex; gap: 10px; margin: 0 -16px; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; }
.prog-scroll::-webkit-scrollbar { display: none; }
.prog-scroll li { flex: 0 0 min(74%, 270px); scroll-snap-align: start; }
.prog-kachel { position: relative; width: 100%; height: 100%; min-height: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 52px 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.pk-name { font-weight: 700; font-size: 17px; line-height: 1.2; }
.pk-meta { font-size: 14px; color: var(--muted); }
.pk-tag { margin-top: auto; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.pk-play { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue-text); }
.ablauf { margin-top: 26px; background: var(--surface-2); color: var(--ink); }
.ablauf .ab-titel { font-family: var(--body); font-weight: 700; font-size: 17px; letter-spacing: 0; text-transform: none; }
.ablauf li .n { background: var(--navy); color: var(--on-navy); }
.ablauf .ab-hinweis { border-top-color: var(--line); color: var(--muted); }

/* Bibliothek: Kacheln mit Bereichsfarbe und Figur */
.fav-leiste { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-height: 58px; margin: 4px 0 0; padding: 10px 14px; border: 0; border-radius: 16px; background: var(--surface-2); text-align: left; color: var(--ink); }
.fav-leiste > .ic:first-child { color: var(--accent); }
.fav-leiste span { font-size: 14px; color: var(--muted); }
.fav-leiste b { display: block; font-size: 16px; color: var(--ink); }
.bereich-h::before { background: var(--bf); }
/* Version 5: „Für mich“ – Auswahlen vom Trainer */
.fuer-mich { margin-top: 6px; }
.fm-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fm-karte { padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.fm-fuer { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--blue-text, #0062AB); background: rgba(0, 104, 181, .12); }
.fm-name { margin: 8px 0 2px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.fm-meta { margin: 0; font-size: 14px; color: var(--muted); }
.fm-hinweis { margin: 8px 0 0; font-size: 15px; }
.fm-knopfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fm-tipp { margin: 0 0 14px; }

/* Version 5: Kategorien ohne Bilder (Spiele, Einlaufen …) */
.card.ohne-thumb, .cards-gross .card.ohne-thumb { grid-template-columns: minmax(0, 1fr) 20px; min-height: 64px; }
.kat-kachel.kk-ohne-bild .kk-text { padding-top: 16px; }
.ohne-bild-ic { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--bf, var(--muted)); opacity: .7; }
.ohne-bild-ic .ic { width: 40%; height: 40%; max-width: 64px; max-height: 64px; }
/* Version 5: Bereiche in der Bibliothek zum Aufklappen */
.bereich-titel { margin: 12px 0 0; font-size: inherit; }
.bereich-zeile { width: 100%; display: grid; grid-template-columns: 5px minmax(0, 1fr) 22px; gap: 14px; align-items: center; min-height: 68px; padding: 12px 16px 12px 14px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.bz-streifen { align-self: stretch; border-radius: 3px; background: var(--bf); }
.bereich-zeile span { min-width: 0; font-size: 14px; color: var(--muted); }
.bereich-zeile b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; color: var(--ink); }
.bereich-zeile > .ic { width: 22px; height: 22px; color: var(--muted); transition: transform .2s; }
.bereich-zeile[aria-expanded="true"] > .ic { transform: rotate(180deg); }
.bereich-inhalt { margin-top: 10px; }
.bereich-inhalt > .empty { margin: 0; }
@media (prefers-reduced-motion: reduce) { .bereich-zeile > .ic { transition: none; } }
.kat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kat-kachel { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); }
.kat-kachel::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 4px; background: var(--bf); }
.kat-kachel:hover { border-color: var(--bf); }
.kk-bild { --fig-bg: var(--bf-soft); height: 112px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bf-soft); }
.kk-bild .fig { width: 84px; height: 106px; }
.kk-bild img, .kk-bild video { width: 100%; height: 100%; object-fit: cover; }
.kk-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.kk-name { font-weight: 700; font-size: 16px; line-height: 1.2; hyphens: auto; overflow-wrap: break-word; }
.kk-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.kk-timer { display: inline-flex; color: var(--bf); }
.kk-timer .ic { width: 15px; height: 15px; }
.kat-kachel.leer { opacity: .6; }
.kk-fort { display: block; height: 4px; margin-top: 8px; overflow: hidden; border-radius: 2px; background: var(--line); }
.kk-fort span { display: block; height: 100%; border-radius: 2px; background: var(--bf); }

/* Kategorie: farbiger Kopf, größere Bilder */
.kat-kopf { position: relative; padding-left: 15px; }
.kat-kopf::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 18px; width: 5px; border-radius: 3px; background: var(--bf); }
.kat-bereich { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--bf); }
.kat-kopf .h1 { margin-top: 2px; }
.unter-kopf { margin-top: 24px; }
.unter-kopf::before { background: var(--bf); }
.thumb { width: 80px; height: 96px; }
.thumb .fig { width: 70px; height: 88px; }
.card { grid-template-columns: 80px minmax(0, 1fr) 20px; }
.cards-gross .card { grid-template-columns: 100px minmax(0, 1fr) 20px; }
.cards-gross .thumb { width: 100px; height: 122px; }
.cards-gross .thumb .fig { width: 88px; height: 112px; }

/* Übungsseite: Tags in einer Zeile, feste Knopfleiste */
.dhead { align-items: flex-end; margin: 6px 0 10px; }
.dname { font-size: 34px; }
.pills { margin: 0 0 14px; }
.pill-kat { background: var(--bf-soft); color: var(--bf); }
body.mit-leiste { padding-bottom: calc(76px + 72px + env(safe-area-inset-bottom, 0px)); }
.aktionsleiste { position: fixed; z-index: 19; left: 0; right: 0; bottom: calc(63px + env(safe-area-inset-bottom, 0px)); padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.al-in { max-width: 600px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.al-knopf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 6px 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink); }
.al-knopf .ic { width: 20px; height: 20px; }
.al-fav[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.al-fav[aria-pressed="true"] .ic { fill: currentColor; }
.al-done[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-text); }
.al-prog[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--on-blue); }

/* Timer: Bahnlinien, nächste Übung, Pause in Blau */
.timer { isolation: isolate; transition: background-color .4s; }
.timer[data-phase="rest"] { background: #0068B5; }
.timer[data-phase="rest"] .ring-bar { stroke: #FFFFFF; }
.timer[data-phase="rest"] .ring-track { stroke: rgba(255, 255, 255, .25); }
.timer[data-phase="rest"] .t-phase { color: #FFFFFF; }
.timer[data-phase="rest"] .t-count, .timer[data-phase="rest"] .t-cue { color: #E6F0F8; }
.t-next { display: grid; grid-template-columns: auto 40px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; max-width: 420px; margin: 2px auto 8px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .09); text-align: left; }
.t-next-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-muted); }
.t-next-bild { width: 40px; height: 48px; border-radius: 8px; background: #E6F0F8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.t-next-bild .fig { width: 34px; height: 44px; }
.t-next-bild img, .t-next-bild video { width: 100%; height: 100%; object-fit: cover; }
.t-next-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { .timer { transition: none; } }


/* Startseite B: Stand, Wettkampf-Termin, rote Startkarte mit großer Zahl */
.stand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 10px; }
.stand-kachel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; min-height: 86px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); }
.stand-kachel b { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 34px; line-height: .9; font-variant-numeric: tabular-nums; }
.stand-kachel > span, .stand-text > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stand-gross { flex-direction: row; align-items: center; gap: 10px; }
.stand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stand-text small { font-size: 18px; color: var(--muted); }
.ring { width: 54px; height: 54px; flex-shrink: 0; }
.ring-hg { stroke: var(--line); }
.ring-vg { stroke: var(--accent); filter: drop-shadow(0 0 4px rgba(255, 75, 43, .55)); }
.wk-banner { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) 20px; gap: 12px; align-items: center; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255, 75, 43, .45); background: rgba(255, 75, 43, .1); text-align: left; color: var(--ink); }
.wkb-uhr { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.wkb-text b { display: block; }
.wkb-text span { font-size: 13px; color: var(--muted); }

/* Bibliothek B */

/* Kategorie B: zweispaltig, Bild oben */

/* Übung B: riesige Konturnummer */

/* Tab-Leiste B */

/* Timer B */

/* =====================================================================
   Variante C: Liquid Glass mit leuchtenden Akzenten
   Glasflächen über einem Eis-Farbverlauf, schwebende Leisten. Hell/dunkel nach dem Handy.
   ===================================================================== */
:root[data-design="c"] {
  --bg: #E7F0F9; --surface: rgba(255, 255, 255, .62); --surface-2: rgba(255, 255, 255, .42); --ink: #0A1A2F; --muted: #3E4F66; --line: rgba(10, 35, 66, .13);
  --navy: #0A2342; --on-navy: #FFFFFF; --on-navy-muted: #C7D3E3;
  --blue: #0068B5; --on-blue: #FFFFFF; --blue-text: #0062AB; --blue-soft: rgba(0, 104, 181, .13); --blue-line: rgba(0, 104, 181, .35);
  --accent: #D8380F; --on-accent: #FFFFFF; --warn: #B42318; --warn-soft: rgba(204, 49, 14, .12);
  --fig: #0A2342; --fig-bg: transparent; --fig-ground: rgba(0, 104, 181, .35);
  --glas: linear-gradient(140deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .46) 42%, rgba(255, 255, 255, .32) 100%);
  --glas-rand: rgba(255, 255, 255, .8);
  --glas-schatten: 0 10px 30px rgba(10, 35, 66, .13), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .3);
  --glas-filter: blur(22px) saturate(180%);
  --glas-leicht: rgba(255, 255, 255, .45);
  --glow-rot: 0 6px 18px rgba(216, 56, 15, .38), 0 0 22px rgba(255, 90, 54, .28);
  --glow-staerke: .55;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-design="c"] {
    --bg: #040D19; --surface: rgba(255, 255, 255, .08); --surface-2: rgba(255, 255, 255, .05); --ink: #FFFFFF; --muted: #A9B8CA; --line: rgba(255, 255, 255, .13);
    --navy: #0B2240; --blue: #2D8CFF; --blue-text: #74BCFF; --blue-soft: rgba(45, 140, 255, .18); --blue-line: rgba(116, 188, 255, .4);
    --accent: #FF5A36; --warn: #FF8A75; --warn-soft: rgba(255, 90, 54, .14);
    --fig: #EAF2FB; --fig-ground: rgba(116, 188, 255, .4);
    --glas: linear-gradient(140deg, rgba(255, 255, 255, .17) 0%, rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .04) 100%);
    --glas-rand: rgba(255, 255, 255, .17);
    --glas-schatten: 0 12px 32px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(255, 255, 255, .05);
    --glas-leicht: rgba(255, 255, 255, .07);
    --glow-rot: 0 6px 20px rgba(255, 90, 54, .45), 0 0 28px rgba(255, 90, 54, .4);
    --glow-staerke: 1;
    color-scheme: dark;
  }
}

/* Hintergrund: Eis-Farbverlauf mit Bahnlinien (liegt fest hinter allem) */
:root[data-design="c"] body { background: var(--bg); }
:root[data-design="c"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
:root[data-design="c"] body::before {
  background:
    radial-gradient(42% 32% at 12% 10%, rgba(0, 104, 181, .55), transparent 70%),
    radial-gradient(36% 30% at 92% 22%, rgba(25, 181, 201, .45), transparent 70%),
    radial-gradient(46% 34% at 82% 88%, rgba(0, 104, 181, .42), transparent 70%),
    radial-gradient(30% 24% at 8% 72%, rgba(204, 49, 14, .22), transparent 70%),
    linear-gradient(180deg, #EAF3FB 0%, #D9E8F5 100%);
}
@media (prefers-color-scheme: dark) {
  :root[data-design="c"] body::before {
    background:
      radial-gradient(45% 32% at 10% 8%, rgba(0, 104, 181, .6), transparent 70%),
      radial-gradient(38% 30% at 95% 25%, rgba(25, 181, 201, .32), transparent 70%),
      radial-gradient(48% 36% at 85% 90%, rgba(45, 140, 255, .38), transparent 70%),
      radial-gradient(32% 26% at 5% 70%, rgba(255, 75, 43, .26), transparent 70%),
      linear-gradient(180deg, #06142A 0%, #030912 100%);
  }
}

/* Glasflächen */
:root[data-design="c"] :is(.kopf, .prog-kachel, .eigen-karte, .ablauf, .fav-leiste, .bereich-zeile, .fm-karte, .kat-kachel, .card, .pitem, .tip, .stand-kachel, .wk-banner, .wk-form, .wk-karte, .wk-naechste li, .wk-zeiten, .modus, .auswahl, .suche input, .notes textarea, .stepper, .empty, .addlink, .tabbar, .aktionsleiste, .btn-zweit) {
  background: var(--glas); border: 1px solid var(--glas-rand); box-shadow: var(--glas-schatten);
  -webkit-backdrop-filter: var(--glas-filter); backdrop-filter: var(--glas-filter);
}
:root[data-design="c"] :is(.empty, .addlink) { border-style: solid; }
:root[data-design="c"] :is(.thumb, .pthumb, .figbox, .kk-bild) { --fig-bg: transparent; background: var(--glas-leicht); }
:root[data-design="c"] .wahl { background: var(--glas-leicht); border-color: var(--glas-rand); }
:root[data-design="c"] :is(.pill, .tag, .badge, .chip-klein, .wk-chip, .wk-rel) { background: var(--glas-leicht); box-shadow: inset 0 0 0 1px var(--glas-rand); }
:root[data-design="c"] .pill-kat { background: var(--bf-soft); color: var(--bf); box-shadow: inset 0 0 0 1px var(--glas-rand), 0 0 12px rgba(0, 0, 0, 0); }
:root[data-design="c"] :is(.card, .kat-kachel, .prog-kachel, .stand-kachel) { border-radius: 22px; }

/* Kopf als schwebende Glas-Kapsel */
:root[data-design="c"] .kopf { margin: 10px max(12px, env(safe-area-inset-left, 0px)) 0; border-radius: 22px; }
:root[data-design="c"] .kopf .innen { min-height: 52px; }
:root[data-design="c"] .kopf-marke { padding: 3px 7px; border-radius: 10px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 1px 0 #FFFFFF; }
:root[data-design="c"] .kopf-marke img { height: 40px; }

/* Überschriften und leuchtende Bereichsfarben */
:root[data-design="c"] .h1 { font-size: 46px; }
:root[data-design="c"] .h2::before { box-shadow: 0 0 10px rgba(0, 104, 181, var(--glow-staerke)); }
:root[data-design="c"] .bereich-h::before { box-shadow: 0 0 12px var(--bf); }
:root[data-design="c"] .bz-streifen { box-shadow: 0 0 10px var(--bf); }
:root[data-design="c"] .kat-kachel::before { left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; box-shadow: 0 0 14px 1px var(--bf); }
:root[data-design="c"] .kk-fort span { box-shadow: 0 0 8px var(--bf); }
:root[data-design="c"] .nr { color: var(--blue-text); }

/* Startkarte: getöntes Glas mit großer Minutenzahl */
:root[data-design="c"] .hero { background: linear-gradient(140deg, rgba(0, 104, 181, .82) 0%, rgba(10, 35, 66, .78) 100%); border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 16px 40px rgba(0, 60, 120, .3), 0 0 40px rgba(45, 140, 255, calc(.25 * var(--glow-staerke))), inset 0 1px 0 rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
:root[data-design="c"] .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background: linear-gradient(150deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 38%); }
:root[data-design="c"] .hero-titel,
:root[data-design="c"] .hero-label { display: block; max-width: calc(100% - 86px); }
:root[data-design="c"] .hero-zahl { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; align-items: flex-end; }
:root[data-design="c"] .hero-zahl b { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 68px; line-height: .8; text-shadow: 0 0 22px rgba(160, 210, 255, .6); }
:root[data-design="c"] .hero-zahl span { margin-top: 2px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
:root[data-design="c"] .btn-hell { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Leuchtende rote Knöpfe mit Glanz */
:root[data-design="c"] :is(.btn-start, .cta, .btn-akzent, .t-play, .t-erledigt) {
  background: linear-gradient(180deg, #F06A43 0%, #D8380F 52%, #B32807 100%); color: #FFFFFF; border: 0;
  box-shadow: var(--glow-rot), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 8px rgba(0, 0, 0, .18);
}
:root[data-design="c"] .cta:disabled { box-shadow: none; }
:root[data-design="c"] .pk-play { background: rgba(216, 56, 15, .14); color: var(--accent); box-shadow: 0 0 12px rgba(255, 90, 54, calc(.35 * var(--glow-staerke))); }
:root[data-design="c"] .ring-vg { stroke: var(--accent); filter: drop-shadow(0 0 5px rgba(255, 90, 54, .6)); }
:root[data-design="c"] .ring-hg { stroke: var(--line); }
:root[data-design="c"] .wk-banner { background: linear-gradient(140deg, rgba(255, 90, 54, .22), rgba(255, 90, 54, .08)); border-color: rgba(255, 120, 90, .55); box-shadow: 0 0 22px rgba(255, 90, 54, calc(.3 * var(--glow-staerke))), inset 0 1px 0 rgba(255, 255, 255, .4); }
:root[data-design="c"] .wkb-uhr { text-shadow: 0 0 16px rgba(255, 90, 54, .55); }
:root[data-design="c"] .ablauf li .n { background: var(--accent); color: #FFFFFF; box-shadow: 0 0 10px rgba(255, 90, 54, .5); }
:root[data-design="c"] .eis { background: linear-gradient(140deg, rgba(0, 104, 181, .85), rgba(10, 35, 66, .82)); border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 10px 28px rgba(0, 60, 120, .28), inset 0 1px 0 rgba(255, 255, 255, .4); color: #FFFFFF; }
:root[data-design="c"] .eis-ic { box-shadow: var(--glow-rot); }
:root[data-design="c"] .tip-no { background: linear-gradient(140deg, rgba(255, 120, 90, .28), rgba(255, 120, 90, .12)); }

/* Schwebende Tab-Leiste und Knopfleiste */
:root[data-design="c"] body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
:root[data-design="c"] body.mit-leiste { padding-bottom: calc(96px + 76px + env(safe-area-inset-bottom, 0px)); }
:root[data-design="c"] .tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; padding: 6px; border-radius: 30px; }
:root[data-design="c"] .tab { min-height: 56px; border-radius: 24px; }
:root[data-design="c"] .tab[aria-current="page"] { background: var(--glas-leicht); box-shadow: inset 0 1px 0 var(--glas-rand), inset 0 0 0 1px var(--glas-rand), 0 0 18px rgba(255, 90, 54, calc(.28 * var(--glow-staerke))); color: var(--ink); }
:root[data-design="c"] .tab[aria-current="page"]::before { display: none; }
:root[data-design="c"] .tab[aria-current="page"] .ic { color: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 90, 54, .7)); }
:root[data-design="c"] .tab .count { box-shadow: 0 0 10px rgba(255, 90, 54, .6); }
:root[data-design="c"] .aktionsleiste { left: 12px; right: 12px; bottom: calc(10px + 68px + 10px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; padding: 6px; border-radius: 24px; }
:root[data-design="c"] .al-knopf { background: transparent; border-color: transparent; border-radius: 18px; }
:root[data-design="c"] .al-fav[aria-pressed="true"] { background: linear-gradient(180deg, #F06A43, #C92F0A); box-shadow: var(--glow-rot), inset 0 1px 0 rgba(255, 255, 255, .5); color: #FFFFFF; }
:root[data-design="c"] .al-done[aria-pressed="true"] { background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue-line), 0 0 14px rgba(45, 140, 255, calc(.4 * var(--glow-staerke))); }
:root[data-design="c"] .al-prog[aria-pressed="true"] { background: linear-gradient(180deg, #2E8EE0, #0068B5); color: #FFFFFF; box-shadow: 0 0 16px rgba(45, 140, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .45); }

/* Timer C: Farbverlauf mit Glas-Elementen */
:root[data-design="c"] .timer {
  background: radial-gradient(60% 40% at 15% 12%, rgba(0, 104, 181, .8), transparent 70%), radial-gradient(50% 40% at 90% 82%, rgba(25, 181, 201, .42), transparent 70%),
    radial-gradient(42% 30% at 88% 8%, rgba(255, 75, 43, .32), transparent 70%), #061426;
}
:root[data-design="c"] .timer[data-phase="rest"] {
  background: radial-gradient(60% 45% at 20% 15%, rgba(45, 140, 255, .9), transparent 70%), radial-gradient(55% 45% at 85% 85%, rgba(25, 181, 201, .6), transparent 70%), #0A3A66;
}
:root[data-design="c"] :root[data-design="c"] :is(.t-media, .t-next, .t-side, .t-close) { background: linear-gradient(140deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)); border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 10px 28px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
:root[data-design="c"] .t-media { --fig: #FFFFFF; --fig-bg: transparent; --fig-ground: rgba(255, 255, 255, .35); }
:root[data-design="c"] .t-next-bild { --fig: #FFFFFF; --fig-bg: transparent; --fig-ground: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); }
:root[data-design="c"] .ring-bar { filter: drop-shadow(0 0 7px rgba(255, 90, 54, .75)); }
:root[data-design="c"] .timer[data-phase="rest"] .ring-bar { filter: drop-shadow(0 0 7px rgba(255, 255, 255, .6)); }
:root[data-design="c"] .t-sec { text-shadow: 0 0 24px rgba(160, 210, 255, .45); }
:root[data-design="c"] .t-fortschritt { background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
:root[data-design="c"] .t-fortschritt span { box-shadow: 0 0 10px rgba(255, 90, 54, .8); }

/* =====================================================================
   Wettkampf (Version 4): Trainer trägt ein, Sportler sieht seinen Plan
   ===================================================================== */
.wk-namen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wk-name { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 17px; text-align: left; }
.wk-name span { min-width: 0; overflow-wrap: break-word; }
.wk-name .ic { color: var(--muted); }
.wk-next { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "label label" "uhr was" "uhr rel"; column-gap: 14px; align-items: center; margin: 4px 0 14px; padding: 16px 18px; border-radius: 20px; background: var(--navy); color: var(--on-navy); }
.wkn-label { grid-area: label; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-muted); }
.wkn-uhr { grid-area: uhr; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 48px; line-height: .9; font-variant-numeric: tabular-nums; }
.wkn-was { grid-area: was; align-self: end; font-weight: 800; font-size: 19px; line-height: 1.15; }
.wkn-rel { grid-area: rel; align-self: start; font-size: 14px; color: var(--on-navy-muted); }
.wk-next.faellig .wkn-uhr { color: #FF7A5C; }
.lauf-karte { margin: 0 0 12px; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.lauf-kopf { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lauf-nr { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: var(--on-blue); font-weight: 800; }
.lauf-titel { display: flex; flex-direction: column; min-width: 0; }
.lauf-titel b { font-size: 19px; line-height: 1.15; }
.lauf-titel span { font-size: 14px; color: var(--muted); }
.lauf-start { display: flex; flex-direction: column; align-items: flex-end; }
.lauf-start small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lauf-start b { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 34px; line-height: .9; font-variant-numeric: tabular-nums; color: var(--accent); }
.lauf-infos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bahn-chip, .binde { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 15px; }
.bahn-chip::before { content: ""; width: 16px; height: 12px; border-radius: 6px; border: 2px solid currentColor; opacity: .7; }
.binde i { width: 28px; height: 11px; border-radius: 3px; }
.binde-weiss i { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .3); }
.binde-rot i { background: #D8241F; box-shadow: 0 0 10px rgba(216, 36, 31, .55); }
.lauf-zeiten { list-style: none; display: grid; gap: 2px; margin: 12px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
.lauf-zeiten li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; }
.lz-uhr { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.lz-rel { padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.lauf-zeiten li.start .lz-was { font-weight: 800; }
.lauf-zeiten li.vorbei { opacity: .45; }
.lauf-zeiten li.vorbei .lz-was { text-decoration: line-through; }
.lauf-zeiten li.jetzt .lz-rel { background: var(--accent); color: var(--on-accent); }
.wk-wechsel { display: block; margin: 8px auto 0; min-height: 44px; padding: 8px 14px; border: 0; background: none; color: var(--muted); font-weight: 600; text-decoration: underline; }

/* Trainer-Ansicht */
.wk-t-feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wk-t-feld label, .wk-t-neu label { font-size: 14px; font-weight: 700; color: var(--muted); }
.wk-t-feld input, .wk-t-name, .wk-t-f input, .wk-t-f select, .wk-t-neu input { width: 100%; min-width: 0; min-height: 46px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.wk-t-feld input:focus-visible, .wk-t-name:focus-visible, .wk-t-f input:focus-visible, .wk-t-f select:focus-visible, .wk-t-neu input:focus-visible { outline: none; border-color: var(--blue-text); }
.wk-t-sportler { margin: 0 0 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.wk-t-skopf { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; align-items: center; margin-bottom: 8px; }
.wk-t-name { font-weight: 800; font-size: 18px; }
.wk-t-lauf { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-bottom: 8px; padding: 10px 10px 10px 36px; border-radius: 14px; background: var(--surface-2); }
.wk-t-nr { position: absolute; left: 10px; top: 12px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: var(--on-blue); font-size: 12px; font-weight: 800; }
.wk-t-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wk-t-f label { font-size: 13px; font-weight: 700; color: var(--muted); }
.wk-t-weg { align-self: end; justify-self: end; }
.wk-t-plus { min-height: 42px; }
.wk-t-neu { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 6px; padding: 14px; border-radius: 18px; background: var(--surface-2); }
.wk-t-neu div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.wk-t-leeren { margin-top: 14px; }

/* Wettkampf in B und C */
:root[data-design="c"] :is(.wk-name, .lauf-karte, .wk-t-sportler, .wk-t-neu) {
  background: var(--glas); border: 1px solid var(--glas-rand); box-shadow: var(--glas-schatten);
  -webkit-backdrop-filter: var(--glas-filter); backdrop-filter: var(--glas-filter);
}
:root[data-design="c"] :is(.wk-t-lauf, .bahn-chip, .binde, .lz-rel) { background: var(--glas-leicht); box-shadow: inset 0 0 0 1px var(--glas-rand); }
:root[data-design="c"] :is(.wk-t-feld input, .wk-t-name, .wk-t-f input, .wk-t-f select, .wk-t-neu input) { background: var(--glas-leicht); border-color: var(--glas-rand); }
:root[data-design="c"] .wk-next { background: linear-gradient(140deg, rgba(0, 104, 181, .85), rgba(10, 35, 66, .8)); border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 14px 34px rgba(0, 60, 120, .3), 0 0 34px rgba(45, 140, 255, calc(.25 * var(--glow-staerke))), inset 0 1px 0 rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
:root[data-design="c"] .wkn-uhr { text-shadow: 0 0 22px rgba(160, 210, 255, .6); }
:root[data-design="c"] .lauf-start b { text-shadow: 0 0 14px rgba(255, 90, 54, .45); }
:root[data-design="c"] .lauf-nr, :root[data-design="c"] .wk-t-nr { box-shadow: 0 0 12px rgba(45, 140, 255, .55); }
:root[data-design="c"] .lauf-zeiten li.jetzt .lz-rel { box-shadow: var(--glow-rot); }

.quartett-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-text); font-weight: 800; font-size: 15px; }
.quartett-chip::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: conic-gradient(#FFFFFF 0 25%, #D8241F 0 50%, #F2C200 0 75%, #1F6FE0 0); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.binde-gelb i { background: #F2C200; box-shadow: 0 0 10px rgba(242, 194, 0, .55); }
.binde-blau i { background: #1F6FE0; box-shadow: 0 0 10px rgba(31, 111, 224, .55); }
:root[data-design="c"] .quartett-chip { background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--glas-rand), 0 0 14px rgba(45, 140, 255, calc(.3 * var(--glow-staerke))); }

/* ---------- Version 4 (PHP): Trainer im Kopf, Speicher-Status, Ansicht wechseln ---------- */
.kopf-trainer { flex-shrink: 0; padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--blue-text); text-decoration: none; background: var(--blue-soft); border: 1px solid var(--blue-line); }
.kopf-trainer:hover { text-decoration: underline; }
.trainer-hinweis { margin-top: 10px; margin-bottom: 0; font-size: 14px; color: var(--muted); }
/* Version 5: angemeldet (Name und Abmelden) */
.angemeldet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.angemeldet b { color: var(--ink); }
.angemeldet form { margin: 0; }
.angemeldet button { min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--blue-line); background: var(--blue-soft); color: var(--blue-text); font: inherit; font-weight: 700; cursor: pointer; }
.wk-ansicht { margin-bottom: 14px; }
.wk-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 9px 14px; border-radius: 14px; font-size: 14px; font-weight: 600;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.wk-status i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--blue-line); }
.wk-status span { flex: 1 1 12em; }
.wk-status.speichert i { background: var(--blue); animation: wk-puls 1s ease-in-out infinite; }
.wk-status.ok i { background: #1F9D55; box-shadow: 0 0 8px rgba(31, 157, 85, .6); }
.wk-status.fehler { color: var(--warn); background: var(--warn-soft); border-color: var(--warn); }
.wk-status.fehler i { background: var(--warn); }
.wk-status button { min-height: 36px; padding: 4px 12px; border-radius: 10px; border: 1px solid currentColor; background: none; color: inherit; font-weight: 700; }
@keyframes wk-puls { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .wk-status.speichert i { animation: none; } }
:root[data-design="c"] .wk-status:not(.fehler) { background: var(--glas); border-color: var(--glas-rand); -webkit-backdrop-filter: var(--glas-filter); backdrop-filter: var(--glas-filter); }
.kopf-links { flex: 1 1 auto; }
.kopf-titel { min-width: 0; }
.kopf-titel small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .kopf-titel small { display: none; } }
