/* Hilfe, FAQ, Datenschutz, Impressum: Dokumentationsseiten im Lagebericht-Stil (Tokens aus app.css). */
.doc { max-width: 880px; margin: 0 auto; padding: 8px 0 48px; color: var(--ink); }
.doc-head h1 { margin: 0 0 8px; }
.doc-lead { margin: 0 0 16px; font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.doc section { margin-top: 40px; scroll-margin-top: 24px; }
.doc h2 { margin: 0 0 12px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 1.35rem; }
.doc h3 { margin: 24px 0 4px; font-size: 1.05rem; }
.doc p, .doc li { line-height: 1.6; max-width: 72ch; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc a { color: var(--brand); }

.doc-toc { margin: 20px 0 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--hairline); }
.doc-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 32px; }
.doc-toc li { margin: 3px 0; break-inside: avoid; }

.doc-facts { margin: 12px 0 0; display: grid; gap: 8px; }
.doc-facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.doc-facts dt { color: var(--muted); font-weight: 600; }
.doc-facts dd { margin: 0; }

.doc-table td .sub { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.doc-table th, .doc-table td { vertical-align: top; }
.doc code { padding: 1px 5px; background: var(--ground); border-radius: 3px; font-size: .92em; }

.doc-steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 10px; }
.doc-steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 52px; background: var(--surface); border: 1px solid var(--hairline); }
.doc-steps li::before { content: counter(step); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; border-radius: 50%; }

/* Bilder mit nummerierter Legende */
.help-shot { margin: 28px 0 0; padding: 0; }
.help-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(16, 19, 52, .08); background: var(--surface); }
.help-legend { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: legend; display: grid; gap: 8px; }
.help-legend li { counter-increment: legend; position: relative; padding-left: 38px; min-height: 28px; }
.help-legend li::before { content: counter(legend); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; background: #d6401f; color: #fff; font-weight: 700; font-size: .85rem; border-radius: 50%; }

/* Fragen und Antworten */
.faq { margin: 0; border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.3rem; color: var(--brand); }
.faq[open] summary::after { content: '–'; }
.faq summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.faq p { margin: 0 0 16px; }


@media (max-width: 640px) {
  .doc-toc ol { columns: 1; }
  .doc-facts div { grid-template-columns: 1fr; gap: 2px; }
  .doc h2 { font-size: 1.2rem; }
}
@media print { .doc-toc { display: none; } .faq:not([open]) p { display: block; } }
