/* Formsache – Gestaltung für alle Seiten
   ======================================
   Farben, Schriften und Abstände stehen als Variablen ganz oben. Wer etwas ändern will, ändert
   es dort einmal, und es gilt überall. Im dunklen Design werden nur diese Variablen
   ausgetauscht.

   Stil von lennartbuuck.de (70er, wie gedruckt; Stand 27.11.2026, Zweig nacht-redesign dort).
   Eigene Festlegungen zur Gestaltung, keine APA-Vorgaben:
   - Orange ist Kopf und Akzent: Kopfleiste, Startband, Bildflächen der Startseite. Arbeitsflächen
     sind Feld (Seitengrund) und Weiß (Karten), damit beim Arbeiten nichts blendet.
   - Auf Orange steht nur große weiße Schrift (3,4:1, nur ab 24 px) oder Espresso (5,1:1).
     Fließtext steht auf Weiß, Feld, Senf oder Espresso.
   - Knöpfe sind Pillen, Flächen und Felder eckig. Keine Schatten, keine Verläufe. Trenner sind
     3 px breit und haben die Farbe des Seitengrunds.
   - Felder und leise Knöpfe haben einen Rand in --rahmen (mindestens 3:1 gegen Weiß und Feld),
     damit man sie als Bedienelement erkennt; Felder nur unten, wie eine Zeile im Formular.
   - Bildflächen (Senf, Rost, Espresso, Orange der Kacheln) tragen das Papierkorn (--korn). Es
     dunkelt im Mittel um 8,5 % ab (gemessen). Hinter kleiner Schrift auf Orange liegt deshalb
     kein Korn: Espresso auf Orange hätte sonst nur 4,4:1.
   - Was später im Manuskript steht, erscheint als weißes Blatt in Times New Roman
     (--blatt), auch im dunklen Modus. Alles andere ist Werkzeug.
   - Fünf Schriftgrößen wie auf der Website (--s-l, --s-m, --s-s, --s-xs; die größte, 136 px,
     braucht Formsache nicht). Ausnahme: die maßstabsgetreue Titelseite der Word-Vorlage. */

:root {
  /* Palette der Website */
  --orange: #EC5B21;
  --espresso: #2A1206;
  --senf: #F6B42C;
  --senf-hell: #FAD27A;
  --rost: #A3330F;
  --feld: #F3E9DF;
  --braun: #5E3D2C;      /* Nebentext; 9,6:1 auf Weiß, 8:1 auf Feld; nicht auf Senf mit Korn (4,4:1). Eigene Ergänzung */
  /* Papierkorn: feines Rauschen als Kachel, nimmt der Fläche das Leuchten des Bildschirms */
  --korn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 -.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Rollen */
  --grund: var(--feld);  /* Seitenhintergrund, aktive Seite im Menü, Trenner in Karten */
  --flaeche: #ffffff;    /* Karten */
  --eingabe: var(--feld); /* Felder und leise Knöpfe auf Karten */
  --erhaben: #EADBCB;    /* Felder beim Überfahren, Datei wird darübergezogen */
  --rahmen: #7D5D4A;     /* Ränder von Feldern und leisen Knöpfen: 5,9:1 auf Weiß, 5,0:1 auf Feld */
  --tinte: var(--espresso);
  --grau: var(--braun);
  --haupt: var(--espresso);  /* gefüllter Hauptknopf */
  --haupt-tinte: #ffffff;
  --link: var(--rost);
  --kopf: var(--orange);

  --ok: #3D6421;        --ok-bg: #E2ECCB;      --ok-tinte: #21400F;
  --warn: #8A4A00;      --warn-bg: var(--senf-hell); --warn-tinte: var(--espresso);
  --fehler: var(--rost); --fehler-bg: #FBD3C3;  --fehler-tinte: #6E1F07;
  --hinweis-bg: #EADBCB; /* etwas dunkler als Feld, damit Marken auch auf dem Seitengrund stehen */

  /* Das Blatt: immer weiß mit schwarzer Schrift, wie eine Manuskriptseite */
  --blatt: #ffffff;
  --blatt-tinte: #000000;

  /* Systemschriften: Es wird nichts von fremden Servern geladen. */
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", sans-serif;
  --manuskript: "Times New Roman", Times, serif;
  --s-l: clamp(40px, 5vw, 72px);
  --s-m: clamp(24px, 2.6vw, 36px);
  --s-s: 18px;
  --s-xs: 15px;
  /* Federnde Bewegung der Knöpfe wie auf der Website */
  --feder: cubic-bezier(.3, 1.6, .5, 1);

  --abstand: 16px;
  --innen: 24px;
  --feldhoehe: 44px;
  --breite: 1120px;
  color-scheme: only light;
}

/* Dunkles Design. js/thema.js setzt data-thema am <html>-Element (Wahl des Nutzers, sonst die
   Einstellung des Systems). Espresso als Grund, etwas hellere Karten, Schrift in Feld, Senf als
   Akzent. Die Kopfleiste bleibt orange. Jedes Paar aus Schrift und Fläche ist auf mindestens
   4.5:1 geprüft.
   "only dark"/"only light" sagt dem Browser, dass er die Farben nicht selbst umrechnen soll
   (Opera und Chrome können Seiten sonst zwangsweise abdunkeln und zerstören dabei Kontraste). */
:root[data-thema="dunkel"] {
  --grund: var(--espresso);
  --flaeche: #3E2214;
  --eingabe: #53301E;
  --erhaben: #64402B;
  --rahmen: #A07F6B;     /* 4,0:1 auf den Karten, 4,8:1 auf dem Grund */
  --tinte: var(--feld);
  --grau: #D8C2AE;
  --haupt: var(--senf);
  --haupt-tinte: var(--espresso);
  --link: var(--senf);

  --ok: #B5D98A;      --ok-bg: #2F4219;      --ok-tinte: #DDEFC4;
  --warn: var(--senf-hell); --warn-bg: #5A3A0A; --warn-tinte: #FCE3A6;
  --fehler: #FF9B76;  --fehler-bg: #5E1E0B;  --fehler-tinte: #FFD3C2;
  --hinweis-bg: #53301E;
  color-scheme: only dark;
}

* { box-sizing: border-box; }

/* "hidden" muss gewinnen, auch wenn ein Element sonst display: flex hat */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--text);
  font-size: var(--s-xs);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; }
h1 { font-size: var(--s-m); letter-spacing: -0.02em; margin: 0 0 8px; text-wrap: balance; }
::selection { background: var(--senf); color: var(--espresso); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }

/* Federnde Knöpfe und weiche Farbwechsel; wer Bewegung reduziert hat, bekommt keine */
a, button, .knopf, .knopf-leise {
  transition: transform 0.2s var(--feder), background-color 0.15s ease, color 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Seitenkopf ----------
   Oben Name und Sprachschalter, darunter die Werkzeuge als Reiter wie bei einem Aktenordner
   (auf lennartbuuck.de liegen die Projekte so). Der Reiter der aktuellen Seite hat die Farbe
   des Seitengrunds und geht in die Seite über. */

.kopf { background: var(--kopf); color: var(--espresso); }
.kopf :focus-visible { outline-color: var(--espresso); }
.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  /* Weiß auf Orange nur in großer Schrift */
  font: 800 var(--s-m)/1 var(--display);
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
.marke svg { flex: none; width: 0.75em; height: 0.75em; }
.marke .zeichen-oben { stroke: var(--senf); }

.hauptnav {
  order: 4;
  flex: 1 0 100%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  margin: 4px -16px 0;
  padding: 6px 4px 0;
}
.hauptnav a {
  position: relative;
  isolation: isolate;
  padding: 12px 30px 10px 16px;
  font: 800 var(--s-s)/1 var(--display);
  color: var(--espresso);
  text-decoration: none;
  white-space: nowrap;
}
/* Die Reiterform liegt auf einer eigenen Ebene, damit der Fokusrahmen nicht abgeschnitten wird */
.hauptnav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--reiter, transparent);
  clip-path: polygon(0 100%, 0 10px, 10px 0, calc(100% - 22px) 0, 100% 100%);
}
/* „Arbeit prüfen“ fasst die übrigen Werkzeuge zusammen: steht vorn, als senfgelber Reiter */
.hauptnav .nav-pruefen { --reiter: var(--senf); margin-right: 12px; }
.hauptnav a[aria-current="page"] { --reiter: var(--grund); color: var(--tinte); }
/* Feld hebt sich von Orange nur mit 2,9:1 ab: Die aktuelle Seite ist zusätzlich unterstrichen */
.hauptnav a[aria-current="page"], .hauptnav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.nav-kurz { display: none; }

/* Sprachschalter: Espresso-Pille, gewählte Sprache in Senf */
.variante {
  order: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 18px;
  border-radius: 99px;
  background: var(--espresso);
  color: var(--feld);
  font-weight: 600;
  white-space: nowrap;
}
.kopf .variante :focus-visible { outline-color: var(--senf); }
.schalter {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 99px;
  background: var(--eingabe);
}
.schalter button {
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--tinte);
  font: 800 var(--s-xs)/1 var(--display);
  padding: 10px 14px;
  cursor: pointer;
}
.schalter button:hover { text-decoration: underline; text-underline-offset: 4px; }
.schalter button[aria-pressed="true"] { background: var(--haupt); color: var(--haupt-tinte); text-decoration: none; }
.kopf .schalter { padding: 0; background: transparent; }
.kopf .schalter button { color: var(--feld); }
.kopf .schalter button[aria-pressed="true"] { background: var(--senf); color: var(--espresso); }

/* Umschalter helles/dunkles Design: Mond im hellen, Sonne im dunklen Design */
.thema-knopf {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 99px;
  background: var(--espresso);
  color: var(--feld);
  cursor: pointer;
}
.thema-knopf:hover { transform: scale(1.06); }
.thema-knopf:active { transform: scale(0.95); }
.thema-knopf .bei-dunkel, :root[data-thema="dunkel"] .thema-knopf .bei-hell { display: none; }
:root[data-thema="dunkel"] .thema-knopf .bei-dunkel { display: block; }

/* Unter dem Kopf: Titel und ein Satz zur Seite, auf dem Seitengrund */
.band { background: var(--grund); color: var(--tinte); }
.band-innen { max-width: var(--breite); margin: 0 auto; padding: 32px 24px 0; }
.band .lead { font-size: var(--s-s); color: var(--tinte); margin: 0; }
.band a { color: inherit; }

/* Mittlere Bildschirme: Die Reiter lassen sich seitlich schieben (sieben passen mit macOS-Schrift erst ab etwa 960 px in eine Zeile; Luft für andere Schriften) */
@media (max-width: 1024px) {
  .hauptnav { overflow-x: auto; padding: 6px 12px 0; scrollbar-width: none; }
}
@media (max-width: 860px) {
  .kopf-innen { padding: 12px 16px 0; }
  .band-innen { padding: 24px 16px 0; }
}
@media (max-width: 480px) {
  /* Sieben Werkzeuge passen nicht in eine Zeile: Raster mit drei Spalten, alle sichtbar.
     „Arbeit prüfen“ heißt hier „Prüfen“ und steht oben links. */
  .hauptnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px 12px 0; overflow: visible; }
  .hauptnav a { padding: 11px 6px 9px; text-align: center; }
  .hauptnav a::before { clip-path: polygon(0 100%, 0 8px, 8px 0, calc(100% - 12px) 0, 100% 100%); }
  .hauptnav .nav-pruefen { margin-right: 0; }
  .nav-lang { display: none; }
  .nav-kurz { display: inline; }
}
@media (max-width: 420px) {
  /* Die Beschriftung bleibt für Bildschirmleser erhalten */
  .variante { padding-left: 4px; }
  .variante-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .schalter button { padding: 10px 12px; }
}

/* ---------- Allgemeiner Inhalt ---------- */

main {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 28px 24px 72px;
}
/* Einleitungen und Hilfetexte ohne eigene Höchstbreite: Sie nutzen die Breite der Seite bzw. Karte
   und brechen nicht um, solange sie in eine Zeile passen (Wunsch des Nutzers, 15.11.2026). */
.lead { font-size: var(--s-s); color: var(--grau); margin: 0 0 24px; }

/* Fuß in Espresso, darüber die Streifen der Website: Senf, Orange, Rost */
.fuss {
  position: relative;
  padding: 36px max(24px, calc((100% - var(--breite)) / 2 + 24px)) 44px;
  background: var(--korn), var(--espresso);
  color: var(--feld);
  border-top: 10px solid var(--rost);
}
.fuss::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 20px;
  margin-bottom: 10px;
  border-top: 10px solid var(--senf);
  background: var(--orange);
}
.fuss a { color: var(--senf); }
.fuss :focus-visible { outline-color: var(--senf); }
@media (max-width: 860px) {
  main { padding: 24px 16px 64px; }
  .fuss { padding: 28px 16px 36px; }
}

/* ---------- Flächen ----------
   Karte: weiße, eckige Fläche ohne Rand. Dieselbe Form für Eingabeblöcke (fieldset), Ergebnis,
   Prüfbereiche und die Kacheln der Startseite. */

.karte, form fieldset, .ergebnis, .r-treffer, .kachel {
  background: var(--flaeche);
  border: 0;
  border-radius: 0;
}
.karte { margin-top: var(--abstand); padding: 20px var(--innen) var(--innen); }
.karte h2, .ergebnis h2 { font-size: var(--s-s); margin: 0 0 14px; }
/* Überschrift mit Zähl-Marken: Bricht die Zeile um, stehen die Marken bündig darunter */
.karte h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.karte h3, .ergebnis h3 { font-size: var(--s-xs); color: var(--grau); margin: 22px 0 8px; }
.legende-hilfe { font-family: var(--text); font-weight: 400; font-size: var(--s-xs); color: var(--grau); letter-spacing: 0; }

/* ---------- Startseite ----------
   Oben ein orangefarbenes Band mit großer weißer Schrift, wie der Anfang von lennartbuuck.de.
   Die Hauptkachel „Arbeit prüfen“ fasst die anderen Werkzeuge zusammen und ragt in das Band
   hinein; man kann dort direkt eine Datei wählen oder ablegen. Darunter die einzelnen Werkzeuge
   als Kacheln (zwei Reihen mit je drei). Jede zeigt ein Blatt auf einer Farbfläche, wie die
   Zettel auf der Website, darunter Name und Stichworte. */

.band-start { background: var(--kopf); color: #ffffff; }
.band-start .band-innen { padding-top: 40px; padding-bottom: 116px; }
.band-start h1 { font-size: var(--s-l); line-height: 0.98; letter-spacing: -0.04em; margin-bottom: 18px; }
/* Der längere Satz in Espresso (5,1:1), Weiß bleibt der großen Überschrift */
.band-start .lead { color: var(--espresso); font: 800 var(--s-m)/1.15 var(--display); letter-spacing: -0.02em; }
.einstieg { padding-top: 0; }

.pruef-kachel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: -76px;
  overflow: hidden;
  background: var(--flaeche);
}
/* Datei wird darübergezogen */
.pruef-kachel.ziehen { outline: 3px dashed var(--tinte); outline-offset: -10px; }
.pruef-text { display: flex; flex-direction: column; justify-content: center; padding: 32px 36px; }
.pruef-text h2 { font-size: var(--s-m); letter-spacing: -0.02em; margin: 0 0 10px; }
.pruef-text h2 a { color: inherit; text-decoration: none; }
.pruef-text h2 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.pruef-lead { font-size: var(--s-s); margin: 0 0 22px; }
.pruef-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.knopf-gross { min-height: 52px; padding: 0 26px; font-size: var(--s-s); text-decoration: none; }
.pruef-hilfe { color: var(--grau); margin: 16px 0 0; }
.pruef-text .import-meldung { margin: 12px 0 0; }

/* Bild: ein Blatt mit Markierungen auf Senf, davor der Prüfbericht als Espresso-Karte */
.pruef-bild {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  background: var(--korn), var(--senf);
}
.pruef-bild .blatt { left: 36px; top: 32px; bottom: -24px; min-height: 0; padding: 22px 48px 22px 24px; rotate: -1.2deg; }
.bericht-vorschau {
  /* Chips wie auf dem Blatt immer in den hellen Farben */
  --ok-bg: #E2ECCB;     --ok-tinte: #21400F;
  --fehler-bg: #FBD3C3; --fehler-tinte: #6E1F07;
  --hinweis-bg: var(--feld); --tinte: var(--espresso);
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 260px;
  padding: 14px 16px 16px;
  background: var(--korn), var(--espresso);
  color: var(--feld);
}
.bericht-titel { font: 800 var(--s-s)/1.2 var(--display); margin: 0 0 10px; }
.bericht-vorschau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bericht-vorschau li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.abschnitt-titel { font-size: var(--s-m); letter-spacing: -0.02em; margin: 48px 0 16px; }

@media (max-width: 760px) {
  .pruef-kachel { grid-template-columns: minmax(0, 1fr); }
  .pruef-text { padding: 24px 20px 26px; }
  .pruef-bild { min-height: 230px; }
  .pruef-bild .blatt { left: 20px; top: 20px; padding: 16px 40px 16px 18px; }
  .bericht-vorschau { right: 16px; bottom: 16px; width: 230px; }
}
/* Auf dem Handy nur Text und Knöpfe: Das Bild würde sich selbst verdecken */
@media (max-width: 600px) { .pruef-bild { display: none; } }
/* Ohne Maus (Touch) gibt es kein Ziehen und Ablegen */
@media (hover: none) { .nur-maus { display: none; } }

.kacheln {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--abstand);
}
.kacheln li { grid-column: span 2; display: flex; }
.kachel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

/* Das Bild: ein Blatt auf einer Farbfläche, das unten und rechts aus der Kachel läuft */
.kachel-bild {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--korn), var(--kachel-farbe, var(--senf));
}
.kacheln li:nth-child(1) { --kachel-farbe: var(--espresso); }
.kacheln li:nth-child(2) { --kachel-farbe: var(--senf); }
.kacheln li:nth-child(3) { --kachel-farbe: var(--rost); }
.kacheln li:nth-child(4) { --kachel-farbe: var(--orange); }
.kacheln li:nth-child(5) { --kachel-farbe: var(--senf); }
.kacheln li:nth-child(6) { --kachel-farbe: var(--espresso); }
.blatt {
  /* Auf dem Blatt gelten immer die hellen Farben, auch im dunklen Design */
  --ok-bg: #E2ECCB;     --ok-tinte: #21400F;
  --warn-bg: #FAD27A;   --warn-tinte: #2A1206;
  --fehler-bg: #FBD3C3; --fehler-tinte: #6E1F07;
  --hinweis-bg: #F3E9DF; --tinte: #2A1206;
  position: absolute;
  left: 32px;
  right: -28px;
  top: 30px;
  min-height: 200px;
  padding: 18px 44px 16px 20px;
  background: var(--blatt);
  color: var(--blatt-tinte);
  font-family: var(--manuskript);
  font-size: var(--s-xs);
  line-height: 1.45;
  transition: transform 0.3s var(--feder);
}
.kachel:hover .blatt { transform: translateY(-6px) rotate(-1.5deg); }
.blatt p { margin: 0; }
.blatt-gross { font-size: var(--s-s); }
.blatt-marke { margin-top: 12px !important; font-family: var(--text); }
.blatt-tabelle { margin-top: 6px; border-collapse: collapse; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.blatt-tabelle th, .blatt-tabelle td { padding: 2px 14px 2px 4px; font-weight: 400; text-align: left; white-space: nowrap; }
.blatt-tabelle th { border-bottom: 1px solid #000; }
.blatt-tabelle :is(th, td):not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.blatt-grafik { display: block; width: 100%; max-width: 250px; height: auto; margin-top: 6px; }
.blatt-angabe { padding-left: 2em; text-indent: -2em; margin-bottom: 6px !important; }
.blatt-absatz { line-height: 1.75; }
.blatt-titelseite { text-align: center; padding-top: 38px; line-height: 1.7; }
.blatt-seitenzahl { position: absolute; top: 12px; right: 48px; }

.kachel-text { padding: 16px 20px 20px; }
.kachel-text h2 { font-size: var(--s-s); margin: 0 0 4px; }
.kachel-text p { margin: 0; color: var(--grau); }
/* Beim Überfahren wird der Name unterstrichen: Die ganze Kachel ist der Link */
.kachel:hover .kachel-text h2 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 3px; }

@media (max-width: 900px) {
  .kacheln li { grid-column: span 3; }
}
@media (max-width: 600px) {
  .band-start .band-innen { padding-top: 28px; padding-bottom: 100px; }
  .kacheln { gap: 12px; }
  .kacheln li { grid-column: span 6; }
  .kachel-bild { height: 156px; }
}

/* Hinweis zum Datenschutz: Senf wie der Kontakt-Coupon der Website */
.datenschutz {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: var(--abstand) 0 0;
  padding: 18px 22px;
  background: var(--korn), var(--senf);
  color: var(--espresso);
}
.datenschutz svg { flex: none; margin-top: 2px; }
.datenschutz a { color: inherit; }
.datenschutz :focus-visible { outline-color: var(--espresso); }

/* ---------- Eingabe: Felder und Knöpfe (alle Seiten) ---------- */

.modul-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--abstand);
  align-items: start;
}
.raster-breit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
@media (max-width: 900px) {
  .modul-raster, .raster-breit { grid-template-columns: minmax(0, 1fr); }
}

form fieldset {
  padding: 20px var(--innen) var(--innen);
  margin: 0 0 var(--abstand);
  min-width: 0;
}
/* Die Beschriftung steht in der Karte, nicht auf ihrer Kante */
form legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 14px;
  font: 800 var(--s-s)/1.2 var(--display);
}
form legend + * { clear: both; }

.felder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px 16px;
}
.felder.breit { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld label { font-weight: 600; }
.feld .hilfe { color: var(--grau); }
.feld.lang { grid-column: span 2; }
.feld.lang-voll { grid-column: 1 / -1; }
@media (max-width: 420px) { .feld.lang { grid-column: auto; } }
.feld-hilfe { color: var(--grau); margin: 12px 0 0; }

/* Felder: eckig, mit einer Linie unten wie im Formular. Auf dem Seitengrund weiß, auf weißen
   Karten in Feld */
input:not([type="checkbox"]):not([type="file"]), select, textarea {
  font: inherit;
  color: var(--tinte);
  background: var(--flaeche);
  border: 0;
  border-bottom: 2px solid var(--rahmen);
  border-radius: 0;
}
:is(.karte, fieldset, .ergebnis, .r-treffer, .pruef-kachel) :is(input:not([type="checkbox"]):not([type="file"]), select, textarea) {
  background-color: var(--eingabe);
}
input:not([type="checkbox"]):not([type="file"]), select {
  min-height: var(--feldhoehe);
  padding: 8px 12px;
  font-variant-numeric: tabular-nums;
}
.feld input, .feld select { width: 100%; }
textarea { display: block; width: 100%; padding: 12px 14px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--grau); opacity: 1; }
:is(input:not([type="checkbox"]):not([type="file"]), select, textarea):hover { background-color: var(--erhaben); }
:is(input, select, textarea):focus-visible { outline-offset: 0; }
.feld input[aria-invalid="true"] { background-color: var(--fehler-bg); border-bottom-color: var(--fehler); }
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--haupt); }
/* Auf dem Handy mindestens 16 px: Sonst vergrößert iOS die Seite beim Antippen eines Feldes */
@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="file"]), select, textarea, .daten-eingabe { font-size: 16px; }
}

/* Tabellen und R-Output: Spalten bleiben mit Tabulatoren untereinander */
.daten-eingabe { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--s-xs); tab-size: 12; }
.daten-eingabe.kurz, #ta-anmerkung, #einfuegen { font-family: inherit; font-size: inherit; }

/* Kästchen mit Text: Der Text darf umbrechen und kursive Symbole enthalten, das Kästchen
   bleibt links davor stehen */
.haken { display: block; position: relative; padding-left: 28px; margin-top: 12px; }
.haken input[type="checkbox"] { position: absolute; left: 0; top: 0.15em; }
.haken select { margin-left: 2px; }
/* Steht ein Auswahlfeld in der Zeile, rückt das Kästchen auf dessen Mitte */
.haken:has(select) input[type="checkbox"] { top: 0.75em; }

.formular-kopf { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.formular-kopf.links { justify-content: flex-start; margin-top: 12px; }

/* Knöpfe als Pillen wie auf der Website: Hauptknopf Espresso (dunkel: Senf), leise Knöpfe mit
   Rand, beim Überfahren Senf. Gesperrte Knöpfe mit gestricheltem Rand */
.knopf, .knopf-leise {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border: 2px solid var(--rahmen);
  border-radius: 99px;
  font: 800 var(--s-xs)/1.1 var(--display);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.knopf { background: var(--haupt); border-color: var(--haupt); color: var(--haupt-tinte); }
.knopf-leise { background: transparent; color: var(--tinte); }
.knopf:hover:not(:disabled), .knopf-leise:hover:not(:disabled) { transform: scale(1.04); }
.knopf-leise:hover:not(:disabled) { background: var(--senf-hell); color: var(--espresso); }
.knopf:active:not(:disabled), .knopf-leise:active:not(:disabled) { transform: scale(0.97); }
/* Gesperrte Knöpfe bleiben lesbar */
.knopf:disabled, .knopf-leise:disabled { background: transparent; border: 2px dashed var(--rahmen); color: var(--grau); cursor: default; }
@media (max-width: 760px) {
  :root { --feldhoehe: 48px; }
  .knopf, .knopf-leise { min-height: 44px; }
}

.kopierzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.kopierzeile .knopf-leise[data-uebernehmen] { margin-left: auto; }
.kopiert { color: var(--ok); font-weight: 600; }

.abstand-oben { margin-top: 12px; }
.abstand-unten { margin-bottom: 12px; }

/* ---------- Ergebnis und Blatt ---------- */

.ergebnis { position: sticky; top: 16px; padding: 20px var(--innen) var(--innen); }
@media (max-width: 900px) { .ergebnis { position: static; } }

/* So steht die Angabe später im Manuskript: Times New Roman, schwarz auf weiß. Der breite Rand
   in Feld hebt das Blatt von der weißen Karte ab. */
.apa-text, .tabelle-vorschau, .abbildung-vorschau {
  background: var(--blatt);
  color: var(--blatt-tinte);
  font-family: var(--manuskript);
  border: 3px solid var(--eingabe);
}
.apa-text {
  font-size: var(--s-s);
  line-height: 1.6;
  padding: 12px 16px;
  min-height: 3em;
  overflow-wrap: anywhere;
}
.apa-text a { color: inherit; }
/* Noch nichts auszugeben: kein Blatt, nur ein Hinweis */
.apa-text.leer {
  background: transparent;
  color: var(--grau);
  border-style: dashed;
  font-family: var(--text);
  font-size: var(--s-xs);
  line-height: 1.5;
}
.apa-text.leer:empty { display: none; }
/* Solange es nichts zu kopieren gibt, stehen dort keine gesperrten Knöpfe */
.apa-text.leer + .kopierzeile, h3:has(+ .apa-text.leer:empty) { display: none; }

.tabelle-vorschau, .abbildung-vorschau { font-size: var(--s-xs); line-height: 1.45; padding: 20px; }
.tabelle-vorschau { overflow-x: auto; }
.tabelle-vorschau table { min-width: 60%; }
/* nur für die Vorschau: Zellen nicht umbrechen, lieber seitlich scrollen */
.tabelle-vorschau td, .tabelle-vorschau th { white-space: nowrap; }
.vorschau-leer { font-family: var(--text); color: var(--braun); margin: 0; }
.abbildung-vorschau p { margin: 0; }
.abb-titel { margin-bottom: 8px !important; }
.abb-bild svg { display: block; width: 100%; height: auto; }
.abb-anmerkung { margin-top: 8px !important; }

.einstellung-zeile { color: var(--grau); margin: 16px 0 0; }
.einstellung-zeile select { min-height: 34px; padding: 4px 8px; margin: 0 2px; }

/* ---------- Meldungen, Marken, Befunde ----------
   Stufen überall gleich: fehler, warnung, hinweis, ok (siehe js/anzeige.js). */

/* Meldung: ein Punkt in der Farbe der Stufe, daneben der Text */
.meldungen { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.meldungen li { position: relative; padding-left: 18px; overflow-wrap: anywhere; }
.meldungen li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grau);
}
.meldungen li.ok::before { background: var(--ok); }
.meldungen li.warnung::before { background: var(--warn); }
.meldungen li.fehler::before { background: var(--fehler); }
.meldungen li.hinweis::before { background: var(--grau); }
.meldungen li strong { display: block; font-weight: 700; }

/* Zähl-Marken: eckige, blasse Fläche, dunkle Schrift im selben Farbton */
.chip {
  display: inline-block;
  font: 600 var(--s-xs)/24px var(--text);
  letter-spacing: 0;
  padding: 0 8px;
  background: var(--hinweis-bg);
  color: var(--tinte);
  white-space: nowrap;
}
.chip.fehler { background: var(--fehler-bg); color: var(--fehler-tinte); }
.chip.warnung { background: var(--warn-bg); color: var(--warn-tinte); }
.chip.ok { background: var(--ok-bg); color: var(--ok-tinte); }
.karten-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.karten-chips:empty { display: none; }

.text-zusammenfassung {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font: 800 var(--s-s)/1.3 var(--display);
  margin: 28px 0 10px;
}
.karte .text-zusammenfassung { margin-top: 0; }
/* Übersicht des Prüfberichts: ein Feld je Bereich, Klick springt zur Karte */
.bericht-uebersicht ul { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.bericht-uebersicht a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 12px 16px 14px;
  color: var(--tinte);
  text-decoration: none;
  background: var(--flaeche);
}
.bericht-uebersicht a:hover { background: var(--senf-hell); color: var(--espresso); }
.bericht-uebersicht a:hover .uebersicht-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.uebersicht-name { font: 800 var(--s-xs)/1.2 var(--display); }
#text-ergebnis .karte { scroll-margin-top: 16px; }
@media (max-width: 600px) {
  .bericht-uebersicht ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .bericht-uebersicht a { padding: 10px 12px 12px; }
}

/* Befund: die Stufe steht als Wort über der Erklärung, nicht als farbiger Rand */
.befunde { list-style: none; padding: 0; margin: 0; }
* + .befunde { margin-top: 14px; }
.befund { padding: 14px 0; border-top: 3px solid var(--grund); }
.befund:first-child { border-top: 0; padding-top: 0; }
.befund:last-child { padding-bottom: 0; }
.befund::before { display: block; font: 800 var(--s-xs)/1.3 var(--display); margin-bottom: 2px; }
.befund.fehler::before { content: "Fehler"; color: var(--fehler); }
.befund.warnung::before { content: "Warnung"; color: var(--warn); }
.befund.hinweis::before { content: "Hinweis"; color: var(--grau); }
.befund.ok::before { content: "In Ordnung"; color: var(--ok); }
.befund-kopf { display: flex; gap: 8px; align-items: baseline; }
.befund-nr { font-weight: 700; text-decoration: none; min-width: 1.2em; color: var(--tinte); }
.befund-vorher { overflow-wrap: anywhere; }
.befund-nachher { font-family: var(--manuskript); font-size: var(--s-s); margin: 4px 0 0; }
.befund .meldungen { margin-top: 8px; }

/* Fundstellen im Text des Nutzers */
.stellen { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; color: var(--grau); }
.stellen li { overflow-wrap: anywhere; }
.befund-umgebung { overflow-wrap: anywhere; }
.stelle-detail { color: var(--grau); }
.stelle-nachher { font-family: var(--manuskript); font-size: var(--s-s); color: var(--tinte); margin-top: 2px; }
mark { color: var(--tinte); padding: 1px 3px; }
.stellen mark, .befund-umgebung mark, mark.befund-warnung { background: var(--warn-bg); }
.befund.fehler .befund-umgebung mark, mark.befund-fehler { background: var(--fehler-bg); }
mark.befund-ok { background: var(--ok-bg); }
mark.befund-hinweis { background: var(--hinweis-bg); }

.mehr-stellen { margin-top: 8px; }
.mehr-stellen summary { cursor: pointer; color: var(--link); font-weight: 600; width: fit-content; }
.gliederung { list-style: none; padding: 0; margin: 8px 0 0; }

/* Rückmeldung nach dem Laden einer Datei */
.import-meldung {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--ok-bg);
  color: var(--ok-tinte);
}
.import-meldung.fehler { background: var(--fehler-bg); color: var(--fehler-tinte); }

/* ---------- Statistik ---------- */

/* Eingabeweg wählen: zwei große Wahlflächen nebeneinander. Die gewählte ist senfgelb und hat
   einen gefüllten Punkt (wie ein Optionsfeld). */
.modus-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--abstand); }
.modus-wahl button {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px 18px 58px;
  text-align: left;
  font: inherit;
  color: var(--tinte);
  background: var(--flaeche);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.modus-wahl button::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid currentColor;
}
.modus-wahl button:hover { background: var(--senf-hell); color: var(--espresso); }
.modus-wahl button[aria-pressed="true"] { background: var(--korn), var(--senf); color: var(--espresso); }
.modus-wahl button[aria-pressed="true"]::before { background: var(--espresso); box-shadow: inset 0 0 0 3px var(--senf); }
.modus-titel { font: 800 var(--s-s)/1.2 var(--display); }
.modus-text { color: var(--grau); }
/* Auf Senf mit Korn hätte Braun nur 4,4:1 */
.modus-wahl button:is(:hover, [aria-pressed="true"]) .modus-text { color: var(--espresso); }
.modus-wahl.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .modus-wahl, .modus-wahl.drei { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Verfahren: Pillen in einer Reihe, das gewählte gefüllt */
.verfahren-wahl {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 12px -6px 12px;
  padding: 6px;
}
.verfahren-wahl button {
  flex: none;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--tinte);
  font: 800 var(--s-xs)/1 var(--display);
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.verfahren-wahl button:hover { background: var(--senf-hell); color: var(--espresso); }
.verfahren-wahl button[aria-selected="true"] { background: var(--haupt); color: var(--haupt-tinte); }

#modus-text { margin-top: 24px; }
.einfuegen-label { display: block; font-weight: 700; margin-bottom: 8px; }

.text-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--abstand) 24px;
  align-items: start;
}
@media (max-width: 900px) { .text-raster { grid-template-columns: minmax(0, 1fr); } }
.text-raster h2 { font-size: var(--s-s); margin: 16px 0 8px; }

.text-markiert {
  padding: 12px 16px;
  background: var(--flaeche);
  border: 3px solid var(--eingabe);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.text-markiert mark { scroll-margin-top: 80px; }
.text-markiert mark sup { font-size: 0.7em; font-weight: 700; margin-left: 2px; }

.r-liste { display: grid; gap: var(--abstand); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.r-treffer { padding: 20px var(--innen) var(--innen); }
.r-treffer h3 { font-size: var(--s-s); margin: 0 0 10px; }
.r-treffer .meldungen { margin-top: 12px; }

/* ---------- Tabellen ---------- */

.spalten-optionen { display: grid; }
/* Reicht die Breite nicht, rutscht das Kästchen in die nächste Zeile */
.spalten-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0;
  border-top: 3px solid var(--grund);
}
.spalten-zeile:first-child { border-top: 0; padding-top: 0; }
.spalten-zeile:last-child { padding-bottom: 0; }
.spalten-name { flex: 1 1 4em; font-weight: 700; overflow-wrap: anywhere; }
.spalten-zeile .haken { margin-top: 0; }
.spalten-zeile > label:not(.haken) { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.spalten-zeile .haken { white-space: nowrap; }
.spalten-zeile select { min-height: 34px; padding: 4px 8px; }

/* ---------- Literatur ---------- */

.lit-eingabe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--abstand); margin-bottom: var(--abstand); }
@media (max-width: 900px) { .lit-eingabe { grid-template-columns: minmax(0, 1fr); } }
.lit-eingabe fieldset { margin: 0; }
/* Hängender Einzug wie im Manuskript: erste Zeile links, Folgezeilen eingerückt */
.lit-liste p { margin: 0 0 10px; padding-left: 2em; text-indent: -2em; }
.lit-liste p:last-child { margin-bottom: 0; }
.lit-roh { font-family: var(--manuskript); font-size: var(--s-s); }
/* Zitierformen: die Zitate in der Schrift des Manuskripts, damit klar ist, was in den Text kommt */
.tabelle-rollen { overflow-x: auto; }
.zitier-tabelle { width: 100%; border-collapse: collapse; }
.zitier-tabelle th { font: 800 var(--s-xs)/1.2 var(--display); color: var(--grau); text-align: left; padding: 0 12px 8px 0; border-bottom: 3px solid var(--grund); }
.zitier-tabelle td { font-family: var(--manuskript); font-size: var(--s-s); padding: 7px 12px 7px 0; border-bottom: 3px solid var(--grund); white-space: nowrap; }
.zitier-tabelle tr:last-child td { border-bottom: 0; }
.zitier-tabelle tr.mehrdeutig td { background: var(--warn-bg); color: var(--warn-tinte); }
.tabelle-rollen + .meldungen { margin-top: 10px; }
/* Der eine Ort, an dem Daten den Rechner verlassen: deutlich, aber ohne Alarm */
.online-hinweis {
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--warn-bg);
  color: var(--warn-tinte);
}

/* ---------- Arbeit prüfen: Checkliste und Drucken ---------- */

.bericht-drucken { margin-left: auto; }
.checkliste { margin-top: 28px; }
.checkliste-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 32px; }
.checkliste-raster h3 { margin-top: 4px; }
.haken-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.haken-liste .haken { margin-top: 6px; }
/* Erledigte Punkte treten zurück */
.haken-liste .haken:has(input:checked) { color: var(--grau); text-decoration: line-through; text-decoration-color: var(--grau); }
@media (max-width: 760px) { .checkliste-raster { grid-template-columns: minmax(0, 1fr); } }

/* Druck: nur der Bericht, hell, ohne Bedienelemente; Befunde nicht über Seitenwechsel zerreißen */
@media print {
  .kopf, .band, #text-form, #kopie-karte, .checkliste, .fuss, .bericht-drucken, .bericht-uebersicht { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main { padding: 0; max-width: none; }
  .karte { border: 0; padding: 0; margin-top: 18pt; }
  .karte h2 { break-after: avoid; }
  .befund { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- Word-Vorlage ----------
   Die Titelseite als Blatt in echten Proportionen: Alle Maße hängen an der Blattbreite (cqw),
   js/vorlage-seite.js setzt Rand, Kopfzeilenabstand und Schriftgröße passend zum Papier. */

.vorschau-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.vorschau-kopf h2 { margin: 0 !important; }
.seiten-vorschau { padding: 22px; background: var(--korn), var(--senf); }
.seite {
  --rand: 12.095cqw;
  --kopf: 5.952cqw;
  --pt: 2.016cqw;
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 210 / 297;
  background: var(--blatt);
  color: var(--blatt-tinte);
  font-family: var(--manuskript);
}
.seite-zahl { position: absolute; top: var(--kopf); right: var(--rand); font-size: var(--pt); line-height: 1; }
/* Doppelter Abstand in Word ist etwa das 2,3-Fache der Schriftgröße */
.seite-innen { position: absolute; inset: var(--rand); overflow: hidden; font-size: var(--pt); line-height: 2.3; text-align: center; overflow-wrap: anywhere; }
.seite-innen p { margin: 0; }
.aufbau { margin: 0; padding-left: 22px; display: grid; gap: 4px; }

/* Die fünf Überschriftenebenen: links die Regel, rechts so, wie es auf dem Blatt aussieht.
   Zwischen den Zeilen steht der Seitengrund als breiter Trenner. */
.ebenen { display: grid; gap: 3px; background: var(--grund); border: 3px solid var(--grund); }
.ebene-zeile { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); }
.ebene-name { padding: 12px 14px; font: 800 var(--s-xs)/1.3 var(--display); background: var(--eingabe); }
.ebene-name span { display: block; font: 400 var(--s-xs)/1.4 var(--text); color: var(--grau); }
.ebene-blatt {
  display: flex;
  align-items: center;
  padding: 12px 22px;
  background: var(--blatt);
  color: var(--blatt-tinte);
  font-family: var(--vorlage-schrift, var(--manuskript));
  font-size: var(--s-s);
  line-height: 1.5;
}
.ebene-blatt p { margin: 0; width: 100%; }
.ebene-blatt .e1 { text-align: center; }
.ebene-blatt .e4 { text-indent: 3em; }
#vo-ebenen-karte .ebenen { margin-bottom: 4px; }
@media (max-width: 600px) {
  .ebene-zeile { grid-template-columns: minmax(0, 1fr); }
  .ebene-name { padding: 8px 12px; }
}

/* ---------- Dateien wählen und ablegen ---------- */

.ablage.ziehen { outline: 3px dashed var(--tinte); outline-offset: -10px; background: var(--erhaben); }
.datei-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.datei-zeile .feld-hilfe { margin: 0; flex: 1 1 240px; }
.datei-knopf:focus-within { outline: 3px solid var(--tinte); outline-offset: 3px; }
/* Für Bildschirmleser und Tastatur erreichbar, aber nicht sichtbar */
.unsichtbar { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
input.unsichtbar { min-height: 0; padding: 0; border: 0; }

/* ---------- Testseite ---------- */

.test-zusammenfassung { font: 800 var(--s-s)/1.3 var(--display); }
.test-zusammenfassung.ok { color: var(--ok); }
.test-zusammenfassung.fehler { color: var(--fehler); }
.test-liste { list-style: none; padding: 0; }
.test-liste li { padding: 5px 0; border-bottom: 3px solid var(--flaeche); }
.test-liste li.fehler { color: var(--fehler); }
.test-liste .gruppe { font-weight: 700; margin-top: 16px; border: 0; }

/* ---------- Poweranalyse ---------- */

.power-titel { font: 800 var(--s-xs)/1.2 var(--display); color: var(--grau); margin: 0; }
.power-wert { font: 800 var(--s-l)/1.05 var(--display); letter-spacing: -0.03em; margin: 8px 0 6px; overflow-wrap: anywhere; }
.power-zusatz { color: var(--grau); margin: 0; }
.power-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 3px solid var(--grund);
}
.power-details dt { color: var(--grau); }
.power-details dd { margin: 0; }
#kurve-karte .abbildung-vorschau { padding: 12px; }
#kurve-karte .abb-bild svg { max-width: 760px; margin: 0 auto; }
