/* =====================================================================
   Claude Code Masterclass · Globale Stylesheet-Datei
   ---------------------------------------------------------------------
   Aufbau:
   1. Fonts (lokal, keine externen Quellen)
   2. BRANDING: alle austauschbaren Werte an EINER Stelle
   3. Basis (Reset, Typografie, Hintergrund, Wasserzeichen)
   4. Gerüst: Header, Inhaltsverzeichnis, Pager, Footer
   5. Komponenten (Karten, Callouts, Terminal, Tabellen, Schritte …)
   6. Login-Screen (index.html)
   7. Seiten-spezifische Stile (am Ende, je Kapitel gekennzeichnet)
   ===================================================================== */

/* ---------- 1. Fonts ---------- */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('../assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-style: normal; font-display: swap; src: url('../assets/fonts/inter-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 900; font-style: normal; font-display: swap; src: url('../assets/fonts/inter-900.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 100 800; font-style: normal; font-display: swap; src: url('../assets/fonts/jetbrains-mono-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 100 800; font-style: normal; font-display: swap; src: url('../assets/fonts/jetbrains-mono-var-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-weight: 400 900; font-style: normal; font-display: swap; src: url('../assets/fonts/playfair-display-400-900.woff2') format('woff2'); }

/* ---------- 2. BRANDING (für Re-Branding nur diesen Block + assets/logo.svg + index.html tauschen) ---------- */
:root {
  /* Kurs-Designsprache (dunkel, Glow, Akzentgelb) */
  --brand: #FAEF70;
  --brand-light: #FFFBCC;
  --brand-dim: rgba(250, 239, 112, 0.08);
  --dark: #0a0a0f;
  --dark-card: #111118;
  --dark-surface: #16161f;
  --dark-border: #1e1e2a;
  --text: #e0e0e8;
  --text-muted: #8888a0;
  --green: #70FAA0;
  --blue: #70B8FA;
  --red: #FA7070;
  --orange: #FAB870;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;

  /* Kunden-CI (Login-Screen und Akzente): Création Gross */
  --ci-rot: #c61932;
  --ci-rot-tief: #9d2235;
  --ci-schwarz: #272725;
  --ci-schwarz-tief: #1d1d1b;
  --ci-gold: #b7a18f;
  --ci-gold-dunkel: #8a7360;
  --ci-nebel: #e8e4df;
  --ci-schnee: #f4f3f1;
  --ci-text: #4a4a47;
}

/* ---------- 3. Basis ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* Dezentes Wasserzeichen (Schleifen-Lineart) statt des früheren Rasters */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 680 220'%3E%3Cg fill='none' stroke='%23FAEF70' stroke-opacity='0.028' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M316 100 L212 54 Q194 100 212 146 L316 100 Z'/%3E%3Cpath d='M364 100 L468 54 Q486 100 468 146 L364 100 Z'/%3E%3Crect x='316' y='82' width='48' height='36' rx='9'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 62%;
  background-size: min(920px, 130vw);
  pointer-events: none;
  z-index: 0;
}

.glow-orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(120px); }
.glow-1 { width: 500px; height: 500px; background: rgba(250, 239, 112, 0.06); top: -150px; left: -80px; }
.glow-2 { width: 400px; height: 400px; background: rgba(250, 239, 112, 0.04); bottom: 5%; right: -100px; }
.glow-3 { width: 350px; height: 350px; background: rgba(250, 239, 112, 0.03); top: 50%; left: 30%; }

::selection { background: var(--brand); color: var(--dark); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }
img, svg, video { max-width: 100%; height: auto; }
strong { color: #fff; font-weight: 700; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: 5px; padding: 0.1em 0.4em; color: var(--brand-light); }
pre code { background: none; border: none; padding: 0; }
kbd { font-family: var(--mono); font-size: 0.82em; background: var(--dark-surface); border: 1px solid var(--dark-border); border-bottom-width: 2px; border-radius: 6px; padding: 0.15em 0.5em; color: var(--text); white-space: nowrap; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; width: 100%; }
.container-schmal { max-width: 860px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; width: 100%; }

/* Typografie-Bausteine */
.eyebrow { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #fff; margin-bottom: 20px; }
.page-hero h1 em, .marker { font-style: normal; color: var(--brand); }
.lead { font-size: 1.16rem; color: var(--text-muted); max-width: 760px; }
.section { padding: 56px 0; position: relative; z-index: 1; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; color: #fff; margin-bottom: 14px; }
.section-intro { color: var(--text-muted); max-width: 740px; margin-bottom: 34px; }
.section p + p { margin-top: 1em; }

/* Helle Sektion (Rhythmuswechsel) */
.section-hell { background: var(--ci-schnee); color: var(--ci-schwarz); }
.section-hell .section-title { color: var(--ci-schwarz); }
.section-hell .section-intro, .section-hell p { color: var(--ci-text); }
.section-hell .eyebrow { color: var(--ci-rot); }
.section-hell strong { color: var(--ci-schwarz); }

/* ---------- 4. Gerüst ---------- */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--dark-border); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); min-width: 0; }
.brand:hover { color: #fff; }
.brand-logo { display: inline-block; width: 126px; height: 17px; background: currentColor; -webkit-mask: url('../assets/logo.svg') no-repeat center / contain; mask: url('../assets/logo.svg') no-repeat center / contain; flex: none; }
.brand-kurs { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; border-left: 1px solid var(--dark-border); padding-left: 14px; }
.topbar-label { font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-step { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--dark-border); border-radius: 8px; color: var(--text); font-size: 1rem; background: var(--dark-card); }
.topbar-step:hover { border-color: var(--brand); color: var(--brand); }
.topbar-step.is-off { opacity: 0.25; pointer-events: none; }
.topbar-toc { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--dark); background: var(--brand); border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.topbar-toc:hover { background: var(--brand-light); }

/* Inhaltsverzeichnis-Overlay */
.toc-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(5, 5, 10, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: flex-end; }
.toc-overlay[hidden] { display: none; }
.toc-panel { width: min(420px, 92vw); height: 100%; overflow-y: auto; background: var(--dark-card); border-left: 1px solid var(--dark-border); padding: 22px 26px 40px; }
.toc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toc-home { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--brand); }
.toc-close { background: none; border: 1px solid var(--dark-border); border-radius: 8px; color: var(--text); font-size: 1.2rem; width: 34px; height: 34px; cursor: pointer; line-height: 1; }
.toc-close:hover { border-color: var(--brand); color: var(--brand); }
.toc-modul { margin-bottom: 20px; }
.toc-modul-titel { font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.toc-link { display: flex; gap: 12px; align-items: baseline; padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: 0.92rem; }
.toc-link:hover { background: var(--dark-surface); color: #fff; }
.toc-link.is-aktuell { background: var(--brand-dim); color: var(--brand); }
.toc-nr { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); flex: none; }
.toc-link.is-aktuell .toc-nr { color: var(--brand); }
.toc-logout { margin-top: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); background: none; border: 1px solid var(--dark-border); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.toc-logout:hover { color: var(--red); border-color: var(--red); }
body.toc-offen { overflow: hidden; }

/* Pager (Seitenende) */
.pager { max-width: 1200px; margin: 24px auto 0; padding: 0 24px 56px; display: flex; gap: 16px; position: relative; z-index: 1; }
.pager-card { flex: 1; border: 1px solid var(--dark-border); background: var(--dark-card); border-radius: 14px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pager-card:hover { border-color: var(--brand); }
.pager-next { text-align: right; align-items: flex-end; }
.pager-richtung { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.pager-titel { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.pager-card:hover .pager-titel { color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--dark-border); background: rgba(10, 10, 15, 0.6); position: relative; z-index: 1; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.footer-autor { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--text); }
.footer-meta { font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted); }

/* ---------- 5. Komponenten ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* Grid-Kinder duerfen nie breiter als ihre Spalte werden (pre/Code-Inhalte scrollen intern) */
[class*="grid"] > *, .card, .step, .stat { min-width: 0; }
.step > *, .callout > * { min-width: 0; }
.card pre, .step pre { max-width: 100%; }

.card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 14px; padding: 26px; position: relative; }
.card:hover { border-color: rgba(250, 239, 112, 0.35); }
.card h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }
.card-icon { font-size: 1.5rem; margin-bottom: 14px; display: block; }
.card-akzent { border-color: rgba(250, 239, 112, 0.4); background: linear-gradient(160deg, rgba(250, 239, 112, 0.05), var(--dark-card) 55%); }

.badge { display: inline-block; font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--dark-border); color: var(--text-muted); }
.badge-brand { color: var(--brand); border-color: rgba(250, 239, 112, 0.4); background: var(--brand-dim); }
.badge-gruen { color: var(--green); border-color: rgba(112, 250, 160, 0.35); background: rgba(112, 250, 160, 0.07); }
.badge-rot { color: var(--red); border-color: rgba(250, 112, 112, 0.35); background: rgba(250, 112, 112, 0.07); }
.badge-blau { color: var(--blue); border-color: rgba(112, 184, 250, 0.35); background: rgba(112, 184, 250, 0.07); }

.callout { border-radius: 14px; border: 1px solid var(--dark-border); background: var(--dark-card); padding: 20px 24px; margin: 26px 0; display: flex; gap: 16px; align-items: flex-start; }
.callout-icon { flex: none; font-size: 1.25rem; line-height: 1.5; }
.callout p { color: var(--text-muted); font-size: 0.95rem; }
.callout-titel { display: block; color: #fff; font-weight: 700; margin-bottom: 4px; font-size: 0.98rem; }
.callout-tipp { border-color: rgba(112, 250, 160, 0.3); background: rgba(112, 250, 160, 0.05); }
.callout-achtung { border-color: rgba(250, 184, 112, 0.35); background: rgba(250, 184, 112, 0.05); }
.callout-gefahr { border-color: rgba(250, 112, 112, 0.35); background: rgba(250, 112, 112, 0.05); }
.callout-merke { border-color: rgba(250, 239, 112, 0.35); background: var(--brand-dim); }

/* Terminal- und Prompt-Fenster */
.terminal { background: #0d0d14; border: 1px solid var(--dark-border); border-radius: 14px; overflow: hidden; margin: 26px 0; }
.terminal-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--dark-border); background: var(--dark-card); }
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dark-border); }
.terminal-dot:nth-child(1) { background: #fa7070; }
.terminal-dot:nth-child(2) { background: #fab870; }
.terminal-dot:nth-child(3) { background: #70faa0; }
.terminal-titel { font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted); margin-left: 8px; }
.terminal-body { padding: 20px 22px; font-family: var(--mono); font-size: 0.84rem; line-height: 1.75; overflow-x: auto; }
.terminal-body .zeile-user { color: var(--brand); }
.terminal-body .zeile-claude { color: var(--text); }
.terminal-body .zeile-dim { color: var(--text-muted); }
.terminal-body .zeile-ok { color: var(--green); }
pre.code { background: #0d0d14; border: 1px solid var(--dark-border); border-radius: 14px; padding: 20px 22px; font-family: var(--mono); font-size: 0.84rem; line-height: 1.7; overflow-x: auto; margin: 26px 0; color: var(--text); }

/* Scrollbare Prompt-Box mit Kopierfunktion */
.prompt-box { background: #0d0d14; border: 1px solid var(--dark-border); border-radius: 14px; overflow: hidden; margin: 26px 0; }
.prompt-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--dark-border); background: var(--dark-card); }
.prompt-box-titel { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.08em; }
.prompt-box-copy { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--dark); background: var(--brand); border: none; border-radius: 7px; padding: 7px 14px; cursor: pointer; }
.prompt-box-copy:hover { background: var(--brand-light); }
.prompt-box-copy.is-kopiert { background: var(--green); }
.prompt-box-body { height: 320px; overflow-y: auto; padding: 20px 22px; font-family: var(--mono); font-size: 0.8rem; line-height: 1.75; color: var(--text); white-space: pre-wrap; }

/* Tabellen */
.tabelle-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--dark-border); border-radius: 14px; }
table.tabelle { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
table.tabelle th { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--dark-border); background: var(--dark-card); }
table.tabelle td { padding: 13px 18px; border-bottom: 1px solid var(--dark-border); color: var(--text-muted); vertical-align: top; }
table.tabelle tr:last-child td { border-bottom: none; }
table.tabelle td:first-child { color: var(--text); font-weight: 600; }
table.tabelle tr:hover td { background: rgba(250, 239, 112, 0.02); }

/* Nummerierte Schritte */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.step { counter-increment: step; position: relative; background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 14px; padding: 20px 24px 20px 68px; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 21px; font-family: var(--mono); font-size: 0.95rem; font-weight: 800; color: var(--brand); line-height: 1.7; }
.step h4 { color: #fff; font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 26px 0; }
.stat { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 14px; padding: 22px; text-align: center; }
.stat-wert { font-family: var(--mono); font-size: 1.9rem; font-weight: 800; color: var(--brand); display: block; line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; display: block; }

/* Buttons */
.btn { display: inline-block; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; padding: 13px 26px; border-radius: 10px; border: none; cursor: pointer; }
.btn-brand { background: var(--brand); color: var(--dark); }
.btn-brand:hover { background: var(--brand-light); color: var(--dark); }
.btn-ghost { background: none; border: 1px solid var(--dark-border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Figuren / Diagramm-Rahmen */
.figur { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 14px; padding: 28px; margin: 26px 0; }
.figur svg { display: block; width: 100%; height: auto; }
.figur-caption { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* Video-Einbettung */
.video-wrap { border: 1px solid var(--dark-border); border-radius: 14px; overflow: hidden; margin: 26px 0; background: #000; }
.video-wrap video { display: block; width: 100%; height: auto; }

/* Vergleich (zwei Spalten mit Screenshot-Links) */
.vergleich-karte { display: block; border: 1px solid var(--dark-border); border-radius: 14px; overflow: hidden; background: var(--dark-card); }
.vergleich-karte:hover { border-color: var(--brand); }
.vergleich-karte img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.vergleich-info { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vergleich-name { color: #fff; font-weight: 700; font-size: 0.98rem; }
.vergleich-url { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); }

/* Einfache Animationen */
@keyframes einblenden { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.anim-auf { animation: einblenden 0.7s ease both; }
@keyframes pulsieren { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.anim-puls { animation: pulsieren 2.2s ease-in-out infinite; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
.anim-zeichnen { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: zeichnen 2.4s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .anim-auf, .anim-puls, .anim-zeichnen { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- 6. Login-Screen ---------- */
body.login { background: var(--ci-schnee); color: var(--ci-schwarz); display: block; }
body.login::before { display: none; }
.login-split { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 44%) 1fr; }
.login-formseite { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(32px, 6vw, 88px); background: var(--ci-schnee); position: relative; }
.login-logo { color: var(--ci-schwarz); width: 190px; height: 26px; display: inline-block; background: currentColor; -webkit-mask: url('../assets/logo.svg') no-repeat left center / contain; mask: url('../assets/logo.svg') no-repeat left center / contain; margin-bottom: 56px; }
.login-eyebrow { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ci-gold-dunkel); margin-bottom: 18px; }
.login-titel { font-family: var(--serif); font-weight: 560; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.14; letter-spacing: -0.012em; color: var(--ci-schwarz); margin-bottom: 16px; }
.login-titel .login-akzent { color: var(--ci-rot); font-style: italic; }
.login-sub { color: var(--ci-text); font-size: 1.02rem; max-width: 420px; margin-bottom: 44px; }
.login-feld-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ci-gold-dunkel); margin-bottom: 10px; }
.login-zeile { display: flex; gap: 12px; max-width: 440px; }
.login-input { flex: 1; font-family: var(--sans); font-size: 1rem; padding: 15px 18px; border: 1px solid #d8d2ca; border-radius: 10px; background: #fff; color: var(--ci-schwarz); outline: none; min-width: 0; }
.login-input:focus { border-color: var(--ci-rot); box-shadow: 0 0 0 3px rgba(198, 25, 50, 0.12); }
.login-btn { font-family: var(--sans); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; padding: 15px 28px; border: none; border-radius: 10px; background: var(--ci-rot); color: #fff; cursor: pointer; white-space: nowrap; }
.login-btn:hover { background: var(--ci-rot-tief); }
.login-fehler { display: none; margin-top: 16px; max-width: 440px; background: #fdf0f2; border: 1px solid rgba(198, 25, 50, 0.3); border-radius: 10px; padding: 13px 17px; color: var(--ci-rot-tief); font-size: 0.9rem; }
.login-fehler.is-sichtbar { display: block; animation: einblenden 0.35s ease; }
.login-fuss { position: absolute; bottom: 26px; left: clamp(32px, 6vw, 88px); right: clamp(32px, 6vw, 88px); display: flex; justify-content: space-between; gap: 16px; font-size: 0.72rem; color: var(--ci-gold-dunkel); }
.login-bildseite { position: relative; overflow: hidden; background: var(--ci-schwarz); min-height: 38vh; }
.login-bildseite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.login-bildseite::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, var(--ci-schnee) 0%, rgba(244, 243, 241, 0) 18%), linear-gradient(to top, rgba(29, 29, 27, 0.55), rgba(29, 29, 27, 0) 40%); }
.login-bild-zitat { position: absolute; z-index: 2; bottom: 34px; left: 38px; right: 38px; color: #fff; font-family: var(--serif); font-weight: 500; font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.4; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.login-bild-zitat .login-zitat-quelle { display: block; font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ci-gold); margin-top: 10px; text-shadow: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .login-split { grid-template-columns: 1fr; }
  .login-bildseite { order: -1; min-height: 30vh; }
  .login-formseite { padding-bottom: 120px; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .brand-kurs { display: none; }
  .topbar-label { display: none; }
  .page-hero { padding: 48px 0 28px; }
  .section { padding: 40px 0; }
  .pager { flex-direction: column; }
  .pager-next { align-items: flex-start; text-align: left; }
  .login-zeile { flex-direction: column; }
  .login-fuss { flex-direction: column; gap: 4px; }
}


/* ==================================================================
   7. Seiten-spezifische Stile (je Kapitel, Klassen-Prefix pNN-)
   ================================================================== */

/* ---------- Kapitel 01-zwei-lernwege ---------- */
/* Kapitel 01 · Zwei Wege, ein Ziel */

.p01-weg { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.p01-weg-oben { stroke: var(--brand); }
.p01-weg-unten { stroke: var(--blue); }

.p01-knoten { fill: var(--dark-surface); stroke: var(--text-muted); stroke-width: 2; }
.p01-ziel-halo { fill: rgba(250, 239, 112, 0.16); }
.p01-fahne-mast { stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; }
.p01-fahne { fill: var(--brand); }
.p01-aha { fill: var(--brand); }

.p01-dot-oben { fill: var(--brand); }
.p01-dot-unten { fill: var(--blue); }

.p01-wechsel { stroke: var(--text-muted); stroke-width: 1.5; stroke-dasharray: 4 5; }
.p01-pfeil { fill: var(--text-muted); }

.p01-label { font-family: var(--mono); font-size: 13px; fill: var(--text-muted); letter-spacing: 0.02em; }
.p01-label-brand { fill: var(--brand); }
.p01-label-blau { fill: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .p01-dot { display: none; }
}

/* ---------- Kapitel 03-warum-claude-code ---------- */
/* ── Kapitel 03: Warum Claude Code? ─────────────────────────────── */

/* Vergleichslisten in den Karten */
.p03-liste { list-style: none; padding: 0; margin: 16px 0 0; }
.p03-liste li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--dark-border); color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
.p03-liste li:last-child { border-bottom: none; }
.p03-nein { color: var(--red); font-weight: 700; flex: none; }
.p03-ja { color: var(--green); font-weight: 700; flex: none; }

/* SVG: Webchat vs. Claude Code */
.p03-panel { fill: rgba(13, 13, 20, 0.6); stroke: var(--dark-border); }
.p03-svg-titel { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--text); }
.p03-svg-titel-rot { fill: var(--red); }
.p03-svg-titel-gruen { fill: var(--green); }
.p03-svg-label { font-family: var(--sans); font-size: 12.5px; fill: var(--text-muted); }
.p03-svg-label-hell { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--text); }
.p03-svg-mono { font-family: var(--mono); font-size: 11px; fill: var(--text-muted); letter-spacing: 0.04em; }
.p03-node { fill: var(--dark-surface); stroke: var(--dark-border); stroke-width: 1.5; }
.p03-node-du { stroke: rgba(112, 184, 250, 0.55); }
.p03-node-ki { stroke: rgba(250, 239, 112, 0.55); }
.p03-node-ergebnis { stroke: rgba(112, 250, 160, 0.55); }
.p03-chip { fill: rgba(250, 239, 112, 0.06); stroke: rgba(250, 239, 112, 0.35); }
.p03-pfeil { stroke: var(--text-muted); stroke-width: 1.5; fill: none; }
.p03-pfeilkopf { fill: var(--text-muted); }
.p03-pfeilkopf-brand { fill: var(--brand); }
.p03-pfeilkopf-gruen { fill: var(--green); }
.p03-fluss { stroke: var(--brand); stroke-width: 2; fill: none; stroke-dasharray: 5 9; animation: p03-fliessen 1.4s linear infinite; }
.p03-fluss-gruen { stroke: var(--green); }
.p03-ball { fill: var(--red); animation: p03-pingpong 5s ease-in-out infinite; }

@keyframes p03-fliessen { to { stroke-dashoffset: -28; } }
@keyframes p03-pingpong {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(628px); }
}

@media (prefers-reduced-motion: reduce) {
  .p03-fluss, .p03-ball { animation: none; }
}

/* ---------- Kapitel 04-ki-als-werkzeug ---------- */
/* ── Kapitel 04: Die KI als Werkzeug ────────────────────────────── */

/* Listen in den Rollen-Karten */
.p04-liste { list-style: none; padding: 0; margin: 14px 0 0; }
.p04-liste li { position: relative; padding: 7px 0 7px 20px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
.p04-liste li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: 0.65; }
.p04-liste-blau li::before { background: var(--blue); }
.p04-liste-gruen li::before { background: var(--green); }

/* SVG: Zusammenspiel Mensch und KI */
.p04-kreis-mensch { fill: rgba(112, 184, 250, 0.07); stroke: rgba(112, 184, 250, 0.55); stroke-width: 1.5; }
.p04-kreis-ki { fill: rgba(250, 239, 112, 0.07); stroke: rgba(250, 239, 112, 0.55); stroke-width: 1.5; }
.p04-svg-titel { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.p04-titel-mensch { fill: var(--blue); }
.p04-titel-ki { fill: var(--brand); }
.p04-svg-label { font-family: var(--sans); font-size: 13px; fill: var(--text-muted); }
.p04-svg-mono { font-family: var(--mono); font-size: 11px; fill: var(--text-muted); letter-spacing: 0.04em; }
.p04-ergebnis-text { font-family: var(--mono); font-size: 14px; font-weight: 800; letter-spacing: 0.14em; fill: var(--brand); }
.p04-pfeilkopf-mensch { fill: var(--blue); }
.p04-pfeilkopf-ki { fill: var(--brand); }
.p04-fluss { stroke-width: 2; fill: none; stroke-dasharray: 5 9; animation: p04-fliessen 1.5s linear infinite; }
.p04-fluss-mensch { stroke: var(--blue); }
.p04-fluss-ki { stroke: var(--brand); }
.p04-funkel { fill: var(--brand); animation: p04-atmen 3.5s ease-in-out infinite; }
.p04-glowpuls { animation: p04-atmen 3.5s ease-in-out infinite; }

@keyframes p04-fliessen { to { stroke-dashoffset: -28; } }
@keyframes p04-atmen {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .p04-fluss, .p04-funkel, .p04-glowpuls { animation: none; }
}

/* ---------- Kapitel 05-kontextfenster ---------- */
/* Kapitel 05 · Das Kontextfenster */

/* SVG-Grundtexte */
.p05-svg-titel { font-family: var(--mono); font-size: 15px; font-weight: 700; fill: var(--text); letter-spacing: 0.06em; }
.p05-svg-label { font-family: var(--mono); font-size: 13px; font-weight: 600; fill: var(--text); }
.p05-svg-sub { font-family: var(--sans); font-size: 12px; fill: var(--text-muted); }
.p05-svg-klein { font-family: var(--mono); font-size: 10px; fill: var(--text-muted); letter-spacing: 0.08em; }

/* Diagramm A: Behälter, der sich füllt */
.p05-fblock { animation: p05-fuellen 12s ease-in-out infinite both; }
.p05-f1 { animation-delay: 0.4s; }
.p05-f2 { animation-delay: 1.8s; }
.p05-f3 { animation-delay: 3.2s; }
.p05-f4 { animation-delay: 4.6s; }
.p05-f5 { animation-delay: 6.0s; }

@keyframes p05-fuellen {
  0% { opacity: 0; transform: translateY(-16px); }
  6% { opacity: 1; transform: translateY(0); }
  86% { opacity: 1; transform: translateY(0); }
  94% { opacity: 0; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-16px); }
}

.p05-pegel { transform-origin: 60px 0; animation: p05-pegeln 12s ease-in-out infinite both; }

@keyframes p05-pegeln {
  0% { transform: scaleX(0.03); }
  5% { transform: scaleX(0.03); }
  8% { transform: scaleX(0.2); }
  17% { transform: scaleX(0.2); }
  20% { transform: scaleX(0.4); }
  29% { transform: scaleX(0.4); }
  32% { transform: scaleX(0.6); }
  40% { transform: scaleX(0.6); }
  43% { transform: scaleX(0.8); }
  52% { transform: scaleX(0.8); }
  55% { transform: scaleX(1); }
  86% { transform: scaleX(1); }
  94% { transform: scaleX(0.03); }
  100% { transform: scaleX(0.03); }
}

/* Diagramm B: Neu-Einlese-Zyklus */
.p05-zschritt { animation: p05-zyklus 10s ease-in-out infinite both; }
.p05-z1 { animation-delay: 0s; }
.p05-z2 { animation-delay: 2.5s; }
.p05-z3 { animation-delay: 5s; }
.p05-z4 { animation-delay: 7.5s; }

@keyframes p05-zyklus {
  0% { opacity: 0.4; }
  4% { opacity: 1; }
  25% { opacity: 1; }
  32% { opacity: 0.4; }
  100% { opacity: 0.4; }
}

.p05-zpfeil {
  stroke-dasharray: 7 9;
  animation: p05-fliessen 1.4s linear infinite;
}

@keyframes p05-fliessen {
  to { stroke-dashoffset: -16; }
}

@media (prefers-reduced-motion: reduce) {
  .p05-fblock, .p05-pegel, .p05-zschritt, .p05-zpfeil { animation: none; }
  .p05-fblock, .p05-zschritt { opacity: 1; transform: none; }
  .p05-pegel { transform: scaleX(1); }
}

/* ---------- Kapitel 06-agentisch-arbeiten ---------- */
/* Kapitel 06 · Agentisches Arbeiten */

/* Zitat-Boxen */
.p06-zitat {
  padding: 26px 30px;
  border-radius: 14px;
  margin: 24px 0;
  background: linear-gradient(135deg, rgba(250, 239, 112, 0.07), rgba(250, 239, 112, 0.02));
  border-left: 3px solid var(--brand);
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
}

.p06-zitat strong { color: #fff; font-style: normal; }

.p06-zitat-quelle {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.p06-zitat-quelle a { color: var(--brand); }

.p06-zitat-gruen {
  background: linear-gradient(135deg, rgba(112, 250, 160, 0.07), rgba(112, 250, 160, 0.02));
  border-left-color: var(--green);
}

.p06-zitat-orange {
  background: linear-gradient(135deg, rgba(250, 184, 112, 0.07), rgba(250, 184, 112, 0.02));
  border-left-color: var(--orange);
}

/* VS-Gegenüberstellung */
.p06-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 34px 0;
  flex-wrap: wrap;
}

.p06-vs-seite {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.p06-vs-kreis {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(250, 239, 112, 0.12), rgba(250, 239, 112, 0.04));
  border: 1px solid rgba(250, 239, 112, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
}

/* Zeitstrahl */
.p06-zeitstrahl { position: relative; padding-left: 40px; margin: 30px 0; }

.p06-zeitstrahl::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--brand), var(--green));
}

.p06-zs-punkt { position: relative; margin-bottom: 30px; }
.p06-zs-punkt:last-child { margin-bottom: 0; }

.p06-zs-punkt::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 3px solid var(--zs-farbe, var(--brand));
}

.p06-zs-orange { --zs-farbe: var(--orange); }
.p06-zs-gelb { --zs-farbe: var(--brand); }
.p06-zs-gruen { --zs-farbe: var(--green); }

.p06-zs-datum {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zs-farbe, var(--brand));
  margin-bottom: 4px;
}

.p06-zs-titel {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.p06-zs-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.p06-zs-text strong { color: var(--text); }

/* SVG-Flussdiagramm (Teaser Mensch/Agent) */
.p06-svg-label { font-family: var(--mono); font-size: 13px; font-weight: 700; fill: var(--text); letter-spacing: 0.04em; }
.p06-svg-sub { font-family: var(--sans); font-size: 11.5px; fill: var(--text-muted); }

.p06-fluss {
  stroke-dasharray: 7 9;
  animation: p06-fliessen 1.4s linear infinite;
}

@keyframes p06-fliessen {
  to { stroke-dashoffset: -16; }
}

@media (prefers-reduced-motion: reduce) {
  .p06-fluss { animation: none; }
}

/* ---------- Kapitel 07-mensch-steuert ---------- */
/* ============================================================
   Kapitel 07 · Mensch steuert, Agent arbeitet
   Alle Klassen und Keyframes mit p07- geprefixt.
   ============================================================ */

/* --- Vorher/Nachher-Vergleich --- */
.p07-alt { border-color: rgba(250, 112, 112, 0.28); background: linear-gradient(165deg, rgba(250, 112, 112, 0.06), var(--dark-card) 55%); }
.p07-neu { border-color: rgba(250, 239, 112, 0.38); background: linear-gradient(165deg, rgba(250, 239, 112, 0.07), var(--dark-card) 55%); }
.p07-etikett { display: inline-block; font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; }
.p07-alt .p07-etikett { color: var(--red); border: 1px solid rgba(250, 112, 112, 0.35); background: rgba(250, 112, 112, 0.07); }
.p07-neu .p07-etikett { color: var(--brand); border: 1px solid rgba(250, 239, 112, 0.4); background: var(--brand-dim); }
.p07-ablauf { list-style: none; padding: 0; margin-top: 16px; }
.p07-ablauf li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; font-size: 0.9rem; color: var(--text-muted); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.p07-ablauf li:last-child { border-bottom: none; }
.p07-nr { font-family: var(--mono); font-size: 0.66rem; font-weight: 800; flex: none; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.p07-alt .p07-nr { color: var(--red); background: rgba(250, 112, 112, 0.08); border: 1px solid rgba(250, 112, 112, 0.2); }
.p07-neu .p07-nr { color: var(--brand); background: var(--brand-dim); border: 1px solid rgba(250, 239, 112, 0.25); }

/* --- SVG: 4-Phasen-Workflow --- */
.p07-svg-titel { font-family: var(--sans); font-size: 17px; font-weight: 700; fill: #fff; }
.p07-svg-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--text-muted); }
.p07-svg-rolle { font-family: var(--sans); font-size: 12px; fill: var(--text); }
.p07-svg-rolle-agent { fill: var(--text-muted); }
.p07-svg-num { font-family: var(--mono); font-size: 13px; font-weight: 800; }
.p07-svg-schleife { font-family: var(--mono); font-size: 11px; fill: var(--text-muted); }
.p07-box { fill: var(--dark-card); stroke-width: 1.5; }
.p07-rand-blau { stroke: rgba(112, 184, 250, 0.55); }
.p07-rand-gruen { stroke: rgba(112, 250, 160, 0.55); }
.p07-rand-gelb { stroke: rgba(250, 239, 112, 0.55); }
.p07-rand-orange { stroke: rgba(250, 184, 112, 0.55); }
.p07-kreis-blau { fill: rgba(112, 184, 250, 0.12); stroke: var(--blue); stroke-width: 1.5; }
.p07-kreis-gruen { fill: rgba(112, 250, 160, 0.12); stroke: var(--green); stroke-width: 1.5; }
.p07-kreis-gelb { fill: rgba(250, 239, 112, 0.12); stroke: var(--brand); stroke-width: 1.5; }
.p07-kreis-orange { fill: rgba(250, 184, 112, 0.12); stroke: var(--orange); stroke-width: 1.5; }
.p07-fill-blau { fill: var(--blue); }
.p07-fill-gruen { fill: var(--green); }
.p07-fill-gelb { fill: var(--brand); }
.p07-fill-orange { fill: var(--orange); }
.p07-fill-muted { fill: var(--text-muted); }

.p07-knoten { opacity: 0; animation: p07-erscheinen 0.7s ease forwards; }
.p07-k1 { animation-delay: 0.15s; }
.p07-k2 { animation-delay: 0.45s; }
.p07-k3 { animation-delay: 0.75s; }
.p07-k4 { animation-delay: 1.05s; }
@keyframes p07-erscheinen {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.p07-strom { stroke: var(--brand); stroke-opacity: 0.55; stroke-width: 2; fill: none; stroke-dasharray: 3 9; animation: p07-fluss 1.4s linear infinite; }
.p07-rueck { stroke: var(--text-muted); stroke-opacity: 0.7; stroke-width: 1.5; fill: none; stroke-dasharray: 3 9; animation: p07-fluss 2.2s linear infinite; }
@keyframes p07-fluss { to { stroke-dashoffset: -48; } }

/* --- Phasen-Karten mit Rollenzeilen --- */
.p07-phase .badge { margin-bottom: 14px; }
.p07-rolle { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 0.88rem; color: var(--text-muted); }
.p07-wer { font-family: var(--mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; flex: none; margin-top: 3px; }
.p07-wer-du { color: var(--brand); background: var(--brand-dim); border: 1px solid rgba(250, 239, 112, 0.3); }
.p07-wer-agent { color: var(--blue); background: rgba(112, 184, 250, 0.08); border: 1px solid rgba(112, 184, 250, 0.3); }

/* --- Steuerungsmittel --- */
.p07-taste { display: inline-block; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--brand); background: var(--brand-dim); border: 1px solid rgba(250, 239, 112, 0.25); border-radius: 7px; padding: 3px 10px; margin-bottom: 12px; }
.p07-badge-orange { color: var(--orange); border-color: rgba(250, 184, 112, 0.35); background: rgba(250, 184, 112, 0.07); }

/* --- Merksatz --- */
.p07-merksatz { text-align: center; padding: 44px 32px; }
.p07-merksatz h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.p07-merksatz p { max-width: 640px; margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  .p07-knoten { animation: none; opacity: 1; }
  .p07-strom, .p07-rueck { animation: none; }
}

/* ---------- Kapitel 08-drei-saeulen ---------- */
/* ============================================================
   Kapitel 08 · Die drei Säulen der Zusammenarbeit
   Alle Klassen und Keyframes mit p08- geprefixt.
   ============================================================ */

/* --- SVG: Säulen-Grafik --- */
.p08-svg-titel { font-family: var(--sans); font-size: 16px; font-weight: 700; fill: #fff; }
.p08-svg-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; fill: var(--text-muted); }
.p08-svg-dachtitel { font-family: var(--sans); font-size: 18px; font-weight: 800; fill: var(--brand); letter-spacing: 0.02em; }
.p08-svg-dachsub { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--text-muted); }
.p08-dach-form { fill: var(--dark-card); stroke: rgba(250, 239, 112, 0.45); stroke-width: 1.5; }
.p08-boden { fill: var(--dark-surface); stroke: var(--dark-border); }
.p08-saeule-blau { fill: rgba(112, 184, 250, 0.14); stroke: rgba(112, 184, 250, 0.6); stroke-width: 1.5; }
.p08-saeule-gelb { fill: rgba(250, 239, 112, 0.12); stroke: rgba(250, 239, 112, 0.55); stroke-width: 1.5; }
.p08-saeule-gruen { fill: rgba(112, 250, 160, 0.13); stroke: rgba(112, 250, 160, 0.55); stroke-width: 1.5; }
.p08-rille { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }

.p08-saeule { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: p08-wachsen 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.p08-w1 { animation-delay: 0.2s; }
.p08-w2 { animation-delay: 0.5s; }
.p08-w3 { animation-delay: 0.8s; }
@keyframes p08-wachsen { to { transform: scaleY(1); } }
.p08-dach { opacity: 0; animation: p08-senken 0.8s ease forwards; animation-delay: 1.35s; }
@keyframes p08-senken {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
.p08-etikett { opacity: 0; animation: p08-zeigen 0.6s ease forwards; }
.p08-e1 { animation-delay: 0.9s; }
.p08-e2 { animation-delay: 1.1s; }
.p08-e3 { animation-delay: 1.3s; }
@keyframes p08-zeigen { to { opacity: 1; } }

/* --- Säulen-Karten --- */
.p08-karte .badge { margin-bottom: 14px; }
.p08-karte-blau { border-top: 3px solid rgba(112, 184, 250, 0.55); }
.p08-karte-gelb { border-top: 3px solid rgba(250, 239, 112, 0.55); }
.p08-karte-gruen { border-top: 3px solid rgba(112, 250, 160, 0.55); }
.p08-punkte { list-style: none; padding: 0; margin: 14px 0 0; }
.p08-punkte li { position: relative; padding: 7px 0 7px 24px; font-size: 0.9rem; color: var(--text-muted); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.p08-punkte li:last-child { border-bottom: none; }
.p08-punkte li::before { content: '\2713'; position: absolute; left: 0; top: 7px; font-weight: 700; }
.p08-punkte-blau li::before { color: var(--blue); }
.p08-punkte-gelb li::before { color: var(--brand); }
.p08-punkte-gruen li::before { color: var(--green); }
.p08-fazit { margin-top: 18px; font-family: var(--mono); font-size: 0.74rem; font-weight: 600; line-height: 1.5; padding: 12px 16px; border-radius: 10px; }
.p08-fazit-blau { color: var(--blue); background: rgba(112, 184, 250, 0.07); border: 1px solid rgba(112, 184, 250, 0.16); }
.p08-fazit-gelb { color: var(--brand); background: var(--brand-dim); border: 1px solid rgba(250, 239, 112, 0.16); }
.p08-fazit-gruen { color: var(--green); background: rgba(112, 250, 160, 0.07); border: 1px solid rgba(112, 250, 160, 0.16); }
.p08-mehr { margin-top: 14px; font-size: 0.85rem; }

/* --- Beispiel: Auftrag-Banner --- */
.p08-auftrag { display: flex; align-items: center; gap: 16px; padding: 20px 26px; border-radius: 14px; background: linear-gradient(135deg, rgba(250, 239, 112, 0.07), rgba(250, 239, 112, 0.02)); border: 1px solid rgba(250, 239, 112, 0.2); margin: 26px 0; }
.p08-auftrag-icon { font-size: 1.6rem; flex: none; }
.p08-auftrag-label { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin-bottom: 2px; }
.p08-auftrag-text { color: var(--text); font-size: 1.02rem; font-weight: 600; }

/* --- Beispiel: Vergleich schlecht/gut --- */
.p08-step-titel .badge { margin-left: 8px; }
.p08-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.p08-schlecht, .p08-gut { padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }
.p08-schlecht { background: rgba(250, 112, 112, 0.05); border: 1px solid rgba(250, 112, 112, 0.2); }
.p08-gut { background: rgba(112, 250, 160, 0.05); border: 1px solid rgba(112, 250, 160, 0.2); }
.p08-label { display: block; font-family: var(--mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.p08-label-rot { color: var(--red); }
.p08-label-gruen { color: var(--green); }

/* --- Beispiel: Iterations-Feedback --- */
.p08-feedbacks { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.p08-feedback { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 10px; background: rgba(112, 250, 160, 0.05); border: 1px solid rgba(112, 250, 160, 0.15); font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }
.p08-feedback strong { color: var(--green); font-weight: 700; }

/* --- Zusammenspiel: Chips --- */
.p08-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.p08-chip { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; padding: 8px 14px; border-radius: 10px; background: var(--dark-surface); border: 1px solid var(--dark-border); color: var(--text); }
.p08-chip-blau { border-color: rgba(112, 184, 250, 0.4); color: var(--blue); }
.p08-chip-gelb { border-color: rgba(250, 239, 112, 0.4); color: var(--brand); }
.p08-chip-gruen { border-color: rgba(112, 250, 160, 0.4); color: var(--green); }
.p08-chip-pfeil { font-family: var(--mono); color: var(--text-muted); }

/* --- Merkformel --- */
.p08-formel { text-align: center; padding: 44px 32px; }
.p08-formel-zeile { font-family: var(--mono); font-size: clamp(1rem, 2.8vw, 1.5rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.p08-mal { color: var(--text-muted); margin: 0 10px; }
.p08-formel p { max-width: 640px; margin-left: auto; margin-right: auto; }

@media (max-width: 680px) {
  .p08-duo { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .p08-saeule, .p08-dach, .p08-etikett { animation: none; transform: none; opacity: 1; }
}

/* ---------- Kapitel 09-zugaenge ---------- */
/* Kapitel 09 · Die vier Zugänge */

/* Steckbrief-Zeilen: Text links, Mockup rechts */
.p09-zugang {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
  margin: 44px 0;
}
.p09-zugang + .p09-zugang {
  border-top: 1px solid var(--dark-border);
  padding-top: 44px;
}
.p09-zugang-info h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 12px 0 10px;
}
.p09-zugang-info > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* Für wen / Stärken / Grenzen */
.p09-merkmale { display: flex; flex-direction: column; gap: 12px; }
.p09-merkmal {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 14px 18px;
}
.p09-merkmal-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.p09-merkmal p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.p09-merkmal ul { list-style: none; margin: 0; padding: 0; }
.p09-merkmal li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.p09-merkmal li::before {
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-weight: 700;
}
.p09-plus li::before { content: '+'; color: var(--green); }
.p09-minus li::before { content: '\2715'; color: var(--red); font-size: 0.75em; top: 2px; }

/* Fenster-Mockups (Browser, App, Editor) */
.p09-fenster {
  background: #0d0d14;
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.p09-fenster-kopf {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--dark-card);
  border-bottom: 1px solid var(--dark-border);
}
.p09-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dark-border); flex: none; }
.p09-dot:nth-child(1) { background: #fa7070; }
.p09-dot:nth-child(2) { background: #fab870; }
.p09-dot:nth-child(3) { background: #70faa0; }
.p09-url {
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  padding: 2px 16px;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}
.p09-fenster-titel {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Chat-Bereich in den Mockups */
.p09-chat {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
}
.p09-bubble {
  max-width: 88%;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.55;
}
.p09-bubble-user {
  align-self: flex-end;
  background: rgba(250, 239, 112, 0.08);
  border: 1px solid rgba(250, 239, 112, 0.22);
  color: var(--text);
  border-bottom-right-radius: 4px;
}
.p09-bubble-ki {
  align-self: flex-start;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-muted);
  border-bottom-left-radius: 4px;
}
.p09-eingabe {
  margin-top: auto;
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.p09-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(112, 250, 160, 0.08);
  border: 1px solid rgba(112, 250, 160, 0.25);
  border-radius: 50px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--green);
}

/* VS-Code-Mockup: Explorer links, Claude-Panel rechts */
.p09-vscode {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 210px;
  font-size: 0.72rem;
}
.p09-explorer {
  background: #101018;
  border-right: 1px solid var(--dark-border);
  padding: 12px 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
}
.p09-explorer-titel {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.p09-datei {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--text-muted);
  white-space: nowrap;
}
.p09-datei span { font-weight: 700; }
.p09-ordner { color: var(--text); font-weight: 600; }
.p09-mod, .p09-mod span { color: var(--orange); }
.p09-neu, .p09-neu span { color: var(--green); }
.p09-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.p09-panel-titel {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Vergleichstabelle: Häkchen zentriert */
.p09-vergleich th:not(:first-child),
.p09-vergleich td:not(:first-child) { text-align: center; }
.p09-ja { color: var(--green); font-weight: 700; }
.p09-nein { color: var(--text-muted); opacity: 0.35; }
.p09-stern { color: var(--brand); font-weight: 700; }

@media (max-width: 860px) {
  .p09-zugang { grid-template-columns: 1fr; gap: 22px; }
  .p09-vscode { grid-template-columns: 120px 1fr; }
}

/* ---------- Kapitel 10-vscode ---------- */
/* Kapitel 10 · VS Code: der empfohlene Weg */

/* Fenster-Mockup (VS-Code-Explorer) */
.p10-fenster {
  background: #0d0d14;
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  margin: 26px 0;
}
.p10-fenster-kopf {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--dark-card);
  border-bottom: 1px solid var(--dark-border);
}
.p10-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dark-border); flex: none; }
.p10-dot:nth-child(1) { background: #fa7070; }
.p10-dot:nth-child(2) { background: #fab870; }
.p10-dot:nth-child(3) { background: #70faa0; }
.p10-fenster-titel {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}
.p10-vscode {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 240px;
  font-family: var(--mono);
  font-size: 0.7rem;
}
.p10-explorer {
  background: #101018;
  border-right: 1px solid var(--dark-border);
  padding: 12px 10px;
}
.p10-explorer-titel {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.p10-datei {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--text-muted);
  white-space: nowrap;
}
.p10-datei span { font-weight: 700; }
.p10-ebene { padding-left: 20px; }
.p10-ordner { color: var(--text); font-weight: 600; }
.p10-mod, .p10-mod span { color: var(--orange); }
.p10-neu, .p10-neu span { color: var(--green); }
.p10-protokoll { padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.p10-protokoll-titel {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}
.p10-protokoll .p10-ok { color: var(--green); }
.p10-protokoll .p10-lauf { color: var(--text-muted); }

/* Legende unter dem Mockup */
.p10-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.p10-legende b { font-weight: 700; }
.p10-legende .p10-mod-mark { color: var(--orange); }
.p10-legende .p10-neu-mark { color: var(--green); }

/* Diff-Mockup */
.p10-diff {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.7;
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 16px;
  background: #0d0d14;
}
.p10-diff > div { padding: 2px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p10-diff-kopf {
  background: var(--dark-card);
  border-bottom: 1px solid var(--dark-border);
  color: var(--text-muted);
  font-size: 0.62rem;
  padding: 6px 12px !important;
}
.p10-diff-minus { background: rgba(250, 112, 112, 0.09); color: var(--red); }
.p10-diff-plus { background: rgba(112, 250, 160, 0.09); color: var(--green); }
.p10-diff-ctx { color: var(--text-muted); }

/* Animierter Datenfluss im SVG-Diagramm */
.p10-fluss {
  stroke-dasharray: 7 7;
  animation: p10-fluss 1.4s linear infinite;
}
@keyframes p10-fluss {
  to { stroke-dashoffset: -28; }
}
@media (prefers-reduced-motion: reduce) {
  .p10-fluss { animation: none; }
}

/* Tags in der Entscheidungsmatrix */
.p10-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.p10-tag-web { color: var(--blue); background: rgba(112, 184, 250, 0.1); border: 1px solid rgba(112, 184, 250, 0.25); }
.p10-tag-desktop { color: var(--green); background: rgba(112, 250, 160, 0.1); border: 1px solid rgba(112, 250, 160, 0.25); }
.p10-tag-vscode { color: var(--brand); background: rgba(250, 239, 112, 0.1); border: 1px solid rgba(250, 239, 112, 0.3); }
.p10-tag-terminal { color: var(--orange); background: rgba(250, 184, 112, 0.1); border: 1px solid rgba(250, 184, 112, 0.25); }

@media (max-width: 640px) {
  .p10-vscode { grid-template-columns: 140px 1fr; }
}

/* ---------- Kapitel 11-plan-waehlen ---------- */
/* ==========================================================================
   Kapitel 11 · Den richtigen Plan wählen
   ========================================================================== */

/* --- Rechner-Box (Token-Rechner + Kosten-Hochrechner) --- */
.p11-rechner {
  background: linear-gradient(145deg, var(--dark-card), var(--dark-surface));
  border: 1px solid var(--dark-border);
  border-radius: 18px;
  padding: 32px;
  margin-top: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s;
}

.p11-rechner:hover {
  border-color: rgba(250, 239, 112, 0.22);
}

.p11-rechner-titel {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p11-rechner-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.p11-input {
  width: 100%;
  min-height: 110px;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.3s;
}

.p11-input:focus {
  outline: none;
  border-color: rgba(250, 239, 112, 0.35);
  box-shadow: 0 0 16px rgba(250, 239, 112, 0.06);
}

.p11-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.p11-viz {
  margin-top: 14px;
  padding: 16px 18px;
  min-height: 58px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
}

.p11-viz-hinweis {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.p11-chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.p11-chip:hover {
  border-color: rgba(250, 239, 112, 0.35);
  transform: translateY(-1px);
}

.p11-tstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.p11-tstat {
  text-align: center;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(250, 239, 112, 0.04);
  border: 1px solid rgba(250, 239, 112, 0.08);
  transition: border-color 0.3s;
}

.p11-tstat:hover {
  border-color: rgba(250, 239, 112, 0.25);
}

.p11-tstat-wert {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand);
  display: block;
  margin-bottom: 2px;
}

.p11-tstat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Kosten-Hochrechner --- */
.p11-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.p11-calc-feld label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.p11-calc-feld input,
.p11-calc-feld select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.92rem;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.p11-calc-feld select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.p11-calc-feld input:focus,
.p11-calc-feld select:focus {
  outline: none;
  border-color: rgba(250, 239, 112, 0.35);
}

.p11-calc-ergebnis {
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(250, 239, 112, 0.07), rgba(250, 239, 112, 0.02));
  border: 1px solid rgba(250, 239, 112, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.p11-calc-ergebnis-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.p11-calc-ergebnis-label strong {
  color: var(--text);
}

.p11-calc-preis {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
}

.p11-calc-vs {
  width: 100%;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid rgba(250, 239, 112, 0.08);
  line-height: 1.6;
}

.p11-calc-vs strong {
  color: var(--brand);
}

/* --- Plan-Karten --- */
.p11-plaene {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.p11-plan {
  padding: 26px 22px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--dark-card), var(--dark-surface));
  border: 1px solid var(--dark-border);
  transition: border-color 0.3s, transform 0.3s;
}

.p11-plan:hover {
  transform: translateY(-3px);
}

.p11-plan-name {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.p11-plan-preis {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.p11-plan-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.p11-plan-merkmal {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.5;
}

.p11-plan-fazit {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.p11-plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: #0a0a0f;
  background: var(--brand);
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(250, 239, 112, 0.3);
}

.p11-plan-pro {
  border-color: rgba(250, 239, 112, 0.3);
  background: linear-gradient(145deg, rgba(250, 239, 112, 0.08), rgba(250, 239, 112, 0.02));
  box-shadow: 0 0 30px rgba(250, 239, 112, 0.05);
}

.p11-plan-pro .p11-plan-name,
.p11-plan-pro .p11-plan-fazit,
.p11-plan-pro .p11-plan-preis {
  color: var(--brand);
}

.p11-plan-max20 {
  border-color: rgba(112, 184, 250, 0.2);
  background: linear-gradient(145deg, rgba(112, 184, 250, 0.06), rgba(112, 184, 250, 0.02));
}

.p11-plan-max20 .p11-plan-name,
.p11-plan-max20 .p11-plan-fazit {
  color: var(--blue);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .p11-plaene {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .p11-plaene,
  .p11-calc-grid {
    grid-template-columns: 1fr;
  }

  .p11-tstats {
    grid-template-columns: 1fr 1fr;
  }

  .p11-rechner {
    padding: 24px 20px;
  }

  .p11-plan:hover {
    transform: none;
  }

  .p11-calc-ergebnis {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Kapitel 12-ressourcen ---------- */
/* ==========================================================================
   Kapitel 12 · Hilfreiche Ressourcen
   ========================================================================== */

/* --- Link-Karten --- */
.p12-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.p12-karte {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(145deg, var(--dark-card), var(--dark-surface));
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.p12-karte::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.p12-karte:hover {
  border-color: rgba(250, 239, 112, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(250, 239, 112, 0.06);
  transform: translateY(-2px);
}

.p12-karte:hover::before {
  opacity: 1;
}

.p12-karte-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  background: rgba(250, 239, 112, 0.08);
  border: 1px solid rgba(250, 239, 112, 0.12);
}

.p12-karte-inhalt {
  flex: 1;
  min-width: 0;
}

.p12-karte-titel {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.p12-karte-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.p12-karte-text strong {
  color: var(--text);
  font-weight: 600;
}

.p12-karte-pfeil {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
  margin-top: 2px;
  font-family: var(--mono);
}

.p12-karte:hover .p12-karte-pfeil {
  color: var(--brand);
  transform: translateX(3px);
}

/* Farbvarianten für die Icons */
.p12-blau .p12-karte-icon {
  background: rgba(112, 184, 250, 0.08);
  border-color: rgba(112, 184, 250, 0.14);
}

.p12-gruen .p12-karte-icon {
  background: rgba(112, 250, 160, 0.08);
  border-color: rgba(112, 250, 160, 0.14);
}

.p12-grau .p12-karte-icon {
  background: rgba(224, 224, 232, 0.06);
  border-color: rgba(224, 224, 232, 0.1);
}

/* --- Ebenen-Legende unter der Orientierungsgrafik --- */
.p12-ebenen-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.p12-ebenen-legende span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.p12-punkt {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.p12-punkt-offiziell { background: var(--brand); }
.p12-punkt-community { background: var(--blue); }
.p12-punkt-vertiefung { background: var(--green); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .p12-raster {
    grid-template-columns: 1fr;
  }

  .p12-karte:hover {
    transform: none;
  }
}

/* ---------- Kapitel 13-mindset ---------- */
/* Kapitel 13 · Mindset: Die Welt liegt dir zu Füßen */

.p13-ergebnis {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(112, 250, 160, 0.06);
  border: 1px solid rgba(112, 250, 160, 0.22);
  border-radius: 10px;
  padding: 10px 14px;
}

.p13-gleichung {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin: 26px 0;
}

.p13-term {
  flex: 1 1 0;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.p13-term-icon { font-size: 1.7rem; line-height: 1; }
.p13-term-titel { font-family: var(--mono); font-size: 0.95rem; font-weight: 800; color: #fff; }
.p13-term-text { color: var(--text-muted); font-size: 0.86rem; }

.p13-op {
  align-self: center;
  flex: none;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
}

.p13-term-ergebnis {
  border-color: rgba(250, 239, 112, 0.45);
  background: linear-gradient(160deg, rgba(250, 239, 112, 0.08), var(--dark-card) 60%);
  animation: p13-glimmen 3.2s ease-in-out infinite;
}

@keyframes p13-glimmen {
  0%, 100% { box-shadow: 0 0 0 rgba(250, 239, 112, 0); }
  50% { box-shadow: 0 0 28px rgba(250, 239, 112, 0.18); }
}

@media (max-width: 760px) {
  .p13-gleichung { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .p13-term-ergebnis { animation: none; }
}

/* ---------- Kapitel 15-dateien ---------- */
/* ── Kapitel 15: Alles rund um Dateien ─────────────────────────── */

/* Format-Wolke */
.p15-formatwolke { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 6px; }
.p15-format { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; padding: 7px 15px; border-radius: 50px; transition: transform 0.25s ease, border-color 0.25s ease; }
.p15-format:hover { transform: translateY(-2px); }
.p15-format-text { color: var(--blue); background: rgba(112, 184, 250, 0.06); border: 1px solid rgba(112, 184, 250, 0.18); }
.p15-format-daten { color: var(--green); background: rgba(112, 250, 160, 0.06); border: 1px solid rgba(112, 250, 160, 0.18); }
.p15-format-code { color: var(--brand); background: rgba(250, 239, 112, 0.06); border: 1px solid rgba(250, 239, 112, 0.18); }
.p15-format-media { color: var(--orange); background: rgba(250, 184, 112, 0.06); border: 1px solid rgba(250, 184, 112, 0.18); }

.p15-legende { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.p15-legende-item { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.p15-punkt { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.p15-punkt-text { background: var(--blue); }
.p15-punkt-daten { background: var(--green); }
.p15-punkt-code { background: var(--brand); }
.p15-punkt-media { background: var(--orange); }

/* Kategorie-Karten */
.p15-kat-label { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 6px; }
.p15-kat-blau { color: var(--blue); }
.p15-kat-gruen { color: var(--green); }
.p15-kat-brand { color: var(--brand); }
.p15-kat-orange { color: var(--orange); }

.p15-liste { list-style: none; padding: 0; margin: 12px 0 0; }
.p15-liste li { position: relative; padding: 4px 0 4px 20px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }
.p15-liste li::before { content: '\2713'; position: absolute; left: 0; top: 4px; color: var(--brand); font-weight: 700; font-size: 0.8rem; }

/* Beispiel-Prompts in den Workflow-Schritten */
.p15-prompt { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--dark-border); font-family: var(--mono); font-size: 0.78rem; color: var(--text); line-height: 1.55; }
.p15-prompt::before { content: '> '; color: var(--brand); opacity: 0.6; }

/* Workflow-SVG */
.p15-svg-fluss { stroke: var(--brand); stroke-width: 1.4; stroke-dasharray: 6 5; opacity: 0.4; animation: p15-fluss 1.6s linear infinite; }
@keyframes p15-fluss { to { stroke-dashoffset: -22; } }
.p15-svg-partikel { fill: var(--brand); }
.p15-svg-node { fill: rgba(250, 239, 112, 0.05); stroke: var(--brand); stroke-width: 1.6; }
.p15-svg-ring { fill: none; stroke: var(--brand); stroke-width: 0.6; opacity: 0.18; }
.p15-svg-num { fill: var(--brand); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.p15-svg-label { fill: var(--text-muted); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; }

/* Vorher/Nachher-Szenarien */
.p15-szenarien { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; }
.p15-szenario { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 16px; overflow: hidden; transition: border-color 0.3s ease; }
.p15-szenario:hover { border-color: rgba(250, 239, 112, 0.25); }
.p15-szenario-kopf { display: flex; align-items: center; gap: 14px; padding: 18px 26px 0; flex-wrap: wrap; }
.p15-szenario-titel { font-family: var(--mono); font-weight: 700; font-size: 0.98rem; color: var(--text); }
.p15-szenario-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 26px 24px; }
.p15-seite { padding: 16px 18px; border-radius: 12px; font-size: 0.88rem; line-height: 1.65; color: var(--text-muted); }
.p15-seite-vorher { background: rgba(250, 112, 112, 0.05); border: 1px solid rgba(250, 112, 112, 0.14); }
.p15-seite-nachher { background: rgba(112, 250, 160, 0.05); border: 1px solid rgba(112, 250, 160, 0.14); }
.p15-seite-label { display: block; font-family: var(--mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.p15-seite-vorher .p15-seite-label { color: var(--red); }
.p15-seite-nachher .p15-seite-label { color: var(--green); }

@media (max-width: 768px) {
  .p15-szenario-body { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .p15-svg-fluss { animation: none; }
  .p15-format, .p15-format:hover { transform: none; }
}

/* ---------- Kapitel 16-reverse-engineering ---------- */
/* ── Kapitel 16: Die Reverse-Engineering-Technik ───────────────── */

/* Farb-Zuordnung der Diagramm-Knoten (über Custom Property vererbt) */
.p16-n-blau { --p16c: var(--blue); }
.p16-n-gelb { --p16c: var(--brand); }
.p16-n-gruen { --p16c: var(--green); }
.p16-n-orange { --p16c: var(--orange); }
.p16-n-lila { --p16c: #B870FA; }
.p16-n-pink { --p16c: #FA70B8; }

/* Diagramm-Bausteine */
.p16-grid line { stroke: #ffffff; stroke-opacity: 0.025; stroke-width: 0.5; }
.p16-titel { fill: var(--brand); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 3px; opacity: 0.7; }
.p16-subtitel { fill: #ffffff; font-family: var(--sans); font-size: 7px; letter-spacing: 2px; opacity: 0.3; }

.p16-hex { fill: none; stroke: var(--p16c); stroke-width: 1.8; opacity: 0.8; }
.p16-core { fill: var(--p16c); opacity: 0.22; }
.p16-ic { fill: none; stroke: var(--p16c); opacity: 0.9; }
.p16-ic-f { fill: var(--p16c); opacity: 0.9; }
.p16-ic-text { fill: var(--p16c); font-family: var(--mono); font-size: 10px; font-weight: 700; opacity: 0.9; }
.p16-ring { fill: none; stroke: var(--p16c); stroke-width: 0.6; opacity: 0.15; }
.p16-num { fill: var(--p16c); font-family: var(--mono); font-size: 10px; font-weight: 700; opacity: 0.85; }
.p16-label { fill: var(--p16c); font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: 1px; opacity: 0.8; }

/* Flusslinien mit wandernder Strichelung */
.p16-fl { stroke: var(--p16c); stroke-width: 1.2; fill: none; opacity: 0.45; stroke-dasharray: 5 4; animation: p16-fluss 1.8s linear infinite; }
@keyframes p16-fluss { to { stroke-dashoffset: -20; } }

/* Partikel und Deko-Punkte */
.p16-pt { fill: var(--p16c); }
.p16-dot { fill: var(--p16c); opacity: 0.22; }

/* Rueckkopplung Learnings -> Test */
.p16-rueck { stroke: #FA70B8; stroke-width: 0.8; fill: none; stroke-dasharray: 3 5; opacity: 0.2; }

/* Beispiel-Prompts in den Schritten */
.p16-prompt { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--dark-border); font-family: var(--mono); font-size: 0.78rem; color: var(--text); line-height: 1.55; }
.p16-prompt::before { content: '> '; color: var(--brand); opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  .p16-fl { animation: none; }
}

/* ---------- Kapitel 17-use-cases ---------- */
/* =====================================================================
   Kapitel 17 · 100 Use Cases (Seitenstile, Prefix p17-)
   ===================================================================== */

/* Suche */
.p17-suche-wrap { max-width: 520px; margin: 0 auto 26px; position: relative; }
.p17-suche-input { width: 100%; padding: 14px 20px 14px 48px; border-radius: 12px; border: 1px solid var(--dark-border); background: var(--dark-card); color: var(--text); font-family: var(--sans); font-size: 0.95rem; outline: none; transition: border-color 0.3s, box-shadow 0.3s; }
.p17-suche-input:focus { border-color: rgba(250, 239, 112, 0.4); box-shadow: 0 0 20px rgba(250, 239, 112, 0.08); }
.p17-suche-input::placeholder { color: var(--text-muted); }
.p17-suche-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.05rem; pointer-events: none; }

/* Kategorie-Filter */
.p17-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.p17-filter-btn { padding: 10px 20px; border-radius: 50px; border: 1px solid var(--dark-border); background: var(--dark-card); color: var(--text-muted); font-family: var(--mono); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s; white-space: nowrap; }
.p17-filter-btn:hover,
.p17-filter-btn.p17-aktiv { background: rgba(250, 239, 112, 0.12); border-color: rgba(250, 239, 112, 0.4); color: var(--brand); box-shadow: 0 0 20px rgba(250, 239, 112, 0.1); }
.p17-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 11px; background: rgba(250, 239, 112, 0.15); color: var(--brand); font-size: 0.68rem; font-weight: 700; margin-left: 6px; padding: 0 6px; }
.p17-ergebnis { text-align: center; color: var(--text-muted); font-family: var(--mono); font-size: 0.85rem; margin-bottom: 30px; }

/* Karten-Raster */
.p17-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.p17-karte { background: linear-gradient(145deg, var(--dark-card), var(--dark-surface)); border: 1px solid var(--dark-border); border-radius: 16px; padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease; }
.p17-karte:hover { border-color: rgba(250, 239, 112, 0.3); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(250, 239, 112, 0.08); transform: translateY(-4px); }
.p17-karte::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent); opacity: 0; transition: opacity 0.4s; }
.p17-karte:hover::before { opacity: 1; }
.p17-karte-kopf { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.p17-nr { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--brand); background: rgba(250, 239, 112, 0.1); padding: 4px 10px; border-radius: 6px; flex-shrink: 0; min-width: 36px; text-align: center; }
.p17-kategorie { font-family: var(--mono); font-size: 0.65rem; font-weight: 600; color: var(--text-muted); background: rgba(255, 255, 255, 0.05); padding: 4px 10px; border-radius: 6px; margin-left: auto; white-space: nowrap; }
.p17-titel { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.p17-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.p17-metriken { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.p17-metrik { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 8px; background: rgba(250, 239, 112, 0.06); border: 1px solid rgba(250, 239, 112, 0.12); font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--brand); }
.p17-quelle { font-size: 0.75rem; color: var(--text-muted); border-top: 1px solid var(--dark-border); padding-top: 12px; margin-top: auto; }
.p17-quelle a { font-family: var(--mono); opacity: 0.75; }
.p17-quelle a:hover { opacity: 1; }

/* Kein Treffer */
.p17-leer { display: none; text-align: center; padding: 80px 20px; color: var(--text-muted); font-family: var(--mono); }
.p17-leer-icon { font-size: 3rem; margin-bottom: 16px; display: block; }

/* Einblend-Animation der Karten */
.p17-auf { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.p17-auf.p17-sichtbar { opacity: 1; transform: translateY(0); }

/* Nach-oben-Button */
.p17-back-top { position: fixed; bottom: 30px; right: 30px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: rgba(250, 239, 112, 0.12); border: 1px solid rgba(250, 239, 112, 0.3); color: var(--brand); font-size: 1.3rem; cursor: pointer; display: none; align-items: center; justify-content: center; transition: background 0.3s, color 0.3s; backdrop-filter: blur(12px); }
.p17-back-top:hover { background: var(--brand); color: var(--dark); }
.p17-back-top.p17-zeigen { display: flex; }

/* Fussnote ueber dem Pager */
.p17-fussnote { text-align: center; color: var(--text-muted); font-size: 0.78rem; max-width: 720px; margin: 0 auto 48px; padding: 0 24px; }

@media (max-width: 768px) {
  .p17-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .p17-filter-btn { font-size: 0.7rem; padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .p17-auf { opacity: 1; transform: none; transition: none; }
  .p17-karte, .p17-karte:hover { transform: none; transition: none; }
}

/* ---------- Kapitel 18-prinzipien ---------- */
/* Kapitel 18 · Prinzipien, die bleiben */

/* SVG-Grundtexte */
.p18-svg-titel { font-family: var(--mono); font-size: 16px; font-weight: 700; fill: var(--text); letter-spacing: 0.06em; }
.p18-svg-label { font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--text); }
.p18-svg-sub { font-family: var(--sans); font-size: 12px; fill: var(--text-muted); }
.p18-svg-klein { font-family: var(--mono); font-size: 10px; fill: var(--text-muted); letter-spacing: 0.08em; }

/* Diagramm: Kern (Prinzipien) mit Ring (Werkzeuge) */
.p18-ring {
  stroke-dasharray: 5 11;
  animation: p18-kreisen 14s linear infinite;
}

@keyframes p18-kreisen {
  to { stroke-dashoffset: -160; }
}

.p18-kern-puls {
  animation: p18-atmen 6s ease-in-out infinite;
  transform-origin: 320px 224px;
}

@keyframes p18-atmen {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.06); }
}

.p18-werkzeug { animation: p18-pulsieren 12s ease-in-out infinite both; }
.p18-w1 { animation-delay: 0s; }
.p18-w2 { animation-delay: 2s; }
.p18-w3 { animation-delay: 4s; }
.p18-w4 { animation-delay: 6s; }
.p18-w5 { animation-delay: 8s; }
.p18-w6 { animation-delay: 10s; }

@keyframes p18-pulsieren {
  0%, 100% { opacity: 0.65; }
  6% { opacity: 1; }
  14% { opacity: 0.65; }
}

/* Karten-Links in der Landkarte */
.p18-kartenlinks {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p18-kartenlinks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(250, 239, 112, 0.05);
  border: 1px solid rgba(250, 239, 112, 0.14);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: all 0.3s;
}

.p18-kartenlinks a::after {
  content: "\2192";
  font-size: 0.8rem;
}

.p18-kartenlinks a:hover {
  background: rgba(250, 239, 112, 0.1);
  border-color: rgba(250, 239, 112, 0.4);
}

/* Vergleichslisten: proprietär vs. offen */
.p18-liste {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p18-liste li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.p18-liste li::before {
  flex-shrink: 0;
  font-weight: 700;
  margin-top: 1px;
}

.p18-liste-negativ li::before {
  content: "\2717";
  color: var(--red);
}

.p18-liste-positiv li::before {
  content: "\2713";
  color: var(--green);
}

/* Muster-Beispiele aus der IT-Geschichte */
.p18-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.p18-tag {
  padding: 10px 18px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text);
}

.p18-tag span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* MCP-Timeline */
.p18-timeline {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 18px;
  padding: 12px 28px;
}

.p18-timeline-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
}

.p18-timeline-item + .p18-timeline-item {
  border-top: 1px solid var(--dark-border);
}

.p18-timeline-datum {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  min-width: 96px;
  padding-top: 3px;
}

.p18-timeline-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 540px) {
  .p18-timeline-item {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p18-ring,
  .p18-kern-puls,
  .p18-werkzeug {
    animation: none;
  }
}

/* ---------- Kapitel 19-produktphilosophie ---------- */
/* Kapitel 19 · Die Produktphilosophie */

/* SVG-Grundtexte */
.p19-svg-titel { font-family: var(--mono); font-size: 15px; font-weight: 700; fill: var(--text); }
.p19-svg-label { font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--text); }
.p19-svg-sub { font-family: var(--sans); font-size: 11px; fill: var(--text-muted); }
.p19-svg-klein { font-family: var(--mono); font-size: 10px; fill: var(--text-muted); letter-spacing: 0.08em; }
.p19-svg-gross { font-family: var(--mono); font-size: 30px; font-weight: 800; fill: var(--brand); }

/* Zitat-Karten */
.p19-zitat {
  padding: 26px 30px;
  border-radius: 16px;
  margin: 20px 0;
  background: linear-gradient(135deg, rgba(250, 239, 112, 0.07), rgba(250, 239, 112, 0.02));
  border-left: 3px solid var(--brand);
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
}

.p19-zitat-quelle {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.p19-zitat-quelle a {
  color: var(--brand);
}

.p19-uebersetzung {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.p19-zitat-blau {
  background: linear-gradient(135deg, rgba(112, 184, 250, 0.07), rgba(112, 184, 250, 0.02));
  border-left-color: var(--blue);
}

.p19-zitat-blau .p19-zitat-quelle a {
  color: var(--blue);
}

/* Profilkarte Boris Cherny */
.p19-profil {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px;
  border-radius: 18px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
}

.p19-profil-avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(250, 239, 112, 0.15), rgba(250, 239, 112, 0.05));
  border: 1px solid rgba(250, 239, 112, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand);
}

.p19-profil-info h3 {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
}

.p19-profil-rolle {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.p19-profil-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.p19-profil-bio strong {
  color: var(--text);
}

@media (max-width: 600px) {
  .p19-profil {
    flex-direction: column;
    gap: 18px;
  }
}

/* Prinzipien-Karten (Nummern) */
.p19-prinzip {
  position: relative;
}

.p19-prinzip-num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 800;
  opacity: 0.14;
  color: var(--brand);
}

.p19-prinzip-zitat {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 12px 0;
  padding-left: 14px;
  border-left: 2px solid rgba(250, 239, 112, 0.25);
}

/* Bausteine-Badges */
.p19-bausteine {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.p19-baustein {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(250, 239, 112, 0.05);
  border: 1px solid rgba(250, 239, 112, 0.14);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: all 0.3s;
}

.p19-baustein:hover {
  border-color: rgba(250, 239, 112, 0.4);
  background: rgba(250, 239, 112, 0.1);
}

/* Verification-Loop-Diagramm */
.p19-fluss {
  stroke-dasharray: 6 8;
  animation: p19-fliessen 2.4s linear infinite;
}

@keyframes p19-fliessen {
  to { stroke-dashoffset: -28; }
}

.p19-loop-schritt { animation: p19-aufleuchten 7.2s ease-in-out infinite both; }
.p19-ls1 { animation-delay: 0s; }
.p19-ls2 { animation-delay: 2.4s; }
.p19-ls3 { animation-delay: 4.8s; }

@keyframes p19-aufleuchten {
  0%, 100% { opacity: 0.75; }
  8% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0.75; }
}

/* Quellen-Leiste */
.p19-quellen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.p19-quelle-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(250, 239, 112, 0.04);
  border: 1px solid rgba(250, 239, 112, 0.12);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  transition: all 0.3s;
}

.p19-quelle-link::before {
  content: "\2197";
  font-size: 0.85rem;
}

.p19-quelle-link:hover {
  background: rgba(250, 239, 112, 0.09);
  border-color: rgba(250, 239, 112, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .p19-fluss,
  .p19-loop-schritt {
    animation: none;
  }
}

/* ---------- Kapitel 20-dateiformate ---------- */
/* ===== Kapitel 20 · Dateiformate verstehen ===== */

/* Format-Karten: Dateiendung als Chip im Kartenkopf */
.p20-format-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.p20-ext { font-family: var(--mono); font-size: 1.02rem; font-weight: 800; color: var(--text); background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: 8px; padding: 5px 12px; white-space: nowrap; }
.p20-ext-gruen { color: var(--green); border-color: rgba(112, 250, 160, 0.35); background: rgba(112, 250, 160, 0.06); }
.p20-ext-gelb { color: var(--brand); border-color: rgba(250, 239, 112, 0.35); background: var(--brand-dim); }
.p20-ext-orange { color: var(--orange); border-color: rgba(250, 184, 112, 0.35); background: rgba(250, 184, 112, 0.06); }
.p20-ext-rot { color: var(--red); border-color: rgba(250, 112, 112, 0.35); background: rgba(250, 112, 112, 0.06); }
.p20-badge-orange { color: var(--orange); border-color: rgba(250, 184, 112, 0.35); background: rgba(250, 184, 112, 0.07); }

/* Quadranten-Diagramm: sanft schwebende Format-Chips */
@keyframes p20-schweben {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.p20-chip { animation: p20-schweben 5s ease-in-out infinite; }
.p20-chip-b { animation-duration: 6s; animation-delay: 0.8s; }
.p20-chip-c { animation-duration: 5.5s; animation-delay: 1.6s; }

@keyframes p20-puls {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.p20-puls { animation: p20-puls 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .p20-chip, .p20-chip-b, .p20-chip-c, .p20-puls { animation: none; }
}

/* ---------- Kapitel 21-markdown ---------- */
/* ===== Kapitel 21 · Warum Markdown? ===== */

/* --- Grund-Badges in den Karten --- */
.p21-grund { display: inline-block; margin-bottom: 14px; }

/* --- Markdown-zu-Rendering-Vergleich (zwei synchronisierte Panels) --- */
.p21-vergleich { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--dark-border); border-radius: 14px; overflow: hidden; margin: 26px 0; background: #0d0d14; }
.p21-pane + .p21-pane { border-left: 1px solid var(--dark-border); }
.p21-pane-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--dark-border); background: var(--dark-card); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }
.p21-pane-punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.p21-pane-punkt-gruen { background: var(--green); }
.p21-pane-body { padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.p21-zeile { padding: 5px 12px; border-radius: 7px; min-height: 2em; display: flex; align-items: center; }
.p21-quelle .p21-zeile { font-family: var(--mono); font-size: 0.8rem; color: var(--text); white-space: pre-wrap; }
.p21-tok { color: var(--brand); font-weight: 700; }

/* Gerenderte Seite */
.p21-r-h1 { font-size: 1.16rem; font-weight: 800; color: #fff; }
.p21-r-h2 { font-size: 1rem; font-weight: 700; color: #fff; }
.p21-r-text { font-size: 0.92rem; color: var(--text-muted); }
.p21-r-text strong { color: #fff; }
.p21-r-li { font-size: 0.92rem; color: var(--text); }
.p21-r-li::before { content: '\2022'; color: var(--brand); margin-right: 10px; font-weight: 700; }
.p21-r-zitat { border-left: 2px solid var(--brand); padding-left: 12px; font-style: italic; font-size: 0.92rem; color: var(--text-muted); }

/* Synchronisiertes Aufleuchten: gleiche Klasse links und rechts */
@keyframes p21-aufleuchten {
  0%, 100% { background: transparent; box-shadow: none; }
  4%, 10% { background: rgba(250, 239, 112, 0.09); box-shadow: inset 2px 0 0 var(--brand); }
  14% { background: transparent; box-shadow: none; }
}
.p21-sync-1 { animation: p21-aufleuchten 14s linear infinite; }
.p21-sync-2 { animation: p21-aufleuchten 14s linear infinite 2s; }
.p21-sync-3 { animation: p21-aufleuchten 14s linear infinite 4s; }
.p21-sync-4 { animation: p21-aufleuchten 14s linear infinite 6s; }
.p21-sync-5 { animation: p21-aufleuchten 14s linear infinite 8s; }
.p21-sync-6 { animation: p21-aufleuchten 14s linear infinite 10s; }
.p21-sync-7 { animation: p21-aufleuchten 14s linear infinite 12s; }

/* --- Drei-Formate-Vergleich: Labels ueber den Code-Bloecken --- */
.p21-code-label { font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; display: block; color: var(--text-muted); }
.p21-code-label-gruen { color: var(--green); }
.p21-code-label-rot { color: var(--red); }
.p21-codes pre.code { margin: 10px 0 0; }
.p21-code-klein { font-size: 0.68rem; }
.p21-tok-h { color: var(--brand); font-weight: 700; }
.p21-tok-fett { color: #fff; font-weight: 600; }
.p21-tok-tag { color: var(--blue); }
.p21-tok-attr { color: var(--orange); }
.p21-tok-str { color: var(--green); }
.p21-tok-dim { color: #555570; }

/* --- Animierte Element-Demos (Syntax wird zu Ergebnis) --- */
.p21-demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.p21-demo { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 14px; padding: 20px 18px 24px; text-align: center; }
.p21-demo-label { font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 16px; }
.p21-demo-flip { position: relative; display: block; height: 2.1em; }
.p21-demo-quelle, .p21-demo-ergebnis { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.p21-demo-quelle { font-family: var(--mono); font-size: 0.92rem; color: var(--brand); animation: p21-quelle-blende 7s ease-in-out infinite; }
.p21-demo-ergebnis { animation: p21-ergebnis-blende 7s ease-in-out infinite; opacity: 0; }
@keyframes p21-quelle-blende {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes p21-ergebnis-blende {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
.p21-demo-fett { font-weight: 800; color: #fff; }
.p21-demo-h { font-weight: 800; font-size: 1.1rem; color: #fff; }
.p21-demo-liste { color: var(--text); }
.p21-demo-liste::before { content: '\2022'; color: var(--brand); margin-right: 10px; font-weight: 700; }

/* --- Ergebnis-Spalte der Syntax-Tabelle --- */
.p21-td-h1 { font-size: 1.08rem; font-weight: 800; color: #fff; }
.p21-td-h2 { font-size: 0.95rem; font-weight: 700; color: #fff; }
.p21-td-link { color: var(--blue); text-decoration: underline; }
.p21-td-zitat { display: inline-block; border-left: 2px solid var(--brand); padding-left: 10px; font-style: italic; }
.p21-td-linie { display: inline-block; width: 60px; height: 1px; background: var(--brand); vertical-align: middle; }

/* --- Responsiv + Bewegung reduzieren --- */
@media (max-width: 680px) {
  .p21-vergleich { grid-template-columns: 1fr; }
  .p21-pane + .p21-pane { border-left: none; border-top: 1px solid var(--dark-border); }
  .p21-demos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .p21-sync-1, .p21-sync-2, .p21-sync-3, .p21-sync-4, .p21-sync-5, .p21-sync-6, .p21-sync-7 { animation: none; }
  .p21-demo-quelle { animation: none; }
  .p21-demo-ergebnis { animation: none; opacity: 1; position: static; margin-top: 6px; }
  .p21-demo-flip { height: auto; }
}

/* ---------- Kapitel 23-skills ---------- */
/* ---------- Kapitel 23: Skills ---------- */
.p23-aufbau { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; margin: 26px 0; }
.p23-aufbau .terminal { margin: 0; }

.p23-anatomie { list-style: none; margin: 0; padding: 0; }
.p23-anatomie li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--dark-border); }
.p23-anatomie li:last-child { border-bottom: none; }
.p23-anatomie-nr { font-family: var(--mono); font-size: 0.7rem; font-weight: 800; color: var(--brand); background: var(--brand-dim); border: 1px solid rgba(250, 239, 112, 0.25); width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.p23-anatomie strong { display: block; color: #fff; font-size: 0.95rem; }
.p23-anatomie-text { color: var(--text-muted); font-size: 0.88rem; }

.p23-vergleich { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin: 26px 0; }
.p23-vs { font-family: var(--mono); font-size: 0.72rem; font-weight: 800; color: var(--text-muted); background: var(--dark-card); border: 1px solid var(--dark-border); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.p23-liste { list-style: none; margin: 12px 0 0; padding: 0; }
.p23-liste li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--text-muted); font-size: 0.9rem; }
.p23-x, .p23-hak { font-family: var(--mono); font-weight: 800; flex: none; }
.p23-x { color: var(--red); }
.p23-hak { color: var(--green); }

.p23-beispiel .badge { margin-bottom: 14px; }

.p23-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 34px; }
.p23-flow-schritt { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; padding: 10px 18px; border-radius: 10px; background: var(--dark-card); border: 1px solid var(--dark-border); color: var(--text); }
.p23-flow-schritt.is-aktiv { border-color: rgba(250, 239, 112, 0.4); color: var(--brand); background: var(--brand-dim); }
.p23-flow-pfeil { color: var(--brand); font-family: var(--mono); font-size: 1.1rem; }

@media (max-width: 860px) {
  .p23-aufbau { grid-template-columns: 1fr; }
  .p23-vergleich { grid-template-columns: 1fr; }
  .p23-vs { display: none; }
}

/* ---------- Kapitel 24-skill-bauen ---------- */
/* ---------- Kapitel 24: Praxis: Einen Skill bauen ---------- */
.p24-finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0; align-items: start; }

.p24-finder { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 14px; overflow: hidden; }
.p24-finder-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--dark-border); background: var(--dark-surface); }
.p24-finder-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dark-border); }
.p24-finder-dot:nth-child(1) { background: #fa7070; }
.p24-finder-dot:nth-child(2) { background: #fab870; }
.p24-finder-dot:nth-child(3) { background: #70faa0; }
.p24-finder-titel { font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted); margin-left: 6px; margin-right: auto; }

.p24-finder-body { padding: 10px 16px; }
.p24-datei { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; font-family: var(--mono); font-size: 0.82rem; color: var(--text); }
.p24-datei + .p24-datei { border-top: 1px solid rgba(30, 30, 42, 0.7); }
.p24-datei-icon { flex: none; font-size: 0.95rem; }
.p24-datei.is-versteckt { opacity: 0.45; }

.p24-finder-fuss { padding: 9px 16px 12px; border-top: 1px solid var(--dark-border); font-family: var(--mono); font-size: 0.66rem; color: var(--text-muted); text-align: center; }

@media (max-width: 680px) {
  .p24-finder-grid { grid-template-columns: 1fr; }
}

/* ---------- Kapitel 25-agents ---------- */
/* Kapitel 25 · Agents und Subagents */

/* --- Architektur-Diagramm: Hauptagent mit Subagents --- */
.p25-arch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p25-arch-haupt {
  background: linear-gradient(145deg, var(--dark-card), var(--dark-surface));
  border: 2px solid rgba(250, 239, 112, 0.3);
  border-radius: 14px;
  padding: 18px 36px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand);
  box-shadow: 0 0 30px rgba(250, 239, 112, 0.08);
  text-align: center;
  position: relative;
  z-index: 2;
}

.p25-arch-haupt small {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

.p25-arch-linie {
  width: 2px;
  height: 30px;
  background: linear-gradient(180deg, rgba(250, 239, 112, 0.35), rgba(250, 239, 112, 0.08));
}

.p25-arch-zweige {
  display: flex;
  gap: 14px;
  position: relative;
  justify-content: center;
}

.p25-arch-zweige::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 130px);
  height: 2px;
  background: linear-gradient(90deg, rgba(250, 239, 112, 0.08), rgba(250, 239, 112, 0.25), rgba(250, 239, 112, 0.08));
}

.p25-arch-zweig-linie {
  width: 2px;
  height: 18px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(250, 239, 112, 0.18), rgba(250, 239, 112, 0.05));
}

.p25-arch-sub {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  min-width: 128px;
}

.p25-arch-sub:hover {
  border-color: rgba(250, 239, 112, 0.35);
}

.p25-arch-sub-name {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.p25-arch-sub-desc {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --- Farb-Helfer --- */
.p25-gruen { color: var(--green); }
.p25-blau { color: var(--blue); }
.p25-gelb { color: var(--brand); }
.p25-orange { color: var(--orange); }
.p25-rot { color: var(--red); }

/* --- Kontextfenster-Balken --- */
.p25-balken-gruppe {
  margin-top: 14px;
}

.p25-balken-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.p25-balken-track {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.p25-balken {
  height: 100%;
  border-radius: 6px;
  animation: p25-fuellen 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes p25-fuellen {
  from { width: 0; }
}

.p25-bg-rot { background: var(--red); }
.p25-bg-orange { background: var(--orange); }
.p25-bg-gelb { background: var(--brand); }
.p25-bg-gruen { background: linear-gradient(90deg, var(--green), rgba(112, 250, 160, 0.45)); }
.p25-bg-blau-blass { background: var(--blue); opacity: 0.5; }

/* --- Responsiv --- */
@media (max-width: 680px) {
  .p25-arch-zweige {
    flex-direction: column;
    align-items: center;
  }
  .p25-arch-zweige::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p25-balken { animation: none; }
}

/* ---------- Kapitel 26-mcp ---------- */
/* Kapitel 26 · MCP: Tore zur Außenwelt */

/* --- Verbindungs-Diagramm: Claude Code → MCP → Dienste --- */
.p26-diagramm {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.p26-knoten {
  padding: 16px 22px;
  border-radius: 14px;
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.82rem;
  min-width: 140px;
}

.p26-knoten small {
  display: block;
  font-size: 0.56rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

.p26-knoten-claude {
  background: linear-gradient(145deg, var(--dark-card), var(--dark-surface));
  border: 2px solid rgba(250, 239, 112, 0.3);
  color: var(--brand);
  box-shadow: 0 0 25px rgba(250, 239, 112, 0.08);
}

.p26-knoten-protokoll {
  background: rgba(112, 184, 250, 0.06);
  border: 1px solid rgba(112, 184, 250, 0.25);
  color: var(--blue);
  padding: 13px 18px;
  min-width: 100px;
}

.p26-knoten-tool {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  color: var(--text);
  padding: 12px 18px;
  min-width: 150px;
}

.p26-knoten-tool:hover {
  border-color: rgba(112, 184, 250, 0.35);
}

.p26-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p26-pfeil {
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, rgba(112, 184, 250, 0.35), rgba(112, 184, 250, 0.12));
  position: relative;
  flex: none;
}

.p26-pfeil::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid rgba(112, 184, 250, 0.35);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* --- Farb-Helfer --- */
.p26-gruen { color: var(--green); }
.p26-blau { color: var(--blue); }
.p26-orange { color: var(--orange); }

/* --- Responsiv --- */
@media (max-width: 680px) {
  .p26-diagramm {
    flex-direction: column;
  }
  .p26-pfeil {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, rgba(112, 184, 250, 0.35), rgba(112, 184, 250, 0.12));
  }
  .p26-pfeil::after {
    right: auto;
    top: auto;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid rgba(112, 184, 250, 0.35);
    border-bottom: none;
  }
  .p26-tools {
    width: 100%;
    align-items: center;
  }
}

/* ---------- Kapitel 27-plugins ---------- */
/* Kapitel 27 · Plugins */

/* --- Bündel-Diagramm: Plugin = 4 Bausteine --- */
.p27-buendel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p27-paket {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(145deg, var(--dark-card), var(--dark-surface));
  border: 2px solid rgba(250, 239, 112, 0.35);
  border-radius: 16px;
  padding: 18px 42px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand);
  box-shadow: 0 0 35px rgba(250, 239, 112, 0.1);
}

.p27-paket-icon {
  font-size: 1.3rem;
}

.p27-gleich {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0;
}

.p27-teile {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}

.p27-teil {
  display: block;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}

.p27-teil:hover {
  border-color: rgba(250, 239, 112, 0.4);
}

.p27-teil-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.p27-teil-desc {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.p27-teil-kapitel {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--dark-border);
  border-radius: 99px;
  padding: 3px 9px;
}

.p27-teil:hover .p27-teil-kapitel {
  color: var(--brand);
  border-color: rgba(250, 239, 112, 0.4);
}

/* --- Farb-Helfer --- */
.p27-gelb { color: var(--brand); }
.p27-blau { color: var(--blue); }
.p27-gruen { color: var(--green); }
.p27-orange { color: var(--orange); }

/* --- Responsiv --- */
@media (max-width: 980px) {
  .p27-teile {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .p27-teile {
    grid-template-columns: 1fr;
  }
}

/* ---------- Kapitel 28-permissions-hooks ---------- */
/* Kapitel 28 · Permissions und Hooks */

/* --- Permission-Mode-Karten --- */
.p28-modi {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 26px 0;
}

.p28-modus {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 20px 24px;
}

.p28-modus:hover {
  border-color: rgba(250, 239, 112, 0.35);
}

.p28-modus-nr {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 800;
  flex: none;
  line-height: 1.5;
}

.p28-modus-text {
  flex: 1;
  min-width: 0;
}

.p28-modus-text h4 {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.p28-modus-text p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.p28-modus .badge {
  flex: none;
  margin-top: 4px;
}

/* --- Hook-Ablauf-Diagramm --- */
.p28-ablauf {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.p28-ablauf-schritt {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 11px 16px;
  white-space: nowrap;
}

.p28-ablauf-schritt.p28-aktiv {
  color: var(--brand);
  border-color: rgba(250, 239, 112, 0.35);
  background: var(--brand-dim);
}

.p28-ablauf-pfeil {
  font-family: var(--mono);
  color: var(--text-muted);
  flex: none;
}

/* --- Farb-Helfer --- */
.p28-gruen { color: var(--green); }
.p28-blau { color: var(--blue); }
.p28-gelb { color: var(--brand); }
.p28-orange { color: var(--orange); }
.p28-rot { color: var(--red); }

/* --- Responsiv --- */
@media (max-width: 680px) {
  .p28-modus {
    flex-wrap: wrap;
  }
  .p28-modus .badge {
    order: 3;
    margin-left: 38px;
  }
  .p28-ablauf {
    flex-direction: column;
  }
  .p28-ablauf-pfeil {
    transform: rotate(90deg);
  }
}

/* ---------- Kapitel 29-sicherheit ---------- */
/* Kapitel 29 · Sicherheit und Prompt Injection */

/* Abstände */
.p29-abstand-gross { margin-top: 40px; }
.p29-abstand-mittel { margin-top: 24px; }
.p29-abstand-klein { margin-top: 16px; }

/* SVG-Texte */
.p29-svg-label { font-family: var(--mono); font-size: 13px; font-weight: 600; fill: var(--text); }
.p29-svg-sub { font-family: var(--sans); font-size: 11px; fill: var(--text-muted); }
.p29-svg-klein { font-family: var(--mono); font-size: 10px; fill: var(--text-muted); letter-spacing: 0.12em; }

/* Animierte Pfade (fließende Strichlinien) */
.p29-pfad {
  stroke-dasharray: 7 9;
  animation: p29-fliessen 1.4s linear infinite;
}

@keyframes p29-fliessen {
  to { stroke-dashoffset: -16; }
}

/* Angriffs-Ablauf (HTML-Flow) */
.p29-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 18px;
}

.p29-flow-step {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(112, 184, 250, 0.06);
  border: 1px solid rgba(112, 184, 250, 0.16);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.p29-flow-warn {
  background: rgba(250, 184, 112, 0.08);
  border-color: rgba(250, 184, 112, 0.28);
}

.p29-flow-gefahr {
  background: rgba(250, 112, 112, 0.12);
  border-color: rgba(250, 112, 112, 0.35);
  color: var(--red);
}

.p29-flow-pfeil {
  color: var(--red);
  font-size: 1.1rem;
  padding: 0 6px;
  font-family: var(--mono);
}

@media (max-width: 720px) {
  .p29-flow { flex-direction: column; align-items: flex-start; }
  .p29-flow-pfeil { transform: rotate(90deg); padding: 2px 0 2px 14px; }
}

/* Autonomie-Stufen = Risiko-Stufen */
.p29-stufen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.p29-stufe {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

.p29-stufe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.p29-gruen { background: var(--green); box-shadow: 0 0 10px rgba(112, 250, 160, 0.45); }
.p29-gelb { background: var(--brand); box-shadow: 0 0 10px rgba(250, 239, 112, 0.45); }
.p29-orange { background: var(--orange); box-shadow: 0 0 10px rgba(250, 184, 112, 0.45); }
.p29-rot { background: var(--red); box-shadow: 0 0 10px rgba(250, 112, 112, 0.45); }

.p29-stufe-mitte {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.p29-stufe-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.p29-stufe-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.p29-stufe-balken {
  height: 4px;
  border-radius: 2px;
  margin-top: 6px;
  transform-origin: left center;
  animation: p29-wachsen 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.p29-b1 { width: 18%; background: var(--green); animation-delay: 0.15s; }
.p29-b2 { width: 45%; background: var(--brand); animation-delay: 0.3s; }
.p29-b3 { width: 72%; background: var(--orange); animation-delay: 0.45s; }
.p29-b4 { width: 100%; background: var(--red); animation-delay: 0.6s; }

@keyframes p29-wachsen {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.p29-stufe-badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 4px;
  white-space: nowrap;
}

.p29-badge-gruen { color: var(--green); }
.p29-badge-gelb { color: var(--brand); }
.p29-badge-orange { color: var(--orange); }
.p29-badge-rot { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .p29-pfad, .p29-stufe-balken { animation: none; }
  .p29-stufe-balken { transform: scaleX(1); }
}

/* ---------- Kapitel 30-recht ---------- */
/* Kapitel 30 · Rechtliche Aspekte */

/* Abstände */
.p30-abstand-gross { margin-top: 32px; }
.p30-abstand-klein { margin-top: 16px; }

/* SVG-Texte */
.p30-svg-label { font-family: var(--mono); font-size: 15px; font-weight: 700; fill: var(--text); }
.p30-svg-sub { font-family: var(--sans); font-size: 12px; fill: var(--text-muted); }
.p30-svg-klein { font-family: var(--mono); font-size: 10px; fill: var(--text-muted); letter-spacing: 0.1em; }

/* Fließende Verbindungslinien EU <-> USA */
.p30-strom {
  stroke-dasharray: 7 9;
  animation: p30-fliessen 1.6s linear infinite;
}

.p30-strom-2 {
  animation-duration: 2.2s;
}

@keyframes p30-fliessen {
  to { stroke-dashoffset: -16; }
}

/* Ampel-Kategorisierung */
.p30-ampel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.p30-ampel-karte {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 28px;
}

.p30-ampel-karte h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--text);
}

.p30-gruen { border-top: 3px solid var(--green); }
.p30-orange { border-top: 3px solid var(--orange); }
.p30-rot { border-top: 3px solid var(--red); }

.p30-ampel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.p30-gruen .p30-ampel-label { color: var(--green); }
.p30-orange .p30-ampel-label { color: var(--orange); }
.p30-rot .p30-ampel-label { color: var(--red); }

.p30-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: p30-puls 2.4s ease-in-out infinite;
}

.p30-dot-gruen { background: var(--green); box-shadow: 0 0 10px rgba(112, 250, 160, 0.45); }
.p30-dot-orange { background: var(--orange); box-shadow: 0 0 10px rgba(250, 184, 112, 0.45); animation-delay: 0.4s; }
.p30-dot-rot { background: var(--red); box-shadow: 0 0 10px rgba(250, 112, 112, 0.45); animation-delay: 0.8s; }

@keyframes p30-puls {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.p30-ampel-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.p30-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p30-liste li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.p30-liste li::before {
  content: '\2192';
  flex-shrink: 0;
  color: var(--text-muted);
}

.p30-beispiel {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.p30-beispiel-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.p30-beispiel-gruen {
  background: rgba(112, 250, 160, 0.05);
  border: 1px solid rgba(112, 250, 160, 0.1);
}
.p30-beispiel-gruen .p30-beispiel-label { color: var(--green); }

.p30-beispiel-orange {
  background: rgba(250, 184, 112, 0.05);
  border: 1px solid rgba(250, 184, 112, 0.1);
}
.p30-beispiel-orange .p30-beispiel-label { color: var(--orange); }

.p30-beispiel-rot {
  background: rgba(250, 112, 112, 0.05);
  border: 1px solid rgba(250, 112, 112, 0.1);
}
.p30-beispiel-rot .p30-beispiel-label { color: var(--red); }

@media (max-width: 1000px) {
  .p30-ampel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .p30-strom, .p30-dot { animation: none; }
}

/* ---------- Kapitel 31-grenzen ---------- */
/* Kapitel 31 · Wann Claude Code nicht passt */

/* Nutzertyp-Karten */
.p31-persona {
  display: flex;
  flex-direction: column;
}

.p31-persona-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.p31-persona-icon.p31-gelb {
  background: rgba(250, 239, 112, 0.1);
  border: 1px solid rgba(250, 239, 112, 0.22);
}

.p31-persona-icon.p31-blau {
  background: rgba(112, 184, 250, 0.1);
  border: 1px solid rgba(112, 184, 250, 0.22);
}

.p31-persona-icon.p31-gruen {
  background: rgba(112, 250, 160, 0.1);
  border: 1px solid rgba(112, 250, 160, 0.22);
}

.p31-persona-liste {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
  flex: 1;
}

.p31-persona-liste li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-bottom: 1px solid var(--dark-border);
}

.p31-persona-liste li:last-child {
  border-bottom: none;
}

.p31-persona-liste li::before {
  content: "\2192";
  flex-shrink: 0;
  color: var(--text-muted);
}

.p31-persona-werkzeug {
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
}

.p31-persona-werkzeug.p31-gelb {
  background: rgba(250, 239, 112, 0.06);
  border: 1px solid rgba(250, 239, 112, 0.16);
  color: var(--brand);
}

.p31-persona-werkzeug.p31-blau {
  background: rgba(112, 184, 250, 0.06);
  border: 1px solid rgba(112, 184, 250, 0.16);
  color: var(--blue);
}

.p31-persona-werkzeug.p31-gruen {
  background: rgba(112, 250, 160, 0.06);
  border: 1px solid rgba(112, 250, 160, 0.16);
  color: var(--green);
}

/* Entscheidungs-Grafik: das Spektrum */
.p31-spektrum-pfeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.p31-spektrum-pfeile .p31-links { color: var(--brand); }
.p31-spektrum-pfeile .p31-rechts { color: var(--green); }

.p31-spektrum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  overflow: hidden;
}

.p31-spektrum-item {
  padding: 26px 24px;
  background: var(--dark-card);
  border-right: 1px solid var(--dark-border);
}

.p31-spektrum-item:last-child {
  border-right: none;
}

.p31-spektrum-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.p31-spektrum-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #fff;
}

.p31-spektrum-item > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.p31-spektrum-merkmale {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.p31-spektrum-merkmale li {
  padding: 4px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.p31-spektrum-merkmale li::before {
  content: "\2713";
  flex-shrink: 0;
  font-weight: 700;
}

.p31-spektrum-item.p31-gelb .p31-spektrum-label,
.p31-spektrum-item.p31-gelb .p31-spektrum-merkmale li::before { color: var(--brand); }

.p31-spektrum-item.p31-blau .p31-spektrum-label,
.p31-spektrum-item.p31-blau .p31-spektrum-merkmale li::before { color: var(--blue); }

.p31-spektrum-item.p31-gruen .p31-spektrum-label,
.p31-spektrum-item.p31-gruen .p31-spektrum-merkmale li::before { color: var(--green); }

@media (max-width: 900px) {
  .p31-spektrum {
    grid-template-columns: 1fr;
  }

  .p31-spektrum-item {
    border-right: none;
    border-bottom: 1px solid var(--dark-border);
  }

  .p31-spektrum-item:last-child {
    border-bottom: none;
  }
}

/* Checklisten Ja / Eher nicht */
.p31-check {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.p31-check li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-bottom: 1px solid var(--dark-border);
}

.p31-check li:last-child {
  border-bottom: none;
}

.p31-check li::before {
  flex-shrink: 0;
  font-weight: 700;
  margin-top: 1px;
}

.p31-check-ja li::before {
  content: "\2713";
  color: var(--green);
}

.p31-check-nein li::before {
  content: "\2717";
  color: var(--text-muted);
}

/* ---------- Kapitel 32-abschluss ---------- */
/* Kapitel 32 · Abschluss und Ausblick */

/* SVG-Grundtexte */
.p32-svg-klein { font-family: var(--mono); font-size: 10px; fill: var(--text-muted); letter-spacing: 0.08em; }

/* Modul-Karten: Link am Kartenende */
.p32-modullink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 239, 112, 0.25);
  transition: border-color 0.3s;
}

.p32-modullink::after {
  content: "\2192";
}

.p32-modullink:hover {
  border-color: var(--brand);
}

/* Schlussvisual: Weg zum Horizont */
.p32-strich {
  stroke-dasharray: 12 20;
  animation: p32-wandern 9s linear infinite;
}

@keyframes p32-wandern {
  to { stroke-dashoffset: -128; }
}

.p32-glut {
  animation: p32-gluehen 10s ease-in-out infinite;
  transform-origin: 400px 200px;
}

@keyframes p32-gluehen {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.12); }
}

.p32-stern { animation: p32-funkeln 8s ease-in-out infinite both; }
.p32-st1 { animation-delay: 0s; }
.p32-st2 { animation-delay: 1.6s; }
.p32-st3 { animation-delay: 3.2s; }
.p32-st4 { animation-delay: 4.8s; }
.p32-st5 { animation-delay: 6.4s; }

@keyframes p32-funkeln {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .p32-strich,
  .p32-glut,
  .p32-stern {
    animation: none;
  }
}

/* ==================================================================
   8. Kontrast-Fixes für helle Sektionen (.section-hell)
   Komponenten, die für dunklen Grund entworfen sind, bekommen hier
   dunkle Schrift und helle Flächen. Dunkle Container (.card, .figur,
   .terminal, Plan-/Ressourcen-Karten) behalten ihre Farben; dafür
   stehen am Ende gezielte Rückstell-Regeln.
   ================================================================== */
.section-hell a { color: var(--ci-rot); }
.section-hell a:hover { color: var(--ci-rot-tief); }
.section-hell code { background: #ffffff; border-color: #ddd6cd; color: var(--ci-rot-tief); }
.section-hell kbd { background: #ffffff; border-color: #cfc8bd; color: var(--ci-schwarz); }
.section-hell .callout { background: #ffffff; border-color: #ddd6cd; }
.section-hell .callout p { color: var(--ci-text); }
.section-hell .callout-titel { color: var(--ci-schwarz); }
.section-hell .callout-tipp { background: #eaf5ee; border-color: rgba(26, 122, 68, 0.35); }
.section-hell .callout-achtung { background: #fbf1e2; border-color: rgba(176, 108, 24, 0.4); }
.section-hell .callout-gefahr { background: #fbeaea; border-color: rgba(176, 42, 42, 0.4); }
.section-hell .callout-merke { background: #f7f2dc; border-color: rgba(138, 115, 96, 0.45); }
.section-hell .badge { color: var(--ci-text); border-color: #cfc8bd; background: #ffffff; }
.section-hell .badge-brand { color: #7d641c; border-color: rgba(125, 100, 28, 0.4); background: #f8f3df; }
.section-hell .badge-gruen { color: #1a7a44; border-color: rgba(26, 122, 68, 0.4); background: #e9f5ee; }
.section-hell .badge-rot { color: #b02a2a; border-color: rgba(176, 42, 42, 0.4); background: #fbeeee; }
.section-hell .badge-blau { color: #1e5f9e; border-color: rgba(30, 95, 158, 0.4); background: #eaf2fa; }
.section-hell .stat-label { color: var(--ci-text); }
/* Kapitel 19: Zitate und Baustein-Chips liegen direkt auf hellem Grund */
.section-hell .p19-zitat { color: var(--ci-schwarz); background: #ffffff; }
.section-hell .p19-uebersetzung { color: var(--ci-text); }
.section-hell .p19-zitat-quelle { color: var(--ci-gold-dunkel); }
.section-hell .p19-zitat-quelle a { color: var(--ci-rot); }
.section-hell .p19-zitat-blau .p19-zitat-quelle a { color: #1e5f9e; }
.section-hell .p19-baustein { color: #7d641c; background: #f8f3df; border: 1px solid rgba(125, 100, 28, 0.35); }
.section-hell .p19-baustein:hover { color: var(--ci-rot); border-color: var(--ci-rot); }
/* Rückstellung: dunkle Container innerhalb heller Sektionen */
.section-hell .card a, .section-hell .figur a, .section-hell .terminal a,
.section-hell .p11-plan a, .section-hell .p30-ampel-karte a { color: var(--brand); }
.section-hell .card a:hover, .section-hell .p11-plan a:hover { color: var(--brand-light); }
.section-hell .card code, .section-hell .p11-plan code, .section-hell .p30-ampel-karte code { background: var(--dark-surface); border-color: var(--dark-border); color: var(--brand-light); }
.section-hell .card kbd { background: var(--dark-surface); border-color: var(--dark-border); color: var(--text); }
.section-hell .card .badge { background: none; }
.section-hell .card .badge-brand { color: var(--brand); border-color: rgba(250, 239, 112, 0.4); background: var(--brand-dim); }
.section-hell .card .badge-gruen { color: var(--green); border-color: rgba(112, 250, 160, 0.35); background: rgba(112, 250, 160, 0.07); }
.section-hell .card .badge-rot { color: var(--red); border-color: rgba(250, 112, 112, 0.35); background: rgba(250, 112, 112, 0.07); }
.section-hell .card .badge-blau { color: var(--blue); border-color: rgba(112, 184, 250, 0.35); background: rgba(112, 184, 250, 0.07); }
.section-hell .stat .stat-label { color: var(--text-muted); }
.section-hell .p12-karte { color: var(--text); }
.section-hell .p12-karte:hover { color: var(--text); }

/* Helle Sektionen: Karten mit transparenten Verläufen brauchen einen soliden dunklen Unterbau */
.section-hell .card-akzent { background: linear-gradient(160deg, rgba(250, 239, 112, 0.05), var(--dark-card) 55%), var(--dark-card); }
.section-hell .p11-plan-pro { background: linear-gradient(145deg, rgba(250, 239, 112, 0.08), rgba(250, 239, 112, 0.02)), linear-gradient(145deg, var(--dark-card), var(--dark-surface)); }
.section-hell .p11-plan-max20 { background: linear-gradient(145deg, rgba(112, 184, 250, 0.06), rgba(112, 184, 250, 0.02)), linear-gradient(145deg, var(--dark-card), var(--dark-surface)); }
/* Helle Sektionen: Tabellenzellen mit dunkler Schrift auf hellen Zeilen */
.section-hell .tabelle-wrap { border-color: #ddd6cd; }
.section-hell table.tabelle td { color: var(--ci-text); border-color: #e3ddd3; background: #ffffff; }
.section-hell table.tabelle td:first-child { color: var(--ci-schwarz); }
.section-hell table.tabelle tr:hover td { background: #faf7f2; }
