/* Roblox Documentation auf DevlHub (/docs): eigener Rahmen auf den Tokens von hub.css.
   Serverseitig gerendert (hub/src/docs.js). Layout: Seitenleiste | Inhalt | „On this page“. */

.docs-body { user-select: text; -webkit-user-select: text; padding-top: var(--docs-header-h, 60px); }
.docs-body a:hover { color: var(--text); }
.docs-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.docs-ic-sm { width: 15px; height: 15px; }
.docs-count { margin-left: 6px; padding: 1px 7px; border-radius: var(--r-tag); background: rgba(255, 255, 255, 0.08); font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted); vertical-align: middle; }
.docs-muted { color: var(--muted); }
.docs-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Kopf ---------- */
.docs-header { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--docs-header-h, 60px); border-bottom: 1px solid var(--line); background: rgba(16, 17, 20, 0.92); backdrop-filter: blur(10px); }
.docs-header-inner { display: flex; align-items: center; gap: 14px; height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 20px; }
.docs-nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r-btn); background: transparent; color: var(--text); place-items: center; cursor: pointer; }
.docs-body.no-side .docs-nav-toggle { display: none !important; }
.docs-brand .brand-kicker { display: none; }
.docs-brand .brand-mark { width: 30px; height: 30px; }
.docs-brand .brand-cube { width: 18px; height: 18px; box-shadow: 3px 3px 0 #8a140f; }
.docs-title { padding-left: 14px; border-left: 1px solid var(--line); font-family: var(--font-display); font-size: 15px; font-weight: 700; white-space: nowrap; }
.docs-topnav { display: flex; gap: 4px; margin-left: 8px; }
.docs-topnav a { padding: 7px 10px; border-radius: var(--r-btn); font-size: 14px; font-weight: 600; color: var(--muted); }
.docs-topnav a:hover { background: var(--surface-hover); color: var(--text); }
.docs-search { position: relative; display: flex; align-items: center; gap: 8px; margin-left: auto; width: min(380px, 100%); height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--bg-2); color: var(--muted); }
.docs-search:focus-within { border-color: var(--line-strong); color: var(--text); }
.docs-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.docs-search input::-webkit-search-cancel-button { appearance: none; }
.docs-search kbd { font-size: 11px; }
.docs-search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; max-height: min(60vh, 480px); overflow-y: auto; padding: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.docs-search-results[hidden] { display: none; }
.docs-search-results a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.docs-search-results a:hover, .docs-search-results a.is-active { background: var(--surface-hover); }
.docs-search-results a strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-search-results a span.docs-result-sum { grid-column: 2; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-search-results .docs-empty { padding: 10px; font-size: 13px; color: var(--muted); }

/* ---------- Layout ---------- */
.docs-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 220px; gap: 0 40px; max-width: 1480px; margin: 0 auto; padding: 0 20px; align-items: start; }
.docs-layout.no-side { grid-template-columns: minmax(0, 1fr) 220px; }
.docs-layout.no-toc { grid-template-columns: 280px minmax(0, 1fr); }
.docs-layout.no-side.no-toc { grid-template-columns: minmax(0, 1fr); }
.docs-main { min-width: 0; padding: 28px 0 56px; }
.docs-side { position: sticky; top: var(--docs-header-h, 60px); max-height: calc(100vh - var(--docs-header-h, 60px)); overflow-y: auto; padding: 22px 12px 32px 0; border-right: 1px solid var(--line); scrollbar-width: thin; }
.docs-side-backdrop { display: none; }
.docs-toc { position: sticky; top: var(--docs-header-h, 60px); max-height: calc(100vh - var(--docs-header-h, 60px)); overflow-y: auto; padding: 32px 0 32px 16px; border-left: 1px solid var(--line); font-size: 13px; scrollbar-width: thin; }
.docs-toc-title { margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.docs-toc ul { list-style: none; }
.docs-toc li a { display: block; padding: 4px 0 4px 10px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; }
.docs-toc li.d3 a { padding-left: 22px; font-size: 12.5px; }
.docs-toc li a:hover, .docs-toc li a.is-active { color: var(--text); border-left-color: var(--red); }

/* Seitenleiste */
.docs-side-title { margin-bottom: 10px; }
.docs-side-title a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.docs-side-title .docs-ic { color: var(--red); }
.docs-side-list, .docs-side-list ul { list-style: none; }
.docs-side-list ul { margin-left: 10px; padding-left: 8px; border-left: 1px solid var(--line); }
.docs-side-list li { position: relative; }
.docs-side-list li > a { display: block; padding: 5px 30px 5px 10px; border-radius: 7px; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.docs-side-list li > a:hover { background: var(--surface-hover); color: var(--text); }
.docs-side-list li.is-active > a { background: rgba(226, 35, 26, 0.12); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--red); }
.docs-side-heading { margin: 16px 0 4px; padding: 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.docs-side-heading:first-child { margin-top: 0; }
.docs-side-toggle { position: absolute; top: 3px; right: 2px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.docs-side-toggle:hover { background: var(--surface-hover); color: var(--text); }
.docs-side-toggle .docs-ic { width: 14px; height: 14px; transition: transform 0.15s ease; }
.docs-side-toggle[aria-expanded="true"] .docs-ic { transform: rotate(90deg); }
.docs-side-list li > a .docs-count { font-size: 11px; }
.docs-side-list li > a .docs-ic { display: inline-block; width: 14px; height: 14px; margin: -2px 6px 0 0; vertical-align: middle; }
.docs-side-all { margin-top: 18px; padding: 0 10px; font-size: 13px; }
.docs-side-all a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.docs-side-filter, .docs-list-filter { display: flex; align-items: center; gap: 8px; height: 34px; margin: 0 0 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--bg-2); color: var(--muted); }
.docs-side-filter input, .docs-list-filter input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; outline: none; }
.docs-list-filter { max-width: 420px; height: 40px; margin: 8px 0 14px; }
.docs-side-ref ul ul { max-height: none; }
[data-filtered="out"] { display: none !important; }

/* Brotkrumen */
.docs-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; font-size: 13px; color: var(--muted); }
.docs-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.docs-crumbs a:hover { color: var(--text); }
.docs-crumbs [aria-current] { color: var(--text); }

/* ---------- Artikel ---------- */
.docs-article { max-width: 880px; }
.docs-article.is-wide, .docs-ref, .docs-ref-index { max-width: none; }
.docs-article-head { margin: 14px 0 26px; }
.docs-article-head h1 { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.12; }
.docs-article-head h1 code { font-size: 0.9em; }
.docs-lead { margin-top: 10px; font-size: 17px; line-height: 1.55; color: #c9ccd3; }
.docs-ref-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 12px 0 4px; font-size: 14px; }
.docs-ref-meta dt { display: inline; color: var(--muted); }
.docs-ref-meta dt::after { content: ": "; }
.docs-ref-meta dd { display: inline; }

.docs-prose { font-size: 16px; line-height: 1.65; color: #dfe1e6; }
.docs-prose > * + * { margin-top: 14px; }
.docs-prose h2 { margin: 36px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); scroll-margin-top: calc(var(--docs-header-h, 60px) + 16px); }
.docs-prose h3 { margin: 26px 0 8px; font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text); scroll-margin-top: calc(var(--docs-header-h, 60px) + 16px); }
.docs-prose h4, .docs-prose h5, .docs-prose h6 { margin: 20px 0 6px; font-size: 16px; font-weight: 700; color: var(--text); scroll-margin-top: calc(var(--docs-header-h, 60px) + 16px); }
.docs-prose a { color: #ff8a84; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 138, 132, 0.45); }
.docs-prose a:hover { color: #ffb3af; }
.docs-prose a.docs-ref, .docs-prose a.docs-type { text-decoration: none; }
.docs-prose a.docs-ref code, .docs-type code { color: #ff8a84; }
.docs-prose a.docs-ref:hover code { background: rgba(226, 35, 26, 0.14); }
.docs-prose ul, .docs-prose ol { padding-left: 26px; }
.docs-prose li + li { margin-top: 6px; }
.docs-prose li > ul, .docs-prose li > ol { margin-top: 6px; }
.docs-prose img, .docs-prose video { height: auto; margin: 6px 0; border-radius: 10px; border: 1px solid var(--line); background: #0b0c0f; }
.docs-prose figure { margin: 14px 0; }
.docs-prose figcaption { margin-top: 6px; font-size: 13.5px; color: var(--muted); text-align: center; }
.docs-prose blockquote { padding: 8px 16px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.docs-prose hr { border: 0; border-top: 1px solid var(--line); }
.docs-prose strong { color: var(--text); }
.docs-prose code, .docs-member code, .docs-ref-head code, .docs-results code, .docs-ref-list code, .docs-landing-col code { padding: 1px 6px; border-radius: 6px; background: #1d1f25; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.88em; color: #f2f3f5; }
.docs-prose pre code, .docs-code pre code { padding: 0; border: 0; background: transparent; font-size: 13.5px; }
.docs-anchor { margin-left: 8px; color: var(--muted); font-weight: 400; text-decoration: none !important; opacity: 0; transition: opacity 0.15s ease; }
h1:hover .docs-anchor, h2:hover .docs-anchor, h3:hover .docs-anchor, h4:hover .docs-anchor, .docs-member-head:hover .docs-anchor { opacity: 1; }
.docs-anchor:hover { color: var(--text); }

/* Tabellen */
.docs-table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.docs-table th, .docs-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: normal; }
.docs-table code { white-space: nowrap; }
.docs-col-value { width: 1%; white-space: nowrap; }
.docs-enum-table .docs-member-name { width: auto; min-width: 0; }
.docs-enum-table .docs-member-name a code { color: var(--text); }
.docs-enum-table tr:target td { background: rgba(226, 35, 26, 0.08); }
.docs-table th { background: var(--bg-2); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table td p + p { margin-top: 6px; }

/* Code */
.docs-code { margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; background: #0b0c0f; overflow: hidden; }
.docs-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 5px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.docs-copy { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.docs-copy:hover { background: var(--surface-hover); color: var(--text); border-color: var(--line-strong); }
.docs-copy .docs-ic { width: 14px; height: 14px; }
.docs-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; color: #e6e8ec; tab-size: 4; }
.tok-k { color: #ff7b72; }
.tok-s { color: #a5d6ff; }
.tok-c { color: #8b949e; font-style: italic; }
.tok-n { color: #79c0ff; }
.tok-b { color: #d2a8ff; }
.tok-f { color: #ffa657; }

/* Hinweise */
.docs-alert { display: flex; gap: 12px; margin: 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 10px; background: var(--bg-2); font-size: 15px; line-height: 1.55; }
.docs-alert-ic { display: grid; place-items: center; width: 20px; height: 24px; flex: none; }
.docs-alert-ic .docs-ic { width: 18px; height: 18px; }
.docs-alert-body { min-width: 0; flex: 1; }
.docs-alert-body > * + * { margin-top: 8px; }
.docs-alert-title { font-weight: 700; color: var(--text); }
.docs-alert.is-info { border-left-color: #4c8dff; } .docs-alert.is-info .docs-alert-ic { color: #7fb0ff; }
.docs-alert.is-warning { border-left-color: #e8a317; } .docs-alert.is-warning .docs-alert-ic { color: #f3b640; }
.docs-alert.is-error { border-left-color: var(--red); } .docs-alert.is-error .docs-alert-ic { color: #ff6b63; }
.docs-alert.is-success { border-left-color: #4cc38a; } .docs-alert.is-success .docs-alert-ic { color: #6ee7a1; }

/* Komponenten */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 14px 0; }
.docs-grid-item { min-width: 0; }
.docs-grid-item > * + * { margin-top: 8px; }
.docs-cols { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px; margin: 14px 0; }
.docs-cols > * { min-width: 0; }
.docs-card { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.docs-card > * + * { margin-top: 8px; }
.docs-card-body { flex: 1; }
.docs-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.docs-card-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
a.docs-card { color: var(--text); }
a.docs-card:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.docs-sample p { color: var(--muted); font-size: 14px; }
.docs-typo { display: block; }
.docs-typo-h1, .docs-typo-h2, .docs-typo-h3, .docs-typo-h4, .docs-typo-h5, .docs-typo-h6 { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.docs-typo-h1 { font-size: 30px; } .docs-typo-h2 { font-size: 24px; } .docs-typo-h3 { font-size: 20px; } .docs-typo-h4 { font-size: 18px; } .docs-typo-h5 { font-size: 16px; } .docs-typo-h6 { font-size: 15px; }
.docs-typo-body2, .docs-typo-caption { font-size: 14px; color: var(--muted); }
.docs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--bg-2); color: var(--text) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; }
.docs-btn:hover { background: var(--surface-hover); }
.docs-btn-contained { border-color: var(--red); background: var(--red); color: #fff !important; }
.docs-btn-contained:hover { background: var(--red-hover); }
.docs-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.docs-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: var(--r-tag); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); white-space: nowrap; vertical-align: middle; }
.docs-chip.is-warn { border-color: rgba(232, 163, 23, 0.5); color: #f3b640; }
.docs-swatch { display: inline-block; width: 14px; height: 14px; margin: 0 4px -2px 0; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--swatch, #000); }
.docs-tabs { margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.docs-tab-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.docs-tab-bar button { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.docs-tab-bar button:hover { color: var(--text); background: var(--surface-hover); }
.docs-tab-bar button[aria-selected="true"] { color: var(--text); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.docs-tab { padding: 14px 16px; }
.docs-tab > * + * { margin-top: 12px; }
.docs-tab + .docs-tab { border-top: 1px solid var(--line); }
.docs-tabs.is-ready .docs-tab { border-top: 0; }
.docs-tabs.is-ready .docs-tab:not(.is-active) { display: none; }
.docs-tabs.is-ready .docs-tab-label { display: none; }
.docs-tab-label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.docs-acc { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.docs-acc > summary { padding: 10px 14px; font-weight: 600; cursor: pointer; list-style: none; }
.docs-acc > summary::-webkit-details-marker { display: none; }
.docs-acc > summary::before { content: "›"; display: inline-block; width: 16px; color: var(--muted); transition: transform 0.15s ease; }
.docs-acc[open] > summary::before { transform: rotate(90deg); }
.docs-acc-body { padding: 0 14px 14px 30px; }
.docs-acc-body > * + * { margin-top: 10px; }
.docs-steps { counter-reset: step; list-style: none; padding-left: 0; }
.docs-step { position: relative; padding: 0 0 14px 40px; }
.docs-step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }
.docs-step-label { font-weight: 700; color: var(--text); }
.docs-video { position: relative; aspect-ratio: 16 / 9; margin: 14px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.docs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.docs-detail { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.docs-links a { color: #ff8a84; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 138, 132, 0.45); }

/* Vor/Zurück */
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.docs-pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.docs-pager a:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.docs-pager small { font-size: 12px; color: var(--muted); }
.docs-pager span { font-weight: 600; }
.docs-pager-next { text-align: right; align-items: flex-end; }

/* Quelle & Lizenz */
.docs-attribution { max-width: 880px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.docs-attribution p + p { margin-top: 6px; }
.docs-attribution a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Referenz ---------- */
.docs-members { margin-top: 36px; }
.docs-members > h2 { display: flex; align-items: center; margin-bottom: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 24px; font-weight: 700; scroll-margin-top: calc(var(--docs-header-h, 60px) + 16px); }
.docs-member-table { margin: 0 0 18px; }
.docs-member-table table { font-size: 14.5px; }
.docs-member-table td { padding: 8px 12px; }
.docs-member-name { width: 34%; min-width: 220px; }
.docs-member-name .docs-ic-sm { display: inline-block; margin: -2px 6px 0 0; vertical-align: middle; color: var(--muted); }
.docs-member-name a { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.docs-member-name a:hover { color: #ff8a84; }
.docs-member-type { display: block; margin: 2px 0 0 21px; font-size: 12.5px; color: var(--muted); }
.docs-member-type code { padding: 0; border: 0; background: transparent; font-size: 12.5px; }
.docs-member-row.is-deprecated .docs-member-name a, .docs-ref-list li.is-deprecated code { text-decoration: line-through; color: var(--muted); }
.docs-member { padding: 16px 0 18px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--docs-header-h, 60px) + 16px); }
.docs-member:target { background: linear-gradient(90deg, rgba(226, 35, 26, 0.08), transparent 60%); box-shadow: inset 3px 0 0 var(--red); padding-left: 12px; margin-left: -12px; }
.docs-member-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; font-size: 16px; }
.docs-member-head .docs-ic-sm { color: var(--muted); }
.docs-sig { font-family: var(--font-mono); font-size: 15px !important; font-weight: 600; padding: 2px 8px !important; }
.docs-sig-type { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); }
.docs-member .docs-prose { font-size: 15px; }
.docs-member .docs-prose > * + * { margin-top: 10px; }
.docs-member .docs-chips { margin: 0 0 8px; }
.docs-params { margin-top: 12px; }
.docs-returns { margin-top: 10px; font-size: 14.5px; }
.docs-returns h5 { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.docs-returns ul { padding-left: 20px; }
.docs-inherited { margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.docs-inherited > summary { padding: 10px 14px; font-weight: 600; cursor: pointer; }
.docs-inherited > summary a { color: #ff8a84; }
.docs-inherited-group { padding: 0 14px 12px; font-size: 14px; line-height: 1.7; }
.docs-inherited-group h5 { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.docs-inherited-group a { font-family: var(--font-mono); font-size: 13px; color: #dfe1e6; }
.docs-inherited-group a:hover { color: #ff8a84; }
.docs-letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
.docs-letters a { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.docs-letters a:hover { border-color: var(--line-strong); color: var(--text); }
.docs-letter h2 { margin: 26px 0 8px; font-family: var(--font-mono); font-size: 18px; color: var(--muted); scroll-margin-top: calc(var(--docs-header-h, 60px) + 16px); }
.docs-ref-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 16px; }
.docs-ref-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 7px 10px; border-radius: 8px; }
.docs-ref-list li:hover { background: var(--surface-hover); }
.docs-ref-list li a { color: var(--text); }
.docs-ref-list li a:hover code { color: #ff8a84; }
.docs-ref-summary { flex-basis: 100%; font-size: 13px; color: var(--muted); }

/* ---------- Startseite ---------- */
.docs-hero { max-width: 820px; margin: 24px 0 36px; }
.docs-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.docs-hero-search { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; margin-top: 22px; padding: 0 6px 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-2); color: var(--muted); }
.docs-hero-search:focus-within { border-color: #4a4d57; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04); }
.docs-hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.docs-hero-search input::-webkit-search-cancel-button { appearance: none; }
.docs-hero-search .btn { height: 38px; }
.docs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 40px; }
.docs-tile { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); color: var(--text); transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s var(--ease-out); }
.docs-tile:hover { border-color: var(--line-strong); background: var(--surface-hover); transform: translateY(-2px); }
.docs-tile .docs-ic { width: 26px; height: 26px; color: var(--red); }
.docs-tile strong { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.docs-tile span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.docs-tiles-ref { margin: 18px 0 8px; }
.docs-landing-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.docs-landing-col { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.docs-landing-col h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.docs-landing-col h2 .docs-ic { color: var(--red); }
.docs-landing-col p { display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.7; }
.docs-landing-col p.docs-links { display: block; margin-top: 12px; font-size: 14px; }
.docs-landing-col a { color: var(--text); }
.docs-landing-col a:hover code { color: #ff8a84; }

/* Suche */
.docs-results { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.docs-results a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--text); }
.docs-results a:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.docs-results a strong { font-size: 15px; font-weight: 600; }
.docs-results a span:not(.docs-chip) { grid-column: 2; font-size: 13.5px; color: var(--muted); }

/* ---------- Quellrahmen und Karten ---------- */
/* <div class="container"> der Quelle ist ein 16:9-Rahmen für Bild/Video (Inline-Style wird beim Rendern entfernt);
   die gleichnamige Hub-Klasse aus hub.css (max-width, Polster) darf hier nicht greifen */
.docs-prose .container { position: relative; aspect-ratio: 16 / 9; max-width: none; margin-bottom: 14px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #0b0c0f; }
.docs-prose .container img, .docs-prose .container iframe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; object-fit: cover; }
.docs-grid-item > .container { margin-top: 0; }
/* Knopfzeilen der Quelle (<div> ohne Klasse mit <a><Button>, <UseStudioButton>): nebeneinander statt übereinander */
.docs-prose div:not([class]):has(> a > .docs-btn, > p > .docs-btn) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.docs-prose div:not([class]):has(> a > .docs-btn, > p > .docs-btn) > p { display: contents; }
.docs-prose a:has(> .docs-btn) { display: inline-flex; text-decoration: none; }
/* Karten: Kontakt- und Umgebungsschatten plus Lichtkante oben; Hover hebt an */
.docs-card, .docs-tile, .docs-landing-col, .docs-pager a, .docs-results a, .docs-prose .container { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35); }
a.docs-card:hover, .docs-tile:hover, .docs-pager a:hover, .docs-results a:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.45); }

/* ---------- Schmal ---------- */
@media (max-width: 1240px) {
  .docs-layout, .docs-layout.no-side { grid-template-columns: 280px minmax(0, 1fr); }
  .docs-layout.no-side { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-topnav { display: none; }
}
@media (max-width: 960px) {
  .docs-layout, .docs-layout.no-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-nav-toggle { display: grid; }
  .docs-title { display: none; }
  .docs-side { position: fixed; inset: var(--docs-header-h, 60px) auto 0 0; z-index: 45; width: min(320px, 86vw); max-height: none; padding: 16px 14px 32px; border-right: 1px solid var(--line); background: var(--bg); transform: translateX(-102%); transition: transform 0.2s var(--ease-out); }
  .docs-body.nav-open .docs-side { transform: none; }
  .docs-side-backdrop { display: block; position: fixed; inset: var(--docs-header-h, 60px) 0 0 0; z-index: 44; background: rgba(0, 0, 0, 0.55); }
  .docs-side-backdrop[hidden] { display: none; }
  .docs-search { width: auto; flex: 1; }
  .docs-search kbd { display: none; }
  .docs-cols { grid-template-columns: 1fr; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-member-name { width: auto; min-width: 0; }
  .docs-member-table table, .docs-member-table tbody, .docs-member-table tr, .docs-member-table td { display: block; }
  .docs-member-table td { border-bottom: 0; padding: 4px 12px; }
  .docs-member-table tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .docs-member-table tr:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .docs-header-inner { gap: 10px; padding: 0 12px; }
  .docs-brand .brand-copy { display: none; }
  .docs-layout { padding: 0 14px; }
  .docs-hero-search .btn { display: none; }
  .docs-tiles { grid-template-columns: 1fr 1fr; }
  .docs-tile { padding: 14px; }
  .docs-tile span { display: none; }
}
