/* Wortleuchte – Gestaltung. Farben in farben.css (wählbar), keine externen Ressourcen. */

:root {
  /* Farben: siehe farben.css */
  --schrift-text: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --schrift-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --breite: 46rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift-ui);
  line-height: 1.5;
}

a { color: var(--akzent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

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

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--hintergrund) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; padding: .5rem 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.marke { font-family: var(--schrift-text); font-weight: 700; font-size: 1.15rem; color: var(--text); white-space: nowrap; }

.stellenfeld { display: flex; flex: 1; min-width: 0; }
.stellenfeld input {
  flex: 1; min-width: 0; font: inherit; padding: .4rem .6rem;
  border: 1px solid var(--linie); border-right: 0; border-radius: .4rem 0 0 .4rem;
  background: var(--flaeche); color: var(--text);
}
.stellenfeld button {
  font: inherit; padding: .4rem .8rem; cursor: pointer;
  border: 1px solid var(--akzent); border-radius: 0 .4rem .4rem 0;
  background: var(--akzent); color: var(--hintergrund);
}
.stellenfeld input:focus { outline: none; border-color: var(--akzent); }
.stellenfeld button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.luecke { flex: 1; }

/* Übersetzungswahl (details/summary) */
.uebersetzungswahl { position: relative; }
.uebersetzungswahl summary {
  list-style: none; cursor: pointer; padding: .4rem .6rem; border-radius: .4rem;
  border: 1px solid var(--linie); background: var(--flaeche); font-size: .9rem; white-space: nowrap;
}
.uebersetzungswahl summary::-webkit-details-marker { display: none; }
.uebersetzungswahl summary::after { content: " ▾"; color: var(--text-leise); }
.uebersetzungswahl ul {
  position: absolute; right: 0; top: calc(100% + .3rem); margin: 0; padding: .3rem 0;
  list-style: none; min-width: 16rem; max-width: calc(100vw - 2rem);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: .5rem;
  box-shadow: 0 6px 24px rgb(0 0 0 / .15);
}
.uebersetzungswahl li > * { display: block; padding: .45rem .9rem; }
.uebersetzungswahl a { color: var(--text); }
.uebersetzungswahl a:hover { background: var(--akzent-flaeche); text-decoration: none; }
.uebersetzungswahl a[aria-current] { font-weight: 600; color: var(--akzent); }

/* ---------- Inhalt ---------- */
.inhalt { max-width: var(--breite); margin: 0 auto; padding: 1rem 1rem 3rem; }

h1 { font-family: var(--schrift-text); font-weight: 600; font-size: 1.8rem; line-height: 1.2; margin: .6rem 0 1rem; }
h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-leise); margin: 2rem 0 .6rem; }

.pfad { font-size: .9rem; color: var(--text-leise); margin-top: .4rem; }

.fehlt { color: var(--fehlt); cursor: default; }
.hinweis { color: var(--text-leise); }

/* Start */
.willkommen { text-align: center; padding: 1.5rem 0 .5rem; }
.willkommen h1 { font-size: 2.4rem; margin-bottom: .2rem; }
.willkommen > p { color: var(--text-leise); margin-top: 0; }
.stellenfeld.gross { max-width: 32rem; margin: 1.2rem auto; }
.stellenfeld.gross input, .stellenfeld.gross button { padding: .7rem .9rem; font-size: 1.05rem; }

/* Bücher und Kapitel */
.raster, .kapitelraster, .liste { list-style: none; padding: 0; margin: 0; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .25rem .75rem; }
.raster li > * { display: block; padding: .3rem 0; }
.kapitelraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr)); gap: .4rem; }
.kapitelraster a {
  display: block; text-align: center; padding: .55rem 0; border-radius: .4rem;
  background: var(--flaeche); border: 1px solid var(--linie); color: var(--text);
}
.kapitelraster a:hover { border-color: var(--akzent); color: var(--akzent); text-decoration: none; }
.liste li { padding: .25rem 0; }

/* Bibeltext */
.bibeltext {
  font-family: var(--schrift-text); font-size: 1.2rem; line-height: 1.75;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
.vers { scroll-margin-top: 5rem; border-radius: .2rem; }
.vers.hervor { background: var(--hervor); box-shadow: 0 0 0 .15rem var(--hervor); }
.vn {
  font-family: var(--schrift-ui); font-size: .62em; font-weight: 600; vertical-align: super;
  line-height: 0; color: var(--text-leise); margin: 0 .2em 0 .1em; user-select: none;
}
.vers:first-child .vn { margin-left: 0; }
.vers:target { background: var(--hervor); }

.blaettern {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center;
  margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--linie); font-size: .95rem;
}
.blaettern [rel="next"] { text-align: right; }
.blaettern .alle { color: var(--text-leise); }

/* Lizenzen */
.lizenz dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: 0; }
.lizenz dt { color: var(--text-leise); }
.lizenz dd { margin: 0; overflow-wrap: anywhere; }
.lizenz h2 { text-transform: none; letter-spacing: 0; font-size: 1.15rem; color: var(--text); }

/* ---------- Fuß ---------- */
.fuss {
  max-width: var(--breite); margin: 0 auto; padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--linie); font-size: .85rem; color: var(--text-leise);
}
.fuss p { margin: .3rem 0; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 34rem) {
  .kopf-innen { flex-wrap: wrap; gap: .5rem; }
  .stellenfeld { order: 3; flex-basis: 100%; }
  .uebersetzungswahl { margin-left: auto; }
  .bibeltext { font-size: 1.1rem; }
  h1 { font-size: 1.55rem; }
  .willkommen h1 { font-size: 2rem; }
  .blaettern { grid-template-columns: 1fr 1fr; }
  .blaettern .alle { display: none; }
}

/* ---------- Vergleichen ---------- */
.vergleich { margin: -.4rem 0 1.2rem; font-size: .9rem; }
.vergleich summary { cursor: pointer; color: var(--akzent); width: max-content; }
.vergleich form {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-top: .6rem;
  padding: .8rem; border: 1px solid var(--linie); border-radius: .5rem; background: var(--flaeche);
}
.vergleich label { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 11rem; min-width: 0; }
.vergleich label span { color: var(--text-leise); font-size: .8rem; }
.vergleich select, .vergleich button {
  font: inherit; padding: .4rem .5rem; border-radius: .4rem; border: 1px solid var(--linie);
  background: var(--hintergrund); color: var(--text); max-width: 100%;
}
.vergleich button { background: var(--akzent); border-color: var(--akzent); color: var(--hintergrund); cursor: pointer; }

/* ---------- Parallelansicht ---------- */
body:has(.parallel) { --breite: 76rem; }
.parallel { font-family: var(--schrift-text); font-size: 1.08rem; line-height: 1.6; }
.parallel .zeile {
  display: grid; grid-template-columns: repeat(var(--spalten, 2), minmax(0, 1fr)); gap: 0 1.5rem;
  padding: .35rem .4rem; border-bottom: 1px solid var(--linie); scroll-margin-top: 5rem;
}
.parallel .kopfzeile {
  position: sticky; top: 3.1rem; z-index: 5; background: var(--hintergrund);
  font-family: var(--schrift-ui); font-size: .9rem; font-weight: 600; border-bottom: 2px solid var(--linie);
}
.parallel .kopfzeile small { display: block; font-weight: 400; }
.parallel .zeile.hervor { background: var(--hervor); border-radius: .3rem; }
.parallel .zelle { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.parallel .vers + .vers::before { content: " "; }

@media (max-width: 48rem) {
  .parallel .kopfzeile { display: none; }
  .parallel .zeile { grid-template-columns: 1fr; gap: .25rem; padding: .6rem .3rem; }
  .parallel .zelle::before {
    content: attr(data-kuerzel); display: block; font-family: var(--schrift-ui);
    font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--text-leise);
  }
}

/* ---------- Suche ---------- */
.suchformular { margin-bottom: 1rem; }
.suchzeile { display: flex; }
.suchzeile input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .6rem .8rem;
  border: 1px solid var(--linie); border-right: 0; border-radius: .4rem 0 0 .4rem;
  background: var(--flaeche); color: var(--text);
}
.suchzeile input:focus { outline: none; border-color: var(--akzent); }
.suchzeile button {
  font: inherit; padding: .6rem 1rem; cursor: pointer; border: 1px solid var(--akzent);
  border-radius: 0 .4rem .4rem 0; background: var(--akzent); color: var(--hintergrund);
}
.suchfilter { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; font-size: .9rem; }
.suchfilter label { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 10rem; min-width: 0; }
.suchfilter label span { color: var(--text-leise); font-size: .8rem; }
.suchfilter select {
  font: inherit; padding: .4rem .5rem; border-radius: .4rem; border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--text); max-width: 100%;
}
.hilfe { font-size: .9rem; margin-bottom: 1.2rem; color: var(--text-leise); }
.hilfe summary { cursor: pointer; color: var(--akzent); width: max-content; }
.hilfe ul { padding-left: 1.2rem; }
.hilfe li { margin: .2rem 0; }
.hilfe b { color: var(--text); font-weight: 600; }

.anzahl { margin: 1rem 0 .4rem; }
.verteilung { font-size: .9rem; margin-bottom: 1rem; }
.verteilung summary { cursor: pointer; color: var(--akzent); width: max-content; }
.verteilung h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-leise); margin: .8rem 0 .3rem; }
.zaehler { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.zaehler li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 1rem; padding: .1rem .6rem; }
.zaehler span { color: var(--text-leise); font-size: .85em; }

.treffer { list-style: none; padding: 0; margin: 0; }
.treffer li { padding: .8rem 0; border-bottom: 1px solid var(--linie); }
.trefferstelle { font-weight: 600; }
.kuerzel { font-size: .75rem; color: var(--text-leise); margin-left: .4rem; letter-spacing: .03em; }
.treffer p { margin: .3rem 0 0; font-family: var(--schrift-text); font-size: 1.08rem; line-height: 1.6; }
mark { background: var(--hervor); color: inherit; border-radius: .15rem; padding: 0 .1rem; }

.seiten { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 1.5rem; }
.seiten a, .seiten span { padding: .3rem .6rem; border-radius: .3rem; }
.seiten a { border: 1px solid var(--linie); background: var(--flaeche); }
.seiten [aria-current] { background: var(--akzent); color: var(--hintergrund); }

/* ---------- Verse auswählen, kopieren, teilen ---------- */
.vn { cursor: pointer; }
.vers.gewaehlt .vt { text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.vers.gewaehlt .vn { color: var(--akzent); }
.tipp { font-size: .85rem; color: var(--text-leise); margin-top: 1.5rem; }

.auswahlleiste {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; justify-content: center;
  width: max-content; max-width: calc(100vw - 2rem); padding: .55rem .7rem .55rem 1rem;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: .7rem;
  box-shadow: 0 8px 28px rgb(0 0 0 / .18); font-size: .92rem;
}
.auswahlleiste[hidden] { display: none; }
.auswahl-stelle { font-weight: 600; }
.auswahl-knoepfe { display: flex; gap: .4rem; }
.auswahlleiste button {
  font: inherit; cursor: pointer; padding: .35rem .7rem; border-radius: .4rem;
  border: 1px solid var(--akzent); background: var(--akzent); color: var(--hintergrund);
}
.auswahlleiste button.schliessen { background: transparent; color: var(--text-leise); border-color: var(--linie); }
body.mit-auswahl .inhalt { padding-bottom: 6rem; }

.meldung {
  position: fixed; left: 50%; bottom: 5.2rem; transform: translateX(-50%) translateY(.5rem); z-index: 21;
  padding: .4rem .9rem; border-radius: 1rem; background: var(--text); color: var(--hintergrund);
  font-size: .85rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.meldung.sichtbar { opacity: 1; transform: translateX(-50%); }

@media (max-width: 34rem) {
  .auswahlleiste { bottom: .6rem; width: calc(100vw - 1.2rem); justify-content: space-between; }
  .auswahl-knoepfe button { padding: .4rem .55rem; }
}
@media (prefers-reduced-motion: reduce) { .meldung { transition: none; } }
.parallel.spalten-2 { --spalten: 2; }
.parallel.spalten-3 { --spalten: 3; }

/* ---------- Pflichtseiten, Barrierefreiheit ---------- */
.platzhalter { background: #fde2e2; color: #8a1c1c; padding: 0 .25rem; border-radius: .2rem; }
.warnung { border-left: 4px solid #c0392b; padding: .5rem .8rem; background: var(--flaeche); }
.fusslinks a { color: var(--text-leise); }
.sprungmarke { position: absolute; left: -999px; top: .5rem; z-index: 30; }
.sprungmarke:focus { left: .5rem; background: var(--flaeche); padding: .4rem .8rem; border-radius: .4rem; }

/* ---------- Druck ---------- */
@media print {
  .kopf, .fuss .fusslinks, .vergleich, .blaettern, .auswahlleiste, .meldung, .tipp, .pfad,
  .suchformular, .hilfe, .verteilung, .seiten, .sprungmarke { display: none !important; }
  body { background: #fff; color: #000; }
  .inhalt, .fuss { max-width: none; padding: 0; }
  .bibeltext, .parallel { font-size: 11pt; }
  .vers.hervor, .zeile.hervor, mark { background: none; font-weight: 600; }
  a { color: inherit; }
}

/* ---------- Darstellung ---------- */
.darstellungslink { display: flex; align-items: center; color: var(--text-leise); padding: .3rem; border-radius: .4rem; }
.darstellungslink:hover { color: var(--akzent); }
.modusknoepfe { display: inline-flex; border: 1px solid var(--linie); border-radius: .5rem; overflow: hidden; }
.modusknoepfe button {
  font: inherit; padding: .5rem 1rem; cursor: pointer; border: 0; background: var(--flaeche); color: var(--text);
}
.modusknoepfe button + button { border-left: 1px solid var(--linie); }
.modusknoepfe button[aria-pressed="true"] { background: var(--akzent); color: var(--hintergrund); }
.farbkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; }
.farbkarte {
  font: inherit; text-align: left; cursor: pointer; padding: .5rem; border-radius: .7rem;
  border: 2px solid var(--linie); background: var(--flaeche); color: var(--text);
  display: flex; flex-direction: column; gap: .2rem;
}
.farbkarte[aria-pressed="true"] { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent); }
.farbprobe {
  display: flex; flex-direction: column; gap: .3rem; padding: .7rem; border-radius: .45rem;
  background: var(--hintergrund); color: var(--text); border: 1px solid var(--linie); margin-bottom: .3rem;
}
.probe-titel { font-family: var(--schrift-text); font-weight: 600; color: var(--akzent); }
.probe-text { font-family: var(--schrift-text); font-size: .95rem; }
.probe-hervor { background: var(--hervor); }
.probe-knopf {
  align-self: flex-start; font-size: .8rem; padding: .15rem .55rem; border-radius: .3rem;
  background: var(--akzent); color: var(--hintergrund);
}
.farbname { font-weight: 600; }
.farbbeschreibung { font-size: .85rem; color: var(--text-leise); }

/* Übersetzungswahl zeigt den vollen Namen (bei Platzmangel mit „…“ gekürzt) */
.uebersetzungswahl { min-width: 0; flex: 0 1 auto; }
.uebersetzungswahl summary { display: flex; align-items: center; max-width: 22rem; }
.uebersetzungswahl summary .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.uebersetzungswahl summary::after { flex: none; content: "▾"; margin-left: .35rem; }
@media (min-width: 34.01rem) {
  .kopf-innen { max-width: max(var(--breite), 66rem); }
}
.kopf-innen .stellenfeld { min-width: 13rem; }
/* Kopf zweizeilig, sobald der Platz für Suchfeld und Namen nicht reicht */
@media (max-width: 52rem) {
  .kopf-innen { flex-wrap: wrap; gap: .5rem; }
  .kopf-innen .stellenfeld { order: 3; flex-basis: 100%; min-width: 0; }
  .kopf-innen .luecke { display: none; }
  /* Auswahl füllt den Platz rechts neben dem Titel und kürzt lange Namen */
  .uebersetzungswahl { flex: 1 1 0; min-width: 0; display: flex; justify-content: flex-end; }
  .uebersetzungswahl summary { max-width: 100%; }
}

/* Leitvers auf der Startseite (Ps 119,105) */
.leitvers { margin: 1.4rem auto .4rem; max-width: var(--breite); }
.leitvers blockquote { margin: 0; text-wrap: balance; font-family: var(--schrift-text); font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.leitvers figcaption { margin-top: .3rem; font-size: .85rem; color: var(--text-leise); }

/* ---------- Zusammenfassung und Gliederung ---------- */
.untertitel { font-size: .55em; font-weight: 400; color: var(--text-leise); }
.reiter { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--linie); margin-bottom: 1rem; }
.reiter a, .reiter span { padding: .45rem .8rem; border-radius: .4rem .4rem 0 0; font-size: .95rem; }
.reiter [aria-current] { background: var(--flaeche); border: 1px solid var(--linie); border-bottom-color: var(--flaeche);
  margin-bottom: -1px; font-weight: 600; color: var(--akzent); }
.quellhinweis { font-size: .85rem; color: var(--text-leise); }
.quellhinweis.entwurf { border-left: 3px solid var(--akzent); padding: .4rem .7rem; background: var(--flaeche); }
.quellhinweis.entwurf b { color: var(--text); }
.saetze { padding-left: 1.3rem; font-family: var(--schrift-text); font-size: 1.08rem; line-height: 1.6; }
.saetze li { margin: .45rem 0; }
.saetze.abschnitte li { margin: .8rem 0; }
.stellenlink { font-family: var(--schrift-ui); font-size: .8rem; white-space: nowrap; margin-left: .25rem; }
.kennung-entwurf {
  font-family: var(--schrift-ui); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-leise); border: 1px solid var(--linie); border-radius: .3rem; padding: 0 .3rem; margin-left: .3rem;
  vertical-align: .1em;
}
.kapitelkopf { margin-top: 1.4rem; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); scroll-margin-top: 5rem; }
.gl-titel.klein { display: block; font-family: var(--schrift-ui); font-size: .78rem; color: var(--text-leise); }
.gliederung { list-style: none; padding: 0; }
.gliederung li { margin: .25rem 0; }
.gliederung .ebene-1 { margin-top: 1.2rem; font-weight: 700; font-size: 1.05rem; }
.gliederung .ebene-2 { padding-left: 1rem; font-weight: 600; margin-top: .6rem; }
.gliederung .ebene-3 { padding-left: 2rem; }
.gliederung .ebene-4, .gliederung .ebene-5 { padding-left: 3rem; font-size: .93rem; }
.buchlinks { margin: -.4rem 0 1rem; font-size: .95rem; }
.inkuerze .saetze, .wz-feld .saetze { font-size: 1rem; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: .5rem; padding: .5rem 1rem .5rem 2rem; }
.klein { font-size: .8rem; }

/* ---------- Prüfseite (nur Entwicklung) ---------- */
body:has(.pruefsatz) { --breite: 76rem; }
.pruefsatz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem;
  border: 1px solid var(--linie); border-radius: .6rem; padding: .8rem; margin: .8rem 0; background: var(--flaeche);
  scroll-margin-top: 5rem; }
.pruefsatz.geprueft { border-left: 4px solid var(--akzent); }
.pruefsatz.entwurf { border-left: 4px solid #c9a227; }
.pruefkopf { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .3rem; }
.status-geprueft { color: var(--akzent); font-weight: 600; }
.status-entwurf { color: var(--text-leise); }
.pruefsatz textarea { width: 100%; font-family: var(--schrift-text); font-size: 1rem; line-height: 1.5; padding: .5rem;
  border: 1px solid var(--linie); border-radius: .4rem; background: var(--hintergrund); color: var(--text); resize: vertical; }
.pruefknoepfe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .4rem; font-size: .85rem; }
.pruefknoepfe button { font: inherit; padding: .35rem .7rem; border-radius: .4rem; cursor: pointer;
  border: 1px solid var(--akzent); background: var(--akzent); color: var(--hintergrund); }
.pruefknoepfe button.zweitrangig { background: transparent; color: var(--akzent); }
.pruefbibel { font-family: var(--schrift-text); font-size: .95rem; line-height: 1.55; max-height: 28rem; overflow: auto; }
.pruefbibel summary { font-family: var(--schrift-ui); font-size: .8rem; color: var(--text-leise); cursor: pointer; }
.pruefbibel sup { font-family: var(--schrift-ui); font-size: .65rem; color: var(--text-leise); }
@media (max-width: 52rem) { .pruefsatz { grid-template-columns: 1fr; } }
.meldung-pruef { font-size: .85rem; margin-top: .45rem; padding: .4rem .6rem; border-radius: .4rem;
  border-left: 4px solid #c9a227; background: var(--hintergrund); }
.meldung-pruef.problem { border-left-color: #c0392b; }
.meldung-pruef small { color: var(--text-leise); }
.meldung-pruef .vorschlag { margin-top: .3rem; font-style: italic; }
.meldung-pruef button { font: inherit; font-style: normal; font-size: .8rem; margin-left: .4rem; padding: .15rem .5rem;
  border-radius: .3rem; border: 1px solid var(--akzent); background: transparent; color: var(--akzent); cursor: pointer; }
.prueffilter { font-size: .9rem; }

/* Bearbeiter: Anmeldung, Übersicht, Hochladen */
.formular { display: grid; gap: .4rem; max-width: 34rem; }
.formular input:not([type=file]), .formular textarea { font: inherit; padding: .45rem .55rem; border: 1px solid var(--linie, #ccc);
  border-radius: .4rem; background: var(--flaeche); color: inherit; }
.formular textarea { font-family: ui-monospace, monospace; font-size: .85rem; }
.formular button { justify-self: start; margin-top: .4rem; font: inherit; padding: .4rem .9rem; border-radius: .4rem; cursor: pointer; }
.erfolg { border-left: 4px solid var(--akzent); padding: .5rem .8rem; background: var(--flaeche); }
.prueftabelle { border-collapse: collapse; width: 100%; font-size: .9rem; }
.prueftabelle th, .prueftabelle td { text-align: left; padding: .3rem .5rem; border-bottom: 1px solid var(--linie, #ddd); }
.prueftabelle tr.leer { color: var(--text-leise); }
.verlauf { font-size: .9rem; }
.vorschau-aenderung { border-left: 4px solid #c9a227; padding: .4rem .8rem; margin: .6rem 0; background: var(--flaeche); }
.vorschau-aenderung p { margin: .3rem 0; }
.vorschau-aenderung del { color: var(--text-leise); }
.vorschau-aenderung ins { text-decoration: none; }
.bearbeiterleiste { font-size: .85rem; color: var(--text-leise); }
.textknopf { font: inherit; background: none; border: 0; padding: 0; color: var(--akzent); cursor: pointer; text-decoration: underline; }
@media (max-width: 40rem) { .prueftabelle th:nth-child(n+2):nth-child(-n+4), .prueftabelle td:nth-child(n+2):nth-child(-n+4) { display: none; } }

/* Wortart-Auswahl in der Suche (Ehe/ehe) */
.wortartwahl { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: .5rem 0; }
.wortartwahl a, .wortartwahl span { border: 1px solid var(--linie); border-radius: 1rem; padding: .1rem .6rem; }
.wortartwahl span[aria-current] { background: var(--flaeche); font-weight: 600; }

/* ---------- Hauptnavigation (zweite Kopfzeile) ---------- */
.hauptnav {
  max-width: max(var(--breite), 66rem); margin: 0 auto; padding: 0 1rem .35rem;
  display: flex; gap: 1.4rem; font-size: .95rem; overflow-x: auto; scrollbar-width: none;
}
.hauptnav a { color: var(--text-leise); white-space: nowrap; padding: .15rem 0; border-bottom: 2px solid transparent; }
.hauptnav a:hover, .hauptnav a:focus-visible { color: var(--text); text-decoration: none; }
.hauptnav a[aria-current] { color: var(--text); border-bottom-color: var(--akzent); font-weight: 600; }
@media (max-width: 34rem) {
  .hauptnav { justify-content: space-between; gap: .5rem; }
}

/* ---------- Kacheln auf der Startseite ---------- */
.kacheln {
  list-style: none; padding: 0; margin: 1.2rem 0 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem;
}
.kachel {
  display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: .6rem;
}
.kacheltitel { font-family: var(--schrift-text); font-weight: 700; font-size: 1.2rem; color: var(--text); }
.kacheltext { color: var(--text-leise); font-size: .9rem; flex: 1; }
.kachel .beispiel { font-size: .9rem; }
@media (max-width: 48rem) {
  .kacheln { grid-template-columns: 1fr 1fr; }
}

/* Seite „Vergleichen“ */
.vergleichformular { display: grid; gap: .6rem; max-width: 26rem; }
.vergleichformular label { display: grid; gap: .15rem; }
.vergleichformular label span { font-size: .85rem; color: var(--text-leise); }
.vergleichformular input, .vergleichformular select, .vergleichformular button {
  font: inherit; padding: .45rem .6rem; border: 1px solid var(--linie); border-radius: .4rem;
  background: var(--flaeche); color: var(--text);
}
.vergleichformular button { background: var(--akzent); border-color: var(--akzent); color: var(--hintergrund); cursor: pointer; }
.fehlermeldung { color: var(--fehler, #b3261e); }

/* ---------- Kapitel: Kopfzeile mit Blättern, Werkzeugleiste ---------- */
.kapitelkopfzeile { display: flex; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; }
.kapitelkopfzeile h1 { margin-right: auto; }
.blaettern-oben { display: flex; gap: 1rem; font-size: .9rem; }
.werkzeuge { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.4rem 0 1.2rem; font-size: .9rem; }
.werkzeug > summary {
  list-style: none; cursor: pointer; color: var(--akzent);
  border: 1px solid var(--linie); border-radius: 1rem; padding: .2rem .8rem; background: var(--flaeche);
}
.werkzeug > summary::-webkit-details-marker { display: none; }
.werkzeug > summary::after { content: " ▾"; font-size: .8em; }
.werkzeug[open] > summary { border-color: var(--akzent); }
.werkzeug[open] > summary::after { content: " ▴"; }
/* Ohne JavaScript klappt das Feld im Knopf auf; mit JavaScript wandert es unter die Knopfreihe
   (.wz-ablage), damit die Knöpfe an ihrem Platz bleiben */
.werkzeug[open]:not(:has(> .wz-feld)) { flex-basis: auto; }
.werkzeug[open]:has(> .wz-feld) { flex-basis: 100%; }
.wz-ablage { flex-basis: 100%; }
.wz-ablage:empty { display: none; }
.wz-feld { margin-top: .1rem; }
.wz-feld > p { margin: .3rem 0; }
.wz-liste { list-style: none; padding: 0; margin: .3rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.wz-liste a { display: block; border: 1px solid var(--linie); border-radius: .4rem; padding: .25rem .6rem; background: var(--flaeche); }

/* Buchseite: erster Satz des Überblicks */
.buchkurz { background: var(--flaeche); border: 1px solid var(--linie); border-radius: .5rem;
  padding: .3rem 1rem; margin: -.4rem 0 1.2rem; }
.buchkurz p { margin: .5rem 0; }
@media print { .werkzeuge, .blaettern-oben { display: none; } }

/* „In Kürze“ im Kapitel: ausführlicher nach Abschnitten */
.ausfuehrlicher { margin: .5rem 0 0; }
.ausfuehrlicher > summary { cursor: pointer; color: var(--akzent); width: max-content; }
.wz-feld .abschnittsaetze { margin-top: .4rem; background: none; border: 0; padding: 0 0 0 1.2rem; }
.abschnittsaetze li { margin: .35rem 0; }
.abschnittstitel { display: block; font-family: var(--schrift-ui); font-size: .8rem; font-weight: 600; color: var(--text-leise); }

/* Mehrere Stellen nacheinander (/stellen) */
.stellenliste-titel { margin-bottom: .1rem; }
.stellenabschnitt { margin: 1.4rem 0; }
.stellenabschnitt h2 { font-size: 1.1rem; margin: 0 0 .3rem; }

/* Prüfseite: Grund der Änderung */
.grundfeld { margin: .4rem 0; font-size: .9rem; }
.grundfeld summary { cursor: pointer; color: var(--akzent); }
.grundzeile { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.grundzeile label { display: grid; gap: .1rem; flex: 1 1 10rem; }
.grundzeile label.breit { flex: 3 1 20rem; }
.grundzeile span { font-size: .8rem; color: var(--text-leise); }
.grundzeile select, .grundzeile input { font: inherit; padding: .3rem .5rem; border: 1px solid var(--linie);
  border-radius: .4rem; background: var(--flaeche); color: var(--text); }
.grundanzeige { font-size: .85rem; color: var(--text-leise); margin: .2rem 0 0; }
