/* governQI Test-MVP - bewusst schlank, ohne Framework.
   Farbwelt an die Marke angelehnt: dunkles Petrol + warmes Sandbeige. */

:root {
  --grund: #f7f6f3;
  --flaeche: #ffffff;
  --rand: #e3e0d9;
  --text: #1d2b2c;
  --text-leise: #6b7574;
  --marke: #12494f;
  --marke-hell: #1c6b72;
  --akzent: #c8a45c;
  --gut: #2e7d5b;
  --warnung: #b8860b;
  --schlecht: #b00020;
  --radius: 10px;
  --schatten: 0 1px 3px rgba(20, 40, 40, .07), 0 4px 16px rgba(20, 40, 40, .05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--grund);
}

.rahmen { display: flex; min-height: 100vh; }

/* --- Seitenleiste --- */
.seitenleiste {
  width: 232px;
  flex-shrink: 0;
  background: var(--marke);
  color: #e8efee;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.marke { font-size: 21px; font-weight: 600; letter-spacing: -.3px; padding: 0 10px 22px; }
.marke span { color: var(--akzent); }
.seitenleiste a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: #c9dad9; text-decoration: none; font-size: 14.5px;
}
.seitenleiste a:hover { background: rgba(255,255,255,.07); color: #fff; }
.seitenleiste a.aktiv { background: rgba(255,255,255,.13); color: #fff; font-weight: 500; }
.symbol { width: 18px; text-align: center; font-size: 13px; }
.perle {
  margin-left: auto; background: rgba(255,255,255,.18);
  font-size: 12px; padding: 1px 7px; border-radius: 10px;
}
.perle.stark { background: var(--akzent); color: #2b2000; font-weight: 600; }
.fuss { margin-top: auto; padding: 16px 10px 0; font-size: 11.5px; color: #86a3a2; }
.fuss p { margin: 0 0 6px; }
.fuss .modell {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #a8c2c1; overflow-wrap: anywhere;
}

/* --- Inhalt --- */
.inhalt { flex: 1; padding: 32px 40px 40px; max-width: 1000px; }
.kopf { margin-bottom: 26px; }
.kopf h1 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.4px; }
.kopf p { margin: 0; color: var(--text-leise); max-width: 66ch; }
.zurueck { color: var(--marke-hell); text-decoration: none; font-size: 13.5px; }

/* --- Chat --- */
.verlauf {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 20px; min-height: 260px; max-height: 52vh; overflow-y: auto; margin-bottom: 16px;
}
.blase { margin-bottom: 14px; display: flex; }
.blase .text { padding: 10px 14px; border-radius: 12px; max-width: 78%; white-space: pre-wrap; }
.blase.user { justify-content: flex-end; }
.blase.user .text { background: var(--marke); color: #fff; border-bottom-right-radius: 3px; }
.blase.assistent .text { background: #eef2f1; border-bottom-left-radius: 3px; }

.fragen { border-top: 1px solid var(--rand); margin-top: 18px; padding-top: 16px; }
.fragen-kopf { font-size: 13px; color: var(--text-leise); margin: 0 0 10px; }
.frage { background: #fbf8f1; border: 1px solid #ece2cb; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.frage p { margin: 0 0 8px; font-weight: 500; }
.frage-eingabe { display: flex; gap: 8px; }
.frage-eingabe input { flex: 1; }

/* --- Eingabe --- */
.eingabebereich { display: flex; flex-direction: column; gap: 12px; }
.ablage label {
  display: block; border: 2px dashed var(--rand); border-radius: var(--radius);
  padding: 16px; text-align: center; cursor: pointer; background: var(--flaeche);
}
.ablage label:hover { border-color: var(--marke-hell); background: #fafcfc; }
.ablage strong { display: block; font-size: 14.5px; }
.ablage span { font-size: 12.5px; color: var(--text-leise); }

.chatzeile { display: flex; gap: 8px; }
.chatzeile input { flex: 1; }

input[type=text], input[type=password] {
  padding: 10px 13px; border: 1px solid var(--rand); border-radius: 8px;
  font-size: 14.5px; font-family: inherit; background: var(--flaeche); color: var(--text);
}
input:focus { outline: 2px solid var(--marke-hell); outline-offset: -1px; }

button, .knopf, .knopf-link {
  padding: 10px 16px; border: 0; border-radius: 8px; background: var(--marke); color: #fff;
  font-size: 14px; font-family: inherit; font-weight: 500; cursor: pointer; text-decoration: none;
  display: inline-block;
}
button:hover, .knopf:hover, .knopf-link:hover { background: var(--marke-hell); }
button:disabled { opacity: .5; cursor: default; }

.schnellstart { display: flex; flex-wrap: wrap; gap: 8px; }
.schnellstart button, .schnellstart .knopf-link {
  background: var(--flaeche); color: var(--marke); border: 1px solid var(--rand);
  font-size: 13.5px; padding: 7px 13px; font-weight: 400;
}
.schnellstart button:hover, .schnellstart .knopf-link:hover { background: #eef2f1; border-color: var(--marke-hell); }

.laden { display: none; font-size: 13px; color: var(--text-leise); font-style: italic; }
.laden.laeuft { display: block; }

/* --- Prüfen --- */
.massenaktion { margin-bottom: 20px; }
.gruppe { margin-bottom: 30px; }
.gruppe h2 { font-size: 17px; margin: 0 0 12px; padding-bottom: 7px; border-bottom: 2px solid var(--rand); }
.vorschlag {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--schatten);
}
.vorschlag-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.feld { font-weight: 600; font-size: 13.5px; }
.konfidenz { font-size: 11.5px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.konfidenz.hoch { background: #e3f2ea; color: var(--gut); }
.konfidenz.mittel { background: #fdf3dd; color: var(--warnung); }
.konfidenz.tief { background: #fbe6e9; color: var(--schlecht); }
.quelle { font-size: 12px; color: var(--text-leise); margin-left: auto; }
.wert { margin-bottom: 8px; }
.beleg {
  margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--akzent);
  background: #faf8f3; font-size: 13.5px; color: #4a5453; font-style: italic;
}
.aktionen { display: flex; gap: 8px; }
.aktionen .ja { background: var(--gut); padding: 7px 14px; font-size: 13.5px; }
.aktionen .nein { background: var(--flaeche); color: var(--text-leise); border: 1px solid var(--rand); padding: 7px 14px; font-size: 13.5px; }
.aktionen .nein:hover { background: #f4f2ee; color: var(--schlecht); }
.ausgegraut { opacity: .72; }
.warnung h2 { color: var(--schlecht); border-color: #f0d5da; }
.erklaerung { font-size: 13.5px; color: var(--text-leise); max-width: 70ch; }

/* --- Register --- */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.karte {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: inherit; box-shadow: var(--schatten);
}
.karte:hover { border-color: var(--marke-hell); }
.karte h2 { font-size: 16px; margin: 0 0 12px; }
.balken { height: 6px; background: #eceae5; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.fuellung { height: 100%; border-radius: 3px; }
.fuellung.voll { background: var(--gut); }
.fuellung.teil { background: var(--akzent); }
.fuellung.wenig { background: var(--schlecht); }
.fortschritt { margin: 0 0 4px; font-size: 13px; color: var(--text-leise); }
.fehlt { margin: 0; font-size: 12.5px; color: var(--warnung); }
.komplett { margin: 0; font-size: 12.5px; color: var(--gut); font-weight: 500; }

.detailtabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; }
.detailtabelle th {
  text-align: left; vertical-align: top; padding: 13px 16px; width: 240px;
  font-size: 13.5px; background: #f4f6f5; border-bottom: 1px solid var(--rand); font-weight: 600;
}
.detailtabelle td { padding: 13px 16px; border-bottom: 1px solid var(--rand); }
.fehlt-wert { color: var(--text-leise); font-style: italic; font-size: 13.5px; }
.provenienz { margin-top: 7px; }
.provenienz summary { cursor: pointer; font-size: 12.5px; color: var(--marke-hell); }
.provenienz blockquote { margin: 8px 0 4px; padding: 7px 11px; border-left: 3px solid var(--akzent); background: #faf8f3; font-size: 13px; font-style: italic; }
.provenienz .meta { margin: 0; font-size: 12px; color: var(--text-leise); }

/* --- Berichte --- */
.bericht { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--schatten); }
.bericht h2 { margin: 0 0 3px; font-size: 17px; }
.rechtsbezug { margin: 0 0 10px; font-size: 12.5px; color: var(--marke-hell); font-weight: 500; }
.bericht .hinweis { background: #fdf8ec; border-left: 3px solid var(--akzent); padding: 9px 12px; font-size: 13.5px; }

/* --- Status --- */
.hinweiskasten {
  background: #eef2f1; border-left: 4px solid var(--marke); border-radius: 6px;
  padding: 14px 18px; margin-bottom: 22px; font-size: 14px; max-width: 82ch;
}
.statusliste { display: flex; flex-direction: column; gap: 10px; }
.statuspunkt {
  display: flex; gap: 14px; background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 15px 18px; box-shadow: var(--schatten);
}
.ampel { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; background: var(--text-leise); }
.statuspunkt.erfuellt .ampel { background: var(--gut); }
.statuspunkt.teilweise .ampel, .statuspunkt.pruefen .ampel { background: var(--akzent); }
.statuspunkt.offen .ampel { background: var(--schlecht); }
.statuspunkt.keine .ampel { background: #c9cdcc; }
.statustext h2 { margin: 0 0 3px; font-size: 15.5px; }
.statustext .detail { margin: 0 0 3px; font-size: 14px; }
.statustext .hinweis { margin: 0; font-size: 12.5px; color: var(--text-leise); }

/* --- Diverses --- */
.leer { background: var(--flaeche); border: 1px dashed var(--rand); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--text-leise); }
.leer a { color: var(--marke-hell); }

.anmeldeseite { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--marke); }
.anmeldebox { background: var(--flaeche); padding: 34px; border-radius: 12px; width: 320px; display: flex; flex-direction: column; gap: 12px; }
.anmeldebox .marke { color: var(--marke); padding: 0 0 4px; }
.anmeldebox p { margin: 0; font-size: 13px; color: var(--text-leise); }
.fehler { color: var(--schlecht) !important; }

@media (max-width: 720px) {
  .rahmen { flex-direction: column; }
  .seitenleiste { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .marke { padding: 0 8px 0 4px; }
  .fuss { display: none; }
  .inhalt { padding: 20px 16px 32px; }
  .detailtabelle th { width: auto; }
}

/* --- Konto in der Seitenleiste --- */
.konto {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.konto a { padding: 0; color: #dfe9e8; font-size: 13px; font-weight: 500; }
.konto a:hover { background: none; text-decoration: underline; }
.konto form { margin: 0; }
.abmelden {
  background: none; border: 0; padding: 0; color: #86a3a2;
  font-size: 12px; font-weight: 400; cursor: pointer;
}
.abmelden:hover { background: none; color: #fff; text-decoration: underline; }

/* --- Formularkarte (Konto) --- */
.formularkarte {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--schatten); max-width: 420px;
  display: flex; flex-direction: column; gap: 14px;
}
.formularkarte label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 500; }
.formularkarte input { font-weight: 400; }
.anmerkung { font-weight: 400; color: var(--text-leise); font-size: 12px; }
.anmeldebox .hilfe { font-size: 12px; color: var(--text-leise); margin-top: 2px; }
