/* Erzeugt von build-docs.py — Änderungen dort vornehmen, nicht hier. */
:root {
  --bg: #F7F5F0; --bg-raise: #FFFFFF; --ink: #1C1C1E;
  --ink-2: rgba(28,28,30,0.64); --ink-3: rgba(28,28,30,0.42);
  --line: rgba(28,28,30,0.12); --accent: #0A66D0; --accent-ink: #FFFFFF;
  --accent-wash: rgba(10,102,208,0.08); --shot-edge: rgba(28,28,30,0.14);
  --shadow-soft: 0 16px 44px -22px rgba(30,34,44,0.38);
  --code-bg: #15171B; --code-ink: #E9ECF2;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315; --bg-raise: #1D1D20; --ink: #F4F4F6;
    --ink-2: rgba(244,244,246,0.66); --ink-3: rgba(244,244,246,0.42);
    --line: rgba(244,244,246,0.14); --accent: #409CFF; --accent-ink: #0B1420;
    --accent-wash: rgba(64,156,255,0.12); --shot-edge: rgba(244,244,246,0.16);
    --shadow-soft: 0 16px 44px -22px rgba(0,0,0,0.7);
    --code-bg: #0C0E11; --code-ink: #DFE3EA;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--sans); background: var(--bg); color: var(--ink);
       font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); font-size: 0.85em; background: var(--accent-wash);
       padding: 2px 6px; border-radius: 5px; }
kbd { font-family: var(--mono); font-size: 0.82em; background: var(--bg-raise);
      border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
      padding: 2px 7px; white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

header.site { position: sticky; top: 0; z-index: 20; background: var(--bg);
  border-bottom: 1px solid var(--line); }
.site-row { display: flex; align-items: center; gap: 24px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { border-radius: 7px; display: block; }
nav.main { margin-left: auto; display: flex; gap: 26px; font-size: 15px; }
nav.main a { color: var(--ink-2); }
nav.main a:hover { color: var(--ink); text-decoration: none; }
.lang { font-size: 13px; font-weight: 600; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; }
.lang:hover { color: var(--ink); border-color: var(--ink-3); text-decoration: none; }

.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: 44px; padding-bottom: 72px; }
.docs-side { position: sticky; top: 84px; max-height: calc(100vh - 120px); overflow-y: auto;
  padding-right: 8px; }
.docs-search { position: relative; margin-bottom: 22px; }
.docs-search input { width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 12px; }
.docs-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  list-style: none; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-soft); overflow: hidden; }
.docs-results li a { display: block; padding: 9px 12px; color: var(--ink); font-size: 14.5px; }
.docs-results li a:hover, .docs-results li a:focus { background: var(--accent-wash);
  text-decoration: none; }
.docs-results .hit-section { display: block; color: var(--ink-3); font-size: 12.5px; }
.docs-results .empty { padding: 9px 12px; color: var(--ink-3); font-size: 14.5px; }
.docs-nav { display: flex; flex-direction: column; gap: 1px; font-size: 14.5px; }
.docs-nav a { color: var(--ink-2); padding: 4px 10px; border-radius: 7px; }
.docs-nav a:hover { color: var(--ink); background: var(--accent-wash); text-decoration: none; }
.docs-nav a.active { color: var(--accent); background: var(--accent-wash); font-weight: 600; }
.docs-nav-title { margin: 18px 0 4px; padding: 0 10px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }

.docs-main { max-width: 46em; }
.docs-crumb { font-size: 13px; font-weight: 650; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--accent); }
.docs-main h1 { margin-top: 6px; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.1;
  letter-spacing: -0.025em; font-weight: 780; }
.docs-lead { margin-top: 14px; font-size: 1.1rem; color: var(--ink-2); }
.docs-main h2 { margin-top: 38px; font-size: 1.28rem; letter-spacing: -0.015em; font-weight: 700; }
.docs-main p { margin-top: 14px; color: var(--ink-2); }
.docs-main ul, .docs-main ol { margin: 14px 0 0 1.15em; color: var(--ink-2); }
.docs-main li { margin: 6px 0; }
.docs-main pre { margin-top: 16px; background: var(--code-bg); color: var(--code-ink);
  font-family: var(--mono); font-size: 13px; line-height: 1.7; border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; }
.docs-main pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.note { margin-top: 18px; padding: 14px 16px; background: var(--accent-wash);
  border-left: 3px solid var(--accent); border-radius: 0 9px 9px 0;
  color: var(--ink-2); font-size: 15.5px; }
figure { margin-top: 22px; }
.shot { border-radius: 12px; border: 1px solid var(--shot-edge);
  box-shadow: var(--shadow-soft); overflow: hidden; background: var(--bg-raise); }
.shot-phone { border-radius: 26px; width: min(300px, 78vw); }
@media (prefers-color-scheme: dark) {
  .shot { padding: 8px; background: rgba(244,244,246,0.07);
          border-color: rgba(244,244,246,0.28); }
}
.table-scroll { margin-top: 18px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); vertical-align: top; }
th { color: var(--ink); font-weight: 650; }
.kbd-table td:first-child { width: 1%; white-space: nowrap; }
.docs-next { display: block; margin-top: 46px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg-raise); font-weight: 650; color: var(--ink); }
.docs-next:hover { border-color: var(--accent); text-decoration: none; }
.docs-next span { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-3); }
.docs-next-end { margin-top: 46px; color: var(--ink-3); font-size: 15px; }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 30px; }
.docs-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  background: var(--bg-raise); }
.docs-card h2 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; }
.docs-card ul { margin: 0; list-style: none; }
.docs-card li { margin: 5px 0; font-size: 15px; }

footer.site { border-top: 1px solid var(--line); padding: 34px 0 52px; font-size: 14.5px;
  color: var(--ink-3); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 18px 48px; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; padding-top: 28px; }
  .docs-side { position: static; max-height: none; overflow: visible; }
  .docs-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .docs-nav-title { grid-column: 1 / -1; }
}
