/* Die Handbuchseiten (hilfe/*.html, ausgeliefert unter /hilfe/…).

   Wie app.css: KEINE Farbe steht hier, jede kommt aus /css/profile.css. Das
   Handbuch sieht damit in jedem der zehn Profile aus wie die App, aus der man
   kommt. tests/core/hilfe.test.js wacht darueber wie
   tests/public/farben-im-blatt.test.js ueber app.css.

   Anders als app.css darf diese Seite scrollen: sie ist ein Dokument, keine
   Anwendung mit festem Rahmen. */

:root { --radius: 14px; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--akzent); }

.zurueck {
  position: sticky; top: 0; z-index: 1;
  background: var(--hg-erhoben);
  border-bottom: 1px solid var(--rand);
  padding: 10px 16px;
}
.zurueck a { text-decoration: none; font-weight: 600; }
/* Im Deckel der App schliesst dessen Kreuz (chat.js, handbuchOeffnen). */
.eingebettet .zurueck { display: none; }

.hilfe {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}

h1 { font-size: 1.7rem; line-height: 1.25; margin: 20px 0 8px; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 8px; }
h3 { font-size: 1.1rem; margin: 24px 0 6px; }
h4 { font-size: 1rem; margin: 18px 0 4px; }

/* Ein Sprung ueber einen Anker landet sonst unter der klebenden Zeile. */
section, h3[id], details[id] { scroll-margin-top: 56px; }

section {
  border-top: 1px solid var(--rand);
  padding-top: 24px;
  margin-top: 32px;
}

.einleitung { color: var(--text-leise); }

.schnellhilfe, .inhalt {
  background: var(--hg-karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0;
}
.schnellhilfe { border-color: var(--akzent); }
.schnellhilfe h2, .inhalt h2 { font-size: 1rem; margin: 0 0 6px; }
.schnellhilfe ul, .inhalt ol { margin: 0; padding-left: 1.3em; }
.schnellhilfe li, .inhalt li { padding: 3px 0; }

ol, ul { padding-left: 1.4em; }
li { margin: 4px 0; }

figure { margin: 18px 0; }
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rand);
  border-radius: 10px;
}
/* Ganze Handybilder sind hoch; auf dem Rechner nicht ueber den Schirm. */
figure img.handy { max-width: min(100%, 300px); }
figcaption { color: var(--text-leise); font-size: .9rem; margin-top: 6px; }

.hinweis {
  background: var(--hinweis-hg);
  color: var(--hinweis-text);
  border-radius: 10px;
  padding: 10px 14px;
}
.hinweis.warnung {
  background: var(--warn-hg);
  color: var(--warn-text);
  border: 1px solid var(--warn-rand);
}

.klein { color: var(--text-leise); font-size: .92rem; }

dl.erklaerung { margin: 12px 0; }
dl.erklaerung dt { font-weight: 600; margin-top: 10px; }
dl.erklaerung dd { margin: 2px 0 0 0; }

/* Die Geraeteabschnitte klappen auf: wer ein iPhone hat, muss nicht durch
   Android scrollen. Der Kopf traegt das Fingermass. */
details {
  background: var(--hg-erhoben);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  margin: 12px 0;
  padding: 0 16px;
}
details[open] { padding-bottom: 12px; }
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  min-height: 24px;
}

table.stufen { border-collapse: collapse; width: 100%; margin: 10px 0; }
table.stufen th, table.stufen td {
  border-bottom: 1px solid var(--rand);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}
table.stufen th { color: var(--text-leise); font-weight: 600; font-size: .92rem; }

.fuss {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 32px;
}
/* Wie die Versionszeile in den Einstellungen: klein, gedaempft, markierbar. */
.version {
  color: var(--text-leise);
  font-size: .8rem;
  user-select: text;
}
