/* Gewerkbuch — Website Stufe A
 *
 * Farbwerte aus hausfarbe.md (entschieden am 18.11.2026).
 * ⚠ #369E36 hat nur 3,44:1 Kontrast — "reicht fuer Flaechen, nicht fuer Text".
 *    Gruen ist deshalb Flaeche und Knopf, NIE Fliesstext.
 *    Gruener Text nur auf dunklem Grund, und dann #78D178 (4,51:1 auf #3B4F62).
 *
 * KEINE externen Ressourcen: keine Webfonts, kein Tracking, keine Einbettungen.
 * Das ist kein Sparzwang, sondern eine Entscheidung — so braucht die Seite
 * keinen Cookie-Banner und keine Einwilligung. Begruendung in README.md.
 */

:root {
  --blau:        #3B4F62;  /* Grundton, Stahlblau — 8,47:1 auf Weiss */
  --gruen:       #369E36;  /* Leitfarbe — nur Flaechen und Knoepfe */
  --gruen-hell:  #78D178;  /* Gruen auf dunklem Grund */
  --text:        #22303c;
  --text-leise:  #5a6b7a;
  --linie:       #dde3e8;
  --flaeche:     #f6f8f9;
  --weiss:       #ffffff;
  --mass:        70ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
}

.rand { max-width: var(--mass); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Kopf ---------- */

header.kopf {
  background: var(--blau);
  color: var(--weiss);
  padding: 2rem 0 2.25rem;
}
header.kopf img { height: 44px; width: auto; display: block; }
header.kopf p.anriss {
  font-size: 1.35rem;
  line-height: 1.4;
  margin: 1.5rem 0 0;
  max-width: 34ch;
}
header.kopf p.anriss strong { color: var(--gruen-hell); font-weight: 600; }

/* ---------- Inhalt ---------- */

main { padding: 2.5rem 0 1rem; }

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.75rem 0 0.75rem;
  color: var(--blau);
}
h2:first-child { margin-top: 0; }

h3 { font-size: 1.05rem; margin: 1.75rem 0 0.4rem; color: var(--blau); }

p { margin: 0.75rem 0; }

a { color: var(--blau); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--gruen); }

ul.liste { list-style: none; padding: 0; margin: 1rem 0; }
ul.liste li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  border-bottom: 1px solid var(--linie);
  position: relative;
}
ul.liste li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05em;
  width: 0.6rem; height: 0.6rem;
  background: var(--gruen);
  border-radius: 2px;
}
ul.liste li:last-child { border-bottom: none; }

.kasten {
  background: var(--flaeche);
  border-left: 4px solid var(--gruen);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}
.kasten p:first-child { margin-top: 0; }
.kasten p:last-child  { margin-bottom: 0; }

.knopf {
  display: inline-block;
  background: var(--gruen);
  color: var(--weiss);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 4px;
  margin: 0.4rem 0.4rem 0.4rem 0;
}
.knopf:hover { background: #2d8a2d; color: var(--weiss); }

dl.daten { margin: 1rem 0; }
dl.daten dt { font-weight: 600; color: var(--blau); margin-top: 0.9rem; }
dl.daten dd { margin: 0.15rem 0 0; }

/* Bildschirmabzug aus der Vorfuehrfassung — seit 18.11.2026 ist einer da */
.abzug { margin: 1.75rem 0; }
.abzug img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--linie);
  border-radius: 6px;
}
.abzug figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-leise);
  text-align: center;
}

/* ---------- Fuss ---------- */

footer.fuss {
  margin-top: 3.5rem;
  border-top: 1px solid var(--linie);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
  color: var(--text-leise);
}
footer.fuss a { color: var(--text-leise); }
footer.fuss nav a { margin-right: 1.25rem; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  header.kopf p.anriss { font-size: 1.15rem; }
  h2 { font-size: 1.2rem; }
}
