/* Anleitungsseite /start/ — ergänzt /style.css, ohne die Startseite zu verändern.
   Mobil zuerst: eine Spalte, grosse Schrift, grosse Tippflächen. */

.guide-page {
  --link: #b8300f;          /* dunklerer Akzent: 5,5:1 auf --white (der Akzent selbst nur 3,7:1) */
  --note-bg: #fff3bf;
  --soft: #ecece6;
}

/* === Kopf === */
.guide-head {
  background: var(--black);
  color: var(--white);
}

.guide-head-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
}

.guide-wordmark {
  display: inline-block;
  padding: 0.6rem 0;
  min-height: 2.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}

.guide-wordmark .wm-accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 10;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus { top: 0.5rem; }

/* === Seite === */
.guide {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.guide h1 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.guide h2 {
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 3.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 1rem;
}

.guide h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 1rem;
}

.guide p,
.guide ul,
.guide ol { margin-bottom: 1rem; }

.guide ul,
.guide ol { padding-left: 1.5rem; }

.guide li { margin-bottom: 0.5rem; }

.guide a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

.guide a:hover { color: var(--black); }

.guide :focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.guide-lead {
  font-size: 1.25rem;
  color: #333;
}

/* Bezeichnungen, wie sie auf dem Display stehen */
.guide q,
.display-text {
  font-style: normal;
  font-weight: 700;
}

.guide q::before { content: "«"; }
.guide q::after  { content: "»"; }

kbd {
  display: inline-block;
  padding: 0 0.45rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.4;
}

/* === Inhaltsverzeichnis === */
.toc {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem 0.5rem;
  background: var(--soft);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 0.25rem;
  padding: 0;
  border: 0;
  font-size: 1.1rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li { margin: 0; }

.toc a {
  display: block;
  padding: 0.7rem 0;
  min-height: 2.75rem;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.toc li:first-child a { border-top: 0; }

/* === Schritte === */
ol.steps {
  list-style: none;
  counter-reset: schritt;
  padding: 0;
}

ol.steps > li {
  counter-increment: schritt;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.5rem;
}

ol.steps > li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--link);
  color: #fff;
  font-weight: 800;
  line-height: 2.25rem;
  text-align: center;
}

ol.steps > li > p:last-child { margin-bottom: 0; }

/* === Hinweise === */
.note {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--soft);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note > :last-child { margin-bottom: 0; }

.note strong:first-child { display: block; }

/* Platzhalter: bewusst auffällig, damit keiner unbemerkt live geht */
.platzhalter {
  background: var(--note-bg);
  border: 2px dashed var(--ink);
  padding: 0 0.35rem;
  font-weight: 600;
}

/* === Bilder === */
.guide figure {
  margin: 1.25rem 0 1.75rem;
  max-width: 34rem;
}

.guide figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
}

.guide figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #444;
}

/* === Tabellen === */
.table-wrap { margin: 1.25rem 0 2rem; }

.guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.guide caption {
  text-align: left;
  font-weight: 700;
  font-size: 1.15rem;
  padding-bottom: 0.5rem;
}

.guide th,
.guide td {
  padding: 0.75rem 0.6rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #bdbdb5;
  overflow-wrap: anywhere;
}

.guide thead th {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: 0.95rem;
}

.guide tbody th { width: 38%; font-weight: 700; }

.guide tbody tr:last-child > * { border-bottom: 1px solid #bdbdb5; }

/* Schmale Handys: Meldung und Erklärung untereinander statt nebeneinander */
@media (max-width: 30rem) {
  .guide thead { position: absolute; left: -9999px; }

  .guide table,
  .guide tbody,
  .guide tr,
  .guide th,
  .guide td { display: block; width: auto; }

  .guide tbody th { width: auto; padding-bottom: 0.1rem; border-top: 2px solid var(--ink); }

  .guide td { padding-top: 0; border-top: 0; }
}

/* === Fuss === */
.guide-foot {
  background: var(--black);
  color: var(--white);
  padding: 2rem 1.25rem;
  text-align: center;
}

.guide-foot a { color: var(--white); }

.guide-foot .wordmark-sm { color: #b5b5ae; }

.guide-foot p + p { margin-top: 0.5rem; }

@media (min-width: 48rem) {
  .guide { padding-top: 3rem; }
  .guide h2 { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
