/* Hell-Modus „Bonus Boss" — Alternative zum dunklen Schema, je Konto wählbar (Sonne/Mond oben rechts, users.farbschema).
   Gilt nur unter <html data-farbschema="hell"> (farbschema.js setzt das Attribut vor dem ersten Zeichnen, app.js nach /api/me).
   Wird direkt nach style.css geladen und überschreibt dessen Tokens. Die Regeln für Selektoren aus style.css stehen unter
   :where(…) — gleiche Spezifität wie in style.css, also wirken sie wie geänderte Werte dort, und die Modul-Stylesheets (danach
   geladen) behalten Vorrang (z. B. der Goldrahmen von .hh-erinnerung auf einer .karte). Nur die Regeln für feste Werte in den
   Modul-Stylesheets (unten) tragen das volle :root[data-farbschema="hell"] und gewinnen damit über die Reihenfolge hinweg.
   Palette (Vorgabe Jürgen, 02.10.2026):
     Grün       #124029  Text, Primärknöpfe, Kopfzeile
     Gold       #c89b3d  Highlights, Gold-Knöpfe, Icons, Status „gelb"
     Off-White  #f6f4ef  Hintergrund
   Abgeleitet: Karten und Felder weiß, Sekundär-Grün #2b6a4a (Links, Hinweise), dunkles Gold #8a6a1f für goldene Schrift auf Hell
   (Gold selbst erreicht auf Off-White nur 2,4:1). Status-Grün #237a4b ist bewusst heller als das Marken-Grün, damit „gut" vom
   Text unterscheidbar bleibt.
   Der Kopf bleibt dunkel (Grün): Die Statusleiste der Home-Bildschirm-App ist black-translucent und zeigt immer weiße Schrift —
   auf Off-White wäre die Uhrzeit unsichtbar. Seiten ohne Kopf (Anmeldung, Startbild) bekommen deshalb einen grünen Streifen in
   Höhe der Safe-Area als Teil des Hintergrunds (scrollt mit). Bewusst kein position: fixed (auch nicht als schmaler Streifen):
   Ein festes Element hielten iOS-Browser schon beim Als-Rahmen für einen festen Kopf, der Kopf ließ sich auf dem iPhone nicht
   mehr hochscrollen (style.css, 02.10.2026). Bekannte Grenze bis zu einem Test am iPhone: In der Home-Bildschirm-App steht die
   weiße Uhrzeit beim Scrollen über hellem Inhalt. */
:root[data-farbschema="hell"] {
  color-scheme: light;
  --royal: #124029;
  --navy: #124029;
  --navy-2: #ffffff;
  --navy-3: #fbfaf6;
  --schwarz: #0b2618;
  --gold: #c89b3d;
  --gold-dunkel: #8a6a1f;
  --blau-hell: #2b6a4a;
  --feld: #ffffff;
  --ink: #124029;
  --grau: #5a6b61;
  --linie: rgba(18, 64, 41, 0.14);
  --hintergrund: #f6f4ef;
  --karte: #ffffff;
  --akzent: #124029;
  --akzent-hell: rgba(18, 64, 41, 0.07);
  --akzent-text: #124029;
  --warn: #c89b3d;
  --warn-hell: rgba(200, 155, 61, 0.16);
  --warn-text: #6b4f12;
  --fehler: #b3261e;
  --fehler-hell: rgba(179, 38, 30, 0.09);
  --fehler-text: #8c1d18;
  --gruen: #237a4b;
  --gruen-hell: rgba(35, 122, 75, 0.12);
  --gruen-text: #1a5c38;
  --gruen-dunkel: #ffffff;
  --gelb: #c89b3d;
  --gelb-hell: rgba(200, 155, 61, 0.16);
  --gelb-text: #6b4f12;
  --gelb-dunkel: #2e2200;
  --rot: #c62828;
  --rot-hell: rgba(179, 38, 30, 0.09);
  --rot-text: #8c1d18;
  --rot-dunkel: #ffffff;
  --neutral-hell: rgba(18, 64, 41, 0.07);
  --neutral-text: #3d5247;
  --flaeche-leise: rgba(18, 64, 41, 0.04);
  --flaeche-dunkel: rgba(18, 64, 41, 0.06);
  --fokus: rgba(200, 155, 61, 0.7);
  --schatten: 0 6px 20px rgba(18, 64, 41, 0.08);
}
:where(:root[data-farbschema="hell"]) body {
  background: linear-gradient(#124029, #124029) top / 100% var(--safe-oben) no-repeat, var(--hintergrund);
}
:where(:root[data-farbschema="hell"]) ::selection { background: rgba(200, 155, 61, 0.4); color: #124029; }

/* Kopf: Grün mit goldener Linie, helle Schrift */
:where(:root[data-farbschema="hell"]) header.kopf {
  background: #124029;
  border-bottom: 2px solid #c89b3d;
  color: #f6f4ef;
}
:where(:root[data-farbschema="hell"]) .marke small { color: #e2c47f; }
:where(:root[data-farbschema="hell"]) .kopf-rechts button { border-color: rgba(246, 244, 239, 0.4); color: #f6f4ef; }
:where(:root[data-farbschema="hell"]) .kopf-rechts button:hover { background: rgba(246, 244, 239, 0.12); color: #ffffff; }
:where(:root[data-farbschema="hell"]) nav.reiter button { color: rgba(246, 244, 239, 0.78); }
:where(:root[data-farbschema="hell"]) nav.reiter button svg { color: #c89b3d; opacity: 0.85; }
:where(:root[data-farbschema="hell"]) nav.reiter button:hover { color: #ffffff; background: rgba(246, 244, 239, 0.08); }
:where(:root[data-farbschema="hell"]) nav.reiter button.aktiv {
  color: #ffffff;
  background: rgba(246, 244, 239, 0.14);
  border-color: rgba(200, 155, 61, 0.7);
  box-shadow: none;
}
:where(:root[data-farbschema="hell"]) nav.reiter button.aktiv svg { filter: none; }
:where(:root[data-farbschema="hell"]) nav.reiter .zaehler { background: #c89b3d; color: #124029; box-shadow: none; }
:where(:root[data-farbschema="hell"]) .als-wahl-karte { color: var(--ink); }

/* Karten, Hinweise, Felder */
:where(:root[data-farbschema="hell"]) .karte,
:where(:root[data-farbschema="hell"]) .anmeldung form,
:where(:root[data-farbschema="hell"]) .anmeldung .karte {
  background: #ffffff;
  border: 1px solid rgba(18, 64, 41, 0.12);
  box-shadow: var(--schatten);
}
:where(:root[data-farbschema="hell"]) .anmeldung .marke img { filter: drop-shadow(0 6px 14px rgba(18, 64, 41, 0.18)); }
:where(:root[data-farbschema="hell"]) .hinweis { border-color: rgba(43, 106, 74, 0.35); }
:where(:root[data-farbschema="hell"]) .hinweis.warn { border-color: rgba(200, 155, 61, 0.6); }
:where(:root[data-farbschema="hell"]) .hinweis.fehler { border-color: rgba(179, 38, 30, 0.4); }
:where(:root[data-farbschema="hell"]) .feld input,
:where(:root[data-farbschema="hell"]) .feld select,
:where(:root[data-farbschema="hell"]) .feld textarea { border-color: rgba(18, 64, 41, 0.28); }
:where(:root[data-farbschema="hell"]) .feld input::placeholder,
:where(:root[data-farbschema="hell"]) .feld textarea::placeholder { color: var(--grau); }
:where(:root[data-farbschema="hell"]) .feld input:focus,
:where(:root[data-farbschema="hell"]) .feld select:focus,
:where(:root[data-farbschema="hell"]) .feld textarea:focus { border-color: #124029; box-shadow: 0 0 0 3px rgba(200, 155, 61, 0.35); }
:where(:root[data-farbschema="hell"]) .feld input[readonly] { background: rgba(18, 64, 41, 0.04); }
:where(:root[data-farbschema="hell"]) .feld input[readonly]:focus-visible { outline-color: rgba(18, 64, 41, 0.5); }

/* Knöpfe: Standard weiß mit grünem Rand, Primär grün mit heller Schrift, Gold in der Markenfarbe mit grüner Schrift */
:where(:root[data-farbschema="hell"]) button.knopf,
:where(:root[data-farbschema="hell"]) .knopf { border-color: rgba(18, 64, 41, 0.3); }
:where(:root[data-farbschema="hell"]) button.knopf:hover { background: #efece3; }
:where(:root[data-farbschema="hell"]) button.knopf.primaer,
:where(:root[data-farbschema="hell"]) .knopf.primaer {
  background: linear-gradient(180deg, #1c5a3a 0%, #124029 100%);
  border-color: #124029;
  color: #f6f4ef;
  box-shadow: 0 6px 16px rgba(18, 64, 41, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
:where(:root[data-farbschema="hell"]) button.knopf.primaer:hover { background: linear-gradient(180deg, #226b45 0%, #164d31 100%); }
:where(:root[data-farbschema="hell"]) button.knopf.gold,
:where(:root[data-farbschema="hell"]) .knopf.gold {
  background: linear-gradient(180deg, #dcb766 0%, #c89b3d 60%, #b88b30 100%);
  border-color: #8a6a1f;
  color: #124029;
  box-shadow: 0 6px 16px rgba(200, 155, 61, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
:where(:root[data-farbschema="hell"]) button.knopf.gold:hover { background: linear-gradient(180deg, #e4c47c 0%, #d2a74a 60%, #c09238 100%); }
:where(:root[data-farbschema="hell"]) button.knopf.leise,
:where(:root[data-farbschema="hell"]) .knopf.leise { background: transparent; border-color: transparent; }
:where(:root[data-farbschema="hell"]) button.knopf.leise:hover { background: rgba(18, 64, 41, 0.07); }

/* Codes, Tabellen, Toast */
:where(:root[data-farbschema="hell"]) .schluessel,
:where(:root[data-farbschema="hell"]) .codes li { background: #fbf6ea; border-color: rgba(200, 155, 61, 0.5); color: #124029; }
:where(:root[data-farbschema="hell"]) .tabelle thead th { border-bottom-color: rgba(200, 155, 61, 0.6); }
:where(:root[data-farbschema="hell"]) #toast {
  background: #124029;
  border-color: rgba(200, 155, 61, 0.7);
  border-left-color: #c89b3d;
  color: #f6f4ef;
  box-shadow: 0 10px 30px rgba(18, 64, 41, 0.3);
}

/* Umschalter Sonne/Mond (beide Schemata; steht in .kopf-rechts vor „Als …" und „Abmelden"; .kopf-rechts button aus style.css
   gibt Rand und Farbe) */
.kopf-rechts button.farbschema-knopf { display: inline-flex; align-items: center; justify-content: center; width: 40px; padding: 6px; }
.kopf-rechts button.farbschema-knopf svg { width: 20px; height: 20px; fill: currentColor; }
/* Mit dem Umschalter wird der Kopf der Eltern eng (Sonne/Mond, „Als Flavio", „Abmelden"): bei 375 px blieben dem Benutzernamen
   neben dem Logo 8 px, „juergen" wurde zu „…". Reicht der Platz nicht, rutscht der Name unter das Logo (die Kopfzeile wird
   dann einige Pixel höher); sonst bleibt alles nebeneinander. */
.kopf-zeile:has(.farbschema-knopf) .marke { flex-wrap: wrap; row-gap: 0; }

/* Modul-Stylesheets mit festen Werten */
:root[data-farbschema="hell"] .chip button:hover { background: rgba(18, 64, 41, 0.08); }
:root[data-farbschema="hell"] .notiz-fach.ausgefallen { border-color: rgba(18, 64, 41, 0.3); }
:root[data-farbschema="hell"] button.knopf.hh-erledigt {
  background: linear-gradient(180deg, #1c5a3a 0%, #124029 100%);
  border-color: #124029;
  color: #f6f4ef;
  box-shadow: 0 6px 16px rgba(18, 64, 41, 0.25);
}
:root[data-farbschema="hell"] button.knopf.hh-erledigt:hover { background: #164d31; }
:root[data-farbschema="hell"] .hh-zitat { border-left-color: rgba(18, 64, 41, 0.3); }
:root[data-farbschema="hell"] .pruef-einspruch.offen,
:root[data-farbschema="hell"] .pruef-einspruch.entschieden { border-color: rgba(18, 64, 41, 0.3); }
:root[data-farbschema="hell"] .verlauf-punkt.rot,
:root[data-farbschema="hell"] .bo-kreis.rot { color: #ffffff; }
:root[data-farbschema="hell"] a.knopf:hover { background: rgba(18, 64, 41, 0.07); }
:root[data-farbschema="hell"] a.knopf.primaer:hover { background: linear-gradient(180deg, #226b45 0%, #164d31 100%); }
:root[data-farbschema="hell"] .bo-summe strong { color: #8a6a1f; }
:root[data-farbschema="hell"] .bo-stern { text-shadow: 0 0 1px #124029, 0 0 1px #124029; }
:root[data-farbschema="hell"] .ub-erklaerung,
:root[data-farbschema="hell"] .ub-rueckmeldung { border-color: rgba(200, 155, 61, 0.5); }
:root[data-farbschema="hell"] .ub-option,
:root[data-farbschema="hell"] .ka-zuordnen select { border-color: rgba(18, 64, 41, 0.28); }
/* Die gewählte Antwort behält ihren grünen Rand (die Regel davor schlägt sonst .ub-option:has(input:checked) aus uebung.css). */
:root[data-farbschema="hell"] .ub-option:has(input:checked) { border-color: var(--akzent); }
:root[data-farbschema="hell"] .ka-zuordnen select:focus { border-color: #124029; box-shadow: 0 0 0 3px rgba(200, 155, 61, 0.35); }
:root[data-farbschema="hell"] .bo-summe { border-top-color: rgba(200, 155, 61, 0.6); }
:root[data-farbschema="hell"] .bo-hinweis-karte .liste li { border-top-color: rgba(200, 155, 61, 0.45); }
/* 0.7.0–0.7.2 (Monats-Dashboard, Reiter „Kalender"): Beträge und KW in dunklem Gold statt Gold (Gold auf Weiß bzw. der Kachel nur
   2,6:1 bzw. 2,4:1). In der laufenden Woche liegt die KW auf goldener Tönung, dort reicht dunkles Gold nicht (4,4:1) → --warn-text;
   eine Woche vor dem Start bleibt grau (.ka-woche.vor-beginn .ka-kw in bonus.css hat dieselbe Spezifität und steht später).
   .pille.bo-blau („läuft", „dieser Monat", „diese Woche") hätte dieselbe Fläche wie die neutrale Pille (--akzent-hell =
   --neutral-hell) und bekommt einen grünen Innenrand. */
:root[data-farbschema="hell"] .bo-monats-summen strong,
:root[data-farbschema="hell"] .bo-kachel-betrag strong { color: #8a6a1f; }
:root[data-farbschema="hell"] .ka-kw { color: #8a6a1f; }
:root[data-farbschema="hell"] .ka-woche.aktuell:not(.vor-beginn) .ka-kw { color: var(--warn-text); }
:root[data-farbschema="hell"] .pille.bo-blau { box-shadow: inset 0 0 0 1px rgba(43, 106, 74, 0.6); }
/* Ältere Stellen mit goldener Schrift: Statuszeilen „wird geprüft …" und Notiz-Warnung in --warn-text (auch auf der Fläche eines
   ausgefallenen Fachs ≥ 4,5:1), Aufklapp-Zeichen ▸/▾ und Fokusrahmen in dunklem Gold (Gold allein 2,6:1 bzw. 1,9:1). Der Joker-Stern
   bleibt golden und bekommt eine grüne Kontur. Gedimmte Felder und Plantext eines ausgefallenen Fachs: bei 0,55 Deckkraft nur 3,0:1
   auf der hellen Fläche, bei 0,75 wie im dunklen Schema 4,9:1. Ein Prüfhinweis, der beim Umschalten auf „ausgefallen" bis zum
   nächsten Laden stehen bleibt, wäre gedimmt nur 2,3:1 (auch 0,75 reicht nicht) und bleibt deshalb voll deckend. */
:root[data-farbschema="hell"] .pruef-laeuft,
:root[data-farbschema="hell"] .notiz-status.warn { color: var(--warn-text); }
:root[data-farbschema="hell"] .bo-details summary::before,
:root[data-farbschema="hell"] .hh-details summary::before,
:root[data-farbschema="hell"] .pruef-details summary::before,
:root[data-farbschema="hell"] .ub-themen-kurz summary::before,
:root[data-farbschema="hell"] .ub-muster summary::before,
:root[data-farbschema="hell"] .ub-aufklappen > summary::before { color: #8a6a1f; }
:root[data-farbschema="hell"] .knopf:focus-visible,
:root[data-farbschema="hell"] .ub-option:has(input:focus-visible) { outline-color: #8a6a1f; }
/* 0.8.0 (E138): Die Foto-Auswahl ist ein Label um ein unsichtbares Dateifeld; ihr Fokusring (notizen.css) bekommt dasselbe dunkle Gold. */
:root[data-farbschema="hell"] .foto-wahl:focus-within { outline-color: #8a6a1f; }
:root[data-farbschema="hell"] .notiz-fach.ausgefallen .feld,
:root[data-farbschema="hell"] .notiz-fach.ausgefallen .notiz-plantext { opacity: 0.75; }
:root[data-farbschema="hell"] .notiz-fach.ausgefallen [data-pruef-fach] { opacity: 1; }
