/* Modul wiki – nur CSS-Variablen aus style.css (Hell/Dunkel) */
.wk-suche input { font-size: 1.05rem; padding: .7rem .9rem; }
.wk-liste { list-style: none; margin: 0; padding: 0; }
.wk-liste li { padding: .35rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; justify-content: space-between; }
.wk-liste li:last-child { border-bottom: 0; }
.wk-liste a { text-decoration: none; color: var(--text); }
.wk-liste a:hover b { color: var(--brand); text-decoration: underline; }
.wk-treffer { display: block; padding: .6rem .5rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; border-radius: var(--radius-sm); }
.wk-treffer:hover, .wk-treffer:focus-visible { background: var(--brand-soft); }
.wk-snip { color: var(--muted); margin-top: .15rem; }
mark { background: var(--warn-soft); color: var(--text); border-bottom: 2px solid var(--warn); border-radius: 2px; padding: 0 .1em; }
.wk-meta { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: .6rem 0 1rem; font-size: .9rem; }
.wk-meta dt { color: var(--muted); }
.wk-meta dd { margin: 0; overflow-wrap: anywhere; }
.wk-layout { display: block; }
.wk-layout.mit-toc { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.wk-toc { position: sticky; top: .75rem; max-height: calc(100vh - 2rem); overflow: auto; font-size: .85rem; }
.wk-toc ol { margin: 0; padding-left: 0; list-style: none; }
.wk-toc li { padding: .15rem 0; }
.wk-toc a { color: var(--text); text-decoration: none; }
.wk-toc a:hover { color: var(--brand); text-decoration: underline; }
.wk-abs { scroll-margin-top: .75rem; }
.wk-abs.ziel { border-color: var(--brand); }
.wk-abs h3 { display: flex; gap: .5rem; align-items: baseline; }
.wk-anker { opacity: 0; text-decoration: none; font-weight: 400; }
.wk-abs:hover .wk-anker, .wk-anker:focus { opacity: 1; }
.wk-text { line-height: 1.6; max-width: 80ch; }
.wk-text ul { margin: .3rem 0 .6rem 1.2rem; padding-left: .4rem; list-style: none; }
.wk-text ul ul { margin-left: 1rem; }
.wk-text p { margin: .4rem 0; }
@media (max-width: 800px) { .wk-layout.mit-toc { grid-template-columns: 1fr; } .wk-toc { position: static; max-height: 14rem; } }
@media print {
  .wk-toc, .actions, .wk-suche, .wk-anker { display: none !important; }
  .wk-layout.mit-toc { display: block; }
  .wk-abs { break-inside: avoid; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); }
  mark { background: none; border: 0; }
}
