@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* PINAX – baut auf latikan-ui.css (Tokens) auf. Light = Default, Dark per data-mode. */
:root {
  --bg: var(--latikan-bg); --surface: var(--latikan-surface); --surface-2: var(--latikan-surface-2);
  --text: var(--latikan-text); --muted: #586070; --line: var(--latikan-border);
  --pri: var(--latikan-primary); --pri-text: #6D28D9; --pri-bg: var(--latikan-primary-bg);
  --ok: #047857; --ok-bg: rgba(5,150,105,.10); --warn: #92580A; --warn-bg: rgba(245,158,11,.16); --bad: #B91C1C; --bad-bg: rgba(220,38,38,.09);
  --side-w: 288px; --toc-w: 220px; --read-w: 46rem;
  --c-violet: rgba(124,58,237,.09); --c-blue: rgba(37,99,235,.09); --c-green: rgba(5,150,105,.10); --c-yellow: rgba(245,158,11,.15); --c-red: rgba(220,38,38,.09); --c-gray: rgba(107,114,128,.12);
  --b-violet: #7C3AED; --b-blue: #2563EB; --b-green: #059669; --b-yellow: #D97706; --b-red: #DC2626; --b-gray: #6B7280;
  --ease: cubic-bezier(.2,.7,.2,1);
}
[data-mode="dark"] {
  --muted: #A6A6B2; --pri-text: #C4B5FD; --ok: #34D399; --ok-bg: rgba(52,211,153,.12); --warn: #FBBF24; --warn-bg: rgba(251,191,36,.12); --bad: #F87171; --bad-bg: rgba(248,113,113,.12);
  --c-violet: rgba(167,139,250,.13); --c-blue: rgba(96,165,250,.13); --c-green: rgba(52,211,153,.12); --c-yellow: rgba(251,191,36,.12); --c-red: rgba(248,113,113,.12); --c-gray: rgba(156,163,175,.14);
  --b-violet: #A78BFA; --b-blue: #60A5FA; --b-green: #34D399; --b-yellow: #FBBF24; --b-red: #F87171; --b-gray: #9CA3AF;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--latikan-font-sans); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
a { color: var(--pri-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--pri); color: #fff; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
kbd { font: 500 .72rem var(--latikan-font-sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: .05rem .4rem; color: var(--muted); background: var(--bg); }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: .9rem .75rem .6rem; gap: .6rem; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 .25rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--latikan-gradient); color: #fff; font-weight: 800; font-size: .95rem; }
.icon-btn { background: transparent; border: 1px solid transparent; border-radius: 8px; width: 34px; height: 34px; display: inline-grid; place-items: center; font-size: 1.1rem; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.searchbox { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .5rem .65rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); text-align: left; transition: border-color .15s, box-shadow .15s; }
.searchbox:hover { border-color: var(--pri); }
.sb-t { flex: 1; font-size: .92rem; }
.quick { display: flex; flex-direction: column; gap: 1px; }
.quick a { padding: .38rem .6rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; }
.quick a:hover { background: var(--surface-2); }
.quick a[aria-current="page"] { background: var(--pri-bg); color: var(--pri-text); font-weight: 600; }
.tree-wrap { flex: 1; overflow: auto; margin: 0 -.35rem; padding: .35rem; border-top: 1px solid var(--line); scrollbar-width: thin; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 12px; padding-left: 6px; border-left: 1px solid var(--line); }
.tn { position: relative; }
.tn-row { display: flex; align-items: center; border-radius: 8px; }
.tn-row:hover { background: var(--surface-2); }
.tn-tog { flex: none; width: 22px; height: 28px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 6px; }
.tn-tog svg { width: 10px; height: 10px; transition: transform .15s var(--ease); }
.tn[aria-expanded="true"] > .tn-row .tn-tog svg { transform: rotate(90deg); }
.tn-sp { flex: none; width: 22px; }
.tn-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: .45rem; padding: .28rem .4rem .28rem 0; color: var(--text); text-decoration: none; font-size: .92rem; border-radius: 8px; }
.tn-link .ti { width: 1.2em; text-align: center; flex: none; }
.tn-link .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-link[aria-current="page"] { color: var(--pri-text); font-weight: 600; }
.tn-row.cur { background: var(--pri-bg); box-shadow: inset 3px 0 0 var(--pri); }
.tn.draft .tt { font-style: italic; color: var(--muted); }
.tn.dz-in > .tn-row { outline: 2px dashed var(--pri); outline-offset: -2px; }
.tn.dz-before > .tn-row { box-shadow: 0 -2px 0 var(--pri); }
.tn.dz-after > .tn-row { box-shadow: 0 2px 0 var(--pri); }
.tn.dragging { opacity: .4; }
.side-foot { display: flex; align-items: center; justify-content: space-between; padding: .3rem .25rem 0; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.main { min-width: 0; outline: none; }
.mbar { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }

/* ---------- Seite ---------- */
.page { display: grid; grid-template-columns: minmax(0, var(--read-w)) var(--toc-w); gap: 3rem; justify-content: center; padding: 2.2rem 2.5rem 6rem; max-width: 1200px; margin: 0 auto; }
.page.no-toc { grid-template-columns: minmax(0, var(--read-w)); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; list-style: none; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pri-text); text-decoration: underline; }
.p-head { display: flex; align-items: flex-start; gap: .8rem; }
.p-icon { font-size: 2.2rem; line-height: 1.15; }
.p-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 750; margin: 0; flex: 1; text-wrap: balance; }
.p-actions { display: flex; gap: .4rem; flex: none; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 1rem 0 1.6rem; padding: .7rem 0; border-block: 1px solid var(--line); font-size: .85rem; color: var(--muted); align-items: center; }
.meta dl { margin: 0; display: flex; gap: .4rem; }
.meta dt { color: var(--muted); } .meta dd { margin: 0; color: var(--text); font-weight: 500; }
.fresh { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .6rem; border-radius: 999px; font-weight: 600; font-size: .8rem; }
.fresh::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.fresh.green { color: var(--ok); background: var(--ok-bg); }
.fresh.yellow { color: var(--warn); background: var(--warn-bg); } .fresh.yellow::before { border-radius: 2px; transform: rotate(45deg); }
.fresh.red { color: var(--bad); background: var(--bad-bg); } .fresh.red::before { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fresh.none { color: var(--muted); background: var(--surface-2); } .fresh.none::before { background: transparent; border: 1.5px solid currentColor; }
.btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: var(--bg); padding: .42rem .85rem; border-radius: 9px; font-size: .88rem; font-weight: 500; text-decoration: none; color: var(--text); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; font-weight: 600; } .btn.pri:hover { background: var(--latikan-primary-hover); }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.fav[aria-pressed="true"] { color: var(--warn); border-color: var(--warn); }

/* Inhalt */
.doc { font-size: 1.04rem; line-height: 1.75; overflow-wrap: anywhere; }
.doc > :first-child { margin-top: 0; }
.doc h1, .doc h2, .doc h3, .pm-doc h1, .pm-doc h2, .pm-doc h3 { line-height: 1.25; letter-spacing: -.02em; font-weight: 700; position: relative; text-wrap: balance; }
.doc h1, .pm-doc h1 { font-size: 1.85rem; margin: 2.2rem 0 .6rem; }
.doc h2, .pm-doc h2 { font-size: 1.4rem; margin: 2rem 0 .5rem; }
.doc h3, .pm-doc h3 { font-size: 1.14rem; margin: 1.6rem 0 .4rem; }
.h-anchor { position: absolute; left: -1.3rem; top: 0; opacity: 0; text-decoration: none; color: var(--muted); font-weight: 500; padding-right: .3rem; }
.doc h1:hover .h-anchor, .doc h2:hover .h-anchor, .doc h3:hover .h-anchor, .h-anchor:focus { opacity: 1; }
.doc p, .pm-doc p { margin: .75rem 0; }
.doc ul, .doc ol, .pm-doc ul, .pm-doc ol { padding-left: 1.5rem; margin: .7rem 0; } .doc li, .pm-doc li { margin: .25rem 0; } .doc li > p, .pm-doc li > p { margin: .2rem 0; }
ul.tasks, ul[data-type="taskList"] { list-style: none; padding-left: .2rem !important; }
li.task, ul[data-type="taskList"] > li { display: flex; gap: .6rem; align-items: flex-start; }
li.task p, ul[data-type="taskList"] p { margin: .2rem 0; }
li.task input, ul[data-type="taskList"] input { margin-top: .4rem; accent-color: var(--pri); width: 1rem; height: 1rem; }
ul[data-type="taskList"] > li > label { flex: none; } ul[data-type="taskList"] > li > div { flex: 1; }
.doc blockquote, .pm-doc blockquote { margin: 1rem 0; padding: .1rem 0 .1rem 1.1rem; border-left: 3px solid var(--pri); color: var(--muted); font-style: italic; }
.doc code, .pm-doc code { font: .88em var(--latikan-font-mono); background: var(--surface-2); padding: .12em .38em; border-radius: 5px; }
.doc pre, .pm-doc pre { background: #0F0F14; color: #E8E8F0; padding: 1rem 1.1rem; border-radius: 12px; overflow: auto; font-size: .88rem; line-height: 1.6; } .doc pre code, .pm-doc pre code { background: none; padding: 0; color: inherit; }
.doc hr, .pm-doc hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.tbl-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; }
.doc table, .pm-doc table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td, .pm-doc th, .pm-doc td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; vertical-align: top; min-width: 5rem; }
.doc tr:first-child > *:not(td), .doc th, .pm-doc th { background: var(--surface); font-weight: 600; }
.doc tr > :first-child { border-left: 0; } .doc tr > :last-child { border-right: 0; } .doc tr:first-child > * { border-top: 0; } .doc tr:last-child > * { border-bottom: 0; }
.pm-doc .selectedCell { background: var(--pri-bg); }
.callout { display: flex; gap: .8rem; margin: 1.1rem 0; padding: .85rem 1rem; border-radius: 12px; border: 1px solid transparent; background: var(--c-violet); border-left: 4px solid var(--b-violet); }
.callout::before { content: attr(data-icon); font-size: 1.25rem; line-height: 1.6; flex: none; }
.callout-body { flex: 1; min-width: 0; } .callout-body > :first-child { margin-top: 0 !important; } .callout-body > :last-child { margin-bottom: 0 !important; }
.callout[data-color="blue"] { background: var(--c-blue); border-left-color: var(--b-blue); } .callout[data-color="green"] { background: var(--c-green); border-left-color: var(--b-green); }
.callout[data-color="yellow"] { background: var(--c-yellow); border-left-color: var(--b-yellow); } .callout[data-color="red"] { background: var(--c-red); border-left-color: var(--b-red); } .callout[data-color="gray"] { background: var(--c-gray); border-left-color: var(--b-gray); }
a.ilink { text-decoration-style: solid; font-weight: 500; } a.xlink::after { content: '↗'; font-size: .75em; margin-left: .15em; }
.gl { border-bottom: 1.5px dotted var(--pri); cursor: help; }
.gltip { position: fixed; z-index: 120; max-width: 320px; background: var(--text); color: var(--bg); padding: .6rem .8rem; border-radius: 10px; font-size: .86rem; line-height: 1.5; box-shadow: var(--latikan-shadow-lg); pointer-events: none; }
.gltip b { display: block; margin-bottom: .15rem; }

/* gesperrter Bereich */
.locked { position: relative; border: 1px dashed var(--line); background: var(--surface); border-radius: 12px; padding: .2rem 1.1rem 1rem; margin: 1rem 0; }
.locked-note { display: flex; gap: .6rem; align-items: flex-start; margin: .8rem 0 .2rem; padding: .6rem .8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: .86rem; color: var(--muted); }
.free-head { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 .4rem; font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.free-head small { font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* TOC */
.toc { position: sticky; top: 2rem; align-self: start; max-height: calc(100vh - 4rem); overflow: auto; font-size: .86rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.toc h2 { font-size: .8rem; margin: 0 0 .6rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: .22rem 0; color: var(--muted); text-decoration: none; line-height: 1.35; position: relative; }
.toc a:hover { color: var(--text); }
.toc a.l2 { padding-left: .8rem; } .toc a.l3 { padding-left: 1.6rem; }
.toc a.on { color: var(--pri-text); font-weight: 600; }
.toc a.on::before { content: ''; position: absolute; left: calc(-1rem - 1px); top: .2rem; bottom: .2rem; width: 2px; background: var(--pri); border-radius: 2px; }
.backlinks, .fb { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.backlinks h2, .fb h2 { font-size: .95rem; margin: 0 0 .6rem; }
.backlinks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; text-decoration: none; color: var(--text); background: var(--bg); }
.chip:hover { border-color: var(--pri); color: var(--pri-text); }
.fb-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.fb form { display: grid; gap: .6rem; margin-top: .8rem; max-width: 30rem; }
.fb fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 1.2rem; }

/* Editor */
.ed-bar { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: .5rem 0; margin: 0 0 .5rem; border-bottom: 1px solid var(--line); }
.tb-row { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.tb-ctx { margin-top: .35rem; padding-top: .35rem; border-top: 1px dashed var(--line); }
.tb-btn { min-width: 32px; height: 32px; padding: 0 .5rem; border: 1px solid transparent; background: transparent; border-radius: 7px; font-size: .88rem; font-weight: 600; color: var(--text); }
.tb-btn:hover { background: var(--surface-2); } .tb-btn.is-active { background: var(--pri-bg); color: var(--pri-text); border-color: var(--pri-glow, transparent); }
.tb-italic { font-style: italic; font-family: serif; } .tb-underline { text-decoration: underline; } .tb-strike { text-decoration: line-through; }
.tb-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.tb-lbl { font-size: .8rem; color: var(--muted); margin-right: .4rem; }
.tb-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line); margin: 0 3px; padding: 0; }
.tb-dot[data-color="violet"] { background: var(--b-violet); } .tb-dot[data-color="blue"] { background: var(--b-blue); } .tb-dot[data-color="green"] { background: var(--b-green); } .tb-dot[data-color="yellow"] { background: var(--b-yellow); } .tb-dot[data-color="red"] { background: var(--b-red); } .tb-dot[data-color="gray"] { background: var(--b-gray); }
.tb-link { display: flex; gap: .4rem; margin-top: .4rem; } .tb-link input { flex: 1; }
.title-input { width: 100%; font: 750 clamp(1.8rem, 3.2vw, 2.4rem)/1.15 var(--latikan-font-sans); letter-spacing: -.025em; border: 0; border-bottom: 2px dashed var(--line); background: transparent; color: var(--text); padding: 0 0 .2rem; }
.title-input:focus { outline: none; border-bottom-color: var(--pri); }
.pm-doc { outline: none; min-height: 40vh; font-size: 1.04rem; line-height: 1.75; padding-bottom: 8rem; }
.pm-doc p.is-editor-empty:first-child::before { content: attr(data-placeholder); color: var(--muted); float: left; height: 0; pointer-events: none; }
.pm-doc a { color: var(--pri-text); }
.pm-doc table { table-layout: fixed; } .pm-doc .tableWrapper { overflow-x: auto; margin: 1rem 0; }
.savebar { position: fixed; left: var(--side-w); right: 0; bottom: 0; z-index: 30; display: flex; gap: .7rem; align-items: center; padding: .7rem 2.5rem; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.savebar .grow { flex: 1; font-size: .86rem; color: var(--muted); } .savebar input { max-width: 18rem; }
.banner { display: flex; gap: .8rem; align-items: flex-start; flex-wrap: wrap; padding: .8rem 1rem; border-radius: 12px; background: var(--warn-bg); color: var(--text); border: 1px solid var(--warn); margin: 0 0 1rem; font-size: .92rem; }
.banner.err { background: var(--bad-bg); border-color: var(--bad); } .banner .grow { flex: 1; min-width: 14rem; }
.sg-box { position: fixed; z-index: 150; width: 320px; max-height: 260px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--latikan-shadow-lg); padding: 4px; }
.sg-item { display: flex; gap: .7rem; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: .4rem .6rem; border-radius: 8px; }
.sg-item.is-sel, .sg-item:hover { background: var(--pri-bg); }
.sg-ico { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; font-size: .8rem; flex: none; background: var(--surface); }
.sg-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; } .sg-txt b { font-size: .9rem; font-weight: 600; } .sg-txt small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-empty { padding: .7rem; color: var(--muted); font-size: .88rem; }

/* Formulare */
input[type=text], input[type=search], select, textarea { font: inherit; font-size: .92rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: .45rem .7rem; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pri); outline-offset: 0; border-color: var(--pri); }
label { font-size: .88rem; font-weight: 500; }

/* Overlay (Suche, Dialoge, Verlauf) */
.ovl { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,20,.45); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 1rem 1rem; backdrop-filter: blur(2px); }
.ovl.drawer { justify-content: flex-end; padding: 0; align-items: stretch; }
.dlg { width: min(640px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--latikan-shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; animation: pop .14s var(--ease); }
.dlg.pad { padding: 1.4rem; gap: .8rem; overflow: auto; } .dlg.pad h2 { margin: 0; font-size: 1.25rem; }
.dlg.pad form { display: grid; gap: .8rem; } .dlg.pad .row { display: flex; gap: .6rem; justify-content: flex-end; }
.drawer .dlg { width: min(460px, 100%); max-height: none; border-radius: 0; border-width: 0 0 0 1px; animation: slide .18s var(--ease); }
@keyframes pop { from { transform: translateY(-6px) scale(.985); opacity: 0; } } @keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.q-in { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.q-in input { flex: 1; border: 0; padding: 0; font-size: 1.1rem; background: transparent; } .q-in input:focus { outline: none; }
.q-list { overflow: auto; padding: .4rem; margin: 0; list-style: none; }
.q-grp { padding: .5rem .7rem .2rem; font-size: .76rem; color: var(--muted); font-weight: 600; }
.q-item { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .75rem; border-radius: 10px; cursor: pointer; }
.q-item[aria-selected="true"] { background: var(--pri-bg); box-shadow: inset 3px 0 0 var(--pri); }
.q-item .qt { font-weight: 600; font-size: .95rem; } .q-item .qb { font-size: .78rem; color: var(--muted); } .q-item .qs { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.q-item mark { background: rgba(245,158,11,.3); color: inherit; border-radius: 3px; padding: 0 1px; }
.q-foot { display: flex; gap: 1rem; padding: .5rem 1rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); background: var(--surface); }
.q-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.rev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; overflow: auto; }
.rev-list li { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
.rev-list li.cur { background: var(--pri-bg); }
.rev-prev { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; max-height: 40vh; overflow: auto; background: var(--surface); font-size: .92rem; }

/* Listen, Start, Glossar */
.wrap { max-width: 1000px; margin: 0 auto; padding: 2.4rem 2.5rem 5rem; }
.wrap h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -.025em; margin: 0 0 .4rem; line-height: 1.15; }
.lead { color: var(--muted); margin: 0 0 1.6rem; max-width: 40rem; }
.hero { background: var(--latikan-gradient); color: #fff; border-radius: 20px; padding: 1.8rem 2rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 2rem; }
.hero h2 { margin: 0 0 .3rem; font-size: 1.4rem; letter-spacing: -.02em; } .hero p { margin: 0; opacity: .92; max-width: 32rem; }
.hero .btn { background: #fff; color: #4C1D95; border-color: #fff; font-weight: 600; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.sec h2 { font-size: .95rem; margin: 0 0 .6rem; color: var(--muted); font-weight: 600; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.plist a { display: flex; gap: .6rem; align-items: center; padding: .5rem .7rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.plist a:hover { background: var(--surface-2); } .plist .pi { width: 1.5em; text-align: center; } .plist small { color: var(--muted); margin-left: auto; white-space: nowrap; }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 1.6rem; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: .2rem; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: end; }
.filters label { display: grid; gap: .2rem; font-size: .78rem; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: .5rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th button { background: none; border: 0; padding: 0; font-weight: 600; color: inherit; font-size: inherit; } .tbl th button:hover, .tbl th[aria-sort] button { color: var(--text); }
.tbl td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tbody tr:hover { background: var(--surface); }
.tbl td a { color: var(--text); font-weight: 600; text-decoration: none; } .tbl td a:hover { color: var(--pri-text); }
.tbl .sub { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.tag { display: inline-block; padding: .05rem .5rem; border-radius: 6px; background: var(--surface-2); font-size: .76rem; margin-right: .25rem; }
.az { display: flex; flex-wrap: wrap; gap: 2px; margin: 1rem 0 1.4rem; position: sticky; top: 0; background: var(--bg); padding: .5rem 0; z-index: 5; }
.az a, .az span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-weight: 600; font-size: .86rem; text-decoration: none; color: var(--text); }
.az a:hover { background: var(--pri-bg); color: var(--pri-text); } .az span { color: var(--line); }
.gl-grp h2 { font-size: 1.5rem; margin: 1.6rem 0 .4rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.gl-item { padding: .7rem 0; } .gl-item dt { font-weight: 650; } .gl-item dt small { font-weight: 400; color: var(--muted); margin-left: .5rem; } .gl-item dd { margin: .15rem 0 0; color: var(--text); }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 300; }
.toast { background: var(--text); color: var(--bg); padding: .65rem 1rem; border-radius: 10px; box-shadow: var(--latikan-shadow-lg); font-size: .9rem; animation: pop .15s var(--ease); max-width: 22rem; }
.toast.err { background: var(--bad); color: #fff; }
.skel { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite linear; height: 1rem; margin: .8rem 0; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) { .page { grid-template-columns: minmax(0, var(--read-w)); padding-inline: 1.5rem; } .toc { display: none; } }
@media (max-width: 860px) {
  .app { display: block; }
  .mbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: .4rem .6rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .brand-m { font-weight: 700; color: var(--text); text-decoration: none; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); transform: translateX(-102%); transition: transform .2s var(--ease); height: 100dvh; }
  .side.open { transform: none; box-shadow: var(--latikan-shadow-lg); }
  .page, .wrap { padding: 1.2rem 1rem 6rem; }
  .p-head { flex-wrap: wrap; } .p-actions { width: 100%; flex-wrap: wrap; }
  .savebar { left: 0; padding: .6rem 1rem; flex-wrap: wrap; } .savebar input { max-width: none; flex: 1 1 100%; }
  .h-anchor { display: none; } .ovl { padding-top: 4vh; } .hero { padding: 1.3rem; }
  .tbl .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .side, .toc, .mbar, .p-actions, .fb, .savebar { display: none !important; } .app { display: block; } }

/* ---------- Tabellen-Werkzeuge, Wiki-Gesundheit, Performance ---------- */
.tb-table { align-items: center; }
.tb-t { font-weight: 500; font-size: .82rem; white-space: nowrap; } .tb-danger { color: var(--bad); }
.hs { margin-top: 2.2rem; } .hs h2 { margin-bottom: .2rem; } .hint { font-size: .88rem; margin: .1rem 0 .8rem; }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; } .tbl-scroll .tbl td { vertical-align: top; }
.row-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doc > * { content-visibility: auto; contain-intrinsic-size: auto 3rem; }
.doc > .locked, .doc > .callout { content-visibility: visible; }

.hs > h2 { font-size: 1.25rem; letter-spacing: -.01em; color: var(--text); text-transform: none; }
