/* ==========================================================================
   Ratsmonitor Dresden-Neustadt · Endfassung Stadtteilheft (Etappe 1)
   Lokale Schriften (Vollkorn, Source Sans 3), Werkdruck-Palette,
   Grundlayout, Startseite und Meldungsseite aus endfassung/stadtteilheft-gesamt.css
   ========================================================================== */

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-italic-latin.woff2") format("woff2");
  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: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-normal-latin.woff2") format("woff2");
  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: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-normal-latin.woff2") format("woff2");
  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: "Vollkorn";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/vollkorn-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vollkorn";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/vollkorn-italic-latin.woff2") format("woff2");
  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: "Vollkorn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/vollkorn-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vollkorn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/vollkorn-normal-latin.woff2") format("woff2");
  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: "Vollkorn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/vollkorn-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vollkorn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/vollkorn-normal-latin.woff2") format("woff2");
  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: "Vollkorn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/vollkorn-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vollkorn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/vollkorn-normal-latin.woff2") format("woff2");
  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;
}

:root {
  --bg-umschlag: #eae2d2;
  --bg-papier: #f7f3ea;
  --bg-zeichnung: #ece4d4;
  --tinte: #1b1917;
  --tinte-ruhig: #46413b;
  --akzent: #163f5e;
  --akzent-hover: #0d293e;
  --linie-stark: #2b2723;
  --linie: #cfc6b4;
  --linie-fein: #dfd7c7;

  --schrift-titel: "Vollkorn", Georgia, "Times New Roman", serif;
  --schrift-text: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --blatt-breite: 77.5rem;
  --rand: clamp(1.125rem, 4.5vw, 4.25rem);
  --lese-breite: 40rem;

  /* Kompatibilitäts-Variablen für Unterseiten und Dashboard-Fragment (Etappe 1) */
  --bg: var(--bg-papier);
  --surface: var(--bg-zeichnung);
  --ink: var(--tinte);
  --muted: var(--tinte-ruhig);
  --red: var(--akzent);
  --line: var(--linie);
  --sans: var(--schrift-text);
  --serif: var(--schrift-titel);
  --max: var(--blatt-breite);
  --paper: var(--bg-papier);
  --paper-soft: var(--bg-zeichnung);
  --paper-panel: var(--bg-zeichnung);
  --ink-soft: var(--tinte-ruhig);
  --border: var(--linie);
  --border-soft: var(--linie-fein);
  --signal: var(--akzent);
  --signal-dark: var(--akzent-hover);
  --green: #1f5132;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 100%;
  background-color: var(--bg-umschlag);
  color: var(--tinte);
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background-color: var(--bg-umschlag);
}

::selection { background: var(--akzent); color: var(--bg-papier); }

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

.blatt {
  max-width: var(--blatt-breite);
  margin-inline: auto;
  background-color: var(--bg-papier);
  min-height: 100dvh;
  border-inline: 1px solid var(--linie);
}
@media (max-width: 80rem) { .blatt { border-inline: 0; } }

h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  font-weight: 500;
  color: var(--tinte);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

p { margin: 0; text-wrap: pretty; overflow-wrap: break-word; }

a {
  color: var(--akzent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}
a:hover { color: var(--akzent-hover); text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0.75rem; z-index: 100;
  background: var(--bg-papier); color: var(--tinte);
  padding: 0.625rem 1rem; border: 2px solid var(--tinte);
  font-size: 0.9375rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; }

.sr-only,
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Seitenbreite: alles außer dem Kopfbild trägt den Rand */
.kopf-titel, .kopf-vermerk, main, .fuss { padding-inline: var(--rand); }

/* ==========================================================================
   Bildbehandlung (agy-3): Papierrahmen, Haarlinie, Tuschezeichnung beschnitten
   ========================================================================== */

.heft-bild {
  margin: 0;
  position: relative;
  width: 100%;
  background-color: var(--bg-zeichnung);
  border: 1px solid var(--linie);
  overflow: hidden;
}
.heft-bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: var(--tinte-ruhig);
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: 0.9375rem;
}
.heft-bild--panorama { aspect-ratio: 3 / 1; border-inline: 0; border-top: 0; }
.heft-bild--aufmacher { aspect-ratio: 3 / 2; }
.heft-bild--teaser { aspect-ratio: 3 / 2; }
.heft-bild--klein { aspect-ratio: 3 / 2; }
.heft-bild--meldung { aspect-ratio: 4 / 3; }
@media (max-width: 40rem) { .heft-bild--panorama { aspect-ratio: 2 / 1; } }

.bildzeile {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--tinte-ruhig);
}

.bild-link { display: block; }

/* ==========================================================================
   Kopf: großes Panorama auf Startseite, kompakter Kopf auf Unterseiten
   ========================================================================== */

.kopf-titel {
  padding-block: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}
.wortmarke {
  font-family: var(--schrift-titel);
  font-size: clamp(2.625rem, 1.8rem + 4.2vw, 4.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
}
.wortmarke a { color: var(--tinte); text-decoration: none; }
.wortmarke a:hover { color: var(--akzent); text-decoration: underline; text-decoration-thickness: 1.5px; }
.untertitel {
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  color: var(--tinte-ruhig);
}
.untertitel strong { font-weight: 500; font-style: normal; color: var(--tinte); }
.herausgeber { margin-top: 0.375rem; font-family: var(--schrift-titel); font-size: 1.125rem; font-weight: 600; color: var(--tinte); }
.herausgeber a { color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.kopf--kompakt .herausgeber { margin: 0 0 0.5rem; padding-inline: var(--rand); }

.kopf-vermerk {
  padding-bottom: clamp(1.125rem, 2vw, 1.5rem);
  text-align: center;
  font-size: 0.875rem;
  color: var(--tinte-ruhig);
}

/* Startseitenkopf (agy-w2-gesamt): Titelblatt überlappt das Panorama, Vermerke zweispaltig */
.spiegel-innen { padding-inline: var(--rand); }
.kopf-titelblatt {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(1.75rem, 5vw, 3.85rem));
  width: fit-content;
  max-width: 100%;
  background-color: var(--bg-papier);
  padding: 0.45rem clamp(1.25rem, 3vw, 2.25rem) 0.2rem 0;
}
@media (max-width: 34rem) { .kopf-titelblatt { margin-top: -1.25rem; padding-right: 1rem; } }
.kopf-titelblatt .wortmarke { font-weight: 500; font-size: clamp(2.625rem, 1.85rem + 4.4vw, 4.85rem); line-height: 0.98; letter-spacing: -0.022em; margin-bottom: 0; }
.kopf-titelblatt .untertitel { margin-top: 0.5rem; line-height: 1.4; }
.kopf-titelblatt .untertitel strong { font-weight: 600; }
.kopf-vermerke {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem 2.5rem;
  margin-top: 1.125rem;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  padding-top: 0.8125rem;
  border-top: 1px solid var(--linie);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tinte-ruhig);
  font-variant-numeric: tabular-nums;
}
.kopf-vermerke strong { color: var(--tinte); font-weight: 600; }
@media (min-width: 56rem) {
  .kopf-vermerke { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: baseline; }
  .kopf-vermerke p:last-child { text-align: end; }
}

.kopf--kompakt .kopf-titel {
  padding-block: clamp(1.25rem, 2.5vw, 2rem) 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 2rem;
  text-align: start;
}
.kopf--kompakt .wortmarke { font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.625rem); margin-bottom: 0; }
.kopf--kompakt .kopf-vermerk { text-align: start; padding-bottom: 1rem; }

/* ==========================================================================
   Navigation (m7-1): Leseband, klebt oben, Rubriken als zweite Zeile
   ========================================================================== */

.menu {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--bg-papier);
  border-top: 2px solid var(--tinte);
  border-bottom: 1px solid var(--tinte);
  padding-inline: var(--rand);
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block;
  padding: 0.6875rem 0;
  color: var(--tinte);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.menu a:hover { color: var(--akzent); text-decoration: underline; text-underline-offset: 0.3em; }
.menu a[aria-current="page"] {
  color: var(--akzent);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}
.menu-desktop { display: flex; flex-wrap: wrap; column-gap: 2rem; }
.menu-rubriken {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  align-items: baseline;
  border-top: 1px solid var(--linie);
}
.menu-rubriken .titel { font-size: 0.9375rem; color: var(--tinte-ruhig); padding: 0.5rem 0; }
.menu-rubriken a {
  color: var(--akzent);
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: 1.125rem;
  padding: 0.5rem 0;
  text-decoration: underline;
  text-decoration-color: var(--linie);
  text-underline-offset: 0.25em;
}
.menu-rubriken a:hover { text-decoration-color: var(--akzent); }

.menu-mobil { display: none; }
.menu-mobil summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8125rem 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-mobil summary::-webkit-details-marker { display: none; }
.menu-mobil summary::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid var(--tinte);
  border-bottom: 2px solid var(--tinte);
  transform: rotate(45deg) translateY(-0.15em);
}
.menu-mobil[open] summary::after { transform: rotate(-135deg); }
.menu-mobil ul { padding-bottom: 0.5rem; }
.menu-mobil .trenner { border-top: 1px solid var(--linie); margin-top: 0.375rem; padding-top: 0.375rem; }
.menu-mobil .trenner a { color: var(--akzent); font-family: var(--schrift-titel); font-weight: 400; font-size: 1.125rem; }

@media (max-width: 47.9375rem) {
  .menu-desktop, .menu-rubriken { display: none; }
  .menu-mobil { display: block; }
}

/* ==========================================================================
   Vorberichte zur nächsten Sitzung · Stadtteilheft
   ========================================================================== */

.heft-vorberichte {
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background-color: var(--bg-zeichnung);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--akzent);
}
.heft-vorberichte h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: var(--tinte);
}
.heft-vorberichte ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) {
  .heft-vorberichte ul {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  }
}
.heft-vorberichte li {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.heft-vorberichte h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0;
}
.heft-vorberichte h3 a {
  color: var(--tinte);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}
.heft-vorberichte h3 a:hover {
  color: var(--akzent);
}
.heft-vorberichte p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tinte);
}
.heft-vorberichte .heft-meta {
  color: var(--tinte-ruhig);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Aufmacher (imp-2): Bild links, Text rechts, ganze Fläche verlinkt
   ========================================================================== */

.aufmacher {
  position: relative;
  display: grid;
  gap: 1.25rem clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--linie);
}
.aufmacher > * { min-width: 0; }
@media (min-width: 52rem) {
  .aufmacher { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
}
.aufmacher h1 {
  font-size: clamp(1.875rem, 1.45rem + 1.8vw, 2.875rem);
  line-height: 1.14;
  margin-bottom: 0.875rem;
}
.aufmacher h1 a { color: var(--tinte); text-decoration: none; }
.aufmacher h1 a::after { content: ""; position: absolute; inset: 0; }
.aufmacher h1 a:hover { color: var(--akzent); text-decoration: underline; text-decoration-thickness: 1.5px; }
.aufmacher-vorspann {
  font-family: var(--schrift-titel);
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  line-height: 1.52;
  margin-bottom: 0.875rem;
}
.heft-meta { font-size: 0.875rem; line-height: 1.5; color: var(--tinte-ruhig); margin-bottom: 0.5rem; }
.lese-link {
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--akzent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* ==========================================================================
   Spiegel: Haupt (imp-1) + Randspalte (agy-1 im Ton von agy-3)
   ========================================================================== */

.spalten {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 64rem) {
  .spalten { grid-template-columns: minmax(0, 1fr) 16.5rem; }
}
.haupt { min-width: 0; }

/* Teaser: Bild über Text, drei Spalten mit Haarlinien (imp-1) */
.teasers { display: grid; gap: 2rem; }
.teaser {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--linie-fein);
  align-content: start;
}
.teaser:last-child { border-bottom: 0; padding-bottom: 0; }
.teaser h3 { font-size: clamp(1.375rem, 1.22rem + 0.55vw, 1.625rem); line-height: 1.22; margin-bottom: 0.4rem; }
.teaser h3 a { color: var(--tinte); text-decoration: none; }
.teaser h3 a:hover { color: var(--akzent); text-decoration: underline; text-decoration-thickness: 1.5px; }
.teaser-text { font-size: 1.0625rem; line-height: 1.62; margin-bottom: 0.5rem; }

@media (min-width: 40rem) and (max-width: 63.9375rem) {
  .teaser { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 1.25rem; }
}
@media (min-width: 64rem) {
  .teasers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
  .teaser { display: block; position: relative; padding: 0; border-bottom: 0; }
  .teaser + .teaser::before { content: ""; position: absolute; inset-block: 0; left: -1.25rem; border-left: 1px solid var(--linie-fein); }
  .teaser .heft-bild { margin-bottom: 0.875rem; }
}

.rubrikbalken {
  margin: 2.5rem 0 0;
  padding: 0.5rem 0;
  border-top: 3px double var(--linie);
  font-size: 1.5rem;
}
.kurz { list-style: none; margin: 0; padding: 0; }
.kurz li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.875rem 0;
  border-top: 1px solid var(--linie-fein);
}
.kurz li:first-child { border-top: 1px solid var(--linie); }
.kurz li > * { min-width: 0; }
.kurz h4 { font-size: 1.25rem; line-height: 1.25; margin-top: 0.125rem; }
.kurz h4 a { color: var(--tinte); text-decoration: none; }
.kurz h4 a:hover { color: var(--akzent); text-decoration: underline; text-decoration-thickness: 1.5px; }
.kurz .heft-meta { margin-bottom: 0; }
.kurz-text {
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0.375rem 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
@media (min-width: 40rem) { .kurz li { grid-template-columns: 8.75rem minmax(0, 1fr); gap: 1.25rem; } }
.alle-link { margin-top: 1rem; font-family: var(--schrift-titel); font-style: italic; }

/* Leiser KI-Vermerk (agy-3) */
.ki-vermerk {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.125rem;
  border-top: 1px solid var(--linie-fein);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--tinte-ruhig);
}

/* Randspalte: flüsterleise */
.randspalte {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  color: var(--tinte-ruhig);
  font-size: 1.0625rem;
  line-height: 1.55;
}
@media (min-width: 64rem) {
  .randspalte { padding-left: 1.5rem; border-left: 1px solid var(--linie-fein); }
}
@media (max-width: 63.9375rem) {
  .randspalte {
    padding-top: 2.25rem;
    border-top: 1px solid var(--linie);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    gap: 2rem 2.5rem;
  }
}
.rand-notiz { display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.rand-notiz h2 {
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--tinte-ruhig);
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--linie-fein);
}
.rand-termine { margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.rand-termine div { display: flex; flex-direction: column; gap: 0.125rem; }
.rand-termine dt { font-size: 0.875rem; color: var(--tinte-ruhig); }
.rand-termine dd { margin: 0; color: var(--tinte); }
.rand-zahl { font-family: var(--schrift-titel); font-size: 1.1875rem; color: var(--tinte); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Fakten auf der Startseite (agy-3): zurückgenommenes Buchregister
   ========================================================================== */

.heft-chronik { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 3px double var(--linie); }
.chronik-dachzeile { font-size: 0.9375rem; color: var(--tinte-ruhig); margin-bottom: 0.2rem; }
.chronik-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  margin-bottom: 1.25rem;
}
.chronik-kopf h2 { font-size: clamp(1.5rem, 1.3rem + 0.75vw, 1.9375rem); }
.chronik-subzeile { font-size: 0.9375rem; color: var(--tinte-ruhig); }
.chronik-eckwerte {
  margin: 0 0 2.25rem;
  padding-block: 0.875rem;
  border-block: 1px solid var(--linie-fein);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  font-size: 0.9375rem;
}
.chronik-eckwerte div { display: flex; align-items: baseline; gap: 0.5rem; }
.chronik-eckwerte dt { color: var(--tinte-ruhig); }
.chronik-eckwerte dd { margin: 0; font-family: var(--schrift-titel); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.chronik-register { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4.5vw, 4rem); margin-bottom: 2.25rem; }
@media (max-width: 50rem) { .chronik-register { grid-template-columns: 1fr; } }
.register-spalte h3 { font-style: italic; font-weight: 400; font-size: 1.1875rem; color: var(--tinte-ruhig); margin-bottom: 0.75rem; }
.register-tabelle { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.register-tabelle tr { border-bottom: 1px dotted var(--linie); }
.register-tabelle th, .register-tabelle td { padding-block: 0.5rem; vertical-align: baseline; }
.register-tabelle th { font-weight: 400; text-align: start; padding-right: 0.75rem; }
.register-tabelle td { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--tinte-ruhig); }
.chronik-raumnotiz {
  max-width: 52rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie-fein);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.chronik-raumnotiz h3 { font-size: 1.25rem; }
.chronik-raumnotiz p { font-size: 1.0625rem; color: var(--tinte-ruhig); }
.chronik-verweise { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.625rem 1.75rem; margin-top: 0.25rem; font-size: 1rem; font-weight: 600; }
/* Förderkarte: erster Verweis, größer und mit Pfeil, nur Palette */
.chronik-verweise a:first-child { font-family: var(--schrift-titel); font-size: 1.375rem; font-weight: 600; text-decoration-thickness: 2px; }
.chronik-verweise a:first-child::after { content: " \2192"; }
.chronik-raumnotiz { border-left: 4px solid var(--akzent); padding-left: clamp(1rem, 2.5vw, 1.5rem); }

/* ==========================================================================
   Meldungsseite
   ========================================================================== */

.meldung { padding-block: clamp(2rem, 5vw, 4rem); }

/* Meldungskopf (imp-3): Titel groß links, Bild rechts */
.artikelkopf {
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4.5vw, 3.5rem);
}
.artikelkopf > * { min-width: 0; }
@media (min-width: 56rem) { .artikelkopf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.artikelkopf h1 {
  font-size: clamp(2.125rem, 1.4rem + 3.1vw, 3.875rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.meldung-vorspann {
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.4375rem);
  line-height: 1.52;
  max-width: 34rem;
  margin-bottom: 1rem;
}
.artikelkopf .heft-meta { margin-bottom: 0.125rem; }

/* Lesetext (agy-3) */
.meldung-lesetext, .nachspann { max-width: var(--lese-breite); }
@media (min-width: 56rem) {
  .meldung-lesetext, .nachspann { width: calc((100% - clamp(2rem, 5vw, 4rem)) * 7 / 12); max-width: none; min-width: min(100%, 34rem); }
}
.meldung-lesetext {
  font-size: 1.15625rem;
  line-height: 1.72;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}
.meldung-lesetext > p:first-child::first-letter {
  font-family: var(--schrift-titel);
  font-size: 3.35em;
  line-height: 0.82;
  float: left;
  padding-right: 0.05em;
  padding-top: 0.06em;
}

.nachspann { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-direction: column; gap: 2rem; }
.nachspann > h2 { font-size: 1.25rem; margin-bottom: -1.25rem; }
.nachspann > ul { margin: 0; padding-left: 1.25rem; color: var(--tinte-ruhig); }

/* Eckdaten (agy-2): hinter dem Text, Begriff links, Wert rechts */
.artikel-eckdaten { padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 2px solid var(--linie-stark); border-bottom: 1px solid var(--linie); }
.artikel-eckdaten h2 { font-size: 1.375rem; margin-bottom: 0.875rem; }
.eckdaten-liste {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  row-gap: 0.55rem;
  column-gap: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.eckdaten-liste dt { font-weight: 600; color: var(--tinte-ruhig); }
.eckdaten-liste dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) {
  .eckdaten-liste { grid-template-columns: minmax(0, 1fr); row-gap: 0.125rem; }
  .eckdaten-liste dd { margin-bottom: 0.625rem; }
}

/* Quellenblock (Basis): Aufklapper */
.source-disclosure { border-bottom: 1px solid var(--linie); padding-bottom: 1rem; }
.source-disclosure summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: 1.3125rem;
  line-height: 1.3;
  padding-block: 0.25rem;
}
.source-disclosure summary::-webkit-details-marker { display: none; }
.source-disclosure summary::after {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid var(--akzent);
  border-bottom: 2px solid var(--akzent);
  transform: rotate(45deg) translateY(-0.2em);
}
.source-disclosure[open] summary::after { transform: rotate(-135deg); }
.source-disclosure > div { padding-top: 0.75rem; display: flex; flex-direction: column; gap: 0.625rem; font-size: 1rem; line-height: 1.6; color: var(--tinte-ruhig); }
.source-disclosure ul { margin: 0; padding-left: 1.25rem; }
.source-disclosure li + li { margin-top: 0.25rem; }
.quellen-vorlage { color: var(--tinte); font-variant-numeric: tabular-nums; }

.ki-hinweis-artikel { font-size: 0.9375rem; line-height: 1.6; color: var(--tinte-ruhig); }
.rueckweg { font-family: var(--schrift-titel); font-style: italic; font-size: 1.0625rem; }

/* ==========================================================================
   Fuß (agy-3): Kolophon
   ========================================================================== */

.fuss {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1.5px solid var(--linie-stark);
  color: var(--tinte-ruhig);
  font-size: 1rem;
  line-height: 1.62;
}
.fuss-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 52rem) { .fuss-raster { grid-template-columns: 1fr; } }
.fuss-kolophon { display: flex; flex-direction: column; gap: 0.875rem; }
.fuss-kolophon h2 { font-size: 1.25rem; }
.fuss-absender { padding-left: 1rem; border-left: 4px solid var(--akzent); }
.fuss-absender-name { font-family: var(--schrift-titel); font-size: 1.25rem; font-weight: 600; color: var(--tinte); }
.fuss-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.25rem; }
@media (max-width: 26rem) { .fuss-nav { grid-template-columns: 1fr; } }

/* ==========================================================================
   Unterseiten-Kompatibilität (Etappe 1: Grundlayout vererbt, Feinschliff Etappe 2)
   ========================================================================== */

img, svg { max-width: 100%; }
button, input, select, textarea, optgroup { font-family: inherit; font-size: 1rem; }

.wrap { width: 100%; max-width: 100%; margin: 0 auto; }
.narrow, .plain-wrap { width: min(46rem, 100%); }
.prose { max-width: 46rem; display: flex; flex-direction: column; gap: 1rem; }
.prose h2 { margin-top: 1.25rem; font-size: clamp(1.4rem, 2vw, 1.75rem); }
.prose h3 { margin-top: 0.75rem; font-size: 1.2rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.35rem; }
.prose li + li { margin-top: 0.4rem; }

.eyebrow, .kicker {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--tinte-ruhig);
  font-size: 0.9375rem;
  font-weight: 600;
}

.page-head {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--linie);
}
.page-head h1 {
  font-size: clamp(1.875rem, 1.45rem + 2vw, 2.75rem);
}
p.lead {
  margin-top: 0.875rem;
  max-width: 44rem;
  font-family: var(--schrift-titel);
  font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem);
  line-height: 1.52;
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--linie-fein);
  color: var(--tinte-ruhig);
  font-size: 0.9375rem;
}
.meta-line strong { color: var(--tinte); }
.footnote { margin-top: 0.75rem; color: var(--tinte-ruhig); font-size: 0.9375rem; }
.language-note, .callout {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-zeichnung);
  border-left: 3px solid var(--akzent);
}

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 1.25rem; }
.btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--tinte);
  background: var(--bg-papier);
  color: var(--tinte);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary, .button:not(.secondary) {
  background: var(--akzent);
  border-color: var(--akzent);
  color: var(--bg-papier);
}
.btn:hover, .button:hover {
  background: var(--akzent-hover);
  border-color: var(--akzent-hover);
  color: var(--bg-papier);
}

.section { padding: clamp(1.75rem, 4vw, 2.75rem) 0; border-bottom: 1px solid var(--linie-fein); }
.section:last-child { border-bottom: 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(15rem, 0.9fr) minmax(16rem, 1.1fr);
  gap: 1.25rem 2rem;
  align-items: end;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--linie);
}
.section-head p { color: var(--tinte-ruhig); max-width: 58ch; }

.story-archive, .module-grid, .download-grid, .news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.story-archive .story, .module-grid article, .download-card, .brief, .lead-story, .story-stack .story {
  padding: 1.25rem;
  background: var(--bg-zeichnung);
  border: 1px solid var(--linie);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.story-stack { display: flex; flex-direction: column; gap: 1rem; }
.story-meta { color: var(--tinte-ruhig); font-size: 0.9375rem; }
.ai-note { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--tinte-ruhig); font-size: 0.875rem; }
.info-icon { width: 1.375rem; height: 1.375rem; border: 1.5px solid currentColor; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.875rem; font-weight: 600; }
.ki-badge { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--tinte-ruhig); font-size: 0.875rem; text-decoration: none; }
.ki-badge:hover { color: var(--akzent); text-decoration: underline; }
.technical-source { color: var(--tinte-ruhig); font-size: 0.875rem; }

.brief-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.brief .num { font-family: var(--schrift-titel); font-size: 1.75rem; color: var(--akzent); font-variant-numeric: tabular-nums; }

.metric-strip, .timeline-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.metric, .timeline-card {
  padding: 1rem;
  background: var(--bg-zeichnung);
  border: 1px solid var(--linie);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.metric strong, .timeline-card strong { font-family: var(--schrift-titel); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.timeline-period, .metric span { font-size: 0.9375rem; color: var(--tinte-ruhig); }
.timeline-track { display: block; height: 0.45rem; background: var(--linie-fein); margin-top: 0.35rem; }
.timeline-track > span { display: block; height: 100%; background: var(--akzent); }
.status-flow { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.75rem 1rem; background: var(--bg-zeichnung); border: 1px solid var(--linie); }

.agenda { display: flex; flex-direction: column; border-top: 1px solid var(--linie); }
.agenda-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--linie-fein);
}
.agenda-item.agenda-item-date { grid-template-columns: 7.5rem minmax(0, 1fr) auto; }
.agenda-item.section-row { background: var(--bg-zeichnung); padding-inline: 0.75rem; font-weight: 600; }
.agenda-number { font-variant-numeric: tabular-nums; color: var(--tinte-ruhig); font-weight: 600; }
.agenda-title { font-family: var(--schrift-text); }
.agenda-ref { display: inline-block; margin-left: 0.5rem; font-size: 0.875rem; color: var(--tinte-ruhig); font-variant-numeric: tabular-nums; }
.agenda-result { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; justify-content: flex-end; }
.source-links { display: inline-flex; gap: 0.75rem; font-size: 0.9375rem; }
.status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--linie);
  background: var(--bg-zeichnung);
  font-size: 0.875rem;
  font-weight: 600;
}
.status-pill.yes { border-color: var(--green); color: var(--green); }
.status-pill.no { border-color: #7a1c1c; color: #7a1c1c; }
.status-pill.info { border-color: var(--linie-stark); color: var(--tinte); }

.filters {
  display: grid;
  grid-template-columns: minmax(14rem, 1.4fr) minmax(11rem, 1fr) minmax(11rem, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--bg-zeichnung);
  border: 1px solid var(--linie);
}
.field, .ah-field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label, .ah-field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .ah-field input, .ah-field select, .ah-field textarea, #ah-output {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--linie-stark);
  background: var(--bg-papier);
  color: var(--tinte);
}
.results-meta { margin-bottom: 1rem; color: var(--tinte-ruhig); font-size: 0.9375rem; }
.project-list { display: flex; flex-direction: column; border-top: 1px solid var(--linie); }
details.project-item { border-bottom: 1px solid var(--linie-fein); padding: 0.875rem 0; }
details.project-item summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
}
details.project-item summary::-webkit-details-marker { display: none; }
.project-date { font-size: 0.875rem; color: var(--tinte-ruhig); font-variant-numeric: tabular-nums; }
.project-title { font-family: var(--schrift-titel); font-size: 1.15rem; }
.project-amount { font-family: var(--schrift-titel); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.project-body { padding-top: 0.875rem; }
.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--linie-fein);
}
.project-facts dt { font-size: 0.875rem; color: var(--tinte-ruhig); font-weight: 600; }
.project-facts dd { margin: 0.15rem 0 0; }
.tag { display: inline-block; font-size: 0.875rem; color: var(--tinte-ruhig); }

.scope-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.scope-comparison > div { padding: 1rem; background: var(--bg-zeichnung); border: 1px solid var(--linie); display: flex; flex-direction: column; gap: 0.25rem; }
.table-wrap {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.source-table, .ah-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.source-table th, .source-table td, .ah-table th, .ah-table td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--linie-fein);
  text-align: left;
  vertical-align: top;
}
.source-table thead th, .ah-table thead th {
  border-bottom: 1.5px solid var(--linie-stark);
  font-weight: 600;
  color: var(--tinte);
  background: transparent;
}
.source-table caption, .ah-table caption {
  caption-side: bottom;
  padding-top: 0.65rem;
  color: var(--tinte-ruhig);
  font-size: 0.875rem;
  text-align: left;
}
.ah-table tfoot th, .ah-table tfoot td {
  font-weight: 600;
  font-family: var(--schrift-titel);
  font-size: 1.0625rem;
  border-top: 1.5px solid var(--linie-stark);
  border-bottom: 0;
  color: var(--tinte);
}
.ah-table-static td:not(:first-child), .ah-table-static th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ah-form { display: flex; flex-direction: column; gap: 1.5rem; }
.ah-section { }
form.ah-form fieldset, .ah-form fieldset { border: 1px solid var(--linie); padding: 1.25rem; min-width: 0; }
.ah-form legend { font-family: var(--schrift-titel); font-size: 1.2rem; padding-inline: 0.4rem; }
.ah-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ah-hint { font-size: 0.9375rem; color: var(--tinte-ruhig); }
.ah-steps li + li { margin-top: 0.5rem; }
.ah-total { margin-top: 1.25rem; font-size: 1.1rem; }
.ah-remove {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--linie-stark);
  border-radius: 50%;
  background: var(--bg-papier);
  color: var(--tinte);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.ah-remove:hover { background: var(--akzent); color: var(--bg-papier); border-color: var(--akzent); }
.ah-check, .ah-output { margin-top: 1.5rem; padding: 1.25rem; background: var(--bg-zeichnung); border: 1px solid var(--linie); }
.ah-check ul { margin: 0; padding-left: 0; list-style: none; }
.ah-check li { padding: 0.4rem 0; border-bottom: 1px solid var(--linie-fein); }
.ah-check li:last-child { border-bottom: 0; }
.ah-check .ah-warn { font-weight: 600; color: #7a1c1c; }
.ah-check .ah-neutral { color: var(--tinte-ruhig); }
.ah-output textarea { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9375rem; line-height: 1.45; }
.ah-address { font-style: normal; padding: 0.875rem 1rem; background: var(--bg-zeichnung); border-left: 3px solid var(--akzent); }

.feature-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bg-zeichnung);
  border: 1px solid var(--linie);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-panel h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.feature-panel p { color: var(--tinte-ruhig); font-size: 1.0625rem; }

.plain-head { }
.plain-wrap { width: min(46rem, 100%); }
.plain-copy { font-size: 1.125rem; line-height: 1.7; }
.plain-copy h2 { margin-top: 2.25rem; font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.plain-copy p + p { margin-top: 0.75rem; }
.plain-copy li + li { margin-top: 0.5rem; }

.legal-copy { display: flex; flex-direction: column; gap: 0.875rem; }
.legal-copy h2 { margin-top: 1.25rem; font-size: 1.4rem; }
.legal-copy h3 { margin-top: 0.75rem; font-size: 1.15rem; }
.legal-address { padding: 0.875rem 1rem; background: var(--bg-zeichnung); border-left: 3px solid var(--akzent); }
.legal-stand { margin-top: 1rem; color: var(--tinte-ruhig); font-size: 0.9375rem; }

.audience-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.audience-strip > span { padding: 0.875rem 1rem; background: var(--bg-zeichnung); border: 1px solid var(--linie); font-size: 0.9375rem; }
.audience-strip strong { display: block; }
.monitor-section { padding-block: 1.75rem 2.75rem; }

/* ==========================================================================
   Dashboard-Fragment (Fördermonitor) · Stadtteilheft-Anpassung
   ========================================================================== */
#dd-dashboard,
#inhalt #dd-dashboard {
  --dd-yellow: var(--bg-zeichnung);
  --dd-yellow-dark: var(--akzent);
  --dd-yellow-soft: var(--bg-papier);
  --dd-sand: var(--akzent);
  --dd-charcoal: var(--tinte);
  --dd-gray: var(--tinte-ruhig);
  --dd-line: var(--linie);
  --dd-soft: var(--bg-zeichnung);
  --dd-white: var(--bg-papier);
  --dd-black: var(--tinte);
  --heat-orange: #7a5018;
  --heat-red: var(--akzent);
  font-family: var(--schrift-text);
  color: var(--tinte);
  background: var(--bg-papier);
  max-width: none;
  margin: 0;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow: visible;
}
#inhalt #dd-dashboard .dashboard-main {
  padding: 0;
  display: grid;
  gap: 2rem;
}
#dd-dashboard h1,
#dd-dashboard h2,
#dd-dashboard h3 {
  font-family: var(--schrift-titel);
  font-weight: 500;
  color: var(--tinte);
}
#dd-dashboard h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
#dd-dashboard h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.2;
}
#dd-dashboard h3 {
  font-size: 1.15rem;
  font-weight: 600;
}
#dd-dashboard .dd-eyebrow,
#dd-dashboard .dd-section-head .dd-eyebrow {
  font-family: var(--schrift-text);
  font-size: 0.9375rem;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  color: var(--tinte-ruhig);
  margin-bottom: 0.25rem;
}
#dd-dashboard .filter-strip {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-zeichnung);
  border: 1px solid var(--linie);
  margin-bottom: 1.75rem;
}
#dd-dashboard .filter-strip label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--tinte);
}
#dd-dashboard .filter-strip select,
#dd-dashboard .filter-strip button {
  min-height: 2.75rem;
  width: 100%;
  border: 1px solid var(--linie-stark);
  background: var(--bg-papier);
  color: var(--tinte);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  border-radius: 0;
}
#dd-dashboard .filter-strip button#reset-filters {
  align-self: end;
  background: var(--akzent);
  border-color: var(--akzent);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}
#dd-dashboard .filter-strip button#reset-filters:hover {
  background: var(--akzent-hover);
  border-color: var(--akzent-hover);
  color: #ffffff;
}
#dd-dashboard .kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border: none;
  margin-bottom: 1.5rem;
}
@media (min-width: 48rem) {
  #dd-dashboard .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 34rem) {
  #dd-dashboard .kpi-grid {
    grid-template-columns: 1fr;
  }
}
#dd-dashboard .kpi {
  min-width: 0;
  padding: 1.15rem;
  background: var(--bg-zeichnung);
  border: 1px solid var(--linie);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
#dd-dashboard .kpi span,
#dd-dashboard .kpi small {
  font-size: 0.875rem;
  color: var(--tinte-ruhig);
  line-height: 1.35;
}
#dd-dashboard .kpi strong {
  font-family: var(--schrift-titel);
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--tinte);
  font-weight: 600;
}
#dd-dashboard .map-section {
  border-top: 2px solid var(--linie-stark);
  padding-top: 1.5rem;
}
#dd-dashboard .map-layout {
  display: grid;
  border: 1px solid var(--linie);
}
#dd-dashboard #funding-map {
  background: var(--bg-zeichnung);
}
#dd-dashboard .map-detail {
  padding: 1.25rem;
  border-top: 1px solid var(--linie);
  background: var(--bg-papier);
  min-height: 8rem;
}
@media (min-width: 48rem) {
  #dd-dashboard .map-detail {
    border-top: 0;
    border-left: 1px solid var(--linie);
  }
}
#dd-dashboard .map-detail strong {
  font-family: var(--schrift-titel);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--tinte);
  margin: 0.2rem 0 0.45rem;
}
#dd-dashboard .map-detail .amount {
  font-family: var(--schrift-titel);
  font-size: 1.65rem;
  color: var(--akzent);
  font-weight: 600;
}
#dd-dashboard .map-detail p {
  color: var(--tinte-ruhig);
  font-size: 0.9375rem;
  line-height: 1.5;
}
#dd-dashboard .map-detail a {
  color: var(--akzent);
  font-weight: 600;
}
#dd-dashboard .layer-controls {
  font-size: 0.9375rem;
  color: var(--tinte);
}
#dd-dashboard .layer-controls input {
  accent-color: var(--akzent);
}
#dd-dashboard .map-legend {
  font-size: 0.875rem;
  color: var(--tinte-ruhig);
  gap: 0.65rem 1.25rem;
  padding: 0.75rem 0;
}
#dd-dashboard .map-legend .dot {
  background: var(--akzent);
}
#dd-dashboard .unit {
  font-size: 0.875rem;
  color: var(--tinte-ruhig);
}
#dd-dashboard .analysis-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 48rem) {
  #dd-dashboard .analysis-grid {
    grid-template-columns: 1fr 1fr;
  }
  #dd-dashboard .purpose-block {
    grid-column: 1 / -1;
  }
}
@media (min-width: 64rem) {
  #dd-dashboard .analysis-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  #dd-dashboard .purpose-block {
    grid-column: auto;
  }
}
#dd-dashboard .dd-section-head.sub {
  margin-top: 1.75rem;
}
#dd-dashboard .coupled-table {
  overflow-x: auto;
}
#dd-dashboard .analysis-block {
  border-top: 1px solid var(--linie);
  padding-top: 1.25rem;
}
#dd-dashboard .purpose-block {
  border-top: 2px solid var(--linie-stark);
}
#dd-dashboard .dd-bar-track {
  background: var(--bg-zeichnung);
  border: 1px solid var(--linie-fein);
}
#dd-dashboard .dd-bar-fill,
#dd-dashboard .purpose-block .dd-bar-fill {
  background: var(--akzent);
  border-right: none;
}
#dd-dashboard .dd-bar-label {
  font-size: 0.9375rem;
  color: var(--tinte);
}
#dd-dashboard .dd-bar-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tinte);
  mix-blend-mode: normal;
}
#dd-dashboard .year-chart {
  border-bottom: 1px solid var(--linie);
}
#dd-dashboard .year-bar {
  background: var(--akzent);
  border-top: 2px solid var(--akzent-hover);
}
#dd-dashboard .year-col strong {
  font-family: var(--schrift-titel);
  font-size: 0.875rem;
  color: var(--tinte);
  font-weight: 600;
}
#dd-dashboard .year-col small {
  font-size: 0.875rem;
  color: var(--tinte-ruhig);
}
#dd-dashboard .beneficiary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#dd-dashboard .beneficiary-item {
  background: var(--bg-zeichnung);
  border: 1px solid var(--linie);
  padding: 0.6rem 0.85rem;
}
#dd-dashboard .beneficiary-item strong {
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  color: var(--akzent);
}
#dd-dashboard .beneficiary-item span {
  font-size: 0.875rem;
  color: var(--tinte);
}
#dd-dashboard .quality-note {
  font-size: 0.875rem;
  color: var(--tinte-ruhig);
  margin-top: 0.75rem;
}
#dd-dashboard details.portfolio-help {
  margin-top: 0.875rem;
  padding: 0.75rem 1rem;
  background: var(--bg-zeichnung);
  border: 1px solid var(--linie);
  font-size: 0.9375rem;
}
#dd-dashboard details.portfolio-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--tinte);
}
#dd-dashboard details.portfolio-help p {
  margin: 0.5rem 0 0;
  color: var(--tinte-ruhig);
  font-size: 0.9375rem;
}
#dd-dashboard .share-bar {
  display: flex;
  width: 100%;
  height: 2.75rem;
  border: 1px solid var(--linie);
  margin-bottom: 1rem;
  background: var(--bg-zeichnung);
}
#dd-dashboard .share-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  min-width: 1.25rem;
  overflow: hidden;
}
#dd-dashboard .share-seg--rest {
  font-size: 1.15rem;
}
#dd-dashboard .seg-c1 { background-color: #163f5e; }
#dd-dashboard .seg-c2 { background-color: #245842; background-image: repeating-linear-gradient(45deg, #ffffff 0 2px, transparent 2px 8px); }
#dd-dashboard .seg-c3 { background-color: #7a5018; background-image: repeating-linear-gradient(135deg, #ffffff 0 2px, transparent 2px 8px); }
#dd-dashboard .seg-c4 { background-color: #8a3a24; background-image: repeating-linear-gradient(90deg, #ffffff 0 2px, transparent 2px 8px); }
#dd-dashboard .seg-c5 { background-color: #463b6b; background-image: repeating-linear-gradient(0deg, #ffffff 0 2px, transparent 2px 8px); }
#dd-dashboard .seg-c6 { background-color: #355866; background-image: repeating-linear-gradient(45deg, #ffffff 0 2px, transparent 2px 8px), repeating-linear-gradient(135deg, #ffffff 0 2px, transparent 2px 8px); }
#dd-dashboard .seg-crest { background-color: #46413b; }
#dd-dashboard .seg-chip {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.4rem;
  border: 1px solid var(--linie-stark);
  vertical-align: -0.1rem;
}
#dd-dashboard .seg-pos {
  width: 2.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--tinte-ruhig);
}
#dd-dashboard .source-table--stack {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
#dd-dashboard .source-table--stack th,
#dd-dashboard .source-table--stack td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--linie-fein);
}
#dd-dashboard .source-table--stack thead th {
  border-bottom: 1.5px solid var(--linie-stark);
  font-weight: 600;
  color: var(--tinte);
}
#dd-dashboard .source-table--stack td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#dd-dashboard .cases-section {
  border-top: 2px solid var(--linie-stark);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
#dd-dashboard .case-list {
  display: grid;
  border-top: 1px solid var(--linie);
}
#dd-dashboard .case-row {
  display: grid;
  gap: 0.5rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--linie-fein);
}
@media (min-width: 48rem) {
  #dd-dashboard .case-row {
    grid-template-columns: 8.5rem minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.75rem 1.25rem;
  }
  #dd-dashboard .case-row .case-amount {
    text-align: right;
    white-space: nowrap;
  }
}
#dd-dashboard .case-row h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
}
#dd-dashboard .case-row h3 a {
  color: var(--tinte);
  text-decoration: none;
}
#dd-dashboard .case-row h3 a:hover {
  color: var(--akzent);
  text-decoration: underline;
}
#dd-dashboard .case-row .case-amount {
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--akzent);
  font-variant-numeric: tabular-nums;
}
#dd-dashboard .case-row .case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  color: var(--tinte-ruhig);
  font-size: 0.875rem;
  line-height: 1.4;
}
#dd-dashboard .case-row .case-meta span {
  font-size: 0.875rem;
}
#dd-dashboard .leaflet-control-attribution {
  font-size: 0.75rem;
  background: rgba(247, 243, 234, 0.85);
  color: var(--tinte-ruhig);
}
#dd-dashboard .leaflet-control-attribution a {
  color: var(--akzent);
}

@media (max-width: 52rem) {
  .section-head, .story-archive, .module-grid, .download-grid, .news-grid,
  .brief-grid, .filters, .project-facts, .scope-comparison, .ah-grid,
  .audience-strip { grid-template-columns: 1fr; }
  .metric-strip, .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-item, details.project-item summary { grid-template-columns: 1fr; gap: 0.35rem; }
  .agenda-result { justify-content: flex-start; }
}
@media (max-width: 34rem) {
  .metric-strip, .timeline-grid { grid-template-columns: 1fr; }
}
