/* Admin-Konsole (Betreiber) – Look & Feel ruhig (warmes Weiss, dunkles Gruen). Eigenstaendig, keine Abhaengigkeit von app.css. */
:root {
  --bg: #f4f4f1; --side: #ebebe6; --card: #ffffff; --text: #1d1f1c; --muted: #5d625b; --line: #dcdcd5;
  --accent: #1f4b3a; --accent-weich: #e3ece6; --ok: #2e7d4f; --warn: #8a5800; /* war #a86b00: 4.40:1 auf Karte (Peer Olivia-PC) */ --bad: #b3261e; --grau: #6b6f69;
  --hinweis: #fff3d6; --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161816; --side: #1d201d; --card: #232623; --text: #ecefea; --muted: #a8ada5; --line: #383c37;
    --accent: #8fc7a8; --accent-weich: #22362b; --ok: #6fcf97; --warn: #f2b84b; --bad: #ff8a80; --grau: #9aa097; --hinweis: #3a3220; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--accent); }
h1 { font-size: 2rem; margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.muted { color: var(--muted); }
.klein { font-size: 0.875rem; }

.layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.seite { background: var(--side); padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.marke { display: flex; gap: 0.75rem; align-items: center; margin: 0 0.5rem 1.5rem; }
.marke b { font-size: 1.5rem; color: var(--accent); }
.marke span { display: block; font-size: 0.85rem; color: var(--muted); }
.nav button { width: 100%; text-align: left; background: none; border: 0; border-radius: var(--radius); padding: 0.75rem 1rem; font: inherit; color: var(--text); cursor: pointer; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.nav button:hover { background: var(--card); }
.nav button[aria-current="page"] { background: var(--card); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.zahl { background: var(--accent); color: #fff; border-radius: 999px; font-size: 0.75rem; padding: 0.1rem 0.5rem; min-width: 1.5rem; text-align: center; }
.seite .fuss { margin-top: auto; padding: 0.5rem; font-size: 0.85rem; color: var(--muted); }

main { padding: 2rem 2.5rem; max-width: 1200px; }
main:focus { outline: none; }
.kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.unterzeile { color: var(--muted); margin: 0 0 0.25rem; font-size: 0.9rem; }
.banner { background: var(--hinweis); padding: 0.75rem 1rem; border-radius: 4px; margin: 0 0 1rem; }
.banner.fehler { background: color-mix(in srgb, var(--bad) 15%, var(--card)); }

.karte { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.karte > .zeile { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.karte > .zeile:first-child { border-top: 0; }
.zeile { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.zeile .haupt { flex: 1 1 260px; min-width: 0; }
.zeile .werte { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.zeile .werte b { color: var(--text); font-weight: 600; }
.aktionen { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.leer { padding: 2rem 1.25rem; text-align: center; color: var(--muted); }

.btn { font: inherit; min-height: 44px; padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primaer { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (prefers-color-scheme: dark) { .btn.primaer { color: #10241a; } .zahl { color: #10241a; } } /* .zahl: weiss auf --accent dunkel war 1.93:1 (Peer Olivia-PC) */
.btn.gefahr { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible, .nav button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

.ampel { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.ampel::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: currentColor; }
.ampel.gruen { color: var(--ok); } .ampel.gelb { color: var(--warn); } .ampel.rot { color: var(--bad); } .ampel.grau { color: var(--grau); }
.etikett { display: inline-block; font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--accent-weich); color: var(--accent); margin-left: 0.5rem; vertical-align: middle; }
.etikett.gefahr { background: color-mix(in srgb, var(--bad) 15%, var(--card)); color: var(--bad); }

.filter { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
label { display: block; font-size: 0.9rem; margin: 0.75rem 0 0.25rem; font-weight: 600; }
input, select, textarea { font: inherit; padding: 0.6rem 0.75rem; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); width: 100%; }
.filter input[type="search"] { max-width: 360px; }
.filter select { width: auto; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
.check input { width: auto; min-height: 0; margin-top: 0.3rem; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; border-top: 0; }
pre.mail { white-space: pre-wrap; background: var(--bg); padding: 0.75rem; border-radius: 8px; font-size: 0.85rem; margin: 0.5rem 0; }
code.gross { font-size: 1.4rem; letter-spacing: 0.08em; }

dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); padding: 1.5rem; max-width: 480px; width: calc(100% - 2rem); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog .aktionen { justify-content: flex-end; margin-top: 1.25rem; }

.anmelden { max-width: 420px; margin: 8vh auto; padding: 2rem; }
.status { margin-top: 0.75rem; min-height: 1.5rem; }
/* Sprachumschalter im Admin-Login-Bereich und Sprachknoepfe (44px Zielgroesse, nicht-farblicher Aktiv-Indikator) */
.admin-login-lang { justify-content: flex-end; margin-bottom: 0.5rem; }
.lang-switcher { display: flex; gap: 4px; }
.lang-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; background: var(--card); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lang-btn:hover { border-color: var(--muted); }
.lang-btn.active { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-flag { width: 28px; height: 21px; display: block; }

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .seite { min-width: 0; flex-direction: column; padding: 0.5rem; gap: 0.5rem; }
  .marke, .seite .fuss { display: none; }
  .nav { display: flex; gap: 0.25rem; max-width: 100%; overflow-x: auto; }
  .nav button { white-space: nowrap; width: auto; flex-shrink: 0; }
  .lang-switcher { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  main { min-width: 0; padding: 1.25rem 1rem; }
  .karte { overflow-x: auto; }
  h1 { font-size: 1.6rem; }
}
