/* app.css — das ganze Stylesheet. Kein Build, keine Webfonts, keine
   Rasterbilder, kein CDN; Budget 20 KB. Ein einziger Umbruch bei 720px.
   Keine style-Attribute im Markup: die CSP erlaubt nur 'self'.

   Palette: Petrol + Sand auf warmem Creme — die Hausfarben des Fitnessparks.
   Der dunkle Modus ist KEINE Aufhellung der hellen Werte: dort wird Petrol zum
   Grund und Sand bleibt der Akzent, beide Saetze einzeln auf Kontrast geprueft.

   1 Tokens · 2 Geruest · 3 Kopf · 4 Heldenkarte · 5 Fenster · 6 Diagramm
   7 Tabelle · 8 Datumsleiste · 9 Kurse · 10 Formular · 11 Fuss · 12 Desktop */

/* --- 1. Tokens --- */
:root {
  color-scheme: light dark;

  --bg:    #f6f1e6;   /* warmes Creme, zwischen --fp-cream und --fp-sand-light */
  --card:  #fffefb;
  --card2: #f6f1e6;   /* vertiefte Flaeche innerhalb einer Karte */
  --fg:    #1a1a1a;
  --mut:   #5a6a68;
  --line:  #e2dac8;
  --line2: #cfc5ae;

  --acc:   #0e5052;   /* Fitnesspark-Petrol: Links, Knoepfe, Fokus */
  --acc-on: #ffffff;
  --accf:  #eaf1f0;
  --sand:  #e1cea8;
  --sandf: #f2ebdb;
  --alert: #b34700;   /* abgedunkeltes Marken-Orange, damit Text 4.5:1 haelt */

  /* Stufenskala an capacity_ref. NIE allein: immer mit Wort und Position. */
  --q:  #0b6b45;  --qb: #dff0e6;   /* ruhig      */
  --m:  #8a5a00;  --mb: #faeed2;   /* maessig    */
  --b:  #b1431b;  --bb: #fbe3d6;   /* voll       */
  --v:  #9c1130;  --vb: #fadbe1;   /* sehr voll  */

  /* Diagramm. Gepruefte Schritte: Gesamtlinie und Kursflaeche trennen sich
     unter Protanopie mit ΔE 18.5 (OKLab x100), beide >= 3:1 zur Flaeche. */
  --c-total:  #0d5f62;
  --c-course: #a8822f;
  --c-ref:    #7d7363;
  --c-grid:   #ece4d3;
  --c-axt:    #6a6356;

  --rad: 14px; --sp: 14px;
  --shadow: 0 1px 2px rgba(14, 80, 82, .08);

  /* Systemschrift: kein Download, kein Layoutsprung, keine externe Quelle. */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #072626;   /* Petrol wird der Grund, nicht ein aufgehelltes Grau */
    --card:  #0e3537;
    --card2: #0a2d2f;
    --fg:    #eef3f1;
    --mut:   #9fb8b6;
    --line:  #1d4a4c;
    --line2: #2a5c5e;

    --acc:   #7fd0cb;
    --acc-on: #072626;
    --accf:  #0d3f41;
    --sand:  #e1cea8;
    --sandf: #123a3a;
    --alert: #ff8c3d;

    --q:  #5fd3a2;  --qb: #0d3a2c;
    --m:  #edc271;  --mb: #3a2f14;
    --b:  #ff9b73;  --bb: #40241a;
    --v:  #ff8c9e;  --vb: #3d1c23;

    --c-total:  #45aeab;
    --c-course: #e1cea8;   /* Sand bleibt der Akzent */
    --c-ref:    #a39883;
    --c-grid:   #1b4648;
    --c-axt:    #9fb8b6;

    --shadow: none;
  }
}

/* --- 2. Geruest --- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body { margin: 0; background: var(--bg); color: var(--fg);
       font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 650; }
h1 { font-size: 1.25rem; } h2 { font-size: 1.02rem; } h3 { font-size: .95rem; }
p  { margin: 0 0 .7em; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: var(--acc); }

:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px;
                 border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 20;
        background: var(--card); color: var(--fg); padding: 10px 14px; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

main { padding: var(--sp) 0 28px; }
.card { background: var(--card); border: 1px solid var(--line);
        border-radius: var(--rad); box-shadow: var(--shadow);
        padding: var(--sp); margin: 0 0 var(--sp); }

.mut { color: var(--mut); } .sm { font-size: .82rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden;
      clip-path: inset(50%); white-space: nowrap; }

/* Stufenfarbe — nie ohne das Wort daneben. */
.l-quiet    { color: var(--q); }
.l-moderate { color: var(--m); }
.l-busy     { color: var(--b); }
.l-vbusy    { color: var(--v); }

/* --- 3. Kopf --- */
.top { position: sticky; top: 0; z-index: 10;
       background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 54px; }

/* Echte Links: Standortwechsel = normale Navigation. */
.seg { display: flex; flex: 1; gap: 2px; padding: 3px; background: var(--bg);
       border: 1px solid var(--line); border-radius: 999px; }
.seg a {
  flex: 1; text-align: center; padding: 9px 8px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: .9rem; font-weight: 600;
  color: var(--mut); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seg a[aria-current="page"] { background: var(--acc); color: var(--acc-on); }

/* --- 4. Heldenkarte: Messung UND Prognose --- */
.hero { padding: var(--sp) var(--sp) 16px; }

.hero-head { display: flex; flex-wrap: wrap; align-items: center;
             justify-content: space-between; gap: 6px 10px; margin: 0 0 6px; }
.eyebrow { font-size: .78rem; font-weight: 650; letter-spacing: .05em;
           text-transform: uppercase; color: var(--mut); }

/* Das Frischesiegel. Nach der Zahl die wichtigste Aussage der Karte. */
.fresh { display: inline-flex; align-items: center; gap: 5px;
         padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
         background: var(--card2); font-size: .76rem; font-weight: 650;
         white-space: nowrap; }
.fresh::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
                 background: currentColor; flex: 0 0 auto; }
.fresh.f-ok   { color: var(--q); border-color: var(--q); background: var(--qb); }
.fresh.f-old  { color: var(--alert); border-color: var(--alert); background: var(--bb); }
.fresh.f-none { color: var(--mut); }

.hero-now { display: flex; align-items: center; gap: 16px; margin: 0; }
/* Proportionale Ziffern: tabular-nums laesst eine grosse Zahl locker wirken. */
.big { display: block; font-size: clamp(60px, 19vw, 86px); font-weight: 700;
       line-height: .88; letter-spacing: -.035em; }
.hero-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.word { font-size: 1.02rem; font-weight: 700; letter-spacing: .12em;
        text-transform: uppercase; }
.hero .sub { margin: 0; font-size: .86rem; }
.lead { font-size: 1.6rem; font-weight: 700; margin: 0 0 4px; }

.hero.l-quiet    { background: linear-gradient(var(--qb), var(--card) 62%); }
.hero.l-moderate { background: linear-gradient(var(--mb), var(--card) 62%); }
.hero.l-busy     { background: linear-gradient(var(--bb), var(--card) 62%); }
.hero.l-vbusy    { background: linear-gradient(var(--vb), var(--card) 62%); }

/* Der Ausblick — „und wohin geht es?" */
.fore { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.fore-h { margin: 0 0 4px; font-size: .78rem; font-weight: 650;
          letter-spacing: .05em; text-transform: uppercase; color: var(--mut); }
.fore-h .trend { color: var(--fg); text-transform: none; letter-spacing: 0; }
.fore-l li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; }
.fore-l .k { flex: 1; font-size: .88rem; color: var(--mut); }
.fore-l b  { font-size: 1.06rem; font-weight: 650;
             font-variant-numeric: tabular-nums; }
.fore-l em { font-style: normal; font-size: .74rem; font-weight: 700;
             letter-spacing: .08em; text-transform: uppercase;
             flex: 0 0 72px; text-align: right; }

.note { margin: 10px 0 0; padding: 9px 11px; font-size: .86rem;
        border-left: 3px solid var(--alert); border-radius: 0 8px 8px 0;
        background: var(--card2); }
.badge { display: inline-block; margin-left: 6px; padding: 2px 8px;
         border-radius: 999px; background: var(--card2); vertical-align: 2px;
         border: 1px solid var(--line);
         font-size: .74rem; font-weight: 600; color: var(--mut); }
.help { display: block; margin: 10px 0 0; padding: 10px 12px; font-size: .86rem;
        border-radius: 10px; background: var(--sandf);
        border: 1px dashed var(--acc); }

/* --- 5. Ruhige Fenster --- */
.best { margin: 0; }
.best li { display: flex; align-items: baseline; justify-content: space-between;
           gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.best li:first-child { border-top: 0; }
.best li b { font-size: 1.24rem; font-variant-numeric: tabular-nums; }
.best li.top b { color: var(--q); }
.best li.top b::before { content: "\25B8\00A0"; }
.best li.alt b { font-size: 1.02rem; font-weight: 600; }
.best li span { color: var(--mut); font-size: .85rem; white-space: nowrap; }

/* Dauer-Chips: ohne JS sinnlos, deshalb `hidden`. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips[hidden] { display: none; }
.chip {
  appearance: none; cursor: pointer; padding: 10px 16px; min-height: 44px;
  border: 1px solid var(--line2); border-radius: 999px;
  background: var(--card); color: var(--fg); font: 600 .88rem var(--font);
}
.chip.on { background: var(--acc); color: var(--acc-on); border-color: var(--acc); }

/* --- 6. Diagramm --- */
.chart { display: block; width: 100%; height: auto; }

.c-grid { stroke: var(--c-grid); stroke-width: 1; shape-rendering: crispEdges; }
.c-ax   { stroke: var(--line2); stroke-width: 1; shape-rendering: crispEdges; }
.c-axt  { fill: var(--c-axt); font: 500 10px var(--font);
          font-variant-numeric: tabular-nums; }
.c-axy  { text-anchor: end; }

/* Referenzkapazitaet: waagrecht, eigene Farbe, eigenes Wort — niemals nur Farbe. */
.c-ref  { stroke: var(--c-ref); stroke-width: 1.5; stroke-dasharray: 7 4; }
.c-reft { fill: var(--c-ref); font: 650 9px var(--font); text-anchor: end; }

.c-band   { fill: var(--c-total); opacity: .14; }
.c-course { fill: var(--c-course); opacity: .34; }
.c-ctop   { fill: none; stroke: var(--c-course); stroke-width: 1.6;
            stroke-linejoin: round; }
.c-ctxt   { fill: var(--fg); font: 650 9px var(--font); text-anchor: middle; }

.c-line { fill: none; stroke: var(--c-total); stroke-width: 2.2;
          stroke-linejoin: round; stroke-linecap: round; }
.c-dash { stroke-dasharray: 5 4; opacity: .9; }

.c-win  { fill: var(--q); opacity: .1; }
.c-rail { fill: var(--q); opacity: .45; }
.c-rail1 { opacity: 1; }

.c-now  { stroke: var(--fg); stroke-width: 1; stroke-dasharray: 3 3; opacity: .45; }
.c-nowd { fill: var(--c-total); stroke: var(--card); stroke-width: 2; }
.c-nowt { fill: var(--mut); font: 650 9px var(--font); }

/* Fadenkreuz: app.js setzt nur Attribute, nie style (CSP). */
.c-cur    { opacity: 0; pointer-events: none; }
.c-cur.on { opacity: 1; }
.c-cx     { stroke: var(--fg); stroke-width: 1; opacity: .5; }
.c-cd     { fill: var(--fg); stroke: var(--card); stroke-width: 2; }
.c-hit    { fill: transparent; cursor: crosshair; touch-action: pan-y; }

/* Ablesezeile statt schwebendem Tooltip: ein Tooltip braeuchte ein
   style-Attribut — und auf dem Handy ist die feste Zeile ohnehin besser. */
.readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px;
           margin: 8px 0 0; padding: 8px 10px; min-height: 38px;
           border-radius: 10px; background: var(--card2); font-size: .86rem; }
.readout b { font-variant-numeric: tabular-nums; }
.readout .ro-v { font-weight: 650; }
.readout .ro-c { color: var(--mut); }
.readout .ro-c::before { content: ""; display: inline-block; width: 9px;
  height: 9px; margin-right: 5px; border-radius: 2px; background: var(--c-course); }

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px;
          margin: 8px 0 0; color: var(--mut); font-size: .76rem; }
.legend i { font-style: normal; display: inline-flex; align-items: center; }
.legend i::before { content: ""; display: inline-block; width: 18px; height: 2px;
  margin-right: 6px; border-radius: 1px; background: var(--c-total); }
.legend .lg-m::before { background: var(--c-total); }
.legend .lg-f::before { background: repeating-linear-gradient(90deg,
  var(--c-total) 0 5px, transparent 5px 9px); }
.legend .lg-b::before { height: 10px; opacity: .22; border-radius: 2px; }
.legend .lg-c::before { height: 10px; border-radius: 2px;
  background: var(--c-course); opacity: .5; }
.legend .lg-w::before { height: 10px; border-radius: 2px;
  background: var(--q); opacity: .35; }
.legend .lg-r::before { background: repeating-linear-gradient(90deg,
  var(--c-ref) 0 7px, transparent 7px 11px); }

/* --- 7. Wertetabelle --- */
details > summary { cursor: pointer; padding: 10px 0; min-height: 44px;
                    display: flex; align-items: center;
                    font-weight: 600; font-size: .9rem; }
details > summary::marker { color: var(--mut); }

.tbl { width: 100%; border-collapse: collapse; font-size: .84rem;
       font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 4px 6px; text-align: right;
                   border-top: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { color: var(--mut); font-weight: 600; }

/* Eine breite Tabelle scrollt in SICH, nicht die ganze Seite. Ohne das
   schiebt /modell/ auf dem Telefon das gesamte Layout nach rechts. */
.tblw { overflow-x: auto; margin: 0 0 .7em; }

/* Aufzaehlung mit Punkten. ul ist global listenlos; fuer eine Liste aus
   ganzen Saetzen braucht es den Punkt zurueck. */
.plain { margin: 0 0 .7em; padding-left: 1.2em; list-style: disc; }
.plain li { margin: 0 0 .3em; }

/* --- 8. Datumsleiste: die eine Filterzeile ueber allem, was sie betrifft --- */
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 var(--sp);
         scroll-snap-type: x proximity; }
.dates a {
  flex: 0 0 auto; scroll-snap-align: center; min-width: 58px; min-height: 48px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--fg);
  text-align: center; text-decoration: none; line-height: 1.25;
}
.dates a span { display: block; font-size: .72rem; color: var(--mut); }
.dates a strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.dates a.today { border-color: var(--acc); }
.dates a[aria-current="page"] {
  background: var(--acc); border-color: var(--acc); color: var(--acc-on);
}
.dates a[aria-current="page"] span { color: var(--acc-on); opacity: .8; }

/* --- 9. Kurse / Wetter --- */
.courses li { padding: 8px 0; border-top: 1px solid var(--line); }
.courses li:first-child { border-top: 0; }
.cr { display: flex; gap: 10px; align-items: baseline; margin: 0; }
.courses time { flex: 0 0 44px; font-variant-numeric: tabular-nums; font-weight: 600; }
.courses em { font-style: normal; flex: 1; min-width: 0; }
.cr b { font-variant-numeric: tabular-nums; font-size: 1.02rem; }
/* Anteilsbalken: Breiten als Klassen, weil die CSP kein style-Attribut erlaubt. */
.bar { display: block; height: 5px; margin-top: 5px; border-radius: 3px;
       background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px;
         background: var(--c-course); }
.w1 { width: 10%; } .w2 { width: 20%; } .w3 { width: 30%; } .w4 { width: 40%; }
.w5 { width: 50%; } .w6 { width: 60%; } .w7 { width: 70%; } .w8 { width: 80%; }
.w9 { width: 90%; } .w10 { width: 100%; }

.weather { color: var(--mut); font-size: .88rem; margin: 0; }

/* --- 10. Formular --- */
label, legend { display: block; font-weight: 600; margin: 0 0 6px; padding: 0; }
fieldset { border: 0; padding: 0; margin: 16px 0 0; }
.mt { margin-top: 16px; }
input[type="number"], input[type="text"], input[type="password"],
input[type="datetime-local"], textarea {
  width: 100%; padding: 11px 12px; font: 16px var(--font);
  border: 1px solid var(--line2); border-radius: 10px;
  background: var(--card); color: var(--fg);
}
#count { font-size: 2.6rem; font-weight: 700; text-align: center; padding: 8px;
         font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
#count::-webkit-outer-spin-button, #count::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0; }

/* Zahlenblock: eine Hand, Daumenreichweite. */
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pad[hidden] { display: none; }
.pad button {
  min-height: 56px; cursor: pointer; font: 700 1.5rem var(--font);
  border: 1px solid var(--line2); border-radius: 10px;
  background: var(--card); color: var(--fg); font-variant-numeric: tabular-nums;
}
.pad button:active { background: var(--card2); }
.pad .fn { font-size: 1rem; font-weight: 600; color: var(--mut); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 120px; }

/* Radios als Chips, ohne JS. */
.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.radios input { position: absolute; opacity: 0; width: 0; height: 0; }
.radios span { display: inline-flex; align-items: center; padding: 10px 16px;
  min-height: 44px; border: 1px solid var(--line2); border-radius: 999px;
  font-weight: 600; font-size: .9rem; cursor: pointer; }
.radios input:checked + span { background: var(--acc); color: var(--acc-on);
  border-color: var(--acc); }
.radios input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }

.btn {
  display: inline-block; width: 100%; cursor: pointer; min-height: 52px;
  padding: 14px 18px; font: 700 1.02rem var(--font);
  border: 1px solid var(--acc); border-radius: 10px;
  background: var(--acc); color: var(--acc-on);
  text-align: center; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--acc); }

.err, .ok { padding: 10px 12px; border-radius: 8px; }
.err { border-left: 4px solid var(--v); background: var(--vb);
       margin-bottom: var(--sp); }
.ok  { border-left: 4px solid var(--q); background: var(--qb); }

/* --- 11. Fuss --- */
footer { border-top: 1px solid var(--line); background: var(--card);
         padding: 16px 0 34px; font-size: .86rem; color: var(--mut); }
footer .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
footer h3 { margin-top: 14px; color: var(--fg); }
footer dt { font-weight: 650; color: var(--fg); margin-top: 8px; }
footer dd { margin: 2px 0 0; }
.dot::before { content: "\25CF\00A0"; font-size: .6em; vertical-align: 2px; }
.dot.on::before  { color: var(--q); }
.dot.old::before { color: var(--alert); }

/* --- 12. Zwei Spalten --- */
@media (min-width: 720px) {
  main .cols { display: grid; gap: var(--sp); align-items: start;
               grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .hero { padding: 20px var(--sp) 18px; }
  .big  { font-size: 84px; }
  h1    { font-size: 1.4rem; }
  .seg  { flex: 0 0 auto; min-width: 320px; }
  .pad button { min-height: 62px; }
  .btn  { width: auto; min-width: 240px; }
}

/* --- 13. Tagesansicht: Kurve als Hauptsache (seit 17.10.2026) --- */
:root {
  --c-sauna: #b5482a;
  --c-floor: #6a4c9c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-sauna: #ff9b73;
    --c-floor: #c3a8f0;
  }
}


.day-dates { margin: 0 0 10px; }

.day-main { padding-bottom: 10px; }
.day-head { display: flex; flex-wrap: wrap; align-items: baseline;
           justify-content: space-between; gap: 4px 12px; }
.day-head h2 { margin: 0; font-size: .82rem; font-weight: 650; letter-spacing: .06em;
              text-transform: uppercase; color: var(--mut); width: 100%; }
.day-sum { margin: 2px 0 0; font-size: 1rem; line-height: 1.35; }
.day-sum .word { font-size: .9rem; }
.day-big { font-size: 1.9rem; font-weight: 750; line-height: 1;
          font-variant-numeric: tabular-nums; margin-right: 2px; }

.day-chart { margin: 8px -6px 0; }
.chart.day { max-height: 62vh; }

.day-legend { margin-top: 6px; }
.legend .lg-s::before  { width: 2px; height: 12px; background: var(--c-sauna); }
.legend .lg-fl::before { background: repeating-linear-gradient(90deg,
                           var(--c-floor) 0 3px, transparent 3px 5px); }

.day-best { margin: 10px 0 0; }
.day-best-h { margin: 0 0 4px; font-size: .8rem; font-weight: 650; color: var(--mut);
             letter-spacing: .04em; text-transform: uppercase; }
.day-best-l { list-style: none; margin: 0; padding: 0; }
.day-best-l li { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 2px 10px;
                padding: 5px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.day-best-l li:first-child { border-top: 0; }
.day-best-l b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-best-l .mut { white-space: nowrap; }
.day-tag { margin-left: auto; white-space: nowrap; font-size: .8rem; color: var(--q); }
.c-win2 { opacity: .05; }

/* Kopf: Zahl, darunter EINE Textzeile — keine Plaketten. Farbe nur dort,
   wo sie etwas sagt (weniger/mehr als ueblich, veraltete Messung). */
.day-sub { margin: 4px 0 0; font-size: .9rem; line-height: 1.4; }
.day-same      { font-weight: 650; }
.day-less      { font-weight: 650; color: var(--q); }
.day-more-than { font-weight: 650; color: var(--b); }
.day-old       { color: var(--alert); }

/* Ablesezeile ohne eigene Flaeche: eine Zeile Text unter der Kurve. */
.day-main .readout { background: none; padding: 2px 0 0; margin: 4px 0 0; min-height: 0;
                    font-size: .9rem; }

/* Kurse und Tabelle: eine Karte, zwei aufklappbare Zeilen. */
.day-det + .day-det { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.day-det > summary { cursor: pointer; font-weight: 650; }
.day-det[open] > summary { margin-bottom: 8px; }

/* Datumsleiste: vergangene Tage hinter dem Pfeil. */
.day-dates .past { display: none; }
.day-dates.show-past .past { display: block; }
.day-dates .d-prev { min-width: 36px; padding: 6px 4px; display: flex; align-items: center;
                    justify-content: center; color: var(--acc); }
.day-dates .d-prev strong { font-size: 1.4rem; line-height: 1; }
.day-dates.show-past .d-prev strong { display: inline-block; transform: scaleX(-1); }

.day-more { padding-top: 10px; padding-bottom: 10px; }
.day-more > summary { cursor: pointer; font-weight: 650; }
.day-more[open] > summary { margin-bottom: 8px; }
.day-sauna { margin: 0 0 8px; color: var(--c-sauna); font-weight: 600; }

/* --- Diagramm-Ergaenzungen --- */
.c-sau  { stroke: var(--c-sauna); stroke-width: 1.2; stroke-dasharray: 2 3; opacity: .85; }
.c-saut { fill: var(--c-sauna); font: 700 11px var(--font); text-anchor: middle; }
.c-floor { fill: none; stroke: var(--c-floor); stroke-width: 1.8; stroke-dasharray: 3 2.5;
           stroke-linejoin: round; }

.c-nowp .p-bg { fill: var(--c-total); }
.c-nowp .p-big { fill: var(--card); font: 750 13px var(--font); }
.c-nowp .p-sm  { fill: var(--card); font: 600 9px var(--font); opacity: .9; }

.c-pk .p-bg  { fill: var(--card); stroke: var(--line2); stroke-width: 1; }
.c-pk .p-big { fill: var(--fg); font: 700 12px var(--font); }
.c-pk .p-sm  { fill: var(--mut); font: 600 9px var(--font); }
.c-pkd { fill: var(--card); stroke: var(--c-total); stroke-width: 1.6; }

.readout .ro-fl { color: var(--c-floor); font-weight: 600; }
.readout .ro-s  { color: var(--c-sauna); font-weight: 600; }
