/* static/doku.css — Dokumentation (Runde 182): Kapitel mit nummerierten Schritten
 *
 * Grundlage wie bei den Ressourcen: site_frame.css (Farben, Schrift), site.css (hp-*), ressourcen.css (hp-res-*).
 * Hier nur die Schritte: große Nummer links, Titel, kurze Sätze als nummerierte Liste, Bildschirmfoto, Tipp.
 * Markup: templates/doku/kapitel.html, templates/doku/index.html.
 */

body.hp-doku-page .hp-doku-unter { max-width: 38em; }

.hp-doku-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
.hp-doku-side { grid-column: 1 / span 3; position: sticky; top: 96px; }
.hp-doku-schritte { grid-column: 4 / span 9; }

/* Inhalt (links, mitlaufend) */
body.hp-doku-page .hp-doku-toc ol li a { display: flex; gap: 10px; padding: 9px 0; color: var(--hp-ink); text-decoration: none; font-size: .98rem; line-height: 1.3; }
body.hp-doku-page .hp-doku-toc ol li a:hover { color: var(--hp-blue); }

/* Schritte */
body.hp-doku-page .hp-doku-schritte { list-style: none; margin: 0; padding: 0; }
body.hp-doku-page .hp-doku-schritt {
  list-style: none;
  display: grid;
  grid-template-columns: clamp(56px, 6vw, 84px) minmax(0, 1fr);
  column-gap: clamp(14px, 2vw, 28px);
  margin: 0;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--hp-ink);
  scroll-margin-top: 90px;
}
body.hp-doku-page .hp-doku-schritt:first-child { padding-top: 0; border-top: 0; }
.hp-doku-nr {
  font-family: var(--hp-font);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  font-stretch: 88%;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--hp-blue);
}
body.hp-doku-page .hp-doku-h {
  font-family: var(--hp-font);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--hp-ink);
  margin: .1em 0 .6em;
  text-transform: none;
}
.hp-doku-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* die Sätze eines Schritts: kurze Zeilen mit Punkt (die Nummer gehört dem Schritt) */
body.hp-doku-page .hp-doku-saetze {
  margin: 0 0 1.2em;
  padding: 0 0 0 1.6em;
  font-family: var(--hp-font);
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--hp-ink);
  max-width: 36em;
}
body.hp-doku-page .hp-doku-saetze li { list-style: disc outside; margin: 0 0 .35em; padding-left: .2em; }
body.hp-doku-page .hp-doku-saetze li::marker { content: normal; color: var(--hp-blue); font-size: 1.1em; }

/* Bildschirmfoto */
.hp-doku-bild { margin: 0 0 1em; }
.hp-doku-bild a { display: block; }
.hp-doku-bild img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--hp-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 28px rgba(0, 0, 0, .08);
}
.hp-doku-bild figcaption { margin-top: 8px; font-size: .9rem; color: var(--hp-graphite); }

/* Tipp */
body.hp-doku-page .hp-doku-tipp {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--hp-blue);
  background: var(--hp-white);
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 40em;
}

/* Ende des Kapitels */
.hp-doku-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
body.hp-doku-page .hp-doku-zurueck a { color: var(--hp-graphite); text-decoration: none; font-weight: 500; }
body.hp-doku-page .hp-doku-zurueck a:hover { color: var(--hp-blue); }

@media (max-width: 900px) {
  .hp-doku-side { position: static; grid-column: 1 / -1; margin-bottom: 24px; }
  .hp-doku-schritte { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body.hp-doku-page .hp-doku-schritt { grid-template-columns: 1fr; }
  .hp-doku-nr { margin-bottom: 6px; }
}
