/* ==========================================================================
   BookIvy Dokumentation — Seitenrahmen, Lesetypografie, Bausteine
   --------------------------------------------------------------------------
   Baut auf colors_and_type.css und site.css auf (dieselben Marken-Variablen,
   derselbe Kopf, derselbe Fuß). Hier steht nur, was eine Anleitung zusätzlich
   braucht: mitlaufendes Inhaltsverzeichnis, Klickpfade, Schritte, Nachbauten
   der Oberfläche.

   Bewusst EIN Thema (hell): Die Marketing-Seiten haben kein dunkles Thema, und
   eine Anleitung, die anders aussieht als der Rest der Website, wirkt wie ein
   fremdes Produkt. Der Inhaltsbereich ist weiß; Kopf und Fuß bleiben Marke.
   ========================================================================== */

.doku-page {
  --d-ink:        #0E1E1F;
  --d-muted:      #4A5556;
  --d-faint:      #7B8587;
  --d-teal:       #1C3031;
  --d-teal-2:     #4A6567;
  --d-wash:       #EEF2F1;      /* Teal, fast weiß: aktiver Eintrag im Inhaltsverzeichnis */
  --d-cream:      #FAF1E0;
  --d-paper:      #FBF8F2;
  --d-line:       #DCD6C8;
  --d-line-soft:  #ECE8DE;
  --d-warm:       #AA9A7B;
  --d-blush:      #FAE1E0;
  --d-blush-ink:  #6B4443;
  --d-top:        92px;         /* wird von doku.js auf die echte Kopfhöhe gesetzt */
  background: #fff;
  color: var(--d-ink);
}

/* ── Entwurfsband (Vorbild: Blog) ──────────────────────────────────────── */
.doku-draft {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 24px; background: #F6E7C6; border-bottom: 1px solid #D9C295;
  font-family: var(--rt-font-body); font-size: 13px; color: #4A3B18;
}
.doku-draft__chip {
  font-weight: var(--rt-w-bold); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: #8A6A1F; color: #FFF8E8; padding: 4px 10px; border-radius: var(--rt-radius-pill);
}

/* ── Raster: Inhaltsverzeichnis links, Lesespalte rechts ───────────────── */
.doku {
  max-width: 1240px; margin: 0 auto; padding: 0 28px 112px;
  display: grid; grid-template-columns: 292px minmax(0, 1fr); column-gap: 72px; align-items: start;
}
@media (max-width: 720px) { .doku { padding-inline: 20px; } }

.doku__toc {
  position: sticky; top: var(--d-top); align-self: start;
  max-height: calc(100vh - var(--d-top)); overflow-y: auto; overscroll-behavior: contain;
  padding: 44px 14px 40px 0; scrollbar-width: thin; scrollbar-color: var(--d-line) transparent;
}
.doku__main { min-width: 0; padding-top: 40px; }

/* ── Inhaltsverzeichnis ────────────────────────────────────────────────── */
.toc__title {
  font-size: 11.5px; font-weight: var(--rt-w-semibold); letter-spacing: var(--rt-tracking-eyebrow);
  text-transform: uppercase; color: var(--d-teal-2); margin: 0 0 14px;
}
.toc__home {
  display: block; padding: 8px 0 14px; font-size: 14px; line-height: 1.4; color: var(--d-muted);
  text-decoration: none;
}
.toc__home:hover { color: var(--d-teal); }
.toc__home.is-current { color: var(--d-teal); font-weight: var(--rt-w-semibold); }

.toc__group { border-top: 1px solid var(--d-line-soft); }
.toc__group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 11px 0; font-size: 14px; font-weight: var(--rt-w-semibold); color: var(--d-teal);
}
.toc__group > summary::-webkit-details-marker { display: none; }
.toc__group > summary::before {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 4px 2px 2px;
  border-right: 1.5px solid var(--d-teal-2); border-bottom: 1.5px solid var(--d-teal-2);
  transform: rotate(-45deg); transition: transform var(--rt-dur-fast) var(--rt-ease-out);
}
.toc__group[open] > summary::before { transform: rotate(45deg); }
.toc__group > summary:hover .toc__gname { text-decoration: underline; text-decoration-color: var(--d-warm); text-underline-offset: 3px; }
.toc__gname { flex: 1; }
.toc__gcount { font-size: 11px; font-weight: var(--rt-w-medium); color: var(--d-faint); font-variant-numeric: tabular-nums; }

.toc__pages { list-style: none; margin: 0 0 14px 5px; padding: 0 0 0 14px; border-left: 1px solid var(--d-line); }
.toc__page { position: relative; }
.toc__page > a, .toc__page > span {
  display: block; padding: 6px 8px; margin-left: -8px; border-radius: 4px;
  font-size: 14px; line-height: 1.4; color: var(--d-muted); text-decoration: none;
}
.toc__page > a:hover { color: var(--d-teal); background: var(--d-paper); }
.toc__page.is-planned > span { color: var(--d-faint); cursor: help; }
.toc__page.is-planned > span::after {
  content: "bald"; margin-left: 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--d-warm); border: 1px solid var(--d-line); padding: 0 5px; border-radius: 3px; vertical-align: 1px;
}
/* „Du bist hier": eine Linie über Seite und Abschnitte */
.toc__page.is-current::before {
  content: ""; position: absolute; left: -15px; top: 4px; bottom: 4px; width: 2px;
  background: var(--d-teal); border-radius: 2px;
}
.toc__page.is-current > a { color: var(--d-teal); font-weight: var(--rt-w-semibold); background: var(--d-wash); }

.toc__sections { list-style: none; margin: 4px 0 8px 0; padding: 0; }
.toc__sections a {
  display: block; padding: 4px 8px 4px 10px; margin-left: -8px; font-size: 13px; line-height: 1.4;
  color: var(--d-faint); text-decoration: none; border-radius: 4px;
  transition: color var(--rt-dur-fast), background var(--rt-dur-fast);
}
.toc__sections a:hover { color: var(--d-teal); }
.toc__sections a.is-active { color: var(--d-teal); font-weight: var(--rt-w-semibold); background: var(--d-cream); }

/* ── Verbindung zum Backend (Status) ───────────────────────────────────── */
.conn { margin: 0 0 22px; max-width: 44rem; }
.conn:empty { display: none; }
.conn__row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px; font-size: 13px; line-height: 1.5; color: var(--d-muted);
  background: var(--d-paper); border: 1px solid var(--d-line-soft); border-radius: 6px;
}
.conn__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--d-warm); flex: none; }
.conn.is-live .conn__dot { background: #3E8A5A; box-shadow: 0 0 0 3px rgba(62, 138, 90, .16); }
.conn__btn {
  margin-left: auto; font: inherit; font-size: 12.5px; color: var(--d-teal-2); background: none; border: 0;
  padding: 2px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.conn__btn:hover { color: var(--d-teal); }

/* ── Brotkrumen ────────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--d-faint); margin: 0 0 30px; }
.crumbs a { color: var(--d-muted); text-decoration: none; }
.crumbs a:hover { color: var(--d-teal); text-decoration: underline; text-underline-offset: 3px; }
.crumbs__sep { color: var(--d-line); }

/* ── Artikelkopf ───────────────────────────────────────────────────────── */
.article { max-width: 44rem; }
.eyebrow-doku {
  font-size: 12px; font-weight: var(--rt-w-semibold); letter-spacing: var(--rt-tracking-eyebrow);
  text-transform: uppercase; color: var(--d-teal-2); margin: 0 0 12px;
}
.article h1 {
  font-size: clamp(34px, 4vw, 46px); line-height: 1.08; font-weight: var(--rt-w-bold);
  color: var(--d-teal); margin: 0 0 20px;
}
.article .lede { font-size: 19px; line-height: 1.7; color: var(--d-muted); margin: 0 0 30px; max-width: 38rem; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 24px;
  margin: 0; padding: 0; border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line);
}
.facts > div { padding: 16px 0 17px; min-width: 0; }
.facts dt {
  font-size: 11px; font-weight: var(--rt-w-semibold); letter-spacing: .14em; text-transform: uppercase;
  color: var(--d-faint); margin: 0 0 6px;
}
.facts dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--d-ink); }

/* ── Abschnitte ────────────────────────────────────────────────────────── */
.sec { margin-top: 68px; scroll-margin-top: calc(var(--d-top) + 28px); }
.sec > h2 {
  font-size: clamp(26px, 2.6vw, 31px); line-height: 1.2; font-weight: var(--rt-w-semibold);
  color: var(--d-teal); margin: 0 0 20px;
}
.sec h3 { font-size: 20px; font-weight: var(--rt-w-semibold); color: var(--d-teal); margin: 36px 0 10px; }
.sec h4 { font-size: 16.5px; font-weight: var(--rt-w-semibold); color: var(--d-teal); margin: 26px 0 8px; }
.sec p, .sec li { font-size: 16.5px; line-height: 1.78; color: var(--d-ink); }
.sec p { margin: 0 0 16px; }
.sec ul, .sec ol:not(.steps) { margin: 0 0 18px; padding-left: 1.3em; }
.sec li { margin-bottom: 8px; padding-left: 4px; }
.sec li::marker { color: var(--d-teal-2); }
.sec strong { font-weight: var(--rt-w-semibold); }
.sec a { color: var(--d-teal); text-decoration: underline; text-decoration-color: var(--d-warm); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sec a:hover { text-decoration-color: var(--d-teal); }
.sec code, .sec kbd {
  font-family: var(--rt-font-mono); font-size: .84em; background: var(--d-paper);
  border: 1px solid var(--d-line-soft); border-radius: 4px; padding: 1px 6px; white-space: nowrap;
}
.sec .small { font-size: 14px; color: var(--d-faint); }

/* Nutzen: kurze, gewichtete Zeilen statt Kacheln */
.gains { list-style: none; padding: 0 !important; margin: 0 0 8px !important; }
.gains li { position: relative; padding: 14px 0 14px 34px; margin: 0; border-top: 1px solid var(--d-line-soft); }
.gains li:last-child { border-bottom: 1px solid var(--d-line-soft); }
.gains li::before {
  content: ""; position: absolute; left: 4px; top: 21px; width: 11px; height: 6px;
  border-left: 2px solid var(--d-teal-2); border-bottom: 2px solid var(--d-teal-2); transform: rotate(-45deg);
}

/* Entscheidungshilfe / Tabellen */
table.tbl { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: 15px; }
table.tbl th {
  text-align: left; font-size: 11px; font-weight: var(--rt-w-semibold); letter-spacing: .12em; text-transform: uppercase;
  color: var(--d-faint); padding: 0 16px 10px 0; border-bottom: 1px solid var(--d-line);
}
table.tbl td { padding: 13px 16px 13px 0; vertical-align: top; border-bottom: 1px solid var(--d-line-soft); line-height: 1.55; }
table.tbl td:first-child { font-weight: var(--rt-w-semibold); color: var(--d-teal); }
.tbl-wrap { overflow-x: auto; }

/* ── Klickpfade ins Backend ────────────────────────────────────────────── */
.bk {
  display: inline-block; max-width: 100%; padding: 2px 13px; margin: 2px 1px;
  font-size: .88em; font-weight: var(--rt-w-medium); line-height: 1.6; color: var(--d-teal);
  text-align: center; text-wrap: balance;         /* mehrzeilig: Text mittig im Rahmen, Zeilen ausgewogen */
  background: var(--d-paper); border: 1px dashed var(--d-warm);
  border-radius: 18px;                            /* einzeilig eine Kapsel, mehrzeilig ein Rechteck mit runden Ecken */
  text-decoration: none !important; cursor: help;
}
.bk__seg { white-space: nowrap; }
.bk__sep { color: var(--d-warm); }
/* Angemeldet: durchgezogen, mit Pfeil — wirkt wie ein Knopf, weil es einer ist */
a.bk { border-style: solid; border-color: var(--d-teal-2); cursor: pointer; transition: background var(--rt-dur-fast), color var(--rt-dur-fast); }
/* Der Pfeil hängt am letzten Segment (nowrap) und kann nie allein in eine neue Zeile fallen. */
a.bk .bk__seg:last-child::after { content: "↗"; margin-left: .4em; font-size: .9em; color: var(--d-teal-2); }
a.bk:hover { background: var(--d-teal); color: var(--d-cream); border-color: var(--d-teal); }
a.bk:hover .bk__sep, a.bk:hover .bk__seg:last-child::after { color: var(--d-cream); }

/* Pfad in einem fremden System: eigene Marke, nie ein Link */
.bk--ext { cursor: default; border-style: solid; border-color: var(--d-line); background: #fff; }
.bk__tag {
  display: inline-block; margin-right: .3em; padding: 0 8px; font-size: .74em; font-weight: var(--rt-w-bold);
  letter-spacing: .09em; text-transform: uppercase; line-height: 1.6; vertical-align: .1em;
  color: var(--d-cream); background: var(--d-teal-2); border-radius: 999px;
}

.ref--planned { color: var(--d-faint); border-bottom: 1px dotted var(--d-warm); cursor: help; }

/* ── Schritte ──────────────────────────────────────────────────────────── */
ol.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: schritt; }
ol.steps > li { position: relative; padding: 0 0 34px 62px; margin: 0; counter-increment: schritt; }
ol.steps > li::before {
  content: counter(schritt); position: absolute; left: 0; top: -2px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--rt-font-display); font-size: 19px; font-weight: var(--rt-w-semibold);
  color: var(--d-teal); background: #fff; border: 1.5px solid var(--d-teal);
}
ol.steps > li::after { content: ""; position: absolute; left: 18.5px; top: 44px; bottom: 6px; width: 1px; background: var(--d-line); }
ol.steps > li:last-child { padding-bottom: 6px; }
ol.steps > li:last-child::after { display: none; }
.sec .step__title { font-weight: var(--rt-w-semibold); font-size: 17.5px; line-height: 1.4; color: var(--d-teal); margin: 5px 0 6px; }
ol.steps p { margin: 0 0 10px; }
.sec .step__path { margin: 2px 0 12px; }

/* ── Hinweise ──────────────────────────────────────────────────────────── */
.note {
  margin: 26px 0; padding: 20px 22px 6px; background: var(--d-cream); border-radius: 8px;
  border: 1px solid #EBDDBD;
}
.sec .note__label {
  display: inline-block; margin: 0 0 8px; font-size: 11px; font-weight: var(--rt-w-bold);
  letter-spacing: .14em; text-transform: uppercase; color: #6E5A2E;
}
.note p:last-child { margin-bottom: 14px; }
.note--warn { background: var(--d-blush); border-color: #EFC9C8; }
.sec .note--warn .note__label { color: var(--d-blush-ink); }

/* ── Nachbau der Oberfläche ────────────────────────────────────────────── */
.shot { margin: 30px 0 14px; }
.shot__frame {
  position: relative; background: #F3F5FA; border: 1px solid var(--d-line); border-radius: 10px;
  padding: 24px 24px 26px; pointer-events: none; user-select: none;
}
.shot figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--d-muted); }
.shot figcaption strong { color: var(--d-teal); }

.ui { font-family: var(--rt-font-body); font-size: 12.5px; line-height: 1.4; color: #18212f; }
.ui-card { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 1px 2px rgba(24,33,47,.06), 0 10px 26px rgba(24,33,47,.07); }
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ui-head b { font-size: 15px; font-weight: 700; }
.ui-badge { font-size: 10.5px; font-weight: 600; background: #eef1f6; color: #6b778c; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }

.ui-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-tile { position: relative; background: #fff; border: 1.5px solid #dfe5ee; border-radius: 10px; padding: 11px 12px 11px 40px; }
.ui-tile.is-on { border-color: #355cde; background: #edf2ff; }
.ui-tile .ui-dot { position: absolute; left: 13px; top: 13px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c2cbd9; background: #fff; }
.ui-tile.is-on .ui-dot { background: #355cde; border-color: #355cde; }
.ui-tile.is-on .ui-dot::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ui-tile b { display: block; font-size: 12.5px; font-weight: 700; }
.ui-tile span.d { display: block; margin-top: 3px; font-size: 11px; color: #6b778c; }

.ui-days { display: grid; gap: 6px; margin-top: 14px; }
.ui-day { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: #f8fafc; border: 1px solid #dfe5ee; border-radius: 10px; padding: 7px 12px; }
.ui-day.off .ui-name { color: #8892a4; }
.ui-cb { display: inline-block; position: relative; width: 15px; height: 15px; margin-right: 9px; vertical-align: -3px; border-radius: 4px; border: 1.5px solid #c2cbd9; background: #fff; }
.ui-cb.on { background: #355cde; border-color: #355cde; }
.ui-cb.on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ui-name { font-weight: 600; }
.ui-times { display: flex; align-items: center; gap: 8px; color: #6b778c; font-size: 11.5px; flex-wrap: wrap; }
.ui-inp { display: inline-block; min-width: 64px; padding: 5px 10px; text-align: center; background: #fff; border: 1px solid #dfe5ee; border-radius: 8px; color: #18212f; }
.ui-inp.off { background: #f1f3f7; color: #b3bccb; }
.ui-hint { font-size: 11px; color: #8892a4; }
.ui-ghost { display: inline-block; padding: 5px 10px; font-size: 11px; font-weight: 600; color: #355cde; background: #fff; border: 1px solid #c9d8ff; border-radius: 8px; white-space: nowrap; }
.ui-btn { display: inline-block; padding: 9px 18px; font-size: 12.5px; font-weight: 700; color: #fff; background: #355cde; border-radius: 10px; }
.ui-btn.secondary { color: #4a5b7a; background: #fff; border: 1px solid #dfe5ee; }
.ui-actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; }

.ui-tabs { display: flex; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid #e6eaf1; }
.ui-tab { padding: 8px 14px; font-size: 12.5px; font-weight: 600; color: #6b778c; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ui-tab.on { color: #355cde; border-bottom-color: #355cde; }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ui-field label { display: block; margin-bottom: 5px; font-size: 11.5px; font-weight: 600; color: #6b778c; }
.ui-field .v { padding: 9px 12px; background: #fff; border: 1.5px solid #dfe5ee; border-radius: 10px; }
.ui-field .v.sel { display: flex; justify-content: space-between; }
.ui-field .v.sel::after { content: "⌄"; color: #6b778c; }

/* Ziffern, die auf die Schritte verweisen */
.mk-host { position: relative; }
.mk {
  position: absolute; z-index: 2; left: -11px; top: -9px; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--d-teal); color: var(--d-cream); font-family: var(--rt-font-display);
  font-size: 13px; font-weight: 700; box-shadow: 0 0 0 3px #F3F5FA;
}
.mk.mk--in { left: 6px; top: 50%; transform: translateY(-50%); box-shadow: 0 0 0 3px #fff; }

/* ── Zusammenhänge ─────────────────────────────────────────────────────── */
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--d-line); margin: 6px 0 0; }
.rel > div { padding: 18px 22px 8px 0; }
.rel > div + div { padding-left: 22px; border-left: 1px solid var(--d-line-soft); }
.rel h3 {
  margin: 0 0 12px !important; font-family: var(--rt-font-body); font-size: 11px; font-weight: var(--rt-w-semibold);
  letter-spacing: .14em; text-transform: uppercase; color: var(--d-faint);
}
.rel ul { list-style: none; margin: 0; padding: 0 !important; }
.rel li { padding: 0; margin: 0 0 14px; font-size: 15px; line-height: 1.55; }
.rel li small { display: block; color: var(--d-muted); font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
@media (max-width: 640px) { .rel > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--d-line-soft); } }

/* ── Häufige Fragen ────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--d-line-soft); }
.faq:last-of-type { border-bottom: 1px solid var(--d-line-soft); }
.faq > summary {
  list-style: none; cursor: pointer; display: block; position: relative;
  padding: 16px 40px 16px 0; font-size: 16.5px; font-weight: var(--rt-w-semibold); color: var(--d-teal); line-height: 1.5;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--d-teal-2); }
.faq[open] > summary::after { content: "–"; }
.faq > div { padding: 0 0 8px; max-width: 40rem; }

.article__foot { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--d-line); }
.article__foot p { font-size: 13.5px; line-height: 1.6; color: var(--d-faint); margin: 0; }
.article__foot a { color: var(--d-teal-2); }

/* ── Übersichtsseite ───────────────────────────────────────────────────── */
.path-list { list-style: none; margin: 8px 0 0; padding: 0 !important; counter-reset: bereich; }
.path-list > li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 22px 0; margin: 0; border-top: 1px solid var(--d-line-soft); counter-increment: bereich; }
.path-list > li:last-child { border-bottom: 1px solid var(--d-line-soft); }
.path-list > li::before {
  content: counter(bereich); grid-row: 1 / span 2; font-family: var(--rt-font-display); font-size: 30px; line-height: 1.1;
  font-weight: var(--rt-w-semibold); color: var(--d-warm);
}
.path-list h3 { margin: 0 0 4px !important; font-size: 19px; }
.path-list p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--d-muted); }
.path-list .pg { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0 !important; list-style: none; }
.path-list .pg li { margin: 0; padding: 0; font-size: 13.5px; line-height: 1.5; }
.path-list .pg li a, .path-list .pg li span {
  display: inline-block; padding: 2px 11px; border: 1px solid var(--d-line); border-radius: 999px; text-decoration: none; color: var(--d-teal);
}
.path-list .pg li span { color: var(--d-faint); border-style: dashed; cursor: help; }
.path-list .pg li a { background: var(--d-wash); border-color: #CBD8D5; font-weight: var(--rt-w-medium); }
.path-list .pg li a:hover { background: var(--d-teal); color: var(--d-cream); }

/* ── Schmale Fenster: Inhaltsverzeichnis wandert über den Text ─────────── */
@media (max-width: 1020px) {
  .doku { grid-template-columns: minmax(0, 1fr); }
  .doku__toc { position: static; max-height: none; padding: 28px 0 8px; border-bottom: 1px solid var(--d-line); margin-bottom: 8px; }
  .doku__main { padding-top: 24px; }
}
@media (max-width: 560px) {
  ol.steps > li { padding-left: 52px; }
  ol.steps > li::before { width: 34px; height: 34px; font-size: 17px; }
  ol.steps > li::after { left: 16.5px; top: 40px; }
  .ui-day { grid-template-columns: 100px minmax(0, 1fr); } .ui-day .ui-ghost { display: none; }
  .ui-grid, .ui-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .toc__group > summary::before, .toc__sections a, a.bk { transition: none; }
}

/* Übersichtsseite: Abschnitte direkt unter dem Verweis „Übersicht" */
.toc__sections--home { margin: 0 0 14px 2px; padding-left: 12px; border-left: 1px solid var(--d-line); }

/* Teile einer langen Anleitung (z. B. „Im Stripe-Konto" / „In BookIvy") */
.sec h3.part { display: block; margin: 44px 0 6px; padding-top: 22px; border-top: 1px solid var(--d-line); }
.sec h3.part:first-of-type { margin-top: 20px; }
.part__tag {
  display: inline-block; margin-right: 12px; vertical-align: middle; padding: 3px 11px; font-family: var(--rt-font-body); font-size: 11px; font-weight: var(--rt-w-bold);
  letter-spacing: .12em; text-transform: uppercase; color: var(--d-cream); background: var(--d-teal); border-radius: 999px;
}
.sec .part-lead { margin: 0 0 22px; color: var(--d-muted); font-size: 15px; }
/* Werte, die man aus einem Fenster ins andere kopiert */
.sec .vals { margin: 10px 0 14px; padding: 0 !important; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sec .vals li { margin: 0; padding: 0; font-size: 14px; line-height: 1.5; }
.sec .vals code { display: inline-block; padding: 2px 9px; background: #fff; }

/* Nachbau: Listenzeilen, Abschnittsköpfe, Knöpfe (Raumtypen, Merkmale, Tische, Abwesenheiten) */
.ui-row { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 6px; background: #f8fafc; border: 1px solid #dfe5ee; border-radius: 10px; }
.ui-row.is-new { background: #fff; border-style: dashed; }
.ui-rt { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) auto minmax(0, 2.4fr); }
.ui-slug { font-family: ui-monospace, monospace; font-size: 11px; color: #6b778c; }
.ui-sys { margin-left: 6px; font-family: var(--rt-font-body); font-size: 10px; padding: 1px 7px; border-radius: 999px; background: #eef1f6; color: #6b778c; }
.ui-opts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: #6b778c; }
.ui-opts i { display: inline-block; width: 11px; height: 11px; margin-right: 5px; vertical-align: -1px; border-radius: 50%; border: 1.5px solid #c2cbd9; background: #fff; }
.ui-opts .on { color: #18212f; font-weight: 600; }
.ui-opts .on i { border-color: #355cde; background: #355cde; box-shadow: inset 0 0 0 2px #fff; }
.ui-inp.wide { display: block; min-width: 0; text-align: left; }
.ui-btn.small { padding: 5px 11px; font-size: 11.5px; }
.ui-btn.danger { color: #d23d4d; background: #fdecee; border: 1px solid #f3c3c9; }
.ui-sect { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #4a5b7a; background: #f8fafc; border: 1px solid #dfe5ee; border-radius: 10px; }
.ui-sect::after { content: "⌄"; color: #6b778c; }
.ui-sect.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: #fff; }
.ui-sect.open::after { content: "⌃"; }
.ui-sect-body { padding: 14px 12px; margin-bottom: 2px; background: #fff; border: 1px solid #dfe5ee; border-top: 0; border-radius: 0 0 10px 10px; }
.ui-tiles.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .ui-row, .ui-rt { grid-template-columns: minmax(0, 1fr); } .ui-tiles.three { grid-template-columns: 1fr; } }

/* Nachbau: Raumplan-Editor (Layout-Leiste, Elementleiste, Grundriss) */
.ui-layouts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ui-layout { padding: 7px 12px; font-size: 12px; font-weight: 600; background: #f8fafc; border: 1px solid #dfe5ee; border-radius: 10px; color: #4a5b7a; }
.ui-layout.is-cur { border-color: #355cde; background: #edf2ff; color: #18212f; }
.ui-layout .live { margin-left: 6px; font-size: 10px; font-weight: 700; color: #1a9b62; }
.ui-editor { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.ui-pal { background: #f8fafc; border: 1px solid #dfe5ee; border-radius: 10px; padding: 10px; font-size: 11px; color: #6b778c; }
.ui-pal b { display: block; margin: 8px 0 5px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8892a4; }
.ui-pal b:first-child { margin-top: 0; }
.ui-chip { display: block; margin-bottom: 5px; padding: 5px 8px; font-size: 11.5px; color: #18212f; background: #fff; border: 1px solid #dfe5ee; border-radius: 7px; }
.ui-plan { position: relative; min-height: 190px; background: #fff; border: 2px solid #c2cbd9; border-radius: 6px; background-image: linear-gradient(#eef1f6 1px, transparent 1px), linear-gradient(90deg, #eef1f6 1px, transparent 1px); background-size: 22px 22px; }
.ui-tbl { position: absolute; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #355cde; background: #edf2ff; border: 1.5px solid #355cde; border-radius: 6px; }
.ui-tbl.round { border-radius: 50%; }
.ui-deco { position: absolute; background: #dfe5ee; border-radius: 3px; }
@media (max-width: 560px) { .ui-editor { grid-template-columns: 1fr; } }
