/* Evidenznews — eine Datei, kein Framework. Motiv: Messpunkt mit Fehlerbalken. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-ext-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }

:root {
  --papier: #f6f3ec;
  --flaeche: #ece7dc;
  --tinte: #17181b;
  --grau: #585b61;
  --linie: #cfc8b9;
  --punkt: #b8301c;
  --link: #8f2415;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --breite: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-schema="hell"]) {
    --papier: #121416; --flaeche: #1b1e22; --tinte: #ebe8e1; --grau: #a4a7ad; --linie: #363a40; --punkt: #ff7350; --link: #ff9478;
    color-scheme: dark;
  }
}
:root[data-schema="dunkel"] {
  --papier: #121416; --flaeche: #1b1e22; --tinte: #ebe8e1; --grau: #a4a7ad; --linie: #363a40; --punkt: #ff7350; --link: #ff9478;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.55;
  font-optical-sizing: auto; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--punkt); outline-offset: 3px; border-radius: 1px; }
h1, h2, h3 { line-height: 1.12; font-weight: 600; text-wrap: balance; margin: 0; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.rahmen { max-width: var(--breite); margin-inline: auto; padding-inline: 1rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: -999rem; top: 0; background: var(--tinte); color: var(--papier); padding: 0.5rem 1rem; z-index: 10; }
.sprung:focus { left: 0; }
.still { color: var(--grau); }
.vorschau-hinweis { margin: 0; padding: 0.4rem 1rem; background: var(--punkt); color: #fff; font: 500 0.8rem/1.4 var(--mono); text-align: center; }

/* Mono-Beschriftungen: wie die Achsenbeschriftung eines Messgeräts */
.meta, .knopf, .rubriken a, .abschnitt, .karte-evidenz span, .fuss nav, .fuss-klein, .q-typ, .marke,
.fehlerbalken dt, .fb-frage, .fb-fuss, .kernpunkte h2, th, .sprungliste, .nachweis, label {
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.5; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 400;
}
.meta { color: var(--grau); margin: 0 0 0.55rem; }
.meta a { color: inherit; }
.marke { border: 1px solid var(--punkt); color: var(--punkt); padding: 0 0.4em; margin-left: 0.4em; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--tinte); }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem 0.8rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--tinte); text-decoration: none; font-size: 1.75rem; font-weight: 650; letter-spacing: -0.025em; line-height: 1; }
.logo i { font-weight: 350; }
.logo svg { flex: none; stroke: var(--tinte); stroke-width: 2.5; fill: none; }
.logo svg circle { fill: var(--punkt); stroke: none; }
.kopf-werkzeug { display: flex; gap: 0.4rem; }
.knopf { background: none; border: 1px solid var(--linie); color: var(--tinte); padding: 0.45rem 0.7rem; cursor: pointer; text-decoration: none; border-radius: 0; min-height: 2.25rem; display: inline-flex; align-items: center; }
.knopf:hover { border-color: var(--tinte); }
.knopf-voll { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.rubriken { border-top: 1px solid var(--linie); }
.rubriken ul { list-style: none; display: flex; gap: 0 1.4rem; margin-block: 0; overflow-x: auto; padding-block: 0; scrollbar-width: thin; }
.rubriken a { display: block; padding: 0.7rem 0; color: var(--grau); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
@media (min-width: 62rem) { .rubriken ul { justify-content: space-between; gap: 0 0.7rem; } .rubriken a { letter-spacing: 0.02em; } }
.rubriken a:hover, .rubriken a[aria-current] { color: var(--tinte); border-bottom-color: var(--punkt); }

/* Fehlerbalken-Glyphe */
.balken { width: 6rem; height: 1rem; flex: none; overflow: visible; }
.balken-achse { stroke: var(--linie); stroke-width: 1; stroke-dasharray: 1 3; }
.balken-strich { stroke: var(--tinte); stroke-width: 1.6; stroke-linecap: square; }
.balken-punkt { fill: var(--punkt); }
.balken-gross { width: 100%; height: 2.2rem; }

/* Startseite */
main { padding-block: 2rem 4rem; }
.aufmacher { padding-bottom: 2rem; border-bottom: 1px solid var(--linie); max-width: 54rem; }
.aufmacher-titel { font-size: clamp(2.1rem, 6.2vw, 3.9rem); font-weight: 620; letter-spacing: -0.028em; line-height: 1.03; margin-bottom: 1rem; }
.aufmacher-titel a, .karte-titel a { color: inherit; text-decoration: none; }
.aufmacher-titel a:hover, .karte-titel a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--punkt); }
.aufmacher-teaser { font-size: 1.3rem; line-height: 1.42; max-width: 42rem; }
.abschnitt { margin: 2.8rem 0 1.3rem; padding-top: 0.6rem; border-top: 1px solid var(--tinte); color: var(--tinte); font-weight: 500; position: relative; }
.abschnitt::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--punkt); }
.raster { display: grid; gap: 2rem 2.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.karte-titel { font-size: 1.45rem; margin-bottom: 0.5rem; }
.karte-teaser { font-size: 1.05rem; line-height: 1.45; margin-bottom: 0.7rem; }
.karte-evidenz { display: flex; align-items: center; gap: 0.7rem; margin: 0; color: var(--grau); }
.mehr { margin-top: 1.8rem; }
.leer { padding: 2rem 0; max-width: 40rem; }
.leer h2 { font-size: 2.2rem; margin-bottom: 0.6rem; }
.erklaer { margin-top: 3rem; background: var(--flaeche); padding: 1.5rem 1.25rem; }
.erklaer h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.erklaer p { max-width: 40rem; }
.erklaer p:last-child { margin-bottom: 0; }
.skala { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.5rem; }
.skala li { display: flex; align-items: center; gap: 1rem; font-size: 1rem; line-height: 1.3; }
.skala b { font-family: var(--mono); font-weight: 500; margin-right: 0.4em; }
.rubrik-raster { display: grid; gap: 1.8rem 2.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.rubrik-block h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.rubrik-block h3 a { color: inherit; text-decoration: none; }
.rubrik-block h3 a:hover { text-decoration: underline; }
.rubrik-block ul, .liste-schlicht { list-style: none; padding: 0; margin: 0; font-size: 1rem; line-height: 1.35; }
.rubrik-block li, .liste-schlicht li { padding: 0.45rem 0; border-top: 1px solid var(--linie); }
.rubrik-block time, .liste-schlicht time { display: block; font: 400 0.7rem/1.6 var(--mono); color: var(--grau); text-transform: uppercase; letter-spacing: 0.04em; }
.rubrik-block .still { font-size: 0.95rem; margin: 0; }

/* Seiten- und Artikelkopf */
.seiten-kopf, .artikel-kopf { max-width: 50rem; margin-bottom: 2rem; }
.seiten-kopf h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); letter-spacing: -0.025em; margin-bottom: 0.8rem; }
.artikel-kopf h1 { font-size: clamp(2rem, 5.6vw, 3.5rem); letter-spacing: -0.027em; line-height: 1.05; margin-bottom: 1rem; }
.teaser { font-size: 1.32rem; line-height: 1.42; }
.kopf-evidenz { margin: 0 0 1rem; }
.kopf-evidenz a { color: inherit; }
.vermerk { border-left: 3px solid var(--punkt); background: var(--flaeche); padding: 0.7rem 0.9rem; font-size: 1rem; line-height: 1.45; }
.vermerk-stark { border: 2px solid var(--punkt); }

/* Artikel */
.artikel-spalten { display: grid; gap: 2.5rem; }
.artikel-text { min-width: 0; max-width: 41rem; }
.fliesstext { font-size: 1.22rem; line-height: 1.6; hyphens: auto; }
.fliesstext h2 { font-size: 1.6rem; margin: 2.2rem 0 0.7rem; }
.fliesstext h3 { font-size: 1.25rem; margin: 1.8rem 0 0.5rem; }
.fliesstext li { margin-bottom: 0.4em; }
.fliesstext blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--linie); font-style: italic; }
.fliesstext table { border-collapse: collapse; font-size: 1rem; width: 100%; margin: 1.5rem 0; }
.fliesstext td, .fliesstext th { border-bottom: 1px solid var(--linie); padding: 0.45rem 0.6rem 0.45rem 0; text-align: left; vertical-align: top; }
.fliesstext code { font-family: var(--mono); font-size: 0.85em; }
.seite { max-width: 44rem; }
.seite-breit { max-width: none; }
.seite .fliesstext { font-size: 1.15rem; }
.kernpunkte { border-block: 1px solid var(--tinte); padding: 1rem 0 0.4rem; margin-bottom: 2rem; }
.kernpunkte h2 { color: var(--grau); margin-bottom: 0.5rem; }
.kernpunkte ul { margin: 0; padding-left: 1.1em; font-size: 1.1rem; line-height: 1.45; }
.kernpunkte li { margin-bottom: 0.5em; }
.kernpunkte li::marker { color: var(--punkt); }
.bild { margin: 0 0 2rem; }
.bild img { display: block; width: 100%; background: #fff; border: 1px solid var(--linie); }
.bild figcaption { font-size: 0.95rem; line-height: 1.4; color: var(--grau); margin-top: 0.5rem; }
.nachweis { display: block; margin-top: 0.2rem; }
.nachweis a { color: inherit; }

.fehlerbalken { background: var(--flaeche); border-top: 3px solid var(--tinte); padding: 1.1rem 1.1rem 0.9rem; align-self: start; font-size: 1rem; line-height: 1.42; min-width: 0; }
.fehlerbalken h2 { font-size: 1.5rem; }
.fb-frage { color: var(--grau); margin: 0.2rem 0 1rem; }
.fb-grafik { border-block: 1px solid var(--linie); padding: 0.9rem 0 0.7rem; margin-bottom: 0.9rem; }
.fb-grafik p { margin: 0.6rem 0 0; }
.fehlerbalken dl { margin: 0; }
.fehlerbalken dt { color: var(--grau); margin-top: 0.8rem; }
.fehlerbalken dd { margin: 0.1rem 0 0; }
.fehlerbalken dd ul { margin: 0; padding-left: 1.05em; }
.fehlerbalken dd li { margin-bottom: 0.25em; }
.fb-fuss { margin: 1.1rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--linie); }
@media (min-width: 62rem) {
  .artikel-spalten { grid-template-columns: minmax(0, 41rem) minmax(17rem, 21rem); justify-content: space-between; }
  .fehlerbalken { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
}

.quellen { max-width: 41rem; margin-top: 3rem; }
.quellen h2 { font-size: 1.4rem; margin-bottom: 0.6rem; padding-top: 0.8rem; border-top: 1px solid var(--tinte); }
.quellen ol { padding-left: 1.3em; font-size: 1rem; line-height: 1.42; }
.quellen li { margin-bottom: 0.7em; }
.q-typ { display: block; color: var(--grau); }
.artikel-fuss { max-width: 41rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--linie); font-size: 0.98rem; line-height: 1.45; color: var(--grau); }
.artikel-fuss b { color: var(--tinte); }
.artikel-fuss .still { display: block; font: 400 0.72rem/1.6 var(--mono); margin-top: 0.3rem; }

/* Suche */
.suchform { max-width: 41rem; }
.suchzeile { display: flex; gap: 0.5rem; margin-top: 0.3rem; }
.suchzeile input { flex: 1; min-width: 0; font: inherit; padding: 0.5rem 0.7rem; background: var(--papier); color: var(--tinte); border: 1px solid var(--tinte); border-radius: 0; }
#such-status { margin-top: 1.2rem; }
.trefferliste { list-style: none; padding: 0; max-width: 41rem; }
.trefferliste li { padding: 1rem 0; border-top: 1px solid var(--linie); }
.trefferliste a { font-size: 1.35rem; font-weight: 600; line-height: 1.15; color: var(--tinte); }
.trefferliste p { margin: 0.4rem 0 0; font-size: 1.02rem; line-height: 1.4; }

/* Quellenregister */
.sprungliste ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.tabelle-rahmen { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.35; }
th, td { text-align: left; padding: 0.45rem 1rem 0.45rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { color: var(--grau); border-bottom-color: var(--tinte); white-space: nowrap; }
tbody th { font: inherit; text-transform: none; letter-spacing: 0; min-width: 14rem; }
tbody td { font: 400 0.78rem/1.6 var(--mono); color: var(--grau); white-space: nowrap; }

/* Fuß */
.fuss { border-top: 1px solid var(--tinte); padding-block: 2rem 3rem; }
.fuss-satz { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.fuss-ki { max-width: 40rem; font-size: 1rem; }
.fuss ul { list-style: none; padding: 0; margin: 1.4rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.fuss nav a { color: var(--tinte); }
.fuss-klein { color: var(--grau); margin: 0; text-transform: none; letter-spacing: 0; }

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  .logo { font-size: 1.45rem; }
  .fliesstext { font-size: 1.12rem; }
  .teaser, .aufmacher-teaser { font-size: 1.16rem; }
  .skala li { align-items: flex-start; gap: 0.7rem; }
  .skala .balken { width: 4.5rem; margin-top: 0.15rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .kopf-werkzeug, .rubriken, .fuss nav, .sprung { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .fehlerbalken { position: static; max-height: none; break-inside: avoid; }
}
