/* LiveDok Assist – Website-Stile. Keine externen Schriften, keine Skripte von Dritten.
   Farben nur als Token; helles und dunkles Farbschema; Kontraste siehe Prüfskript. */

:root {
  --bg: #ffffff;
  --bg-soft: #f1f5f8;
  --card: #ffffff;
  --ink: #15263a;
  --muted: #475a6d;
  --accent: #0a5f7c;
  --accent-ink: #083f54;
  --line: #c9d6e0;
  --hero-bg: #0b1f33;
  --hero-bg2: #163a58;
  --hero-fg: #ffffff;
  --hero-muted: #c9d8e4;
  --hero-accent: #86d9ec;
  --btn-primary-bg: #86d9ec;
  --btn-primary-fg: #062034;
  --warn-bg: #fff3da;
  --warn-fg: #6b4300;
  --warn-line: #c98312;
  --ok-bg: #e2f5eb;
  --ok-fg: #0c5a3e;
  --ok-line: #2a9d74;
  --info-bg: #e7f3f8;
  --paper: #ffffff;
  --paper-ink: #1b2a3a;
  --paper-muted: #5a6b7c;
  --word-frame: #e3e9ef;
  --word-bar: #f7f9fb;
  --word-line: #d3dde5;
  --focus: #15263a;
  --focus-halo: #ffffff;
  --platzhalter-bg: #fff3da;
  --platzhalter-fg: #6b4300;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a25;
    --bg-soft: #16242f;
    --card: #182939;
    --ink: #e9eff4;
    --muted: #b9c7d3;
    --accent: #8bd4e7;
    --accent-ink: #bde8f3;
    --line: #2f4557;
    --warn-bg: #3b2a09;
    --warn-fg: #ffd98a;
    --warn-line: #d9a03a;
    --ok-bg: #0f3528;
    --ok-fg: #a9e7cb;
    --ok-line: #3fb98a;
    --info-bg: #142c3a;
    --focus: #ffffff;
    --focus-halo: #0f1a25;
    --platzhalter-bg: #3b2a09;
    --platzhalter-fg: #ffd98a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word; /* lange Wörter brechen, statt bei Textzoom über den Rand zu laufen */
}

h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p, li { max-width: 68ch; }
a { color: var(--accent-ink); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
strong { font-weight: 700; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .95em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--focus-halo);
  border-radius: 4px;
}

.visuell-versteckt {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.sprunglink {
  position: absolute; left: 16px; top: 12px;
  /* Ausgeblendet um die eigene Höhe plus Fokusring nach oben, also unabhängig von Schriftgröße und Zeilenzahl. */
  transform: translateY(calc(-100% - 24px));
  z-index: 100;
  padding: 10px 16px;
  background: var(--bg); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 8px;
  font-weight: 700; text-decoration: none;
  /* Liegt eingeblendet über dem dunklen Kopf: Fokusfarben des Kopfes, sonst ist der Umriss im hellen Schema unsichtbar. */
  --focus: #ffffff; --focus-halo: #0b1f33;
}
.sprunglink:focus-visible { transform: none; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* Kopf und Navigation */
.dunkel {
  background: radial-gradient(circle at 85% 15%, var(--hero-bg2) 0, transparent 45%), var(--hero-bg);
  color: var(--hero-fg);
  --focus: #ffffff;
  --focus-halo: #0b1f33;
  --accent-ink: #cfe9f3;
}
.kopf { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.leiste { min-height: 76px; padding-block: 8px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* padding-block 8px: Auf den Unterseiten rutscht "Zur Startseite" bei 320/360 px unter die Marke; so bleibt der
   Fokusring (6 px) innerhalb des dunklen Kopfes. Auf der Startseite greift weiter die Mindesthöhe 76 px. */
.marke {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--hero-fg);
  min-height: 44px;
}
.marke-zeichen {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--hero-accent); color: var(--btn-primary-fg); font-weight: 900; font-size: 1.1rem;
}
.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.hauptnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px;
  color: var(--hero-muted); text-decoration: none; font-size: .97rem; border-radius: 6px;
}
.hauptnav a:hover { color: var(--hero-fg); text-decoration: underline; }
.menue-knopf {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--hero-fg);
  border: 2px solid var(--hero-muted); border-radius: 8px; font-weight: 600;
}
@media (max-width: 820px) {
  .leiste { flex-wrap: wrap; } /* bei Textzoom rutscht der Menü-Knopf unter die Marke statt über den Rand */
  .menue-knopf { display: inline-flex; }
  .hauptnav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    background: var(--hero-bg); border-bottom: 1px solid rgba(255, 255, 255, .18); padding: 12px 20px 18px; }
  .hauptnav.offen { display: block; }
  .hauptnav ul { flex-direction: column; gap: 2px; }
  .hauptnav a { width: 100%; padding: 10px 12px; }
}
/* Unterseiten: nur ein Link "Zur Startseite", immer sichtbar, kein aufklappendes Menü. */
.hauptnav.hauptnav-unterseite { display: block; position: static; padding: 0; border: 0; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px;
  border: 2px solid transparent; border-radius: 9px;
  font-weight: 700; text-decoration: none; text-align: center;
  transition: background .15s, color .15s;
}
.knopf-primaer { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg); }
.knopf-primaer:hover { background: #a5e4f2; border-color: #a5e4f2; }
.knopf-hell { background: transparent; color: var(--hero-fg); border-color: var(--hero-muted); }
.knopf-hell:hover { background: rgba(255, 255, 255, .1); }
.knopf-umriss { background: var(--card); color: var(--accent-ink); border-color: var(--accent); }
.knopf-umriss:hover { background: var(--info-bg); }
.knopf-klein { min-height: 40px; padding: 7px 14px; font-size: .95rem; }

/* Bühne */
.buehne { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); text-align: center; }
.augenbraue {
  display: inline-block; margin-bottom: 14px;
  font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hero-accent);
}
.buehne h1 { max-width: 20ch; margin-inline: auto; }
.buehne .vorspann { max-width: 62ch; margin: 0 auto 30px; font-size: 1.18rem; color: var(--hero-muted); }
.aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 34px; }
.fakten { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--hero-muted); font-size: .98rem; }
.fakten li { display: flex; align-items: center; gap: 8px; max-width: none; text-align: left; }
.fakten li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hero-accent); flex: none; }
.buehne .zielgruppe { max-width: 80ch; margin: 36px auto 0; font-size: 1.05rem; color: var(--hero-fg); }

/* Abschnitte */
.abschnitt { padding-block: clamp(56px, 7vw, 96px); }
.abschnitt-weich { background: var(--bg-soft); }
.einleitung { max-width: 68ch; margin-bottom: clamp(24px, 3vw, 40px); }
.einleitung .augenbraue { color: var(--accent); }
.gedaempft { color: var(--muted); }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.karte {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.karte h3 { margin: 0; }
.karte p { margin: 0; color: var(--muted); }
.karte-nummer {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--info-bg); color: var(--accent-ink); font-weight: 800; margin-bottom: 6px;
}

.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 48px; align-items: start; }
.liste-klar { padding-left: 1.2em; }
.karte .liste-klar { margin: 0; }
.liste-klar li { margin-bottom: .45em; }
.liste-haken { list-style: none; padding: 0; margin: 0; }
.liste-haken li { position: relative; padding-left: 1.7em; margin-bottom: .6em; }
.liste-haken li::before { content: "–"; position: absolute; left: .3em; top: 0; font-weight: 800; color: var(--accent); }

.hinweiskasten {
  border-left: 4px solid var(--accent); background: var(--info-bg);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin-top: 20px;
}
.hinweiskasten p { margin: 0; }

table.schlicht { border-collapse: collapse; width: 100%; max-width: 68ch; margin-top: 10px; }
table.schlicht th, table.schlicht td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.schlicht th { font-weight: 700; }
.tabelle-scroll { overflow-x: auto; }
table.schlicht .zahl { text-align: right; font-variant-numeric: tabular-nums; }
table.schlicht th .nebenzeile { font-weight: 400; font-size: .9rem; color: var(--muted); }
@media (max-width: 440px) {
  /* Preistabelle mit vier Spalten soll bei 320 px ohne Scrollen passen. */
  table.schlicht th, table.schlicht td { padding: 8px 5px; font-size: .9rem; }
  table.schlicht th .nebenzeile { font-size: .85rem; }
}

/* Nachgestellter Prüfbereich */
.word {
  background: var(--word-frame); border: 1px solid var(--word-line); border-radius: 14px; overflow: hidden;
  color: var(--paper-ink); box-shadow: 0 20px 50px rgba(5, 20, 40, .18);
  margin-top: 10px;
}
.word-leiste { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--word-bar); border-bottom: 1px solid var(--word-line); font-size: .9rem; color: var(--paper-muted); }
.word-band { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 16px; background: var(--paper); border-bottom: 1px solid var(--word-line); font-size: .85rem; color: var(--paper-muted); }
.word-band strong { color: #114a7f; }
.word-flaeche { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; padding: 16px; }
@media (max-width: 880px) { .word-flaeche { grid-template-columns: minmax(0, 1fr); } }

.papier { margin: 0; background: var(--paper); color: var(--paper-ink); border-radius: 4px; padding: 30px clamp(14px, 5vw, 36px); min-height: 360px; box-shadow: 0 2px 8px rgba(22, 51, 74, .12);
  /* Das Papier bleibt auch im dunklen Schema weiß: Fokusfarben des hellen Schemas, sonst weißer Umriss auf Weiß. */
  --focus: #15263a; --focus-halo: #ffffff; }
.papier h3 { color: var(--paper-ink); font-size: 1.5rem; margin-bottom: 10px; }
.papier p { color: var(--paper-muted); font-size: .96rem; }
.zeile { height: 9px; border-radius: 5px; background: #e4e9ef; margin: 12px 0; }
.zeile.kurz { width: 62%; }
.zeile.mittel { width: 84%; }
.scheinueberschrift {
  font-weight: 800; font-size: 1.25rem; color: var(--paper-ink);
  margin: 22px 0 10px; padding: 6px 8px; border-radius: 6px; max-width: none;
  border: 2px dashed transparent;
}
.scheinueberschrift.markiert { border-color: var(--warn-line); background: #fff8ea; }
.scheinueberschrift.echt { border: 2px solid var(--ok-line); background: #f0fbf6; }
.stil-schild { display: none; margin-left: 10px; font-size: .78rem; font-weight: 600; color: var(--ok-fg); background: var(--ok-bg); border-radius: 20px; padding: 2px 10px; vertical-align: middle; }
.scheinueberschrift.echt .stil-schild { display: inline-block; }

.pruefbereich { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pruefbereich-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.pruefbereich-kopf strong { font-size: 1.05rem; }
.pruefbereich-kopf span { font-size: .85rem; color: var(--muted); }
.zusammenfassung { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--bg-soft); font-size: .95rem; }
.befunde { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.befund { border: 1px solid var(--line); border-left: 4px solid var(--warn-line); border-radius: 6px; padding: 12px; background: var(--card); }
.befund.erledigt { border-left-color: var(--ok-line); }
.befund p { margin: 6px 0; font-size: .95rem; }
.befund .frage { color: var(--muted); font-style: italic; }
.stufe { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 20px; padding: 3px 10px; margin-bottom: 6px; }
.stufe.warn { background: var(--warn-bg); color: var(--warn-fg); }
.stufe.ok { background: var(--ok-bg); color: var(--ok-fg); }
.befund details { margin-top: 8px; }
.befund summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.befund details ol, .befund details ul { padding-left: 1.2em; margin: 4px 0; font-size: .93rem; }
.befund details p { font-size: .93rem; }
.befund-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.leer { color: var(--muted); font-size: .95rem; margin: 0; }
.pruefbereich > details { border-top: 1px solid var(--line); padding-top: 8px; }
.pruefbereich > details .befunde { margin-top: 10px; }
.pruefbereich > details summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.demo-steuerung { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.demo-steuerung p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Flex-Kinder mit einem einzelnen langen Wort (etwa "Barrierefreiheitserklärung") dürfen bei Textzoom
   200 % auf 320 px im Wort brechen, statt den Rahmen zu sprengen. Bei normaler Schrift ändert sich nichts. */
.fuss ul a, .pruefbereich-kopf > *, .word-leiste > *, .word-band > * { overflow-wrap: anywhere; }

/* Kontakt und Fuß */
.kontakt { text-align: center; padding-block: clamp(56px, 7vw, 96px); }
.kontakt p { margin-inline: auto; color: var(--hero-muted); }
.kontakt .adresse { margin-top: 18px; font-size: 1.05rem; color: var(--hero-fg); }
.kontakt .aktionen { margin-top: 26px; margin-bottom: 0; }
.fuss { background: #06111e; color: #c3d3df; padding-block: 28px; font-size: .92rem; --focus: #ffffff; --focus-halo: #06111e; }
.fuss a { color: #e6f0f6; }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fuss ul a { display: inline-flex; align-items: center; min-height: 32px; }
/* Schritt 10 (27.10.2026): GOITS-Logo im Fuß. Quelle goits-logo.png ist 160 x 149 px; 72 px Bildhöhe plus
   8 px weiße Fläche bleibt auch auf 2x-Bildschirmen scharf (144 Gerätepixel aus 149). Die weiße Fläche
   trägt das blaue Logo auf dem dunklen Fuß, wie im Symbol des Lizenzwerkzeugs. */
.fuss-marke { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.fuss-logo { height: 88px; width: auto; padding: 8px; background: #ffffff; border-radius: 10px; }
.fuss p { margin: 12px 0 0; max-width: none; }

/* Unterseiten (Impressum, Datenschutz, Barrierefreiheitserklärung) */
.unterseite { padding-block: clamp(40px, 5vw, 72px); }
.unterseite h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.unterseite h2 { font-size: 1.35rem; margin-top: 2em; }
.unterseite h3 { font-size: 1.1rem; margin-top: 1.5em; }
.stand { color: var(--muted); }
/* Schritt 13 (27.10.2026): Widerspruchsrecht in der Datenschutzerklärung der Kanzlei. Abgesetzter Kasten, Text in
   Versalien wie geliefert (Art. 21 Abs. 4 DSGVO: getrennt und deutlich). Im Quelltext steht der Text in normaler
   Schreibung, Screenreader lesen ihn so; die Versalien kommen allein aus text-transform. Zum Abschalten die Zeile
   mit text-transform entfernen, der Kasten bleibt. */
.widerspruch { border-left: 4px solid var(--accent); background: var(--info-bg); padding: 16px 20px; border-radius: 8px; margin: 1.2em 0; }
.widerspruch h3 { margin-top: 0; }
.widerspruch p { text-transform: uppercase; }
.widerspruch p:last-child { margin-bottom: 0; }
.platzhalter { background: var(--platzhalter-bg); color: var(--platzhalter-fg); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.entwurf {
  border: 2px dashed var(--warn-line); background: var(--warn-bg); color: var(--warn-fg);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 28px; max-width: 68ch;
}
.entwurf p { margin: 0; }
