/* =====================================================================
   GRIPS & KEULE – Aussehen der Spielseite
   =====================================================================
   Alle Farben stehen oben als "Variablen". Willst du z. B. die
   Akzentfarbe ändern, reicht es, --akzent zu ändern.
   ===================================================================== */

:root {
  --hintergrund:  #F3EEE4;   /* Seitenhintergrund (heller Stein) */
  --flaeche:      #FFFFFF;   /* Karten und Leisten */
  --text:         #2A241D;   /* Haupttext */
  --leise:        #6B6157;   /* Nebentext */
  --linie:        #E2D9CB;   /* Rahmen */
  --akzent:       #A9481A;   /* Knöpfe, Hervorhebungen (Feuer-Orange) */
  --akzent-hell:  #F6E3D6;
  --gruen:        #3D6B4B;   /* Stamm, Erfolg */
  --gruen-hell:   #E1EDE3;
  --gesperrt:     #EFE7DA;

  --schrift:       Rubik, system-ui, sans-serif;
  --schrift-titel: 'Bree Serif', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.4;
}

[hidden] { display: none !important; }

h1, h2 { margin: 0; font-weight: 400; }
h2 { font-family: var(--schrift-titel); font-size: 21px; }
.leise { color: var(--leise); font-size: 14px; margin: 0; }

/* ---------- Bereiche ---------- */
.bereich { min-height: 100vh; }
.zentriert {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* ---------- Karten und Formulare ---------- */
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 16px;
}
.formular-karte {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.logo {
  font-family: var(--schrift-titel);
  font-size: 32px;
}
.logo span { color: var(--akzent); }

.formular { display: flex; flex-direction: column; gap: 14px; }
.formular label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
  font-size: 15px;
}
.formular input {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #D5CBBB;
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  background: #FFFFFF;
  color: var(--text);
}
.formular input:focus {
  outline: 3px solid var(--akzent-hell);
  border-color: var(--akzent);
}
.formular small { font-weight: 400; font-size: 13px; }

.formular-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* ---------- Meldungen ---------- */
.meldung {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  background: var(--akzent-hell);
  color: #7E3511;
}
.meldung.erfolg { background: var(--gruen-hell); color: #2F5A3C; }

.hinweis {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--gruen-hell);
  color: #2F5A3C;
  font-size: 14px;
}

/* ---------- Knöpfe ---------- */
.knopf {
  min-height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: var(--akzent);
  color: #FFFFFF;
  font: 600 16px var(--schrift);
  cursor: pointer;
}
.knopf:hover { background: #8F3C14; }
.knopf:disabled { background: var(--gesperrt); color: var(--leise); cursor: not-allowed; }
.knopf.klein { min-height: 44px; font-size: 14px; padding: 0 12px; }
.knopf.zweitrangig {
  background: var(--flaeche);
  color: var(--text);
  border: 1px solid var(--linie);
}
.knopf.zweitrangig:hover { background: var(--hintergrund); }

.link {
  background: none;
  border: none;
  padding: 8px 0;
  color: var(--akzent);
  font: 500 15px var(--schrift);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Spielansicht ---------- */
.spiel {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 76px;          /* Platz für die Menüleiste */
}

.rohstoffleiste {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 52px;
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0 4px;
}
.rohstoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.rohstoff-wert {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.rohstoff-wert.voll { color: var(--akzent); }
.rohstoff-name { font-size: 11px; color: var(--leise); }

.kopf {
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.titel { font-family: var(--schrift-titel); font-size: 24px; }

.inhalt {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.abschnitt { font-family: var(--schrift); font-size: 15px; font-weight: 600; margin-top: 4px; }

.liste { display: flex; flex-direction: column; gap: 8px; }
.zeile {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.zeile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zeile-titel { font-size: 15px; font-weight: 600; }
.zeile-titel span { font-weight: 400; color: var(--leise); }
.zeile-info { font-size: 12px; color: var(--leise); }

.zeile-info.hindernis { color: var(--akzent); }

/* ---------- Bauauftrag ---------- */
.bau { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.bau-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bau-kopf .leise { white-space: nowrap; }
.balken { height: 10px; border-radius: 5px; background: var(--gesperrt); overflow: hidden; }
.balken-fuellung { height: 100%; width: 0; background: var(--akzent); transition: width 1s linear; }

/* ---------- Umschalter Gebäude | Einheiten ---------- */
.umschalter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #E7DFD1;
  border-radius: 12px;
}
.umschalter button {
  min-height: 44px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: 500 15px var(--schrift);
  cursor: pointer;
}
.umschalter button[aria-pressed="true"] { background: var(--akzent); color: #FFFFFF; font-weight: 600; }
.ansicht { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Einheiten ---------- */
.zeile.einheit { flex-direction: column; align-items: stretch; }
.steuerung { display: flex; align-items: center; gap: 8px; }
.steuerung .zaehler {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #D5CBBB;
  background: var(--hintergrund);
  color: var(--text);
  font: 600 20px var(--schrift);
  cursor: pointer;
}
.steuerung .zaehler:disabled { opacity: 0.4; cursor: default; }
.steuerung .anzahl { width: 28px; text-align: center; font-size: 18px; font-weight: 600; }
.steuerung .knopf { flex: 1; }

/* ---------- Menüleiste unten ---------- */
.menueleiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 520px;
  margin: 0 auto;
}
.menueleiste button {
  background: none;
  border: none;
  font: 500 13px var(--schrift);
  color: var(--leise);
  cursor: pointer;
}
.menueleiste button.aktiv { color: var(--akzent); font-weight: 600; }
.menueleiste button:disabled { opacity: 0.5; cursor: default; }

/* ---------- Anfängerschutz mit Knopf ---------- */
.hinweis.schutz { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- Karte ---------- */
.karte-rahmen {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  grid-template-areas: ". oben ." "links raster rechts" ". unten .";
  gap: 6px;
  align-items: center;
}
.pfeil {
  min-height: 44px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
.pfeil.oben { grid-area: oben; }
.pfeil.unten { grid-area: unten; }
.pfeil.links { grid-area: links; height: 100%; }
.pfeil.rechts { grid-area: rechts; height: 100%; }
.karte-raster {
  grid-area: raster;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
.zelle {
  min-height: 84px;
  border-radius: 10px;
  border: 1px solid var(--linie);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px;
  text-align: center;
  font-size: 12px;
  overflow: hidden;
}
.zelle .kuerzel { font-size: 11px; font-weight: 600; color: #2F5A3C; min-height: 14px; }
.zelle .name { font-weight: 600; white-space: nowrap; }
.zelle .koord {
  border: none;
  background: none;
  padding: 4px 6px;
  min-height: 32px;
  color: var(--akzent);
  font: 500 12px var(--schrift);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.art-eigen   { background: var(--akzent-hell); border: 2px solid var(--akzent); }
.art-stamm   { background: var(--gruen-hell); border: 2px solid var(--gruen); }
.art-spieler { background: var(--flaeche); }
.art-wild    { background: #EAE3D6; color: var(--leise); }

.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--leise); }
.legende span { display: flex; align-items: center; gap: 6px; }
.legende .farbe { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ---------- Bewegung ---------- */
.umschalter.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.umschalter.vier button { font-size: 13px; }
.umschalter button:disabled { opacity: 0.45; cursor: default; }

.ziel-zeile { display: flex; align-items: center; gap: 10px; padding: 12px; }
.ziel-zeile label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--leise); }
.ziel-zeile input, .ladung-raster input {
  width: 60px;
  height: 44px;
  border: 1px solid #D5CBBB;
  border-radius: 10px;
  font: 600 17px var(--schrift);
  text-align: center;
  color: var(--text);
}
.ladung-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ladung-raster label {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 8px 10px;
  font-size: 13px; font-weight: 500;
}
.ladung-raster input { width: 100%; }
.ladung-raster small { color: var(--leise); font-weight: 400; }

.zusammenfassung {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 12px;
  font-size: 14px;
}
.zusammenfassung div { display: flex; flex-direction: column; }
.zusammenfassung .leise { font-size: 12px; }

/* ---------- Zahlenfeld zwischen − und + ---------- */
.steuerung .anzahl-feld {
  width: 60px;
  height: 44px;
  border: 1px solid #D5CBBB;
  border-radius: 10px;
  font: 600 17px var(--schrift);
  text-align: center;
  color: var(--text);
  background: #FFFFFF;
}
.umschalter.vier button { min-height: 52px; line-height: 1.15; padding: 2px; }

/* ---------- Kartensuche ---------- */
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.suche { display: flex; gap: 8px; }
.suche input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #D5CBBB;
  border-radius: 10px;
  font: inherit;
}
.suche-ergebnis { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.zelle.treffer { box-shadow: 0 0 0 3px var(--text); }
.zeile .knopf.klein { flex: none; }

/* ---------- Berichte ---------- */
.abzeichen {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--akzent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}
.bericht { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.bericht-kopf {
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.bericht-kopf .zeile-text { flex: 1; }
.bericht.ungelesen .zeile-titel::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--akzent);
  margin-right: 6px;
  vertical-align: middle;
}
.bericht-inhalt { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bericht-inhalt .text { white-space: pre-line; margin: 0; }
.ergebnis { font-weight: 600; margin: 0; }
.ergebnis.sieg { color: #2F5A3C; }
.ergebnis.niederlage { color: #7E3511; }
.kampf-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.kampf-tabelle caption { text-align: left; font-weight: 600; padding-bottom: 4px; }
.kampf-tabelle th, .kampf-tabelle td { padding: 6px 4px; border-bottom: 1px solid var(--linie); text-align: right; }
.kampf-tabelle th:first-child, .kampf-tabelle td:first-child { text-align: left; }
.kampf-tabelle th { color: var(--leise); font-weight: 500; }
.kampf-tabelle .verlust { color: #7E3511; }

/* ---------- Bewegungsart zum Ankreuzen ---------- */
.art-auswahl {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.art-auswahl legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.art-auswahl label {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--flaeche);
  border: 2px solid var(--linie);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.art-auswahl input { width: 22px; height: 22px; accent-color: var(--akzent); flex: none; }
.art-auswahl label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); }

/* ---------- Löschen bei Berichten ---------- */
.knopf-reihe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bericht-kopf-zeile { display: flex; align-items: center; }
.bericht-kopf-zeile .bericht-kopf { flex: 1; min-width: 0; }
.loeschen {
  flex: none;
  min-width: 44px;
  height: 44px;
  margin-right: 6px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--leise);
  font: 600 13px var(--schrift);
  cursor: pointer;
}
.loeschen:hover { background: var(--hintergrund); color: var(--akzent); }

/* ---------- Forschung und Wissensfragen ---------- */
.frage { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 2px solid var(--akzent); }
.fach-marke {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: #2F5A3C;
  background: var(--gruen-hell);
  padding: 4px 10px;
  border-radius: 999px;
}
.frage-text { font-family: var(--schrift-titel); font-size: 20px; line-height: 1.3; margin: 0; }
.antworten { display: flex; flex-direction: column; gap: 8px; }
.antworten label {
  min-height: 52px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--linie);
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
}
.antworten label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); }
.antworten input[type="checkbox"], .antworten input[type="radio"] { width: 22px; height: 22px; accent-color: var(--akzent); flex: none; }
.antworten input[type="number"] {
  height: 52px; border: 2px solid var(--linie); border-radius: 12px;
  font: 600 20px var(--schrift); text-align: center; color: var(--text);
}
.antworten .richtig { border-color: var(--gruen); background: var(--gruen-hell); }
.antworten .falsch { border-color: #B23B3B; background: #F7E1E1; }
.frage-zeiten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.frage-zeiten div { border-radius: 10px; padding: 8px 10px; background: var(--gesperrt); }
.frage-zeiten .gut { background: var(--gruen-hell); }
.frage-zeiten strong { display: block; }
.ergebnis-titel { font-family: var(--schrift-titel); font-size: 22px; margin: 0; }
.ergebnis-titel.gut { color: #2F5A3C; }
.ergebnis-titel.schlecht { color: #7E3511; }

/* ---------- Meldungsfeld unter der Kopfzeile ---------- */
.meldung-rahmen { padding: 0 16px; }
.meldung-rahmen .meldung { margin-bottom: 10px; }

/* ---------- Nachrichten ---------- */
.umschalter.klein { grid-template-columns: repeat(2, auto); }
.umschalter.klein button { min-height: 40px; padding: 0 10px; font-size: 14px; }
.formular textarea {
  padding: 10px 12px;
  border: 1px solid #D5CBBB;
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  resize: vertical;
}
.ziel-zeile.ohne-rahmen { padding: 0; background: none; border: none; }
.nachricht-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.nachricht-aktionen { display: flex; flex-wrap: wrap; gap: 6px; }
.melden-zeile { display: flex; gap: 6px; }
.melden-zeile input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border: 1px solid #D5CBBB; border-radius: 10px; font: inherit; }

/* ---------- Stamm ---------- */
.umschalter.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.umschalter.drei button { font-size: 14px; padding: 0 2px; }
.stamm-kopf { display: flex; flex-direction: column; gap: 4px; }
.marke-haeuptling {
  font-size: 12px;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  background: var(--akzent);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
#stamm-mitglieder .zeile, #stamm-diplomatie .zeile { flex-wrap: wrap; }
#stamm-mitglieder .zeile-text, #stamm-diplomatie .zeile-text { flex: 1 1 160px; }
#knopf-austreten { align-self: flex-start; }

/* ---------- Rangliste ---------- */
.rang-zeile { justify-content: flex-start; }
.rang-zeile .zeile-text { flex: 1; }
.rang-platz { flex: none; min-width: 32px; font-weight: 600; color: var(--leise); }
.rang-punkte { flex: none; font-family: var(--schrift-titel); font-size: 18px; }
.zeile.eigen, .bericht.eigen { border-color: var(--akzent); background: var(--akzent-hell); }
.rang-meine { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.rang-meine .abschnitt { margin: 0; }
.rang-kategorien { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.rang-kategorien div { display: flex; flex-direction: column; background: var(--hintergrund); border-radius: 10px; padding: 6px 2px; }
.rang-kategorien .leise { font-size: 11px; }
.rang-mitglied { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }

/* ---------- Papierkorb ---------- */
.knopf-reihe.links { justify-content: flex-start; }
.papierkorb-leiste { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.papierkorb-leiste .knopf { flex: none; }
.papierkorb-zeile { justify-content: flex-start; cursor: pointer; }
.papierkorb-zeile input { width: 22px; height: 22px; accent-color: var(--akzent); flex: none; }
.papierkorb-zeile:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); }

/* ---------- Fehler / Feedback ---------- */
.kopf-knoepfe { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: none; }
.feedback-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#form-feedback { margin-bottom: 10px; border: 2px solid var(--akzent); }
.feedback-art { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.feedback-art legend { margin-bottom: 6px; }
.feedback-art label { display: flex; align-items: center; gap: 8px; font-weight: 500; flex-direction: row !important; }
.feedback-art input { width: 22px; height: 22px; padding: 0; margin: 0; accent-color: var(--akzent); }
.feedback-art input:focus { box-shadow: none; }

/* ---------- Wunder ---------- */
.balken.glauben .balken-fuellung { background: #6B5BA8; }
.wunder-chance { color: var(--text); font-weight: 600; }
#wunder-liste .zeile { align-items: flex-end; }

/* ---------- Abreißen / Wunderziel ---------- */
.zeile-knoepfe { display: flex; flex-direction: column; gap: 6px; flex: none; align-items: stretch; }
.knopf.abriss { min-height: 36px; font-size: 13px; }
.wunder-ziel { flex-wrap: wrap; }
.wunder-ziel .zeile-titel { margin-right: 4px; }

/* ---------- Admin-Bereich ---------- */
.admin-karte { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.admin-karte p { margin: 0; }
.admin-karte.erledigt, .bericht.gesperrt { opacity: 0.65; }
.admin-zitat { background: var(--hintergrund); border-radius: 10px; padding: 8px 10px; }
.admin-klein { font-size: 11px; overflow-wrap: anywhere; }
.admin-feld { min-height: 44px; padding: 0 10px; border: 1px solid #D5CBBB; border-radius: 10px; font: inherit; flex: 1; min-width: 0; }
.admin-feld.kurz { flex: none; width: 80px; }
.admin-zeile { display: flex; flex-direction: column; gap: 4px; }
.admin-wert { flex-wrap: wrap; }
.admin-wert .zeile-text { flex: 1 1 180px; }
.knopf.gefahr { background: #B23B3B; color: #FFFFFF; border-color: #B23B3B; }
.gefahr-karte { border: 2px solid #B23B3B; margin-top: 12px; }
.marke { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.marke-fehler { background: #F7E1E1; color: #8A2B2B; }
.marke-idee { background: var(--gruen-hell); color: #2F5A3C; }
.kopf-knoepfe .abzeichen { margin-left: 4px; }

/* ---------- Übersicht laufender Aufträge ---------- */
.uebersicht { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.uebersicht .abschnitt { margin: 0 0 2px; }
.uebersicht-liste { display: flex; flex-direction: column; }
.uebersicht-zeile {
  display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 8px;
  min-height: 40px; padding: 4px 0; border: none; border-top: 1px solid var(--linie);
  background: none; text-align: left; font: inherit; font-size: 14px; color: var(--text); cursor: pointer;
}
.uebersicht-zeile:first-child { border-top: none; }
.uebersicht-art { font-weight: 600; font-size: 13px; color: var(--akzent); }
.uebersicht-zeile.frei .uebersicht-art, .uebersicht-zeile.frei .uebersicht-text { color: var(--leise); font-weight: 400; }
.uebersicht-text { min-width: 0; overflow-wrap: anywhere; }
.uebersicht-warnung { color: var(--akzent); font-weight: 600; }
.uebersicht-zeit { font-size: 13px; color: var(--leise); white-space: nowrap; }
.konto { margin-top: 18px; }

/* ---------- Hilfe ---------- */
.hilfe-verzeichnis { display: flex; flex-wrap: wrap; gap: 6px; }
.hilfe-link { min-height: 36px; padding: 0 12px; border: 1px solid var(--linie); border-radius: 999px; background: var(--flaeche); font: 500 13px var(--schrift); color: var(--text); cursor: pointer; }
.hilfe-link.aktiv { background: var(--akzent); border-color: var(--akzent); color: #FFFFFF; }
.hilfe-seite { display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.hilfe-seite p, .hilfe-seite ul { margin: 0; }
.hilfe-seite ul { padding-left: 20px; }
.hilfe-seite li { margin: 2px 0; }
.hilfe-ueberschrift { margin: 6px 0 0; font: 600 16px var(--schrift); }
.hilfe-seite .knopf { align-self: flex-start; }
.tabelle-rahmen { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.hilfe-tabelle { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.hilfe-tabelle th, .hilfe-tabelle td { padding: 6px 8px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.hilfe-tabelle th { background: var(--hintergrund); white-space: nowrap; }
.hilfe-tabelle td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- Angriffswarnung ---------- */
.angriff-warnung { margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: #F7E1E1; border: 2px solid #B23B3B; color: #7A1F1F; display: flex; flex-direction: column; gap: 4px; }
.angriff-warnung p { margin: 0; }
.angriff-zeit { font-weight: 600; }
.kopf-knoepfe .knopf.klein { min-height: 36px; }

/* ---------- Händler ---------- */
.haendler-kopf { display: flex; gap: 12px; align-items: center; padding: 12px; }
.haendler-kopf p { margin: 4px 0 0; }
.haendler-bild { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent); display: flex; align-items: center; justify-content: center; }
#knopf-hilfe[aria-pressed="true"] { background: var(--akzent); color: #FFFFFF; border-color: var(--akzent); }

/* ---------- Anmeldeseite: Begrüßung und Testphase ---------- */
.begruessung { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; }
.begruessung p { margin: 0; }
.testphase { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--akzent-hell); font-size: 13px; line-height: 1.4; }

/* ---------- Admin: Auswertung ---------- */
.umschalter.fuenf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.umschalter.fuenf button { font-size: 13px; min-height: 40px; }
.kachel-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.kachel { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 10px; background: var(--hintergrund); }
.kachel strong { font-family: var(--schrift-titel); font-size: 20px; color: var(--text); }
.kachel .leise { font-size: 12px; line-height: 1.25; }
.tageskurve { display: flex; align-items: flex-end; gap: 2px; height: 140px; padding-top: 16px; }
.tag-spalte { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; cursor: default; }
.tag-balken { width: 70%; max-width: 18px; background: var(--akzent); border-radius: 4px 4px 0 0; min-height: 1px; }
.tag-spalte:hover .tag-balken { opacity: 0.8; }
.tag-wert { font-size: 11px; color: var(--leise); }
.tag-datum { font-size: 10px; color: var(--leise); height: 14px; white-space: nowrap; }
