/* ==========================================================================
   GEDANKENANSTOSS KI — FINANZORGANISATION
   Mobile-first executive document (default) → 16:9 slide deck (≥1024px)
   Per CONSTITUTION.md §4: the phone is the primary screen.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SELF-HOSTED FONTS (latin subset, variable) — no CDN, works offline
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/jakarta-sans-latin.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2-variations');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --bg-main: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F1F4F9;
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --accent-navy: #0F2042;
  --accent-blue: #1D4ED8;
  --accent-blue-light: #EFF6FF;

  /* Emphasis encoding (Kapitel 1 + 2): recessive context, one accent. */
  --demph-1: #CBD5E1;
  --demph-2: #94A3B8;

  /* Status: manual toil (a cost, not an error) vs. human control (wanted). */
  --toil: #B45309;
  --toil-bg: #FEF6EC;
  --control: #0F2042;
  --control-bg: #EEF2FB;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08);

  --pad-x: 1.375rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   3. SCROLL PROGRESS (mobile) / SLIDE PROGRESS (desktop)
   -------------------------------------------------------------------------- */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(203, 213, 225, 0.45);
  z-index: 100;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--accent-navy);
  transition: width 0.15s linear;
}

/* --------------------------------------------------------------------------
   4. DOCUMENT MASTHEAD (mobile only)
   -------------------------------------------------------------------------- */
.doc-masthead {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.masthead-art {
  height: 152px;
  background-image: url('masthead.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--accent-navy);
}

.masthead-body {
  padding: 1.5rem var(--pad-x) 1.6rem;
}

.masthead-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.6rem;
}

.masthead-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  text-wrap: pretty;
}

.masthead-sub {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. SLIDE / SECTION ANATOMY — MOBILE BASE (vertical scroll document)
   -------------------------------------------------------------------------- */
.deck-container { width: 100%; }

.slide {
  padding: 2.75rem var(--pad-x) 2.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.slide:last-of-type { border-bottom: none; }

.slide-header { margin-bottom: 1.75rem; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;      /* 13px legibility floor */
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.85rem;
  display: block;
}

.action-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 6.1vw, 2rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  text-wrap: pretty;
}

.sub-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.slide-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

/* --------------------------------------------------------------------------
   6. SPLIT HERO & PROPORTION (Kapitel 1)
   -------------------------------------------------------------------------- */
.split-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem-card,
.proportion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-navy);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.problem-kicker,
.proportion-kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;       /* 13px legibility floor */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: block;
}

.problem-title,
.proportion-title {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.problem-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.problem-points li p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.stat-badge-sm {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-navy);
  background: var(--bg-card-subtle);
  border: 1px solid rgba(15, 32, 66, 0.14);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  display: inline;
  vertical-align: 0.04em;
  margin-right: 0.35rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Tool logos container inside problem card */
.tool-logos-block {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tool-logos-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;       /* 13px legibility floor */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tool-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.tool-logo-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card-subtle);
  border: 1px solid rgba(15, 32, 66, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
}

.tool-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.tool-logo-name {
  font-family: var(--font-sans);
  font-size: 0.8125rem;       /* 13px legibility floor */
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.tool-logos-note {
  font-size: 0.8125rem;       /* 13px legibility floor */
  line-height: 1.45;
  color: var(--text-muted);
}

.proportion-bar {
  display: flex;
  gap: 2px;
  height: 36px;
  margin: 0.2rem 0;
}

.seg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.seg:first-child { border-radius: 4px 0 0 4px; }
.seg:last-child  { border-radius: 0 4px 4px 0; }

.seg-a { background: var(--demph-1); flex: 0 0 10%; }
.seg-b { background: var(--demph-2); flex: 0 0 20%; }
.seg-c { background: var(--accent-navy); flex: 0 0 70%; justify-content: flex-end; padding-right: 0.8rem; }

.seg-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
}

.seg-label-mini {
  font-family: var(--font-mono);
  font-size: 0.8125rem;       /* 13px legibility floor */
  font-weight: 700;
  color: var(--text-secondary);
}

.proportion-key {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.proportion-key li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.key-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-top: 0.32rem;
  flex-shrink: 0;
}

.swatch-a { background: var(--demph-1); }
.swatch-b { background: var(--demph-2); }
.swatch-c { background: var(--accent-navy); }

.key-label strong {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.35rem;
}

.proportion-message {
  margin-top: 0.2rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card-subtle);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 4px 4px 0;
}

.proportion-message p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   8. ZWEI WEGE (Kapitel 2) — same task, two paths, handoffs made countable
   -------------------------------------------------------------------------- */
.ways {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.way {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.way.is-after {
  border-top: 3px solid var(--accent-navy);
  box-shadow: var(--shadow-md);
}

.way-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.way-label {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.way-count {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
}

.way-count.is-toil { background: var(--toil-bg); color: var(--toil); }
.way-count.is-control { background: var(--accent-navy); color: #FFFFFF; }

/* who does the step: System, KI or Mensch */
.actor {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;       /* 13px legibility floor */
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  margin-right: 0.5rem;
  vertical-align: 0.05em;
}

.actor.is-system { background: var(--bg-card-subtle); color: var(--text-muted); }
.actor.is-ai     { background: var(--accent-blue-light); color: var(--accent-blue); }
.actor.is-human  { background: var(--toil-bg); color: var(--toil); }

/* the one human step that is wanted reads as control, not as cost */
.node.is-control .actor.is-human { background: var(--control-bg); color: var(--control); }

.way-chain {
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}

/* the rail the steps sit on */
.way-chain::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.05rem;
  bottom: 1.05rem;
  width: 2px;
  background: var(--border-color);
}

.node {
  position: relative;
  padding: 0.42rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.node::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.72rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--demph-1);
  box-sizing: border-box;
}

/* filled amber dot = manual toil (the thing being counted) */
.node.is-toil { color: var(--text-primary); }
.node.is-toil::before { background: var(--toil); border-color: var(--toil); }

/* filled navy dot = the human checkpoint that should stay */
.node.is-control { color: var(--text-primary); font-weight: 500; }
.node.is-control::before { background: var(--control); border-color: var(--control); }

.chain-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.chain-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.chain-legend span::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--demph-1);
  background: var(--bg-main);
  box-sizing: border-box;
}

.chain-legend .lg-toil::before { background: var(--toil); border-color: var(--toil); }
.chain-legend .lg-control::before { background: var(--control); border-color: var(--control); }

.punchline {
  margin-top: 0.35rem;
  padding: 1.05rem 1.2rem;
  background: var(--accent-blue-light);
  border-radius: 6px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   9. DREI HEBEL (Kapitel 3) — 3-Pillar Transformation Framework & Measures
   -------------------------------------------------------------------------- */
.levers-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lever-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-navy);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lever-card[data-lever="3"] {
  border-top-color: var(--accent-blue);
}

.lever-card-head {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.lever-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;       /* 13px legibility floor */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.lever-title {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.lever-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.lever-measures {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.measures-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;       /* 13px legibility floor */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.measures-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.measures-list li {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-card-subtle);
  border: 1px solid rgba(15, 32, 66, 0.07);
  padding: 0.32rem 0.6rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.measures-list li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-blue);
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. DREI FRAGEN + AUFWAND/WIRKUNG (Kapitel 4)
   -------------------------------------------------------------------------- */
.closing {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.questions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.question {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

.question-num {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent-navy);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.question-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.question-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* The prioritisation frame — a conceptual model, deliberately not a data plot.
   Axes are labelled at both ends: Aufwand decreases to the right so that the
   quadrant that matters ("Hier zuerst") sits top-right, where the eye lands. */
.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-navy);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.matrix-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.matrix-kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;       /* 13px legibility floor */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.matrix-title {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.matrix-plot {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.axis-y {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.axis-x {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.axis-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;       /* 13px legibility floor */
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.axis-y .axis-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* the axis line carries an arrowhead showing which way "more" runs */
.axis-y .axis-line {
  flex: 1;
  width: 2px;
  background: var(--border-color);
  position: relative;
  min-height: 26px;
}

.axis-y .axis-line::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 7px solid var(--demph-2);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.axis-x .axis-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  position: relative;
  min-width: 26px;
}

.axis-x .axis-line::before {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 7px solid var(--demph-2);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.matrix-grid {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}

.quad {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 80px;
}

.quad:nth-child(1) { border-radius: 6px 0 0 0; }
.quad:nth-child(2) { border-radius: 0 6px 0 0; }
.quad:nth-child(3) { border-radius: 0 0 0 6px; }
.quad:nth-child(4) { border-radius: 0 0 6px 0; }

.quad strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quad-desc {
  font-size: 0.8125rem;       /* 13px legibility floor */
  line-height: 1.35;
  color: var(--text-secondary);
}

/* top-right: the quadrant that matters */
.quad.is-first { background: var(--accent-navy); }
.quad.is-first strong { color: #FFFFFF; }
.quad.is-first .quad-desc { color: #CBD5E1; }

/* top-left: worth doing, but plan for it */
.quad.is-plan { background: #DCE6F7; }

/* bottom-right: cheap, small return */
.quad.is-side { background: var(--bg-card-subtle); }

/* bottom-left: expensive, little return */
.quad.is-out {
  background: var(--bg-main);
  border: 1px dashed var(--demph-1);
}

.quad.is-out strong { color: var(--text-muted); }
.quad.is-out .quad-desc { color: var(--text-muted); }

.matrix-message {
  margin-top: 0.2rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card-subtle);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 4px 4px 0;
}

.matrix-message p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10b. BOTTOM LINE — the sentence the reader should remember (§3.6)
   -------------------------------------------------------------------------- */
.bottom-line {
  margin-top: 1.6rem;
  padding: 1.1rem 1.25rem 1.1rem 1.15rem;
  border-left: 3px solid var(--accent-navy);
  background: var(--bg-card);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   11. SLIDE FOOTER (citation & meta)
   -------------------------------------------------------------------------- */
.slide-footer {
  margin-top: 1.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-source {
  font-size: 0.8125rem;      /* 13px floor — citations stay readable */
  line-height: 1.45;
  color: var(--text-muted);
}

.footer-source em { font-style: italic; }

.footer-source a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--demph-1);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.footer-source a:hover,
.footer-source a:focus-visible {
  color: var(--accent-blue);
  text-decoration-color: var(--accent-blue);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  flex-wrap: nowrap;
}

.footer-badge {
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-number {
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. COLOPHON (mobile only)
   -------------------------------------------------------------------------- */
.doc-colophon {
  padding: 2rem var(--pad-x) 3rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.nav-controls { display: none; }

/* ==========================================================================
   13. DESKTOP DECK MODE (≥1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  html, body { width: 100%; height: 100%; overflow: hidden; }
  body { font-size: 16px; }

  .doc-masthead,
  .doc-colophon { display: none; }

  .progress-bar-container { height: 4px; }
  .progress-bar { transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

  .deck-container {
    position: relative;
    width: 100vw;
    height: 100dvh;
    background: var(--bg-main);
  }

  .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 3.25rem 4.5rem 2.5rem;
    border-bottom: none;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    max-width: 1600px;
    margin: 0 auto;
  }

  .slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .slide-header { flex-shrink: 0; margin-bottom: 1.75rem; max-width: 1150px; }

  .kicker { font-size: 0.8125rem; margin-bottom: 0.6rem; }
  .axis-name, .loop-badge { font-size: 0.8125rem; }
  .chip { font-size: 0.8125rem; }
  .action-title { font-size: 2.1rem; margin-bottom: 0.6rem; }
  .sub-lead { font-size: 1.05rem; max-width: 105ch; }

  .slide-body { flex: 1; min-height: 0; justify-content: center; gap: 1.5rem; }

  /* Kapitel 1 */
  .split-hero {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
  }

  .problem-card,
  .proportion-card {
    padding: 1.4rem 1.6rem 1.3rem;
  }

  .problem-title,
  .proportion-title {
    font-size: 1.25rem;
  }

  .problem-points {
    gap: 0.85rem;
    margin-top: 0.2rem;
  }

  .problem-points li {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .proportion-bar { height: 40px; }

  /* Kapitel 2 */
  .ways { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: start; }
  .way { padding: 1.4rem 1.6rem 1.5rem; }
  .punchline { margin-top: 0; }

  /* Kapitel 3 */
  .levers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.35rem;
    align-items: stretch;
    width: 100%;
  }

  .lever-card {
    padding: 1.35rem 1.45rem 1.25rem;
    justify-content: flex-start;
  }

  .lever-card-head {
    margin-bottom: 0.15rem;
  }

  .lever-text {
    font-size: 0.9125rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 0.35rem;
  }

  .lever-measures {
    margin-top: auto;
    padding-top: 0.75rem;
  }

  .measures-list {
    gap: 0.32rem;
  }

  .measures-list li {
    font-size: 0.8125rem;
    padding: 0.3rem 0.55rem;
  }

  /* Kapitel 4 */
  .closing { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2rem; align-items: stretch; }
  .question { padding: 1.15rem 1.3rem; }
  .matrix-card { padding: 1.35rem 1.55rem 1.25rem; }
  .matrix-title { font-size: 1.25rem; }
  .quad { min-height: 86px; padding: 0.85rem 0.95rem; }

  .bottom-line {
    flex-shrink: 0;
    margin-top: 1.35rem;
    font-size: 1.1rem;
  }

  .slide-footer {
    flex-shrink: 0;
    margin-top: 1.1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-right: 14rem;   /* reserve the corner used by the nav pill */
  }

  .footer-source { max-width: 72%; font-size: 0.8125rem; }
  .footer-meta { font-size: 0.8125rem; flex-shrink: 0; }

  .nav-controls {
    position: fixed;
    bottom: 1.5rem;
    right: 2rem;
    background: rgba(15, 32, 66, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.4rem 0.6rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.22);
    z-index: 200;
  }

  .nav-btn {
    background: transparent;
    border: none;
    color: #F8FAFC;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .nav-btn:hover { background: rgba(255, 255, 255, 0.16); }
  .nav-btn:active { transform: scale(0.94); }
  .nav-btn:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }

  .slide-indicator {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #E2E8F0;
    padding: 0 0.45rem;
    font-variant-numeric: tabular-nums;
  }

  .nav-divider { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.22); }
}

@media (min-width: 1440px) {
  .slide { padding: 4rem 5.5rem 3rem; }
  .action-title { font-size: 2.35rem; }
}

/* ==========================================================================
   14. PRINT / PDF — landscape, one chapter per page
   ========================================================================== */
@media print {
  @page { size: 297mm 210mm landscape; margin: 0; }

  html, body {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    background: #FFFFFF !important;
    font-size: 15px !important;
  }

  .progress-bar-container,
  .nav-controls,
  .doc-masthead,
  .doc-colophon { display: none !important; }

  .deck-container {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    position: static !important;
  }

  .slide {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100vh !important;
    max-width: none !important;
    padding: 2.5rem 3rem !important;
    page-break-after: always !important;
    break-after: page !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    border-bottom: none !important;
    background: #FFFFFF !important;
  }

  .slide:last-of-type { page-break-after: auto !important; break-after: auto !important; }

  .split-hero { display: grid !important; grid-template-columns: 0.85fr 1.15fr !important; gap: 3rem !important; }
  .ways { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 1.5rem !important; }
  .closing { display: grid !important; grid-template-columns: 1.15fr 1fr !important; gap: 2.5rem !important; }
  .slide-footer { flex-direction: row !important; justify-content: space-between !important; padding-right: 0 !important; }

  .way, .question, .lever-card, .problem-card, .proportion-card { box-shadow: none !important; border: 1px solid #CBD5E1 !important; }

  .seg, .key-swatch, .quad, .question-num, .way-count, .actor, .node::before, .measures-list li, .proportion-message {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ==========================================================================
   15. MOTION & ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .seg, .key-swatch, .quad { forced-color-adjust: none; border: 1px solid ButtonText; }
  .way, .question { border: 1px solid ButtonText; }
}
