/* Verwaltung — schlanker MAIN-Stil: weißer Kopf, Türkis-Akzent, Navy für Titel */
:root {
  --bg: #f3f5f8; --karte: #ffffff; --rand: #dde2ea; --text: #1d2433; --leise: #667085;
  --navy: #1e1f5b; --tuerkis: #008ba3; --tuerkis-hell: #e3f4f7; --gruen: #2e9d5b; --gelb: #c98a00;
  --rot: #c63b3b; --mark: #fff2b8;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 14.5px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--tuerkis); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .knopf { font: inherit; border: 1px solid var(--rand); background: var(--karte); color: var(--text);
  border-radius: 6px; padding: 6px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; text-decoration: none; }
button:hover, .knopf:hover { background: var(--bg); text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
.primaer { background: var(--tuerkis); border-color: var(--tuerkis); color: #fff; font-weight: 600; }
.primaer:hover { background: #007a8f; }
input, select, textarea { font: inherit; border: 1px solid var(--rand); border-radius: 6px; padding: 7px 10px;
  background: #fff; color: var(--text); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--tuerkis); border-color: var(--tuerkis); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 5; height: 58px; background: #fff; border-bottom: 1px solid var(--rand);
  display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.marke { font-weight: 700; font-size: 19px; color: var(--navy); white-space: nowrap; cursor: pointer; }
.marke span { color: var(--tuerkis); }
.suchfeld { flex: 1; max-width: 640px; display: flex; gap: 6px; }
.suchfeld input { flex: 1; }
.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--leise); font-size: 13px; }

/* Rahmen */
.rahmen { display: grid; grid-template-columns: 290px 1fr; height: calc(100% - 58px); }
.seitenleiste { border-right: 1px solid var(--rand); background: #fff; overflow: auto; padding: 10px; }
.seitenleiste input { width: 100%; margin-bottom: 8px; }
.gruppe { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--leise);
  margin: 12px 6px 4px; display: flex; justify-content: space-between; }
.eintrag { display: block; padding: 6px 8px; border-radius: 6px; color: var(--text); cursor: pointer; }
.eintrag:hover { background: var(--bg); text-decoration: none; }
.eintrag.aktiv { background: var(--tuerkis-hell); }
.eintrag .name { font-weight: 600; }
.eintrag .klein { font-size: 12px; color: var(--leise); }
.inhalt { overflow: auto; padding: 22px 28px 60px; }
.inhalt > * { max-width: 1100px; }

h1 { color: var(--navy); font-size: 24px; margin: 0 0 4px; }
h2 { color: var(--navy); font-size: 17px; margin: 26px 0 10px; }
.unter { color: var(--leise); margin-bottom: 14px; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.zahl { font-size: 26px; font-weight: 700; color: var(--navy); }
.zahl-text { color: var(--leise); font-size: 13px; }
.leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--rand); color: var(--leise); margin: 0 4px 4px 0; }
.chip.aktiv { background: #e6f5ec; color: var(--gruen); border-color: #bfe3cc; }
.chip.neu { background: #fff4d6; color: var(--gelb); border-color: #f1dc9f; }
.chip.archiv { color: var(--leise); }
.leise { color: var(--leise); }
.klein { font-size: 12.5px; }
ul.punkte { margin: 6px 0; padding-left: 20px; }
.sitzung-zeile { display: block; padding: 10px 12px; border-bottom: 1px solid var(--rand); color: var(--text); }
.sitzung-zeile:hover { background: var(--bg); text-decoration: none; }
.sitzung-zeile:last-child { border-bottom: 0; }
.liste { background: #fff; border: 1px solid var(--rand); border-radius: 10px; overflow: hidden; }
.titelzeile { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.titelzeile .leise { font-weight: 400; white-space: nowrap; font-size: 12.5px; }
.vorschau { color: var(--leise); font-size: 13px; margin-top: 2px; }
mark, .treffer b { background: var(--mark); color: inherit; padding: 0 1px; font-weight: 600; }

/* Gesprächsverlauf */
.nachricht { margin: 10px 0; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--rand);
  white-space: pre-wrap; overflow-wrap: anywhere; }
.nachricht.user { background: var(--tuerkis-hell); border-color: #bfe3ea; }
.nachricht.werkzeug { background: transparent; border: 0; padding: 0 14px; margin: 2px 0; color: var(--leise);
  font: 12px Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nachricht .wer { font-size: 12px; font-weight: 700; color: var(--leise); margin-bottom: 4px; white-space: normal; }
.antwort { white-space: pre-wrap; }

.hinweis { padding: 10px 14px; border-radius: 8px; background: #fff4d6; border: 1px solid #f1dc9f; margin: 10px 0; }
.fehlerbox { padding: 10px 14px; border-radius: 8px; background: #fde8e8; border: 1px solid #f5c2c2; color: var(--rot); }
.laden { color: var(--leise); padding: 20px 0; }

/* Anmeldung */
.anmeldung { max-width: 340px; margin: 16vh auto 0; background: #fff; border: 1px solid var(--rand); border-radius: 12px;
  padding: 26px; display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 800px) {
  .rahmen { grid-template-columns: 1fr; height: auto; }
  .seitenleiste { max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--rand); }
  .inhalt { padding: 16px; }
  .kopf { gap: 8px; } .kopf .rechts span { display: none; }
}
.antwort .ueber { display: block; color: var(--navy); font-size: 15px; margin-top: 6px; }
code { font: 12.5px Consolas, monospace; background: var(--bg); padding: 1px 4px; border-radius: 4px; }
a.chip:hover { text-decoration: none; border-color: var(--tuerkis); }
.chip.aktiv { background: var(--tuerkis-hell); color: var(--tuerkis); border-color: #9fd3dd; }
.dokument { padding: 22px 30px; line-height: 1.6; }
.dokument h2 { margin-top: 18px; } .dokument h3, .dokument h4, .dokument h5 { color: var(--navy); margin: 14px 0 6px; }
.dokument p { margin: 6px 0; } pre.code { background: var(--bg); padding: 10px; border-radius: 6px; overflow: auto; font: 12.5px Consolas, monospace; }
table.tabelle { border-collapse: collapse; margin: 8px 0; } .tabelle th, .tabelle td { border: 1px solid var(--rand); padding: 4px 8px; text-align: left; }
.tabelle th { background: var(--bg); }
@media print { .kopf, .seitenleiste, .nicht-drucken { display: none !important; } .rahmen { display: block; height: auto; }
  .inhalt { overflow: visible; padding: 0; } .karte { border: 0; } body { background: #fff; } }
