/* Raum „Wissen" — nur was style.css nicht kennt. Praefix w-. Masse aus dem Entwurf (README). */

/* ── Schiene ── */
.w-sektion { margin: 6px 0 4px; }
.w-sektion-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 6px 14px 4px; color: rgba(250, 247, 242, .44); }
button.w-sektion-kopf { background: none; border: 0; cursor: pointer; text-align: left; }
button.w-sektion-kopf:hover { color: var(--on-ink-strong); background: rgba(250, 247, 242, .035); }
.w-sektion-name { flex: 1; min-width: 0; }
.w-sektion-zahl { flex: none; }
.w-pfeil { display: inline-block; flex: none; width: 10px; font-size: 9px; transition: transform .12s; }
.w-pfeil.auf { transform: rotate(90deg); }
.w-mehr { display: block; width: 100%; box-sizing: border-box; background: none; border: 0; border-left: 2px solid transparent; padding: 6px 14px 6px 18px; text-align: left; cursor: pointer;
  font-family: var(--data); font-size: 10px; letter-spacing: .06em; color: var(--copper); }
.w-mehr:hover { background: rgba(250, 247, 242, .035); }
.w-leer-schiene { margin: 0; padding: 12px 16px; font-size: 12.5px; color: rgba(250, 247, 242, .42); }
.w-treffer .sub { white-space: normal; }
.w-fehler { margin: 0; padding: 10px 14px; font-size: 12.5px; line-height: 1.45; color: #c97064; }

/* ── Konzeptseite ── */
.w-kopf { display: grid; gap: 10px; margin-bottom: 22px; }
.w-sektion-titel { color: var(--copper); }
.w-titel { margin: 0; font-size: 34px; line-height: 1.16; font-weight: 600; text-wrap: pretty; max-width: 32ch; }
.w-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted); }
.w-nowrap { white-space: nowrap; }
.w-pfad { font-size: 10.5px; background: var(--paper-deep); padding: 2px 6px; border-radius: 3px; word-break: break-all; }
.w-lead { margin: 0 0 22px; font-size: 17px; line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; }

/* ── Arbeit aus diesem Konzept ── */
.w-arbeit { border: 1px solid var(--hair); border-left: 3px solid var(--copper); border-radius: 4px; background: var(--card); padding: 14px 18px; display: grid; gap: 10px; margin-bottom: 22px; }
.w-arbeit-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.w-arbeit-satz { font-size: 11px; color: var(--muted); }
.w-themen { display: flex; flex-wrap: wrap; gap: 6px; }
.w-thema { font-size: 12px; }
.w-muted { color: var(--muted); }
.w-warten { color: #8a6a2f; }
.w-tickets { display: grid; }
.w-ticket { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 7px 0; border-top: 1px solid var(--hair-soft); font-size: 13px; }
.w-ticket:hover { color: var(--ox); }
.w-ticket-id { font-size: 11px; color: var(--ox); }
.w-ticket-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Lesetext (fertig gerendertes HTML aus dem Wiki) ── */
.w-text { min-width: 0; font-size: 15.5px; line-height: 1.72; color: #2a2621; }
.w-text > * { max-width: 82ch; }
.w-text p { font-size: 15.5px; line-height: 1.72; margin: 0 0 15px; color: #2a2621; }
.w-text h1, .w-text h2, .w-text h3, .w-text h4 { font-family: var(--book); letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.w-text h1 { font-size: 28px; font-weight: 600; margin: 38px 0 12px; }
.w-text h2 { font-size: 24px; font-weight: 600; margin: 38px 0 12px; padding-top: 16px; border-top: 1px solid var(--hair-soft); line-height: 1.25; scroll-margin-top: 16px; }
.w-text h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; line-height: 1.3; scroll-margin-top: 16px; }
.w-text h4 { font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
.w-text ul, .w-text ol { margin: 0 0 15px; padding-left: 1.4em; }
.w-text li { margin: 0 0 5px; }
.w-text a { color: var(--ox); }
.w-text a:hover { color: var(--ink); }
.w-text blockquote { margin: 0 0 15px; padding: 2px 0 2px 16px; border-left: 3px solid var(--copper); color: var(--ink-soft); }
.w-text hr { border: 0; border-top: 1px solid var(--hair-soft); margin: 26px 0; }
.w-text img { max-width: 100%; height: auto; }
.w-text code { font-family: var(--data); font-size: .86em; background: var(--paper-deep); padding: 1px 5px; border-radius: 3px; }
.w-text pre { max-width: none; margin: 0 0 15px; padding: 12px 14px; background: var(--paper-deep); border: 1px solid var(--hair-soft); border-radius: 4px; overflow: auto; font-size: 12.5px; line-height: 1.55; }
.w-text pre code { background: none; padding: 0; font-size: inherit; }
.w-text table { max-width: none; display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 18px; font-size: 13.5px; line-height: 1.5; }
.w-text th, .w-text td { text-align: left; vertical-align: top; padding: 6px 12px; border: 1px solid var(--hair-soft); }
.w-text th { background: var(--paper-deep); font-weight: 600; }

/* ── Verzeichnis rechts (nur ab 1400 px) ── */
.w-toc-liste { display: grid; gap: 2px; }
.w-toc-kopf { margin-bottom: 6px; }
.w-toc button.w-tief { padding-left: 22px; font-size: 11.5px; }
@media (max-width: 1400px) { .w-toc { display: none !important; } }
