/* ═══════════════════════════════════════════════════════════════════
   ryzeup.css — Designsystem der gesamten Website
   Datenblatt / Ingenieurszeichnung · Dark + Light

   Quelle der Wahrheit für alle 63 Seiten. Seitenspezifisches CSS bleibt
   inline in der jeweiligen Datei — ebenso der <noscript>-Fallback, der
   NICHT hierher gehört (er blendet den Theme-Toggle aus und erzwingt
   sichtbare Reveals; unbedingt getrennt halten).

   NICHT direkt einbinden — Auslieferung läuft über die gehashte Kopie
   in site/assets/. Nach jeder Änderung hier:
       node tools/build-assets.mjs
   ═══════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   RYZEUP — ARTIKEL-TEMPLATE „DATENBLATT" (Design-Preview)
   Übertragung der index-alt-Designsprache auf das Artikel-Layout.
   Ein Akzent: Lime. Harte Kanten, Mono-Annotationen, Sektionslineal
   per CSS-Counter. Nach Freigabe wird dieses CSS unverändert als
   zentrales Stylesheet nach site/assets/ extrahiert — daher: alle
   Farben ausschließlich über Rollen-Tokens, keine Literale im
   Komponenten-CSS, Komponenten klar gruppiert.
   ════════════════════════════════════════════════════════════════ */

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

/* ════ 01 · TOKENS ════ */
:root {
  color-scheme: dark;
  /* Brand-Konstanten (themenunabhängig) */
  --navy:      #0F172A;
  --navy-deep: #0A101F;
  --lime:      #E0FE0E;        /* das EINE Akzentgrün */
  --ice:       #E0FFFF;
  --slate:     #708090;
  --white:     #FFFFFF;
  /* RGB-Triplets für Alpha-Ableitungen:
     --acc-rgb/--acc-a lösen alle rgba-Lime-Varianten zentral.
     Verwendung: rgb(var(--acc-rgb) / calc(0.25 * var(--acc-a))) */
  --acc-rgb: 224 254 14; --acc-a: 1;
  --navy-rgb:  15 23 42;
  /* Flächenfarbe als Tripel. Alte Seiten setzen Navbars und Panels als
     rgba(15,23,42,a) — themeblind. Die Migration zieht solche BACKGROUNDS
     hierher; color-Angaben auf Lime-Flächen bleiben bewusst --navy-rgb. */
  --bg-rgb:    15 23 42;       /* Schatten + Text-Abstufungen auf Lime-Flächen */
  /* ── Rollen-Tokens (Dark = Default). Das Light-Theme überschreibt
     ausschließlich diesen Block. ── */
  --bg:        var(--navy);
  --bg-deep:   var(--navy-deep);
  --panel:     #131C31;
  --ink:       var(--white);         /* Primärtext */
  /* Tinte als RGB-Tripel: in den Artikel-SVGs steckt halbtransparentes Weiß
     (rgba(255,255,255,α)), das im Light-Theme unsichtbar wäre. Die Migration
     schreibt es auf rgb(var(--ink-rgb) / α) um. */
  --ink-rgb:   255 255 255;
  --acc-ink:   var(--lime);          /* Akzent als TEXT/LINIE */
  --on-lime:   var(--navy);          /* dunkler Text auf Lime-Flächen, beide Themes */
  --slate-txt: #7C8C9C;              /* Slate, minimal aufgehellt: ≥4.9:1 auf allen Flächen */
  --grey:      #D3D3D3;              /* Sekundärtext */
  /* abgeleitet — Lime-Alphas laufen über --acc-rgb, Rest pro Theme */
  --lime-04:   rgb(var(--acc-rgb) / calc(0.04 * var(--acc-a)));
  --lime-10:   rgb(var(--acc-rgb) / calc(0.10 * var(--acc-a)));
  --lime-25:   rgb(var(--acc-rgb) / calc(0.25 * var(--acc-a)));
  --card-tint: rgb(var(--acc-rgb) / calc(0.06 * var(--acc-a)));
  --line:      rgba(211,211,211,0.13);
  --line-hi:   rgba(211,211,211,0.28);
  --grid:      rgba(112,128,144,0.07);
  --track:     rgba(211,211,211,0.08);
  --head-bg:   rgba(10,16,31,0.88);
  --body-dim:  rgba(211,211,211,0.78);
  --quote-txt: rgba(255,255,255,0.88);
  --foot-link: rgba(211,211,211,0.6);
  --red:       #FF6E6E;
  /* Typo — --font-display gegen echtes Lemon Milk tauschbar (1 Zeile) */
  --font-display: 'Archivo', 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  /* Spacing */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --gutter: 20px;
  --measure: 740px;                  /* Artikel-Spalte ≈ 68 Zeichen Poppins 16.5px */
}

/* ════ LIGHT THEME — „Datenblatt auf Papier" ════ */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #FAFDFD;
  --bg-deep:   #EDF6F6;
  --panel:     var(--white);
  --ink:       var(--navy);
  --ink-rgb:   15 23 42;
  --bg-rgb:    250 253 253;
  --acc-ink:   #5F6E08;              /* Lime → Olive: 5.5:1 auf --bg, 5.1:1 auf --bg-deep */
  --slate-txt: #53616D;              /* 6.2:1 auf --bg */
  --grey:      #46545F;              /* 7.6:1 auf --bg */
  --acc-rgb: 176 199 10; --acc-a: 1.4;
  --line:      rgba(15,23,42,0.14);
  --line-hi:   rgba(15,23,42,0.28);
  --grid:      rgba(112,128,144,0.14);
  --track:     rgba(15,23,42,0.10);
  --head-bg:   rgba(250,253,253,0.88);
  --body-dim:  rgba(15,23,42,0.78);
  --quote-txt: rgba(15,23,42,0.9);
  --foot-link: #4A5866;
  --red:       #B92D2D;
}

/* Das weiße Logo-PNG wird im hellen Theme zur schwarzen Druckmarke. */
/* Das weiße Logo-PNG wird im hellen Theme zur schwarzen Druckmarke.
   Alle Logo-Klassen der Website abdecken: die Altseiten (Impressum,
   Datenschutz, 404) nutzen .nav-logo / .footer-logo / .logo-link statt
   .head-logo — dort war das Logo sonst weiß auf Papierweiß, also unsichtbar. */
:root[data-theme="light"] .head-logo img,
:root[data-theme="light"] .foot-brand img,
:root[data-theme="light"] .nav-logo img,
:root[data-theme="light"] .footer-logo img,
:root[data-theme="light"] .logo-link img { filter: invert(1); }

/* ════ KOMPATIBILITÄTS-ALIASE ════
   Die 57 Artikel wurden mit einem älteren Token-Satz gebaut und referenzieren
   ihn im erhaltenen Markup (SVG-Attribute) und im artikelspezifischen
   Rest-CSS. Ohne diese Zuordnung fiele jede solche Deklaration auf ihren
   Initialwert zurück — fill="var(--accent)" würde schwarz.

   Sie zeigen auf die neuen Rollen-Tokens und folgen damit dem Theme.
   Für NEUE Inhalte nicht verwenden — dort gelten die Rollen-Tokens direkt. */
:root {
  --accent:     var(--acc-ink);
  --accent-dk:  var(--acc-ink);
  --accent-lo:  var(--lime-10);
  --accent-mid: var(--lime-25);
  --accent-glo: var(--lime-25);
  --bg-alt:     var(--bg-deep);
  --bg-card:    var(--panel);
  --bg-card-hi: var(--panel);
  --text:       var(--ink);
  --text-soft:  var(--grey);
  --text-muted: var(--slate-txt);
  --text-faint: var(--slate-txt);
  --border:     var(--line);
  --border-hi:  var(--line-hi);
  --font-h:     var(--font-mono);
  --font-b:     var(--font-body);
  --font-d:     var(--font-display);
  /* Token-Namen der alten Startseite (Impressum, Datenschutz, 404) */
  --muted:      var(--slate-txt);
  --muted-hi:   var(--grey);
  --accent-lo2: var(--lime-10);
}

/* DISG-Palette (2 Artikel). Semantisch gebunden — Dominant=Rot,
   Initiativ=Gelb, Stetig=Grün, Gewissenhaft=Blau — daher Farbton erhalten,
   aber Helligkeit je Theme so gewählt, dass sie als Textfarbe AA erreicht.
   Die Originalwerte lagen bei 4.15:1 und damit knapp darunter. */
:root {
  --disg-red:    #F58C7E;
  --disg-yellow: #F5D547;
  --disg-green:  #5FD98A;
  --disg-blue:   #6FB4F0;
  /* Statusfarben (Warnung/Fehler/Erfolg) — je Theme so hell bzw. dunkel,
     dass sie als Textfarbe AA erreichen. */
  --st-red:      #FF8E7A;
  --st-amber:    #F2C14E;
  --st-green:    #6FD98F;
}
:root[data-theme="light"] {
  --disg-red:    #A32B1D;
  --disg-yellow: #7A6002;
  --disg-green:  #1A6B39;
  --disg-blue:   #1B5794;
  --st-red:      #A83218;
  --st-amber:    #7A5A00;
  --st-green:    #1C6B3C;
}

/* ════ 02 · BASIS ════ */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.75;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--on-lime); }

/* Hintergrund: feines Konstruktionsraster + Korn */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Achtung: .site-head hier NICHT aufnehmen — header.site-head (0,1,1)
   würde das position:fixed von .site-head (0,1,0) überschreiben. */
main, footer { position: relative; z-index: 1; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 300;
  background: var(--lime); color: var(--on-lime);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 10px 16px; text-decoration: none;
  transition: transform 0.2s ease;
}
.skip-link:focus-visible { transform: translateY(72px); }

/* ════ 03 · BUTTONS ════ */
.btn {
  display: inline-block;
  background: var(--lime); color: var(--on-lime);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 2px; text-decoration: none;
  border: 1px solid var(--lime);
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgb(var(--acc-rgb) / calc(0.16 * var(--acc-a))), 0 3px 10px rgb(var(--navy-rgb) / 0.6);
}
:root[data-theme="light"] .btn:hover { box-shadow: 0 10px 28px rgb(var(--navy-rgb) / 0.16), 0 3px 10px rgb(var(--navy-rgb) / 0.10); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgb(var(--acc-rgb) / calc(0.12 * var(--acc-a))); }
.btn-sm { padding: 10px 20px; font-size: 11.5px; }

/* ════ 04 · HEADER + THEME-TOGGLE ════ */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--head-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.head-logo { display: flex; align-items: center; text-decoration: none; }
.head-logo img { height: 26px; width: auto; display: block; }

.head-nav { display: none; }
.head-nav ul { list-style: none; display: flex; gap: 30px; }
.head-nav a {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate-txt); text-decoration: none;
  padding: 6px 0; position: relative;
}
.head-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1);
}
.head-nav a:hover { color: var(--ink); }
.head-nav a:hover::after { transform: scaleX(1); }
.head-nav a:active { color: var(--acc-ink); }

.head-cta { display: none; }

/* Theme-Toggle: Kippschalter im Datenblatt-Stil */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 12px;
  background: none; border: 1px solid var(--line-hi); border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-txt);
  transition: transform 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--acc-ink); }
.theme-toggle:active { transform: scale(0.95); }
.tt-track {
  position: relative; width: 30px; height: 14px; flex-shrink: 0;
  border: 1px solid var(--line-hi); border-radius: 2px;
}
.tt-knob {
  position: absolute; top: 2px; left: 2px; width: 8px; height: 8px;
  background: var(--acc-ink);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
:root[data-theme="light"] .tt-knob { transform: translateX(16px); }
.tt-label { min-width: 40px; text-align: left; }
@media (max-width: 419px), (min-width: 760px) and (max-width: 1099px) {
  .tt-label { display: none; }
  .theme-toggle { padding: 0 10px; }
}
@media (min-width: 760px) and (max-width: 979px) {
  .site-head .head-cta { display: none; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .site-head .wrap { gap: 16px; }
  .head-nav ul { gap: 18px; }
}

.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  transition: transform 0.15s ease;
}
.hamburger:active { transform: scale(0.94); }
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 190;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  padding: 20px var(--gutter) 28px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease, visibility 0s 0.25s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu a.mob-link {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey); text-decoration: none;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
}
.mobile-menu a.mob-link:hover { color: var(--acc-ink); }
.mobile-menu a.mob-link:active { color: var(--ink); }
.mobile-menu .btn { align-self: flex-start; margin-top: 20px; }

/* ════ 05 · LESEFORTSCHRITT ════ */
/* scaleX statt width — nur transform wird animiert */
.reading-progress {
  position: fixed; top: 68px; left: 0; z-index: 210;
  width: 100%; height: 2px;
  background: var(--acc-ink);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* ════ 06 · ARTIKELKOPF (BLOG-HERO) ════ */
.blog-hero { position: relative; padding: 122px 0 0; }
.blog-hero-inner { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate-txt); text-decoration: none;
  margin-bottom: 28px;
}
.back-link:hover { color: var(--acc-ink); }
.back-link:active { color: var(--ink); }
.back-link svg { width: 15px; height: 15px; }

/* Artikel-Lineal: Hairline oben, Mono-Metadaten darunter */
.blog-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  border-top: 1px solid var(--line-hi);
  padding-top: 14px; margin-bottom: 30px;
}
.blog-category {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acc-ink);
  border: 1px solid var(--lime-25); background: var(--lime-04);
  padding: 5px 10px; border-radius: 0;
}
.blog-category svg { width: 11px; height: 11px; }
.blog-date, .blog-reading-time {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate-txt);
}
.blog-reading-time svg { width: 13px; height: 13px; }

.blog-hero h1 {
  font-family: var(--font-display); font-stretch: 125%;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 4.8vw, 40px);
  /* 1.18: Versalien + <em>-Highlight-Kasten brauchen Luft für Umlautpunkte */
  line-height: 1.18; letter-spacing: 0.002em;
  color: var(--ink);
  margin-bottom: 22px;
}
.blog-hero h1 em {
  font-style: normal;
  background: var(--lime); color: var(--on-lime);
  padding: 0 0.14em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

.blog-hero-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--body-dim);
  max-width: 560px; line-height: 1.75;
}

.blog-hero-divider {
  width: 64px; height: 3px;
  background: var(--acc-ink);
  margin-top: 36px; border-radius: 0;
}

/* ════ 07 · AUTOR ════ */
.author-strip {
  max-width: var(--measure); margin: 40px auto 0;
  padding: 0 var(--gutter) 36px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
  position: relative; z-index: 1;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 2px;
  object-fit: cover;
  border: 1px solid var(--line-hi);
  filter: grayscale(18%) contrast(1.04);
}
.author-info { display: flex; flex-direction: column; gap: 3px; }
.author-name {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.author-role {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-txt);
}

/* ════ 08 · ARTIKEL-GRUNDTEXT ════ */
.article-wrap {
  max-width: var(--measure); margin: 0 auto;
  padding: 48px var(--gutter) var(--s6);
  position: relative; z-index: 1;
}

.article-body { counter-reset: sec; }

.article-body p {
  font-size: 16.5px; color: var(--body-dim);
  line-height: 1.8; margin-bottom: 22px;
}
.article-body p strong { color: var(--ink); font-weight: 600; }

.article-body ul, .article-body ol {
  margin-bottom: 22px; padding-left: 0; list-style: none;
}
.article-body li {
  font-size: 15.5px; color: var(--body-dim);
  line-height: 1.75; margin-bottom: 10px;
  padding-left: 26px; position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute; left: 2px; top: 10px;
  width: 7px; height: 7px;
  background: var(--acc-ink);
}
.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: 12px;
  font-weight: 600; color: var(--acc-ink);
}

.article-body a {
  color: var(--acc-ink);
  text-decoration: underline;
  text-decoration-color: var(--lime-25);
  text-underline-offset: 3px;
}
.article-body a:hover { text-decoration-color: currentColor; }

/* ── H2: Sektionslineal — Hairline + Mono-Nummer per CSS-Counter ── */
.article-body h2 {
  counter-increment: sec;
  border-top: 1px solid var(--line-hi);
  padding-top: 16px;
  margin: 72px 0 22px;
  scroll-margin-top: 96px;
  font-family: var(--font-display); font-stretch: 125%;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.22; letter-spacing: 0.01em;
  color: var(--ink);
}
.article-body h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--acc-ink);
  margin-bottom: 12px;
}

/* ── H3: Mono-Eyebrow, bewusst OHNE Nummer (keine zweite Nummernebene) ── */
.article-body h3 {
  display: flex; align-items: baseline; gap: 10px;
  margin: 44px 0 12px;
  scroll-margin-top: 96px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.6; color: var(--ink);
}
.article-body h3::before {
  content: '';
  width: 7px; height: 7px; flex-shrink: 0;
  background: var(--acc-ink);
  align-self: center;
}

/* ════ 09 · INHALTSVERZEICHNIS ════ */
.toc {
  background: var(--bg-deep);
  border: 1px solid var(--line-hi);
  padding: 24px 26px;
  margin: 0 0 12px;
}
.toc-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc-ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px; margin-bottom: 4px;
}
.toc-title::before { content: ''; width: 7px; height: 7px; background: var(--acc-ink); }
.toc ol { list-style: none; counter-reset: toc-counter; margin: 0; padding: 0; }
.toc ol li {
  counter-increment: toc-counter;
  margin: 0; padding: 0;
  border-bottom: 1px solid var(--line);
}
.toc ol li:last-child { border-bottom: none; }
.toc ol li::before { display: none; }
.toc a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 14px; color: var(--grey);
  text-decoration: none; padding: 10px 0; line-height: 1.45;
}
.toc a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--acc-ink); min-width: 22px;
}
.toc a:hover { color: var(--acc-ink); }
.toc a:active { color: var(--ink); }
.toc a:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }

/* ════ 10 · CALLOUT (Kernthese / Praxis-Box) ════ */
.callout {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-left: 3px solid var(--acc-ink);
  border-radius: 0;
  padding: 26px 28px;
  margin: 40px 0;
}
.callout-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc-ink);
  margin-bottom: 14px;
}
.callout-label svg { width: 14px; height: 14px; flex-shrink: 0; }
.callout p { font-size: 15px; color: var(--body-dim); line-height: 1.75; margin-bottom: 0; }
.callout p strong { color: var(--ink); font-weight: 600; }

/* ════ 11 · VERGLEICHSTABELLE ════ */
.comparison-wrap {
  margin: 44px 0;
  border: 1px solid var(--line-hi);
  overflow-x: auto;
  background: var(--bg-deep);
}
.comparison-table {
  width: 100%; min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.comparison-table thead th {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 16px; text-align: left;
  background: var(--head-bg); color: var(--slate-txt);
  border-bottom: 1px solid var(--line-hi);
}
.comparison-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);   /* Hairlines statt Zebra */
  color: var(--body-dim); line-height: 1.6;
  font-variant-numeric: tabular-nums;      /* Zahlenspalten bündig */
  vertical-align: top;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: var(--lime-04); }
.comparison-table .label-cell {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.th-accent { color: var(--acc-ink) !important; }

/* ════ 12 · SCHLÜSSELGRAFIK + LIGHTBOX ════ */
.framework-visual {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--line-hi);
  padding: 50px 18px 30px;
  margin: 44px 0;
  overflow: hidden;
}
.framework-visual::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgb(var(--acc-rgb) / calc(0.05 * var(--acc-a))) 1px, transparent 1px);
  background-size: 26px 26px;
}
.framework-visual-label {
  position: absolute; top: 16px; left: 20px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--acc-ink);
}
.framework-visual svg { display: block; width: 100%; height: auto; position: relative; }
/* SVG-Beschriftungen: Roboto Mono/Montserrat sind nicht mehr geladen —
   CSS-Regel schlägt das Präsentationsattribut und zieht auf Plex Mono um. */
/* Alle SVG-Beschriftungen im Artikel auf die Mono-Schrift ziehen. Bewusst
   breit statt nur .framework-visual: die 57 Artikel nutzen mehrere Wrapper
   (.svg-visual-, .target-visual-, .storm-visual- …) und die SVGs tragen
   font-family als Präsentationsattribut mit den alten Schriften. CSS schlägt
   Präsentationsattribute, deshalb greift die Regel ohne Markup-Eingriff. */
.article-body svg text, .lightbox-inner svg text { font-family: var(--font-mono); }
.framework-visual-clickable { cursor: zoom-in; transition: opacity 0.2s ease; }
.framework-visual-clickable:hover { opacity: 0.88; }

.framework-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 18px; position: relative;
  flex-wrap: wrap;
}
.framework-action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; color: var(--grey);
  border: 1px solid var(--line-hi); border-radius: 2px;
  padding: 9px 16px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform 0.15s ease;
}
.framework-action-btn:hover { color: var(--acc-ink); border-color: var(--acc-ink); }
.framework-action-btn:active { transform: scale(0.96); }
.framework-action-btn:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
/* Die Buttons stehen INNERHALB von .framework-visual, dessen Regel
   `svg { width: 100% }` sonst auch die Icons trifft. Die 32 Altartikel
   entgehen dem nur, weil ihre Icons kein viewBox tragen und damit kein
   intrinsisches Seitenverhältnis haben. Jedes viewBox-Icon — wie im
   _article-template.html — skalierte ohne diese Regel auf Panelbreite. */
.framework-action-btn svg { width: 14px; height: 14px; flex: none; }

.lightbox-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgb(var(--navy-rgb) / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }
.lightbox-inner {
  position: relative; width: 92vw; max-width: 1100px;
  background: var(--bg-deep); border: 1px solid var(--line-hi);
  padding: clamp(14px, 3vw, 28px);
}
.lightbox-inner svg { display: block; width: 100%; height: auto; }
.lightbox-close {
  position: absolute; top: -16px; right: -16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 2px;
  background: var(--panel); border: 1px solid var(--line-hi);
  color: var(--ink); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.lightbox-close:hover { color: var(--acc-ink); border-color: var(--acc-ink); }
.lightbox-close:active { transform: scale(0.92); }

/* ════ 13 · PHASEN-LEDGER (statt Karten) ════ */
.phase-grid {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-hi);
  margin: 40px 0;
}
.phase-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 2px 18px;
  padding: 24px 0 24px 4px;
  border-bottom: 1px solid var(--line);
  background: none; border-radius: 0;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.phase-card:hover { transform: translateX(8px); }
.phase-card::before {
  content: '';
  position: absolute; left: -16px; top: 0; bottom: 0; width: 3px;
  background: var(--acc-ink);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.phase-card:hover::before { transform: scaleY(1); }
.phase-num {
  grid-column: 1; grid-row: 1 / 4;
  font-family: var(--font-display); font-stretch: 125%;
  font-weight: 900; font-size: 40px; line-height: 1;
  color: var(--acc-ink);
  padding-top: 2px;
}
.phase-tag {
  grid-column: 2; justify-self: start;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate-txt);
  border: 1px solid var(--line); border-radius: 0;
  padding: 3px 9px;
  margin-bottom: 8px;
}
/* h3 mitgeführt: die 32 Altartikel setzen hier h4 direkt unter ein h2 und
   überspringen damit eine Ebene. Neue Seiten sollen h3 verwenden können,
   ohne die Gestaltung zu verlieren — für die Altseiten ändert sich nichts. */
.phase-card :is(h3, h4) {
  grid-column: 2;
  font-family: var(--font-display); font-stretch: 125%;
  font-weight: 800; text-transform: uppercase;
  font-size: 15.5px; letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.phase-card p {
  grid-column: 2;
  font-size: 14.5px; color: var(--slate-txt);
  line-height: 1.7; margin-bottom: 0;
}

/* ════ 14 · PULL-QUOTE (Editorial-Zitat) ════ */
.pull-quote {
  position: relative;
  margin: 64px 0 56px; padding: 0;
  border-left: none;
  max-width: 620px;
}
.pull-quote::before {
  content: '”';
  position: absolute; top: -32px; left: -4px;
  font-family: var(--font-mono); font-size: 84px; line-height: 1;
  color: var(--acc-ink); opacity: 0.28; pointer-events: none;
}
.pull-quote p {
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 300; font-style: normal;
  line-height: 1.55; color: var(--quote-txt);
  margin-bottom: 14px;
}
.pull-quote cite {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate-txt); font-style: normal;
}

/* ════ 15 · SEKTIONSTRENNER ════ */
.section-divider { display: flex; align-items: center; gap: 16px; margin: 64px 0; }
.section-divider::before,
.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.section-divider span {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate-txt); white-space: nowrap;
}

/* ════ 16 · FAQ — Akkordeon mit Kippschalter ════ */
.faq-section { margin-top: 28px; }

.faq-item {
  border: 1px solid var(--line); border-radius: 0;
  margin-bottom: 10px;
  background: none;
  overflow: hidden;
}
.faq-item:hover { border-color: var(--line-hi); }

.faq-question {
  position: relative;
  display: block; width: 100%; text-align: left;
  padding: 19px 88px 19px 22px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--ink); line-height: 1.5;
}
.faq-question:hover { color: var(--acc-ink); }
.faq-question:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: -2px; }
/* Kippschalter-Schiene (analog Theme-Toggle) statt Chevron */
.faq-question::after {
  content: '';
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 14px;
  border: 1px solid var(--line-hi); border-radius: 2px;
}
/* Das Plus-SVG wird zum Schalter-Knebel umfunktioniert */
.faq-icon {
  position: absolute; right: 41px; top: 50%;
  width: 8px; height: 8px;
  transform: translate(0, -50%);
  background: var(--slate-txt);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.faq-icon line { display: none; }
.faq-item.open .faq-icon {
  transform: translate(16px, -50%);
  background: var(--acc-ink);
}

/* Höhe schnappt (Layout wird nicht animiert) — der Inhalt blendet
   über opacity/transform ein. */
.faq-answer { max-height: 0; overflow: hidden; }
.faq-item.open .faq-answer { max-height: none; }
.faq-answer-inner {
  padding: 0 22px 22px;
  font-size: 14.5px; color: var(--body-dim); line-height: 1.75;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.faq-item.open .faq-answer-inner { opacity: 1; transform: none; }

/* ════ 17 · CTA — Lime-Block ════ */
/* Bleibt in BEIDEN Themes die Lime-Vollfläche: aller Text darauf ist
   Navy (rgb(var(--navy-rgb))-Abstufungen) und funktioniert themenunabhängig. */
.blog-cta {
  background: var(--lime); color: var(--navy);
  border: none; border-radius: 0;
  padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 48px);
  margin: 72px 0 0;
  text-align: left;
  position: relative;
}
:root[data-theme="light"] .blog-cta { border: 1px solid rgb(var(--navy-rgb) / 0.2); }
.blog-cta-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgb(var(--navy-rgb) / 0.65);
  margin-bottom: 18px;
}
.blog-cta-eyebrow::after { content: ''; flex: 1; height: 1px; background: rgb(var(--navy-rgb) / 0.25); }
/* display:block + content:none: neutralisiert den H3-Eyebrow-Stil
   (Flex + Lime-Quadrat) aus .article-body h3 für die CTA-Headline. */
.blog-cta h3 {
  display: block;
  font-family: var(--font-display); font-stretch: 125%;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(23px, 3.6vw, 36px);
  line-height: 1.08; letter-spacing: 0.002em;
  color: var(--navy);
  margin: 0 0 16px;
}
.blog-cta h3::before { content: none; }
.blog-cta p {
  font-size: 15.5px; color: rgb(var(--navy-rgb) / 0.82);
  line-height: 1.7; max-width: 520px;
  margin: 0 0 30px;
}
.btn-cta {
  display: inline-block;
  background: var(--navy); color: var(--lime);
  border: 1px solid var(--navy); border-radius: 2px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 28px; text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.18s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgb(var(--navy-rgb) / 0.4); }
.btn-cta:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.btn-cta:active { transform: translateY(0); }
/* Pflicht-Override: .article-body a würde die Button-Textfarbe mit dem
   Akzent überschreiben. Button ist Navy-Fläche → Text bleibt Lime
   (Konstante, themenunabhängig lesbar). */
.article-body .btn-cta { color: var(--lime); text-decoration: none; }

/* ════ 18 · FOOTER ════ */
footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s4); }
footer .wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.foot-top {
  display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5);
  padding-bottom: var(--s4); border-bottom: 1px solid var(--line);
}
.foot-brand img { height: 24px; width: auto; display: block; margin-bottom: 12px; }
.foot-tagline {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate-txt); max-width: 300px; line-height: 1.9;
}
.foot-col h4 {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-txt);
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { font-size: 13px; color: var(--foot-link); text-decoration: none; }
.foot-col a:hover { color: var(--acc-ink); }
.foot-col a:active { color: var(--ink); }
.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: var(--s3);
}
.foot-copy { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--foot-link); }
.social-link {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-txt); text-decoration: none;
  transition: transform 0.18s ease;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { color: var(--acc-ink); border-color: var(--acc-ink); transform: translateY(-2px); }
.social-link:active { transform: translateY(0); }

/* ════ 19 · SCROLL-REVEAL ════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.06s; } .d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.22s; } .d4 { transition-delay: 0.3s; }

/* ════ 20 · REDUCED MOTION ════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .faq-answer-inner { opacity: 1; transform: none; }
  .tt-knob, .faq-icon { transition: none; }
}

/* ════ 21 · RESPONSIVE ≥760px ════ */
@media (min-width: 760px) {
  :root { --gutter: 40px; }
  .head-nav { display: block; }
  .head-cta { display: inline-block; }
  .hamburger { display: none; }
  .mobile-menu { display: none; }

  .blog-hero { padding-top: 140px; }
  .framework-visual { padding: 54px 36px 34px; }
  .callout { padding: 30px 34px; }
  .toc { padding: 28px 32px; }
  .phase-card { grid-template-columns: 64px minmax(0, 1fr); }
}
