/* =========================================================
   LIMANTIC – Dokumentation
   ========================================================= */

.docs { background: var(--surface); }
.docs--overview { background: var(--paper); }

/* ---------- Suche ---------- */
.docs-search {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 12px 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.docs-search:focus-within { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(42,163,184,.14); }
.docs-search > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.docs-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: .95rem; color: var(--text);
}
.docs-search input::placeholder { color: var(--muted); }
.docs-search input::-webkit-search-cancel-button { display: none; }
.docs-search kbd {
  font: 600 .72rem var(--font-sans); color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; background: var(--paper);
}
.docs-search--hero {
  height: 60px; max-width: 620px; margin-top: 36px; border-radius: 16px; padding: 0 16px 0 20px;
  border-color: transparent; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
  position: relative; z-index: 3;
}
.docs-search--hero input { font-size: 1.05rem; }
.docs-search--hero > svg { width: 20px; height: 20px; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; max-height: min(420px, 60vh); overflow-y: auto;
  text-align: left;
}
.search-results a {
  display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text);
}
.search-results a:hover, .search-results a.is-active { background: var(--teal-50); }
.search-results .r-chapter { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-600); }
.search-results .r-title { display: block; font-weight: 600; font-size: .95rem; margin-top: 2px; }
.search-results .r-snip { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.search-results mark { background: var(--teal-100); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-results .r-empty { padding: 14px 12px; color: var(--muted); font-size: .92rem; }

/* ---------- Übersicht ---------- */
.docs-hero {
  position: relative; overflow: hidden;
  background: var(--ink-900); color: var(--on-dark);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(56px, 7vw, 96px);
  isolation: isolate;
}
.docs-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(139, 217, 228, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 20%, transparent 75%);
}
.docs-hero::after {
  content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; right: -240px; top: -300px;
  background: radial-gradient(circle, rgba(42,163,184,.26), transparent 65%);
}
.docs-hero .eyebrow { color: var(--teal-300); }
.docs-hero .h2 { margin-top: 18px; max-width: 14em; }
.docs-hero .accent { color: var(--teal-300); }
.docs-hero .lead { margin-top: 18px; color: var(--on-dark-2); max-width: 36em; }

.docs-index { padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px); }
.start-card {
  display: flex; align-items: center; gap: 22px;
  padding: 22px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
  margin-top: calc(-1 * clamp(64px, 8vw, 104px)); position: relative; z-index: 2;
}
.start-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.start-card-play {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--teal-500); color: #fff; box-shadow: 0 10px 24px -8px rgba(42,163,184,.7);
}
.start-card-play svg { width: 20px; height: 20px; margin-left: 2px; }
.start-card strong { display: block; font-size: 1.15rem; letter-spacing: -0.02em; margin-top: 4px; }
.start-card p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.start-card .eyebrow::before { display: none; }
.start-card .go { width: 22px; height: 22px; color: var(--teal-600); margin-left: auto; flex: none; transition: transform .3s var(--ease); }
.start-card:hover .go { transform: translateX(4px); }
@media (max-width: 600px) {
  .start-card { padding: 18px; gap: 16px; align-items: flex-start; }
  .start-card-play { width: 46px; height: 46px; }
  .start-card .go { display: none; }
}

.chapters {
  margin-top: 28px;
  display: grid; gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "a b" "c b";
  grid-template-rows: auto 1fr;
  align-items: start;
}
.chapter-card:nth-child(1) { grid-area: a; }
.chapter-card:nth-child(2) { grid-area: b; }
.chapter-card:nth-child(3) { grid-area: c; }
@media (max-width: 860px) {
  .chapters { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c"; }
}
.chapter-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.chapter-card header {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px 24px 18px;
}
.chapter-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--ink-900); color: var(--teal-300);
}
.chapter-icon svg { width: 22px; height: 22px; }
.chapter-card h2 { font-size: 1.22rem; letter-spacing: -0.02em; }
.chapter-card header p { color: var(--muted); font-size: .92rem; margin-top: 6px; line-height: 1.5; }
.chapter-count {
  margin-left: auto; flex: none; font-size: .74rem; font-weight: 600; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px;
}
.chapter-card ul { list-style: none; padding: 0 12px 12px; }
.chapter-card li a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; border-radius: 10px; text-decoration: none; color: var(--text);
  border-top: 1px solid var(--line); transition: background .2s;
}
.chapter-card li:first-child a { border-top-color: transparent; }
.chapter-card li a:hover { background: var(--teal-50); border-top-color: transparent; }
.chapter-card li a:hover + a, .chapter-card li:hover + li a { border-top-color: transparent; }
.chapter-card .num {
  width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: .76rem; font-weight: 600; color: var(--teal-600); background: var(--teal-50); border: 1px solid var(--teal-100);
}
.chapter-card .t { flex: 1; font-weight: 520; font-size: .96rem; }
.chapter-card .go { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform .2s; }
.chapter-card li a:hover .go { transform: translateX(3px); color: var(--teal-600); }
.has-video { color: var(--teal-600); display: inline-grid; }
.has-video svg { width: 14px; height: 14px; }
.soon {
  font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); background: var(--paper); border: 1px solid var(--line);
  padding: 1px 8px; border-radius: 999px;
}

.docs-help {
  margin-top: 28px; padding: 22px 26px; border-radius: var(--radius-lg);
  background: var(--ink-900); color: var(--on-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.docs-help > div { display: flex; gap: 16px; align-items: center; }
.docs-help > div > svg { width: 26px; height: 26px; color: var(--teal-300); flex: none; }
.docs-help p { color: var(--on-dark-2); font-size: .92rem; }
.docs-help .btn--dark { --bg: rgba(255,255,255,.08); --bd: rgba(255,255,255,.16); }
.docs-help .btn--dark:hover { --bg: rgba(255,255,255,.14); }

/* ---------- Artikel-Layout ---------- */
.docs-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 250px;
  max-width: 1480px; margin-inline: auto;
  padding-top: var(--header-h);
  min-height: 100vh;
}
.docs-side {
  position: sticky; top: var(--header-h); align-self: start;
  height: calc(100vh - var(--header-h)); overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #fbfaf7;
  overscroll-behavior: contain;
}
.docs-side-inner { padding: 24px 16px 40px; }
.docs-search--side { margin-bottom: 16px; }
.side-home {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  text-decoration: none; font-weight: 550; font-size: .93rem; color: var(--text-2);
}
.side-home svg { width: 18px; height: 18px; color: var(--muted); }
.side-home:hover { background: rgba(13,34,48,.04); }

.side-group { margin-top: 10px; }
.side-group summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  font-weight: 620; font-size: .93rem; color: var(--text);
}
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary:hover { background: rgba(13,34,48,.04); }
.side-group summary > svg:first-child { width: 18px; height: 18px; color: var(--teal-600); }
.side-group summary .chev { width: 16px; height: 16px; margin-left: auto; color: var(--muted); transition: transform .25s var(--ease); }
.side-group:not([open]) summary .chev { transform: rotate(-90deg); }
.side-group ul { list-style: none; margin: 4px 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.side-group li a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 10px; border-radius: 8px; text-decoration: none;
  font-size: .9rem; line-height: 1.35; color: var(--text-2);
  position: relative;
}
.side-group li a .num { font-size: .76rem; color: var(--muted); min-width: 14px; font-variant-numeric: tabular-nums; }
.side-group li a .t { flex: 1; }
.side-group li a:hover { background: rgba(13,34,48,.04); color: var(--text); }
.side-group li a[aria-current="page"] { background: var(--teal-50); color: var(--teal-600); font-weight: 600; }
.side-group li a[aria-current="page"]::before {
  content: ""; position: absolute; left: -11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--teal-500);
}
.side-group li a[aria-current="page"] .num { color: var(--teal-600); }
.side-group .soon { align-self: center; font-size: .6rem; padding: 0 6px; }

.docs-main { padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 64px) 96px; min-width: 0; }
.doc { max-width: 760px; margin-inline: auto; }

.crumbs { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--teal-600); text-decoration: none; font-weight: 550; }
.crumbs a:hover { text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; }
.doc-title { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.04em; line-height: 1.08; margin-top: 14px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.doc-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 550; color: var(--text-2);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}
.doc-meta svg { width: 14px; height: 14px; color: var(--teal-600); }
.doc-lead { font-size: 1.15rem; line-height: 1.6; color: var(--text-2); margin-top: 22px; }
.doc-goal {
  display: flex; align-items: center; gap: 14px; margin-top: 24px;
  padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(90deg, var(--teal-50), rgba(238,248,250,0));
  border: 1px solid var(--teal-100);
}
.doc-goal > svg { width: 26px; height: 26px; color: var(--teal-600); flex: none; }
.doc-goal span { display: block; font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-600); }
.doc-goal strong { display: block; font-size: 1.02rem; }

.video { margin: 32px 0 0; }
.video-frame {
  border-radius: 16px; overflow: hidden; background: var(--ink-900);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink-900); }
.video figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Fließtext ---------- */
.prose { margin-top: 12px; font-size: 1.02rem; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.75rem); letter-spacing: -0.03em; color: var(--text);
  margin-top: 56px; padding-top: 4px; position: relative;
}
.prose h3 { font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); margin-top: 36px; }
.prose > h2:first-child { margin-top: 36px; }
.prose .anchor {
  margin-left: 10px; text-decoration: none; color: var(--line-strong); font-weight: 400;
  opacity: 0; transition: opacity .2s;
}
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; }
.prose strong { color: var(--text); font-weight: 620; }
.prose a { color: var(--teal-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; }
.prose li + li { margin-top: 8px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 6px; top: .72em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-500);
}
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before {
  content: counter(li); position: absolute; left: 0; top: .2em;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 650; color: var(--teal-600); background: var(--teal-50);
}
.prose code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .88em;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}
.ui {
  display: inline-block; font-size: .8em; font-weight: 650; letter-spacing: .02em; line-height: 1.5;
  color: var(--ink-800); background: #fff; border: 1px solid var(--line-strong);
  border-bottom-width: 2px; border-radius: 7px; padding: 0 8px; white-space: nowrap;
  vertical-align: .08em;
}
.prose blockquote {
  margin: 32px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--teal-500);
}
.prose blockquote p {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.35; color: var(--text); letter-spacing: -0.01em;
}

.figure { margin: 28px 0; }
.figure--small { max-width: 420px; margin-inline: auto; }
.figure .zoomable {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; cursor: zoom-in; box-shadow: var(--shadow-sm); transition: box-shadow .25s;
}
.figure .zoomable:hover { box-shadow: var(--shadow); }
.figure img { width: 100%; }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Hinweis-Boxen */
.callout {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: var(--teal-50); border: 1px solid var(--teal-100);
  font-size: .96rem; line-height: 1.6;
}
.callout > svg { width: 22px; height: 22px; flex: none; color: var(--teal-600); margin-top: 1px; }
.callout > div { min-width: 0; flex: 1; }
.callout-title { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }
.callout > div > * + * { margin-top: 8px; }
.callout ul li + li { margin-top: 4px; }
.callout--tip { background: var(--gold-100); border-color: #eedcb2; }
.callout--tip > svg { color: #a77e22; }
.callout--tip ul > li::before { background: var(--gold-500); }
.callout--warn { background: var(--coral-100); border-color: #f2c8bd; }
.callout--warn > svg { color: #c4553e; }
.callout--example { background: var(--paper); border-color: var(--line); }
.callout--example > svg { color: var(--ink-600); }
.callout--draft { margin-top: 28px; }

/* Schritte */
.step-block {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px;
  position: relative; padding-bottom: 28px;
}
.step-block + .step-block { margin-top: 0; }
.step-block::before {
  content: ""; position: absolute; left: 21.5px; top: 50px; bottom: 4px; width: 1px;
  background: linear-gradient(var(--line-strong), var(--line-strong)) ;
}
.step-block:has(+ :not(.step-block))::before,
.step-block:last-child::before { display: none; }
.step-block-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-900); color: #fff; font-weight: 650; font-size: 1rem;
  box-shadow: 0 0 0 6px var(--surface);
  position: relative; z-index: 1;
}
.step-block-body { min-width: 0; padding-top: 2px; }
.step-block-body > * + * { margin-top: 14px; }
.step-block h3 { margin-top: 0; font-size: 1.18rem; }
.step-block-kicker {
  display: block; font-size: .72rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 2px;
}
.step-block .figure--wide { margin-left: -62px; }
@media (max-width: 640px) {
  .step-block { grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px; }
  .step-block-num { width: 34px; height: 34px; font-size: .9rem; }
  .step-block::before { left: 16.5px; top: 40px; }
  .step-block .figure--wide { margin-left: -48px; }
}

/* Beziehungstypen */
.relations { display: grid; gap: 10px; }
.relation {
  padding: 14px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px 20px; align-items: center; min-width: 0;
}
@media (max-width: 640px) { .relation { grid-template-columns: 1fr; } }
.relation-head { display: flex; flex-direction: column; gap: 2px; }
.relation-type { font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-600); }
.relation-hint { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.relation-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.relation .pair { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.relation .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line-strong);
  font-size: .88rem; font-weight: 600; line-height: 1.3; color: var(--text); white-space: nowrap;
}

.relation .rel-sym { font-style: normal; font-weight: 600; color: var(--teal-600); font-size: 1rem; padding: 0 2px; }
.relation .rel-word { font-style: normal; font-size: .82rem; font-weight: 600; color: var(--teal-600); padding: 0 2px; }


/* Geschützte Artikel */
.lock-card {
  margin-top: 32px; padding: clamp(28px, 5vw, 44px); border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.lock-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ink-900); color: var(--teal-300); margin-bottom: 18px;
}
.lock-icon svg { width: 26px; height: 26px; }
.lock-card h2 { font-size: 1.35rem; letter-spacing: -0.025em; }
.lock-card > p { color: var(--text-2); margin-top: 8px; max-width: 30em; }
.lock-form { display: flex; gap: 10px; margin-top: 22px; width: 100%; max-width: 420px; }
.lock-form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; font: inherit; color: var(--text);
}
.lock-form input:focus { outline: 0; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(42,163,184,.14); }
.lock-form .btn { height: 44px; }
.lock-card .lock-error { color: #b0452e; font-weight: 600; font-size: .92rem; margin-top: 14px; }
.lock-card .lock-help { font-size: .86rem; color: var(--muted); margin-top: 18px; }
.lock-card .lock-help a { color: var(--teal-600); }
@media (max-width: 480px) {
  .lock-form { flex-direction: column; }
  .lock-form .btn { width: 100%; }
}
.locked-badge { display: inline-grid; color: var(--muted); }
.locked-badge svg { width: 14px; height: 14px; }
.side-group .locked-badge { align-self: center; }
.toc-locked { display: flex; align-items: center; gap: 8px; padding: 5px 0 5px 14px; font-size: .84rem; color: var(--muted); }
.toc-locked svg { width: 14px; height: 14px; }

/* Vor / Zurück */
.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line);
}
.pager a {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.pager a:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }
.pager span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); font-weight: 550; }
.pager span svg { width: 14px; height: 14px; }
.pager strong { font-size: .98rem; font-weight: 600; line-height: 1.35; }
.pager-next { text-align: right; align-items: flex-end; }
@media (max-width: 560px) {
  .pager { grid-template-columns: 1fr; }
  .pager-next { order: -1; }
}

/* Inhaltsverzeichnis */
.docs-toc { position: sticky; top: var(--header-h); align-self: start; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.toc-inner { padding: 56px 24px 40px 8px; }
.toc-title { font-size: .74rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.docs-toc ul { list-style: none; border-left: 1px solid var(--line); }
.docs-toc li a {
  display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: .86rem; line-height: 1.4; color: var(--muted); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.docs-toc li.lvl-3 a { padding-left: 26px; font-size: .83rem; }
.docs-toc li a:hover { color: var(--text); }
.docs-toc li a.is-active { color: var(--teal-600); border-left-color: var(--teal-500); font-weight: 600; }
.toc-feedback {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: .84rem; color: var(--text-2); text-decoration: none;
}
.toc-feedback svg { width: 16px; height: 16px; color: var(--teal-600); }
.toc-feedback:hover { color: var(--teal-600); }

/* Mobile-Steuerung der Seitenleiste */
.docs-side-toggle, .docs-scrim { display: none; }

@media (max-width: 1220px) {
  .docs-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 960px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); }
  .docs-side {
    position: fixed; z-index: 120; left: 0; top: 0; bottom: 0; height: 100%;
    width: min(340px, 88vw);
    transform: translateX(-100%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .docs-side.is-open { transform: none; }
  .docs-scrim {
    display: block; position: fixed; inset: 0; z-index: 110;
    background: rgba(6,18,25,.45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .docs-scrim.is-open { opacity: 1; visibility: visible; }
  .docs-side-toggle {
    position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--ink-900); color: #fff; font-weight: 600; font-size: .92rem;
    box-shadow: 0 14px 30px -10px rgba(6,18,25,.6);
  }
  .docs-side-toggle svg { width: 18px; height: 18px; }
  .docs-main { padding-bottom: 120px; }
}

/* Bild-Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh;
}
.lightbox::backdrop { background: rgba(6,18,25,.85); }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; cursor: zoom-out; }
