/* ================= Tokens ================= */
:root {
  --paper: #f6f1e7; --paper-2: #efe7d8; --paper-3: #e6dcc9;
  --ink: #1d1a16; --ink-2: #4a443b; --ink-3: #6f675b;
  --rule: #cfc4b0; --rule-strong: #1d1a16;
  --accent: #b3261e; --accent-ink: var(--accent);
  --accent-soft: color-mix(in oklab, var(--accent-ink) 12%, var(--paper));
  --accent-line: color-mix(in oklab, var(--accent-ink) 40%, transparent);
  --ok: #2e6b3a; --warn: #9a5b00; --bad: #a3261e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 38rem; --wide: 74rem; --side: 12rem; --side-r: 15rem; --gap: 3rem;
  --t-fast: 140ms; --t-mid: 260ms; --t-slow: 520ms;
  --ease-out: cubic-bezier(.2,.7,.2,1); --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --shadow-1: 0 1px 2px rgba(29,26,22,.06), 0 4px 14px rgba(29,26,22,.07);
  --shadow-2: 0 2px 6px rgba(29,26,22,.08), 0 18px 48px rgba(29,26,22,.16);
  --nav-h: 2.9rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not(.hell) { --paper:#17150f; --paper-2:#211e17; --paper-3:#2b271f; --ink:#ece5d8; --ink-2:#c9c0b0; --ink-3:#a39a8a; --rule:#3d382e; --rule-strong:#ece5d8; --accent-ink: color-mix(in oklab, var(--accent) 55%, white); --ok:#7fc28c; --warn:#e0a54a; --bad:#f08a80; --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 18px 48px rgba(0,0,0,.55); }
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1.5rem); }
body { margin: 0; font: 1.125rem/1.6 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: .18em; transition: text-decoration-color var(--t-fast); }
a:hover { text-decoration-color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 3px; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.sprung { position: absolute; left: -999px; } .sprung:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 99; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.klein { font: 600 .72rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ico { width: 1em; height: 1em; vertical-align: -.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nur-schmal { display: none !important; }

.fortschritt { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--accent-ink); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
@supports (animation-timeline: scroll()) {
  .fortschritt { animation: fortschritt linear both; animation-timeline: scroll(root); }
  @keyframes fortschritt { to { transform: scaleX(1); } }
}

/* ================= Kopf ================= */
.leiste { border-bottom: 1px solid var(--rule); position: relative; z-index: 30; }
.leiste .wrap { display: flex; gap: 1rem; align-items: center; min-height: 3.4rem; color: var(--ink-3); }
.ausgabe { cursor: help; text-decoration: underline dotted var(--rule); text-underline-offset: .3em; white-space: nowrap; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: .6rem; min-width: 0; }

.suche { position: relative; width: 17rem; flex: none; transition: width var(--t-mid) var(--ease-out); }
.suche:focus-within { width: min(34rem, 60vw); }
.suche-feld { display: flex; align-items: center; gap: .55rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: .42rem .5rem .42rem .9rem; cursor: text; transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-mid) var(--ease-out); }
.suche-feld:hover { border-color: var(--ink-3); }
.suche:focus-within .suche-feld { background: var(--paper); border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-1); }
.suche-feld .ico { color: var(--ink-3); transition: transform var(--t-mid) var(--ease-spring), color var(--t-fast); }
.suche:focus-within .suche-feld .ico { transform: rotate(-12deg) scale(1.12); color: var(--accent-ink); }
.suche-feld input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: .95rem var(--sans); color: var(--ink); outline: none; text-overflow: ellipsis; }
.suche-feld input::placeholder { color: var(--ink-3); }
.suche-feld input::-webkit-search-cancel-button { display: none; }
kbd { font: 600 .68rem var(--sans); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: .05rem .38rem; background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.taste { transition: opacity var(--t-fast); }
.suche:focus-within .taste { opacity: 0; }
.suche-zu { display: none; border: 0; background: none; color: var(--ink-2); font: 600 .85rem var(--sans); cursor: pointer; padding: .3rem .4rem; }
.panel { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-2); padding: .5rem; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; pointer-events: none; visibility: hidden; transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out), visibility 0s linear var(--t-mid); max-height: 70vh; overflow: auto; }
.suche:focus-within .panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.panel h3 { font: 700 .66rem var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: .6rem .6rem .35rem; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel .reihe { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .5rem .3rem; }
.treffer a { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .75rem; align-items: center; padding: .5rem; border-radius: 8px; text-decoration: none; transition: background var(--t-fast); animation: rein var(--t-mid) var(--ease-out) both; }
.treffer li:nth-child(2) a { animation-delay: 40ms; } .treffer li:nth-child(3) a { animation-delay: 80ms; }
.treffer a:hover, .treffer a.sel { background: var(--paper-2); }
.treffer img { width: 3.2rem; height: 2.4rem; object-fit: cover; border-radius: 5px; }
.treffer .t { font: 700 .98rem/1.25 var(--serif); display: block; }
.treffer .s { font: .8rem/1.35 var(--sans); color: var(--ink-3); display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
mark { background: var(--accent-soft); color: var(--ink); padding: 0 .1em; border-radius: 2px; box-shadow: inset 0 -2px 0 var(--accent-line); }
.leer { font: .85rem var(--sans); color: var(--ink-3); padding: .4rem .6rem; }

.titelkopf { text-align: center; padding: 1.75rem 0 1rem; }
.titelkopf a { text-decoration: none; }
.titelkopf .name { font-size: clamp(2.4rem, 9vw, 5.25rem); line-height: 1; letter-spacing: .02em; font-weight: 700; margin: 0; }
.nav { border-top: 3px double var(--rule-strong); border-bottom: 1px solid var(--rule-strong); position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--paper) 94%, transparent); backdrop-filter: blur(8px); }
.nav ul { list-style: none; margin: 0 auto; padding: 0 1.25rem; display: flex; justify-content: center; gap: .25rem 1.75rem; max-width: var(--wide); }
.nav a { display: block; padding: .6rem 0; text-decoration: none; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent-ink); transform: scaleX(0); transition: transform var(--t-mid) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav .alle { color: var(--ink-3); font-style: italic; }

/* ================= Chips & Etiketten ================= */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font: 500 .8rem/1 var(--sans); border: 1px solid var(--rule); border-radius: 999px; padding: .4rem .72rem; text-decoration: none; background: var(--paper); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-spring); }
.chip:hover { border-color: var(--accent-ink); color: var(--ink); background: var(--accent-soft); transform: translateY(-1px); }
.chip:active { transform: scale(.95); }
.chip.tag::before { content: "#"; color: var(--accent-ink); font-weight: 700; }
.chip.kat { border-radius: 6px; background: var(--paper-2); font-weight: 600; }
.chip.kat .ico { color: var(--accent-ink); }
.chip .zahl { color: var(--ink-3); font-size: .72rem; }
.chip.aktiv { background: var(--ink); color: var(--paper); border-color: var(--ink); animation: pop var(--t-mid) var(--ease-spring); }
.chip.aktiv::before, .chip.aktiv .zahl, .chip.aktiv .ico { color: inherit; }
.chip .x { margin-left: .1rem; opacity: .75; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
.badge { display: inline-flex; align-items: center; gap: .38rem; font: 600 .74rem/1 var(--sans); border-radius: 999px; padding: .4rem .7rem .4rem .58rem; text-decoration: none; border: 0; cursor: default; transition: transform var(--t-fast) var(--ease-spring); }
.badge:hover { transform: translateY(-1px); }
.badge.ki { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.badge.quellen { background: color-mix(in oklab, var(--ok) 12%, var(--paper)); color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ok) 35%, transparent); cursor: pointer; }
.badge.zeit { background: var(--paper-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.badge.fokus { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; transition: box-shadow var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-spring); }
.badge.fokus:hover { color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.badge.fokus kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .7; padding: 0 .3rem; }

/* ================= Karten & Startseite ================= */
.aufmacher { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.aufmacher h2 { font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.1; margin: .35rem 0 .6rem; text-wrap: balance; }
.aufmacher h2 a, .karte h3 a { text-decoration: none; }
.dach { color: var(--accent-ink); }
.teaser { color: var(--ink-2); margin: 0 0 .75rem; }
.meta { color: var(--ink-3); font: .8rem/1.4 var(--sans); margin: 0; }
.foto { display: block; position: relative; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out), filter var(--t-slow) var(--ease-out); }
.aufmacher .foto { aspect-ratio: 3 / 2; }
.aufmacher:hover .foto img, .karte:hover .foto img { transform: scale(1.04); }
.raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1.5rem 0 0; }
.karte { position: relative; padding: 0 1.25rem 1.75rem; border-left: 1px solid var(--rule); min-width: 0; }
.karte:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.karte:nth-child(3n) { padding-right: 0; }
.karte h3 { font-size: 1.3rem; line-height: 1.2; margin: .5rem 0 .4rem; transition: color var(--t-fast); }
.karte:hover h3 { color: var(--accent-ink); }
.karte .foto { aspect-ratio: 16 / 9; margin-bottom: .65rem; }
.neu { animation: rein var(--t-slow) var(--ease-out) both; }
@keyframes rein { from { opacity: 0; transform: translateY(10px); } }

/* Seitenzahlen */
.seiten { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule-strong); margin-top: .5rem; padding: 1.1rem 0 2.75rem; font: .88rem var(--sans); }
.seiten ol { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.seiten ol a { display: grid; place-items: center; min-width: 2.4rem; height: 2.4rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-spring); }
.seiten ol a:hover { background: var(--paper-2); transform: translateY(-1px); }
.seiten ol a[aria-current] { background: var(--ink); color: var(--paper); font-weight: 700; }
.seiten .weiter-knopf { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; padding: .55rem .85rem; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink-2); transition: border-color var(--t-fast), transform var(--t-fast) var(--ease-spring); }
.seiten .weiter-knopf:hover { border-color: var(--ink-3); transform: translateX(2px); }
.seiten .weiter-knopf.zurueck:hover { transform: translateX(-2px); }
.seiten [aria-disabled="true"] { opacity: .35; pointer-events: none; }
.seiten .stand { display: none; color: var(--ink-3); }

/* ================= Artikel ================= */
.artikel { padding: 1.5rem 0 3rem; }
.krumen { font: .8rem var(--sans); color: var(--ink-3); }
.krumen ol { list-style: none; padding: 0; margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.krumen li + li::before { content: "›"; margin-right: .4rem; }
.artikelkopf { max-width: 48rem; margin: 1.25rem auto 1.5rem; text-align: center; }
.artikelkopf h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.05; margin: .4rem 0 .75rem; text-wrap: balance; }
.artikelkopf .unterzeile { font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink-2); margin: 0 0 1rem; text-wrap: balance; }
.autor { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem .9rem; font: .85rem var(--sans); color: var(--ink-3); }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.titelbild { max-width: 64rem; margin: 0 auto 2.5rem; }
.titelbild .foto { aspect-ratio: 2 / 1; }
figcaption { font: .8rem/1.45 var(--sans); color: var(--ink-3); margin-top: .5rem; }
figcaption .nachweis { color: var(--ink-3); }

/* Dreispaltig: links Navigation, Mitte Text, rechts "Kurz gesagt". Nichts ragt in die linke Spalte. */
.koerper { display: grid; grid-template-columns: var(--side) minmax(0, var(--measure)) var(--side-r); column-gap: var(--gap); justify-content: center; }
.seitenspalte { position: sticky; top: calc(var(--nav-h) + 1.25rem); align-self: start; font: .85rem/1.45 var(--sans); display: grid; gap: 1.75rem; max-height: calc(100vh - var(--nav-h) - 2.5rem); overflow: auto; transition: opacity var(--t-mid), transform var(--t-mid) var(--ease-out); }
.seitenspalte.weg { opacity: 0; transform: translateX(-8px); pointer-events: none; }
.iv ol { list-style: none; margin: .6rem 0 0; padding: 0; position: relative; border-left: 2px solid var(--rule); counter-reset: iv; }
.iv li { counter-increment: iv; }
.iv a { display: block; padding: .38rem 0 .38rem .9rem; text-decoration: none; color: var(--ink-3); transition: color var(--t-fast); }
.iv a::before { content: counter(iv, decimal-leading-zero) " "; font-variant-numeric: tabular-nums; color: var(--rule); margin-right: .2rem; transition: color var(--t-fast); }
.iv a:hover { color: var(--ink); }
.iv a[aria-current] { color: var(--ink); font-weight: 600; }
.iv a[aria-current]::before { color: var(--accent-ink); }
.iv .marker { position: absolute; left: -2px; top: 0; width: 2px; height: 2rem; background: var(--accent-ink); border-radius: 2px; transition: transform var(--t-mid) var(--ease-out), height var(--t-mid) var(--ease-out); }
.seitenspalte .chips { margin-top: .6rem; }

.text { min-width: 0; }
.text > * { margin: 0 0 1.15rem; }
.text h2 { font-size: 1.65rem; line-height: 1.2; margin: 2.6rem 0 .9rem; text-wrap: balance; clear: both; }
.lead { font-size: 1.28rem; line-height: 1.5; }
.dropcap::first-letter { float: left; font-size: 4.2em; line-height: .82; padding: .05em .08em 0 0; color: var(--accent-ink); font-weight: 700; }
.tldr, .sidenote { font: .84rem/1.5 var(--sans); color: var(--ink-2); background: var(--paper-2); border-radius: 10px; padding: .8rem .95rem .85rem; box-shadow: inset 3px 0 0 var(--accent-ink); }
.kurz-titel { display: flex; align-items: center; gap: .35rem; font: 700 .66rem var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .3rem; }
.tldr:first-child { background: var(--accent-soft); }
.tldr > :last-child, .sidenote > :last-child { margin-bottom: 0; }
.tldr p, .sidenote p { margin: 0 0 .5rem; }
.tldr ul, .tldr ol, .sidenote ul, .sidenote ol { margin: 0; padding-left: 1.05rem; }
.tldr li + li, .sidenote li + li { margin-top: .4rem; }
.callout { border-left: 4px solid var(--accent-ink); background: var(--paper-2); padding: .9rem 1.1rem; font-size: 1rem; border-radius: 0 8px 8px 0; }
.factbox { border: 1px solid var(--rule-strong); padding: 1rem 1.2rem; font: .95rem/1.5 var(--sans); border-radius: 4px; }
.factbox h3 { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .5rem; color: var(--accent-ink); }
.factbox ul { margin: 0; padding-left: 1.1rem; }
.pullquote { font-size: 1.65rem; line-height: 1.3; font-style: italic; text-align: center; border-block: 1px solid var(--rule); padding: 1.3rem .5rem; margin: 2.2rem 0; text-wrap: balance; }
.pullquote cite { display: block; font: normal .8rem var(--sans); color: var(--ink-3); margin-top: .5rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; border-block: 1px solid var(--rule); padding: 1rem 0; }
.stat b { display: block; font-size: 2rem; line-height: 1.1; color: var(--accent-ink); }
.stat span { font: .8rem/1.3 var(--sans); color: var(--ink-3); }
sup a { text-decoration: none; color: var(--accent-ink); font: 600 .7rem var(--sans); }

/* Bilder im Text. Regel: inline/left/right bleiben in der Textspalte; wide und Galerie
   nutzen zusätzlich die rechte Spalte, aber nur in Artikeln ohne "Kurz gesagt"/Randnotiz —
   sonst bleiben sie in der Textspalte und können keine Notiz überlagern;
   full geht über die ganze Breite, die linke Navigation blendet sich so lange aus. */
.abb { margin: 2rem 0; }
.abb .foto { cursor: zoom-in; }
.abb .foto img { aspect-ratio: 3 / 2; }
.abb:hover .foto img { transform: scale(1.02); }
.abb[data-layout="wide"], .galerie { clear: both; }
.text:not(:has(> .tldr, > .sidenote)) > .abb[data-layout="wide"], .text:not(:has(> .tldr, > .sidenote)) > .galerie { margin-right: calc(-1 * (var(--side-r) + var(--gap))); }
.abb[data-layout="full"] { clear: both; position: relative; z-index: 2; width: 100vw; margin-left: calc(50% - 50vw); }
.abb[data-layout="full"] .foto { border-radius: 0; }
.abb[data-layout="full"] .foto img { aspect-ratio: 21 / 9; }
.abb[data-layout="full"] figcaption { max-width: calc(var(--measure) + 2.5rem); margin-inline: auto; padding: 0 1.25rem; }
.abb[data-layout="left"] { float: left; width: 46%; margin: .3rem 1.5rem 1rem 0; }
.abb[data-layout="right"] { float: right; width: 46%; margin: .3rem 0 1rem 1.5rem; }
.abb[data-layout="left"] .foto img, .abb[data-layout="right"] .foto img { aspect-ratio: 4 / 5; }
.galerie { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: .5rem; margin-top: 2rem; margin-bottom: 2rem; }
.galerie .foto:first-child { grid-row: span 2; }
.galerie .foto img { aspect-ratio: auto; height: 100%; min-height: 9rem; }
.galerie figcaption { grid-column: 1 / -1; }

/* Breit: "Kurz gesagt" und Randnotiz stehen frei in der rechten Spalte neben ihrer Stelle im Text,
   ohne Platz im Textfluss zu belegen — der Text läuft ungebrochen weiter. Überlappungen mit
   Nachbarnotizen und breiten Bildern löst artikel.js (placeMarginNotes). */
@media (min-width: 62.01rem) {
  .text { position: relative; }
  .text > .tldr, .text > .sidenote { position: absolute; left: calc(100% + var(--gap)); width: var(--side-r); margin: .3rem 0 0; }
}

.transparenz { border: 1px solid var(--rule); background: var(--paper-2); padding: 1rem 1.2rem; font: .9rem/1.5 var(--sans); margin-top: 2.5rem; display: flex; gap: .8rem; border-radius: 10px; clear: both; }
.transparenz .ico { font-size: 1.3rem; color: var(--accent-ink); margin-top: .1rem; }
.quellen { font: .88rem/1.5 var(--sans); clear: both; }
.abschnitt-titel { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; border-top: 1px solid var(--rule-strong); padding-top: .8rem; margin-top: 2.5rem; }
.quellen ol { padding-left: 1.4rem; }
.quellen li { margin: .4rem 0; overflow-wrap: anywhere; }
.vornach { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-block: 1px solid var(--rule); padding: 1rem 0; margin-top: 2rem; font-size: 1rem; clear: both; }
.vornach a { text-decoration: none; } .vornach .klein { display: block; color: var(--ink-3); }
.vornach div:last-child { text-align: right; }
.tags-unten { clear: both; }

/* Inhaltsverzeichnis schmal: klebt unter der Kategorie-Leiste und zeigt den aktuellen Abschnitt */
.iv-mobil { position: sticky; top: var(--nav-h); z-index: 14; margin: 0 -1.25rem 1.25rem; background: color-mix(in oklab, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); font: .85rem var(--sans); }
.iv-mobil summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .7rem 1.25rem; cursor: pointer; }
.iv-mobil summary::-webkit-details-marker { display: none; }
.iv-mobil summary .klein { color: var(--accent-ink); }
.iv-mobil summary .jetzt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.iv-mobil summary .pfeil { transition: transform var(--t-mid) var(--ease-out); }
.iv-mobil[open] summary .pfeil { transform: rotate(180deg); }
.iv-mobil ol { margin: 0; padding: 0 1.25rem .8rem 2.6rem; }
.iv-mobil li { padding: .3rem 0; }
.iv-mobil a { text-decoration: none; }

/* ================= Fokusmodus ================= */
.fokus-raus { position: fixed; top: 1rem; right: 1rem; z-index: 70; display: none; align-items: center; gap: .5rem; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: .55rem .9rem; font: 600 .82rem var(--sans); cursor: pointer; box-shadow: var(--shadow-2); opacity: .2; transition: opacity var(--t-mid); }
.fokus-raus:hover, .fokus-raus:focus-visible, body.fokus.maus .fokus-raus { opacity: 1; }
.fokus-raus kbd { background: transparent; color: inherit; border-color: color-mix(in oklab, var(--paper) 40%, transparent); }
body.fokus .fokus-raus { display: inline-flex; }
body.fokus header, body.fokus .fuss, body.fokus .seitenspalte, body.fokus .iv-mobil, body.fokus .tldr, body.fokus .sidenote, body.fokus .krumen, body.fokus .badges, body.fokus .mehr-dazu, body.fokus .vornach, body.fokus .tags-unten { display: none !important; }
/* Fokus nutzt die Bildschirmbreite: breite Spalte, Schrift wächst mit, Bilder randlos */
body.fokus { --fokus-breite: min(68rem, 92vw); }
body.fokus .artikel.wrap { max-width: none; padding-top: 4rem; }
body.fokus .koerper { grid-template-columns: minmax(0, var(--fokus-breite)); }
body.fokus .text { font-size: clamp(1.15rem, .9rem + .55vw, 1.45rem); line-height: 1.75; }
body.fokus .text .stats { grid-template-columns: repeat(3, 1fr); }
body.fokus .artikelkopf { max-width: var(--fokus-breite); }
body.fokus .artikelkopf h1 { font-size: clamp(2.2rem, 4.5vw, 4.4rem); }
body.fokus .titelbild { max-width: var(--fokus-breite); }
body.fokus .abb[data-layout="wide"], body.fokus .galerie { margin-right: 0; }
body.fokus .abb[data-layout="left"], body.fokus .abb[data-layout="right"] { float: none; width: auto; margin: 2rem 0; }

/* ================= Alle Kategorien ================= */
.seitenkopf { text-align: center; padding: 2rem 0 1rem; }
.seitenkopf h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: .3rem 0; overflow-wrap: anywhere; }
.seitenkopf p { color: var(--ink-2); margin: 0; font-style: italic; }
.katgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; padding: 1.5rem 0 3rem; }
.katkarte { grid-column: span 2; position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; min-height: 19rem; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem; box-shadow: var(--shadow-1); transition: box-shadow var(--t-mid), transform var(--t-mid) var(--ease-out); }
.katkarte.gross { grid-column: span 3; min-height: 23rem; }
.katkarte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--t-slow) var(--ease-out), filter var(--t-slow) var(--ease-out); }
.katkarte::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,8,5,0) 25%, rgba(10,8,5,.82) 100%); transition: background var(--t-slow) var(--ease-out); }
.katkarte::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); mix-blend-mode: multiply; opacity: 0; transition: opacity var(--t-slow) var(--ease-out); }
.katkarte:hover, .katkarte:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.katkarte:hover img, .katkarte:focus-visible img { transform: scale(1.08); filter: blur(3px) saturate(.6) brightness(.85); }
.katkarte:hover::after, .katkarte:focus-visible::after { opacity: .55; }
.katkarte:hover::before { background: linear-gradient(180deg, rgba(10,8,5,.15) 0%, rgba(10,8,5,.85) 100%); }
.katkarte .klein { opacity: .85; }
.katkarte h2 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.05; margin: .25rem 0 .35rem; display: flex; align-items: center; gap: .5rem; }
.katkarte h2 .pfeil { display: inline-block; font-size: 1.3rem; opacity: 0; transform: translateX(-8px); transition: opacity var(--t-mid), transform var(--t-mid) var(--ease-spring); }
.katkarte:hover h2 .pfeil { opacity: 1; transform: none; }
.katkarte p { margin: 0; font-size: .98rem; line-height: 1.45; opacity: .92; max-width: 30rem; }
.katkarte .mehr { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease-out); }
.katkarte .mehr > div { overflow: hidden; }
.katkarte:hover .mehr, .katkarte:focus-within .mehr { grid-template-rows: 1fr; }
.katkarte .unterkat { display: flex; gap: .35rem; flex-wrap: wrap; padding-top: .8rem; }
.katkarte .unterkat span { font: 600 .74rem var(--sans); background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .3rem .6rem; }
.katkarte .neuester { font: .78rem var(--sans); opacity: .85; padding-top: .6rem; }
/* Touch-Geräte haben kein Hover: Unterkategorien immer zeigen, kein Weichzeichner */
@media (hover: none) {
  .katkarte .mehr { grid-template-rows: 1fr; }
  .katkarte h2 .pfeil { opacity: 1; transform: none; }
  .katkarte:active img { filter: blur(2px) brightness(.85); }
}

/* ================= Schnellfilter ================= */
.filterleiste { position: sticky; top: var(--nav-h); z-index: 15; background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); padding: .75rem 0; }
.filterleiste .wrap { display: grid; gap: .55rem; }
.filterzeile { display: flex; align-items: center; gap: .6rem; font: .82rem var(--sans); color: var(--ink-3); min-width: 0; }
.filterzeile > b { color: var(--ink-2); font-weight: 600; min-width: 7rem; flex: none; }
.filterzeile .chips { flex-wrap: wrap; }
.ergebniszahl { font: .85rem var(--sans); color: var(--ink-3); padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ergebniszahl b { color: var(--ink); font-variant-numeric: tabular-nums; display: inline-block; }
.ergebniszahl b.neu { animation: pop var(--t-mid) var(--ease-spring); }

/* ================= Fuß ================= */
.fuss { border-top: 3px double var(--rule-strong); padding: 2rem 0 3rem; color: var(--ink-3); font: .85rem/1.6 var(--sans); clear: both; }
.fuss .spalten { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.fuss h2 { font: 700 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .7rem; }
.fuss nav { display: flex; flex-direction: column; gap: .2rem; }
.fuss .unten { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--rule); margin-top: 1.5rem; padding-top: 1rem; }

/* ================= Tablet (bis 62rem ≈ 992 px) ================= */
@media (max-width: 62rem) {
  .koerper { grid-template-columns: minmax(0, var(--measure)); }
  .seitenspalte { display: none; }
  .iv-mobil { display: block !important; }
  .nur-schmal { display: revert !important; }
  .kopf-tags.nur-schmal { display: flex !important; margin: -.25rem 0 1.4rem; }
  body.fokus .kopf-tags { display: none !important; }
  .abb[data-layout="wide"], .galerie { margin-right: 0; }
  .abb[data-layout="full"] { z-index: auto; }
  .katkarte, .katkarte.gross { grid-column: span 3; }
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .karte, .karte:nth-child(n) { border-left: 1px solid var(--rule); padding: 0 1.1rem 1.6rem; }
  .karte:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .karte:nth-child(2n) { padding-right: 0; }
  .ausgabe-datum { display: none; }
  .nav ul { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav ul::-webkit-scrollbar { display: none; }
  .suche { width: 13rem; }
}

/* ================= Handy (bis 46rem ≈ 736 px) ================= */
@media (max-width: 46rem) {
  :root { --nav-h: 2.75rem; }
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 1rem; }
  .leiste .wrap { min-height: 3.2rem; gap: .5rem; }
  .ausgabe-zeile { display: none; }
  .kopf-rechts { margin-left: 0; width: 100%; justify-content: flex-end; }
  .suche { width: auto; flex: 1; }
  .suche:focus-within { width: auto; }
  .suche-feld input::placeholder { font-size: .9rem; }
  .taste { display: none; }
  /* Suche wird beim Tippen zur Vollbild-Ebene */
  .suche:focus-within { position: fixed; inset: 0; z-index: 85; background: var(--paper); padding: .75rem 1rem; display: flex; flex-direction: column; }
  .suche:focus-within .suche-feld { box-shadow: none; }
  .suche:focus-within .suche-zu { display: inline-block; }
  .suche:focus-within .panel { position: static; border: 0; box-shadow: none; max-height: none; flex: 1; padding: .5rem 0; }
  .titelkopf { padding: 1.1rem 0 .7rem; }
  .nav ul { padding: 0 1rem; gap: 1.25rem; }
  .nav a { padding: .55rem 0; font-size: 1rem; }

  .aufmacher { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem 0; }
  /* Liste statt Raster: Bild links klein, Text rechts – mehr Artikel pro Bildschirm */
  .raster { grid-template-columns: 1fr; padding-top: .5rem; }
  .karte, .karte:nth-child(n) { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: .9rem; border-left: 0; padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
  .karte .foto { grid-row: 1 / span 4; aspect-ratio: 1; margin: 0; }
  .karte h3 { font-size: 1.08rem; margin: .2rem 0 .25rem; }
  .karte .teaser { display: none; }
  .seiten ol { display: none; }
  .seiten .stand { display: inline; }

  .artikelkopf { margin-top: .8rem; text-align: left; }
  .autor, .badges { justify-content: flex-start; }
  .titelbild { margin: 0 -1rem 1.75rem; }
  .titelbild .foto { aspect-ratio: 4 / 3; border-radius: 0; }
  .titelbild figcaption { padding: 0 1rem; }
  .iv-mobil { margin: 0 -1rem 1.25rem; }
  .iv-mobil summary { padding: .65rem 1rem; }
  .text > * { margin-bottom: 1.05rem; }
  .text h2 { font-size: 1.4rem; margin-top: 2.1rem; }
  .lead { font-size: 1.15rem; }
  .stats { grid-template-columns: 1fr; gap: .6rem; }
  .pullquote { font-size: 1.3rem; }
  .abb[data-layout="left"], .abb[data-layout="right"] { float: none; width: auto; margin: 1.5rem 0; }
  .abb[data-layout="left"] .foto img, .abb[data-layout="right"] .foto img { aspect-ratio: 3 / 2; }
  .abb[data-layout="wide"], .abb[data-layout="full"] { width: auto; margin: 1.5rem -1rem; }
  .abb[data-layout="wide"] .foto, .abb[data-layout="full"] .foto { border-radius: 0; }
  .abb[data-layout="wide"] figcaption, .abb[data-layout="full"] figcaption { padding: 0 1rem; }
  .abb[data-layout="full"] .foto img { aspect-ratio: 4 / 3; }
  .galerie { grid-template-columns: 1fr 1fr; grid-template-rows: auto; margin: 1.5rem -1rem; }
  .galerie .foto { border-radius: 0; }
  .galerie .foto:first-child { grid-column: 1 / -1; grid-row: auto; }
  .galerie figcaption { padding: 0 1rem; }
  .vornach { grid-template-columns: 1fr; }
  .vornach div:last-child { text-align: left; }

  .katgrid { grid-template-columns: 1fr; gap: .8rem; }
  .katkarte, .katkarte.gross { grid-column: 1 / -1; min-height: 13.5rem; padding: 1.1rem; }
  .katkarte p { font-size: .92rem; }

  .filterzeile { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .filterzeile > b { min-width: 0; }
  .filterzeile .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 1rem); padding-bottom: .2rem; scrollbar-width: none; }
  .ergebniszahl .meta { display: none; }

  .fuss .spalten { grid-template-columns: 1fr; }
  .fuss .chips { gap: .35rem; }
  /* Auf dem Handy klebt nicht die Kategorie-Leiste, sondern das, was auf der Seite gerade zählt
     (Inhaltsverzeichnis, Filter) – bündig am oberen Rand */
  .nav { position: relative; }
  .iv-mobil, .filterleiste { top: 0; }
  html { scroll-padding-top: 4rem; }
  .artikel { padding-top: 1.25rem; }
  .krumen { margin-bottom: .25rem; }
  .iv-mobil .iv-tags { padding: .2rem 1.25rem 1rem; border-top: 1px solid var(--rule); }
  .iv-mobil .iv-tags .klein { display: block; color: var(--ink-3); margin: .7rem 0 .5rem; }
  body.fokus .text { font-size: 1.15rem; }
  body.fokus .artikel { padding-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ================= Bausteine ohne Entwurf ================= */
.text .callout.note { border-left-color: var(--ink-3); }
.text .callout.warning { border-left-color: var(--warn); }
.text .callout.key { border-left-color: var(--accent-ink); }

.timeline, .steps, .checklist { list-style: none; padding: 0; }
.timeline { position: relative; border-radius: 10px; margin-block: 1.5rem; padding-left: 1.6rem; border-left: 2px solid var(--rule); }
.timeline > li { position: relative; padding-bottom: 1rem; }
.timeline > li::before { content: ""; position: absolute; left: calc(-1.6rem - 6px); top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-ink); box-shadow: 0 0 0 3px var(--paper); }
.steps { counter-reset: schritt; }
.steps > li { counter-increment: schritt; position: relative; padding: 0 0 1rem 2.6rem; }
.steps > li::before { content: counter(schritt); position: absolute; left: 0; top: .1em; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-ink); color: var(--paper); font: 700 .72rem var(--sans); }
.checklist > li { position: relative; padding: 0 0 .5rem 1.7rem; }
.checklist > li::before { content: ""; position: absolute; left: .1rem; top: .35em; width: .55rem; height: .9rem; border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(40deg) scale(.8); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-radius: 10px; }
.two-col > * { min-width: 0; padding: .9rem 1.1rem; background: var(--paper-2); border-radius: 10px; font-size: 1rem; }
.two-col .pros { border-top: 3px solid var(--ok); }
.two-col .cons { border-top: 3px solid var(--bad); }
.two-col > * > :first-child { margin-top: 0; }
.two-col > * > :last-child { margin-bottom: 0; }

.compare { display: block; border-radius: 10px; overflow-x: auto; border-collapse: collapse; font: .92rem/1.45 var(--sans); max-width: 100%; }
.compare th, .compare td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { background: var(--paper-2); border-bottom: 1px solid var(--rule-strong); }

.qa > dt, .qa > .frage { font: 700 1.05rem/1.35 var(--serif); margin-top: 1rem; }
.qa > dd, .qa > .antwort { margin: .3rem 0 0 1.25rem; }
.qa { border-radius: 10px; }

.definition { background: var(--paper-2); border-radius: 10px; padding: .9rem 1.1rem; font-size: 1rem; }
.definition dt, .definition strong:first-child { font-variant: small-caps; letter-spacing: .06em; font-weight: 700; }
.definition dd { margin: .2rem 0 0; }

.text details:not(.iv-mobil), .text .details { border: 1px solid var(--rule); border-radius: 10px; padding: 0 1.1rem; font-size: 1rem; }
.text details:not(.iv-mobil) > summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .8rem 0; cursor: pointer; font: 600 .95rem var(--sans); }
.text details:not(.iv-mobil) > summary::-webkit-details-marker { display: none; }
.text details:not(.iv-mobil) > summary::after { content: ""; margin-left: auto; width: .55rem; height: .55rem; border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--t-mid) var(--ease-out); }
.text details:not(.iv-mobil)[open] > summary::after { transform: rotate(225deg); }
.text details:not(.iv-mobil)[open] { padding-bottom: .4rem; }

.opinion, .update { position: relative; background: var(--paper-2); border-radius: 10px; padding: 1.9rem 1.1rem .9rem; font-size: 1rem; }
.opinion::before, .update::before { position: absolute; top: .6rem; left: 1.1rem; font: 700 .66rem var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.opinion { box-shadow: inset 3px 0 0 var(--warn); }
.opinion::before { content: "Meinung"; color: var(--warn); }
.update { box-shadow: inset 3px 0 0 var(--accent-ink); }
.update::before { content: "Korrektur"; color: var(--accent-ink); }

p.dokument::before { content: ""; display: inline-block; width: .9em; height: 1.1em; margin-right: .5em; vertical-align: -.2em; border: 2px solid var(--accent-ink); border-radius: 2px 6px 2px 2px; background: linear-gradient(var(--accent-ink), var(--accent-ink)) 50% 60% / 55% 2px no-repeat; }

/* ================= Lightbox ================= */
dialog.lightbox { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: rgba(10,8,5,.92); color: #fff; display: none; place-items: center; align-content: center; gap: .6rem; opacity: 1; transform: none; border-radius: 0; box-shadow: none; }
dialog.lightbox[open] { display: grid; }
dialog.lightbox::backdrop { background: rgba(10,8,5,.92); backdrop-filter: none; }
dialog.lightbox img { max-width: 96vw; max-height: 90vh; object-fit: contain; }
dialog.lightbox figcaption, dialog.lightbox .lightbox-text { font: .8rem/1.4 var(--sans); color: rgba(255,255,255,.85); margin: 0; text-align: center; max-width: 96vw; }
dialog.lightbox .zu { position: absolute; top: 1rem; right: 1rem; color: #fff; font-size: 1.6rem; }
dialog.lightbox .zu:hover { background: rgba(255,255,255,.15); }

/* ================= Einbettung ================= */
.einbettung { position: relative; display: grid; align-content: start; margin: 2rem 0; clear: both; }
.einbettung::before { content: ""; display: block; grid-area: 1 / 1; aspect-ratio: 16 / 9; background: var(--paper-2); border-radius: 4px; }
.einbettung-start { grid-area: 1 / 1; place-self: center; display: grid; justify-items: center; gap: .6rem; border: 0; background: none; cursor: pointer; font: 600 .85rem var(--sans); color: var(--ink-2); text-align: center; padding: 1rem; }
.einbettung-start::before { content: ""; grid-area: 1 / 1; width: 4rem; height: 4rem; border-radius: 50%; background: var(--accent-ink); box-shadow: var(--shadow-1); transition: transform var(--t-mid) var(--ease-spring); }
.einbettung-start::after { content: ""; grid-area: 1 / 1; place-self: center; margin-left: .2rem; width: 1.2rem; height: 1.4rem; background: var(--paper); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.einbettung-start:hover::before { transform: scale(1.08); }
.einbettung-start small { display: block; font-size: .8rem; font-weight: 400; color: var(--ink-3); max-width: 28rem; }
.einbettung iframe { grid-area: 1 / 1; width: 100%; height: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }
.einbettung figcaption { grid-row: 2; }

/* ================= Druck ================= */
@media print {
  html { background: #fff; color: #000; }
  body { font-size: 11pt; overflow: visible; }
  header, .leiste, .nav, .fuss, .seitenspalte, .iv-mobil, .einbettung, .fortschritt, .fokus-raus, .sprung, .krumen, .vornach, .kopf-tags, dialog, button { display: none !important; }
  .koerper { display: block; }
  .text > * { color: #000; }
  .text a[href^="http"]::after, .quellen a[href^="http"]::after { content: " (" attr(href) ")"; font: .8em var(--sans); overflow-wrap: anywhere; }
  .abb, .callout, .factbox { break-inside: avoid; }
  .abb[data-layout] { float: none; width: auto; margin: 1rem 0; }
  .abb[data-layout="full"] { width: auto; margin-left: 0; }
  .galerie { margin-right: 0; }
  .text { position: static; }
  .text > .tldr, .text > .sidenote { position: static; width: auto; margin: 0 0 1rem; }
}

/* ================= Layouts und Seitenbausteine ================= */
.hinweis { text-align: center; color: var(--ink-3); font: .95rem var(--sans); padding: 2rem 0; }
.seiten:empty { display: none; }
.seiten ol li[aria-hidden] { display: grid; place-items: center; min-width: 1.4rem; color: var(--ink-3); }
.seitentext { max-width: var(--measure); margin: 0 auto 3rem; }
.katkarte h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; margin: .25rem 0 .35rem; }
.katkarte.kopf { grid-column: auto; min-height: 16rem; margin: 1.25rem 0 1rem; box-shadow: var(--shadow-1); }
.katkarte.kopf:hover, .katkarte.kopf:focus-visible { transform: none; box-shadow: var(--shadow-1); }
.katkarte.kopf:hover img { transform: none; filter: none; }
.katkarte.kopf:hover::after { opacity: 0; }
.katkarte.kopf:hover::before { background: linear-gradient(180deg, rgba(10,8,5,0) 25%, rgba(10,8,5,.82) 100%); }
.katkarte.verlauf { background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 85%, #000), color-mix(in oklab, var(--accent) 35%, #000)); }
.unterkategorien { margin: 0 0 1rem; }

.layout-feature .artikelkopf h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
.layout-feature .titelbild { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.layout-feature .titelbild .foto { aspect-ratio: 21 / 9; border-radius: 0; }
.layout-feature .titelbild figcaption { max-width: var(--wide); margin-inline: auto; padding: 0 1.25rem; }
.layout-briefing { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; column-gap: 2rem; align-items: center; }
.layout-briefing > * { grid-column: 1 / -1; }
.layout-briefing > .krumen { grid-row: 1; }
.layout-briefing > .artikelkopf { grid-column: 1; grid-row: 2; max-width: none; margin: 1.25rem 0 1.5rem; text-align: left; }
.layout-briefing > .artikelkopf:not(:has(+ .titelbild)) { grid-column: 1 / -1; }
.layout-briefing > .titelbild { grid-column: 2; grid-row: 2; max-width: none; margin: 0; }
.layout-briefing .titelbild .foto { aspect-ratio: 1; }
.layout-briefing .autor, .layout-briefing .badges { justify-content: flex-start; }
@media (max-width: 46rem) {
  .layout-feature .titelbild { width: auto; margin: 0 -1rem 1.75rem; }
  .layout-feature .titelbild .foto { aspect-ratio: 4 / 3; }
  .layout-feature .titelbild figcaption { padding: 0 1rem; }
  .layout-briefing { display: flex; flex-direction: column; align-items: stretch; }
  .layout-briefing > .krumen { order: -2; }
  .layout-briefing > .titelbild { order: -1; margin: .5rem 0 0; }
  .layout-briefing .titelbild .foto { aspect-ratio: 16 / 9; }
}
.konto { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--rule); background: transparent; border-radius: 999px; padding: .38rem .8rem .38rem .45rem; font: 600 .82rem var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; flex: none; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.konto:hover { border-color: var(--ink-3); background: var(--paper-2); }
.konto:active { transform: scale(.96); }
.konto .avatar { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper-3); font-size: .8rem; }
body.angemeldet .nur-gast { display: none; }
dialog { border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 0; border-radius: 16px; box-shadow: var(--shadow-2); width: min(40rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); }
dialog[open] { display: flex; flex-direction: column; }
dialog form { display: flex; flex-direction: column; min-height: 0; }
dialog::backdrop { background: rgba(20,16,10,.45); backdrop-filter: blur(3px); }
.dlg-kopf { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); flex: none; }
.dlg-kopf h2 { margin: 0; font-size: 1.3rem; }
.zu { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-3); padding: .35rem .5rem; border-radius: 6px; }
.zu:hover { background: var(--paper-2); }
.dlg-rumpf { padding: 1.25rem; font: .92rem/1.5 var(--sans); overflow: auto; flex: 1; }
.dlg-fuss { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.25rem; border-top: 1px solid var(--rule); flex: none; flex-wrap: wrap; }
label.feld { display: grid; gap: .3rem; margin-bottom: .9rem; font: 600 .82rem var(--sans); }
label.feld input { font: 1rem var(--sans); padding: .6rem .7rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
label.feld input:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.hinweis { font: .82rem/1.5 var(--sans); color: var(--ink-3); background: var(--paper-2); border-radius: 8px; padding: .65rem .8rem; margin: 0 0 1rem; }
.hinweis[role="alert"] { color: var(--bad); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 .82rem var(--sans); border-radius: 8px; padding: .5rem .85rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-spring); }
.knopf:hover { border-color: var(--ink-3); box-shadow: var(--shadow-1); }
.knopf:active { transform: scale(.96); }
.knopf.primaer { background: var(--accent-ink); color: var(--paper); border-color: var(--accent-ink); }
@media (max-width: 46rem) {
  .konto { padding: .3rem; }
  .konto .text { display: none; }
  .dlg-fuss .knopf { flex: 1; padding: .7rem; }
}
