/* ============================================================
   notmines-reaktor — Leitstand-Theme
   Farbwelt bewusst einthemig dunkel.
   ============================================================ */

@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --ground:    oklch(16% 0.026 262);
  --deep:      oklch(11% 0.028 262);
  --line:      oklch(100% 0 0 / 0.14);
  --line-soft: oklch(100% 0 0 / 0.08);
  --glass:     oklch(100% 0 0 / 0.045);
  --glass-hi:  oklch(100% 0 0 / 0.09);

  /* Kein reines Weiß — auf dunklem Grund blendet das. Stattdessen ein heller,
     leicht blauer Ton, der zur Akzentfarbe passt. */
  --ink:      oklch(91% 0.030 258);
  --ink-dim:  oklch(78% 0.028 260);
  --ink-mute: oklch(64% 0.028 262);

  --lila: oklch(68% 0.225 292);
  --cyan: oklch(88% 0.165 178);
  --blau: oklch(70% 0.190 248);   /* dritte Leitfarbe, damit es weniger lila-lastig wirkt */
  --gruen: oklch(87% 0.180 160);
  --ok:   oklch(82% 0.175 150);
  --warn: oklch(84% 0.155 75);

  --sans: system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --r: 18px;
  --gap: clamp(0.7rem, 1.6vw, 1.15rem);
  --pad: clamp(1.15rem, 2.4vw, 1.7rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Nutzt auf großen Bildschirmen deutlich mehr Platz, bleibt aber gedeckelt.
     Fließtext bleibt schmal — lange Zeilen liest niemand gern. */
  --breit: min(1560px, 94vw);
  /* Wächst mit dem Bildschirm mit. Die Schriftgröße unten wächst im gleichen
     Maß — nur so bleibt die Zeilenlänge im lesbaren Bereich, statt einfach
     länger zu werden. */
  --schmal: min(880px, 92vw);
}

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

/* Riegel gegen waagerechtes Scrollen: `hidden` auf dem body allein genügt
   nicht, wenn ein Element darüber hinausragt — das Dokument scrollt dann
   trotzdem. `clip` unterbindet das zuverlässig. */
html { scroll-behavior: smooth; overflow-x: clip; }

/* Weiche Übergänge zwischen Seiten statt hartem Umschalten. Browser ohne
   Unterstützung ignorieren die Regel — dann bleibt es wie bisher. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .18s; }
::view-transition-new(root) { animation-duration: .26s; }

body {
  margin: 0;
  /* Dem Shader nachempfunden, damit beim Laden kein sichtbarer Sprung entsteht:
     Bis das erste gerechnete Bild steht, sieht man schon dieselbe Stimmung. */
  background:
    radial-gradient(70vw 55vh at 50% -12%, oklch(25% 0.075 250), transparent 62%),
    radial-gradient(50vw 40vh at 88% 18%,  oklch(21% 0.045 200), transparent 66%),
    linear-gradient(oklch(15% 0.028 262), oklch(11% 0.028 262) 65%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cyan); color: var(--deep); padding: 0.7rem 1.1rem;
  font-weight: 600; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.mono { font-family: var(--mono); }

/* ---------- Hintergrund ---------- */
#gl { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; display: block; }

/* Auf Lese-Seiten zusätzlich gedämpft: Text hat dort Vorrang vor Atmosphäre.
   Ghost vergibt die Vorlagen-Klasse am body, danach lässt sich das steuern. */
body:not(.home-template) #gl { opacity: 0.55; }

/* Schutzschicht hinter der Textspalte, damit Buchstaben nie auf hellen
   Hintergrundstellen sitzen. */
.artikel .inhalt, .artikel .artikel-kopf, .artikel .artikel-fuss, .weiterlesen .abschnitt-titel {
  position: relative;
}
.artikel .inhalt::before, .artikel .artikel-kopf::before,
.artikel .artikel-fuss::before, .weiterlesen .abschnitt-titel::before {
  /* Seitlich bündig: Ein negativer Wert links und rechts ragte über die
     Seitenbreite hinaus und erzeugte einen waagerechten Scrollbereich. Der
     Weichzeichner verläuft ohnehin nach außen, ein Überstand ist unnötig. */
  content: ""; position: absolute; inset: -1.5rem 0; z-index: -1;
  background: oklch(11% 0.028 262 / 0.62);
  filter: blur(28px);
  pointer-events: none;
}
#fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none;
  background:
    radial-gradient(60vw 50vh at 22% 12%, oklch(70% 0.190 248 / 0.32), transparent 65%),
    radial-gradient(50vw 42vh at 82% 26%, oklch(88% 0.165 178 / 0.20), transparent 65%);
}

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: 0 50%; scale: 0 1; z-index: 50;
  background: linear-gradient(90deg, var(--blau), var(--gruen), var(--lila));
  box-shadow: 0 0 16px oklch(88% 0.165 178 / 0.8);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { scale: 1 1; } }
}

/* ---------- Breiten ---------- */
.huelle, .huelle-schmal {
  position: relative; z-index: 3;
  margin: 0 auto; padding-inline: clamp(0.9rem, 3vw, 2rem);
  perspective: 1400px;
}
.huelle { max-width: var(--breit); }
.huelle-schmal { max-width: var(--schmal); }

main { position: relative; z-index: 3; padding-bottom: 4rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 35;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.8rem clamp(0.9rem, 3vw, 2rem);
  background: oklch(16% 0.026 262 / 0.45);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  font-weight: 800; letter-spacing: -0.035em; font-size: 1.08rem;
  margin-right: auto; text-decoration: none; flex: none;
}
.brand span {
  background: linear-gradient(100deg, var(--blau), var(--gruen), var(--lila), var(--blau));
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 11s linear infinite;
}
@keyframes shimmer { to { background-position: 260% 0; } }

.nav ul {
  display: flex; gap: 1.15rem; list-style: none; margin: 0; padding: 0;
  font-size: 0.84rem; color: var(--ink-dim); overflow-x: auto; scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav ul a { text-decoration: none; white-space: nowrap; position: relative; padding-bottom: 3px; transition: color .35s; display: inline-block; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--blau), var(--gruen), var(--lila));
  scale: 0 1; transform-origin: 0 50%; transition: scale .5s var(--ease);
}
.nav ul a:hover { color: var(--ink); }
.nav ul a:hover::after { scale: 1 1; }

/* ---------- Kopfbereich ---------- */
.hero { padding: clamp(3.4rem, 10vw, 7rem) 0 clamp(1.4rem, 4vw, 2.4rem); text-align: center; }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 1.3rem;
}
.hero-titel {
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 0.96; letter-spacing: -0.05em; font-weight: 800;
  margin: 0 auto 1.2rem; max-width: 16ch; text-wrap: balance;
}
.hero-titel .w {
  display: inline-block; opacity: 0; translate: 0 0.55em; filter: blur(10px);
  animation: wort 1.7s var(--ease) forwards; animation-delay: calc(var(--i) * 95ms);
}
@keyframes wort { to { opacity: 1; translate: 0 0; filter: blur(0); } }
/* Blau → Grün → Lila, in dieser Reihenfolge. Blau bekommt den größten Anteil,
   Lila setzt nur den Schlusspunkt. */
.hero-titel .verlauf {
  background: linear-gradient(100deg,
    var(--blau) 0%,
    var(--gruen) 52%,
    var(--lila) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tag {
  font-size: clamp(1.05rem, 2.3vw, 1.35rem); color: var(--ink-dim);
  max-width: 56ch; margin: 0 auto 2.2rem; text-wrap: balance;
}

.scope {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow: hidden; text-align: left;
  box-shadow: 0 24px 70px oklch(0% 0 0 / 0.4), inset 0 1px 0 oklch(100% 0 0 / 0.12);
}
.scope canvas { display: block; width: 100%; height: 112px; }
.scope-label {
  position: absolute; top: 0.6rem; left: 0.9rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-mute);
}
.scope-wert {
  position: absolute; top: 0.55rem; right: 0.9rem;
  font-family: var(--mono); font-size: 0.82rem; color: var(--cyan);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px oklch(88% 0.165 178 / 0.55);
}
.scope[hidden] { display: none; }

/* ---------- Raster und Karten ---------- */
/* Zwölf Spalten statt sechs: erlaubt auf breiten Bildschirmen vier Karten
   nebeneinander, ohne die Aufteilung auf kleinen zu verändern. */
.raster { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: var(--gap); }

.karte {
  container-type: inline-size;
  position: relative; grid-column: span 12;
  /* Bewusst KEIN backdrop-filter: Bei 16 schwebenden Karten müsste der Browser
     den Hintergrund pro Karte und Bild neu weichzeichnen — das war der größte
     Bremsklotz. Ein halbdurchlässiger Verlauf sieht fast gleich aus und kostet
     nichts. Weichzeichnen bleibt der Navigationsleiste und der Messkurve
     vorbehalten, die beide unbewegt sind. */
  background: linear-gradient(160deg,
              oklch(21% 0.030 262 / 0.74), oklch(14% 0.030 262 / 0.78));
  border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: var(--pad); isolation: isolate;
  box-shadow: 0 18px 50px oklch(0% 0 0 / 0.35), inset 0 1px 0 oklch(100% 0 0 / 0.08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .55s var(--ease), background .45s, border-color .45s, box-shadow .55s;
  animation: schweben var(--float, 13s) ease-in-out infinite;
  animation-delay: var(--fd, 0s);
  text-decoration: none;
}
@keyframes schweben { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }

.karte::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), oklch(100% 0 0 / 0.11), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.karte::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -2; padding: 1px;
  background: conic-gradient(from var(--a),
    transparent 0%, var(--cyan) 12%, transparent 28%,
    var(--lila) 52%, transparent 68%, oklch(100% 0 0 / 0.8) 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease);
}
@keyframes kreisen { to { --a: 360deg; } }
@media (hover: hover) {
  .karte:hover {
    background: linear-gradient(160deg, oklch(26% 0.034 262 / 0.80), oklch(17% 0.032 262 / 0.82));
    border-color: transparent;
    box-shadow: 0 28px 70px oklch(0% 0 0 / 0.45), inset 0 1px 0 oklch(100% 0 0 / 0.16);
  }
  .karte:hover::before { opacity: 1; }
  .karte:hover::after  { opacity: 1; animation: kreisen 4.5s linear infinite; }
}

/* Schweben nur, wo Bewegung auch auffällt. Auf Mobilgeräten bringt es wenig
   und kostet durchgehend Rechenzeit. */
@media (max-width: 900px) {
  .karte { animation: none; }
}

.karte h3 { margin: 0 0 0.45rem; font-size: clamp(1.06rem, 1rem + 0.16vw, 1.2rem); letter-spacing: -0.018em; text-wrap: balance; }
.karte p  { margin: 0; color: var(--ink-dim); font-size: clamp(0.9rem, 0.86rem + 0.12vw, 1rem); }

.label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 0.8rem;
}

@media (min-width: 620px) {
  .span-2 { grid-column: span 4; }   /* Statuskarte: ein Drittel */
  .span-3 { grid-column: span 6; }   /* Rubriken: zwei nebeneinander */
  .span-4 { grid-column: span 8; }   /* Aufmacher: zwei Drittel */
}
@media (min-width: 1250px) {
  .span-3 { grid-column: span 3; }   /* ab hier alle vier Rubriken in einer Reihe */
}

.aufmacher { min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; }
.aufmacher h2 { margin: 0 0 0.6rem; font-size: clamp(1.4rem, 3.5vw, 2.15rem); line-height: 1.12; letter-spacing: -0.033em; text-wrap: balance; }
.aufmacher p { max-width: 52ch; }
@container (min-width: 520px) { .aufmacher { min-height: 300px; } .aufmacher h2 { font-size: 2.35rem; } }

.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.68rem; color: var(--ink-mute); margin-top: 0.95rem;
}
.pille { border: 1px solid var(--line); border-radius: 999px; padding: 0.16rem 0.64rem; color: var(--ink-dim); }
.pille.lila { border-color: oklch(68% 0.225 292 / 0.5); color: var(--lila); background: oklch(68% 0.225 292 / 0.14); }

.beitrag { grid-column: span 12; display: flex; flex-direction: column; gap: 0.3rem; }
@media (min-width: 620px)  { .beitrag { grid-column: span 6; } }   /* zwei pro Reihe */
@media (min-width: 900px)  { .beitrag { grid-column: span 4; } }   /* drei pro Reihe */
@media (min-width: 1400px) { .beitrag { grid-column: span 3; } }   /* vier pro Reihe */

/* Schwebe-Takte über die Stellung im Raster statt über Inline-Angaben —
   so bleiben die Vorlagen frei von Zahlen. */
.beitraege .karte:nth-child(4n+1) { --float: 13s; --fd: -1s; }
.beitraege .karte:nth-child(4n+2) { --float: 15s; --fd: -5s; }
.beitraege .karte:nth-child(4n+3) { --float: 14s; --fd: -8s; }
.beitraege .karte:nth-child(4n)   { --float: 16s; --fd: -3s; }
.rubrik-karte:nth-of-type(odd)    { --float: 13s; --fd: -2s; }
.rubrik-karte:nth-of-type(even)   { --float: 15s; --fd: -6s; }

.rubrik {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); text-decoration: none;
}
.rubrik.gross { font-size: 0.68rem; display: inline-block; margin-bottom: 0.9rem; }

/* ---------- Statuskarte ---------- */
.status { display: flex; flex-direction: column; gap: 0.9rem; }
.status-kopf { display: flex; align-items: baseline; gap: 0.5rem; }
.status .punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; animation: pochen 5s ease-out infinite; }
@keyframes pochen {
  0%   { box-shadow: 0 0 0 0 oklch(82% 0.175 150 / 0.5); }
  70%  { box-shadow: 0 0 0 12px oklch(82% 0.175 150 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(82% 0.175 150 / 0); }
}
.messwerte { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
@container (min-width: 380px) { .messwerte { grid-template-columns: repeat(4, 1fr); } }
.messwert { background: oklch(100% 0 0 / 0.04); border: 1px solid var(--line-soft); border-radius: 12px; padding: 0.65rem 0.7rem; }
.messwert .k { font-family: var(--mono); font-size: 0.57rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); }
.messwert .v { font-family: var(--mono); font-size: 1.3rem; font-variant-numeric: tabular-nums; line-height: 1.25; }
.messwert .v small { font-size: 0.62rem; color: var(--ink-mute); margin-left: 0.1rem; }
.status-hinweis { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-mute); margin: 0; }

/* ---------- Artikel ---------- */
.artikel { padding-top: clamp(2rem, 6vw, 3.6rem); }
.artikel-kopf { text-align: left; }
.artikel-kopf h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.7rem); line-height: 1.08;
  letter-spacing: -0.038em; margin: 0 0 0.8rem; text-wrap: balance;
}
.anriss { font-size: clamp(1.12rem, 1.02rem + 0.3vw, 1.5rem); color: var(--ink-dim); margin: 0 0 1rem; text-wrap: pretty; }

/* Titelbild bewusst schmaler als die Seite: Die volle Breite (bis 1560 px)
   ließ es neben der 720-px-Textspalte erschlagend wirken und skalierte ein
   1200er Bild sogar hoch. Etwas breiter als der Text ist genug Betonung.
   Die Höhenbremse fängt hoch- und quadratformatige Bilder ab, die sonst den
   halben Bildschirm füllen. */
.titelbild { margin: 2.4rem auto; max-width: var(--schmal); }
.titelbild img {
  width: 100%;
  /* Festes Anzeigeverhältnis statt fester Höhe: Damit sitzt jedes Titelbild
     gleich, egal ob das Original quer, hoch oder quadratisch ist — und der
     Platz steht schon vor dem Laden fest, das Layout springt nicht. */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--line-soft); display: block;
}
.titelbild figcaption { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-mute); text-align: center; margin-top: 0.6rem; }

/* Schrift wächst mit der Fensterbreite: auf dem Handy 1,08rem, auf einem
   großen Schirm bis 1,3rem. Zusammen mit der breiteren Spalte bleibt die
   Zeile bei etwa 70 Zeichen — dem Bereich, in dem sich Fließtext gut liest. */
.inhalt {
  font-size: clamp(1.08rem, 0.98rem + 0.38vw, 1.44rem);
  max-width: 68ch;
  margin-inline: auto;
  padding-top: 1.4rem;
}
.inhalt > * { margin-block: 1.35em; }
.inhalt > :first-child { margin-top: 0; }
.inhalt p { text-wrap: pretty; }
.inhalt h2 { font-size: clamp(1.7rem, 1.5rem + 0.55vw, 2.4rem); letter-spacing: -0.028em; margin-top: 2.4em; text-wrap: balance; }
.inhalt h3 { font-size: clamp(1.32rem, 1.22rem + 0.35vw, 1.75rem); letter-spacing: -0.02em; margin-top: 2em; text-wrap: balance; }
.inhalt a { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.inhalt a:hover { color: var(--ink); }
.inhalt strong { color: var(--ink); }
.inhalt hr { border: 0; border-top: 1px solid var(--line-soft); margin-block: 2.6em; }

.inhalt blockquote {
  margin-inline: 0; padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 2px solid var(--lila);
  color: var(--ink-dim); font-size: 1.14rem;
}
.inhalt blockquote p { margin-block: 0.5em; }

.inhalt ul, .inhalt ol { padding-left: 1.3rem; }
.inhalt li { margin-block: 0.45em; }
.inhalt li::marker { color: var(--lila); }

.inhalt code {
  font-family: var(--mono); font-size: 0.88em;
  background: oklch(100% 0 0 / 0.07); border: 1px solid var(--line-soft);
  border-radius: 6px; padding: 0.12em 0.4em;
}
.inhalt pre {
  background: oklch(9% 0.028 262); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 1rem 1.1rem; overflow-x: auto;
  font-size: 0.86rem; line-height: 1.55;
}
.inhalt pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.inhalt figure { margin-inline: 0; }
.inhalt figure img { border-radius: 12px; border: 1px solid var(--line-soft); display: block; }
.inhalt figcaption { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-mute); text-align: center; margin-top: 0.55rem; }

.inhalt table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.inhalt table th, .inhalt table td { border-bottom: 1px solid var(--line-soft); padding: 0.6rem 0.7rem; text-align: left; }
.inhalt table th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- Quellenangaben: aufklappbar und zurückgenommen ----------
   Wird per JS aus `<h2>Quellen</h2> + <ul>` gebaut, damit es auch für bereits
   veröffentlichte Artikel gilt. Zusammengeklappt ist der Block immer gleich
   hoch — egal ob drei oder dreizehn Quellen dranhängen. */
.inhalt details.quellen {
  margin-block: 2.4em;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}
.inhalt details.quellen summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  transition: color .3s;
}
.inhalt details.quellen summary::-webkit-details-marker { display: none; }
.inhalt details.quellen summary::before {
  content: "▸";
  color: var(--lila);              /* gleiche Farbe wie die Aufzählungspunkte */
  display: inline-block;
  transition: transform .35s var(--ease);
}
.inhalt details.quellen[open] summary::before { transform: rotate(90deg); }
.inhalt details.quellen summary:hover { color: var(--ink-dim); }

.inhalt details.quellen ul {
  margin: 1rem 0 0.4rem;
  padding-left: 1.1rem;
  /* Kompakter als Fließtext: Belege, kein Lesestoff */
  font-size: 0.82em;
  line-height: 1.45;
  color: var(--ink-mute);
  columns: 1;
}
@media (min-width: 900px) {
  .inhalt details.quellen ul { columns: 2; column-gap: 2.2rem; }
}
.inhalt details.quellen li {
  margin-block: 0.45em;
  break-inside: avoid;
}
.inhalt details.quellen li::marker { color: var(--lila); }
.inhalt details.quellen a {
  color: var(--ink-dim);            /* gedämpft statt Cyan — Beleg, kein Aufruf */
  text-decoration-color: var(--line);
  transition: color .3s, text-decoration-color .3s;
}
.inhalt details.quellen a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}
/* Die Domain vor dem Titel etwas heben, damit die Herkunft beim Überfliegen auffällt */
.inhalt details.quellen .domain {
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.92em;
}

/* Ghost-Karten */
.inhalt .kg-card { margin-block: 2em; }
.inhalt .kg-width-wide  { width: min(96vw, 940px);  margin-inline: calc(50% - min(48vw, 470px)); }
.inhalt .kg-width-full  { width: 96vw; margin-inline: calc(50% - 48vw); }
.inhalt .kg-callout-card {
  display: flex; gap: 0.8rem; padding: 1rem 1.2rem;
  background: var(--glass); border: 1px solid var(--line-soft); border-radius: 12px;
}
.inhalt .kg-bookmark-card a {
  display: block; padding: 1rem 1.2rem; text-decoration: none;
  background: var(--glass); border: 1px solid var(--line-soft); border-radius: 12px;
}
.inhalt .kg-bookmark-title { color: var(--ink); font-weight: 600; }
.inhalt .kg-bookmark-description { color: var(--ink-dim); font-size: 0.9rem; }
.inhalt iframe { max-width: 100%; border-radius: 12px; }

.artikel-fuss { padding-top: 1.6rem; margin-top: 2.4rem; border-top: 1px solid var(--line-soft); }
.schlagworte { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.schlagworte a {
  font-family: var(--mono); font-size: 0.76rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem;
  /* Eigener Grund: Ohne ihn sitzt die Schrift direkt auf dem Shader und wird
     dort unlesbar, wo das Feld heller ist. */
  background: oklch(19% 0.030 262 / 0.88);
  color: var(--ink);
  transition: color .35s, border-color .35s, background .35s, translate .35s var(--ease);
}
.schlagworte a:hover {
  color: var(--deep); background: var(--cyan); border-color: var(--cyan); translate: 0 -2px;
}

.weiterlesen { margin-top: 4rem; }
.abschnitt-titel { font-size: 1.3rem; letter-spacing: -0.025em; margin: 0; }

/* ---------- Archiv, Fehler, Seitenblättern ---------- */
.archiv-kopf { padding: clamp(2.6rem, 8vw, 5rem) 0 0.6rem; }
.archiv-kopf h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.04em; margin: 0 0 0.5rem; }
.archiv-kopf .tag { color: var(--ink-dim); max-width: 52ch; margin: 0 0 0.6rem; }
.anzahl { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); }

.fehler { padding: clamp(4rem, 14vw, 9rem) 0; text-align: center; }
.fehler h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -0.035em; margin: 0 0 0.7rem; }
.knopf {
  display: inline-block; margin-top: 0.8rem; text-decoration: none;
  font-family: var(--mono); font-size: 0.8rem;
  background: var(--cyan); color: var(--deep); font-weight: 600;
  border-radius: 999px; padding: 0.6rem 1.3rem;
  box-shadow: 0 0 30px oklch(88% 0.165 178 / 0.4);
}

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  margin: 3rem auto 0; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-mute);
  max-width: var(--breit); padding-inline: clamp(0.9rem, 3vw, 2rem);
}
.pagination a {
  text-decoration: none; border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 0.42rem 0.95rem; color: var(--ink-dim);
  transition: color .35s, border-color .35s, translate .35s var(--ease);
}
.pagination a:hover { color: var(--cyan); border-color: var(--cyan); translate: 0 -2px; }

/* ---------- Fuß ---------- */
/* Eigener, deckender Grund: Ohne ihn scheint der Shader durch und grauer Text
   in kleiner Schrift wird stellenweise unlesbar. */
.seitenfuss {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line-soft);
  margin-top: 3rem;
  background: oklch(10% 0.026 262 / 0.92);
}
.fuss-inhalt {
  max-width: var(--breit); margin: 0 auto; padding: 1.7rem clamp(0.9rem, 3vw, 2rem);
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; align-items: center;
  color: var(--ink-dim); font-size: 0.86rem;
}
.fuss-inhalt a { text-decoration: none; color: var(--ink); }
.fuss-inhalt a:hover { color: var(--cyan); }
.fuss-inhalt .mono { font-size: 0.76rem; color: var(--ink-mute); margin-left: auto; }
@media (max-width: 640px) {
  .fuss-inhalt .mono { margin-left: 0; width: 100%; }
}

/* ---------- Auftauchen beim Scrollen ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: auftauchen linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes auftauchen {
      from { opacity: 0; scale: 0.9; rotate: x 16deg; filter: blur(12px); }
      to   { opacity: 1; scale: 1; rotate: x 0deg; filter: blur(0); }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-titel .w { opacity: 1; translate: none; filter: none; }
}
