/*
  Die Prüfseite der KI-Kennzeichnung. Farben aus packages/ui (tokens.ts):
  Schrift #280047, Grund #F2F2F7, Leitfarbe #CF91FF. Für Verweise und Knöpfe
  #8F35D4 – der einzige Lilaton mit genug Kontrast auf hellem Grund (WCAG AA,
  verlangt vom Verhaltenskodex, Maßnahme 2.3). Keine fremden Schriften, keine
  Bilder: Die Seite lädt nichts von außen.
*/

:root {
  --schrift: #280047;
  --leise: #5d4372;
  --grund: #f2f2f7;
  --karte: #ffffff;
  --linie: #cdcaca;
  --akzent: #8f35d4;
  --akzent-zart: #f0e2ff;
  --ok: #1b6e3c;
  --ok-zart: #e6f4ea;
  --warnung: #8a4b00;
  --warnung-zart: #fff1db;
  --fehler: #a4161a;
  --fehler-zart: #fde8e8;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.rahmen { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.kopf { background: var(--karte); border-bottom: 1px solid var(--linie); }
.kopf .rahmen { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.marke { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.marke-zusatz { color: var(--leise); font-size: 14px; }

h1 { font-size: 28px; line-height: 1.2; margin: 32px 0 12px; }
h2 { font-size: 19px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 18px 0 6px; }
p { margin: 0 0 12px; }

.einleitung { font-size: 17px; }
.hinweis-klein { color: var(--leise); font-size: 14px; }

a { color: var(--akzent); }
code { font-size: 0.9em; background: var(--akzent-zart); padding: 1px 5px; border-radius: 5px; }

.karte {
  background: var(--karte);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 1px 2px rgba(40, 0, 71, 0.06);
}

.ablage {
  display: block;
  border: 2px dashed var(--linie);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  background: #fafafb;
}
.ablage:hover, .ablage.ziehen { border-color: var(--akzent); background: var(--akzent-zart); }
.ablage:focus-within { outline: 3px solid var(--akzent); outline-offset: 2px; }
.ablage input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ablage-text strong { color: var(--akzent); }

textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 12px;
  resize: vertical;
}
textarea:focus { outline: 3px solid var(--akzent); outline-offset: 1px; border-color: var(--akzent); }

.aktionen { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--akzent);
  color: #fff;
  cursor: pointer;
}
button.zweitrangig { background: var(--akzent-zart); color: var(--akzent); }
button:focus-visible { outline: 3px solid var(--schrift); outline-offset: 2px; }
button:disabled { opacity: 0.6; cursor: default; }

.ergebnis {
  margin-top: 16px;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--linie);
}
.ergebnis.ok { background: var(--ok-zart); border-color: #b7dfc3; }
.ergebnis.warnung { background: var(--warnung-zart); border-color: #f2d19b; }
.ergebnis.fehler { background: var(--fehler-zart); border-color: #f3b9b9; }
.ergebnis-titel { font-weight: 700; font-size: 17px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.ok .ergebnis-titel { color: var(--ok); }
.warnung .ergebnis-titel { color: var(--warnung); }
.fehler .ergebnis-titel { color: var(--fehler); }
.ki-zeichen {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--schrift);
  color: #fff;
}

dl.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 15px; }
dl.angaben dt { color: var(--leise); }
dl.angaben dd { margin: 0; overflow-wrap: anywhere; }

.erklaerung summary { cursor: pointer; font-weight: 600; }
.erklaerung p { font-size: 15px; }

.fuss { color: var(--leise); font-size: 13px; padding: 24px 0 40px; }

.unsichtbar {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  dl.angaben { grid-template-columns: 1fr; }
  dl.angaben dd { margin-bottom: 6px; }
}
