/* Gruppe D (Hilfe, Datenschutz, Impressum, Einrichtung): ruhiger Weißraum, Szenen statt Absätze. Tokens aus app.css. */

/* Lesebreite und Rhythmus */
.doc { padding-top: 32px; padding-bottom: 72px; }
.doc section { margin-top: 64px; }
.doc p, .doc li { max-width: 65ch; }
.doc-head h1 { margin-bottom: 12px; }
.doc-lead { max-width: 60ch; margin-bottom: 0; }
.doc-sub { margin: 4px 0 0; color: var(--muted); }
.doc-plain { margin: 20px 0 0; padding-left: 1.2rem; }
.doc-action { margin: 28px 0 0; }
.doc a.btn-primary, .doc a.btn-primary:hover { color: #fff; text-decoration: none; }
.doc a:focus-visible, .doc .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Inhaltsübersicht: ruhige Linkliste mit Haarlinien statt Kasten */
.doc-toc { margin-top: 40px; padding: 0; background: none; border: 0; border-top: 1px solid var(--rule); }
.doc-toc ol { padding: 0; list-style: none; columns: 3; column-gap: 40px; }
.doc-toc li { margin: 0; max-width: none; break-inside: avoid; border-bottom: 1px solid var(--hairline); }
.doc-toc a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.doc-toc a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.doc-toc a:focus-visible { outline: 3px solid var(--focus); outline-offset: -2px; }

/* Überschrift mit Szene */
.doc-head-row { display: flex; align-items: center; gap: 24px; margin: 0 0 8px; padding-top: 20px; border-top: 2px solid var(--ink); }
.doc-head-row h2 { margin: 0; padding: 0; border: 0; }

/* Schritte der Hilfe: ruhig, ohne Kästen */
.doc-steps { gap: 0; margin: 20px 0 0; }
.doc-steps li { padding: 14px 0 14px 48px; background: none; border: 0; border-bottom: 1px solid var(--hairline); }
.doc-steps li::before { left: 0; top: 14px; }

/* Fragen */
.faq summary { min-height: 52px; display: flex; align-items: center; padding: 10px 36px 10px 0; }
.faq summary::after { top: 50%; transform: translateY(-50%); }
.faq p { max-width: 62ch; color: var(--muted); }
.faq[open] summary { color: var(--brand); }

/* Bilder der Hilfe: mehr Luft */
.help-shot { margin-top: 48px; }
.help-shot h3 { margin-top: 0; font-size: 1.15rem; }

/* Datenschutz: das Wichtigste in drei Punkten */
.doc-three { margin-top: 48px; }
.doc-three h2 { margin: 0 0 20px; padding: 0; border: 0; font-size: 1.35rem; }
.doc-three ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 20px 0 0; list-style: none; border-top: 2px solid var(--ink); }
.doc-three li { display: grid; gap: 12px; align-content: start; padding: 0 28px 0 0; }
.doc-three li + li { padding-left: 28px; border-left: 1px solid var(--hairline); }
.doc-three p { margin: 0; line-height: 1.55; }

/* Einrichtung: Bild-Schritte */
.setup .wiz { margin-top: 32px; gap: 28px; }
.setup .wiz-step { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 16px; }
.wiz-pic { display: block; }
.wiz-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wiz-step.is-todo .wiz-pic { opacity: .55; }
.setup .wiz-panel { margin-top: 48px; }
.setup .wiz-panel .lead { max-width: 60ch; }
.setup .wiz-rights { margin-top: 32px; }

@media (max-width: 960px) {
  .doc-toc ol { columns: 2; }
}
@media (max-width: 640px) {
  .doc { padding-bottom: 48px; }
  .doc section { margin-top: 40px; }
  .doc-three { margin-top: 32px; }
  .doc-toc { margin-top: 32px; }
  .doc-toc ol { columns: 1; }
  .doc-head-row { gap: 14px; }
  .doc-three ul { grid-template-columns: 1fr; }
  .doc-three li, .doc-three li + li { grid-template-columns: 44px 1fr; align-items: start; gap: 14px; padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--hairline); }
  .doc-three li:last-child { border-bottom: 0; }
  .doc-action .btn { width: 100%; justify-content: center; min-height: 44px; }
  .help-shot { margin-top: 32px; }
  .setup .wiz { gap: 16px; }
  .setup .wiz-step { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; }
  .setup .wiz-panel { margin-top: 32px; }
}

/* Tippziele auf Hilfe, Datenschutz, Impressum: Knoepfe und Mail-Links mindestens 44 px hoch */
.doc .btn, .doc a[href^="mailto:"] { min-height: 44px; }
.doc a[href^="mailto:"] { display: inline-flex; align-items: center; }
