/* genofeld.de — Gestaltung der Textseiten. Anmutung wie parafeld.de (warmes Papier, weiße Pillen, weiche Schatten,
   Systemschrift, dieselben Farbwerte), eigenständig gesetzt. Keine Webschriften, keine fremden Quellen.
   Regel für dieses Projekt: nichts Lesbares unter 14 px (Parafelds 13 px sind hier auf 14 px angehoben). */
:root {
  --grund: #eceae6;
  --papier: #faf8f4;
  --papier-dunkel: #f0ebe1;
  --linie: #ddd6c8;
  --linie-hell: #eee8dc;
  --text: #2c2a26;
  --text-kopf: #3a352c;
  --text-mittel: #5d584d;
  --text-leise: #6d685d; /* Kontrast ≥ 4,5:1 auf --grund und --papier */
  --akzent: #236e9e;     /* Kontrast ≥ 4,5:1 auf --grund */
  --akzent-hell: #e6f0f7;
  --holz: #c9a676;
  --dunkel: #3a352c;
  --gut: #2e7d52;
  --radius: 14px;
  --schatten: 0 4px 16px rgba(0, 0, 0, 0.08);
  --breite: 1120px;
  --spalte: 780px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent); text-underline-offset: 2px; }
a:hover { color: #1b5a85; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--text-kopf); line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 0 0 0.5em; }
h2 { font-size: clamp(23px, 3vw, 29px); margin: 1.9em 0 0.5em; }
h3 { font-size: 19px; margin: 1.6em 0 0.3em; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0.3em 0; }
.symbol { flex: 0 0 auto; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.sprung:focus { left: 16px; }

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--linie); background: var(--papier); color: var(--text-kopf);
  border-radius: 999px; padding: 9px 18px; min-height: 42px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.knopf:hover { background: var(--papier-dunkel); color: var(--text-kopf); }
.knopf.haupt { background: var(--dunkel); border-color: var(--dunkel); color: #fff; }
.knopf.haupt:hover { background: #2a261f; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); transform: translateY(-1px); }
.knopf.gross { padding: 13px 26px; font-size: 17px; min-height: 52px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Knöpfe im Inhalt brechen um, statt die Seite am Handy quer rollen zu lassen (Startseite, „So funktioniert „Aufs Brett
   stellen““: 339 px breit, lief unter 360 px hinaus). Passt der Text in eine Zeile, ändert sich nichts. */
main .knopf { white-space: normal; max-width: 100%; text-align: center; }

/* ---------- Kopf mit Menü als Pille ---------- */
.kopf { position: sticky; top: 0; z-index: 50; padding: 10px 16px 0; }
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; min-height: 54px; position: relative;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09); padding: 6px 6px 6px 18px;
}
/* min-height: Tippfläche 40 px hoch, auch wo am Handy nur das Bildzeichen steht (30 × 26) — der Kopf wird nicht höher */
.marke {
  display: flex; align-items: center; gap: 8px; margin-right: auto; min-height: 40px;
  font-size: 19px; font-weight: 650; letter-spacing: -0.01em; color: var(--text-kopf); text-decoration: none; white-space: nowrap;
}
.marke:hover { color: var(--text-kopf); }
.menue { display: flex; align-items: center; gap: 2px; }
.menue a { padding: 8px 10px; border-radius: 999px; color: var(--text-mittel); text-decoration: none; font-size: 15px; white-space: nowrap; }
.menue a:hover { background: var(--papier-dunkel); color: var(--text); }
.menue a.aktiv { background: var(--papier-dunkel); color: var(--text-kopf); font-weight: 600; }
.kopf .knopf.haupt { margin-left: 6px; }
.kopf .knopf.haupt .kurz { display: none; }
/* Sprachumschalter (website/bauen.mjs → flaggen, erst ab zwei Sprachen): Flaggen rechts im Kopf, am Handy immer sichtbar
   (Hausregel); aktive Sprache mit Rahmen, die anderen abgeblendet. Wie bei parafeld.de. */
.sprachen { display: flex; align-items: center; flex: none; margin-left: 4px; }
.flagge {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 40px; border-radius: 10px; opacity: 0.55;
}
.flagge:hover, .flagge:focus-visible { opacity: 1; background: var(--papier-dunkel); }
.flagge.aktiv { opacity: 1; }
.flagge-bild { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14); }
.flagge.aktiv .flagge-bild { box-shadow: 0 0 0 2px var(--holz); }
/* Fehlerseite: je andere Sprache ein Weg zur Startseite, mit Flagge */
.sprachen-hilfe { list-style: none; padding: 0; }
.sprachen-hilfe a { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; }
.sprachen-hilfe .flagge-bild { flex: none; }
.menue-mobil { display: none; }
.menue-mobil > summary {
  list-style: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; color: var(--text-kopf);
  display: flex; align-items: center; justify-content: center;
}
.menue-mobil > summary::-webkit-details-marker { display: none; }
.menue-mobil > summary:hover, .menue-mobil[open] > summary { background: var(--papier-dunkel); }
.menue-mobil nav {
  position: absolute; right: 0; left: 0; top: calc(100% + 8px);
  background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); padding: 8px;
  display: flex; flex-direction: column;
}
.menue-mobil nav a { padding: 13px 16px; border-radius: 12px; color: var(--text-kopf); text-decoration: none; font-size: 17px; }
.menue-mobil nav a:hover, .menue-mobil nav a.aktiv { background: var(--papier-dunkel); }
.menue-mobil nav a.aktiv { font-weight: 600; }
/* sieben Menüpunkte (seit 22.11.2026 mit „Videoanleitung“): ausgeschrieben erst ab 1080 px, darunter das Aufklappmenü;
   bis 1199 px mit dem kurzen Knopf „Genogramm“ */
@media (max-width: 1079px) {
  .menue { display: none; }
  .menue-mobil { display: block; }
  .kopf { padding: 8px 10px 0; }
  .kopf-innen { padding-left: 14px; }
}
@media (min-width: 1080px) and (max-width: 1199px) {
  .menue a { padding: 8px 8px; }
  .kopf .knopf.haupt .lang { display: none; }
  .kopf .knopf.haupt .kurz { display: inline; }
}
@media (max-width: 559px) {
  .kopf .knopf.haupt .lang { display: none; }
  .kopf .knopf.haupt .kurz { display: inline; }
}
@media (max-width: 413px) {
  .kopf { padding: 8px 6px 0; }
  .kopf-innen { gap: 4px; padding-left: 12px; }
  .marke { font-size: 17px; gap: 6px; }
  .kopf .knopf.haupt { padding: 8px 12px; font-size: 14px; margin-left: 2px; }
  .menue-mobil > summary { width: 40px; }
}
@media (max-width: 359px) {
  .kopf-innen { gap: 2px; padding-left: 10px; padding-right: 4px; }
  .marke { font-size: 16px; gap: 5px; }
  .marke > span { display: none; }
  .kopf .knopf.haupt { padding: 8px 10px; }
  .menue-mobil > summary { width: 34px; }
}

/* ---------- „Mein Genofeld“ (website/bauen.mjs → meinGenofeld, Verhalten in seite.js) ----------
   Vor „Genogramm öffnen“: wo Platz ist ein heller Knopf mit Pfeil, sonst ein rundes Personen-Symbol; grüner Punkt =
   angemeldet. Das Menü hängt rechts unter dem Knopf, am Handy über die ganze Kopfbreite. Mit konto „zu“ ist der Knopf
   verborgen (hidden) — dann gilt keine der Regeln mit :has(> .mg:not([hidden])), und der Kopf bleibt wie ohne Konto. */
.mg { position: relative; flex: none; display: flex; align-items: center; }
.mg[hidden], .mg [hidden], .mg-mobil[hidden] { display: none !important; }
.mg-knopf {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px;
  padding: 8px 13px 8px 15px; border: 1px solid var(--linie); border-radius: 999px; background: var(--papier);
  color: var(--text-kopf); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.mg-knopf:hover, .mg-offen .mg-knopf { background: var(--papier-dunkel); color: var(--text-kopf); }
.mg-knopf .symbol { display: none; color: var(--text-kopf); }
.mg-pfeil {
  width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s;
}
.mg-offen .mg-pfeil { transform: translateY(2px) rotate(225deg); }
.mg-punkt {
  display: none; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gut); border: 2px solid #fff;
}
.mg-an .mg-punkt { display: block; }
.mg-liste {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: 310px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); padding: 8px;
  font-size: 16px; line-height: 1.45; text-align: left; white-space: normal;
}
.mg-liste a {
  display: block; padding: 11px 14px; border-radius: 12px; color: var(--text-kopf); text-decoration: none;
}
.mg-liste a:hover, .mg-liste a:focus-visible { background: var(--papier-dunkel); color: var(--text-kopf); }
.mg-liste :focus-visible { outline-offset: -2px; }
.mg-liste .mg-betont { font-weight: 650; }
.mg-hinweis { margin: 6px 0 0; padding: 12px 14px 6px; border-top: 1px solid var(--linie-hell); font-size: 14px; line-height: 1.5; color: var(--text-mittel); }
.mg-wer { margin: 0 0 6px; padding: 8px 14px 12px; border-bottom: 1px solid var(--linie-hell); font-size: 14px; color: var(--text-leise); }
.mg-wer b { display: block; margin-top: 1px; font-size: 16px; font-weight: 650; color: var(--text-kopf); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-liste hr { border: 0; border-top: 1px solid var(--linie-hell); margin: 6px 0; }
/* Breiten, nur wenn der Knopf zu sehen ist (sieben Menüpunkte, seit 22.11.2026 mit „Videoanleitung“): immer „Genogramm“
   statt „Genogramm öffnen“; ab 1300 px Knopf mit Text, dafür ist die Kopfleiste dort 1240 statt 1120 px breit;
   1080–1299 px rundes Symbol (bis 1199 px die Menüzeile enger); 600–1079 px (Menü zugeklappt) Knopf mit Text; darunter
   rundes Symbol, das Menü über die ganze Kopfbreite. */
.kopf-innen:has(> .mg:not([hidden])) .knopf.haupt .lang { display: none; }
.kopf-innen:has(> .mg:not([hidden])) .knopf.haupt .kurz { display: inline; }
.kopf-innen:has(> .mg:not([hidden])) .knopf.haupt { margin-left: 4px; }
@media (min-width: 1300px) {
  .kopf-innen:has(> .mg:not([hidden])) { max-width: 1240px; }
}
@media (max-width: 1299px) {
  .mg-knopf { width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; }
  .mg-knopf .symbol { display: block; }
  .mg-knopf-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mg-pfeil { display: none; }
}
@media (min-width: 1080px) and (max-width: 1199px) {
  .kopf-innen:has(> .mg:not([hidden])) .menue a { padding: 8px 7px; }
}
@media (min-width: 600px) and (max-width: 1079px) {
  .mg-knopf { width: auto; height: auto; min-height: 42px; padding: 8px 13px 8px 15px; border-radius: 999px; }
  .mg-knopf .symbol { display: none; }
  .mg-knopf-text { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .mg-pfeil { display: block; }
}
@media (max-width: 899px) {
  .mg { position: static; }
  .mg-liste { left: 0; right: 0; width: auto; max-width: none; top: calc(100% + 8px); }
  .mg-liste a { padding: 13px 16px; font-size: 17px; }
}
@media (max-width: 413px) {
  .mg-knopf { width: 40px; height: 40px; }
  .kopf-innen:has(> .mg:not([hidden])) .knopf.haupt { margin-left: 2px; }
}
@media (max-width: 359px) {
  .mg-knopf { width: 34px; height: 34px; }
  .mg-knopf .symbol { width: 18px; height: 18px; }
  .kopf-innen:has(> .mg:not([hidden])) { gap: 1px; padding-left: 8px; }
  .kopf-innen:has(> .mg:not([hidden])) .knopf.haupt { padding: 8px 9px; }
}
/* Eintrag „Mein Genofeld“ im Handy-Menü: durch eine Linie von den Seiten abgesetzt */
.menue-mobil nav a.mg-mobil { margin-top: 6px; border-top: 1px solid var(--linie-hell); border-radius: 0 0 12px 12px; font-weight: 600; }

/* ---------- Kopf mit Flaggen (website/bauen.mjs → flaggen, erst ab zwei Sprachen) ----------
   Gemessen 23.11.2026 mit vier Flaggen (de, en, fr, es), 320–1440 px, mit und ohne „Mein Genofeld“
   (node scripts/website-sprachen-pruefen.mjs kopf <bau>). Ohne Flaggen gilt keine dieser Regeln, der Kopf bleibt dann wie
   oben. Am längsten sind die deutsche Menüzeile (sieben Punkte) und der kurze Knopf „Génogramme“:
   · Kopfleiste bis 1240 statt 1120 px breit; ab 1300 px „Genogramm öffnen“, 1200–1299 px „Genogramm“ und das Menü enger
   · unter 1200 px Menü zugeklappt (sieben Punkte und vier Flaggen passen darunter nicht auf eine Zeile), Knopf ausgeschrieben
   · unter 600 px „Genogramm“, unter 520 px von der Marke nur das Bildzeichen (der Name steht im aria-label), Flaggen schmaler
   „Mein Genofeld“ dazu (nur wenn der Knopf zu sehen ist): ab 1200 px und unter 720 px rundes Symbol, dazwischen mit Text;
   1200–1299 px Menü und Flaggen noch enger; unter 600 px Marke nur als Bildzeichen; unter 480 px fehlt die Flagge der
   eigenen Sprache (die Seite steht schon in ihr, die anderen Sprachen bleiben einen Tipp entfernt).
   Tippziele am Handy (gemessen 24.11.2026, 320–480 px, vier Sprachen): ab 360 px „Mein Genofeld“ und Menüknopf 40 × 40
   (vorher 38), die Flaggen ab 390 px 30 statt 26 breit, das Bildzeichen überall 40 px hoch. Unter 360 px bleibt es bei
   32 px — mit 40 px liefe der französische Kopf („Génogramme“) bei 320 px um 10 px über. */
.kopf-innen:has(.sprachen) { max-width: 1240px; }
@media (min-width: 1200px) and (max-width: 1299px) {
  .kopf-innen:has(.sprachen) .menue a { padding: 8px 9px; }
  .kopf-innen:has(.sprachen) .knopf.haupt .lang { display: none; }
  .kopf-innen:has(.sprachen) .knopf.haupt .kurz { display: inline; }
}
@media (max-width: 1199px) {
  .kopf-innen:has(.sprachen) .menue { display: none; }
  .kopf-innen:has(.sprachen) .menue-mobil { display: block; }
}
@media (min-width: 1080px) and (max-width: 1199px) {
  .kopf-innen:has(.sprachen) .knopf.haupt .lang { display: inline; }
  .kopf-innen:has(.sprachen) .knopf.haupt .kurz { display: none; }
}
@media (max-width: 599px) {
  .kopf-innen:has(.sprachen) .knopf.haupt .lang { display: none; }
  .kopf-innen:has(.sprachen) .knopf.haupt .kurz { display: inline; }
}
@media (max-width: 559px) {
  .kopf-innen:has(.sprachen) .sprachen { margin-left: 0; }
  .kopf-innen:has(.sprachen) .flagge { width: 30px; }
}
@media (max-width: 519px) {
  .kopf-innen:has(.sprachen) .marke > span { display: none; }
  .kopf-innen:has(.sprachen) .marke { padding-right: 4px; }
}
@media (max-width: 389px) {
  .kopf-innen:has(.sprachen) .flagge { width: 26px; }
}
@media (max-width: 359px) {
  .kopf-innen:has(.sprachen) { gap: 1px; padding-left: 8px; }
  .kopf-innen:has(.sprachen) .marke { padding-right: 2px; }
  .kopf-innen:has(.sprachen) .knopf.haupt { padding: 8px 8px; }
  .kopf-innen:has(.sprachen) .flagge { width: 24px; }
}
@media (min-width: 1200px), (max-width: 719px) {
  .kopf-innen:has(.sprachen) .mg-knopf { width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; }
  .kopf-innen:has(.sprachen) .mg-knopf .symbol { display: block; }
  .kopf-innen:has(.sprachen) .mg-knopf-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .kopf-innen:has(.sprachen) .mg-pfeil { display: none; }
}
@media (min-width: 720px) and (max-width: 1199px) {
  .kopf-innen:has(.sprachen) .mg-knopf { width: auto; height: auto; min-height: 42px; padding: 8px 13px 8px 15px; border-radius: 999px; }
  .kopf-innen:has(.sprachen) .mg-knopf .symbol { display: none; }
  .kopf-innen:has(.sprachen) .mg-knopf-text { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .kopf-innen:has(.sprachen) .mg-pfeil { display: block; }
}
@media (min-width: 1200px) and (max-width: 1299px) {
  .kopf-innen:has(.sprachen):has(> .mg:not([hidden])) .menue a { padding: 8px 7px; }
  .kopf-innen:has(.sprachen):has(> .mg:not([hidden])) .flagge { width: 28px; }
}
@media (max-width: 599px) {
  .kopf-innen:has(.sprachen):has(> .mg:not([hidden])) .marke > span { display: none; }
  .kopf-innen:has(.sprachen):has(> .mg:not([hidden])) .marke { padding-right: 4px; }
}
@media (max-width: 479px) {
  .kopf-innen:has(.sprachen):has(> .mg:not([hidden])) { gap: 2px; }
  .kopf-innen:has(.sprachen):has(> .mg:not([hidden])) .knopf.haupt { padding: 8px 10px; }
  .kopf-innen:has(.sprachen):has(> .mg:not([hidden])) .flagge.aktiv { display: none; }
}
@media (max-width: 413px) {
  .kopf-innen:has(.sprachen) .mg-knopf { width: 40px; height: 40px; }
}
@media (max-width: 359px) {
  .kopf-innen:has(.sprachen) .mg-knopf { width: 32px; height: 32px; }
  .kopf-innen:has(.sprachen):has(> .mg:not([hidden])) { gap: 0; }
  .kopf-innen:has(.sprachen):has(> .mg:not([hidden])) .knopf.haupt { padding: 8px 7px; }
  .kopf-innen:has(.sprachen):has(> .mg:not([hidden])) .menue-mobil > summary { width: 32px; }
}

/* ---------- Seitenrahmen ---------- */
main { display: block; padding: 0 16px 8px; }
.innen { max-width: var(--breite); margin: 0 auto; }
.pfad { max-width: var(--spalte); margin: 22px auto 10px; font-size: 14px; color: var(--text-leise); }
.pfad.breit { max-width: var(--breite); }
.pfad a { color: var(--text-mittel); text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 3px; }
.pfad a:hover { text-decoration-color: currentColor; }
.pfad span[aria-hidden] { margin: 0 6px; opacity: 0.6; }
.papier {
  max-width: var(--spalte); margin: 0 auto; background: rgba(255, 255, 255, 0.93);
  border-radius: 18px; box-shadow: var(--schatten); padding: clamp(22px, 4.5vw, 52px);
}
.papier.breit { max-width: var(--breite); }
.papier > :first-child { margin-top: 0; }
.papier > :last-child { margin-bottom: 0; }
.papier.breit > p, .papier.breit > ul, .papier.breit > ol, .papier.breit > h1, .papier.breit > h2, .papier.breit > h3 { max-width: 46em; }
.vorspann { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--text-mittel); }
.auge-zeile { font-size: 14px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-leise); margin: 0 0 10px; }
.stand { font-size: 14px; color: var(--text-leise); }
.vorbehalt-streifen {
  max-width: var(--breite); margin: 18px auto 0; padding: 10px 18px; border-radius: 12px;
  background: #fbf0e3; border: 1px solid #ecd3b0; color: #7a4e1d; font-size: 15px; font-weight: 600; text-align: center;
}

/* ---------- Bausteine im Text ---------- */
.kasten {
  background: var(--papier); border: 1px solid var(--linie-hell); border-left: 4px solid var(--holz);
  border-radius: 10px; padding: 16px 20px; margin: 1.4em 0;
}
.kasten > :last-child { margin-bottom: 0; }
.kasten > :first-child { margin-top: 0; }
.kasten.hinweis { border-left-color: var(--akzent); }
.schritte { list-style: none; padding: 0; counter-reset: schritt; margin: 1.2em 0; }
.schritte > li { counter-increment: schritt; position: relative; padding: 2px 0 14px 52px; margin: 0; min-height: 44px; }
.schritte > li::before {
  content: counter(schritt); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--dunkel); color: #fff; font-weight: 650; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.schritte > li strong:first-child { display: block; color: var(--text-kopf); }
.haken { list-style: none; padding: 0; }
.haken > li { position: relative; padding-left: 30px; margin: 0.5em 0; }
.haken > li::before {
  content: ''; position: absolute; left: 2px; top: 0.42em; width: 16px; height: 9px;
  border-left: 2.5px solid var(--gut); border-bottom: 2.5px solid var(--gut); transform: rotate(-45deg) scale(0.85); transform-origin: left top;
  margin-top: 4px;
}
.tabelle-rahmen { overflow-x: auto; margin: 1.3em 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--linie-hell); }
th { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-leise); font-weight: 650; white-space: nowrap; }
@media (max-width: 1199px) { th { white-space: normal; } }
tr.eigen td { background: var(--papier); font-weight: 600; }
/* Tabellen mit class="stapel": am Handy je Zeile ein Block (Spaltenkopf als Beschriftung, data-kopf aus bauen.mjs) */
@media (max-width: 899px) {
  table.stapel, table.stapel tbody, table.stapel tr, table.stapel td { display: block; }
  table.stapel thead, table.stapel tr.kopfzeile { display: none; }
  table.stapel tr { padding: 14px 0 10px; border-bottom: 1px solid var(--linie); }
  table.stapel tbody > tr:first-child { border-top: 1px solid var(--linie); }
  table.stapel td { padding: 4px 0 8px; border: 0; overflow-wrap: break-word; }
  table.stapel td:first-child { padding-bottom: 6px; font-size: 18px; line-height: 1.3; font-weight: 650; color: var(--text-kopf); }
  table.stapel td[data-kopf]:not(:first-child)::before {
    content: attr(data-kopf); display: block; margin-bottom: 2px;
    font-size: 14px; line-height: 1.35; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-leise);
  }
}
/* Symboltabellen (/symbole/…): das gezeichnete Zeichen steht klein in der Zelle, ohne Bildrahmen.
   Solange eine Datei fehlt, bleibt die Zelle leer — am Handy wird sie dann ausgeblendet. */
td.zeichen { text-align: center; }
table.zeichen-tabelle th:first-child, table.zeichen-tabelle td:first-child { width: 26%; }
figure.bild.zeichen { margin: 0; }
figure.bild.zeichen .bild-rahmen { border: 0; background: none; border-radius: 0; }
/* Zeichen unter /symbole/: die SVG kommen aus dem Programm und stehen in Originalgröße (14-px-Schrift).
   Am Rechner bestimmt das Bild die Spaltenbreite (feste Obergrenze, KEIN Prozentwert — sonst staucht die
   Tabelle die Spalte auf die Breite des Wortes „Zeichen“ und die Beschriftung im Bild wird unlesbar).
   Am Handy stehen die Zellen untereinander; dort wird nur verkleinert, wenn das Bild breiter ist als der Schirm. */
figure.bild.zeichen img { width: auto; max-width: 320px; height: auto; margin: 0 auto; }
@media (max-width: 899px) {
  figure.bild.zeichen img { max-width: min(100%, 320px); margin: 0; }
  td.zeichen { width: auto; text-align: left; }
  table.stapel td.zeichen:empty { display: none; }
  /* in Zeichentabellen ist die Beschriftung „Bedeutung“ über jeder Zeile überflüssig */
  table.zeichen-tabelle td[data-kopf]:not(:first-child)::before { display: none; }
  /* am Handy stehen die Zellen untereinander — die 40-%-Spalte würde lange Wörter mitten im Wort brechen */
  table.zeichen-tabelle th:first-child, table.zeichen-tabelle td:first-child { width: auto; }
}
kbd {
  font: 600 14px/1 system-ui, sans-serif; background: var(--papier); border: 1px solid var(--linie); border-bottom-width: 2px;
  border-radius: 6px; padding: 3px 7px; white-space: nowrap; color: var(--text-kopf);
}
blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--holz); color: var(--text-mittel); font-size: 18px; }
blockquote > :last-child { margin-bottom: 0; }
dl { margin: 1.2em 0; }
dt { font-weight: 650; color: var(--text-kopf); margin: 0; padding-top: 14px; border-top: 1px solid var(--linie-hell); }
dt:first-child { border-top: 0; padding-top: 0; }
dd { margin: 4px 0 14px; padding-left: 18px; color: var(--text); }
dd + dd { margin-top: -8px; }
dd > :last-child { margin-bottom: 0; }

/* Häufige Fragen */
details.frage { border-top: 1px solid var(--linie-hell); }
details.frage:last-of-type { border-bottom: 1px solid var(--linie-hell); }
details.frage > summary {
  cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative;
  font-weight: 600; color: var(--text-kopf); font-size: 18px;
}
details.frage > summary::-webkit-details-marker { display: none; }
details.frage > summary::after {
  content: ''; position: absolute; right: 8px; top: 24px; width: 9px; height: 9px;
  border-right: 2px solid var(--text-leise); border-bottom: 2px solid var(--text-leise); transform: rotate(45deg); transition: transform 0.15s;
}
details.frage[open] > summary::after { transform: rotate(-135deg); top: 28px; }
details.frage > div { padding: 0 0 18px; }
details.frage > div > :last-child { margin-bottom: 0; }

/* ---------- Bilder und Beispiel-Genogramme ---------- */
figure { margin: 1.6em 0; }
figcaption {
  font-size: 14.5px; color: var(--text-leise); margin-top: 9px;
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between;
}
.bild-rahmen, .beispiel-rahmen {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--papier); border: 1px solid var(--linie);
}
/* Bilder stehen in ihrer wirklichen Größe (width/height kommen vom Seitenbau, bei Bildschirmfotos schon durch die
   Pixeldichte geteilt) und werden nur verkleinert, nie vergrößert — ein vergrößertes Bildschirmfoto ist unscharf. */
.bild-rahmen img { max-width: 100%; margin: 0 auto; } /* KEIN width: auto — das würde das width-Attribut überstimmen */
.beispiel-rahmen { display: flex; align-items: center; justify-content: center; min-height: 180px; padding: 14px; }
.beispiel-rahmen img { width: 100%; max-width: 560px; height: auto; }
.beispiel-rahmen a.gross { display: block; width: 100%; max-width: 560px; cursor: zoom-in; border-radius: 8px; }
.beispiel-rahmen a.gross img { display: block; max-width: 100%; }
.beispiel-rahmen .leer { color: var(--text-leise); font-size: 14px; }
.beispiel figcaption .knopf { font-size: 14.5px; }
figure.handy { max-width: 300px; margin-left: auto; margin-right: auto; }
figure.handy .bild-rahmen { border-radius: 26px; border: 6px solid var(--dunkel); }

/* ---------- Filme der Widget-Seiten ({{film}}): Film links, Name und Beschreibung rechts, am Handy untereinander ----------
   Die Filme zeigen einen Ausschnitt des Programms von etwa 600 Punkten Breite; bei 600 px auf der Seite steht die Schrift
   darin so groß wie im Programm. Deshalb ist die Filmspalte breiter als bei parafeld.de. */
.film-zeile {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 34px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--linie-hell);
}
h2 + .film-zeile, h3 + .film-zeile, p + .film-zeile { border-top: 0; padding-top: 10px; }
.film-zeile > .film { max-width: 640px; }
@media (min-width: 900px) {
  .film-zeile { grid-template-columns: min(600px, 58%) minmax(0, 1fr); }
}
.papier.breit > .film-zeile { max-width: none; }
.film { margin: 0; }
.film.einzeln { max-width: 640px; margin: 1.6em 0; }
.film-rahmen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: var(--grund); border: 1px solid var(--linie); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.film-rahmen img, .film-rahmen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film-rahmen video { background: transparent; }
.film-rahmen video:not([controls]) { cursor: pointer; }
.film-rahmen.leer { display: flex; align-items: center; justify-content: center; color: var(--text-leise); font-size: 14px; }
/* Anhalten/Abspielen (setzt seite.js ein): am Rechner beim Darüberfahren, sonst nur, wenn angehalten */
.film-knopf {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(58, 53, 44, 0.8); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
.film-knopf svg { display: block; }
.film-rahmen:hover .film-knopf, .film-knopf:focus-visible, .film-rahmen.angehalten .film-knopf { opacity: 1; }
.film-text > h3:first-child { margin-top: 0; }
.film-text > :last-child { margin-bottom: 0; }
.film-text p { margin: 0 0 0.7em; }
@media (prefers-reduced-motion: reduce) {
  .film-knopf { transition: none; }
}
/* ---------- Videoanleitung (/widgets/, {{filmgalerie}}): alle Filme als Kacheln, Suche, Film im Fenster ---------- */
.filmgalerie { margin: 1.2em 0 2.2em; }
.filmgalerie [hidden] { display: none !important; }
.galerie-suche { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.galerie-suche label { font-weight: 650; color: var(--text-kopf); }
.galerie-suche input {
  flex: 1 1 240px; max-width: 420px; min-height: 46px; padding: 9px 16px; font: inherit; font-size: 16px;
  color: var(--text); background: #fff; border: 1px solid var(--linie); border-radius: 999px;
}
.galerie-suche input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.galerie-stand { margin: 0; font-size: 15px; color: var(--text-mittel); }
.galerie-leer { margin: 1.2em 0; padding: 14px 18px; border-radius: 12px; background: var(--papier-dunkel); }
.galerie-sprung { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.galerie-sprung a {
  padding: 7px 13px; border-radius: 999px; background: var(--papier-dunkel); color: var(--text-kopf);
  text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.galerie-sprung a:hover { background: var(--akzent-hell); color: var(--text-kopf); }
.galerie-sprung a span { margin-left: 3px; font-weight: 400; color: var(--text-mittel); }
.galerie-gruppe { padding-top: 22px; }
.galerie-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0 0 12px; }
.galerie-kopf h2 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 23px; }
.galerie-kopf h2 .symbol { color: var(--holz); }
.galerie-zahl { font-size: 15px; font-weight: 400; color: var(--text-mittel); }
.galerie-mehr { margin-left: auto; font-size: 15px; font-weight: 600; white-space: nowrap; }
.filmkacheln { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px 12px; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.filmkacheln > li { margin: 0; }
@media (min-width: 700px) {
  .filmkacheln { gap: 20px 18px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
}
.filmkachel { display: block; color: var(--text-kopf); text-decoration: none; border-radius: 12px; }
.filmkachel:hover { color: var(--text-kopf); }
.filmkachel .film-rahmen { display: block; transition: transform 0.15s, box-shadow 0.15s; }
.filmkachel:hover .film-rahmen, .filmkachel:focus-visible .film-rahmen { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14); border-color: var(--holz); }
.kachel-spiel {
  position: absolute; left: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(58, 53, 44, 0.82); color: #fff; display: flex; align-items: center; justify-content: center;
}
.kachel-titel { display: block; margin-top: 7px; font-size: 15px; line-height: 1.35; font-weight: 600; }
/* das Fenster mit dem Film (<dialog>, legt seite.js an) */
html.film-offen { overflow: hidden; }
.filmfenster {
  width: min(676px, calc(100vw - 20px)); max-width: none; max-height: calc(100vh - 20px); padding: 0; border: 0;
  border-radius: 18px; background: var(--papier); color: var(--text); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4); overflow: auto;
}
.filmfenster::backdrop { background: rgba(40, 36, 30, 0.66); }
.ff-innen { padding: 12px 18px 18px; }
.ff-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.ff-ort { margin: 0; font-size: 15px; color: var(--text-mittel); }
.ff-zu {
  flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--papier-dunkel); color: var(--text-kopf); display: flex; align-items: center; justify-content: center;
}
.ff-zu:hover { background: var(--linie); }
.filmfenster h2 { margin: 14px 0 4px; font-size: 22px; line-height: 1.25; }
.ff-text { margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: var(--text-mittel); }
.ff-verweis { margin: 0 0 16px; font-size: 15px; font-weight: 600; }
.ff-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ff-fuss .knopf { cursor: pointer; font-family: inherit; flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
.ff-fuss .knopf:disabled { opacity: 0.4; cursor: default; }
@media (min-width: 620px) {
  .ff-fuss .knopf { flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .filmkachel .film-rahmen { transition: none; }
}
/* Sprungmarken am Seitenanfang einer Widget-Seite */
.sprungliste { list-style: none; padding: 0; margin: 0.4em 0 1em; columns: 2 12em; column-gap: 28px; }
.sprungliste li { margin: 0 0 0.35em; break-inside: avoid; }

/* ---------- Karten ---------- */
.karten { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.karten > li { margin: 0; }
.karte {
  display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--linie-hell); overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
a.karte:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1); border-color: var(--linie); color: var(--text); }
.karte-text { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.karte-titel { font-size: 18px; font-weight: 650; color: var(--text-kopf); line-height: 1.3; display: flex; align-items: center; gap: 9px; }
.karte-titel .symbol { color: var(--holz); }
.karte-anriss { font-size: 15px; line-height: 1.5; color: var(--text-mittel); }
.karte-mehr { margin-top: auto; padding-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--akzent); }
.karten.klein { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ---------- Abschnitte der Startseite und der Übersichten ---------- */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: clamp(30px, 5vw, 54px) 0 0; }
.abschnitt > h2, .abschnitt > .zwei > div > h2:first-child { margin-top: 0; font-size: clamp(26px, 3.6vw, 36px); }
.abschnitt > .vorspann { max-width: 44em; }
.buehne {
  max-width: var(--breite); margin: 0 auto; padding: clamp(22px, 5vw, 56px) 0 0;
  display: grid; gap: clamp(22px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); align-items: center;
}
.buehne h1 { font-size: clamp(32px, 4.3vw, 50px); letter-spacing: -0.02em; margin-bottom: 0.4em; }
.buehne .vorspann { margin-bottom: 1.3em; }
.buehne figure { margin: 0; }
.merkmale { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--text-mittel); }
.merkmale li { margin: 0; display: flex; align-items: center; gap: 6px; }
.merkmale .symbol { color: var(--gut); }
@media (min-width: 980px) {
  /* linke Spalte etwas breiter: so stehen „Genogramm öffnen“ und „Funktionen ansehen“ nebeneinander */
  .buehne { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); }
}
.zwei { display: grid; gap: clamp(20px, 4vw, 44px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 860px) {
  .zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zwei.umgekehrt > :first-child { order: 2; }
  /* fehlt das Bild noch (website/bilder/WUNSCHLISTE.md), bleibt nur der Text übrig: dann volle Breite statt halb leer */
  .zwei:has(> :last-child:first-child) { grid-template-columns: minmax(0, 1fr); }
  .zwei:has(> :last-child:first-child) > div { max-width: 46em; }
}
.zwei figure { margin: 0; }
/* Startseite, „Aufs Brett“: der leise Verweis unter dem Knopf braucht Luft nach oben */
.zwei .knoepfe + p { margin-top: 18px; }
.flaeche { background: rgba(255, 255, 255, 0.93); border-radius: 22px; box-shadow: var(--schatten); padding: clamp(22px, 4.5vw, 52px); }
.flaeche > :first-child { margin-top: 0; }
.flaeche > :last-child { margin-bottom: 0; }

/* Preisfelder */
.tarife { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin: 1.4em 0; align-items: stretch; }
.tarif { background: #fff; border: 1px solid var(--linie); border-radius: 18px; padding: 26px 26px 28px; display: flex; flex-direction: column; }
.tarif.betont { border: 2px solid var(--dunkel); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1); }
.tarif h2, .tarif h3 { margin: 0 0 4px; font-size: 22px; }
.tarif .fuer { color: var(--text-mittel); font-size: 15px; margin: 0 0 14px; }
.tarif .preis { font-size: 40px; font-weight: 700; color: var(--text-kopf); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.tarif .preis small { font-size: 16px; font-weight: 500; color: var(--text-mittel); letter-spacing: 0; }
.tarif .preis-zusatz { font-size: 15px; color: var(--text-mittel); margin: 6px 0 16px; min-height: 1.5em; }
.tarif ul { margin-bottom: 20px; font-size: 15.5px; }
.tarif .knopf { margin-top: auto; }

/* Aufruf am Seitenende */
.aufruf {
  max-width: var(--spalte); margin: clamp(26px, 5vw, 44px) auto 0; background: var(--dunkel); color: #f3efe6;
  border-radius: 18px; padding: clamp(22px, 4vw, 34px) clamp(22px, 4.5vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
}
.aufruf.breit { max-width: var(--breite); }
.aufruf h2 { color: #fff; margin: 0 0 4px; font-size: clamp(21px, 2.8vw, 26px); }
.aufruf p { margin: 0; color: #ded8ca; font-size: 16px; }
.aufruf .knopf { background: #fff; border-color: #fff; color: var(--dunkel); }
.aufruf .knopf:hover { background: var(--papier-dunkel); }

/* Weiterlesen */
.weiter { max-width: var(--spalte); margin: clamp(30px, 5vw, 48px) auto 0; }
.weiter.breit { max-width: var(--breite); }
.weiter h2 { font-size: 21px; margin: 0 0 12px; }

/* ---------- Konto-Seiten (/konto/…, website/konto.js): Formulare, Meldungen, Wiederherstellungsschlüssel ----------
   Nach parafeld/website/formulare.css, hier in stil.css (eine Datei für alle Textseiten). konto.js schaltet Zustände mit
   dem Attribut hidden — das gilt auch für Bausteine mit eigenem display (.knoepfe, .feld). */
.konto [hidden] { display: none !important; }
.formular { margin: 1.2em 0 1.6em; }
.formular .feld { display: flex; flex-direction: column; gap: 6px; margin: 0 0 1.1em; }
.formular label, .formular legend { font-weight: 600; color: var(--text-kopf); font-size: 15.5px; }
.formular small, .konto .leise { font-size: 14px; color: var(--text-leise); line-height: 1.5; }
.formular input[type="text"], .formular input[type="email"], .formular input[type="password"] {
  width: 100%; max-width: 30em; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 10px 14px; min-height: 46px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.formular input.schluessel-feld { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.formular input:focus {
  outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(35, 110, 158, 0.16);
}
/* input[aria-invalid] wiegt so viel wie input[type="email"] oben und steht danach – sonst bliebe der Rand grau */
.formular [aria-invalid="true"], .formular input[aria-invalid="true"], .formular input[aria-invalid="true"]:focus { border-color: #b3412c; }
.formular input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 65, 44, 0.16); }
.haekchen { margin: 0 0 1em; }
.haekchen label {
  display: block; position: relative; padding-left: 30px; font-weight: 400; color: var(--text); line-height: 1.55; cursor: pointer;
}
.haekchen label > input { position: absolute; left: 0; top: 3px; margin: 0; width: 20px; height: 20px; accent-color: var(--dunkel); }
.meldung { margin: 0.8em 0 0; padding: 10px 14px; border-radius: 10px; background: var(--akzent-hell); color: var(--text-kopf); font-size: 15.5px; }
.meldung.fehler { background: #fbeae6; color: #8a2e1e; }
.meldung.gut { background: #e7f3ec; color: #1f5c3b; }
.meldung[hidden] { display: none; }
.konto-laedt { color: var(--text-leise); }
.konto-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--text-mittel); }
.konto h2 { margin-top: 1.6em; }
.knopf.schmal { min-height: 36px; padding: 6px 14px; font-size: 14px; }
/* lange Beschriftungen („Neuen Wiederherstellungsschlüssel erzeugen“) brechen am Handy um, statt über den Rand zu ragen */
.konto .knopf { white-space: normal; max-width: 100%; text-align: center; }
.konto h2, .konto strong { overflow-wrap: break-word; hyphens: manual; }
.knopf.gefahr { background: #b3412c; border-color: #b3412c; color: #fff; }
.knopf.gefahr:hover { background: #973523; color: #fff; }
.knopf:disabled, .knopf[aria-disabled="true"] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.kasten.warnung { border-left-color: #b3412c; background: #fdf4f1; }
/* der Wiederherstellungsschlüssel: groß, in Vierergruppen, gut abzuschreiben */
.wiederherstellung {
  margin: 1.2em 0; padding: 18px 20px; border: 2px dashed var(--holz); border-radius: 14px; background: var(--papier);
}
.wiederherstellung .schluessel {
  display: block; margin: 6px 0 10px; font: 600 clamp(19px, 4.4vw, 26px)/1.35 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  letter-spacing: 0.08em; color: var(--text-kopf); word-spacing: 0.3em; overflow-wrap: anywhere;
}
.wiederherstellung p { margin: 0 0 0.6em; }
.neu-beginnen { margin: 1.4em 0; }
.neu-beginnen > summary { cursor: pointer; color: var(--akzent); font-size: 16px; padding: 6px 0; }
.neu-beginnen[open] > summary { margin-bottom: 0.6em; }
.konto section { margin-top: 0.4em; }
.konto section + section { border-top: 1px solid var(--linie-hell); }
.wiederherstellung > :last-child { margin-bottom: 0; }
@media (max-width: 559px) {
  .formular input[type="text"], .formular input[type="email"], .formular input[type="password"] { max-width: none; }
  .konto .knoepfe .knopf { flex: 1 1 auto; white-space: normal; text-align: center; }
}

/* ---------- Fuß ---------- */
.fuss { background: var(--dunkel); color: #d4cdbf; margin-top: clamp(48px, 8vw, 90px); padding: clamp(34px, 6vw, 56px) 16px 26px; font-size: 15px; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fuss h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.09em; color: #b3ab9b; margin: 0 0 10px; font-weight: 650; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin: 0; }
.fuss a { color: #efeadf; text-decoration: none; display: inline-block; padding: 4px 0; }
.fuss a:hover { text-decoration: underline; color: #fff; }
.fuss .marke { color: #fff; margin-bottom: 10px; }
.fuss p { margin: 0 0 8px; line-height: 1.55; }
.fuss-zeile {
  max-width: var(--breite); margin: 30px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px; color: #b3ab9b; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between;
}

@media (max-width: 599px) {
  body { font-size: 16.5px; }
  .papier, .flaeche { border-radius: 14px; }
  th, td { padding: 9px 10px; }
  .aufruf .knopf { width: 100%; }
  .beispiel figcaption { flex-direction: column; align-items: flex-start; }
  .beispiel figcaption .knopf { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knopf, .karte { transition: none; }
}
@media print {
  .kopf, .fuss, .aufruf, .weiter { display: none; }
  body { background: #fff; }
  .papier { box-shadow: none; padding: 0; }
  /* Wiederherstellungsschlüssel drucken (konto.js setzt body.druck-schluessel): nur Überschrift und Schlüsselkasten */
  body.druck-schluessel .pfad, body.druck-schluessel .vorbehalt-streifen { display: none; }
  body.druck-schluessel .papier > *:not(h1):not(.konto) { display: none; }
  body.druck-schluessel .konto > * { display: none !important; }
  body.druck-schluessel .konto > .druck-bereich { display: block !important; }
  body.druck-schluessel .druck-bereich > *:not(.wiederherstellung) { display: none !important; }
  body.druck-schluessel .wiederherstellung .knoepfe { display: none !important; }
}
