/* Shared, deliberately light identity. Fonts are bundled in fonts.css. */
:root{
 color-scheme:light;
 /* Stabile Inhaltsachse beim Wechsel zwischen kurzen und langen Seiten. */
 scrollbar-gutter:stable;
 --bg:#f6f6f9;--nav:#eeeeF4;--surface:#fff;--raised:#ededf3;
 --line:#d6d6e1;--text:#242431;--muted:#565665;--quiet:#656575;
 --brand:#514394;--accent:var(--brand);--blue-bg:#eae6f6;--good:#286044;--warn:#79520e;--bad:#a3313b;
 --light-hover:#e5e3ef;--light-strong-line:#b9b5ca;
 --light-good-bg:#e8f2ec;--light-warn-bg:#faf0d9;--light-bad-bg:#fbe9eb;
 --mark-bg:#ddd3f7;--mark-line:#8a7bd0;
 /* Neugestaltung 29.10.2026 «Leselicht»: Papier, Markenviolett, Bernstein nur als Signal. */
 --font-ui:'Source Sans 3',system-ui,sans-serif;--font-editorial:'Source Serif 4',Georgia,serif;--font-original:'Source Serif 4',Georgia,serif;--font-mono:'Source Code Pro',ui-monospace,Menlo,monospace;
 --ink:#242431;--ink-2:#3d3d4f;
 --brand-ink:#3b2f78;--brand-50:#f6f4fc;--brand-100:#ede9f8;--brand-200:#dcd5f1;--brand-300:#b9aee0;
 --canvas:#f5f4fa;--paper:#fff;--hairline:rgb(36 36 49/9%);
 --signal:#c28a2b;--signal-50:#fbf4e4;--signal-ink:#6b4a0f;--bad-50:#fbeef0;
 /* Harmonisierung 1.11.2026: drei Radien, zwei Schattenstufen. */
 /* Gemeinsame Rollen: Inhaltsachse, Verwaltungstitel, Tabellenkopf und Touchziel. */
 --layout-content:940px;--layout-wide:1120px;
 --admin-title-size:clamp(40px,4.6vw,56px);--admin-title-leading:1.05;
 --admin-detail-title-size:clamp(34px,4.2vw,50px);--admin-detail-title-leading:1.08;
 --table-heading-size:12.5px;--table-heading-tracking:.1em;
 --touch-target:44px;--nav-target:40px;
 --document-title-size:16px;--document-meta-size:14px;--document-action-size:14.5px;
 --document-action-height:44px;
 --r-xs:4px;--r-sm:8px;--r-md:14px;--r-pill:999px;
 --sh-1:0 1px 2px rgb(36 36 49/6%),0 2px 8px rgb(81 67 148/5%);
 --sh-2:0 2px 4px rgb(36 36 49/5%),0 12px 32px -4px rgb(81 67 148/12%);
 --ring:0 0 0 4px rgb(81 67 148/18%);
 --e-out:cubic-bezier(.22,1,.36,1);--e-inout:cubic-bezier(.65,0,.35,1);--e-beam:cubic-bezier(.4,0,.2,1);--e-pop:cubic-bezier(.34,1.4,.64,1);
}

@media(pointer:coarse){:root{--nav-target:var(--touch-target)}}

/* Common controls, forms, tables and authentication. */
html button:hover:not(:disabled){background:var(--light-hover);border-color:var(--light-strong-line)}
html .primary{background:var(--text);border-color:var(--text);color:var(--surface)}
html .primary:hover:not(:disabled){background:#39364e;border-color:#39364e}
html :is(input,select,textarea,pre,dialog,.empty,.search-form,.source blockquote,.secret-output,.lx-palette){background:var(--surface);border-color:var(--line)}
html :is(input,select,textarea):hover{border-color:var(--light-strong-line)}
html :is(input,textarea)::placeholder{color:var(--quiet)}
html :is(label,summary,.breadcrumb b,.empty strong){color:var(--text)}
html th{background:var(--raised)}
html td{border-color:var(--line)}
html tbody tr:hover{background:var(--raised)}
html :is(.instance-tag,.search-link,.avatar,.doc-icon,.heading-count){border-color:var(--line);background:var(--raised);color:var(--muted)}
html .badge{background:var(--raised);color:var(--muted)}
html :is(.badge.good,.lx-inbox-symbol){background:var(--light-good-bg);color:var(--good);border-color:#b7d7c3}
html .badge.warn{background:var(--light-warn-bg);color:var(--warn)}
html .badge.bad{background:var(--light-bad-bg);color:var(--bad)}
html .badge.info{background:var(--blue-bg);color:var(--accent)}
html :is(.task-symbol,.callout){background:var(--blue-bg);border-color:var(--light-strong-line);color:var(--accent)}
html :is(.callout.warning,.task-symbol.warning){background:var(--light-warn-bg);border-color:#dfcba0;color:var(--warn)}
html :is(.error,.task-symbol.error){background:var(--light-bad-bg);border-color:#e6b7bd;color:var(--bad)}
html .skeleton{background:var(--raised)}
html #notice{background:var(--text);color:var(--surface)}
html :is(.lx-palette-item.active,.kur-card mark){background:var(--blue-bg);color:var(--text);outline-color:var(--light-strong-line)}
html .lx-palette-item.active small{color:var(--muted)}
html kbd{border-color:var(--line)}
html .lx-diff del{background:var(--light-bad-bg);color:var(--bad)}
html .lx-diff ins{background:var(--light-good-bg);color:var(--good)}

/* Shared navigation: colours live with the sidebar in navigation.css. */
html .lx-topbar{background:rgba(246,246,249,.74);-webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px);border-bottom-color:rgba(36,36,49,.07)}

/* Reading, previews, source maps and editorial review. */
html .rg-suggestions{box-shadow:var(--sh-2)}
html .rg-reference-preview{box-shadow:var(--sh-2)}
html .rg-ref footer button[data-reg="citation"]{color:var(--accent)}
html .rg-ref footer button[data-reg="citation"]:not(:hover):not(:focus-visible){background:transparent;border-color:transparent}
html :is(.rg-home .rg-search,.rg-area-card:hover,.rg-ref:hover){border-color:var(--light-strong-line)}
html :is(.rg-shell .rg-inline-reference,.fn-shell .fn-inline-reference):hover{color:var(--accent);background:var(--blue-bg)}
html :is(.fn-source-chip,.fn-annex-note){background:var(--blue-bg);border-color:var(--line)}
html :is(.fn-source-popover,.fn-tree button[aria-current="location"],.fw-shell>.fn-actions a:hover){background:var(--surface);border-color:var(--light-strong-line);color:var(--text)}
html :is(.fn-source-popover header,.fn-source-popover footer){border-color:var(--line)}
html .rg-network-stage{background:var(--surface)}
html .rg-network-edge{stroke:#60647a;opacity:.65}
html .rg-network-edge.rg-edge-focused{stroke:var(--accent);opacity:1}
html .rg-network-node .rg-network-label{fill:var(--text)}
html .rg-network-node circle{stroke:var(--line)}
html .rg-network-seed circle{stroke:var(--text)}
html .rg-network-node:is(:hover,:focus,.rg-selected) circle{stroke:var(--accent)}
html .fw-graph{background:var(--raised);border-color:var(--line)}
html .fw-graph rect{fill:var(--surface)}
html .fw-graph text{fill:var(--text)}
html .fw-graph a:is(:focus,:hover) rect{stroke:var(--accent)}

@media print{
 :root{scrollbar-gutter:auto;color-scheme:light;--bg:#fff;--surface:#fff;--raised:#fff;--text:#000;--muted:#444;--quiet:#555;--accent:#333;--line:#ccc}
}
