/* mstagesjournal.auenbyte.de/hilfe/ — Ergänzung zu site.css: Inhaltsverzeichnis, Themenliste,
   Abgrenzung, Querverweise, Suche. Der Block zwischen HILFE:GENERIERT ANFANG/ENDE kommt aus
   dem Generator im App-Repo und wird hier nicht von Hand geändert. */
.hilfe { max-width: 760px; }
.hilfe h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; margin: 10px 0 14px; }
.hilfe h1 em { font-style: normal; color: var(--acc); }
.hilfe > .lead { margin-bottom: 28px; }
.hilfe .back { display: inline-flex; gap: 6px; color: var(--muted); text-decoration: none; margin-bottom: 24px; font-size: .92rem; }
.hilfe .back:hover { color: var(--text); }
.hilfe a { color: var(--acc); }

/* Suche: blendet Themen aus, die nicht passen (nur Oberfläche, Inhalt bleibt im Dokument) */
.hilfe-suche { margin: 0 0 32px; display: grid; gap: 6px; }
.hilfe-suche input { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink-2); color: var(--text); font: inherit; font-size: 1rem; }
.hilfe-suche input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }
.hilfe.filtert .help-section:not(.treffer), .hilfe.filtert .toc { display: none; }
.hilfe.filtert dl.help > dt:not(.treffer), .hilfe.filtert dl.help > dt:not(.treffer) + dd { display: none; }

/* Inhaltsverzeichnis */
.toc { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); padding: 18px 22px; margin: 0 0 44px; }
.toc strong { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { font-size: .92rem; line-height: 1.8; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--acc); }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* Bereiche */
.help-section { scroll-margin-top: calc(var(--header-h) + 16px); margin-bottom: 8px; }
.help-section > h2 { font-size: 1.5rem; padding-top: 26px; border-top: 1px solid var(--line); margin: 48px 0 18px; }
.help-section:first-of-type > h2 { border-top: none; padding-top: 0; margin-top: 0; }
.help-section > p { color: var(--muted); margin-bottom: 10px; }

/* Ein Thema: Kurzantwort zuerst, sie trägt allein */
dl.help { margin: 0; }
dl.help dt { scroll-margin-top: calc(var(--header-h) + 16px); margin: 30px 0 8px; font-family: var(--f-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; }
dl.help dd { margin: 0; }
dl.help dd > p { margin: 0 0 10px; color: var(--muted); max-width: 70ch; }
dl.help dd > p:last-child { margin-bottom: 0; }
dl.help dd > p:first-child { color: var(--text); font-size: 1rem; margin-bottom: 14px; }
dl.help dd > p:first-child strong { font-weight: 500; }
dl.help dt:target { color: var(--acc); }
dl.help dt:target + dd { border-left: 2px solid var(--acc); padding-left: 14px; margin-left: -16px; }
dl.help dt em { font-style: normal; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; white-space: nowrap; }
dl.help dd > p.pfad { font-size: .86rem; color: var(--faint); }
dl.help dd > p.pfad span { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
dl.help dd > p.muted { font-size: .88rem; color: var(--faint); border-left: 2px solid var(--line-strong); padding-left: 12px; margin: 12px 0; }
dl.help dd > p.verwandt { font-size: .86rem; color: var(--faint); margin-top: 12px; }
dl.help dd > p.verwandt a { color: var(--muted); }
dl.help dd > p.verwandt a:hover { color: var(--acc); }
.hilfe kbd { font-family: var(--f-mono); font-size: .8rem; color: var(--text); background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
