/* =====================================================================
   StaysMine – gemeinsames Stylesheet für alle Seiten
   Regeln: StaysMine-Website-Anleitung.md (Stand 20.11.2026)

   Läuft unter einer strengen Content-Security-Policy (default-src 'self'):
   kein JavaScript, keine style-Attribute, keine <style>-Blöcke,
   keine externen Anfragen. Alle Pfade sind relativ zu dieser Datei.
   ===================================================================== */


/* ---------- Schrift: selbst gehostet (Abschnitt 6 und 12) ---------- */

@font-face {
  font-family: "Manrope";
  src: url("schrift/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}


/* ---------- Tokens (Abschnitt 12) ---------- */

:root {
  --sm-navy: #13294B;
  --sm-navy-tief: #0C1C35;
  --sm-himmelblau: #8EC5FF;
  --sm-himmelblau-kraeftig: #2C82DD;
  --sm-link: #1D69BC;
  --sm-warmweiss: #F4F1EA;
  --sm-papier: #FAF9F6;
  --sm-weiss: #FFFFFF;
  --sm-text: #1D2433;
  --sm-text-leise: #5B6472;
  --sm-linie: #E3E0D8;
  --sm-feldrand: #7D8697;
  --sm-fehler: #9A3B2E;

  --sm-schrift: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sm-radius-s: 8px;
  --sm-radius: 12px;
  --sm-radius-l: 16px;
  --sm-radius-xl: 24px;
  --sm-kurve: cubic-bezier(0.16, 1, 0.3, 1);
  --sm-dauer: 200ms;
  --sm-max: 1120px;
  --sm-text-max: 680px;

  /* Ergänzungen für diese Website */
  --sm-navy-ton: #23426F;  /* Ton in Ton auf Navy: Schild-Motiv und Trennlinie im Footer (Abschnitt 8) */
  --sm-rand: 16px;         /* Seitenrand, auf dem Handy 16 px */
  --sm-takt: 12s;          /* ein Durchlauf der Grafik auf der Startseite */
}

@media (min-width: 600px) {
  :root { --sm-rand: 32px; }
}


/* ---------- Grundlagen ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--sm-papier);
  color: var(--sm-text);
  font-family: var(--sm-schrift);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--sm-navy);
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: var(--sm-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--sm-link);
  outline-offset: 2px;
}

.breite {
  width: 100%;
  max-width: calc(var(--sm-max) + 2 * var(--sm-rand));
  margin-inline: auto;
  padding-inline: var(--sm-rand);
}


/* ---------- Kopfzeile ---------- */

.kopf {
  background: var(--sm-papier);
  border-bottom: 1px solid var(--sm-linie);
}

.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.kopf-logo {
  width: auto;
  height: 28px;
}

.kopf-logo-link {
  display: inline-flex;
  padding-block: 8px;
  border-radius: var(--sm-radius-s);
}

.kopf-sprache {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  border-radius: var(--sm-radius-s);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}


/* ---------- Startbereich ---------- */

.haupt {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
}

/* Abschnittsabstand nach Abschnitt 7: 64 px mobil, ab 1024 px 96 px */
.held {
  display: grid;
  gap: 48px;
  padding-block: 64px;
}

.held-text { max-width: var(--sm-text-max); }

.label {
  margin-bottom: 12px;
  color: var(--sm-link);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.einleitung {
  margin-bottom: 16px;
  font-size: 19px;
  line-height: 1.55;
  text-wrap: pretty;
}

.nebentext {
  color: var(--sm-text-leise);
  text-wrap: pretty;
}

.aktion { margin: 32px 0 24px; }


/* ---------- Hauptbutton (Abschnitt 8 und 12) ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border: 1.5px solid var(--sm-navy);
  border-radius: var(--sm-radius);
  background: var(--sm-navy);
  color: var(--sm-warmweiss);
  font: 700 16px/1 var(--sm-schrift);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--sm-dauer) var(--sm-kurve), border-color var(--sm-dauer) var(--sm-kurve);
}

.button:hover {
  background: var(--sm-navy-tief);
  border-color: var(--sm-navy-tief);
}


/* ---------- Bühne: Grafik und Schalter ---------- */

.buehne {
  position: relative;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  padding: 16px;
  background: var(--sm-warmweiss);
  border-radius: var(--sm-radius-xl);
}

.grafik {
  grid-row: 1;
  overflow: hidden;
  background: var(--sm-weiss);
  border: 1px solid var(--sm-linie);
  border-radius: var(--sm-radius-l);
}

.skizze {
  width: 100%;
  height: auto;
}

/* Formen der Grafik, nur über Tokens gefärbt */
.s-leiste  { fill: var(--sm-warmweiss); }
.s-punkt,
.s-zeile   { fill: var(--sm-linie); }
.s-navy    { fill: var(--sm-navy); }
.s-akzent  { fill: var(--sm-himmelblau-kraeftig); }
.s-flaeche { fill: var(--sm-warmweiss); }
.s-knopf   { fill: var(--sm-weiss); }

.s-linie {
  stroke: var(--sm-linie);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
}

.s-adresse,
.s-karte {
  fill: var(--sm-weiss);
  stroke: var(--sm-linie);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.s-rahmen {
  fill: var(--sm-weiss);
  stroke: var(--sm-navy);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

/* Hilfslinien und Auswahlrahmen: nur während des Aufbaus zu sehen.
   Grundzustand unsichtbar, damit die fertige Grafik ohne sie dasteht. */
.s-hilfslinie {
  fill: none;
  stroke: var(--sm-himmelblau-kraeftig);
  stroke-width: 1px;
  stroke-dasharray: 2 4;
  vector-effect: non-scaling-stroke;
}

.s-auswahl {
  fill: none;
  stroke: var(--sm-himmelblau-kraeftig);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

.s-griff {
  fill: var(--sm-weiss);
  stroke: var(--sm-himmelblau-kraeftig);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

.hl,
.auswahl { opacity: 0; }


/* ---------- Schalter „Animation anhalten“ (WCAG 2.2.2, ohne JavaScript) ---------- */

/* Die Checkbox ist unsichtbar, bleibt aber per Tastatur erreichbar.
   Sie sitzt dort, wo der Schalter zu sehen ist, damit beim Fokussieren nichts springt. */
.schalter-feld {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Aussehen wie der zweite Button (Abschnitt 8 und 12): ohne Fläche,
   1,5 px Navy-Rahmen, Navy-Text 16 px fett, Hover Navy mit 6 % als Fläche. */
.schalter {
  grid-row: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  background: transparent;
  border: 1.5px solid var(--sm-navy);
  border-radius: var(--sm-radius);
  color: var(--sm-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color var(--sm-dauer) var(--sm-kurve);
}

@media (hover: hover) {
  .schalter:hover { background: rgba(19, 41, 75, .06); }
}

/* Fokusring am sichtbaren Schalter, wenn die Checkbox per Tastatur fokussiert ist.
   :focus als Rückfall für ältere Browser, bei Mausklick wieder aus. */
.schalter-feld:focus + .schalter {
  outline: 3px solid var(--sm-link);
  outline-offset: 2px;
}

.schalter-feld:focus:not(:focus-visible) + .schalter { outline: none; }

.schalter-feld:focus-visible + .schalter {
  outline: 3px solid var(--sm-link);
  outline-offset: 2px;
}

.schalter-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schalter-icon--weiter,
.schalter-text--steht { display: none; }

.schalter-feld:checked + .schalter .schalter-icon--pause,
.schalter-feld:checked + .schalter .schalter-text--laeuft { display: none; }

.schalter-feld:checked + .schalter .schalter-icon--weiter { display: block; }
.schalter-feld:checked + .schalter .schalter-text--steht { display: inline; }


/* ---------- Ablauf der Grafik ----------
   Grundzustand im CSS: Die Seite in der Grafik ist fertig und sichtbar.
   Nur die Keyframes blenden aus. Jede einzelne Bewegung ist Einblenden
   (Hilfslinien und Rahmen 200 ms) oder Einblenden plus 8 Einheiten nach oben
   gleiten (Bausteine 240 ms). Keine Drehung, kein Skalieren, nichts wächst.

   Ein Durchlauf dauert 12 s (1 % = 120 ms):
   0,30–0,86 s   vier Hilfslinien erscheinen (Planung)
   1,00 s        Kopfzeile mit Schild      ┐ Ein blauer Auswahlrahmen markiert
   1,60 s        Label und Überschrift     │ jeweils den Baustein, der gerade
   2,20 s        Textzeilen                │ gesetzt wurde, und wandert als
   2,80 s        Knöpfe                    │ Überblendung weiter: So sieht man,
   3,40 s        Fläche mit den Regeln     │ dass hier jemand arbeitet, ohne
   4,00 s        drei Karten               ┘ eine Figur zu zeigen.
   4,70 s        letzter Rahmen geht, 4,90 s Hilfslinien gehen
   bis 10,80 s   fertige Seite steht ruhig (knapp 6 s)
   10,80–11,64 s Bausteine blenden nacheinander aus (je 240 ms)
   danach kurz leer, dann von vorn.

   Jeder Start beginnt bei 6 s, also in der Ruhephase (animation-delay: -6s):
   Beim Laden und nach dem Fortsetzen steht zuerst die fertige Seite da.
   Nach 4,8 s blendet sie leise aus und baut sich neu auf. So gibt es beim
   Fortsetzen keinen harten Schnitt, und wo die Zeit nicht läuft (Tab im
   Hintergrund, Vorschaubilder), ist nie ein leeres Fenster zu sehen. */

.schritt,
.hl,
.auswahl {
  animation-duration: var(--sm-takt);
  animation-timing-function: var(--sm-kurve);
  animation-delay: -6s;
  animation-iteration-count: infinite;
}

.schritt-1 { animation-name: sm-schritt-1; }
.schritt-2 { animation-name: sm-schritt-2; }
.schritt-3 { animation-name: sm-schritt-3; }
.schritt-4 { animation-name: sm-schritt-4; }
.schritt-5 { animation-name: sm-schritt-5; }
.schritt-6 { animation-name: sm-schritt-6; }

.hl-1 { animation-name: sm-hl-1; }
.hl-2 { animation-name: sm-hl-2; }
.hl-3 { animation-name: sm-hl-3; }
.hl-4 { animation-name: sm-hl-4; }

.auswahl-1 { animation-name: sm-auswahl-1; }
.auswahl-2 { animation-name: sm-auswahl-2; }
.auswahl-3 { animation-name: sm-auswahl-3; }
.auswahl-4 { animation-name: sm-auswahl-4; }
.auswahl-5 { animation-name: sm-auswahl-5; }
.auswahl-6 { animation-name: sm-auswahl-6; }

/* Angehalten: Die Grafik steht sofort fertig aufgebaut still,
   nie leer oder halb ausgeblendet. Erneutes Klicken setzt in der Ruhephase
   fort (siehe oben), die fertige Seite bleibt also ohne Sprung stehen. */
.schalter-feld:checked ~ .grafik * { animation: none; }

@keyframes sm-schritt-1 {
  0%, 8.333%       { opacity: 0; transform: translateY(8px); }
  10.333%, 90%     { opacity: 1; transform: none; }
  92%, 100%        { opacity: 0; transform: none; }
}
@keyframes sm-schritt-2 {
  0%, 13.333%      { opacity: 0; transform: translateY(8px); }
  15.333%, 91%     { opacity: 1; transform: none; }
  93%, 100%        { opacity: 0; transform: none; }
}
@keyframes sm-schritt-3 {
  0%, 18.333%      { opacity: 0; transform: translateY(8px); }
  20.333%, 92%     { opacity: 1; transform: none; }
  94%, 100%        { opacity: 0; transform: none; }
}
@keyframes sm-schritt-4 {
  0%, 23.333%      { opacity: 0; transform: translateY(8px); }
  25.333%, 93%     { opacity: 1; transform: none; }
  95%, 100%        { opacity: 0; transform: none; }
}
@keyframes sm-schritt-5 {
  0%, 28.333%      { opacity: 0; transform: translateY(8px); }
  30.333%, 94%     { opacity: 1; transform: none; }
  96%, 100%        { opacity: 0; transform: none; }
}
@keyframes sm-schritt-6 {
  0%, 33.333%      { opacity: 0; transform: translateY(8px); }
  35.333%, 95%     { opacity: 1; transform: none; }
  97%, 100%        { opacity: 0; transform: none; }
}

@keyframes sm-hl-1 {
  0%, 2.5%         { opacity: 0; }
  4.167%, 40.833%  { opacity: 1; }
  42.5%, 100%      { opacity: 0; }
}
@keyframes sm-hl-2 {
  0%, 3.5%         { opacity: 0; }
  5.167%, 40.833%  { opacity: 1; }
  42.5%, 100%      { opacity: 0; }
}
@keyframes sm-hl-3 {
  0%, 4.5%         { opacity: 0; }
  6.167%, 40.833%  { opacity: 1; }
  42.5%, 100%      { opacity: 0; }
}
@keyframes sm-hl-4 {
  0%, 5.5%         { opacity: 0; }
  7.167%, 40.833%  { opacity: 1; }
  42.5%, 100%      { opacity: 0; }
}

@keyframes sm-auswahl-1 {
  0%, 8.333%       { opacity: 0; }
  10%, 13.333%     { opacity: 1; }
  15%, 100%        { opacity: 0; }
}
@keyframes sm-auswahl-2 {
  0%, 13.333%      { opacity: 0; }
  15%, 18.333%     { opacity: 1; }
  20%, 100%        { opacity: 0; }
}
@keyframes sm-auswahl-3 {
  0%, 18.333%      { opacity: 0; }
  20%, 23.333%     { opacity: 1; }
  25%, 100%        { opacity: 0; }
}
@keyframes sm-auswahl-4 {
  0%, 23.333%      { opacity: 0; }
  25%, 28.333%     { opacity: 1; }
  30%, 100%        { opacity: 0; }
}
@keyframes sm-auswahl-5 {
  0%, 28.333%      { opacity: 0; }
  30%, 33.333%     { opacity: 1; }
  35%, 100%        { opacity: 0; }
}
@keyframes sm-auswahl-6 {
  0%, 33.333%      { opacity: 0; }
  35%, 39.167%     { opacity: 1; }
  40.833%, 100%    { opacity: 0; }
}


/* ---------- Textseiten: Impressum, Datenschutz ---------- */

/* Abschnittsabstand nach Abschnitt 7: 64 px mobil, ab 768 px 96 px */
.textseite {
  flex: 1 0 auto;
  padding-block: 64px;
}

.rechtstext { max-width: var(--sm-text-max); }

.rechtstext h1 { margin-bottom: 16px; }

.rechtstext .einleitung { margin-bottom: 8px; }

.rechtstext h2 {
  margin: 48px 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.rechtstext h3 {
  margin: 32px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.rechtstext p,
.rechtstext ul,
.rechtstext address { margin: 0 0 16px; }

.rechtstext address { font-style: normal; }

.rechtstext ul { padding-left: 1.25em; }

.rechtstext li + li { margin-top: 8px; }

.rechtstext li::marker { color: var(--sm-text-leise); }

.zeilen { line-height: 2; }

.kasten {
  margin: 32px 0;
  padding: 24px;
  background: var(--sm-weiss);
  border: 1px solid var(--sm-linie);
  border-radius: var(--sm-radius-l);
}

.kasten--ruhig {
  background: var(--sm-warmweiss);
  border-color: var(--sm-warmweiss);
}

.kasten--wichtig { border: 1.5px solid var(--sm-navy); }

.rechtstext .kasten h2 { margin-top: 0; }

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

/* Fehlende Angaben: deutlich sichtbar, aber ruhig (kein Rot).
   Im Fließtext bricht der Platzhalter mit dem Satz um, in Adresszeilen bleibt er ein Block. */
.platzhalter {
  padding: 1px 6px;
  border: 1.5px dashed var(--sm-feldrand);
  border-radius: var(--sm-radius-s);
  background: var(--sm-weiss);
  color: var(--sm-text);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.zeilen .platzhalter {
  display: inline-block;
  max-width: 100%;
  padding: 0 8px;
  line-height: 1.6;
}

.stand {
  margin-top: 48px;
  color: var(--sm-text-leise);
  font-size: 15px;
}


/* ---------- Footer ---------- */

/* overflow: clip schneidet das Schild-Motiv ab, ohne einen Scrollbereich zu bilden.
   Mit overflow: hidden würde der Sprung zu #hilfe auf kurzen Seiten den Inhalt
   des Footers nach oben schieben und Logo und Links abschneiden.
   hidden bleibt als Rückfall für Browser ohne clip (Safari vor Version 16). */
.fuss {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: var(--sm-navy-tief);
  color: var(--sm-warmweiss);
}

/* Schild-Umriss Ton in Ton, angeschnitten (Abschnitt 8). Pfad exakt aus dem Logo.
   Nur auf breiten Bildschirmen, wo er neben dem Text Platz hat. */
.fuss-schild {
  display: none;
  position: absolute;
  top: 32px;
  right: -88px;
  width: auto;
  max-width: none;
  height: 360px;
  fill: none;
  stroke: var(--sm-navy-ton);
  stroke-width: 8;
  stroke-linejoin: round;
  pointer-events: none;
}

.fuss-innen {
  position: relative;
  display: grid;
  gap: 32px;
  padding-block: 48px;
}

.fuss-logo {
  width: 104px;
  height: auto;
}

.fuss a { color: var(--sm-himmelblau); }

.fuss :focus-visible { outline-color: var(--sm-himmelblau); }

.fuss-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Tippfläche 44 px hoch und seitlich 8 px größer als das Wort,
   damit auch kurze Links wie „Hilfe“ 44 px breit sind. Die negativen
   Außenabstände halten die Abstände zwischen den Wörtern gleich. */
.fuss-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  margin-inline: -8px;
  border-radius: var(--sm-radius-s);
  font-size: 16px;
  font-weight: 600;
}

/* Hilfe-Hinweis (Abschnitt 11): Einleitungssatz und eine kurze Liste,
   eine Zeile pro Stelle. Sprungziel des Footer-Links „Hilfe“. */
.hilfe {
  max-width: var(--sm-text-max);
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--sm-navy-ton);
  font-size: 15px;
  line-height: 1.5;
  scroll-margin-top: 24px;
  transition: border-color var(--sm-dauer) var(--sm-kurve);
}

/* Nach dem Klick auf „Hilfe“ wird die Trennlinie über dem Hinweis hell,
   auch wenn die Seite zu kurz zum Scrollen ist. */
.hilfe:target { border-top-color: var(--sm-himmelblau); }

/* Zweiter Hinweis in anderer Sprache direkt darunter (404-Seite): ohne zweite Linie */
.hilfe + .hilfe {
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
}

.hilfe-liste {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

/* 24 px zwischen den Einträgen: Zwei 44 px hohe Tippflächen in benachbarten
   Einträgen überlappen sich so auch dann nicht, wenn sie genau untereinander stehen. */
.hilfe-liste li + li { margin-top: 24px; }

.nummer {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Die Nummern sind die wichtigsten Tippziele der Seite: mindestens 44 px hoch
   und breit. Negative Außenabstände gleichen den Innenabstand aus, Zeilenhöhe
   und Text verschieben sich dadurch nicht. position: relative legt die Fläche
   beim Tippen über die Nachbarzeilen. */
.hilfe .nummer {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-block: calc((1.5em - 44px) / 2);
  padding-inline: 12px;
  margin-inline: -12px;
  border-radius: var(--sm-radius-l);
}

/* Fokusring wie bei anderen Links 2 px neben dem Text, nicht um die ganze
   Tippfläche: So bleibt er fast ganz in der eigenen Zeile. */
.hilfe .nummer:focus-visible { outline-offset: -10px; }

/* Zusammengehöriges wie „Mo–Do 10–22 Uhr“ oder „Wirtschafts-ID“ nicht mittendrin umbrechen */
.zusammen {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}


/* ---------- Größere Bildschirme ---------- */

@media (min-width: 600px) {
  .buehne { padding: 24px; }
  .schalter-feld { right: 24px; bottom: 24px; }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
  .kopf-innen { min-height: 80px; }
  .kopf-logo { height: 32px; }
  .kopf-sprache { font-size: 16px; }
  .einleitung { font-size: 21px; }
  .fuss-logo { width: 112px; }
  .textseite { padding-block: 96px; }
  .rechtstext h2 { font-size: 24px; }
  .rechtstext h3 { font-size: 18px; }
  .kasten { padding: 28px 32px; }
}

@media (min-width: 960px) {
  .fuss-innen {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 64px;
  }

  /* Linkzeile optisch an die Oberkante des Logos holen */
  .fuss-links { margin-top: -12px; }
}

/* Zwei Spalten erst, wenn die Überschrift sicher in zwei Zeilen passt */
@media (min-width: 1024px) {
  .held {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    padding-block: 96px;
  }

  .buehne { max-width: none; }
}

@media (min-width: 1200px) {
  .fuss-schild { display: block; }
}


/* ---------- Druck: fertige Grafik, kein Schalter, Footer lesbar ---------- */

@media print {
  .schritt,
  .hl,
  .auswahl { animation: none; }

  .schalter-feld,
  .schalter,
  .fuss-schild,
  .fuss-logo { display: none; }

  .fuss {
    background: none;
    color: var(--sm-text);
    border-top: 1px solid var(--sm-linie);
  }

  .fuss a { color: var(--sm-text); }
}


/* ---------- Weniger Bewegung (Abschnitt 10 und 12) ----------
   Keine Animation: Die Grafik steht fertig aufgebaut, Hilfslinien und Rahmen
   bleiben unsichtbar. Der Schalter wird dann nicht gebraucht. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .schalter-feld,
  .schalter { display: none; }
}

/* ==========================================================================
   Baustein: Figur-Szene
   Eine kleine Bau-Figur (Kopf = StaysMine-Schild) baut eine Seite auf.
   Zum Verpflanzen: den Markup-Block zwischen <!-- figur-baustein: Anfang -->
   und <!-- figur-baustein: Ende --> sowie diesen ganzen Abschnitt kopieren.
   Alle Klassen beginnen mit .figur-, alle Keyframes mit figur-.
   Grundzustand = Endbild (fertige Seite, Figur steht rechts darunter).
   Die Keyframes übernehmen Ausblenden und Fahrt. Alle Animationen dauern
   gleich lang und starten gemeinsam, darum bleiben sie im Takt.
   Nur Verschieben und Einblenden, keine Drehung, kein Skalieren.
   Ohne JavaScript, ohne style-Attribute. Braucht die Variablen --sm-…
   aus Abschnitt 12 der Anleitung (Farben, --sm-radius, --sm-dauer, --sm-kurve).
   Steht die Szene auf anderem Grund als Papier: --figur-grund anpassen.
   ========================================================================== */

.figur-baustein {
  --figur-grund: var(--sm-papier);   /* Grund hinter der Szene; der Ring um die Räder nimmt diese Farbe */
  position: relative;
  max-width: 560px;
  margin: 48px auto 0;
}

.figur-bild {
  display: block;
  width: 100%;
  height: auto;
}

.figur-rad { stroke: var(--figur-grund); }

/* Schalter zum Anhalten (WCAG 2.2.2): versteckte Checkbox (role="switch") plus Label.
   Der sichtbare Text bleibt in beiden Zuständen „Animation anhalten“, damit er immer
   dem zugänglichen Namen entspricht (WCAG 2.5.3). Den Zustand zeigen Icon und Fläche. */
.figur-schalter {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.figur-schalter-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  min-width: 44px;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 0 14px;
  border-radius: var(--sm-radius);
  color: var(--sm-text-leise);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color var(--sm-dauer) var(--sm-kurve), color var(--sm-dauer) var(--sm-kurve);
}

/* Hover nur bei echtem Zeiger: auf Touch-Geräten bliebe :hover nach dem Tippen hängen
   und sähe aus wie der angehaltene Zustand. */
@media (hover: hover) {
  .figur-schalter-label:hover {
    background: rgba(19, 41, 75, .06);
    color: var(--sm-navy);
  }
}

.figur-schalter:focus-visible ~ .figur-schalter-label {
  outline: 3px solid var(--sm-link);
  outline-offset: 2px;
}

.figur-schalter-icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.figur-schalter-icon--weiter { display: none; }

/* Angehalten: Dreieck statt Pause-Zeichen, dazu eine leise Fläche wie beim zweiten Button */
.figur-schalter:checked ~ .figur-schalter-label {
  background: rgba(19, 41, 75, .06);
  color: var(--sm-navy);
}
.figur-schalter:checked ~ .figur-schalter-label .figur-schalter-icon--pause { display: none; }
.figur-schalter:checked ~ .figur-schalter-label .figur-schalter-icon--weiter { display: block; }

/* Animation: ein Durchgang dauert 16 s */
.figur-fahrt,
.figur-arm,
.figur-stein,
.figur-augen,
.figur-teil {
  animation-duration: 16s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.figur-fahrt { animation-name: figur-fahrt; }
.figur-arm { animation-name: figur-arm; }
.figur-stein { animation-name: figur-stein; }
.figur-augen { animation-name: figur-augen; }
.figur-teil--kopfzeile { animation-name: figur-kopfzeile; }
.figur-teil--ueberschrift { animation-name: figur-ueberschrift; }
.figur-teil--text { animation-name: figur-text; }
.figur-teil--knopf { animation-name: figur-knopf; }
.figur-teil--karten { animation-name: figur-karten; }

.figur-schalter:checked ~ .figur-szene * { animation-play-state: paused; }

/* Zeitplan: Anfang */
/* Zeitplan eines Durchgangs (16 s). Prozentwerte = Sekunde / 16.
   Nur Verschieben und Einblenden. Fahrten ease-in-out, Bauteile 200 ms mit der Kurve aus der Anleitung.
   0–0,6 s       steht am 1. Halt, die Seite ist leer
   0,6 s         Arm hoch, Blick nach oben; es erscheint: 0,85 s Kopfzeile
   1,15 s        Arm runter, danach liegt ein neuer Stein in der Hand
   1,5–2,7 s     fährt zum 2. Halt (ease-in-out)
   2,8 s         Arm hoch, Blick nach oben; es erscheint: 3,05 s Überschrift, 3,25 s Textzeilen
   3,6 s         Arm runter, danach liegt ein neuer Stein in der Hand
   3,95–5,15 s   fährt zum 3. Halt (ease-in-out)
   5,25 s        Arm hoch, Blick nach oben; es erscheint: 5,5 s Button
   5,8 s         Arm runter, danach liegt ein neuer Stein in der Hand
   6,15–7,55 s   fährt zum 4. Halt (ease-in-out)
   7,65 s        Arm hoch, Blick nach oben; es erscheint: 7,9 s beide Karten zugleich
   8,2 s         Arm runter, danach liegt ein neuer Stein in der Hand
   8,2–10,55 s   schaut auf die fertige Seite (Augen 2–3 px)
   bis 11,8 s    Ruhe
   11,8–12,4 s   alles blendet sanft aus
   12,4–15,6 s   fährt ruhig zurück zum 1. Halt (3,2 s), steht 1 s, dann von vorn */

@keyframes figur-fahrt {
  0%, 9.375% { transform: translateX(-320px); animation-timing-function: ease-in-out; }
  16.875%, 24.6875% { transform: translateX(-230px); animation-timing-function: ease-in-out; }
  32.1875%, 38.4375% { transform: translateX(-140px); animation-timing-function: ease-in-out; }
  47.1875%, 77.5% { transform: translateX(0); animation-timing-function: ease-in-out; }
  97.5% { transform: translateX(-320px); animation-timing-function: ease-in-out; }
  100% { transform: translateX(-320px); }
}

@keyframes figur-arm {
  0%, 3.75% { transform: translateY(0); animation-timing-function: ease-in-out; }
  5.3125%, 7.1875% { transform: translateY(-8px); animation-timing-function: ease-in-out; }
  8.75%, 17.5% { transform: translateY(0); animation-timing-function: ease-in-out; }
  19.0625%, 22.5% { transform: translateY(-8px); animation-timing-function: ease-in-out; }
  24.0625%, 32.8125% { transform: translateY(0); animation-timing-function: ease-in-out; }
  34.375%, 36.25% { transform: translateY(-8px); animation-timing-function: ease-in-out; }
  37.8125%, 47.8125% { transform: translateY(0); animation-timing-function: ease-in-out; }
  49.375%, 51.25% { transform: translateY(-8px); animation-timing-function: ease-in-out; }
  52.8125% { transform: translateY(0); animation-timing-function: ease-in-out; }
  100% { transform: translateY(0); }
}

@keyframes figur-stein {
  0% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in-out; }
  5.3125% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  6.5625% { opacity: 0; transform: translateY(-8px); }
  9.0625% { opacity: 0; transform: translateY(0); animation-timing-function: ease-in-out; }
  10.625% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in-out; }
  19.0625% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  20.3125% { opacity: 0; transform: translateY(-8px); }
  24.375% { opacity: 0; transform: translateY(0); animation-timing-function: ease-in-out; }
  25.9375% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in-out; }
  34.375% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  35.625% { opacity: 0; transform: translateY(-8px); }
  38.125% { opacity: 0; transform: translateY(0); animation-timing-function: ease-in-out; }
  39.6875% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in-out; }
  49.375% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  50.625% { opacity: 0; transform: translateY(-8px); }
  53.125% { opacity: 0; transform: translateY(0); animation-timing-function: ease-in-out; }
  54.6875% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes figur-augen {
  0%, 3.75% { transform: translate(0, 0); animation-timing-function: ease-in-out; }
  5.3125%, 7.1875% { transform: translate(0px, -2.5px); animation-timing-function: ease-in-out; }
  8.75%, 17.5% { transform: translate(0, 0); animation-timing-function: ease-in-out; }
  19.0625%, 22.5% { transform: translate(0px, -2.5px); animation-timing-function: ease-in-out; }
  24.0625%, 32.8125% { transform: translate(0, 0); animation-timing-function: ease-in-out; }
  34.375%, 36.25% { transform: translate(0px, -2.5px); animation-timing-function: ease-in-out; }
  37.8125%, 47.8125% { transform: translate(0, 0); animation-timing-function: ease-in-out; }
  49.375%, 51.25% { transform: translate(0px, -2.5px); animation-timing-function: ease-in-out; }
  52.8125%, 64.375% { transform: translate(-3px, -2px); animation-timing-function: ease-in-out; }
  65.9375%, 75.9375% { transform: translate(0, 0); animation-timing-function: ease-in-out; }
  77.5%, 95.9375% { transform: translate(-3.5px, 0px); animation-timing-function: ease-in-out; }
  97.5%, 100% { transform: translate(0, 0); }
}

@keyframes figur-kopfzeile {
  0%, 5.3125% { opacity: 0; transform: translateY(8px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  6.5625%, 73.75% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in-out; }
  77.5% { opacity: 0; transform: translateY(0); }
  78.125%, 100% { opacity: 0; transform: translateY(8px); }
}

@keyframes figur-ueberschrift {
  0%, 19.0625% { opacity: 0; transform: translateY(8px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  20.3125%, 73.75% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in-out; }
  77.5% { opacity: 0; transform: translateY(0); }
  78.125%, 100% { opacity: 0; transform: translateY(8px); }
}

@keyframes figur-text {
  0%, 20.3125% { opacity: 0; transform: translateY(8px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  21.5625%, 73.75% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in-out; }
  77.5% { opacity: 0; transform: translateY(0); }
  78.125%, 100% { opacity: 0; transform: translateY(8px); }
}

@keyframes figur-knopf {
  0%, 34.375% { opacity: 0; transform: translateY(8px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  35.625%, 73.75% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in-out; }
  77.5% { opacity: 0; transform: translateY(0); }
  78.125%, 100% { opacity: 0; transform: translateY(8px); }
}

@keyframes figur-karten {
  0%, 49.375% { opacity: 0; transform: translateY(8px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  50.625%, 73.75% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in-out; }
  77.5% { opacity: 0; transform: translateY(0); }
  78.125%, 100% { opacity: 0; transform: translateY(8px); }
}
/* Zeitplan: Ende */

@media (prefers-reduced-motion: reduce) {
  .figur-szene * { animation: none !important; }
  .figur-schalter,
  .figur-schalter-label { display: none; }
}

/* Einbau in die Startseite: Abstand kommt schon vom Raster (.held, gap 40px) */
.held .figur-baustein { margin-top: 0; }
