/* Artenschutz – ecotone intern. Ruhiges internes Werkzeug, festes helles Thema. */
:root {
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Zodiak', Georgia, 'Times New Roman', serif;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem; --text-lg: 1.125rem; --text-xl: 1.5rem;
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem; --s12: 3rem;
  --bg: #f6f4ee; --surface: #fffdf8; --surface-2: #efece3; --line: #dcd8cc; --line-strong: #bdb8a8;
  --text: #1f2a22; --muted: #5a645c; --faint: #7d857e;
  --accent: #2f5d3a; --accent-hover: #244a2e; --accent-soft: #e2eadc; --on-accent: #fbfaf5;
  --warn: #7a4a00; --warn-bg: #f5e9cf; --err: #8f2a24; --err-bg: #f5e0dc; --ok: #2a5a36; --ok-bg: #e0ebdb;
  --ehz-g: #3c7a48; --ehz-u: #b58a12; --ehz-s: #a8392f;
  --radius: 6px; --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(31, 42, 34, 0.06), 0 4px 14px rgba(31, 42, 34, 0.05);
  --sidebar: 15.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; font-weight: 600; text-wrap: balance; }
h1 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.005em; }
h2 { font-size: var(--text-lg); }
h3 { font-size: var(--text-base); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: var(--s2) var(--s4); z-index: 100; }
.skip:focus { left: var(--s2); top: var(--s2); }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.stack > * + * { margin-top: var(--s4); }
.stack-s > * + * { margin-top: var(--s2); }
.stack-l > * + * { margin-top: var(--s8); }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

/* Wasserzeichen: liegt ueber jeder Seite, auch im Druck */
#wm { position: fixed; inset: 0; pointer-events: none; z-index: 60; background-repeat: repeat; opacity: 0.085; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Anmeldung */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 30rem) 1fr; }
.login-panel { background: var(--surface); border-right: 1px solid var(--line); padding: var(--s12) var(--s10); display: flex; flex-direction: column; justify-content: center; gap: var(--s6); }
.login-side { padding: var(--s12) var(--s10); display: flex; flex-direction: column; justify-content: center; gap: var(--s5); max-width: 40rem; }
.login-side ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.login-side li + li { margin-top: var(--s2); }
.wordmark { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; color: var(--accent); letter-spacing: 0.01em; line-height: 1; }
.wordmark small { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: var(--s2); }

/* Grundgeruest */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: var(--s6) var(--s4); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--s6); }
.side .wordmark { padding: 0 var(--s3); font-size: 1.5rem; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 2.75rem; padding: 0 var(--s3); border-radius: var(--radius); cursor: pointer; color: var(--text); font-size: var(--text-sm); font-weight: 500; }
.nav button:hover { background: var(--surface-2); }
.nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav .count { font-size: var(--text-xs); background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 0.45rem; line-height: 1.35rem; }
.nav-label { font-size: var(--text-xs); color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; padding: 0 var(--s3); margin-bottom: var(--s1); }
.side-foot { margin-top: auto; padding: var(--s3); border-top: 1px solid var(--line); font-size: var(--text-sm); }
.side-foot .name { font-weight: 600; overflow-wrap: anywhere; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s8); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top .search { flex: 1 1 auto; max-width: 28rem; }
.tagline { font-size: var(--text-xs); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem; white-space: nowrap; }
.content { padding: var(--s8); max-width: 70rem; width: 100%; }
.content.narrow { max-width: 52rem; }
.btn.menu-btn { display: none; }
.foot { margin-top: auto; padding: var(--s4) var(--s8); border-top: 1px solid var(--line); color: var(--faint); font-size: var(--text-xs); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.print-kopf { display: none; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s6); margin-bottom: var(--s6); }
.page-head p { color: var(--muted); max-width: 46rem; margin-top: var(--s2); }
.back { all: unset; cursor: pointer; color: var(--muted); font-size: var(--text-sm); display: inline-flex; align-items: center; min-height: 2.75rem; }
.back:hover { color: var(--accent); }
.back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.back::before { content: "‹"; margin-right: 0.4rem; font-size: 1.2em; line-height: 1; }

/* Bedienelemente */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 2.75rem; padding: 0 var(--s4); border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: var(--text-sm); cursor: pointer; text-decoration: none; transition: background-color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn.sec { background: var(--surface); color: var(--accent-hover); border-color: var(--line-strong); }
.btn.sec:hover { background: var(--surface-2); color: var(--accent-hover); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--accent); padding: 0 var(--s2); }
.btn.quiet:hover { background: var(--surface-2); }
.btn.danger { background: var(--surface); color: var(--err); border-color: #d7b3ae; }
.btn.danger:hover { background: var(--err-bg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn.sm { min-height: 2.25rem; padding: 0 var(--s3); }
label.field { display: block; }
label.field > span, .label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--s1); }
.hint { font-size: var(--text-xs); color: var(--muted); margin-top: var(--s1); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], input[type="number"], select, textarea { width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input::placeholder { color: var(--faint); }
.check { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s2) 0; min-height: 2.75rem; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--accent); flex: none; }
.check.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s4); }

/* Flaechen */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); }
.card.flat { background: transparent; }
.card h2 + p, .card h3 + p { margin-top: var(--s1); }
.note { border-radius: var(--radius); padding: var(--s3) var(--s4); font-size: var(--text-sm); border: 1px solid var(--line); background: var(--surface-2); }
.note.ok { background: var(--ok-bg); border-color: #bcd0b6; color: #1d3f26; }
.note.warn { background: var(--warn-bg); border-color: #e2cf9f; color: #553400; }
.note.err { background: var(--err-bg); border-color: #dfb9b3; color: #6b1e19; }
.note strong { font-weight: 600; }
.tag { display: inline-block; font-size: var(--text-xs); font-weight: 600; line-height: 1.5; padding: 0 0.5rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); border-color: #bcd0b6; color: #1d3f26; }
.tag.warn { background: var(--warn-bg); border-color: #e2cf9f; color: #553400; }
.tag.err { background: var(--err-bg); border-color: #dfb9b3; color: #6b1e19; }
.tag.acc { background: var(--accent-soft); border-color: #c3d2ba; color: var(--accent-hover); }

.list { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.item { display: flex; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
button.item { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); border-top: 1px solid var(--line); cursor: pointer; }
button.item:first-child { border-top: 0; }
button.item:hover { background: var(--surface-2); }
button.item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.item .t { font-weight: 600; }
.item .d { color: var(--muted); font-size: var(--text-sm); margin-top: 2px; }
.item .meta { margin-left: auto; text-align: right; font-size: var(--text-sm); color: var(--muted); flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s1); }
.item .nr { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: var(--text-sm); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.item .nr.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chev::after { content: "›"; color: var(--faint); font-size: 1.3rem; line-height: 1; margin-left: var(--s2); }
.item .meta.chev { position: relative; padding-right: 1.5rem; }
.item .meta.chev::after { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; min-width: 6rem; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar.low > i { background: var(--ehz-s); }
.bar.mid > i { background: var(--ehz-u); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--s4); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s4); }
.kpi b { display: block; font-size: var(--text-xl); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi span { font-size: var(--text-sm); color: var(--muted); }

/* Schritte */
.steps { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0; counter-reset: st; }
.steps li { counter-increment: st; display: flex; align-items: center; gap: var(--s2); font-size: var(--text-sm); color: var(--muted); padding: var(--s1) var(--s3) var(--s1) var(--s1); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.steps li::before { content: counter(st); width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: var(--text-xs); font-weight: 600; }
.steps li.done { color: var(--text); }
.steps li.done::before { content: "✓"; background: var(--accent); color: var(--on-accent); }
.steps li.now { border-color: var(--accent); color: var(--accent-hover); font-weight: 600; background: var(--accent-soft); }
.steps li.now::before { background: var(--accent); color: var(--on-accent); }

/* Tabs und Filter */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s1); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
.tabs button { all: unset; box-sizing: border-box; min-height: 2.75rem; padding: 0 var(--s3); font-size: var(--text-sm); font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--accent-hover); border-bottom-color: var(--accent); font-weight: 600; }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { all: unset; box-sizing: border-box; min-height: 2.25rem; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--text-sm); cursor: pointer; display: inline-flex; align-items: center; gap: var(--s2); background: var(--surface); }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip .n { font-size: var(--text-xs); opacity: 0.75; }

/* Tabellen */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td.c, th.c { text-align: center; }
.ehz { display: inline-flex; align-items: center; gap: 0.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ehz::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line-strong); }
.ehz.G::before { background: var(--ehz-g); } .ehz.U::before { background: var(--ehz-u); } .ehz.S::before { background: var(--ehz-s); }
.matrix td, .matrix th { padding: 0.4rem 0.5rem; white-space: nowrap; }
.matrix th.rot { height: 11rem; vertical-align: bottom; }
.matrix th.rot span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 500; max-height: 10.5rem; overflow: hidden; text-overflow: ellipsis; }
.matrix td.done { background: var(--ok-bg); color: #1d3f26; }
.matrix td.na { color: var(--line-strong); }
.matrix td.path { box-shadow: inset 0 -2px 0 var(--accent); }

/* Lesetext */
.reader { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: var(--s8); align-items: start; }
.toc { position: sticky; top: 5rem; font-size: var(--text-sm); border-left: 1px solid var(--line); padding-left: var(--s4); max-height: calc(100vh - 7rem); overflow-y: auto; }
.toc ol { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.toc li + li { margin-top: var(--s2); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.prose { max-width: 46rem; overflow-wrap: break-word; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s10); padding-top: var(--s5); border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: var(--s6); }
.prose h4, .prose h5 { margin-top: var(--s5); font-size: var(--text-sm); text-transform: none; color: var(--muted); }
.prose ul, .prose ol { margin: var(--s3) 0 0; padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s1); }
.prose li > ul, .prose li > ol { margin-top: var(--s1); }
.prose code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.86em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
.prose blockquote { margin: var(--s4) 0 0; padding: var(--s3) var(--s4); background: var(--surface-2); border-radius: var(--radius); color: var(--muted); }
.prose .tw { max-width: none; }
.prose strong { font-weight: 600; }
.timer { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.timer i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ehz-g); }
.timer.pause i { background: var(--line-strong); }
.sticky-bar { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: var(--s3) 0; margin-top: var(--s8); z-index: 5; }

/* Fragen */
.q { max-width: 46rem; }
.q-text { font-size: var(--text-lg); font-weight: 600; line-height: 1.4; }
.opts { display: grid; gap: var(--s2); margin-top: var(--s4); }
.opt { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; min-height: 2.75rem; }
.opt:hover { border-color: var(--accent); }
.opt input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--accent); flex: none; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt.right { border-color: #8fb089; background: var(--ok-bg); }
.opt.wrong { border-color: #d59d96; background: var(--err-bg); }
.opt.lock { cursor: default; }
.opt .mark { margin-left: auto; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; padding-top: 0.2rem; }
.dots { display: flex; flex-wrap: wrap; gap: var(--s1); }
.dots button { all: unset; box-sizing: border-box; width: 2rem; height: 2rem; border-radius: var(--radius); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: var(--text-xs); cursor: pointer; font-variant-numeric: tabular-nums; background: var(--surface); }
.dots button.ans { background: var(--accent-soft); border-color: #b9cbb0; }
.dots button.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); font-weight: 600; }
.dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Unterschrift */
.sig { border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; position: relative; max-width: 34rem; touch-action: none; }
.sig canvas { display: block; width: 100%; height: 11rem; cursor: crosshair; touch-action: none; }
.sig::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: 2.2rem; border-bottom: 1px solid var(--line-strong); pointer-events: none; }
.codebox { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: var(--text-lg); letter-spacing: 0.08em; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s2) var(--s4); display: inline-block; user-select: all; }

.skel { background: linear-gradient(90deg, var(--surface-2) 25%, #e7e3d8 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--radius); height: 1rem; }
.skel.h { height: 4rem; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.empty { padding: var(--s8) var(--s5); text-align: left; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty b { display: block; color: var(--text); margin-bottom: var(--s1); }
dl.kv { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: var(--s2) var(--s4); margin: 0; font-size: var(--text-sm); }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
ul.plain { margin: 0; padding-left: 1.2rem; }
ul.plain li + li { margin-top: var(--s1); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

@media (max-width: 62rem) {
  .reader { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border-left: 0; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); order: -1; max-height: none; background: var(--surface); }
}
@media (max-width: 54rem) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: auto; z-index: 30; flex-direction: row; flex-wrap: wrap; align-items: center; padding: var(--s2) var(--s4); gap: var(--s2); border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .side .wordmark { font-size: 1.25rem; padding: 0; }
  .side .wordmark small { display: none; }
  .btn.menu-btn { display: inline-flex; margin-left: auto; }
  .side .navwrap, .side .side-foot { display: none; width: 100%; }
  .side.open .navwrap, .side.open .side-foot { display: block; }
  .side.open { max-height: 100vh; overflow-y: auto; }
  .top { position: static; padding: var(--s3) var(--s4); }
  .top .tagline { display: none; }
  .top .search { max-width: none; }
  .sticky-bar { position: static; }
  .sticky-bar .row.between { align-items: flex-start; flex-direction: column; }
  .content { padding: var(--s5) var(--s4); }
  .foot { padding: var(--s4); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-panel { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s8) var(--s5); }
  .login-side { padding: var(--s6) var(--s5); }
  .item { flex-wrap: wrap; padding: var(--s3) var(--s4); }
  button.item { padding: var(--s3) var(--s4); flex-wrap: wrap; }
  .item .meta { margin-left: 0; text-align: left; align-items: flex-start; width: 100%; flex-direction: row; flex-wrap: wrap; gap: var(--s2) var(--s3); }
  .chev::after { display: none; }
  .item .meta.chev { padding-right: 0; }
  dl.kv { grid-template-columns: 1fr; gap: 0; }
  dl.kv dd { margin-bottom: var(--s2); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .side, .top, .foot, .sticky-bar, .btn, .back, .toc, .tabs, .chips, .skip { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; font-size: 10.5pt; }
  .print-kopf { display: block; font-size: 8pt; color: #444; border-bottom: 1px solid #999; padding-bottom: 4pt; margin-bottom: 10pt; }
  #wm { opacity: 0.12; }
  .card, .list, .tw { break-inside: avoid; }
}
.nav .count[hidden] { display: none; }
