/* ============================================================
   Hilfe / Bedienungsanleitung (hilfe.html)
   Docs-Layout: feste Kopfleiste mit Suche, Inhaltsverzeichnis links, Inhalt rechts.
   Farben, Schriften und Buttons kommen aus styles.css; bewusst ohne Hintergrundbild.
   ============================================================ */
:root {
  --docs-header-h: 68px;
  --docs-sidebar-w: 280px;
  /* Inhaltsbreite in "Schritt für Schritt": Kopfleiste, Kapitel und Folien fluchten an dieser Breite */
  --docs-player-w: 1200px;
  /* Bewegungskurve der Animationen, wie in der gelieferten Schritt-für-Schritt-Anleitung */
  --docs-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --docs-hit: #FDE68A;
  --docs-hit-current: #FBBF24;
  --docs-warn: #B45309;
  --docs-warn-bg: #FFFBEB;
  --docs-warn-border: #FDE68A;
}

/* Sprungziele landen unterhalb der festen Kopfleiste. Bewusst scroll-margin an den Zielen statt
   scroll-padding am Dokument: sonst hält Chrome das Suchfeld (und die Seitenleiste) in der festen
   Kopfleiste für verdeckt und scrollt bei jedem Tastendruck bzw. Scroll-Ereignis die Seite. */
.docs-content [id],
.docs-step { scroll-margin-top: calc(var(--docs-header-h) + 20px); }

.docs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Kopfleiste ---------- */
.docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--docs-header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.docs-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.docs-header .logo-img { height: 26px; }
.docs-header .logo-tag { font-size: 17px; }
.docs-badge {
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-700);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: 999px;
}
/* Blaue Buttons flach, ohne den blauen Schein aus styles.css (wie Kopfzeile, Preise und CTA auf der Startseite) */
.docs .btn-primary,
.docs .btn-primary:hover { box-shadow: none; }

/* Wechsel zwischen Anleitung und "Schritt für Schritt" */
.docs-mode-link { flex: none; }
.docs-mode-link svg { width: 17px; height: 17px; flex: none; }
/* beide Beschriftungen (mit Symbol) in derselben Zelle: die Breite richtet sich nach der längeren,
   die jeweils sichtbare steht als Gruppe mittig */
.docs-mode-label { display: grid; }
.docs-mode-label > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.docs-mode-text-player,
.docs-is-player .docs-mode-text-docs { visibility: hidden; }
.docs-is-player .docs-mode-text-player { visibility: visible; }

/* ---------- Suche ---------- */
.docs-search { position: relative; flex: 1; max-width: 480px; margin-left: auto; }
.docs-search input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 40px;
  font: inherit;
  font-size: 15px;
  color: var(--navy-900);
  background: var(--bg-page-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.docs-search input::placeholder { color: var(--slate-400); }
.docs-search input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-600) 15%, transparent);
}
/* eigenes Löschen-Kreuz der Browser ausblenden, Escape leert das Feld */
.docs-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.docs-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
}
.docs-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 7px;
  font: 600 12px/1.2 var(--font-body);
  color: var(--slate-400);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  pointer-events: none;
}
.docs-search input:focus ~ .docs-kbd,
.docs-search input:not(:placeholder-shown) ~ .docs-kbd { display: none; }
/* X rechts im Suchfeld: leert die Suche und entfernt die Markierungen im Text */
.docs-search-clear {
  position: absolute;
  right: 7px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--slate-400);
  background: transparent;
  border: 0;
  border-radius: 6px;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.docs-search-clear:hover { color: var(--navy-900); background: var(--accent-50); }
.docs-search-clear svg { width: 16px; height: 16px; }
.docs-search-clear[hidden] { display: none; }

.docs-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: min(70vh, 540px);
  overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.docs-result {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.docs-result:hover,
.docs-result.is-active { background: var(--accent-50); }
.docs-result-path { display: block; margin-bottom: 2px; font-size: 12px; color: var(--slate-400); }
.docs-result-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--navy-900); }
.docs-result-snippet { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--slate-600); }
.docs-results-empty { margin: 0; padding: 14px 12px; font-size: 14px; color: var(--slate-600); }
.docs-results-foot { margin: 4px 0 0; padding: 8px 12px 4px; font-size: 12px; color: var(--slate-400); border-top: 1px solid var(--border); }
.docs-result mark,
mark.docs-hit {
  color: inherit;
  background: var(--docs-hit);
  border-radius: 3px;
  padding: 0 1px;
}
mark.docs-hit.is-current { background: var(--docs-hit-current); }

/* ---------- Grundgerüst ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: var(--docs-sidebar-w) minmax(0, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- Inhaltsverzeichnis ---------- */
.docs-sidebar {
  position: sticky;
  top: var(--docs-header-h);
  height: calc(100vh - var(--docs-header-h));
  overflow-y: auto;
  padding: 32px 20px 48px 24px;
  border-right: 1px solid var(--border);
  /* ohne sichtbare Scrollleiste; Mausrad und Wischen scrollen weiter, der aktive Eintrag bleibt sichtbar.
     Am Ende des Menüs nicht an die Seite weitergeben, sonst springt das Menü zum aktiven Eintrag zurück. */
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.docs-sidebar::-webkit-scrollbar { display: none; }
.docs-toc,
.docs-toc ol { margin: 0; padding: 0; list-style: none; }
.toc-part { margin-bottom: 24px; }
.docs-toc .toc-part-label {
  display: block;
  margin: 0 0 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-400);
  background: none;
}
.docs-toc .toc-part-label:hover { color: var(--navy-900); background: none; }
.docs-toc a {
  display: block;
  padding: 6px 10px;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--slate-600);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.docs-toc a:hover { color: var(--navy-900); background: var(--bg-page-soft); }
/* Menüpunkte mit Symbol wie in der Plattform */
.docs-toc > li > ol > li > a { display: flex; align-items: center; gap: 10px; }
.toc-icon { width: 18px; height: 18px; flex: none; color: var(--slate-400); transition: color 0.15s ease; }
.docs-toc a:hover .toc-icon,
.docs-toc a.is-active .toc-icon { color: var(--accent-600); }
.docs-toc ol ol {
  /* Linie unter der Mitte des Symbols */
  margin: 2px 0 6px 19px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}
.docs-toc ol ol a { padding: 5px 10px; font-size: 13.5px; }
.docs-toc a.is-active { font-weight: 600; color: var(--accent-700); background: var(--accent-50); }
.docs-toc .toc-part-label.is-active { font-weight: 700; color: var(--accent-700); background: none; }

.docs-toc-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 40px;
  padding: 0 12px;
  font: 600 14px/1 var(--font-body);
  color: var(--navy-900);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.docs-toc-toggle svg { width: 18px; height: 18px; }

/* ---------- Inhalt ---------- */
.docs-content {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 72px) 120px;
  font-size: 16.5px;
  line-height: 1.7;
}
.docs-nowrap { white-space: nowrap; }
.docs-content strong,
.docs-slide-body strong { color: var(--navy-900); }
/* Links im Fließtext; :where hält die Spezifität niedrig, damit eigene Link-Stile (Verzeichnis, Buttons) gewinnen */
:where(.docs-content p, .docs-content li, .docs-content dd, .docs-slide-body p, .docs-slide-body li, .docs-slide-body dd) a {
  color: var(--accent-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
:where(.docs-content p, .docs-content li, .docs-content dd, .docs-slide-body p, .docs-slide-body li, .docs-slide-body dd) a:hover { color: var(--accent-700); }

.docs-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.docs-intro h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.docs-lead { max-width: 640px; font-size: 18px; color: var(--slate-600); }
.docs-edition { margin: 0; font-size: 13.5px; color: var(--slate-400); }
/* Bereichs-Beschriftung, z. B. auf den Kapitel-Karten in "Schritt für Schritt" */
.docs-overview-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-600); }

/* Teile und Abschnitte */
.docs-part { margin-top: 72px; }
.docs-part-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 32px;
  font-size: clamp(24px, 2.6vw, 30px);
  border-top: 1px solid var(--border);
}
.docs-part-title span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.docs-section { margin-top: 44px; }
.docs-section h3 { font-size: 23px; margin-bottom: 14px; }
.docs-sub { margin-top: 28px; }
.docs-sub h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy-900);
}
.docs-section > p,
.docs-sub > p,
.docs-step > p { max-width: 70ch; }
/* Ein Schritt = eine Folie in "Schritt für Schritt"; in der Anleitung läuft der Text einfach weiter */
/* hervorgehobener Satz ("Das, was Sie tun möchten, dorthin klicken Sie.") */
.docs-content .docs-pull,
.docs-slide .docs-pull {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.3;
  color: var(--accent-600);
}

/* Anker-Link neben der Überschrift (zum Teilen eines Abschnitts) */
.docs-anchor {
  margin-left: 10px;
  font-weight: 500;
  color: var(--slate-400);
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}
h3:hover > .docs-anchor,
h4:hover > .docs-anchor,
.docs-anchor:focus-visible { opacity: 1; }
.docs-anchor:hover { color: var(--accent-600); }

/* Kurz aufleuchtender Abschnitt nach einem Sprung: helle Fläche hinter dem Element, nur leicht abgerundet */
.docs-flash { position: relative; isolation: isolate; }
.docs-flash::before {
  content: "";
  position: absolute;
  inset: -4px -10px;
  z-index: -1;
  background: var(--accent-50);
  border-radius: 4px;
  pointer-events: none;
  animation: docs-flash 1.6s ease-out forwards;
}
/* Teil-Überschrift: erst unter der Trennlinie beginnen */
.docs-part-title.docs-flash::before { top: 26px; }
@keyframes docs-flash {
  0%, 30% { opacity: 1; }
  100% { opacity: 0; }
}

/* Aufzählungen im Text (nur direkt in Abschnitten, nicht im Stichwortverzeichnis) */
:where(.docs-section, .docs-sub, .docs-step, .docs-slide-body) > ul:not(.docs-metrics) { margin: 12px 0 16px; padding: 0; list-style: none; }
:where(.docs-section, .docs-sub, .docs-step, .docs-slide-body) > ul:not(.docs-metrics) > li { position: relative; margin: 6px 0; padding-left: 22px; }
:where(.docs-section, .docs-sub, .docs-step, .docs-slide-body) > ul:not(.docs-metrics) > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-600);
}
/* Kennzahlen des Dashboards als kleine Kacheln */
.docs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 20px;
  padding: 0;
  list-style: none;
}
.docs-metrics li {
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--bg-page-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Felder im Reiter Standards */
.docs-fields { margin: 18px 0 8px; border-top: 1px solid var(--border); }
.docs-fields > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.docs-fields dt { font-weight: 600; color: var(--navy-900); }
.docs-fields dd { margin: 0; }

code {
  padding: 1px 6px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  color: var(--navy-900);
  background: var(--bg-page-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  white-space: nowrap;
}
.docs-example {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 16px 0 18px;
  padding: 16px 20px;
  background: var(--bg-page-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.docs-example > div { display: flex; flex-direction: column; gap: 4px; }
.docs-example span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400); }
.docs-example code { font-size: 15px; background: var(--surface); }
.docs-example svg { width: 22px; height: 22px; color: var(--accent-600); }

/* Hinweis-Boxen */
.docs-callout {
  display: flex;
  gap: 14px;
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--bg-page-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-600);
  border-radius: var(--radius-md);
}
.docs-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--accent-600);
  background: var(--accent-50);
  border-radius: 50%;
}
.docs-callout-icon svg { width: 18px; height: 18px; }
.docs-callout p { margin: 0 0 8px; }
.docs-callout p:last-child { margin-bottom: 0; }
.docs-callout-title { font-weight: 700; color: var(--navy-900); }
.docs-callout-important {
  background: var(--docs-warn-bg);
  border-color: var(--docs-warn-border);
  border-left-color: var(--docs-warn);
}
.docs-callout-important .docs-callout-icon { color: var(--docs-warn); background: #FEF3C7; }

/* Schrittfolge (Grundregel) */
.docs-steps { counter-reset: docs-step; margin: 6px 0 12px; padding: 0; list-style: none; }
.docs-steps li { counter-increment: docs-step; position: relative; margin: 8px 0; padding-left: 36px; }
.docs-steps li::before {
  content: counter(docs-step);
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-600);
  border-radius: 50%;
}

/* Screenshots: anklicken öffnet die Großansicht */
.docs-figure { margin: 22px 0 26px; }
.docs-zoom {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-page-soft);
  border: 1px solid var(--border);
  /* nur leicht abgerundet: stärker gerundet wirken die Screenshots wie Karten */
  border-radius: 6px;
  transition: border-color 0.15s ease;
}
.docs-zoom:hover { border-color: var(--border-strong); }
.docs-zoom img { width: 100%; height: auto; }
.docs-figure-small .docs-zoom { width: auto; max-width: 260px; }
/* Film (z. B. XML-Import): gerahmt wie die Screenshots, Steuerung über die Bedienelemente des Browsers */
.docs-video video,
.docs-slide-shot video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-page-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.docs-slide-shot video { box-shadow: var(--shadow-md); }
.docs-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--slate-400); }
.docs-figure figcaption b { font-weight: 600; color: var(--slate-600); }

/* ---------- Stichwortverzeichnis ---------- */
.docs-index-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; }
.docs-index-letters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-700);
  background: var(--accent-50);
  border-radius: 8px;
}
.docs-index-letters a:hover { background: var(--accent-100); }
.docs-index { columns: 2 260px; column-gap: 40px; margin-top: 12px; }
.docs-index-group { break-inside: avoid; padding-top: 14px; }
.docs-index-group h4 {
  margin: 0 0 6px;
  padding-bottom: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent-600);
  border-bottom: 1px solid var(--border);
}
.docs-index-group ul { margin: 0; padding: 0; list-style: none; }
.docs-index-group li { margin: 0; padding: 5px 0; font-size: 15px; line-height: 1.45; }
.docs-index-term { font-weight: 600; color: var(--navy-900); }
.docs-index-where { display: block; font-size: 13.5px; }

/* ---------- Weitere Fragen ---------- */
.docs-help {
  padding: 24px 26px;
  background: var(--bg-page-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.docs-help p { margin: 0 0 16px; }
.docs-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.docs-help-mail { font-weight: 600; color: var(--accent-600); }
.docs-help-mail:hover { color: var(--accent-700); }

/* ---------- Trefferleiste, Nach-oben, Hinweis ---------- */
.docs-hitbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 16px;
  font-size: 14px;
  color: #fff;
  background: var(--navy-900);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
}
.docs-hitbar[hidden] { display: none; }
.docs-hitbar-text { margin-right: 6px; white-space: nowrap; }
.docs-hitbar button,
.docs-totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.docs-hitbar button:hover { background: rgba(255, 255, 255, 0.14); }
.docs-hitbar svg,
.docs-totop svg { width: 18px; height: 18px; }

.docs-totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  color: var(--navy-900);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.docs-totop[hidden] { display: none; }
.docs-totop:hover { color: var(--accent-600); border-color: var(--accent-600); }

.docs-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--docs-header-h) + 16px);
  z-index: 80;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--navy-900);
  border-radius: 999px;
  transform: translateX(-50%);
}
.docs-toast[hidden] { display: none; }

/* ---------- Großansicht ---------- */
.docs-lightbox {
  width: min(1200px, 94vw);
  max-height: 92vh;
  padding: 20px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.docs-lightbox::backdrop { background: rgba(11, 27, 63, 0.6); }
.docs-lightbox[open],
.docs-lightbox[open]::backdrop { animation: docs-fade-in 200ms ease; }
.docs-lightbox[open] img { animation: docs-pop-in 240ms var(--docs-ease); }
.docs-lightbox img { width: 100%; height: auto; max-height: calc(92vh - 110px); object-fit: contain; border-radius: 4px; }
.docs-lightbox-caption { margin: 12px 0 0; font-size: 14px; color: var(--slate-600); }
.docs-lightbox-close {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--navy-900);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
}
.docs-lightbox-close svg { width: 18px; height: 18px; }

/* ---------- Schritt für Schritt ---------- */
/* Anleitung und Player schließen sich aus; display der Klassen würde [hidden] sonst überstimmen */
.docs-layout[hidden],
.docs-player[hidden],
.docs-player-home[hidden],
.docs-player-run[hidden],
.docs-player-resume[hidden] { display: none; }
.docs-is-player .docs-search,
.docs-is-player .docs-toc-toggle { display: none; }
.docs-is-player .docs-mode-link { margin-left: auto; }
/* Kopfleiste so breit wie der Inhalt darunter und ohne eigene Linie; die Linie sitzt unter dem Fortschritt */
.docs-is-player .docs-header { border-bottom-color: transparent; }
.docs-is-player .docs-header-inner { max-width: calc(var(--docs-player-w) + 48px); }
/* während der Folien scrollt nur die Bühne, nicht die Seite */
.docs-is-running { overflow: hidden; }
/* In den Folien keine Kopfleiste: zurück geht es über "Kapitel" (dort steht "Zur Anleitung") */
.docs-is-running .docs-header { display: none; }
.docs-is-running .docs-player-run { top: 0; }
.docs-is-running .docs-player-top { padding-top: 16px; }

.docs-player { font-size: 16.5px; line-height: 1.7; }

/* Startseite: Einleitung als Einstieg, Kapitel als Karten */
.docs-player-home {
  max-width: calc(var(--docs-player-w) + 48px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 24px 96px;
}
.docs-player-home h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.docs-player-home .docs-lead { margin-bottom: 10px; }
.docs-player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
/* etwas kleiner als der Standard-Button (wie in der gelieferten Anleitung, ca. 44px hoch) */
.docs-player-start { padding: 10px 20px; }
.docs-player-start svg { width: 17px; height: 17px; }
.docs-player-start svg,
.docs-player-next svg { transition: transform 200ms var(--docs-ease); }
.docs-player-start:hover svg,
.docs-player-next:hover:not(:disabled) svg { transform: translateX(3px); }
.docs-player-resume { font-weight: 600; color: var(--accent-600); }
.docs-player-resume:hover { color: var(--accent-700); }
.docs-player-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}
/* 8 Kapitel wie in der gelieferten Anleitung: zwei, ab 1100px vier Spalten (4 × 2) */
@media (min-width: 560px) { .docs-player-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .docs-player-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.docs-player-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, transform 200ms var(--docs-ease), box-shadow 200ms var(--docs-ease);
  animation: docs-rise-up 520ms var(--docs-ease) backwards;
  animation-delay: calc(var(--i, 0) * 60ms + 80ms);
}
/* klickbare Karte: leicht anheben, nur heller Schatten */
.docs-player-card:hover { border-color: var(--accent-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.docs-player-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-page-soft);
  border-bottom: 1px solid var(--border);
}
.docs-player-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 320ms var(--docs-ease); }
.docs-player-card:hover .docs-player-thumb img { transform: scale(1.03); }
.docs-player-card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 14px 16px 16px; }
.docs-player-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--navy-900); }
.docs-player-card-count { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--slate-400); }

/* Folien: Kopf mit Fortschritt, Bühne, Fuß mit Zurück/Weiter */
.docs-player-run {
  position: fixed;
  top: var(--docs-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.docs-player-top,
.docs-player-bottom { flex: none; padding-left: max(24px, calc((100% - var(--docs-player-w)) / 2)); padding-right: max(24px, calc((100% - var(--docs-player-w)) / 2)); }
.docs-player-top { padding-top: 10px; border-bottom: 1px solid var(--border); }
.docs-player-top-row { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.docs-player-to-home { flex: none; gap: 8px; }
.docs-player-to-home svg { width: 15px; height: 15px; }
.docs-player-heading {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.docs-player-chapter-label { margin-right: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-600); }
.docs-player-chapter-title { font-weight: 600; color: var(--navy-900); }
.docs-player-counter { margin: 0; font-size: 14px; color: var(--slate-400); font-variant-numeric: tabular-nums; white-space: nowrap; }
.docs-player-progress { display: flex; gap: 4px; padding: 6px 0 4px; }
.docs-player-seg { flex: 1; min-width: 0; padding: 6px 0; background: none; border: 0; cursor: pointer; }
.docs-player-seg span { display: block; height: 4px; overflow: hidden; background: var(--border); border-radius: 2px; transition: background 0.15s ease; }
.docs-player-seg span::after { content: ""; display: block; width: 0; height: 100%; background: var(--accent-600); transition: width 0.3s ease; }
.docs-player-seg.is-done span::after,
.docs-player-seg.is-current span::after { width: 100%; }
.docs-player-seg:hover span { background: var(--border-strong); }

.docs-player-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 48px) 24px;
  outline: none;
}
.docs-player-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--border);
}
.docs-player-bottom .btn svg { width: 17px; height: 17px; flex: none; }
.docs-player-bottom .btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.docs-player-next { min-width: 0; }
.docs-player-next-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.docs-slide {
  --maxh: 58vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "eyebrow" "head" "shot" "body";
  align-items: start;
  width: 100%;
  max-width: var(--docs-player-w);
  margin: auto;
}
.docs-slide-eyebrow {
  grid-area: eyebrow;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.docs-slide h2 { grid-area: head; margin: 0 0 18px; font-size: clamp(24px, 1.2rem + 1.3vw, 34px); line-height: 1.2; }
.docs-slide-body { grid-area: body; max-width: 60ch; }
.docs-slide-body > :last-child { margin-bottom: 0; }
.docs-slide-shot {
  grid-area: shot;
  /* nie größer als das Original, und so hoch, dass Text und Bild auf den Schirm passen */
  width: min(100%, calc(var(--nw, 9999px) + 2px), calc(var(--maxh) * var(--r, 1.6) + 2px));
  margin: 0 auto 24px;
}
.docs-slide-shot .docs-zoom { box-shadow: var(--shadow-md); }
.docs-slide-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--slate-400); }
.docs-slide-shot figcaption b { font-weight: 600; color: var(--slate-600); }
.docs-slide .docs-fields > div { grid-template-columns: 1fr; gap: 2px; }
.docs-slide .docs-callout { margin: 18px 0 0; }

@media (min-width: 900px) {
  .docs-slide {
    --maxh: 64vh;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: ". shot" "eyebrow shot" "head shot" "body shot" ". shot";
    column-gap: clamp(40px, 5vw, 72px);
  }
  .docs-slide .docs-slide-shot { grid-row: 1 / -1; align-self: center; margin-bottom: 0; }
  .docs-slide.is-wide,
  .docs-slide.is-text,
  .docs-slide.is-note {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "eyebrow" "head" "body" "shot";
  }
  .docs-slide.is-wide { --maxh: 42vh; }
  .docs-slide.is-wide .docs-slide-shot { grid-row: auto; margin-top: 32px; }
  .docs-slide.is-wide .docs-slide-body { max-width: 75ch; }
}
.docs-slide.is-text { max-width: calc(64ch + 2px); }
.docs-slide.is-text .docs-slide-body { max-width: 64ch; }
/* Hinweis-Folie im Stil der Hinweis-Boxen */
.docs-slide.is-note {
  max-width: calc(62ch + 96px);
  padding: clamp(24px, 5vw, 44px);
  background: var(--bg-page-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-600);
  border-radius: var(--radius-md);
}
.docs-slide.is-note.is-important {
  background: var(--docs-warn-bg);
  border-color: var(--docs-warn-border);
  border-left-color: var(--docs-warn);
}
.docs-slide.is-note.is-important .docs-slide-eyebrow { color: var(--docs-warn); }
.docs-slide.is-note .docs-slide-body { font-size: 17px; }

/* Einlaufen einer Folie (Zeiten wie in der gelieferten Anleitung): Augenbraue, Überschrift und Absätze
   nacheinander aus der Blätterrichtung (--dx/--dy, --i aus hilfe.js), der Screenshot zoomt leicht auf,
   die Punkte der Grundregel leuchten nacheinander auf (--c), beim Rechnungsnummer-Beispiel folgt das Ergebnis */
.docs-slide.is-entering .docs-anim { animation: docs-slide-in 380ms var(--docs-ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.docs-slide.is-entering .docs-slide-shot { animation: docs-pop-in 380ms var(--docs-ease) 90ms backwards; }
.docs-slide.is-entering .docs-steps li { animation: docs-step-text 320ms var(--docs-ease) both; animation-delay: calc(450ms + var(--c, 0) * 350ms); }
.docs-slide.is-entering .docs-steps li::before { animation: docs-step-dot 320ms var(--docs-ease) both; animation-delay: calc(450ms + var(--c, 0) * 350ms); }
.docs-slide.is-entering .docs-example > div:last-child { animation: docs-fade-in 360ms var(--docs-ease) 700ms backwards; }
@keyframes docs-slide-in { from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)); } }
@keyframes docs-pop-in { from { opacity: 0; transform: scale(0.97); } }
@keyframes docs-fade-in { from { opacity: 0; } }
@keyframes docs-rise-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes docs-step-text { from { color: var(--slate-400); } }
@keyframes docs-step-dot { from { background: var(--border-strong); } }

/* Wechsel zwischen Anleitung, Kapitelübersicht und Folien: die neue Ansicht blendet kurz ein. Bewusst
   keine View Transitions wie in der gelieferten Datei: die verschlucken während der Überblendung Klicks. */
.docs-layout,
.docs-player-home,
.docs-player-run { animation: docs-fade-in 220ms ease; }

/* Bewegung reduzieren: keine Animationen (styles.css verkürzt nur die Dauer, Verzögerungen blieben sonst stehen) */
@media (prefers-reduced-motion: reduce) {
  .docs-layout,
  .docs-player-home,
  .docs-player-run,
  .docs-player *,
  .docs-player *::before,
  .docs-lightbox,
  .docs-lightbox * { animation: none !important; }
  .docs-player-card:hover,
  .docs-player-card:hover .docs-player-thumb img { transform: none; }
}


/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1024px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-toc-toggle { display: inline-flex; }
  /* Inhaltsverzeichnis als ausklappbares Panel unter der Kopfleiste */
  .docs-sidebar {
    position: fixed;
    top: var(--docs-header-h);
    left: 0;
    z-index: 45;
    width: min(340px, 88vw);
    height: calc(100vh - var(--docs-header-h));
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }
  .docs-sidebar.is-open { transform: none; visibility: visible; }
  .docs-content { margin: 0 auto; }
}

@media (max-width: 720px) {
  /* zwei Zeilen: Logo, Inhalt, Schritt für Schritt / darunter die Suche */
  :root { --docs-header-h: 120px; }
  /* im Player ohne Suche: eine Zeile */
  .docs-is-player { --docs-header-h: 64px; }
  .docs-player-home { padding: 32px 16px 72px; }
  .docs-player-top,
  .docs-player-bottom { padding-left: 16px; padding-right: 16px; }
  .docs-player-stage { padding: 20px 16px; }
  .docs-player-chapter-label,
  .docs-player-to-home span { display: none; }
  .docs-player-bottom .btn { padding-left: 16px; padding-right: 16px; }
  .docs-header { height: var(--docs-header-h); }
  .docs-header-inner { flex-wrap: wrap; gap: 10px; height: auto; padding: 12px 16px; }
  .docs-header .logo-tag { display: none; }
  .docs-search { order: 10; flex-basis: 100%; max-width: none; margin-left: 0; }
  /* nur das Symbol, damit "Schritt für Schritt" in dieselbe Zeile passt; der Text bleibt für Screenreader */
  .docs-toc-toggle { margin-left: auto; width: 40px; padding: 0; justify-content: center; }
  .docs-toc-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .docs-kbd { display: none; }
  .docs-content { padding: 32px 16px 96px; font-size: 16px; }
  .docs-metrics { grid-template-columns: repeat(2, 1fr); }
  .docs-fields > div { grid-template-columns: 1fr; gap: 4px; }
  .docs-anchor { display: none; }
  .docs-hitbar { bottom: 16px; }
  .docs-totop { right: 16px; bottom: 76px; }
}

@media (max-width: 420px) {
  .docs-badge { display: none; }
}

/* ---------- Drucken: nur der Inhalt ---------- */
@media print {
  .docs-header,
  .docs-player,
  .docs-sidebar,
  .docs-hitbar,
  .docs-totop,
  .docs-toast,
  .docs-anchor,
  #nachschlagen { display: none !important; }
  .docs-layout { display: block; }
  .docs-content { max-width: none; padding: 0; }
  .docs-figure,
  .docs-callout { break-inside: avoid; }
  .docs-zoom { border-color: #ccc; }
  mark.docs-hit { background: none; }
}
