/* Rahmen der Website-Seiten (nicht der Werkzeuge): Kopf, Suche, Fuß und die
   Bausteine von Startseite, Themenübersicht und Glossar.
   Setzt farben.css und kopf.css voraus und kommt nach beiden.

   Hell ist die Vorgabe. Die hellen Werte hier gelten nur für Seiten, die
   diese Datei einbinden (die Werkzeuge binden sie nicht ein), dunkel bleibt
   in farben.css. Der Quelltext enthält Kopf und Fuß zwischen den Markierungen
   <!-- rahmen:kopf --> und <!-- rahmen:fuss -->, geschrieben von
   werkzeuge/rahmen/einsetzen.py.

   Regeln für den Inhalt gelten nur unter body.mw-neu, damit News, Termine und
   die Themenseiten bis zu ihrer Neugestaltung unverändert bleiben.

   Gestaltungsregeln: Schriftgrößen 40, 28, 22, 19, 17, 15 px (dazu 16 px im
   Menü), Gewichte 400 und 600, Linien 1 px, Radius 8 px (Panel, Eingabefeld,
   Ausklappmenü) und 6 px (Menüpunkte), Abstände 4, 8, 12, 16, 24, 32, 48, 64,
   96 px. Ein Schatten (--schatten-schwebe) für alles, was schwebt. Keine Bewegung
   außer Zustandswechseln. */

/* Keine Seitenübergänge auf den Website-Seiten. */
@view-transition { navigation: none; }

/* ---------- Werte ---------- */
:root, :root[data-thema="hell"] {
  --band-linie: #C3D6C8;
  --schatten-schwebe: 0 8px 24px rgba(20, 28, 36, .14);
}
:root[data-thema="hell"] {
  --grund:       #FFFFFF;
  --weiss:       #F6F7F8;
  --linie:       #DADEE2;
  --linie-stark: #8E98A2;
  --text:        #1E2429;
  --text-still:  #5A6470;
  --raster:      #ECEEF0;
}
@media screen {
  :root[data-thema="dunkel"] {
    --band-linie: #2F4A3D;
    --schatten-schwebe: 0 8px 24px rgba(0, 0, 0, .5);
  }
}

/* ---------- Grundlagen ---------- */
.mw-kopf, .mw-kopf *, .mw-fuss, .mw-fuss *, .mw-skip { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
.satz { display: block; text-wrap: balance; }
body.mw-neu .still { color: var(--text-still); }
body.mw-neu .klein { font-size: 15px; }
.mw-kopf .nur-lesen, body.mw-neu .nur-lesen {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.mw-skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 12px 16px; border-radius: 0 0 8px 8px;
  background: var(--marke); color: var(--auf-akzent);
  font: 600 16px/1.4 var(--schrift); text-decoration: none;
}
.mw-skip:focus { top: 0; }
.mw-seite { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .mw-seite { padding: 0 16px; } }
.mw-anker { display: block; height: 0; outline: none; }

/* Inhalt der neu gestalteten Seiten */
body.mw-neu {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 17px/1.6 var(--schrift);
  -webkit-font-smoothing: antialiased;
}
body.mw-neu *, body.mw-neu *::before, body.mw-neu *::after { box-sizing: border-box; }
body.mw-neu h1, body.mw-neu h2, body.mw-neu h3,
body.mw-neu p, body.mw-neu ul, body.mw-neu ol, body.mw-neu dl, body.mw-neu dd, body.mw-neu figure { margin: 0; }
body.mw-neu ul { padding: 0; list-style: none; }
body.mw-neu h1, body.mw-neu h2, body.mw-neu h3 { font-family: var(--schrift-gross); font-weight: 600; color: var(--tinte); text-wrap: balance; }
body.mw-neu h1 { font-size: 40px; line-height: 1.15; }
body.mw-neu h2 { font-size: 28px; line-height: 1.25; }
body.mw-neu h3 { font-size: 19px; line-height: 1.35; }
body.mw-neu main a {
  color: var(--marke-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.mw-neu main a:hover { text-decoration-thickness: 2px; }
body.mw-neu :focus-visible { outline: 2px solid var(--marke); outline-offset: 2px; border-radius: 6px; }
body.mw-neu [id] { scroll-margin-top: 88px; }
.mw-abschnitt { margin-top: 96px; }
@media (max-width: 720px) {
  body.mw-neu h1 { font-size: 28px; }
  body.mw-neu h2 { font-size: 22px; }
  .mw-abschnitt { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .mw-kopf *, .mw-fuss *, body.mw-neu * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print { html { scroll-padding-top: 0; } }

/* ---------- Kopf ---------- */
.mw-kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
  font-family: var(--schrift);
}
.mw-kopf-innen {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.mw-marke {
  display: flex; align-items: center; gap: 12px; flex: none;
  color: var(--text); font-size: 22px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.mw-marke .ap-zeichen { width: 36px; height: 36px; }
.mw-marke-msb { color: var(--marke-text); }
.mw-menue { display: flex; gap: 4px; }
.mw-menue a, .mw-tools-knopf {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--text); font: 400 16px/1.4 var(--schrift);
  text-decoration: none; white-space: nowrap;
}
.mw-menue a:hover, .mw-tools-knopf:hover { background: var(--raster); }
.mw-menue a[aria-current], .mw-tools-knopf[aria-current] { background: var(--marke-zart); color: var(--marke-text); font-weight: 600; }
.mw-kopf a:focus-visible, .mw-kopf button:focus-visible, .mw-kopf input:focus-visible {
  outline: 2px solid var(--marke); outline-offset: 2px; border-radius: 6px;
}
.mw-feld { display: contents; }
.mw-kopf-rechts { display: flex; align-items: center; gap: 12px; flex: none; }
.mw-menue-knopf {
  display: none; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--linie-stark); border-radius: 8px;
  background: transparent; color: var(--text); font: 400 16px var(--schrift); cursor: pointer;
}
.mw-menue-knopf:hover { background: var(--raster); }

/* Ausklappmenü „Tools“: Knopf mit Winkel, das Panel liegt direkt darunter */
.mw-tools { position: relative; }
.mw-tools-titel { display: none; }
.mw-tools-knopf {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; cursor: pointer;
}
.mw-winkel { flex: none; }
.mw-tools-knopf[aria-expanded="true"] .mw-winkel { transform: rotate(180deg); }
.mw-tools-panel {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 60;
  width: 360px; padding: 8px;
  background: var(--grund); border: 1px solid var(--linie-stark); border-radius: 8px;
  box-shadow: var(--schatten-schwebe);
}
.mw-tools-panel[hidden] { display: none; }
.mw-menue .mw-tools-panel a { padding: 8px 12px; white-space: normal; }
.mw-tools-panel .t-name { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.mw-tools-panel .t-satz { display: block; color: var(--text-still); font-size: 15px; font-weight: 400; line-height: 1.45; }
.mw-menue .mw-tools-panel a[aria-current] .t-satz { color: var(--marke-text); }

/* Knopf für hell und dunkel, von thema.js eingehängt */
.mw-kopf-rechts .ap-thema-knopf {
  width: 40px; height: 40px; margin: 0; padding: 0; gap: 0; justify-content: center;
  border: 1px solid var(--linie-stark); border-radius: 8px;
  color: var(--text);
}
.mw-kopf-rechts .ap-thema-knopf span { display: none; }
.mw-kopf-rechts .ap-thema-knopf svg { width: 20px; height: 20px; }
.mw-kopf-rechts .ap-thema-knopf:hover { background: var(--raster); border-color: var(--linie-stark); color: var(--text); }
.mw-kopf-rechts .ap-thema-knopf:focus-visible { outline: 2px solid var(--marke); outline-offset: 2px; }

/* Suchfeld im Kopf: rechts, vor dem Knopf */
.mw-kopf .mw-suche { margin-left: auto; flex: 0 1 240px; min-width: 160px; }

/* Ab hier schmal: Menü und Suche in einem Feld unter dem Kopf. */
@media (max-width: 959px) {
  .mw-feld {
    display: block;
    padding: 12px 16px 16px;
    background: var(--grund);
    border-bottom: 1px solid var(--linie);
  }
  .mw-kopf-innen { gap: 12px; }
  .mw-kopf-rechts { margin-left: auto; }
  .mw-menue-knopf { display: inline-flex; }
  .mw-menue { flex-direction: column; gap: 0; }
  .mw-menue a { padding: 12px 8px; }
  .mw-kopf .mw-suche { margin: 12px 0 0; flex: none; width: 100%; max-width: 480px; }
  html.mw-js .mw-feld { display: none; position: absolute; left: 0; right: 0; top: 100%; box-shadow: var(--schatten-schwebe); }
  html.mw-js .mw-feld.offen { display: block; }
  html:not(.mw-js) .mw-kopf-innen { height: auto; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  html:not(.mw-js) .mw-feld { flex: 1 0 100%; order: 3; padding: 0; border: 0; }
  html:not(.mw-js) .mw-menue-knopf { display: none; }

  /* „Tools“ steht im aufgeklappten Menü als Zwischenüberschrift mit den drei Links darunter. */
  .mw-tools-knopf { display: none; }
  .mw-tools-titel { display: block; margin: 12px 8px 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--text); }
  .mw-tools-panel, .mw-tools-panel[hidden] {
    display: block; position: static; width: auto; padding: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  .mw-menue .mw-tools-panel a { padding: 12px 8px; }
  .mw-tools-panel .t-name { font-weight: 400; }
  .mw-tools-panel .t-satz { display: none; }
}
@media (min-width: 960px) {
  .mw-seite-start .mw-kopf .mw-suche { display: none; }
  .mw-seite-start .mw-menue { margin-right: auto; }
}
@media (max-width: 720px) {
  .mw-marke { font-size: 19px; }
}
@media print { .mw-kopf { position: static; } .mw-menue-knopf, .mw-feld .mw-suche, .mw-kopf-rechts, .mw-tools-panel { display: none; } }

/* ---------- Suche ---------- */
.mw-suche { position: relative; }
.mw-suche label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 16px; }
.mw-suche input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--linie-stark); border-radius: 8px;
  background: var(--grund); color: var(--text);
  font: 400 16px var(--schrift);
}
.mw-suche input::placeholder { color: var(--text-still); opacity: 1; }
.mw-suche-gross input { height: 56px; padding: 0 128px 0 16px; font-size: 17px; }
.mw-suche-gross button {
  position: absolute; right: 6px; bottom: 6px; height: 44px; padding: 0 24px;
  border: 0; border-radius: 6px; background: var(--marke); color: var(--auf-akzent);
  font: 600 16px var(--schrift); cursor: pointer;
}
.mw-suche-gross button:hover { background: var(--marke-text); }
.mw-treffer {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 60;
  width: max(100%, 440px); max-height: min(70vh, 560px); overflow: auto;
  margin: 0; padding: 8px 0; list-style: none;
  background: var(--grund); border: 1px solid var(--linie-stark); border-radius: 8px;
  box-shadow: var(--schatten-schwebe);
}
.mw-kopf .mw-treffer { left: auto; right: 0; }
.mw-treffer[hidden] { display: none; }
.mw-treffer .gruppe-name { padding: 8px 16px 4px; color: var(--text-still); font-size: 15px; font-weight: 600; }
.mw-treffer [role="option"] { display: block; padding: 8px 16px; cursor: pointer; }
.mw-treffer [role="option"] a, .mw-treffer [role="option"] > span { display: block; color: var(--text); text-decoration: none; }
.mw-treffer [role="option"][aria-selected="true"] { background: var(--marke-zart); }
.mw-treffer .o-name { display: block; font-weight: 600; font-size: 16px; line-height: 1.4; }
.mw-treffer .o-satz { display: block; color: var(--text-still); font-size: 15px; line-height: 1.45; }
.mw-treffer .o-quelle { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--linie); }
.mw-treffer .o-quelle a { color: var(--marke-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .mw-treffer, .mw-kopf .mw-treffer { width: 100%; } }

/* ---------- Fuß ---------- */
.mw-fuss {
  margin-top: 96px; padding: 48px 0 32px;
  background: var(--weiss); border-top: 1px solid var(--linie);
  color: var(--text); font-family: var(--schrift); font-size: 15px; line-height: 1.5;
}
.mw-fuss-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.mw-fuss h2 { margin: 0 0 12px; font: 600 17px/1.4 var(--schrift); color: var(--tinte); }
.mw-fuss ul { margin: 0; padding: 0; list-style: none; }
.mw-fuss li { padding: 4px 0; }
.mw-fuss a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mw-fuss a:hover { color: var(--marke-text); text-decoration-thickness: 2px; }
.mw-fuss a:focus-visible { outline: 2px solid var(--marke); outline-offset: 2px; border-radius: 6px; }
.mw-fuss-unten { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--linie); color: var(--text-still); }
.mw-fuss-unten p { margin: 0; }
.mw-fuss-unten .satz + .satz { margin-top: 4px; }
.mw-fuss-unten p + p { margin-top: 8px; }
@media (max-width: 900px) { .mw-fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mw-fuss { margin-top: 64px; } .mw-fuss-raster { grid-template-columns: 1fr; gap: 24px; } }
@media print { .mw-fuss-raster { display: none; } }

/* ---------- Startseite ---------- */

/* Aktuelles: Band direkt unter dem Kopf, über die volle Breite */
.mw-aktuell {
  padding: 16px 0;
  background: var(--marke-zart);
  border-top: 1px solid var(--band-linie); border-bottom: 1px solid var(--band-linie);
}
.mw-aktuell-kopf { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 24px; }
.mw-aktuell-titel { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
body.mw-neu .mw-aktuell h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.mw-ausgabe { display: flex; flex-wrap: wrap; margin: 0; font-size: 15px; line-height: 1.5; }
#ausgabe-trenn { padding: 0 0.4em; }
.mw-aktuell-links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; line-height: 1.5; }
.mw-zeitung { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-top: 12px; }
.mw-zeitung > * { min-width: 0; padding: 0 24px; border-left: 1px solid var(--band-linie); }
.mw-zeitung > *:first-child { padding-left: 0; border-left: 0; }
.mw-zeitung > *:last-child { padding-right: 0; }
.mw-meldung-titel { font-size: 17px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.mw-aufmacher .mw-meldung-titel { font-size: 22px; line-height: 1.3; }
body.mw-neu .mw-zeitung .mw-meldung-titel a { color: var(--text); text-decoration: none; }
body.mw-neu .mw-zeitung .mw-meldung-titel a:hover, body.mw-neu .mw-zeitung .mw-meldung-titel a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mw-meldung-info { margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--text-still); }
.mw-weitere { margin-top: 10px; }
.mw-weitere > li { padding-top: 8px; border-top: 1px solid var(--band-linie); }
.mw-weitere > li + li { margin-top: 8px; }
body.mw-neu .mw-aktuell h3 { margin: 0 0 2px; font-size: 17px; line-height: 1.25; }
.mw-naechste li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.35; }
.mw-naechste li + li { margin-top: 6px; }
.mw-naechste .datum { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.mw-zeitung.spalten-1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 720px) {
  .mw-zeitung, .mw-zeitung.spalten-1 { grid-template-columns: 1fr; }
  .mw-zeitung > * { padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--band-linie); margin-top: 6px; }
  .mw-zeitung > *:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
  .mw-aufmacher .mw-meldung-titel { font-size: 19px; line-height: 1.25; }
  .mw-meldung-info { margin-top: 0; line-height: 1.35; }
  .mw-ausgabe { line-height: 1.4; }
  .mw-aktuell-kopf { row-gap: 0; }
  body.mw-neu .mw-aktuell h3 { margin-bottom: 0; }
  .mw-weitere { display: none; }
  .mw-naechste li:nth-child(n+2) { display: none; }
  .mw-naechste li { display: block; line-height: 1.3; }
  .mw-naechste .datum { display: inline-block; margin-right: 8px; }
  .mw-aktuell-titel { display: contents; }
  .mw-aktuell-kopf { align-items: baseline; }
  .mw-aktuell-kopf h2 { order: 1; }
  .mw-aktuell-links { order: 2; }
  .mw-ausgabe { order: 3; flex-basis: 100%; }
  #ausgabe-trenn { display: none; }
  #ausgabe-datum { flex-basis: 100%; }
}

.mw-einstieg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 48px; }
.mw-einstieg h1 { margin-bottom: 24px; }
.mw-lead { font-size: 19px; line-height: 1.5; max-width: 34em; }
.mw-lead .satz + .satz { margin-top: 4px; }
.mw-einstieg .mw-suche { margin-top: 24px; }
.mw-suchhinweis { margin-top: 8px; }
.mw-schnell { margin-top: 32px; }
body.mw-neu .mw-schnell h2 { margin-bottom: 12px; font-size: 19px; }
.mw-direkt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mw-direkt > div { padding: 0 16px; border-left: 1px solid var(--linie); }
.mw-direkt > div:first-child { padding-left: 0; border-left: 0; }
.mw-direkt > div:last-child { padding-right: 0; }
.mw-direkt dt { font-weight: 600; }
.mw-direkt dd { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.mw-direkt dd a { display: block; }
.mw-direkt dd a + a { margin-top: 6px; }
body.mw-neu .mw-direkt dt a { color: var(--tinte); }
@media (max-width: 720px) {
  .mw-direkt { grid-template-columns: 1fr; }
  .mw-direkt > div, .mw-direkt > div:first-child, .mw-direkt > div:last-child { padding: 12px 0; border-left: 0; border-top: 1px solid var(--linie); }
  .mw-direkt > div:last-child { border-bottom: 1px solid var(--linie); }
}

/* Schaubild oder Erklärvideo als Blickfang rechts im Einstieg */
.mw-blick-link { display: block; }
.mw-blick img { display: block; width: 100%; height: auto; border: 1px solid var(--linie); border-radius: 8px; }
.mw-video-vorschau { position: relative; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; background: var(--raster); line-height: 0; }
.mw-video-vorschau img, .mw-video-vorschau video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
.mw-video-knopf {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--marke); border-radius: 6px;
  background: var(--marke); color: var(--auf-akzent);
  font: 600 15px/1.2 var(--schrift); cursor: pointer;
}
.mw-video-knopf:hover { background: var(--marke-text); border-color: var(--marke-text); }
.mw-video-knopf:focus-visible { outline: 2px solid var(--auf-akzent); outline-offset: 2px; }
.mw-blick figcaption { margin-top: 12px; }
:root[data-thema="dunkel"] .mw-bild-hell { display: none; }
:root:not([data-thema="dunkel"]) .mw-bild-dunkel { display: none; }

.mw-lernweg { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.mw-lernweg h2 { margin-bottom: 8px; }
.mw-lernweg-text { max-width: 36em; margin-bottom: 24px; color: var(--text-still); }
body.mw-neu .mw-schritte { max-width: 640px; padding: 0 0 0 32px; list-style: decimal; }
.mw-schritte li { padding: 12px 0 12px 8px; border-top: 1px solid var(--linie); }
.mw-schritte li:last-child { border-bottom: 1px solid var(--linie); }
.mw-schritte li::marker { color: var(--text-still); font-variant-numeric: tabular-nums; }
.mw-schritte li > a { font-weight: 600; }
.mw-schritte .satz { color: var(--text-still); font-size: 15px; line-height: 1.5; }
.mw-begriffsliste { margin-bottom: 16px; }
body.mw-neu .mw-begriffsliste h2 { margin-bottom: 12px; font-size: 19px; }
.mw-begriffsliste li { padding: 4px 0; }

.mw-themen-band { margin-top: 96px; padding: 64px 0; background: var(--weiss); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.mw-themen-band + .mw-aktuell { border-top: 0; }
.mw-themen-band h2 { margin-bottom: 24px; }
.mw-mehr { margin-top: 24px; }
@media (max-width: 720px) { .mw-themen-band { margin-top: 64px; } }

/* Karte: Bild oben, Titel als Link, die ganze Karte ist klickbar */
.mw-karten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 720px) { .mw-karten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mw-themen-band .mw-karten { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mw-karte { position: relative; display: flex; flex-direction: column; background: var(--grund); border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; }
.mw-karte-bild { aspect-ratio: 16 / 9; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.mw-karte-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mw-karte-text { padding: 16px; }
body.mw-neu .mw-karte-titel { font-size: 19px; line-height: 1.35; }
body.mw-neu main .mw-karte-titel a { color: var(--text); text-decoration: none; }
body.mw-neu main .mw-karte-titel a::after { content: ""; position: absolute; inset: 0; }
body.mw-neu main .mw-karte-titel a:focus-visible { outline: 0; }
.mw-karte-meta { margin-top: 4px; color: var(--text-still); font-size: 15px; line-height: 1.5; }
.mw-karte:hover, .mw-karte:focus-within { border-color: var(--marke); }
.mw-karte:has(a:focus-visible) { outline: 2px solid var(--marke); outline-offset: 2px; }
body.mw-neu main .mw-karte:hover .mw-karte-titel a, body.mw-neu main .mw-karte:focus-within .mw-karte-titel a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mw-karte-geplant { background: var(--weiss); }
.mw-karte-geplant:hover, .mw-karte-geplant:focus-within { border-color: var(--linie); }
body.mw-neu .mw-karte-geplant .mw-karte-titel { color: var(--text-still); font-weight: 600; }

/* Über */
.mw-ueber > h2 { margin-bottom: 24px; }
.mw-lese { max-width: 70ch; }
.mw-lese p + p { margin-top: 16px; }
.mw-lese .satz + .satz { margin-top: 4px; }
.mw-ueber-fuss { margin-top: 24px; }

@media (max-width: 900px) {
  .mw-einstieg, .mw-lernweg { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 720px) {
  .mw-einstieg { padding-top: 32px; }
  .mw-lead { font-size: 17px; }
  .mw-video-knopf { position: static; width: 100%; justify-content: center; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
}

/* ---------- Themenübersicht: Seitenleiste und Lesespalte ---------- */
.mw-dok { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 48px; }
.mw-seitennav { display: none; }
@media (min-width: 1100px) {
  .mw-dok { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .mw-seitennav { display: block; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; font-size: 15px; }
}
body.mw-neu .mw-seitennav h2 { margin-bottom: 8px; padding: 0 8px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text-still); }
.mw-seitennav a { display: block; padding: 4px 8px; border-radius: 6px; line-height: 1.4; }
body.mw-neu main .mw-seitennav a { color: var(--text); text-decoration: none; }
.mw-seitennav a:hover { background: var(--raster); }
body.mw-neu main .mw-seitennav a.aktuell { font-weight: 600; color: var(--marke-text); background: var(--marke-zart); }
.mw-inhalt { min-width: 0; }
.mw-intro { max-width: 70ch; color: var(--text-still); font-size: 19px; line-height: 1.5; }
.mw-intro .satz + .satz { margin-top: 4px; }
.mw-inhalt h1 { margin-bottom: 16px; }

.mw-bereich { margin-top: 64px; }
.mw-bereich:first-of-type { margin-top: 48px; }
.mw-bereich h2 { margin-bottom: 8px; }
.mw-bereich .mw-karten { margin-top: 24px; gap: 20px; }
@media (min-width: 720px) and (max-width: 1239px) { .mw-bereich .mw-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Glossar: Lesespalte, Filter, Buchstabenleiste ---------- */
.mw-glossar { max-width: 720px; padding-top: 48px; }
.mw-glossar h1 { margin-bottom: 16px; }
.mw-filterzeile { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.mw-filterfeld { flex: 1 1 240px; min-width: 0; }
.mw-filterfeld label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.mw-filterfeld input, .mw-filterfeld select {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--linie-stark); border-radius: 8px;
  background: var(--grund); color: var(--text); font: 400 17px var(--schrift);
}
.mw-filterfeld input::placeholder { color: var(--text-still); opacity: 1; }
.mw-buchstaben-nav { margin-top: 24px; }
.mw-buchstaben { display: flex; flex-wrap: wrap; gap: 4px; }
.mw-buchstaben [hidden] { display: none; }
.mw-buchstaben a, .mw-buchstaben span {
  display: block; min-width: 32px; padding: 4px; border-radius: 6px;
  font-size: 17px; line-height: 1.4; text-align: center; text-decoration: none;
}
body.mw-neu main .mw-buchstaben a { color: var(--marke-text); font-weight: 600; text-decoration: none; }
body.mw-neu main .mw-buchstaben a:hover { background: var(--raster); text-decoration: none; }
.mw-buchstaben span { color: var(--linie-stark); }
.mw-keine { margin-top: 24px; }
.mw-liste { margin-top: 48px; }
.mw-buchstabe { margin-top: 48px; }
.mw-buchstabe:first-child { margin-top: 0; }
.mw-buchstabe > h2 { margin-bottom: 8px; }
.mw-begriff { margin: 0 -16px; padding: 24px 16px; border-top: 1px solid var(--linie); }
.mw-buchstabe .mw-begriff:last-child { border-bottom: 1px solid var(--linie); }
.mw-begriff-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 4px; }
body.mw-neu main .mw-begriff h3 a { color: var(--tinte); text-decoration: none; }
body.mw-neu main .mw-begriff h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mw-sachgruppe { font-size: 15px; color: var(--text-still); }
.mw-auch { margin-bottom: 8px; color: var(--text-still); font-size: 15px; }
.mw-kurz { font-size: 17px; }
.mw-lang { margin-top: 8px; font-size: 17px; color: var(--text-still); }
.mw-kurz .satz + .satz, .mw-lang .satz + .satz { margin-top: 4px; }
.mw-begriff:target { background: var(--marke-zart); }
@media (max-width: 720px) { .mw-glossar { padding-top: 32px; } }

/* ---------- Aktuelles: Seitenkopf als Band, Meldungen als Liste ---------- */
.mw-aktuell.mw-seitenkopf { padding: 32px 0 24px; }
body.mw-neu .mw-seitenkopf h1 { margin-bottom: 8px; }
.mw-seitenkopf .mw-ausgabe { display: block; }
#stand-zusatz:not(:empty)::before { content: " · "; }
.mw-unternav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; font-size: 17px; line-height: 1.5; }
body.mw-neu main .mw-unternav a[aria-current] { color: var(--text); font-weight: 600; text-decoration: none; }
.mw-aktuell-inhalt { padding-bottom: 16px; }
.mw-blaettern { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: 24px; font-size: 15px; line-height: 1.5; }
.mw-blaettern[hidden], .mw-filterzeile[hidden], .mw-neusatz[hidden], .mw-rubrik[hidden] { display: none; }
.mw-tage { display: flex; flex-wrap: wrap; flex: 1 1 auto; gap: 4px 16px; }
body.mw-neu main .mw-blaettern a[aria-current] { color: var(--text); font-weight: 600; text-decoration: none; }
body.mw-neu main .mw-blaettern a[aria-disabled] { color: var(--text-still); text-decoration: none; }
.mw-neusatz { margin-top: 24px; }
.mw-neusatz .satz { display: inline; font-weight: 600; }
.mw-textlink { padding: 0; border: 0; background: none; font: 600 17px/1.6 var(--schrift); color: var(--marke-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mw-filterschmal { flex: 0 1 320px; }
.mw-zustand, .mw-leer { margin-top: 24px; color: var(--text-still); }
.mw-rubrik { margin-top: 48px; }
.mw-rubrik h2, .mw-wochenkopf { margin-bottom: 8px; }
body.mw-neu .mw-rubrik h3 { margin-bottom: 8px; font-size: 22px; line-height: 1.3; }
.mw-wochenwahl { margin-top: 24px; font-size: 15px; }
.mw-wochenkopf { margin-top: 48px; }
.mw-rubrik h2:focus { outline: none; }
.mw-leer { margin-top: 0; }
.mw-meldungen > li { padding: 16px 0; border-top: 1px solid var(--linie); }
.mw-meldungen > li:last-child { border-bottom: 1px solid var(--linie); }
.mw-meldungen .mw-meldung-titel { font-size: 19px; line-height: 1.35; }
body.mw-neu .mw-meldungen .mw-meldung-titel a { color: var(--text); text-decoration: none; }
body.mw-neu .mw-meldungen .mw-meldung-titel a:hover, body.mw-neu .mw-meldungen .mw-meldung-titel a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mw-neu-marke { margin-right: 8px; font-size: 15px; font-weight: 600; color: var(--marke-text); }
.mw-meldung-satz { display: block; margin-top: 8px; max-width: 66ch; font-size: 17px; }
.mw-meldung-satz + .mw-meldung-satz { margin-top: 4px; }
.mw-aussagen { margin-top: 8px; }
.mw-aussagen summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text-still); }
.mw-punkte { margin-top: 8px; max-width: 66ch; }
.mw-punkt + .mw-punkt { margin-top: 4px; }
.mw-hinweis { max-width: 46em; color: var(--text-still); font-size: 15px; }
.mw-hinweis .satz { display: block; }
.mw-hinweis .satz + .satz { margin-top: 4px; }
@media (max-width: 720px) { .mw-rubrik, .mw-wochenkopf { margin-top: 32px; } }

/* Knopf, wo kein Link passt: Rahmen, Radius 8 px, Zustandswechsel ohne Bewegung */
.mw-knopf { min-height: 40px; padding: 0 16px; border: 1px solid var(--linie-stark); border-radius: 8px; background: var(--grund); color: var(--text); font: 600 15px/1.2 var(--schrift); cursor: pointer; }
.mw-knopf:hover { background: var(--raster); }
.mw-knopf:disabled { color: var(--text-still); cursor: default; background: var(--grund); }
