/* Darstellung hell/dunkel (R87, 18.10.2026). Immer geladen, nach robin.css.
   1. Farb-Variablen für neue Komponenten (Hell-Werte = bisherige Farben aus robin.css).
      Der Dunkelmodus überschreibt sie in robin-dark.css; wer neue Komponenten baut, nimmt
      diese Variablen statt fester Farben, dann passt der Dunkelmodus ohne Nacharbeit.
   2. Der Umschalter „Darstellung“ (templates/partials/theme_switch.html, static/js/theme.js). */
:root{color-scheme:light;
  --surface:#fff;--surface-2:#f7f9fb;--surface-hover:#f9fafb;--field:#fff;--field-border:#66798b;--line-strong:#c3ced8;
  --focus:#005da8;--link:var(--red);--accent-bg:var(--red);--accent-bg-hover:#861709;--on-accent:#fff;--accent-soft:#fcebe9;
  --danger-text:#9b291c;--danger-bg:#fff0ee;--danger-line:#e6b1ab;--danger-strong:#9b291c;--danger-vivid:#9b291c;--on-danger:#fff;--time-off-bg:#ff5a52;--time-off-ink:#000;
  --ok-text:#246344;--ok-bg:#e6f3ec;--ok-line:#b9d9c5;
  --warn-text:#735300;--warn-bg:#fff3d6;--warn-line:#e6d39a;
  --info-text:#11497a;--info-bg:#edf5fd;--info-line:#c5d8e9;
  --neutral-text:#244766;--neutral-bg:#edf2f7;
  --chart-1:#a51e0f;--chart-2:#e8927c;--chart-3:#2f7a57;--chart-4:#7a8a99;--chart-0:#e3e9ee;--chart-grid:#e3e9ee;
  --shadow:0 3px 14px #002d5504;--shadow-pop:0 10px 28px #002d5533}

/* Umschalter: ohne JavaScript ausgeblendet (dann gilt die Geräteeinstellung). */
.theme-switch[hidden],.theme-switch [hidden]{display:none!important}
.theme-switch{position:relative}
.theme-switch .theme-toggle{gap:7px;min-height:44px;padding:6px 14px 6px 11px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font-size:.87rem;font-weight:650}
.theme-switch .theme-toggle:hover{background:var(--surface-hover)}
.theme-toggle svg{flex:none}
.theme-label{display:none}
.theme-options{position:absolute;right:0;top:calc(100% + 8px);z-index:30;display:flex;flex-direction:column;gap:2px;min-width:236px;margin:0;padding:6px;background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;box-shadow:var(--shadow-pop)}
.theme-options button{justify-content:flex-start;gap:10px;width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:7px;background:transparent;color:var(--ink);font-size:.92rem;font-weight:600;text-align:left}
.theme-options button::before{content:"";flex:none;width:1.1em;text-align:center;font-weight:800}
.theme-options button:hover{background:var(--surface-hover)}
.theme-options button[aria-pressed=true]{background:var(--accent-soft);color:var(--link)}
.theme-options button[aria-pressed=true]::before{content:"✓"}
.theme-options small{display:block;font-weight:400;color:var(--muted);font-size:.8rem}
/* Im mobilen Menü: alle drei Möglichkeiten sofort sichtbar, nebeneinander. */
.theme-switch.is-inline{margin:12px 6px 4px}
.theme-switch.is-inline .theme-label{display:block;font-size:.73rem;font-weight:750;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}
.theme-switch.is-inline .theme-options{position:static;flex-direction:row;flex-wrap:wrap;gap:6px;min-width:0;padding:0;background:none;border:0;box-shadow:none}
.theme-switch.is-inline .theme-options button{flex:1 1 90px;justify-content:center;gap:6px;border:1px solid var(--line-strong);padding:8px 10px;font-size:.88rem}
.theme-switch.is-inline .theme-options small{display:none}
.theme-switch.is-inline .theme-options button::before{width:auto}
/* Gewählter Dunkelmodus auf hellem Gerät: kurz warten, bis robin-dark.css da ist (theme.js, höchstens 1,5 s). */
.theme-wait body{visibility:hidden}
@media print{.theme-switch{display:none!important}}
