/* bonus.css — Ansicht „Bonus" (Phase 3): Wochensicht mit Strikes und sieben Kreisen Mo–So, Joker, Wochen, Monate, Abmelden,
   Erklärung; dazu a.knopf für Download-Links (auch export-ui.js). Mobile-first, keine Inline-Styles (CSP), Touch-Ziele ≥ 48 px.
   Ergänzt style.css (karte, knopf, feld, pille, hinweis, tabelle, liste). Gestaltung „Bonus Boss": Farben ausschließlich als
   Tokens aus style.css — Status (Kreise) in Grün/Gold/Rot, Linien und Aufklapp-Zeichen in Gold, Auswahl in Royal Blue. */
.bo-versteckt { display: none; }

/* Links, die wie Knöpfe aussehen (Downloads): Pillenform, Fläche und Rand kommen aus .knopf bzw. .knopf.primaer in style.css;
   der Primär-Link behält beim Zeigen mit der Maus seine blaue Fläche (etwas aufgehellt wie der Knopf), statt die graue
   Hover-Fläche von a.knopf zu bekommen. */
a.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; color: var(--ink); }
a.knopf:hover { background: rgba(91, 179, 255, 0.12); }
a.knopf.primaer:hover { background: linear-gradient(180deg, rgba(91, 179, 255, 0.45) 0%, rgba(91, 179, 255, 0.1) 100%), var(--akzent); }

/* Wochensicht */
.bo-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.bo-kopf h2, .bo-kopf h3 { margin: 0; flex: 1 1 auto; }
.bo-pillen { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.bo-teil { padding: 12px 0; border-top: 1px solid var(--linie); }
.bo-teil h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grau); margin-bottom: 8px; }
.bo-regel { font-weight: 600; margin-bottom: 4px; }
.bo-strikes li { padding: 10px 0; }
.bo-strikes .pille { margin-left: 4px; }
.bo-woche.eingebettet { padding-top: 4px; }
.bo-woche.eingebettet .bo-kopf h2 { font-size: 1.05rem; }
.bo-gruende { margin: 8px 0 0; }
.bo-aktionen { margin-top: 12px; }

/* Sieben Kreise Mo–So: satt gefüllte Statusflächen (Grün/Gold/Rot mit dunkler Schrift — auf Rot in Navy, weil --rot-dunkel
   hell ist und nur 2,8:1 erreicht), „zählt nicht" als neutrale Tönung, „strittig" nur mit gestricheltem hellblauen Rand */
.bo-kreise { display: grid; grid-template-columns: repeat(7, minmax(0, 44px)); gap: 6px; margin: 4px 0 10px; }
.bo-kreis {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--neutral-hell);
  color: var(--grau);
}
.bo-kreis.gruen { background: var(--gruen); color: var(--gruen-dunkel); }
.bo-kreis.gelb { background: var(--gold); color: var(--gelb-dunkel); }
.bo-kreis.rot { background: var(--rot); color: var(--navy); }
.bo-kreis.strittig { background: transparent; border: 2px dashed var(--blau-hell); color: var(--neutral-text); }
.bo-kreis.grau { background: var(--neutral-hell); color: var(--grau); }
.bo-stern { position: absolute; top: -6px; right: -6px; font-size: 0.95rem; line-height: 1; color: var(--gold); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }

/* Summen: goldene Summenlinie, Betrag als goldenes Highlight */
.bo-summe { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding-top: 12px; border-top: 2px solid rgba(255, 210, 71, 0.45); font-weight: 700; }
.bo-summe strong { font-size: 1.5rem; color: var(--gold); }
.bo-summe + p { margin-top: 6px; }

/* Joker und Kandidaten, nachträgliche Tage */
.bo-kandidat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--linie); }
.bo-kandidat:first-of-type { border-top: none; }
.bo-kandidat .zeit { display: block; color: var(--grau); font-size: 0.85rem; }
.bo-kandidat .knopf { flex: 0 1 auto; }

/* Aufklappbare Teile: Wochenzeilen (Eltern), Erklärung — Aufklapp-Zeichen in Gold */
.bo-details summary { min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; cursor: pointer; font-weight: 600; list-style: none; }
.bo-details summary::-webkit-details-marker { display: none; }
.bo-details summary::before { content: "▸"; color: var(--gold); }
.bo-details[open] summary::before { content: "▾"; }
.bo-wochenzeile { padding: 4px 0; border-top: 1px solid var(--linie); }
.bo-wochenzeile:first-of-type { border-top: none; }
.bo-wochenzeile-kopf { display: inline-flex; gap: 12px; flex: 1 1 auto; }
.bo-erklaerung p { line-height: 1.6; }
.bo-erklaerung summary { font-size: 1.1rem; }

/* Flavio: Abmelden */
.bo-abmelden h3 { margin-top: 18px; }

/* Eltern: Joker-Karte mit Extra-Joker (Abschnitt 18.6) */
.bo-joker h3 { margin-top: 14px; }
.bo-schenken .feld select { max-width: 320px; }
.bo-strikes li .knopfleiste { margin-top: 6px; }

/* Eltern: Hinweis beim Aufheben einer Wochen-Markierung (Abschnitt 18.1 C) — Erinnerungskarte mit goldenem Rahmen und
   goldener Tönung über der Kartenfläche, Trennlinien in Gold */
.bo-hinweis-karte { border: 2px solid var(--gold); background: linear-gradient(var(--warn-hell), var(--warn-hell)), var(--karte); }
.bo-hinweis-karte .liste li { border-top-color: rgba(255, 210, 71, 0.35); }
.bo-hinweis-liste li .knopfleiste { margin-top: 6px; }
.bo-hinweis-teil > .klein { margin-bottom: 4px; }

/* Monate (Eltern) */
.bo-monat { padding: 12px 0; border-top: 1px solid var(--linie); }
.bo-monat-tabelle { max-width: 420px; margin-bottom: 8px; }
.bo-monat-tabelle td:first-child { color: var(--grau); }
.tabelle th.betrag, .tabelle td.betrag { text-align: right; white-space: nowrap; }

/* Monats-Dashboard (0.7.0, E129–E131): Kacheln als Liste, auf dem iPhone zwei Spalten, ab 560 px drei; der laufende Monat mit
   Gold-Rand, der Betrag als goldenes Highlight. Kacheln mit Notiz, Knöpfen oder Formular (.breit) gehen über die ganze Breite.
   Bei 375 px sind die Kacheln knapp 150 px breit: lange Wörter (Notiz, Namen) brechen um, Pillen dürfen zweizeilig werden,
   Knöpfe in schmalen Kacheln bekommen weniger Polster (Touch-Ziel bleibt 48 px hoch). Nur Tokens aus style.css. */
.bo-monats-summen { font-weight: 600; margin-bottom: 12px; }
.bo-monats-summen strong { color: var(--gold); }
.bo-kacheln { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bo-kachel { min-width: 0; padding: 10px; border: 1px solid var(--linie); border-radius: var(--radius-feld); background: var(--flaeche-leise); overflow-wrap: anywhere; hyphens: auto; }
.bo-kachel.aktuell { border: 2px solid var(--gold); }
.bo-kachel.breit { grid-column: 1 / -1; }
.bo-kachel-titel { margin: 0 0 4px; font-size: 0.95rem; }
.bo-kachel-betrag { margin: 0 0 6px; }
.bo-kachel-betrag .klein { display: block; }
.bo-kachel-betrag strong { display: block; font-size: 1.4rem; line-height: 1.2; color: var(--gold); }
.bo-kachel p { margin: 6px 0 0; }
.bo-kachel .pille { border-radius: var(--radius-feld); }
.bo-kachel .knopfleiste { margin-top: 10px; }
.bo-kachel:not(.breit) .knopf { padding: 8px 10px; font-size: 0.85rem; }
.pille.bo-blau { background: var(--akzent-hell); color: var(--akzent-text); }
.bo-zitat { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--gold); background: var(--flaeche-leise); color: var(--ink); white-space: pre-line; }
@media (min-width: 560px) {
  .bo-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Eltern: Hinweis und Formular „Betrag ändern" in der (breiten) Kachel (E130) */
.bo-kachel .hinweis { margin: 8px 0 0; padding: 8px 10px; }
.bo-kachel .unterformular .feld { margin-bottom: 12px; }

/* Reiter „Kalender" (0.7.1, kalender-ui.js): Regeln als Liste, je Monat eine Karte (laufender Monat mit Gold-Rand), Wochen als
   geordnete Liste im Zweispalten-Raster: links die KW, rechts der Zeitraum Mo–So, darunter Status-Pillen mit Betrag bzw. Termin und
   bei einer Woche aus dem Vormonat der Übergangssatz in Hellblau; die laufende Woche mit goldener Linie links und goldener Tönung,
   Wochen vor dem Start gedämpft. Nur Tokens aus style.css. */
.ka-einleitung { margin-bottom: 14px; }
.ka-regelliste { margin: 0; padding-left: 20px; line-height: 1.55; }
.ka-regelliste li + li { margin-top: 6px; }
.ka-monat.aktuell { border: 2px solid var(--gold); }
.ka-monat-info { margin-bottom: 8px; }
.ka-betrag { margin-bottom: 6px; }
.ka-joker { margin-bottom: 8px; }
.ka-wochen { list-style: none; margin: 0; padding: 0; }
.ka-woche { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; padding: 10px 8px 10px 8px; border-top: 1px solid var(--linie); border-left: 3px solid transparent; }
.ka-woche:first-child { border-top: none; }
.ka-woche.aktuell { border-left-color: var(--gold); background: var(--warn-hell); }
.ka-woche.vor-beginn { color: var(--grau); }
.ka-kw { white-space: nowrap; font-size: 0.8rem; font-weight: 700; color: var(--gold); letter-spacing: 0.03em; }
.ka-woche.vor-beginn .ka-kw { color: var(--grau); }
.ka-zeitraum { display: block; font-weight: 600; }
.ka-woche-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.ka-woche-zeile { font-size: 0.85rem; color: var(--grau); }
.ka-uebergang { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--akzent-text); }
