/* ============================================================
   Haustechnik Sailer — Demo
   Bildwelt: Der Systemkoffer
   Materialien: gespritztes Gehäuse, gefräster Schaum,
   gedrucktes Etikett, Metallverschluss.
   ============================================================ */

/* ---------- Schriften, selbst gehostet ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Azeret Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/azeret-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Azeret Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/azeret-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Material */
  --gehaeuse:      #2a2b28;
  --gehaeuse-tief: #1c1d1a;
  --gehaeuse-hoch: #35362f;
  --schaum:        #b0aca1;
  --schaum-tief:   #97938a;
  --etikett:       #f4f2ec;
  --metall:        #8e9089;

  /* Druckfarbe. Zwei gedämpfte Werte, weil der gefräste Schaum
     dunkler ist als die Platte — 4.5:1 muss auf beiden halten. */
  --tinte:        #1a1b19;
  --tinte-leise:  #3d3e38;  /* auf --schaum und --etikett */
  --tinte-tief:   #2a2b28;  /* auf --schaum-tief */
  --licht:        #e8e5dd;
  --licht-leise:  #a8a89e;
  --licht-still:  #8d8e84;  /* auf --gehaeuse-tief */

  /* Signale */
  --signal:       #c22d16;
  --signal-hell:  #d9401f;
  --verschluss:   #edb200;

  /* Raster */
  --rand: clamp(1.125rem, 4vw, 3rem);
  --breite: 78rem;
  --naht: 1px;

  /* Von JavaScript aus den echten Höhen gesetzt; die Werte hier sind
     nur die Vorgabe, falls es nicht läuft. Das Demoband umbricht auf
     schmalen Viewports, deshalb ist eine feste rem-Angabe falsch. */
  --band-h: 2.55rem;
  --rail-h: 4rem;

  /* Radien: Gehäuse gespritzt, Fach gefräst, Etikett geschnitten */
  --r-gehaeuse: 14px;
  --r-fach: 6px;
  --r-etikett: 2px;

  /* Bewegung */
  --zug: cubic-bezier(.16, 1, .3, 1);
  --t-griff: .22s;
  --t-zustand: .16s;
}

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

/* hidden schlägt jede Anzeigeregel dieser Datei. Ohne das gewinnen
   die display-Angaben weiter unten gegen das Attribut. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--band-h) + var(--rail-h) + .75rem);
}

body {
  margin: 0;
  background: var(--gehaeuse-tief);
  color: var(--licht);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.05; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- Browser-Oberflächen mitgestalten ---------- */
::selection { background: var(--verschluss); color: var(--tinte); }

:root { color-scheme: dark; scrollbar-color: var(--metall) var(--gehaeuse-tief); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--gehaeuse-tief); }
::-webkit-scrollbar-thumb {
  background: var(--metall);
  border: 3px solid var(--gehaeuse-tief);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--licht-leise); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--verschluss);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(20, 21, 19, .6);
  border-radius: var(--r-etikett);
}

.sprung {
  position: fixed;
  top: .5rem; left: .5rem;
  z-index: 90;
  transform: translateY(-160%);
  background: var(--verschluss);
  color: var(--tinte);
  font-weight: 700;
  padding: .7rem 1.1rem;
  border-radius: var(--r-fach);
  text-decoration: none;
  transition: transform var(--t-griff) var(--zug);
}
.sprung:focus-visible { transform: translateY(0); }

.mark { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Etikettentypografie (Mono nur für Nummern & Marken) ---------- */
.fach__etikett, .schritt__nr, .schritt__dauer,
.nummer__vorwahl, .demoband__marke, .rail__ort, .fuss__erfunden,
.kennwerte dt, .fuss__liste dt, .beleg__daten dt, .nachweis__was {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   DEMO-BAND — bindend, immer sichtbar
   ============================================================ */
.demoband {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .6rem var(--rand);
  background: var(--verschluss);
  color: var(--tinte);
  border-bottom: 2px solid var(--tinte);
}
.demoband__marke {
  flex: none;
  background: var(--tinte);
  color: var(--verschluss);
  padding: .25rem .55rem;
  border-radius: var(--r-etikett);
  font-weight: 700;
}
.demoband__text { font-size: .9rem; line-height: 1.35; font-weight: 500; }
.demoband a { color: var(--tinte); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ============================================================
   RAIL — die Kofferschiene
   ============================================================ */
.rail {
  position: sticky;
  top: var(--band-h);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .7rem var(--rand);
  background: color-mix(in srgb, var(--gehaeuse) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 2px 14px rgba(0, 0, 0, .45);
}
.rail__marke { text-decoration: none; color: var(--licht); line-height: 1.15; }
.rail__name {
  display: block;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -.005em;
  font-size: 1.02rem;
}
.rail__ort { display: block; color: var(--licht-leise); font-size: .72rem; }

.rail__nav { display: flex; gap: .15rem; margin-left: auto; }
.rail__nav a {
  color: var(--licht-leise);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  padding: .55rem .7rem;
  border-radius: var(--r-fach);
  transition: color var(--t-zustand), background var(--t-zustand);
}
.rail__nav a:hover { color: var(--licht); background: rgba(255, 255, 255, .06); }

.rail__ruf {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem 1rem;
  background: var(--signal);
  color: #fdfcf8;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-fach);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 6px rgba(0, 0, 0, .4);
  transition: background var(--t-zustand), transform var(--t-griff) var(--zug);
}
.rail__ruf:hover { background: var(--signal-hell); transform: translateY(-2px); }
.rail__ruf:active { transform: translateY(0); }

/* ============================================================
   KOFFER — Gehäuse und Schaum
   ============================================================ */
.koffer {
  max-width: var(--breite);
  margin-inline: auto;
  border-radius: var(--r-gehaeuse);
  background: var(--gehaeuse);
  background-image: repeating-linear-gradient(
    112deg,
    rgba(255, 255, 255, .014) 0 2px,
    rgba(0, 0, 0, .022) 2px 4px
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    inset 0 -1px 0 rgba(0, 0, 0, .6),
    0 18px 44px rgba(0, 0, 0, .5);
  overflow: hidden;
}

.koffer__deckel {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, .55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
}
.koffer__pragung {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  /* geprägt: heller Grat oben, dunkler Schatten unten */
  color: #93958a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .1), 0 -1px 0 rgba(0, 0, 0, .55);
  margin-right: auto;
}
.koffer__verschluss {
  width: 30px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    #c9cbc3 0%, var(--metall) 42%,
    #6a6c65 56%, #a6a89f 100%
  );
  box-shadow: 0 1px 2px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .25);
}

/* Der gefräste Schaum.
   Zwei Zelllagen — dunkle Poren und helle Grate — plus eine grobe
   Wolke. Eine einzelne Punktlage sieht aus wie Papier, nicht wie Schaum. */
.schaum, .platte {
  background-color: var(--schaum);
  background-image:
    radial-gradient(rgba(38, 38, 32, .16) .9px, transparent 1.15px),
    radial-gradient(rgba(255, 255, 255, .13) .8px, transparent 1.05px),
    radial-gradient(ellipse at 28% 22%, rgba(38, 38, 32, .055), transparent 62%);
  background-size: 5px 5px, 7px 7px, 96px 74px;
  background-position: 0 0, 2px 3px, 0 0;
}
.schaum {
  color: var(--tinte);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .3);
}

/* Ein gefrästes Fach: Vertiefung mit Grat */
.fraesung {
  border-radius: var(--r-fach);
  background: var(--schaum-tief);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, .34),
    inset 0 -1px 0 rgba(255, 255, 255, .22);
}

/* ============================================================
   AUFTAKT
   ============================================================ */
.auftakt { padding: clamp(1.25rem, 3vw, 2.25rem) var(--rand) 0; }

.schaum--auftakt {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.auftakt__wort h1 {
  font-size: clamp(2.05rem, 5.1vw, 3.4rem);
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -.022em;
  line-height: .9;
  color: var(--tinte);
  /* aus dem Schaum gefräst */
  text-shadow: 0 1px 0 rgba(255, 255, 255, .26);
}
.auftakt__satz {
  margin-top: 1.5rem;
  max-width: 34ch;
  color: var(--tinte-leise);
  font-size: 1.09rem;
  line-height: 1.62;
}

/* ---------- Fächer ---------- */
.faecher { display: grid; gap: 1rem; align-content: start; }

.fach {
  position: relative;
  border-radius: var(--r-fach);
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--schaum-tief);
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, .32),
    inset 0 -1px 0 rgba(255, 255, 255, .2);
}
.fach__etikett {
  color: var(--tinte);
  margin-bottom: .7rem;
  padding-bottom: .5rem;
  border-bottom: 1px dashed rgba(26, 27, 25, .32);
  font-weight: 700;
}

.fach__inhalt, .fach__leer { transition: opacity var(--t-griff) var(--zug); }

/* belegt / leer — Zustände sind unverwechselbar */
.fach[data-belegt="nein"] .fach__inhalt { display: none; }
.fach[data-belegt="ja"]   .fach__leer   { display: none; }

/* Das signalrote Notdienstfach */
.fach--notdienst[data-belegt="ja"] {
  background: var(--signal);
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, .38),
    inset 0 -1px 0 rgba(255, 255, 255, .28);
}
.fach--notdienst[data-belegt="ja"] .fach__etikett {
  color: #fdfcf8;
  border-bottom-color: rgba(253, 252, 248, .45);
}
.fach--notdienst[data-belegt="ja"] .nummer { color: #fdfcf8; }
.fach--notdienst[data-belegt="ja"] .nummer__vorwahl { color: rgba(253, 252, 248, .82); }
.fach--notdienst[data-belegt="ja"] .fach__zeit { color: rgba(253, 252, 248, .88); }

/* Die Nummer — das eine dominante Element */
.nummer {
  display: block;
  color: var(--tinte);
  text-decoration: none;
  font-weight: 700;
  font-stretch: 118%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.015em;
  transition: transform var(--t-griff) var(--zug);
}
.nummer__vorwahl {
  display: block;
  color: var(--tinte-leise);
  font-weight: 400;
  letter-spacing: .1em;
  margin-bottom: .1rem;
}
.nummer__ziffern {
  display: block;
  font-size: clamp(2.9rem, 6.9vw, 4.7rem);
  line-height: .95;
}
.nummer:hover { transform: translateY(-3px); }
.fach__zeit { margin-top: .6rem; font-size: .88rem; color: var(--tinte-tief); }

/* Die Abwesenheit ist so bewusst gezeichnet wie das Vorhandene */
.fach__leer { display: flex; align-items: center; gap: .9rem; padding: .35rem 0 .15rem; }
.silhouette {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  fill: rgba(26, 27, 25, .3);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .25));
}
.fach__leer-text { font-size: .92rem; color: var(--tinte-tief); line-height: 1.4; }

.faecher__hinweis {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tinte-tief);
  padding-left: .1rem;
}
/* Kein Ladezustand, der Inhalt verstecken könnte: die Vorgabe steht
   im Markup, JavaScript korrigiert sie nur. Fällt es aus, bleibt die
   Seite vollständig bedienbar. */

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: var(--r-fach);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-zustand), transform var(--t-griff) var(--zug),
              box-shadow var(--t-griff) var(--zug);
}
.knopf--haupt {
  margin-top: 1.9rem;
  background: var(--tinte);
  color: var(--etikett);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 3px 8px rgba(0, 0, 0, .34);
}
.knopf--haupt:hover {
  background: #2c2e2a;
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 9px 20px rgba(0, 0, 0, .42);
}
.knopf--haupt:active { transform: translateY(0); }
.knopf--zweit {
  margin-top: 1.4rem;
  background: transparent;
  color: var(--tinte);
  box-shadow: inset 0 0 0 2px rgba(26, 27, 25, .4);
}
.knopf--zweit:hover { background: rgba(26, 27, 25, .08); transform: translateY(-2px); }
.knopf__spinner { display: none; }

/* ============================================================
   ABSCHNITTE
   ============================================================ */
.abschnitt { padding: clamp(3.5rem, 8vw, 6.5rem) var(--rand) 0; }
.abschnitt__kopf { max-width: var(--breite); margin-inline: auto; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.abschnitt h2 {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: -.018em;
  color: var(--licht);
}
.abschnitt__lead {
  margin-top: .95rem;
  max-width: 62ch;
  color: var(--licht-leise);
  font-size: 1.06rem;
}
.warnung { color: var(--verschluss); font-weight: 700; }

/* ---------- Gewerke: eine Platte ---------- */
.platte {
  max-width: var(--breite);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--r-gehaeuse);
  box-shadow:
    inset 0 3px 9px rgba(0, 0, 0, .3),
    0 16px 38px rgba(0, 0, 0, .45);
  overflow: hidden;
}
/* Die Fräsnaht zwischen den Zonen — kein Spalt, eine Platte */
.zone + .zone {
  border-left: var(--naht) solid rgba(26, 27, 25, .34);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .2);
}
.zone { padding: clamp(1.25rem, 2.6vw, 2rem); }
.zone__kopf { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.15rem; }
.zone__mark {
  width: 2.4rem;
  height: 2.4rem;
  fill: var(--tinte);
  /* aus dem Schaum gestanzt: heller Grat an der Unterkante */
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .3));
}
.zone h3 {
  font-size: 1.4rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -.01em;
  color: var(--tinte);
}
.taschen { display: grid; gap: .6rem; }

/* Der Griff: eine Tasche wird aus dem Schaum gezogen */
.tasche {
  padding: .8rem .95rem;
  border-radius: var(--r-fach);
  background: var(--schaum-tief);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .2);
  transition: transform var(--t-griff) var(--zug), box-shadow var(--t-griff) var(--zug),
              background var(--t-zustand);
}
.tasche:hover {
  background: var(--etikett);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.tasche__name { display: block; font-weight: 700; color: var(--tinte); }
.tasche__spec { display: block; margin-top: .15rem; font-size: .9rem; color: var(--tinte-tief); }

.platte__fuss {
  max-width: var(--breite);
  margin: 1.4rem auto 0;
  color: var(--licht-leise);
  font-size: .98rem;
}

/* ---------- Ablauf ---------- */
.ablauf { max-width: var(--breite); margin-inline: auto; display: grid; }
.schritt {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(232, 229, 221, .13);
}
.schritt:last-child { border-bottom: 1px solid rgba(232, 229, 221, .13); }
.schritt__nr { color: var(--verschluss); font-weight: 700; }
.schritt__text h3 {
  font-size: 1.22rem;
  font-weight: 700;
  font-stretch: 110%;
  color: var(--licht);
  margin-bottom: .35rem;
}
.schritt__text p { color: var(--licht-leise); max-width: 60ch; }
.schritt__dauer { color: var(--licht-leise); white-space: nowrap; }

/* ---------- Gebiet ---------- */
.gebiet {
  max-width: var(--breite);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.gebiet__text h2 {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: -.018em;
}
.kennwerte { display: grid; gap: .1rem; margin-top: 1.75rem; }
.kennwerte > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-top: 1px solid rgba(232, 229, 221, .13);
}
.kennwerte dt { color: var(--licht-leise); }
.kennwerte dd { color: var(--licht); font-weight: 700; }
.kennwerte .zahl { font-size: 1.5rem; font-variant-numeric: tabular-nums; }

.orte {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-content: start;
}
.orte li {
  padding: .5rem .8rem;
  border-radius: var(--r-etikett);
  background: var(--etikett);
  color: var(--tinte);
  font-size: .92rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
/* Auch hier: die Leerstelle ist gestaltet */
.orte__leer {
  background: transparent !important;
  color: var(--licht-leise) !important;
  box-shadow: inset 0 0 0 1px rgba(232, 229, 221, .28) !important;
  font-style: italic;
}

/* ---------- Belege ---------- */
.belege {
  max-width: var(--breite);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.beleg {
  background: var(--etikett);
  color: var(--tinte);
  border-radius: var(--r-etikett);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  border-top: 5px solid var(--tinte);
}
/* Zwei Zeilen Titelhöhe, damit die Datenzeilen über alle drei Belege
   auf einer Linie liegen. */
.beleg h3 {
  font-size: 1.18rem;
  font-weight: 700;
  font-stretch: 110%;
  margin-bottom: .9rem;
  min-height: 2.1em;
}
.beleg__daten { display: grid; gap: .1rem; margin-bottom: .9rem; }
.beleg__daten > div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .4rem 0;
  border-top: 1px dashed rgba(26, 27, 25, .25);
}
.beleg__daten dt { color: var(--tinte-leise); }
.beleg__daten dd { text-align: right; font-weight: 700; font-size: .92rem; }
.beleg__text { font-size: .95rem; color: var(--tinte-leise); }

/* ---------- Qualifikation ---------- */
.qualifikation { max-width: var(--breite); margin-inline: auto; }
.qualifikation h2 {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: -.018em;
}
.nachweise { margin-top: 1.75rem; display: grid; }
.nachweise li {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1.4rem;
  padding: .95rem 0;
  border-top: 1px solid rgba(232, 229, 221, .13);
}
.nachweise li:last-child { border-bottom: 1px solid rgba(232, 229, 221, .13); }
.nachweis__was { color: var(--verschluss); }
.nachweis__wert { color: var(--licht); font-weight: 500; }

/* ============================================================
   ANFRAGE
   ============================================================ */
.abschnitt--anfrage { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.schaum--anfrage { padding: clamp(1.5rem, 4vw, 3.25rem); }
.anfrage__kopf { max-width: 62ch; margin-bottom: 2.1rem; }
.anfrage__kopf h2 {
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: -.018em;
  color: var(--tinte);
}
.schaum--anfrage .abschnitt__lead { color: var(--tinte-leise); }
.anfrage__warnung {
  margin-top: 1rem;
  padding: .75rem .95rem;
  border-radius: var(--r-fach);
  background: rgba(26, 27, 25, .1);
  box-shadow: inset 0 0 0 1px rgba(26, 27, 25, .22);
  font-size: .95rem;
  color: var(--tinte-leise);
}
.anfrage__warnung .warnung { color: var(--tinte); }

.anfrage__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.bogen { display: grid; gap: 1.15rem; }

/* Der Merkzettel: ein aufgeklebtes Etikett im Deckel */
.merkzettel {
  background: var(--etikett);
  color: var(--tinte);
  border-radius: var(--r-etikett);
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .38);
  border-top: 5px solid var(--tinte);
}
.merkzettel h3 {
  font-size: 1.08rem;
  font-weight: 700;
  font-stretch: 112%;
  margin-bottom: .9rem;
}
.merkzettel__liste { display: grid; gap: .5rem; }
.merkzettel__liste li {
  display: flex;
  gap: .55rem;
  font-size: .94rem;
  line-height: 1.4;
}
.merkzettel__liste li::before {
  content: "";
  flex: none;
  width: .7rem;
  height: .7rem;
  margin-top: .32rem;
  border-radius: 1px;
  background: var(--schaum-tief);
  box-shadow: inset 0 0 0 1px rgba(26, 27, 25, .45);
}
.merkzettel__text {
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--tinte-leise);
}
.merkzettel__ruf {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(26, 27, 25, .3);
}
.merkzettel__label {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tinte-leise);
  margin-bottom: .25rem;
}
.merkzettel__ruf a {
  font-size: 1.3rem;
  font-weight: 700;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
}
.merkzettel__ruf a:hover { color: var(--signal); }
.bogen__reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }

.feld { display: grid; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.feld > label, .feld legend {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--tinte);
  font-weight: 700;
  padding: 0;
}

.feld input, .feld select, .feld textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--tinte);
  background: var(--etikett);
  border: 0;
  border-radius: var(--r-etikett);
  box-shadow: inset 0 0 0 1px rgba(26, 27, 25, .3), inset 0 2px 4px rgba(0, 0, 0, .12);
  caret-color: var(--signal);
  transition: box-shadow var(--t-zustand);
}
.feld textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.feld select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231a1b19' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 1.15rem;
  padding-right: 2.6rem;
}
.feld input::placeholder, .feld textarea::placeholder { color: #6a6b63; }
.feld input:hover, .feld select:hover, .feld textarea:hover {
  box-shadow: inset 0 0 0 1px rgba(26, 27, 25, .5), inset 0 2px 4px rgba(0, 0, 0, .12);
}
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible {
  box-shadow: inset 0 0 0 2px var(--tinte), 0 0 0 6px rgba(20, 21, 19, .6);
}

.feld__hilfe { font-size: .87rem; color: var(--tinte-leise); }
.feld__fehler {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 700;
  color: #7d1c0b;
}
.feld__fehler::before {
  content: "";
  width: .85rem; height: .85rem;
  flex: none;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .3);
}
.feld[data-fehler] input, .feld[data-fehler] select, .feld[data-fehler] textarea {
  box-shadow: inset 0 0 0 2px var(--signal), inset 0 2px 4px rgba(0, 0, 0, .12);
}

.wahl { display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl__opt {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  padding: .6rem 1rem;
  border-radius: var(--r-fach);
  background: var(--schaum-tief);
  color: var(--tinte);
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .26), inset 0 -1px 0 rgba(255, 255, 255, .2);
  transition: background var(--t-zustand), transform var(--t-griff) var(--zug);
}
.wahl__opt:hover { background: #a9a59b; transform: translateY(-2px); }
.wahl__opt input { accent-color: var(--signal); width: 1.15rem; height: 1.15rem; margin: 0; }
.wahl__opt:has(input:checked) {
  background: var(--etikett);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .3), inset 0 0 0 2px var(--tinte);
  font-weight: 700;
}
.wahl__opt:has(input:focus-visible) {
  outline: 3px solid var(--verschluss);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(20, 21, 19, .6);
}

.bogen__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .4rem; }
.bogen__fuss .knopf--haupt { margin-top: 0; }
.bogen__hinweis { font-size: .88rem; color: var(--tinte-leise); }
.bogen__sammel {
  padding: .8rem 1rem;
  border-radius: var(--r-fach);
  background: var(--signal);
  color: #fdfcf8;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

/* Ladezustand */
.bogen[data-sendet] .knopf--haupt { pointer-events: none; opacity: .75; }
.bogen[data-sendet] .knopf__label { visibility: hidden; }
.bogen[data-sendet] .knopf__spinner {
  display: block;
  position: absolute;
  animation: dreh .8s linear infinite;
}
.bogen[data-sendet] .knopf--haupt { position: relative; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* Quittung */
.quittung { max-width: 46rem; }
.quittung__stempel {
  display: inline-block;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  padding: .5rem 1rem;
  border: 3px solid var(--signal);
  border-radius: var(--r-etikett);
  transform: rotate(-3.5deg);
  margin-bottom: 1.5rem;
  opacity: .88;
}
.quittung h3 {
  font-size: 1.55rem;
  font-weight: 700;
  font-stretch: 115%;
  color: var(--tinte);
  margin-bottom: .8rem;
}
.quittung p { color: var(--tinte-leise); max-width: 58ch; }

/* ============================================================
   FUSS
   ============================================================ */
.fuss { padding: clamp(3rem, 6vw, 4.5rem) var(--rand) 2.5rem; background: var(--gehaeuse-tief); }
.fuss__oben {
  max-width: var(--breite);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(232, 229, 221, .13);
}
.fuss__block h2 {
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 112%;
  color: var(--licht);
  margin-bottom: .85rem;
}
.fuss address { font-style: normal; color: var(--licht-leise); }
.fuss__erfunden { margin-top: .5rem; color: var(--licht-still); }
.fuss__liste { display: grid; gap: .35rem; }
.fuss__liste > div { display: flex; gap: .75rem; align-items: baseline; }
.fuss__liste dt { color: var(--licht-still); min-width: 5.5rem; }
.fuss__liste dd { color: var(--licht-leise); }
.fuss a { color: var(--licht); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fuss a:hover { color: var(--verschluss); }

.fuss__recht {
  max-width: var(--breite);
  margin: 1.5rem auto 0;
  display: grid;
  gap: .5rem;
}
.recht { border-top: 1px solid rgba(232, 229, 221, .1); }
.recht summary {
  cursor: pointer;
  padding: .75rem 0;
  font-weight: 700;
  color: var(--licht);
  list-style: none;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.recht summary::-webkit-details-marker { display: none; }
.recht summary::before {
  content: "";
  width: .55rem; height: .55rem;
  border-right: 2px solid var(--verschluss);
  border-bottom: 2px solid var(--verschluss);
  transform: rotate(-45deg);
  transition: transform var(--t-griff) var(--zug);
}
.recht[open] summary::before { transform: rotate(45deg); }
.recht__inhalt { padding: .25rem 0 1.25rem; color: var(--licht-leise); font-size: .95rem; max-width: 68ch; }
.recht__inhalt p + p, .recht__inhalt ul { margin-top: .85rem; }
.recht__inhalt li { list-style: disc; margin-left: 1.15rem; margin-bottom: .3rem; }

.fuss__demo {
  max-width: var(--breite);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 229, 221, .13);
  color: var(--licht-leise);
  font-size: .92rem;
  max-width: 72ch;
}
.fuss__demo strong { color: var(--verschluss); }

/* ============================================================
   TELEFON-HINWEIS
   ============================================================ */
.telhinweis {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 80;
  transform: translate(-50%, 130%);
  display: flex;
  align-items: center;
  gap: .9rem;
  width: min(32rem, calc(100vw - 2rem));
  padding: .9rem 1rem .9rem 1.15rem;
  background: var(--etikett);
  color: var(--tinte);
  border-radius: var(--r-etikett);
  border-top: 5px solid var(--tinte);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
  transition: transform .35s var(--zug);
}
.telhinweis[data-offen] { transform: translate(-50%, 0); }
.telhinweis p { font-size: .93rem; line-height: 1.45; }
.telhinweis__zu {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-fach);
  background: transparent;
  color: var(--tinte);
  cursor: pointer;
  transition: background var(--t-zustand);
}
.telhinweis__zu:hover { background: rgba(26, 27, 25, .12); }

/* ============================================================
   AUFTAKT-BEWEGUNG — ein einziger inszenierter Moment
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .auftakt__wort h1,
  .auftakt__satz,
  .auftakt__wort .knopf,
  .faecher > .fach {
    animation: heben .7s var(--zug) backwards;
  }
  .auftakt__satz          { animation-delay: .07s; }
  .auftakt__wort .knopf   { animation-delay: .12s; }
  .faecher > .fach:nth-child(1) { animation-delay: .17s; }
  .faecher > .fach:nth-child(2) { animation-delay: .24s; }

  @keyframes heben {
    from { transform: translateY(14px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}

/* ============================================================
   ANPASSUNG
   ============================================================ */
@media (max-width: 62rem) {
  .schaum--auftakt { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .auftakt__wort { display: contents; }
  .auftakt__wort h1     { order: 1; }
  .faecher              { order: 2; }
  .auftakt__satz        { order: 3; margin-top: 0; max-width: none; }
  .auftakt__wort .knopf { order: 4; margin-top: 0; justify-self: start; }
  .platte { grid-template-columns: minmax(0, 1fr); }
  .zone + .zone {
    border-left: 0;
    border-top: var(--naht) solid rgba(26, 27, 25, .34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  }
  .belege { grid-template-columns: minmax(0, 1fr); }
  .beleg h3 { min-height: 0; }
  .gebiet { grid-template-columns: minmax(0, 1fr); }
  .anfrage__raster { grid-template-columns: minmax(0, 1fr); }
  .fuss__oben { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .rail__nav { display: none; }
}

@media (max-width: 40rem) {
  .demoband { flex-wrap: wrap; gap: .5rem; }
  .bogen__reihe { grid-template-columns: minmax(0, 1fr); }
  .quittung__stempel { font-size: 1rem; }
  .schritt {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: .5rem 1rem;
  }
  .schritt__dauer { grid-column: 2; }
  .nachweise li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .rail__ruf-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rail__ruf { padding: .6rem .85rem; }
  .koffer { border-radius: 10px; }
  .beleg__daten > div { flex-direction: column; gap: 0; }
  .beleg__daten dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
