/* =========================================================================
   Kundenhandbuch OnDevice OCR Business
   Lädt nach styles.css und nutzt deren Farben und Schrift. Alles hängt an
   body.handbuch, damit Regeln der Startseite nicht durchschlagen und
   umgekehrt. Nur heller Modus. Vorlage: tools/handbuch/vorlage/handbuch.css
   (die Datei an der Wurzel wird beim Bauen überschrieben).
   Raster wie die Pro-Anleitung (guides/hotfolder-setup): viel Weißraum,
   keine Rahmen, Karten oder farbigen Kästen; Bild neben 1–3 Schritten.
   ========================================================================= */

body.handbuch {
  --hb-max: 1320px;
  --hb-leiste: 280px;
  --hb-kopf: 56px;
  --hb-artikel: 980px;
  --hb-text: 64ch;
  /* Gemeinsame Breite für Filterfeld, Meldungsliste und Tabellen (wie Entwurf) */
  --hb-liste: 820px;
  --hb-marke: 26px;
  --hb-schwarz: #000;
  --hb-grau-text: #44474E;
  --hb-grau: #8A8D94;
  --hb-platz: #F2F4F7;
  --hb-gruen: #1E7F4F;
  --hb-orange: #A85A00;
  background: var(--bg);
}
.handbuch [hidden] { display: none !important; }

/* ---- Sprunglink ------------------------------------------------------- */
.handbuch .hb-sprung {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  padding: 8px 14px; border-radius: 8px; background: var(--accent-ink); color: #fff;
}
.handbuch .hb-sprung:focus { top: 10px; }

/* ---- Kopfleiste -------------------------------------------------------- */
.handbuch .hb-kopf {
  position: sticky; top: 0; z-index: 30;
  height: var(--hb-kopf);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.handbuch .hb-kopf-innen {
  max-width: var(--hb-max); height: 100%; margin-inline: auto;
  padding-inline: 24px;
  display: flex; align-items: center; gap: 14px;
}
.handbuch .hb-marke { display: flex; align-items: center; gap: 10px; color: inherit; }
.handbuch .hb-marke:hover { text-decoration: none; }
.handbuch .hb-marke img { width: 30px; height: 30px; border-radius: 7px; }
.handbuch .hb-marke .hero-wordmark { font-size: 1.02rem; white-space: nowrap; }
.handbuch .hb-name {
  padding-left: 14px; border-left: 1px solid var(--hairline);
  font-size: 1.02rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
}
.handbuch .hb-name:hover { color: var(--ink); text-decoration: none; }

.handbuch .hb-suche-knopf {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  width: min(300px, 32vw); height: 36px; padding: 0 10px 0 12px;
  font: inherit; font-size: .92rem; color: var(--ink-faint);
  background: var(--bg-soft); border: 1px solid var(--hairline); border-radius: 9px;
  cursor: pointer; text-align: left;
}
.handbuch .hb-lupe { width: 15px; height: 15px; flex: none; }
.handbuch .hb-suche-text { flex: 1; }
.handbuch .hb-suche-knopf kbd {
  font: inherit; font-size: .78rem; padding: 1px 6px;
  border: 1px solid var(--hairline); border-radius: 5px; background: #fff;
}
.handbuch .hb-suche-knopf:hover { border-color: #CFD4DB; }
.handbuch .hb-suche-knopf:focus-visible,
.handbuch .hb-menue-knopf:focus-visible,
.handbuch .hb-leiste-suche:focus-visible,
.handbuch .bild-rahmen:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Sprachumschalter in der Kopfleiste: gleiche Form wie in der Fußzeile,
   Menü klappt nach unten auf. */
.handbuch .hb-sprache { position: relative; font-size: .92rem; color: var(--ink-soft); }
.handbuch .hb-sprache summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; white-space: nowrap; }
.handbuch .hb-sprache summary::-webkit-details-marker { display: none; }
.handbuch .hb-sprache summary::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1px solid var(--ink-faint); border-bottom: 1px solid var(--ink-faint);
  transform: rotate(45deg) translateY(-2px);
}
.handbuch .hb-sprache[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.handbuch .hb-sprache .language-menu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 40;
  display: grid; gap: 10px; min-width: 150px; padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: 8px; background: var(--bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}
.handbuch .language-menu a[aria-current="true"] { color: var(--ink-faint); pointer-events: none; }

.handbuch .hb-menue-knopf { display: none; }

/* ---- Raster: Seitenleiste + Inhalt ------------------------------------ */
.handbuch .hb-raster {
  max-width: var(--hb-max); margin-inline: auto;
  display: grid; grid-template-columns: var(--hb-leiste) minmax(0, 1fr);
  align-items: start;
}

/* Seitenleiste: schlicht, ohne Linie, ohne Kästen */
.handbuch .hb-leiste {
  position: sticky; top: var(--hb-kopf);
  max-height: calc(100vh - var(--hb-kopf));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 36px 20px 40px 28px;
}
.handbuch .hb-leiste-suche {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin: 0 0 28px; padding: 8px 0;
  font: inherit; font-size: 15px; color: var(--ink-faint); text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--hairline); cursor: pointer;
}
.handbuch .hb-leiste-suche:hover { color: var(--ink); }
.handbuch .hb-leiste .kapitel { margin-bottom: 6px; }
.handbuch .hb-leiste .kapitel-name {
  display: block; padding: 6px 0;
  font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--ink);
}
.handbuch .hb-leiste ul { list-style: none; margin: 4px 0 14px; padding: 0; }
.handbuch .hb-leiste li a,
.handbuch .hb-leiste li .nicht-fertig {
  display: block; padding: 5px 0 5px 14px;
  font-size: 15px; line-height: 1.4; color: var(--ink-faint);
}
.handbuch .hb-leiste a:hover { color: var(--ink); text-decoration: none; }
.handbuch .hb-leiste a[aria-current="page"] {
  color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--ink);
}
.handbuch .nicht-fertig { color: #B4B7BD !important; cursor: default; }

/* ---- Artikel ---------------------------------------------------------- */
.handbuch .hb-inhalt {
  padding: 40px clamp(20px, 4vw, 56px) 96px;
  min-width: 0;
}
.handbuch .hb-artikel { max-width: var(--hb-artikel); color: var(--hb-schwarz); }
.handbuch .hb-artikel h1 {
  font-size: clamp(2.05rem, 4.4vw, 3rem); font-weight: 600; line-height: 1.06;
  letter-spacing: -0.022em; margin: 0 0 16px;
}
.handbuch .hb-artikel .vorspann {
  font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 500; line-height: 1.4;
  max-width: 34ch; margin: 0 0 clamp(40px, 6vw, 64px); color: var(--ink);
}
/* Folgt auf den Vorspann gleich Fließtext, gehört er dazu: kleiner Abstand statt Abschnittslücke */
.handbuch .hb-artikel .vorspann:has(+ p:not([class])) { margin-bottom: 20px; }
.handbuch .hb-artikel h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.55rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.012em;
  margin: clamp(64px, 8vw, 96px) 0 18px; scroll-margin-top: calc(var(--hb-kopf) + 16px);
}
.handbuch .hb-artikel h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; margin: 32px 0 6px; }
/* Freie Zwischenüberschrift im Text (z. B. „Fertig“ nach den Schritten): deutlich größer */
.handbuch .hb-artikel > h3:not([class]) { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.25; margin: 48px 0 10px; }
.handbuch .hb-anker {
  margin-left: 10px; font-weight: 400; color: var(--hb-grau); opacity: 0;
  transition: opacity .15s ease;
}
.handbuch h2:hover .hb-anker, .handbuch .hb-anker:focus-visible { opacity: 1; text-decoration: none; }
.handbuch .hb-artikel p {
  font-size: 1.12rem; line-height: 1.72; max-width: var(--hb-text); margin: 0 0 1em;
}
.handbuch .hb-artikel strong { font-weight: 600; }
/* Links wie im Entwurf: nur Farbe, Unterstreichung erst bei Maus darüber */
.handbuch .hb-artikel a { text-decoration: none; text-underline-offset: 3px; }
.handbuch .hb-artikel a:hover { text-decoration: underline; }

/* Graue Notiz (notiz: …, alte Zitat-Hinweise): nur graue Schrift */
.handbuch .hb-artikel p.grau,
.handbuch .hb-artikel blockquote.notiz { color: var(--hb-grau-text); }
.handbuch blockquote.notiz { margin: 0 0 1em; padding: 0; }
.handbuch blockquote.notiz p:last-child { margin-bottom: 0; }
/* Alte Schreibweise „> Bild folgt: …“ */
.handbuch blockquote.bild-folgt p { font-size: .95rem; font-style: italic; color: var(--hb-grau); }

/* Listen außerhalb der Bildblöcke */
.handbuch .hb-artikel ul,
.handbuch .hb-artikel ol { margin: 0 0 1.1em; padding-left: 1.5em; max-width: var(--hb-text); }
.handbuch .hb-artikel li { font-size: 1.12rem; line-height: 1.65; margin-bottom: .5em; padding-left: .2em; }
.handbuch .hb-artikel ul li::marker { color: var(--hb-grau); }
.handbuch .hb-artikel ol li::marker { color: var(--accent-deep); font-weight: 700; }

/* ---- Bildblöcke: Text neben Bild, Seiten wechseln ab ------------------ */
.handbuch .walk { display: grid; gap: clamp(48px, 7vw, 84px); margin: 0 0 clamp(48px, 7vw, 84px); }
/* Abstand zwischen Abschnittsüberschrift und dem ersten Bildblock */
.handbuch .hb-artikel h2 + .walk { margin-top: clamp(32px, 4.5vw, 52px); }
/* Block nur aus Bild und Hinweis: Bild links, Hinweis direkt darunter */
.handbuch .walk-step.nur-hinweis { grid-template-columns: minmax(0, 460px); gap: 16px; }
.handbuch .walk-step.nur-hinweis .walk-media { order: -1; position: static; }
.handbuch .walk-step.nur-hinweis .walk-media .bild-rahmen { margin-inline: 0; }
.handbuch .walk-step {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.handbuch .walk-step:nth-child(even) .walk-media { order: -1; }
/* Reiner Fließtext neben hohem Bild: oben anfangen, nicht mittig schweben */
.handbuch .walk-step:has(> .walk-text > .walk-body) { align-items: start; }
/* Mit Zusatzbild ist die Bildspalte deutlich höher: Text oben ansetzen statt mittig */
.handbuch .walk-step:has(.walk-zusatz) { align-items: start; }
.handbuch .walk-step:has(.walk-zusatz) > .walk-text { padding-top: 24px; align-self: stretch; display: flex; flex-direction: column; }
/* Hinweis des Blocks auf Höhe der Bildunterkante – gehört zum ganzen Block, nicht zum letzten Schritt */
.handbuch .hb-artikel .walk-step:has(.walk-zusatz) > .walk-text > p.walk-note.walk-note { margin-top: auto; }
/* Schritte neben Bild: mittig zum Bild (Christian 25.10.); ist der Text höher
   als das Bild, läuft das Bild beim Scrollen mit */
.handbuch .walk-step:has(> .walk-text > ol) > .walk-media { position: sticky; top: calc(var(--hb-kopf) + 24px); }
.handbuch .walk-text ol { margin: 0; padding-left: 1.5em; }
.handbuch .walk-text li { font-size: 1.15rem; line-height: 1.6; margin-bottom: .7em; }
.handbuch .walk-text li:last-child { margin-bottom: 0; }
.handbuch .hb-artikel .walk-body { font-size: 1.15rem; line-height: 1.6; margin: 0; }
.handbuch .hb-artikel .walk-body + .walk-body { margin-top: 1em; }
.handbuch .hb-artikel .walk-body strong { font-weight: 500; }
.handbuch .hb-artikel .walk-note { margin: 1.6em 0 0; font-size: 1rem; line-height: 1.6; color: var(--hb-grau-text); }
.handbuch .walk-media { margin: 0; }
.handbuch .hb-artikel .walk-text li > p { margin: 0; }
/* Hinweis unter einem Schritt - und ein Bildblock, der nur aus einem Hinweis
   besteht: grauer Kasten mit i-Symbol */
.handbuch .hb-artikel .walk-text li > p.walk-note,
.handbuch .hb-artikel .walk-text > p.walk-note:only-child,
.handbuch .hb-artikel .walk-step:has(.walk-zusatz) > .walk-text > p.walk-note {
  position: relative; margin: .6em 0 0; padding: .65em .9em .65em 2.5em;
  background: #F4F5F7; border-radius: 10px;
}
.handbuch .hb-artikel .walk-text li > p.walk-note + p.walk-note { margin-top: .4em; }
.handbuch .hb-artikel .walk-text > p.walk-note:only-child { margin: 0; }
.handbuch .hb-artikel .walk-text li > p.walk-note::before,
.handbuch .hb-artikel .walk-text > p.walk-note:only-child::before,
.handbuch .hb-artikel .walk-step:has(.walk-zusatz) > .walk-text > p.walk-note::before {
  content: ""; position: absolute; left: .85em; top: .85em; width: 1.1em; height: 1.1em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='8.2' fill='none' stroke='%237A7F88' stroke-width='1.5'/><circle cx='10' cy='6.3' r='1.1' fill='%237A7F88'/><path d='M10 9v5.2' stroke='%237A7F88' stroke-width='1.7' stroke-linecap='round'/></svg>") no-repeat center / contain;
}
/* Zusatzbild (zusatzbild:) direkt unter dem Hauptbild */
.handbuch .walk-media .walk-zusatz { margin: 1.4em 0 0; }
/* Hinweis direkt unter dem Bild (bildnotiz:) - derselbe graue Kasten */
.handbuch .hb-artikel .walk-media .bild-notiz {
  position: relative; max-width: 460px; margin: 1.4em auto 0; padding: .65em .9em .65em 2.5em;
  background: #F4F5F7; border-radius: 10px; font-size: 1rem; line-height: 1.6; color: var(--hb-grau-text);
}
.handbuch .hb-artikel .walk-media .bild-notiz::before {
  content: ""; position: absolute; left: .85em; top: .85em; width: 1.1em; height: 1.1em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='8.2' fill='none' stroke='%237A7F88' stroke-width='1.5'/><circle cx='10' cy='6.3' r='1.1' fill='%237A7F88'/><path d='M10 9v5.2' stroke='%237A7F88' stroke-width='1.7' stroke-linecap='round'/></svg>") no-repeat center / contain;
}
.handbuch .walk-text ul { margin: 1.2em 0 0; padding-left: 1.1em; }
.handbuch .walk-media .bild-rahmen {
  max-width: 460px; margin-inline: auto; border: 0; border-radius: 12px; background: none;
  box-shadow: none; filter: drop-shadow(0 18px 40px rgba(16, 24, 40, .16));
}
.handbuch .walk-media .platz {
  max-width: 460px; margin-inline: auto; aspect-ratio: 4 / 3;
  display: grid; place-items: center; padding: 20px; border-radius: 14px;
  background: var(--hb-platz); color: var(--ink-faint); font-size: 14px; line-height: 1.5; text-align: center;
}

/* ---- Einzelbilder mit Marken ------------------------------------------ */
.handbuch figure.bild { margin: 8px 0 36px; max-width: min(100%, var(--breite, 760px)); }
.handbuch .bild-rahmen {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--hairline); border-radius: 12px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px rgba(16, 24, 40, .08);
  cursor: zoom-in; font: inherit;
}
.handbuch .bild-rahmen img { display: block; width: 100%; height: auto; border-radius: 11px; }
.handbuch .hb-zoom-hinweis {
  /* Auf der Ecke unten rechts, halb außerhalb: So verdeckt sie keine Knöpfe
     im Bild (etwa „Sichern“ unten rechts im Fenster). */
  position: absolute; right: -14px; bottom: -14px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .18), 0 4px 12px rgba(16, 24, 40, .12);
  transition: transform .15s ease;
}
.handbuch .hb-zoom-hinweis svg { width: 18px; height: 18px; }
.handbuch .bild-rahmen:hover .hb-zoom-hinweis { transform: scale(1.08); }
.handbuch .hb-zoom-bild .hb-zoom-hinweis { display: none; }
.handbuch .marke {
  position: absolute;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--hb-marke); height: var(--hb-marke); border-radius: 50%;
  background: var(--accent-ink); color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(16, 24, 40, .28);
  pointer-events: none;
}
.handbuch .marke[data-seite="links"] { transform: translate(calc(-100% - 8px), -50%); }
.handbuch .marke[data-seite="rechts"] { transform: translate(8px, -50%); }
.handbuch figure.bild figcaption { margin-top: 26px; font-size: .9rem; line-height: 1.5; color: var(--ink-faint); }
.handbuch .platzhalter { display: block; margin-top: 4px; font-size: .82rem; color: var(--hb-grau-text); }

/* ---- Tabellen: ruhig, nur feine Linien -------------------------------- */
.handbuch .tabelle { max-width: min(100%, var(--hb-liste)); overflow-x: auto; margin: 6px 0 1.4em; }
.handbuch .tabelle table { width: 100%; border-collapse: collapse; font-size: 1.05rem; line-height: 1.5; }
.handbuch .tabelle th {
  text-align: left; vertical-align: bottom; padding: 0 16px 10px 0;
  font-size: .9rem; font-weight: 600; color: var(--ink-faint);
}
.handbuch .tabelle td { padding: 12px 16px 12px 0; border-top: 1px solid var(--hairline); vertical-align: top; }
.handbuch .tabelle td:first-child { font-weight: 600; }
.handbuch .tabelle td:not(:first-child) { color: var(--hb-grau-text); }
/* Zweispaltige Tabellen: feste erste Spalte, damit die Wert-Spalte auf der
   ganzen Seite an derselben Stelle beginnt. Breitere Tabellen und die
   Startseiten-Tabelle bleiben automatisch. */
.handbuch .tabelle table:not(.wege):not(:has(th:nth-child(3), td:nth-child(3))) { table-layout: fixed; }
.handbuch .tabelle table:not(.wege):not(:has(th:nth-child(3), td:nth-child(3))) :is(th, td):first-child { width: 36%; }
.handbuch .tabelle td { overflow-wrap: break-word; }

/* ---- Häufige Fragen ---------------------------------------------------- */
.handbuch .hb-artikel h3.frage { margin: 0 0 6px; max-width: var(--hb-text); }
.handbuch .hb-artikel p.antwort { font-size: 1.08rem; line-height: 1.65; color: var(--hb-grau-text); margin-bottom: 26px; }

/* ---- Filterfeld (Meldungen, Nachschlagen) und Suchfeld der Startseite -- */
.handbuch .hb-filter {
  max-width: var(--hb-liste);
  position: sticky; top: var(--hb-kopf); z-index: 5;
  background: var(--bg); padding: 10px 0 16px; margin: 0 0 12px;
}
.handbuch .hb-filter label {
  display: flex; align-items: center; gap: 12px; padding: 0 0 12px;
  border-bottom: 2px solid var(--ink); font-size: 1.2rem; color: var(--ink-faint);
}
.handbuch .hb-filter .hb-lupe { width: 18px; height: 18px; }
.handbuch .hb-filter input {
  flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none;
  font: inherit; font-size: 1.2rem; color: var(--ink);
}
.handbuch .hb-filter input::-webkit-search-cancel-button { cursor: pointer; }
.handbuch .hb-filter-zahl { display: block; margin-top: 8px; font-size: .95rem; color: var(--ink-faint); }
.handbuch .hb-filter-zahl:empty { display: none; }
.handbuch .hb-startsuche { position: static; margin-bottom: 8px; }
.handbuch .hb-nachschlagen h2 { margin-top: 56px; margin-bottom: 6px; }
.handbuch .hb-nachschlagen h2 + p { font-size: 1.08rem; color: var(--hb-grau-text); margin-bottom: 18px; }

/* ---- Meldungsfälle ---------------------------------------------------- */
.handbuch .fall { padding: 20px 0; border-top: 1px solid var(--hairline); max-width: var(--hb-liste); }
.handbuch .hb-artikel .fall p { max-width: none; }
.handbuch .hb-artikel .fall h3 { margin: 0 0 6px; font-size: 1.18rem; }
.handbuch .hb-artikel .fall-meldungen { margin: 0 0 8px; font-size: 1rem; line-height: 1.6; color: var(--hb-grau-text); }
.handbuch .hb-artikel .fall-tun { margin: 0; font-size: 1.12rem; line-height: 1.6; }
.handbuch .fall .st { font-weight: 600; }
.handbuch .fall .st.selbst { color: var(--hb-gruen); }
.handbuch .fall .st.handeln { color: var(--hb-orange); }
.handbuch .fall .st.ergebnis { color: var(--accent-ink); }

/* ---- Startseite ------------------------------------------------------- */
.handbuch .hb-start { max-width: 820px; }
.handbuch .hb-start .vorspann { max-width: 36ch; margin-bottom: 36px; }
.handbuch .hb-start h2 { margin: 56px 0 18px; }
.handbuch ol.einstieg { list-style: none; margin: 0; padding: 0; counter-reset: e; display: grid; gap: 18px; max-width: none; }
.handbuch ol.einstieg > li {
  counter-increment: e; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline;
  margin: 0; padding: 0; font-size: 1.05rem;
}
.handbuch ol.einstieg > li::before { content: counter(e); font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--accent-deep); }
.handbuch ol.einstieg > li > a { grid-column: 2; font-size: 1.3rem; font-weight: 600; text-decoration: none; }
.handbuch ol.einstieg > li > span { grid-column: 2; display: block; margin-top: 4px; color: var(--hb-grau-text); }
.handbuch .tabelle table.wege td:first-child { white-space: nowrap; width: 1%; }
.handbuch .tabelle table.wege a { text-decoration: none; }
/* Kopfzeile „Weg / Wofür“ nur für Bildschirmleser, wie im Entwurf unsichtbar */
.handbuch .tabelle table.wege thead {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.handbuch .tabelle table.wege tbody tr:first-child td { border-top: 0; }
.handbuch .hb-kapitel-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; margin-top: 8px; }
.handbuch .hb-artikel .hb-kapitel h3 { margin: 0 0 4px; }
.handbuch .hb-artikel .hb-kapitel p { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; color: var(--hb-grau-text); }
.handbuch .hb-artikel .hb-kapitel ul { list-style: none; margin: 0; padding: 0; }
.handbuch .hb-artikel .hb-kapitel li { margin: 0; padding: 3px 0; font-size: 1.02rem; line-height: 1.45; }
.handbuch .hb-artikel .hb-kapitel a { text-decoration: none; }
.handbuch .hb-artikel .hb-kapitel a:hover { text-decoration: underline; }
.handbuch .hb-artikel .hb-kapitel li + li { margin-top: 6px; }
.handbuch .hb-kapitel-satz { display: block; font-size: .95rem; line-height: 1.45; color: var(--hb-grau-text); }

/* ---- Abschlusskasten: Download und Produktseite ----------------------- */
.handbuch .hb-abschluss { max-width: var(--hb-artikel); margin-top: 64px; }
.handbuch .hb-abschluss p { margin: 0 0 18px; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.handbuch .hb-abschluss-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.handbuch .hb-abschluss-produkt { font-weight: 500; }
.handbuch .hb-abschluss + .hb-weiter { margin-top: 40px; }

/* ---- Weiter-Links, Frage ---------------------------------------------- */
.handbuch .hb-weiter {
  max-width: var(--hb-artikel); margin-top: 72px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.handbuch .hb-weiter a { display: grid; gap: 2px; padding: 4px 0; color: var(--ink); }
.handbuch .hb-weiter a:hover { text-decoration: none; }
.handbuch .hb-weiter a:hover .hb-weiter-titel { text-decoration: underline; }
.handbuch .hb-weiter-vor { text-align: right; }
.handbuch .hb-weiter-richtung { font-size: .85rem; color: var(--ink-faint); }
.handbuch .hb-weiter-titel { font-size: 1.02rem; font-weight: 500; }
.handbuch .hb-frage { max-width: var(--hb-artikel); margin-top: 28px; font-size: .95rem; color: var(--ink-faint); }

/* ---- Fußzeile: wie Startseite, Sprachmenü öffnet nach oben ------------ */
.handbuch footer { margin-top: 0; }

/* ---- Suche (Pagefind) und Bildvergrößerung ----------------------------- */
.handbuch dialog {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
}
.handbuch dialog::backdrop { background: rgba(29, 29, 31, .38); }
.handbuch .hb-suche {
  width: min(680px, calc(100vw - 32px)); margin: 10vh auto auto;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  --pagefind-ui-primary: #15639F;
  --pagefind-ui-text: #1D1D1F;
  --pagefind-ui-border: #E6E8EC;
  --pagefind-ui-tag: #EAF2F9;
  --pagefind-ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pagefind-ui-scale: .9;
}
.handbuch .hb-suche-kopf { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; padding: 18px; max-height: 76vh; overflow-y: auto; }
.handbuch .hb-schliessen {
  font: inherit; font-size: .9rem; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--hairline); background: var(--bg-soft); color: var(--ink-soft); cursor: pointer;
}
.handbuch .hb-zoom { width: 100vw; height: 100vh; height: 100dvh; margin: 0; overflow: auto; overscroll-behavior: contain; }
.handbuch .hb-zoom[open] { display: grid; justify-items: center; align-items: center; align-items: safe center; padding: 64px 2vw 32px; }
.handbuch .hb-zoom .hb-schliessen { position: fixed; top: 16px; right: 16px; z-index: 2; background: #fff; }
.handbuch .hb-zoom-bild {
  width: min(96vw, var(--voll, 760px), calc((100vh - 112px) * var(--seiten, 1.5)));
  width: min(96vw, var(--voll, 760px), calc((100dvh - 112px) * var(--seiten, 1.5)));
}
.handbuch .hb-zoom-bild figure { max-width: none; margin: 0; }
.handbuch .hb-zoom-bild .bild-rahmen { max-width: none; cursor: zoom-out; filter: none; }
.handbuch .hb-zoom-bild figcaption { display: none; }

/* ---- Tablet und Handy ------------------------------------------------- */
@media (max-width: 899px) {
  .handbuch .hb-raster { display: block; }
  .handbuch .hb-menue-knopf {
    display: inline-flex; align-items: center; gap: 8px;
    height: 34px; padding: 0 12px; font: inherit; font-size: .92rem; color: var(--ink);
    background: var(--bg-soft); border: 1px solid var(--hairline); border-radius: 8px; cursor: pointer;
  }
  .handbuch .hb-menue-knopf::before {
    content: ""; width: 14px; height: 2px; background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  }
  .handbuch .hb-leiste {
    display: none;
    position: fixed; inset: var(--hb-kopf) 0 0 0; z-index: 25;
    max-height: none; background: #fff;
    padding: 20px 20px 48px;
  }
  .handbuch.menue-offen .hb-leiste { display: block; }
  .handbuch.menue-offen { overflow: hidden; }
  .handbuch .hb-inhalt { padding: 28px 24px 64px; }
}
@media (max-width: 820px) {
  .handbuch .walk-step { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .handbuch .walk-step .walk-media { order: 0 !important; position: static !important; }
  .handbuch .walk-media .bild-rahmen,
  .handbuch .walk-media .platz { margin-inline: 0; }
  .handbuch .hb-kapitel-raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body.handbuch { --hb-marke: 22px; }
  .handbuch .hb-kopf-innen { padding-inline: 16px; gap: 10px; }
  .handbuch .hb-marke .hero-wordmark, .handbuch .hb-name { display: none; }
  .handbuch .hb-suche-knopf { width: auto; flex: 1; }
  .handbuch .hb-suche-knopf kbd { display: none; }
  .handbuch .hb-inhalt { padding: 24px 16px 56px; }
  .handbuch .marke { font-size: 12px; }
  .handbuch .hb-filter label, .handbuch .hb-filter input { font-size: 1.05rem; }
  .handbuch ol.einstieg > li { grid-template-columns: 40px minmax(0, 1fr); }
  .handbuch ol.einstieg > li::before { font-size: 1.9rem; }
  .handbuch .tabelle table.wege td:first-child { white-space: normal; width: auto; }
  .handbuch .hb-weiter { grid-template-columns: 1fr; }
  .handbuch .hb-weiter-vor { text-align: left; }
}
