/* Laufcoach – eigene Stile neben Tailwind. Dunkel ist Standard (html.dark), hell über html ohne .dark. */
@font-face { font-family: "Inter"; src: url("../fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --bg: #F5F7F8; --card: #FFFFFF; --text: #101518; --muted: #5B6670; --line: #E3E8EB; --grid: rgba(16,21,24,.08);
  --tipp: #C2410C; --tipp-hell: rgba(194,65,12,.12); --weg-rot: #B91C1C; --info: #8A6A43; --knopf-text: #FFFFFF;
  --gut-text: #15803D; --mittel-text: #A16207; --schlecht-text: #B91C1C;
  --gut-grafik: #16A34A; --mittel-grafik: #B98203; --schlecht-grafik: #DC2626; --feld-rand: #7A858D; }  /* graphics and field borders >= 3 : 1 (v3) */
html.dark { --bg: #101518; --card: #1A2126; --text: #F5F7F8; --muted: #9AA5AC; --line: #26303A; --grid: rgba(255,255,255,.07);
  --tipp: #FC4C02; --tipp-hell: rgba(252,76,2,.14); --weg-rot: #FF4F70; --info: #E0C49B; --knopf-text: #101518;
  --gut-text: #4ADE80; --mittel-text: #FACC15; --schlecht-text: #FF6B81;
  --gut-grafik: #16EC06; --mittel-grafik: #FFDE00; --schlecht-grafik: #FF0026; --feld-rand: #6B7680; }
html { background: var(--bg); color-scheme: light; }
html.dark { color-scheme: dark; }
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
.zahl { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.01em; }
.karte { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; }
.leise { color: var(--muted); }
.linie { border-color: var(--line); }
.feld { display: block; width: 100%; min-height: 2.75rem; margin-top: .25rem; padding: .55rem .7rem; border: 1px solid var(--feld-rand); border-radius: 10px; background: var(--card); color: var(--text); font-size: 1rem; }
.feld::placeholder { color: var(--muted); opacity: 1; }
.feld:focus { outline: 2px solid var(--tipp); outline-offset: 1px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; padding: .6rem 1rem; border-radius: 10px; font-weight: 600; background: var(--tipp); color: var(--knopf-text); }
.knopf-zweit { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .55rem .9rem; border-radius: 10px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--tipp) 45%, transparent); color: var(--tipp); }
.knopf-zweit.text-schlecht, .knopf-zweit.loeschen { color: var(--weg-rot); border-color: color-mix(in srgb, var(--weg-rot) 40%, transparent); }
/* Sportfarben als Hintergrund- und Textklassen */
.sport-laufen { --sport: #FC4C02; } .sport-rudern { --sport: #0093E7; } .sport-rad { --sport: #00F19F; } .sport-kraft { --sport: #FFDE00; } .sport-sonst { --sport: #9AA5AC; } .sport-schwimmen { --sport: #38BDF8; } .sport-ski { --sport: #C084FC; }
.sport-punkt { width: .65rem; height: .65rem; border-radius: 9999px; background: var(--sport); display: inline-block; }
.sport-symbol { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: color-mix(in srgb, var(--sport) 18%, transparent); color: var(--sport); font-size: 1.4rem; flex: none; }
.sport-symbol .svg { width: 1.4rem; height: 1.4rem; background: currentColor; -webkit-mask: var(--svg) no-repeat center / contain; mask: var(--svg) no-repeat center / contain; }
.sport-rand { border-left: 4px solid var(--sport); }
/* Ampel */
.ampel { display: inline-block; width: .8rem; height: .8rem; border-radius: 9999px; flex: none; }
.ampel-gut { background: var(--gut-grafik); } .ampel-mittel { background: var(--mittel-grafik); } .ampel-schlecht { background: var(--schlecht-grafik); } .ampel-leer { background: var(--line); }
/* Kennzahl-Kachel */
.kachel { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: .8rem .9rem; }
.kachel .titel { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kachel .wert { font-size: 1.6rem; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .15rem; }
.kachel .einheit { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .15rem; }
/* Tab-Leiste unten (Handy), oben am Rechner */
.tabs-unten { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs-unten a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem 0 .4rem; font-size: .75rem; color: var(--muted); }
.tabs-unten a i { font-size: 1.45rem; line-height: 1; }
.tabs-unten a.aktiv { color: var(--tipp); }
main.mit-tabs { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .tabs-unten { display: none; } main.mit-tabs { padding-bottom: 2rem; } }
.kopf-oben { display: none; }
@media (min-width: 768px) { .kopf-oben { display: flex; } }
.kopf-handy { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-top: env(safe-area-inset-top); }
@media (min-width: 768px) { .kopf-handy { display: none; } }
/* Wischkarten */
.wischen { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; }
.wischen > * { scroll-snap-align: start; flex: 0 0 82%; }
@media (min-width: 640px) { .wischen > * { flex-basis: 48%; } }
table.tabelle th { color: var(--muted); font-weight: 500; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; }
table.tabelle td, table.tabelle th { padding: .45rem .5rem; border-top: 1px solid var(--line); }
table.tabelle tr:first-child td, table.tabelle thead th { border-top: none; }

/* dense table for narrow screens: the first and last column keep the card's inner spacing (v3 §4) */
table.tabelle-eng th, table.tabelle-eng td { padding-left: .35rem; padding-right: .35rem; }
/* raw-data tables may scroll sideways on the phone, with a visible hint (v3 §4) */
.wisch-hinweis { font-size: .8125rem; color: var(--muted); margin-bottom: .25rem; }
@media (min-width: 640px) { .wisch-hinweis { display: none; } }
/* a value in a table cell that opens something: text colour, dotted underline, never orange (v3 §1) */
.zelle-link { color: var(--text); text-decoration: underline dotted; text-decoration-color: var(--muted); text-underline-offset: 3px; }

/* Colour roles (docs/Statistik_Muster_und_Vorschlaege.md, section 4): sport colour = which sport (bars, lists,
   calendar); metric colour = which measure (lines, same on every page); zone/traffic light = how hard / how good. */
:root {
  --k-leistung: #9333EA; --k-hf: #E11D48; --k-tempo: #475569; --k-kadenz: #D97706; --k-gct: #0D9488; --k-vo: #0284C7;
  --k-form-power: #7C3AED; --k-hoehe: #94A3B8; --k-temperatur: #EA580C; --k-schlaf: #4F46E5; --k-hrv: #0D9488;
  --k-ruhepuls: #BE123C; --k-body-battery: #2563EB; --k-stress: #EA580C; --k-gewicht: #334155; --k-trend: #B8956B;
  --k-koerperfett: #DB2777; --k-ctl: #2563EB; --k-atl: #DB2777; --k-vergleich: #94A3B8; --k-ziel: #334155;
  --z1: #9AA5AC; --z2: #3B82F6; --z3: #16A34A; --z4: #FB923C; --z5: #E11D48;
}
html.dark {
  --k-leistung: #C084FC; --k-hf: #FF4F70; --k-tempo: #E3E8EB; --k-kadenz: #FBBF24; --k-gct: #2DD4BF; --k-vo: #7DD3FC;
  --k-form-power: #A78BFA; --k-hoehe: #5B6670; --k-temperatur: #FDBA74; --k-schlaf: #6366F1; --k-hrv: #2DD4BF;
  --k-ruhepuls: #E11D48; --k-body-battery: #4C7BE1; --k-stress: #F97316; --k-gewicht: #F5F7F8; --k-trend: #B8956B;
  --k-koerperfett: #F9A8D4; --k-ctl: #4C7BE1; --k-atl: #F472B6; --k-vergleich: #9AA5AC; --k-ziel: #F5F7F8;
  --z1: #9AA5AC; --z2: #3B82F6; --z3: #16EC06; --z4: #FB923C; --z5: #FF0026;
}

/* dictation button while recording */
.aufnahme { color: #fff !important; background: #E11D48 !important; border-color: #E11D48 !important; animation: puls 1.2s infinite; }
@keyframes puls { 50% { opacity: .65; } }

/* Weather card in the style of the iPhone weather app: gradient by condition and daytime, glass panels */
.wetter { box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.wbg-klar { background: linear-gradient(180deg, #2F80ED 0%, #56CCF2 100%); }
.wbg-heiter { background: linear-gradient(180deg, #3A7BD5 0%, #8CB4E0 100%); }
.wbg-bedeckt { background: linear-gradient(180deg, #59677A 0%, #8C9AAB 100%); }
.wbg-regen { background: linear-gradient(180deg, #3E4C63 0%, #64748B 100%); }
.wbg-gewitter { background: linear-gradient(180deg, #2B2E4A 0%, #4B4E6D 100%); }
.wbg-nacht { background: linear-gradient(180deg, #0B1026 0%, #2B3260 100%); }
.wglas { background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.w-sonne { color: #FFD60A; } .w-mond { color: #E5E7EB; } .w-wolke { color: #E5E7EB; } .w-wolke-hell { color: #F8FAFC; }
.w-regen { color: #64D2FF; } .w-schnee { color: #FFFFFF; } .w-gewitter { color: #FFD60A; } .w-regen-text { color: #9BE3FF; }
.w-temp { background: linear-gradient(90deg, #5AC8FA, #A3E635, #FACC15, #FB923C); }

/* binding goal and offers on the plan page */
/* info only (never orange, never chip-shaped): goal of the day */
.ziel-marke { display: inline-flex; align-items: center; gap: .25rem; font-size: .8125rem; font-weight: 600; color: var(--info); }
.ziel-marke::before { font-family: "tabler-icons"; content: "\eb35"; font-weight: 400; }
/* offers = selection chips with a radio dot (Bedienmuster) */
.angebot { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; border: 1px solid color-mix(in srgb, var(--tipp) 45%, transparent); border-radius: 999px; padding: .15rem .75rem .15rem .55rem; background: transparent; color: var(--text); }
.angebot::before { content: ""; width: .75rem; height: .75rem; border-radius: 999px; border: 2px solid var(--tipp); box-sizing: border-box; flex: none; }
.angebot:hover { border-color: var(--tipp); }
.angebot-aktiv { background: var(--tipp-hell); border-color: var(--tipp); font-weight: 600; }
.angebot-aktiv::before { background: var(--tipp); box-shadow: inset 0 0 0 2px var(--card); }
/* planned session on a library route (stage 3) */
.strecke-plan { background: color-mix(in srgb, #00F19F 8%, transparent); border: 1px solid color-mix(in srgb, #00F19F 25%, transparent); }

/* distance bar (equipment) */
.balken { height: .4rem; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); overflow: hidden; }
.balken > div { height: 100%; border-radius: 999px; }

/* season phases */
.phasenleiste { display: flex; height: .8rem; border-radius: 999px; overflow: hidden; gap: 2px; }
.phasenleiste > div { height: 100%; }
.phase-jetzt { outline: 2px solid currentColor; outline-offset: -2px; }
.phasenpunkt { display: inline-block; width: .65rem; height: .65rem; border-radius: 999px; margin-top: .35rem; flex-shrink: 0; }
.phase-grundlage { background: #38BDF8; } .phase-aufbau { background: #A78BFA; } .phase-spezifisch { background: #F472B6; }
.phase-taper { background: #FBBF24; } .phase-rennwoche { background: #FC4C02; } .phase-erholung { background: #34D399; }

/* humidity light: temperature + dew point (sources/klima.py) */
.feuchte-punkt { display: inline-block; width: .5rem; height: .5rem; border-radius: 999px; margin-right: .2rem; vertical-align: .05rem; }
.fp-gut { background: var(--gut-grafik); } .fp-mittel { background: var(--mittel-grafik); } .fp-schlecht { background: var(--schlecht-grafik); }

/* workout builder */
.baustein { border: 1px solid var(--line, #d6d3d1); border-radius: 10px; padding: .4rem .5rem; }
.mini { position: relative; min-width: 2rem; border: 1px solid var(--feld-rand); border-radius: 6px; padding: 0 .35rem; font-size: .8125rem; line-height: 1.6rem; }
.mini::after { content: ""; position: absolute; inset: -.55rem -.15rem; }  /* 44-px hit area around a small control (v3 §3) */
.mini:hover { border-color: currentColor; }
.zonen-knoepfe { display: inline-flex; gap: .15rem; margin-left: .2rem; }
.profil { display: flex; align-items: flex-end; height: 6rem; gap: 1px; }
.profil > div { border-radius: 2px 2px 0 0; min-width: 2px; }
.pz-pause { background: color-mix(in srgb, currentColor 20%, transparent); }
.pz-1 { background: var(--z1, #60A5FA); } .pz-2 { background: var(--z2, #34D399); }
.pz-3 { background: var(--z4, #FB923C); } .pz-4 { background: var(--z5, #F43F5E); }

/* wind per km */
/* wind per km as a borderless strip, the rating as a line under the value (v3 §7) */
.wind-km { border-bottom: 3px solid var(--line); padding: .15rem .3rem .3rem; min-width: 3.1rem; text-align: center; }
.wk-gut { border-bottom-color: var(--gut-grafik); } .wk-mittel { border-bottom-color: var(--mittel-grafik); } .wk-schlecht { border-bottom-color: var(--schlecht-grafik); }

/* plan: finished days hidden unless shown */
.verberge-vorbei .tag-vorbei { display: none; }

/* segmented switch (e.g. time / distance) */
.segment { display: flex; background: var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.segment button { flex: 1; min-height: 2.75rem; padding: .3rem .9rem; border-radius: 999px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.segment button.aktiv { background: var(--card); color: var(--text); font-weight: 600; }
.segment button:disabled { opacity: .35; }
/* full-screen chart (phone landscape or tap) */
dialog.vollbild { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg, #101518); color: var(--text); }
dialog.vollbild::backdrop { background: #000; }

/* ---------------------------------------------------------------------------------------------------------------
   Bedienmuster (Thomas 08.11.2026, Variante D + C, docs/2026-11-08_Bedienmuster.md)
   One rule: orange = tappable, nothing else is orange text. A sign at the end says what happens:
     ›  page in the coach (a.link, card links)      ↗  leaves the coach (http… / target=_blank)
     ⤓  downloads a file (a[download])              ⌄  opens here (summary.link)
     ⇕  opens a choice                              ×  deletes (.loeschen, red)
   Selection = chips with a radio dot (.angebot / .chip), info = sand gold with symbol, never chip-shaped.
   Phone lists (Variante C): .liste with .reihe rows (≥ 48 px) and › at the end.
   --------------------------------------------------------------------------------------------------------------- */
.link, .weg { color: var(--tipp); font-weight: 600; text-decoration: none; }
.link:hover, .weg:hover { text-decoration: underline; text-underline-offset: 3px; }
a.link::after, a .link::after, summary.link::after, .weg::after {
  font-family: "tabler-icons"; font-weight: 400; content: "\ea61"; display: inline-flex; align-items: center;
  justify-content: center; width: 1.25em; height: 1.25em; margin-left: .3em; border-radius: .35em; font-size: .85em;
  background: var(--tipp-hell); vertical-align: -.2em; text-decoration: none; }
a.link[href^="http"]::after, a.link[target="_blank"]::after, .weg-extern::after { content: "\ea24"; }
a.link[download]::after, .weg-laden::after { content: "\ea96"; }
.weg-wahl::after { content: "\eb1d"; }
summary.link { list-style: none; cursor: pointer; }
summary.link::-webkit-details-marker { display: none; }
summary.link::after { content: "\ea5f"; transition: transform .15s; }
/* section headings that open (summary without .link): text stays, the orange ⌄ shows it opens */
summary:not(.link):not([class*="knopf"]) { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem; min-height: 2.75rem; }
summary:not(.link):not([class*="knopf"])::-webkit-details-marker { display: none; }
summary:not(.link):not([class*="knopf"])::after {
  font-family: "tabler-icons"; font-weight: 400; content: "\ea5f"; display: inline-flex; align-items: center;
  justify-content: center; width: 1.25em; height: 1.25em; margin-left: .4em; border-radius: .35em; font-size: .85em;
  background: var(--tipp-hell); color: var(--tipp); vertical-align: -.2em; transition: transform .15s; }
details[open] > summary.link::after, details[open] > summary:not([class*="knopf"])::after { transform: rotate(180deg); }
a.link:has(> .ti-arrow-left)::after { content: none; }  /* back links carry their own arrow */
/* card links: the whole card leads somewhere, the › says so */
a.karte { position: relative; padding-right: 2.6rem; }
a.karte::after { font-family: "tabler-icons"; content: "\ea61"; position: absolute; right: .7rem; top: 50%;
  transform: translateY(-50%); width: 1.4rem; height: 1.4rem; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1.05rem; }  /* v2: rows and cards carry a muted ›, no tinted box */
/* delete: red, with × at the end */
.loeschen { color: var(--weg-rot); font-weight: 600; display: inline-flex; align-items: center; min-height: 2.75rem; }
.loeschen::after { font-family: "tabler-icons"; font-weight: 400; content: "\eb55"; display: inline-flex; align-items: center;
  justify-content: center; width: 1.25em; height: 1.25em; margin-left: .3em; border-radius: .35em; font-size: .85em;
  background: color-mix(in srgb, var(--weg-rot) 14%, transparent); }
.loeschen:hover { text-decoration: underline; text-underline-offset: 3px; }
/* emphasis that is not tappable (e.g. today in the week strip) */
.betont { color: var(--info); font-weight: 700; }
/* phone lists like the iPhone settings (Variante C) */
.liste { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.liste-titel { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 .9rem .35rem; }
.reihe { display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .4rem .9rem; border-top: 1px solid var(--line);
  color: var(--text); width: 100%; text-align: left; background: transparent; }
.liste > .reihe:first-child, .liste > :first-child .reihe { border-top: 0; }
a.reihe::after { font-family: "tabler-icons"; content: "\ea61"; padding-left: .25rem; color: var(--muted); font-size: 1.05rem; flex: none; }
.reihe .sym { width: 1.9rem; height: 1.9rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--text); font-size: 1.1rem; flex: none; }
.reihe .text { flex: 1; min-width: 0; }
.reihe .zusatz { color: var(--muted); font-size: .8125rem; text-align: right; }
.reihe.loeschen::after { margin-left: 0; }
.rahmen-heute { border-color: var(--info); }

/* ---------------------------------------------------------------------------------------------------------------
   Bedienmuster v2 (11.11.2026, docs/2026-11-11_Bedienmuster_v2.md): contrast per theme, 44 px tap targets, focus,
   status colours as readable text, signs only where they help, data age, inline errors.
   --------------------------------------------------------------------------------------------------------------- */
/* status colours: neon stays for dots/bars/areas (bg-*), text uses a readable variant per theme */
html .text-gut { color: var(--gut-text); } html .text-mittel { color: var(--mittel-text); } html .text-schlecht { color: var(--schlecht-text); }
/* tap targets ≥ 44 px for actions outside running text */
summary.link, button.link, .reihe, .stand-knopf { min-height: 2.75rem; }
summary.link, button.link { display: inline-flex; align-items: center; gap: .35rem; }
/* visible focus for keyboard and assistive tech */
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--tipp); outline-offset: 2px; border-radius: 6px; }
/* tables: the row is the target, no sign per cell */
table a.link::after { content: none; }
/* active tab on the desktop header */
.tab-aktiv { background: var(--tipp); color: var(--knopf-text); }
/* data age: yellow from 24 h, red from 72 h */
.stand-gelb, .stand-gelb .stand-text { color: var(--mittel-text); }
.stand-rot, .stand-rot .stand-text { color: var(--schlecht-text); font-weight: 600; }
/* errors in place instead of alert() */
.fehler-zeile { color: var(--schlecht-text); font-size: .875rem; }
/* sport symbol inside list rows: the only place the sport colour shows (decision 1, 11.11.2026) */
.sport-sym { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 10px;
  background: color-mix(in srgb, var(--sport) 18%, transparent); color: var(--sport); font-size: 1.15rem; flex: none; }
.sport-sym .svg { width: 1.15rem; height: 1.15rem; background: currentColor; -webkit-mask: var(--svg) no-repeat center / contain; mask: var(--svg) no-repeat center / contain; }
/* today page (decision 2): target band bar, calm rows with the open sign on the right, calm weather */
.zielband { position: relative; height: .6rem; border-radius: 999px; background: var(--line); }
.zielband > span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--info); }
summary.heute-zeile { display: flex; align-items: center; gap: .75rem; }
summary.heute-zeile:not(.link):not([class*="knopf"])::after { margin-left: auto; background: transparent; color: var(--muted); font-size: 1.05rem; }  /* rows: muted sign, no box (beats the general summary rule) */
.wetter-ruhig .wglas { background: color-mix(in srgb, var(--line) 55%, transparent); backdrop-filter: none; }
html:not(.dark) .wetter-ruhig .w-wolke, html:not(.dark) .wetter-ruhig .w-wolke-hell, html:not(.dark) .wetter-ruhig .w-mond,
html:not(.dark) .wetter-ruhig .w-schnee { color: #5B6670; }
html:not(.dark) .wetter-ruhig .w-sonne, html:not(.dark) .wetter-ruhig .w-gewitter { color: #B45309; }
html:not(.dark) .wetter-ruhig .w-regen, html:not(.dark) .wetter-ruhig .w-regen-text { color: #0369A1; }
/* verdict strip (activity page, decision 3) */
.urteil { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--card); }
.urteil-gut { background: color-mix(in srgb, var(--gut-grafik) 9%, var(--card)); border-color: color-mix(in srgb, var(--gut-grafik) 30%, var(--line)); }
.urteil-mittel { background: color-mix(in srgb, var(--mittel-grafik) 10%, var(--card)); border-color: color-mix(in srgb, var(--mittel-grafik) 35%, var(--line)); }
.urteil-schlecht { background: color-mix(in srgb, var(--schlecht-grafik) 8%, var(--card)); border-color: color-mix(in srgb, var(--schlecht-grafik) 30%, var(--line)); }
/* segment with links (period presets, Training/Gesundheit) behaves like the button segment */
.segment a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .3rem .45rem;
  border-radius: 999px; color: var(--muted); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.segment a.aktiv, .segment span.aktiv { background: var(--card); color: var(--text); }
.segment span.aktiv { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .3rem .8rem;
  border-radius: 999px; font-size: .875rem; font-weight: 600; }
.tipp { color: var(--tipp); }
/* v3 §10: no movement when the iPhone asks for reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* v3 §5: rating as a 4-px stripe on the left (in band green, close yellow, off and missed red, unplanned grey) */
.streifen { position: relative; overflow: hidden; }
.streifen::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--streifen, transparent); }
.streifen-gut { --streifen: var(--gut-grafik); } .streifen-mittel { --streifen: var(--mittel-grafik); }
.streifen-schlecht, .streifen-verpasst { --streifen: var(--schlecht-grafik); } .streifen-ungeplant { --streifen: var(--muted); }
/* one repetition in its band: band as area, own mean as a mark (K2) */
.bandbalken { position: relative; height: .7rem; border-radius: 999px; background: var(--line); }
.bandbalken .band { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--info) 40%, transparent); border-left: 2px solid var(--info); border-right: 2px solid var(--info); }
.bandbalken .ist { position: absolute; top: -.25rem; bottom: -.25rem; width: 3px; margin-left: -1.5px; border-radius: 999px; background: var(--text); }
.bandbalken .ist-raus { background: var(--schlecht-grafik); }
/* labelled band scale on the today page (K2c): neutral zones, the band as a sand area */
.bandskala { position: relative; display: flex; height: 1.75rem; border-radius: 10px; overflow: hidden; }
.bandskala > i { display: block; height: 100%; }
.bandskala > i:nth-child(1) { background: color-mix(in srgb, var(--text) 6%, transparent); }
.bandskala > i:nth-child(2) { background: color-mix(in srgb, var(--text) 10%, transparent); }
.bandskala > i:nth-child(3) { background: color-mix(in srgb, var(--text) 14%, transparent); }
.bandskala > i:nth-child(4) { background: color-mix(in srgb, var(--text) 19%, transparent); }
.bandskala > span { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--info) 45%, transparent); border-left: 2px solid var(--info); border-right: 2px solid var(--info); }
.skala-namen { position: relative; height: 1.15rem; font-size: .8125rem; color: var(--muted); margin-top: .25rem; }
.skala-namen > span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.skala-namen > span:first-child { transform: none; left: 0 !important; }
.skala-namen > span:last-child { transform: none; left: auto !important; right: 0; }
/* sheet from the bottom (v3 §2, Tagesblatt): one shared dialog style, opened by [data-blatt], closed by [data-blatt-zu] */
dialog.blatt { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88vh; padding: 0 0 env(safe-area-inset-bottom); border: 0; border-radius: 16px 16px 0 0; background: var(--card); color: var(--text); animation: blatt-rein .2s ease-out; }
dialog.blatt::backdrop { background: rgb(0 0 0 / .55); }
@media (min-width: 640px) { dialog.blatt { margin: auto; max-width: 30rem; border-radius: 1rem; } }
@keyframes blatt-rein { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
.blatt-griff { width: 2.5rem; height: .3rem; border-radius: 999px; background: var(--line); margin: .5rem auto .25rem; }
.blatt-kopf { display: flex; align-items: center; gap: .5rem; padding: 0 1rem .5rem; }
.blatt-inhalt { overflow-y: auto; max-height: calc(88vh - 4rem); padding: 0 1rem 1rem; }
/* one choice per 48-px row with a radio dot (Auswahlliste) */
.wahl { display: flex; align-items: center; gap: .75rem; min-height: 3rem; width: 100%; padding: .4rem 0; text-align: left; border-top: 1px solid var(--line); color: var(--text); }
.wahl::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 999px; border: 2px solid var(--muted); flex: none; box-sizing: border-box; }
.wahl-aktiv::before { border-color: var(--tipp); background: var(--tipp); box-shadow: inset 0 0 0 3px var(--card); }
.tag-heute { background: color-mix(in srgb, var(--info) 9%, transparent); }  /* today in the plan list: sand tint, no neon frame */
/* neutral chip for adding or filtering (builder blocks): no radio dot, no orange (v3 §1) */
.chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; padding: .15rem .8rem; border: 1px solid var(--feld-rand); border-radius: 999px; color: var(--text); background: transparent; }
.mit-punkten > * + *::before { content: " · "; color: var(--muted); }  /* quiet second line of values without stray separators */
/* abbreviation with an (i): inline, text colour, the icon muted; the hit area grows invisibly to 44 px (v3 §3) */
.abk { display: inline-flex; align-items: center; gap: .1rem; color: inherit; font: inherit; position: relative; }
.abk::after { content: ""; position: absolute; inset: -.6rem -.3rem; }
.abk .ti { color: var(--muted); font-size: .85em; }
.chip-an { background: var(--tipp-hell); border-color: var(--tipp); font-weight: 600; }  /* chosen chip (thumb, reason) */

[hidden] { display: none !important; }  /* the hidden attribute wins over display rules (search filter, sheets) */
/* paging arrows (week, day, period): borderless icon link, 44 px (v3 §8) */
.blaettern { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; color: var(--tipp); font-size: 1.25rem; border-radius: 10px; }
