/* Nur was Strom eigen ist. Huelle, Kopfzeile, Knoepfe und der Fotoscreen stehen in
   basis.css und foto-screen.css, beide kopiert aus _suite/. */

:root {
  /* Bernstein. Der alte Vite-Build trug #FCD34D, das ist als Knopffarbe mit weisser
     Schrift zu hell: der helle Ton bleibt als --akzent-hell die Identitaet, der
     dunklere traegt den Kontrast. */
  --akzent: #b45309;
  --akzent-hell: #fcd34d;
  --grund: #fbf9f5;
  --karte: #ffffff;
  --text: #241d14;
  --grau: #6d6154;
  --linie: #e8e0d4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #1a1611;
    --karte: #251f18;
    --text: #f4eee5;
    --grau: #a99a88;
    --linie: #3a3128;
  }
}

/* --- Kamera-Bildschirm ------------------------------------------------------ */

.standzeile:empty { display: none; }

.wartet.schlimm {
  background: color-mix(in srgb, #d92d20 10%, var(--karte));
  border-color: color-mix(in srgb, #d92d20 35%, var(--linie));
  color: #b42318;
}

.wartet.gut {
  background: color-mix(in srgb, #12855a 10%, var(--karte));
  border-color: color-mix(in srgb, #12855a 35%, var(--linie));
  color: #0b6b47;
}

.wartet .knoepfe { display: flex; gap: 8px; flex: 0 0 auto; }
.wartet button.warnung { color: #b42318; border-color: color-mix(in srgb, #d92d20 35%, var(--linie)); }

button.flach { border-color: transparent; background: transparent; padding: 10px 12px; }
button.flach.stark { font-weight: 650; color: var(--akzent); }

.sitzungszeile {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
}

.sitzungszeile button { font-size: 16px; }
.zaehler { flex: 0 0 auto; text-align: center; font-size: 14px; color: var(--grau); }

label.ersatz { align-items: center; gap: 10px; cursor: pointer; }

/* --- Uebersicht ------------------------------------------------------------- */

.fotoliste { display: flex; flex-direction: column; gap: 14px; }

.fotokarte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--linie);
  border-radius: 16px;
  background: var(--karte);
}

.fotokopf { display: flex; align-items: center; gap: 12px; }

.fotokopf img {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
  background: var(--grund);
}

.fotokopf .titel { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--grau); }

button.weg { flex: 0 0 auto; color: #b42318; border-color: color-mix(in srgb, #d92d20 30%, var(--linie)); }

.feldname { font-size: 13px; color: var(--grau); text-transform: none; letter-spacing: 0.01em; }

/* Chips zum Antippen: Register genau einer, Verbraucher beliebig viele. Ein Menue
   waere hier langsamer, die Auswahl ist kurz und wird am Zaehlerschrank getippt. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chips button {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  background: var(--grund);
}

.chips button[aria-pressed="true"] {
  background: var(--akzent);
  border-color: var(--akzent);
  color: #fff;
  font-weight: 600;
}

/* --- Auswertung ------------------------------------------------------------- */

.auswertung { gap: 14px; }

.auswertung h2 {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--grau);
}

.kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.kachel {
  padding: 14px;
  border: 1px solid var(--linie);
  border-radius: 14px;
  background: var(--karte);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kachel .wert { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kachel .name { font-size: 13px; color: var(--grau); }
.kachel .neben { font-size: 13px; color: var(--grau); }
.kachel.breit { grid-column: 1 / -1; }

table.liste {
  width: 100%;
  border-collapse: collapse;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 14px;
  overflow: hidden;
  font-size: 15px;
}

table.liste th, table.liste td { padding: 9px 12px; text-align: right; }
table.liste th:first-child, table.liste td:first-child { text-align: left; }
table.liste thead th { font-size: 13px; color: var(--grau); font-weight: 600; }
table.liste tbody tr + tr td, table.liste tbody tr + tr th { border-top: 1px solid var(--linie); }
table.liste td { font-variant-numeric: tabular-nums; }
table.liste tbody th { font-weight: 400; color: var(--grau); }

.gelesen { display: flex; flex-direction: column; gap: 8px; }

.ablesung {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: var(--karte);
  font-size: 15px;
}

.ablesung .wann { color: var(--grau); font-size: 14px; }
.ablesung .wert { font-weight: 600; font-variant-numeric: tabular-nums; }
