/* AIDockOne · aidock.one — Workspace. Eine Stil-Datei vom eigenen Server (Spec 05, 05a).
   Hell für Kunden, Systemschriften, keine Fremdquelle. Kontrast im Test nachgerechnet. */
:root {
  --tinte: #1b2430;
  --leise: #4a5563;
  --grund: #f5f7fa;
  --flaeche: #ffffff;
  --linie: #c9d1da;
  --akzent: #0b6475;
  --akzent-dunkel: #084b58;
  --gefahr: #a3261e;
  --erfolg: #1f6b43;
  --fehler-grund: #fbe9e7;
  --hinweis-grund: #e6f2f4;
  --fokus: #0b6475;
}
* { box-sizing: border-box; }
html { font-size: 106.25%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  color: var(--tinte);
  background: var(--grund);
}
.kopf, main, .fuss { max-width: 44rem; margin: 0 auto; padding: 1rem 1.25rem; }
.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.marke { margin: 0; font-weight: 700; letter-spacing: 0.01em; color: var(--akzent-dunkel); display: flex; align-items: center; gap: 0.5rem; }
.marke-zeichen { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 0.3rem; background: var(--akzent); box-shadow: inset 0 -0.35rem 0 var(--akzent-dunkel); }
.marke-produkt { font-weight: 500; color: var(--leise); }
.sprung { position: absolute; left: -999rem; top: 0.5rem; padding: 0.5rem 0.8rem; background: var(--flaeche); color: var(--akzent-dunkel); border: 2px solid var(--fokus); border-radius: 0.3rem; z-index: 10; }
.sprung:focus { left: 0.5rem; }
nav { display: flex; gap: 1rem; flex: 1; }
.abmelden { margin-left: auto; }
main {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 0.5rem;
  padding: 1.5rem 1.5rem 2rem;
}
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
a { color: var(--akzent); text-underline-offset: 0.15em; }
a:hover { color: var(--akzent-dunkel); }
form { margin: 0; }
main form { max-width: 26rem; }
label { display: block; margin: 1rem 0 0.3rem; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: inherit;
  background: var(--flaeche);
  border: 1px solid var(--leise);
  border-radius: 0.3rem;
}
button {
  min-height: 44px;
  margin-top: 1.25rem;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--akzent);
  border: 1px solid var(--akzent);
  border-radius: 0.3rem;
  cursor: pointer;
}
button:hover { background: var(--akzent-dunkel); }
button.leise { margin-top: 0; min-height: 44px; padding: 0.3rem 0.8rem; color: var(--akzent-dunkel); background: transparent; border-color: var(--linie); font-weight: 500; }
button.leise:hover { background: var(--grund); }
button.gefahr { background: var(--gefahr); border-color: var(--gefahr); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}
.meldung { padding: 0.75rem 1rem; border-radius: 0.3rem; border-left: 0.3rem solid; }
.fehler { background: var(--fehler-grund); border-color: var(--gefahr); }
.hinweis { background: var(--hinweis-grund); border-color: var(--akzent); }
.klein { color: var(--leise); font-size: 0.92rem; }
.kasten { padding: 0.25rem 1rem 0.75rem; margin-bottom: 1.5rem; border: 1px solid var(--akzent); border-radius: 0.4rem; background: var(--hinweis-grund); }
.kasten h2 { margin-top: 0.75rem; }
.lernrunde { padding: 0.25rem 1rem 0.75rem; margin-bottom: 1.5rem; border: 1px solid var(--akzent); border-left: 0.4rem solid var(--akzent); border-radius: 0.4rem; background: var(--hinweis-grund); }
.lernrunde-kopf { margin-top: 0.75rem; }
.lernrunde-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.lernrunde-knoepfe button { margin-top: 0; }
.schluessel code { display: block; padding: 0.6rem 0.75rem; background: var(--grund); border: 1px solid var(--linie); border-radius: 0.3rem; font-size: 1rem; overflow-wrap: anywhere; }
.schritte { padding-left: 1.25rem; }
.schritte li { margin-bottom: 0.75rem; }
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; margin: 0; }
.angaben dt { color: var(--leise); }
.angaben dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; }
th, td { text-align: left; padding: 0.5rem 0.5rem 0.5rem 0; border-bottom: 1px solid var(--linie); vertical-align: middle; overflow-wrap: anywhere; }
.balken { margin: 0 0 1rem; }
.balken label { display: block; font-weight: 600; }
.balken progress { display: block; width: 100%; height: 1.1rem; accent-color: var(--akzent); }
.verbrauch.hinweis progress { accent-color: #e0a100; }
.verbrauch.gesperrt progress { accent-color: var(--gefahr); }
.fuss { color: var(--leise); font-size: 0.9rem; }
@media (max-width: 32rem) {
  main { border-left: 0; border-right: 0; border-radius: 0; padding: 1.25rem; }
  .angaben { grid-template-columns: 1fr; gap: 0.1rem; }
  .angaben dd { margin-bottom: 0.6rem; }
}

/* Probefrage (Spec 06b): Antwort als reiner Text, Zeilenumbrüche bleiben erhalten. */
textarea { font: inherit; resize: vertical; }
.antwort { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0.8rem 1rem; border: 1px solid var(--linie); border-radius: 6px; background: var(--grund); }

/* Passkeys (Spec 05a): Hauptweg oben, Ersatzweg darunter. Bereiche zeigt erst das Skript. */
[hidden] { display: none !important; }
.passkey { max-width: 26rem; }
button.haupt { width: 100%; margin-top: 0.25rem; }
.trenner { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0 0.25rem; color: var(--leise); font-size: 0.92rem; }
.trenner::before, .trenner::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
.liste { padding-left: 0; list-style: none; }
.liste li { padding: 0.75rem 0 1rem; border-bottom: 1px solid var(--linie); }
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background-color 150ms ease-out, color 150ms ease-out; }
}
