/* ============================================================
   WK Academy — Präsentations-Fundament
   Alle Decks teilen sich diese Datei. Keine externen Requests:
   Fonts lokal, Grafiken in CSS/SVG. Läuft offline beim Kunden.
   ============================================================ */

@font-face { font-family: 'Instrument Serif'; src: url('../../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../../fonts/inter-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --cream:    #F6F2EC;
  --soft:     #FBF8F3;
  --ink:      #161512;
  --ink-2:    #2A2823;
  --accent:   #C2643A;
  --accent-w: #E8B79C;
  --hair:     #E5DFD5;
  --muted:    #6E6A60;
  --muted-2:  #B0AB9F;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --W: 1280px;
  --H: 720px;

  /* Bewegung: ausklingende Kurven, kein Federn, kein Überschwingen. */
  --e-expo:  cubic-bezier(.16, 1, .3, 1);
  --e-quart: cubic-bezier(.25, 1, .5, 1);
  --t-in:  560ms;   /* Auftritt */
  --t-out: 240ms;   /* Abgang, bewusst kürzer */
}

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

html, body {
  height: 100%;
  background: #100F0D;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Bühne: 16:9, per JS auf den Viewport skaliert ---------- */

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Eingebettete Fassung: das Deck sitzt als Block in einem Artikel statt
   den Bildschirm zu füllen. Wird nur von der öffentlichen Seite genutzt. */
.stage.eingebettet {
  position: relative;
  inset: auto;
  /* Kein Grid: Ein Element, das größer als sein Container ist, wird von
     place-items:center nicht verlässlich zentriert. Stattdessen wird das
     Deck unten absolut positioniert — das ist berechenbar. */
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #100F0D;
  box-shadow: 0 30px 70px -40px rgba(20,18,15,.55);
}
.stage.eingebettet .deck {
  position: absolute;
  left: 50%; top: 50%;
  box-shadow: none;
  /* JS setzt translate(-50%,-50%) scale(...) */
}
.stage.eingebettet .rail     { position: absolute; bottom: 14px; }
.stage.eingebettet .progress { position: absolute; }
.stage.eingebettet .overview { position: absolute; padding: 26px; }
.stage.eingebettet .ov-grid  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.stage.eingebettet .ov-item .t { font-size: 14px; }
.stage.eingebettet:fullscreen { aspect-ratio: auto; height: 100%; border-radius: 0; }

.deck {
  position: relative;
  width: var(--W);
  height: var(--H);
  transform-origin: center center;
  background: var(--cream);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6);
}

.slide {
  position: absolute;
  inset: 0;
  padding: 68px 88px 84px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

/* ============================================================
   Bewegung

   Leitgedanke: Der Folienwechsel ist der eine inszenierte Moment.
   Innerhalb der Folie bewegt sich nur, was durch Bewegung etwas
   aussagt — Reihenfolgen, Abläufe, Zeit. Fließtext und Überschriften
   reiten auf dem Folienwechsel mit, statt einzeln einzufliegen.
   ============================================================ */

.slide.active  { opacity: 1; visibility: visible; z-index: 2; animation: slideEnter var(--t-in)  var(--e-expo)  both; }
.slide.leaving { opacity: 0; visibility: visible; z-index: 1; animation: slideLeave var(--t-out) var(--e-quart) both; }

/* --dir wird von deck.js auf 1 (vorwärts) oder -1 (rückwärts) gesetzt.
   Die neue Folie kommt aus der Laufrichtung, die alte weicht dagegen aus. */
@keyframes slideEnter {
  from { opacity: 0; transform: translate3d(calc(var(--dir, 1) *  30px), 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideLeave {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translate3d(calc(var(--dir, 1) * -18px), 0, 0); }
}

/* Kopfzeile und Überschrift führen die Folie an, minimal vorgezogen. */
.slide.active .eyebrow { animation: riseIn 520ms var(--e-quart) both; }
.slide.active h1,
.slide.active h2,
.slide.active .titelzeile,
.slide.active .big     { animation: riseIn 620ms var(--e-expo) 70ms both; }

/* Echte Aufzählungen und Abläufe: Geschwister nacheinander.
   Das ist die einzige Stelle, an der gestaffelt wird. Eine Split-Folie ist
   ein zweispaltiges Layout, keine Liste — nur eine einzeln stehende Karte
   darin bekommt einen eigenen Auftritt. */
.slide.active :is(.grid, .checks, .chips, .flow, .serp, .versus, tbody) > *,
.slide.active .split > .card,
.slide.active .timeline > .node {
  animation: riseIn 480ms var(--e-quart) both;
  animation-delay: calc(170ms + var(--i, 0) * 55ms);
}

:is(.grid, .checks, .chips, .flow, .serp, .versus, tbody) > *:nth-child(2) { --i: 1; }
:is(.grid, .checks, .chips, .flow, .serp, .versus, tbody) > *:nth-child(3) { --i: 2; }
:is(.grid, .checks, .chips, .flow, .serp, .versus, tbody) > *:nth-child(4) { --i: 3; }
:is(.grid, .checks, .chips, .flow, .serp, .versus, tbody) > *:nth-child(5) { --i: 4; }
:is(.grid, .checks, .chips, .flow, .serp, .versus, tbody) > *:nth-child(6) { --i: 5; }
:is(.grid, .checks, .chips, .flow, .serp, .versus, tbody) > *:nth-child(7) { --i: 6; }

@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Zeitstrahl: die Linie wächst, die Knoten erscheinen, sobald sie
   erreicht sind. Hier trägt die Bewegung die Aussage der Folie. */
.slide.active .timeline::before { animation: drawLine 900ms var(--e-quart) 120ms both; }
.slide.active .timeline > .node { animation-delay: calc(260ms + var(--i, 0) * 190ms); }
.timeline > .node:nth-child(2) { --i: 1; }
.timeline > .node:nth-child(3) { --i: 2; }
.timeline > .node:nth-child(4) { --i: 3; }

@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .slide.active, .slide.leaving,
  .slide.active *,
  .slide.active .timeline::before {
    animation: none !important;
  }
  .slide.leaving { opacity: 0; visibility: hidden; }
}

/* ---------- Farbvarianten ---------- */

.slide.dark  { background: var(--ink);  color: var(--cream); }
.slide.warm  { background: var(--accent); color: #FFF6F0; }
.slide.soft  { background: var(--soft); }

.slide.dark .eyebrow,
.slide.dark .muted     { color: var(--muted-2); }
.slide.dark .hair,
.slide.dark .card      { border-color: #34312B; }
.slide.dark .card      { background: #1D1B17; }
.slide.warm .eyebrow,
.slide.warm .muted     { color: rgba(255,246,240,.75); }
.slide.warm .card      { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }

/* ---------- Typografie ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .28;
}

/* .titelzeile ist das h1 der Titelfolie in der öffentlichen Fassung.
   Dort ist die Seitenüberschrift das echte h1, das Deck darf kein zweites
   haben. Optisch identisch. */
h1, .titelzeile {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 76px;
  line-height: .98;
  letter-spacing: -.025em;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
  margin-bottom: 7px;
}

p  { font-size: 19px; line-height: 1.6; font-weight: 300; max-width: 62ch; }
.lead { font-size: 23px; line-height: 1.5; }
.small { font-size: 15px; line-height: 1.55; }
.muted { color: var(--muted); }
strong, b { font-weight: 600; }
em { font-family: var(--serif); font-style: italic; font-size: 1.08em; }

.accent { color: var(--accent); }
.mono { font-family: var(--mono); font-size: .88em; }

.spacer { flex: 1; min-height: 8px; }

/* ---------- Abstands-Rhythmus ----------
   Eng, wo etwas zusammengehört. Großzügig, wo ein neuer Gedanke anfängt.
   Einmal hier festgelegt, damit in den Folien keine Inline-Abstände stehen. */

h2 + p, h2 + .lead        { margin-top: 0; }            /* Untertitel klebt an der Überschrift */

h2 + .grid,  h2 + table,  h2 + .versus,
h2 + .flow,  h2 + .timeline, h2 + .checks,
h2 + .chips, h2 + .serp                     { margin-top: 34px; }

.grid + p,   table + p,   .versus + p,
.flow + p,   .timeline + p, .checks + p     { margin-top: 26px; }

.split > div > h2 + p                       { margin-top: 14px; }
.split > div > p + p                        { margin-top: 14px; }
.split .grid                                { gap: 14px; }
.split > div > .checks                      { margin-top: 20px; }

.card .eyebrow                              { margin-bottom: 14px; }
.card h3 + p                                { margin-top: 0; }
.card p + p                                 { margin-top: 12px; }

.chips.stack { flex-direction: column; align-items: flex-start; }
.chips + p   { margin-top: 16px; }

/* ---------- Titelfolie ---------- */

.slide.title { justify-content: flex-end; padding-bottom: 96px; }
.slide.title h1, .slide.title .titelzeile { font-size: 92px; max-width: 17ch; }
.slide.title .kicker {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; color: var(--accent); margin-bottom: 30px;
}
.slide.title .meta {
  display: flex; gap: 34px; margin-top: 40px;
  padding-top: 22px; border-top: 1px solid var(--hair);
  font-size: 13px; color: var(--muted);
}

/* ---------- Aussage-Folie ---------- */

.slide.statement { justify-content: center; align-items: flex-start; }
.slide.statement .big {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 20ch;
  margin-bottom: 0;   /* ist ein h2, dessen Standardabstand hier stört */
}

/* ---------- Verweise innerhalb einer Folie ---------- */

.slide a { color: inherit; }
.slide p a, .slide .small a, .slide li a {
  color: currentColor;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color .2s ease;
}
.slide p a:hover, .slide .small a:hover, .slide li a:hover { color: var(--accent); }

a.card {
  display: block; text-decoration: none;
  transition: transform .22s var(--e-quart), border-color .22s ease;
}
a.card:hover { transform: translateY(-3px); border-color: var(--accent-w); }
a.card .lbl {
  display: block; margin-bottom: 11px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: var(--accent);
}
a.card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }

h3 > a { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; transition: color .2s ease; }
h3 > a:hover { color: var(--accent); }

/* ---------- Raster ---------- */

.grid   { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split  { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-wide { grid-template-columns: 1.15fr .85fr; }

/* ---------- Karten ---------- */

.card {
  background: var(--soft);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 26px 24px;
}
.card.plain { background: transparent; }
.card p { font-size: 15px; line-height: 1.55; }

/* ---------- Ablauf-Diagramm (3 Schritte) ---------- */

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; }
.flow .step {
  background: var(--soft);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex; flex-direction: column;
}
.flow .step h3 { font-size: 21px; font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin-bottom: 8px; }
.flow .arrow {
  display: grid; place-items: center;
  width: 52px;
  color: var(--muted-2);
}
.flow .arrow svg { width: 22px; height: 22px; }

/* ---------- Vergleich links/rechts ---------- */

.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.versus .col { padding: 28px 30px; }
.versus .col.a { background: var(--soft); border: 1px solid var(--hair); border-radius: 16px 0 0 16px; border-right: 0; }
.versus .col.b { background: var(--ink); color: var(--cream); border-radius: 0 16px 16px 0; }
.versus .col.b .label { color: var(--accent-w); }
.versus .mid {
  display: grid; place-items: center; width: 56px;
  background: var(--ink); color: var(--accent-w);
  font-family: var(--serif); font-size: 20px;
}
.versus .label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: var(--muted); margin-bottom: 16px;
}
.versus ul { list-style: none; display: grid; gap: 11px; }
.versus li { font-size: 16px; line-height: 1.45; font-weight: 300; padding-left: 20px; position: relative; }
.versus li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: currentColor; opacity: .45; }
.versus .col.b p.small { color: rgba(246,242,236,.72); margin-top: 16px; }

/* ---------- Tabelle ---------- */

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 500; color: var(--muted);
  padding: 0 18px 12px 0;
  border-bottom: 1px solid var(--hair);
}
td {
  font-size: 16.5px; font-weight: 300; line-height: 1.45;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
td.k { font-weight: 500; }
td .q { font-family: var(--mono); font-size: 14.5px; color: var(--accent); }
.slide.dark th, .slide.dark td { border-color: #34312B; }

/* ---------- Große Zahl ---------- */

.bignum {
  font-family: var(--serif);
  font-size: 150px;
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--accent);
}
.bignum.sm { font-size: 88px; }

/* ---------- Chips / Suchbegriffe ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 8px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
}
.chip.on  { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip.hl  { background: #F4E4DA; border-color: var(--accent-w); color: #8A3F1C; }
.chip.dim { opacity: .55; }

/* ---------- Suchergebnis-Attrappe ---------- */

.serp {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px -26px rgba(20,18,15,.4);
}
.serp .bar {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--hair); border-radius: 999px;
  padding: 9px 16px; margin-bottom: 18px;
  font-size: 14.5px; color: var(--ink);
}
.serp .bar svg { width: 14px; height: 14px; color: var(--muted-2); flex-shrink: 0; }
.serp .res { padding: 11px 0; border-bottom: 1px solid #F0EBE2; }
.serp .res:last-child { border-bottom: 0; }
.serp .res .u { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.serp .res .t { font-size: 16px; color: #1A3E8C; font-weight: 500; margin-bottom: 3px; }
.serp .res .d { font-size: 13px; color: var(--muted); line-height: 1.45; font-weight: 300; }
.serp .res.ad .u::before {
  content: 'Gesponsert'; font-weight: 600; color: var(--ink);
  margin-right: 7px;
}
.serp .res.you { background: #FBF3EE; margin: 0 -12px; padding: 11px 12px; border-radius: 8px; border-bottom: 0; }
.serp .res.you .t { color: #8A3F1C; }

/* ---------- KI-Antwort-Attrappe ---------- */

.aibox {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 18px 40px -26px rgba(20,18,15,.4);
}
.aibox .ask {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--ink);
  padding-bottom: 15px; margin-bottom: 15px;
  border-bottom: 1px solid #F0EBE2;
}
.aibox .ask svg { width: 14px; height: 14px; color: var(--muted-2); flex-shrink: 0; }
.aibox .answer { font-size: 14.5px; line-height: 1.65; font-weight: 300; color: var(--ink); }
.aibox .answer b { font-weight: 600; }
.aibox .cite {
  display: inline-block;
  font-family: var(--mono); font-size: 10px;
  vertical-align: super;
  color: var(--accent);
  margin-left: 2px;
}
.aibox .sources {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #F0EBE2;
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.aibox .sources .lbl { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.aibox .src {
  font-size: 11.5px; padding: 5px 10px;
  border: 1px solid var(--hair); border-radius: 999px;
  color: var(--muted); background: var(--soft);
}
.aibox .src.you { background: #F4E4DA; border-color: var(--accent-w); color: #8A3F1C; font-weight: 500; }

/* ---------- Unternehmensprofil-Attrappe ---------- */

.gbp {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 18px 40px -26px rgba(20,18,15,.4);
}
.gbp .name { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.gbp .rate { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.gbp .cat { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.gbp .rows { display: grid; gap: 9px; margin-bottom: 18px; }
.gbp .row { display: flex; gap: 11px; font-size: 13.5px; line-height: 1.45; align-items: flex-start; }
.gbp .row svg { width: 14px; height: 14px; color: var(--muted-2); flex-shrink: 0; margin-top: 3px; }
.gbp .row .open { color: #1E7A3C; font-weight: 500; }
.gbp .acts { display: flex; gap: 8px; }
.gbp .act {
  font-size: 12.5px; font-weight: 500;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--hair); color: var(--ink); background: var(--soft);
}
.gbp .act.hl { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Kennzeichnung der Attrappen: im Vortrag ist der Beispielcharakter klar,
   auf einer öffentlichen Seite muss er dastehen. */
.mock-note {
  margin-top: 11px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted-2);
  letter-spacing: .01em;
}

.stars { display: inline-flex; gap: 1.5px; color: var(--accent); }
.stars svg { width: 12px; height: 12px; }

/* ---------- Zeitstrahl ---------- */

.timeline {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding-top: 46px;
  margin-top: 34px;   /* Luft zur Überschrift: die Punkte dürfen nicht auf der Grundlinie sitzen */
}
.timeline::before {
  content: ''; position: absolute; top: 8px; left: 6%; right: 6%;
  height: 1px; background: var(--hair);
  transform-origin: left center;
}
.timeline .node { position: relative; padding-right: 22px; }
.timeline .node::before {
  content: ''; position: absolute; top: -44px; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cream); border: 1.5px solid var(--muted-2);
}
.timeline .node.on::before { background: var(--accent); border-color: var(--accent); }
.timeline .when {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 8px;
}
.timeline .what { font-size: 15.5px; line-height: 1.45; font-weight: 300; }
.timeline .what b { font-weight: 500; display: block; margin-bottom: 3px; }
.slide.dark .timeline::before { background: #34312B; }
.slide.dark .timeline .node::before { background: var(--ink); }

/* ---------- Häkchenliste ---------- */

.checks { display: grid; gap: 13px; }
.checks li { list-style: none; display: flex; gap: 13px; align-items: flex-start; font-size: 16.5px; line-height: 1.5; font-weight: 300; }
.checks li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 5px; color: var(--accent); }
.checks li b { font-weight: 500; }

/* ---------- Merksatz ---------- */

.pull {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -.015em;
  max-width: 26ch;
  padding-top: 22px;
  position: relative;
}
.pull::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 1px;
  background: var(--accent);
}

/* ---------- Fußzeile ---------- */

.foot {
  position: absolute;
  left: 88px; right: 88px; bottom: 34px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2);
  pointer-events: none;
}
.slide.dark .foot, .slide.warm .foot { color: rgba(255,255,255,.4); }

/* ---------- Bedienung ---------- */

.rail {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(22,21,18,.82);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 7px 9px;
  z-index: 100;
  opacity: .28;
  transition: opacity .25s;
}
.rail:hover, .rail:focus-within { opacity: 1; }
.rail button {
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: transparent; color: #F6F2EC;
  cursor: pointer; font-size: 15px;
  display: grid; place-items: center;
  transition: background .18s ease, transform .12s var(--e-quart), color .18s ease;
}
.rail button svg { width: 15px; height: 15px; }
.rail .sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); margin: 0 3px; }
.rail button:hover { background: rgba(255,255,255,.16); }
.rail button:active { transform: scale(.92); }
.rail button.on { background: var(--accent); color: #fff; }
.rail button:focus-visible { outline: 2px solid var(--accent-w); outline-offset: 2px; }
.rail .count {
  font-family: var(--mono); font-size: 12px;
  color: rgba(246,242,236,.75);
  padding: 0 8px; min-width: 54px; text-align: center;
}

/* Rückweg zur Website. Wird nur in die öffentliche Fassung eingefügt
   (build.mjs), damit die Präsentation beim Kunden ohne Ablenkung läuft. */
.heimat {
  position: fixed; top: 18px; left: 18px; z-index: 100;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .01em;
  color: rgba(246,242,236,.9);
  text-decoration: none;
  /* Eigener Hintergrund: der Link liegt je nach Fenstergröße über der
     schwarzen Bühne oder über der hellen Folie und muss auf beidem lesbar sein. */
  background: rgba(22,21,18,.82);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 9px 16px 9px 13px;
  opacity: .34;
  transition: opacity .25s ease, gap .2s ease;
}
.heimat:hover, .heimat:focus-visible { opacity: 1; gap: 13px; }
.heimat:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.heimat svg { width: 13px; height: 13px; flex-shrink: 0; }

@media (max-width: 860px) {
  /* Im Dokumentmodus mitscrollen statt über dem Text kleben. */
  .heimat {
    position: static; display: flex;
    margin: 20px 24px 0;
    opacity: 1;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    color: var(--muted);
  }
  .heimat:hover { color: var(--accent); }
}

@media print { .heimat { display: none; } }

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  z-index: 200;
}

/* ---------- Sprechzettel ---------- */

.notes {
  position: fixed; right: 0; top: 0; bottom: 0; width: 380px;
  background: #1B1917; color: #E8E3DA;
  padding: 30px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  z-index: 150;
  border-left: 1px solid #34312B;
}
.notes.open { transform: none; }
.notes h4 {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-w); margin-bottom: 16px; font-weight: 500;
}
.notes .body { font-size: 14.5px; line-height: 1.65; font-weight: 300; }
.notes .body p + p { margin-top: 12px; }
.notes .body strong { font-weight: 600; color: #fff; }
.notes .hint {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid #34312B;
  font-size: 12px; color: #8A857C; line-height: 1.6;
}

/* ---------- Übersicht ---------- */

.overview {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(16,15,13,.97);
  padding: 44px;
  overflow-y: auto;
  display: none;
}
.overview.open { display: block; }
.overview h4 {
  color: var(--muted-2); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 22px; font-weight: 500;
}
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.ov-item {
  background: var(--cream); border-radius: 8px;
  aspect-ratio: 16/9; padding: 14px;
  cursor: pointer; overflow: hidden;
  border: 2px solid transparent;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color .18s, transform .18s;
}
.ov-item:hover { transform: translateY(-3px); }
.ov-item.here { border-color: var(--accent); }
.ov-item .n { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.ov-item .t {
  font-family: var(--serif); font-size: 17px; line-height: 1.15;
  color: var(--ink); letter-spacing: -.01em;
}

/* ---------- Mobil: Deck wird zum Dokument ---------- */

@media (max-width: 860px) {
  html, body { height: auto; background: var(--cream); }
  .stage { position: static; display: block; overflow: visible; }
  .deck {
    width: 100%; height: auto; transform: none !important;
    box-shadow: none;
  }
  .slide {
    position: static;
    opacity: 1; visibility: visible;
    height: auto; min-height: 0;
    padding: 44px 24px 40px;
    border-bottom: 1px solid var(--hair);
  }
  /* Als Dokument gelesen, nicht vorgeführt: keine Auftritte. */
  .slide, .slide *, .slide .timeline::before { animation: none !important; }
  h1 { font-size: 40px; }
  .slide.title h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  p { font-size: 16px; }
  .lead { font-size: 18px; }
  .bignum { font-size: 84px; }
  .pull { font-size: 24px; }
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; gap: 16px; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { width: auto; height: 34px; transform: rotate(90deg); }
  .versus { grid-template-columns: 1fr; }
  .versus .col.a { border-radius: 16px 16px 0 0; border-right: 1px solid var(--hair); border-bottom: 0; }
  .versus .col.b { border-radius: 0 0 16px 16px; }
  .versus .mid { width: auto; height: 44px; }
  .foot, .rail, .progress, .notes { display: none; }
  table { font-size: 14px; }
  td { font-size: 14.5px; }

  /* Ausnahme: Das eingebettete Deck bleibt auch auf dem Handy ein Deck.
     Den Inhalt zum Lesen liefert der Artikel darunter — als gestapelte
     Folien stünde er zweimal auf derselben Seite. */
  .stage.eingebettet { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
  .stage.eingebettet .deck { position: relative; width: var(--W); height: var(--H); }
  .stage.eingebettet .slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    height: auto; min-height: 0;
    padding: 68px 88px 84px;
    border-bottom: 0;
  }
  .stage.eingebettet .slide.active { opacity: 1; visibility: visible; }
  .stage.eingebettet .rail { display: flex; }
  .stage.eingebettet .progress { display: block; }
}

/* ---------- Druck / PDF ---------- */

@media print {
  @page { size: 297mm 167mm; margin: 0; }
  html, body { background: #fff; height: auto; }
  .stage { position: static; display: block; }
  .deck { width: 100%; height: auto; transform: none !important; box-shadow: none; }
  .slide {
    position: static;
    opacity: 1 !important; visibility: visible !important;
    width: 297mm; height: 167mm;
    padding: 16mm 20mm;
    page-break-after: always;
    break-after: page;
  }
  .slide, .slide *, .slide .timeline::before { animation: none !important; }
  .rail, .progress, .notes, .overview { display: none !important; }
}
