/* Oberfläche des Wissensassistenten. Farben nach dem Auftritt von THE WERK. */
:root {
  --grund: #f6f5f2; --karte: #ffffff; --text: #17152b; --leise: #5d5a6b; --linie: #dcd9d2;
  --marine: #0f0b36; --rot: #b61522; --rot-hell: #f7e4e6; --gut: #1d6f45; --gut-hell: #e1f1e8;
  --warn: #8a5a00; --warn-hell: #f6ecd6; --radius: 12px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #121120; --karte: #1b1a2c; --text: #eceaf4; --leise: #a5a2b6; --linie: #33314a;
    --marine: #0b0926; --rot: #e2525f; --rot-hell: #3a1d21; --gut: #6fcf9b; --gut-hell: #173326;
    --warn: #e3b55a; --warn-hell: #3a2f14;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 16px/1.5 var(--schrift); }
h1 { font-size: 20px; margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border-radius: 10px; border: 1px solid var(--linie); background: var(--karte); padding: 9px 14px; }
button.haupt { background: var(--rot); border-color: var(--rot); color: #fff; font-weight: 600; }
button.schlicht { background: transparent; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.leise { color: var(--leise); font-size: 14px; }
.fehler { color: var(--rot); font-size: 14px; margin: 0; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .12em; }
.zeichen { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--rot); color: #fff; border-radius: 6px; font-weight: 800; letter-spacing: 0; }

.anmeldung { min-height: 100%; display: grid; place-items: center; padding: 16px; background: var(--marine); }
.karte { width: 100%; max-width: 380px; background: var(--karte); border-radius: 16px; padding: 28px; display: grid; gap: 10px; }
.karte label { font-size: 14px; font-weight: 600; margin-top: 6px; }
.karte input { padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--grund); }
.karte .haupt { margin-top: 10px; }

.anwendung { display: grid; grid-template-columns: 280px 1fr; height: 100%; }
.seite { background: var(--marine); color: #fff; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.liste { flex: 1; overflow-y: auto; display: grid; gap: 4px; align-content: start; }
.liste button { text-align: left; background: transparent; border-color: transparent; color: #d9d6ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liste button[aria-current="true"] { background: rgba(255,255,255,.12); color: #fff; }
.fuss { display: grid; gap: 6px; font-size: 14px; }
.fuss button { color: #fff; border-color: rgba(255,255,255,.25); }
.konto { color: #b9b5d6; overflow: hidden; text-overflow: ellipsis; }

.haupt-bereich { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.kopf { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--linie); background: var(--karte); flex-wrap: wrap; }
.kopf h1 { margin-right: auto; }
.marke-klein { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--grund); border: 1px solid var(--linie); color: var(--leise); white-space: nowrap; }
.hinweis { margin: 0; padding: 8px 20px; background: var(--warn-hell); color: var(--warn); font-size: 14px; }
.verlauf { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 16px; align-content: start; }
.leer { max-width: 620px; margin: 6vh auto 0; text-align: center; display: grid; gap: 12px; }
.leer h2 { margin: 0; font-size: 24px; }
.beispiele { display: grid; gap: 8px; }
.beispiele button { text-align: left; }
.nachricht { max-width: 820px; width: 100%; margin: 0 auto; display: grid; gap: 8px; }
.nachricht .rolle { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.nachricht.frage .inhalt { background: var(--marine); color: #fff; padding: 12px 16px; border-radius: var(--radius); justify-self: start; white-space: pre-wrap; overflow-wrap: anywhere; }
.nachricht.antwort .inhalt { background: var(--karte); border: 1px solid var(--linie); padding: 14px 16px; border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; }
.schritte { font-size: 13px; color: var(--leise); display: grid; gap: 2px; }
.schritte span::before { content: "› "; color: var(--rot); }
.quellen { display: grid; gap: 6px; }
.quellen h3 { margin: 4px 0 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.quelle { background: var(--karte); border: 1px solid var(--linie); border-left: 4px solid var(--rot); border-radius: 0 10px 10px 0; padding: 8px 12px; font-size: 14px; overflow-wrap: anywhere; }
.quelle b { display: block; }
.quelle code { font-size: 12.5px; color: var(--leise); }
.status { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.status.aktuell { background: var(--gut-hell); color: var(--gut); }
.status.veraltet { background: var(--rot-hell); color: var(--rot); }
.status.ungesichtet { background: var(--warn-hell); color: var(--warn); }
.eingabe { display: flex; gap: 10px; padding: 12px 20px 4px; align-items: end; max-width: 860px; width: 100%; margin: 0 auto; }
.eingabe textarea { flex: 1; resize: vertical; min-height: 52px; max-height: 220px; padding: 12px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); }
.fusszeile { text-align: center; margin: 4px 0 12px; padding: 0 16px; }
.nur-schmal { display: none; }
@media (max-width: 760px) {
  .anwendung { grid-template-columns: 1fr; }
  .seite { position: fixed; inset: 0 25% 0 0; z-index: 5; transform: translateX(-105%); transition: transform .2s; }
  .seite.offen { transform: none; }
  .nur-schmal { display: inline-block; }
  .kopf { padding: 8px 12px; gap: 6px; }
  .kopf h1 { font-size: 18px; }
  .hinweis { padding: 6px 12px; font-size: 12.5px; }
  .verlauf { padding: 14px 12px; }
  .eingabe { padding: 10px 12px 4px; }
}
@media (prefers-reduced-motion: reduce) { .seite { transition: none; } }
