/* Aufbau der rca3D-Website, Richtung "Punktnetz".
   Farben, Schriften, Größen, Abstände und Radien kommen als Variablen aus dem Theme
   (src/themes/<name>.css). Hier stehen nur Anordnung und Verhalten.
   Die Maße der Ketten hängt build.py unten an (aus src/punktnetz.py). */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopf-h) + var(--a4));
  scrollbar-color: var(--rollgriff) var(--rollbahn);
}
@media (max-width: 374px) { html { font-size: 93.75%; } }
@media (max-width: 339px) { html { font-size: 87.5%; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (min-width: 60rem) { :root { --kopf-h: var(--kopf-h-breit); } }

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: var(--gr-text);
  line-height: var(--zeile);
  color: var(--tinte);
  background: var(--papier);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--gruen-a); color: var(--auf-gruen); }

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: var(--gewicht-titel);
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1, h2 { text-transform: var(--titel-schreibung); letter-spacing: var(--sperrung-titel); }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--a3); }
a { color: var(--verweis); text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.16em; }
img, svg { max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
figure { margin: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
  border-radius: var(--rund-fokus);
}
.buehne :focus-visible, .kopf :focus-visible { outline-color: var(--fokus-buehne); }
.tafel :focus-visible { outline-color: var(--fokus); }

.rahmen {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

.sprung {
  position: absolute;
  left: var(--rand);
  top: var(--a2);
  z-index: 30;
  padding: var(--a2) var(--a4);
  border-radius: var(--rund-pille);
  background: var(--knopf-grund);
  color: var(--knopf-text);
  font-weight: var(--gewicht-stark);
  text-decoration: none;
  transform: translateY(-300%);
}
.sprung:focus { transform: none; }

/* SVG-Verläufe in den Markenfarben des Themes */
.g-a { stop-color: var(--gruen-a); }
.g-b { stop-color: var(--gruen-b); }

/* Flächen ------------------------------------------------------------------ */
.buehne { position: relative; background: var(--buehne); color: var(--auf-buehne); }
.papier { background: var(--papier); }
.papier-2 { background: var(--papier-2); }
.abschnitt { padding-block: var(--abschnitt); }

/* Kopf --------------------------------------------------------------------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--buehne);
  color: var(--auf-buehne);
  transition: box-shadow var(--dauer-kurz);
}
.gerollt .kopf { box-shadow: var(--schatten); }
.kopf-innen {
  display: flex;
  align-items: center;
  gap: var(--a1);
  min-height: var(--kopf-h);
}
.marke { display: inline-flex; margin-right: auto; color: inherit; border-radius: var(--rund-fokus); }
.marke svg { display: block; height: 2.5rem; width: auto; }
.logo-schrift { fill: currentColor; }

.nav-liste { display: flex; flex-wrap: wrap; gap: 0.125rem; list-style: none; margin: 0; padding: 0; }
.nav-liste a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  border-radius: var(--rund-pille);
  color: inherit;
  font-weight: var(--gewicht-stark);
  font-size: 1rem;
  text-decoration: none;
  transition: background-color var(--dauer-kurz);
}
.nav-liste a:hover { background: var(--buehne-hauch); }

.rund-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: var(--linie-stark-b) solid var(--buehne-linie);
  border-radius: var(--rund-pille);
  background: none;
  color: inherit;
  font-weight: var(--gewicht-stark);
  font-size: var(--gr-klein);
  text-decoration: none;
  transition: background-color var(--dauer-kurz), border-color var(--dauer-kurz);
}
.rund-knopf:hover { background: var(--buehne-hauch); border-color: currentColor; }
.rund-knopf svg { width: 1.25rem; height: 1.25rem; display: block; }
html:not(.js) .schema-knopf { display: none; }
.menue-knopf { display: none; padding: 0 1.1rem; font-size: 1rem; }

@media (max-width: 59.99rem) {
  .js .menue-knopf { display: inline-flex; }
  .js .nav-liste {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: var(--a1) var(--rand) var(--a5);
    background: var(--buehne);
    box-shadow: var(--schatten);
  }
  .js .nav-liste[data-offen] { display: flex; }
  .js .nav-liste a {
    width: 100%;
    min-height: 3.5rem;
    padding: 0;
    border-radius: 0;
    border-bottom: var(--linie-b) solid var(--buehne-linie);
    font-family: var(--schrift-titel);
    font-weight: var(--gewicht-titel);
    font-size: 1.5rem;
    text-transform: var(--titel-schreibung);
    letter-spacing: 0.02em;
  }
  .js .nav-liste a:hover { background: none; }
  html:not(.js) .kopf-innen { flex-wrap: wrap; padding-block: var(--a1); }
  html:not(.js) .hauptnav { order: 3; width: 100%; }
  html:not(.js) .nav-liste a { padding: 0 0.7rem 0 0; font-size: var(--gr-klein); }
}

/* Knöpfe: Pillen, gestreckte Punkte ------------------------------------------ */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.375rem;
  padding: var(--a2) 1.75rem;
  border: var(--linie-stark-b) solid transparent;
  border-radius: var(--rund-pille);
  font-weight: var(--gewicht-stark);
  font-size: var(--gr-text);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--dauer-kurz), box-shadow 0.25s var(--aus), transform 0.25s var(--aus);
}
.knopf-voll { background: var(--knopf-grund); color: var(--knopf-text); }
.knopf-voll:hover { transform: translateY(-2px); box-shadow: var(--schatten); }
.knopf-voll:active { transform: none; box-shadow: none; }
.knopf-rand { border-color: var(--auf-buehne); color: var(--auf-buehne); }
.knopf-rand:hover { background: var(--buehne-hauch); }
.knoepfe { display: flex; flex-wrap: wrap; gap: var(--a2); }
@media (max-width: 34rem) { .knoepfe .knopf { width: 100%; } }

.hinweis {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: var(--a4);
  font-weight: var(--gewicht-stark);
}
.hinweis::before {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--gruen);
  transform: translateY(-0.06em);
}

.einleitung { font-size: var(--gr-einleitung); line-height: 1.5; }

/* Einstieg ------------------------------------------------------------------ */
.einstieg { padding-block: clamp(1.5rem, 4vw, 2.5rem) var(--a4); overflow-x: clip; }
.einstieg-raster { display: grid; gap: var(--a5); align-items: center; }
.einstieg h1 { font-size: var(--gr-h1); line-height: 1.12; margin-bottom: var(--a4); hyphens: manual; }
.einstieg .einleitung { max-width: 33rem; margin-bottom: var(--a5); }

.einstieg-kette { margin-inline: auto; width: 100%; max-width: 27rem; container-type: inline-size; }
.kette-bild { display: block; width: 100%; height: auto; overflow: visible; }
.kette-bild .zahlen text {
  font-family: var(--schrift-titel);
  font-weight: var(--gewicht-titel);
  font-size: 38px;
  fill: var(--auf-gruen);
}
.druckkopf image { filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.3)); }
.bewegt .druckkopf image { translate: 0 calc(var(--roll, 0) * -70px); }

.legende {
  list-style: none;
  counter-reset: schritt;
  display: flex;
  flex-wrap: wrap;
  gap: var(--a1) var(--a3);
  margin: var(--a3) 0 0;
  padding: 0;
  font-weight: var(--gewicht-stark);
  font-size: var(--gr-klein);
}
.legende li { counter-increment: schritt; }
.legende a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
}
.legende a::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--gruen);
  color: var(--auf-gruen);
  font-family: var(--schrift-titel);
  font-weight: var(--gewicht-titel);
  line-height: 1;
}
.legende a:hover { text-decoration: underline; }
/* Genug Platz: Jede Beschriftung steht unter ihrem Punkt, die Nummer steht dann schon im Punkt. */
@container (min-width: 28.5rem) {
  .legende {
    display: grid;
    grid-template-columns: repeat(5, var(--l-spalte));
    gap: 0;
    padding-left: var(--l-rand);
    text-align: center;
    line-height: 1.25;
  }
  .legende a { display: block; min-height: 2.75rem; padding: 0.35rem 0.15rem; }
  .legende a::before { display: none; }
}

.wege { list-style: none; display: grid; margin: var(--a5) 0 0; padding: 0; }
.wege a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.25rem;
  padding-block: var(--a3);
  border-top: var(--linie-b) solid var(--buehne-linie);
  color: inherit;
  font-weight: var(--gewicht-stark);
  font-size: 1.1875rem;
  line-height: 1.25;
  text-decoration: none;
}
.wege a::before {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--gruen);
}
.wege svg { flex: none; width: 1.5rem; height: 1.5rem; margin-left: auto; transition: transform 0.3s var(--aus); }
.wege a:hover svg { transform: translateY(0.25rem); }

@media (min-width: 44rem) {
  .wege { grid-template-columns: 1fr 1fr; column-gap: var(--a7); }
}
@media (min-width: 60rem) {
  .einstieg-raster { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--a7); }
  .einstieg-kette { max-width: 34rem; margin-right: 0; }
}

/* Der Druckkopf legt die Kette: die Fahrt (Pfad und Zeiten) hängt build.py unten an. */
@supports (offset-path: path("M0 0")) {
  .bewegt .druckkopf { animation: fahrt var(--druck-dauer) linear 0.35s both; }
  .bewegt .kette-bild .spur { stroke-dasharray: 1; animation: spur var(--druck-dauer) linear 0.35s both; }
}
.bewegt .legende li { animation: schein 0.6s ease-out both; animation-delay: calc(0.5s + var(--druck-dauer) * 0.17 * (var(--n) - 1)); }
.legende li:nth-child(1) { --n: 1; }
.legende li:nth-child(2) { --n: 2; }
.legende li:nth-child(3) { --n: 3; }
.legende li:nth-child(4) { --n: 4; }
.legende li:nth-child(5) { --n: 5; }
@keyframes schein { from { opacity: 0; } to { opacity: 1; } }

/* Überschriften der Abschnitte ------------------------------------------------ */
.abschnitt h2 {
  font-size: var(--gr-h2);
  line-height: 1.16;
  color: var(--titel);
  max-width: 17ch;
  margin-bottom: var(--a4);
}
.abschnitt-kopf .einleitung, .abschnitt-kopf p { max-width: 35rem; }
h3 { font-size: var(--gr-h3); line-height: 1.25; color: var(--titel); }

/* Geräteentwicklung: Kette neben den Schritten ---------------------------------- */
.geraete-raster { display: grid; gap: var(--a6); }
@media (min-width: 60rem) {
  .geraete-raster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--a7); align-items: start; }
  .geraete-raster .abschnitt-kopf { position: sticky; top: calc(var(--kopf-h) + var(--a5)); }
}
.explosion { margin-top: var(--a6); max-width: 15rem; }
@media (min-width: 60rem) { .explosion { max-width: min(18rem, 34vh); } }

.schritte-feld {
  --kette-pad: 0.1875rem;
  --kette-luft: 1.125rem;
  position: relative;
  padding-left: calc(2 * var(--kette-r) + 2 * var(--kette-pad) + var(--kette-luft));
}
@media (min-width: 60rem) { .schritte-feld { --kette-luft: 2.5rem; } }
.schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-rows: var(--kette-p);
}
/* Die Überschrift eines Schritts sitzt auf der Höhe ihres Punkts. */
.schritte li { display: grid; align-content: start; padding-top: calc(var(--kette-p) / 2 - 0.85rem); }
.schritte { counter-reset: schritt; }
.schritte li { position: relative; counter-increment: schritt; }
/* Nummer im Punkt, wie in der Kette im Einstieg */
.schritte li::before {
  content: counter(schritt);
  position: absolute;
  left: calc(-1 * (var(--kette-luft) + var(--kette-r) + var(--kette-pad)));
  top: calc(var(--kette-p) / 2);
  translate: -50% -50%;
  font-family: var(--schrift-titel);
  font-weight: var(--gewicht-titel);
  font-size: calc(var(--kette-r) * 0.72);
  line-height: 1;
  color: var(--auf-gruen);
  transition: color var(--dauer) var(--aus);
}
.bewegt .schritte li:not(.erreicht)::before { color: var(--titel); }
.schritt-text { max-width: 30rem; }
.schritte h3 { margin-bottom: 0.3rem; }
/* Die Grafiken sind verschieden hoch: Jede bekommt denselben Kasten und passt sich ein. */
.schritt-bild { width: 6.5rem; height: 5.5rem; margin-top: var(--a2); object-fit: contain; object-position: left center; }
@media (min-width: 60rem) {
  .schritte li { align-content: center; padding-top: 0; }
  .mit-bildern .schritte li { grid-template-columns: minmax(0, 1fr) 8.5rem; column-gap: var(--a4); align-items: center; }
  .schritt-bild { width: 8.5rem; height: 8.25rem; margin: 0; object-position: center; }
}
.kette {
  position: absolute;
  left: 0;
  top: calc(var(--kette-p) / 2 - var(--kette-r) - var(--kette-pad));
  width: calc(2 * var(--kette-r) + 2 * var(--kette-pad));
  height: calc(4 * var(--kette-p) + 2 * var(--kette-r) + 2 * var(--kette-pad));
}
.kette svg { display: block; width: 100%; height: 100%; max-width: none; }
.kette-maske { position: absolute; inset: 0; }
.kette.breit { display: none; }
@media (min-width: 60rem) {
  .kette.schmal { display: none; }
  .kette.breit { display: block; }
}
/* Mit Bewegung: erreichte Punkte gefüllt, kommende nur umrandet. Ohne JavaScript alle gefüllt. */
.bewegt .kette-maske {
  clip-path: inset(0 0 calc((4 - var(--stand, -1)) * var(--kette-p) + var(--kette-pad)) 0);
  transition: clip-path var(--dauer) var(--aus);
}

/* Aus einer Hand ---------------------------------------------------------------- */
.hand-raster { display: grid; gap: var(--a6); }
@media (min-width: 60rem) {
  .hand-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--a7); align-items: center; }
}
.hand-bild { width: 100%; max-width: 31rem; }
.lose {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 0 var(--a3);
  padding: 0;
}
.lose li {
  display: grid;
  grid-template-rows: 1.9rem auto 1.9rem;
  justify-items: center;
  align-items: center;
  font-size: var(--gr-klein);
  font-weight: var(--gewicht-stark);
  color: var(--tinte-leise);
  white-space: nowrap;
}
.lose li::before {
  content: "";
  grid-row: 2;
  aspect-ratio: 1;
  border: 2px solid var(--linie-stark);
  border-radius: 50%;
}
.lose span { grid-row: 3; align-self: end; }
.lose li:nth-child(odd) span { grid-row: 1; align-self: start; }
@media (max-width: 26rem) { .lose li { font-size: 0.8125rem; } }
@media (min-width: 34rem) {
  .lose li { grid-template-rows: 0 auto 2.1rem; }
  .lose li:nth-child(odd) span { grid-row: 3; align-self: end; }
}
.hand-kette { display: block; width: 100%; height: auto; }
.kernsatz {
  margin-top: var(--a4);
  font-family: var(--schrift-titel);
  font-weight: var(--gewicht-titel);
  font-size: var(--gr-kern);
  line-height: 1.2;
  letter-spacing: var(--sperrung-titel);
  text-transform: var(--titel-schreibung);
  color: var(--titel);
  text-wrap: balance;
}

/* Bilder -------------------------------------------------------------------- */
.foto-rahmen {
  position: relative;
  overflow: hidden;
  border-radius: var(--rund-bild);
  box-shadow: var(--schatten-bild);
  background: var(--papier-2);
}
.foto-rahmen img { display: block; width: 100%; filter: brightness(var(--bild-abdunkeln)); }
.bewegt .foto-rahmen img[data-zoom] { scale: calc(1.14 - var(--lage, 0.5) * 0.14); }
.foto figcaption, .symbol-zeile { margin-top: var(--a2); font-size: var(--gr-klein); color: var(--tinte-leise); }
.symbol {
  position: absolute;
  right: var(--a2);
  bottom: var(--a2);
  padding: 0.15rem 0.7rem;
  border-radius: var(--rund-pille);
  background: rgba(4, 16, 31, 0.72);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: var(--gewicht-stark);
}
.frei-bild img { display: block; width: 100%; filter: drop-shadow(0 1.25rem 1.5rem rgba(4, 26, 51, 0.28)); }
.bewegt .frei-bild[data-tiefe] img, .bewegt .schritt-bild { translate: 0 calc(var(--versatz, 0) * 1px); }

/* 3D-Druck ---------------------------------------------------------------------- */
.druck-kopf { display: grid; gap: var(--a6); }
@media (min-width: 60rem) {
  .druck-kopf { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--a7); align-items: center; }
}
.teile-raster { display: grid; gap: var(--a5); margin-top: var(--a7); }
@media (min-width: 60rem) {
  .teile-raster { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--a7); align-items: center; }
}
.zwischentitel { margin-bottom: var(--a3); }
.teile { margin: 0; padding: 0; border-top: var(--linie-b) solid var(--linie); }
.teil {
  position: relative;
  display: grid;
  gap: 0.2rem var(--a5);
  padding: var(--a3) 0 var(--a3) 1.9rem;
  border-bottom: var(--linie-b) solid var(--linie);
}
.teil::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--a3) + 0.42rem);
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--gruen);
}
.teil dt { font-family: var(--schrift-titel); font-weight: var(--gewicht-titel); font-size: var(--gr-h3); line-height: 1.25; color: var(--titel); }
.teil dd { margin: 0; }
.teile-bild { max-width: 36rem; margin-inline: auto; }
.teile-raster { padding-top: var(--a5); }
@media (max-width: 59.99rem) { .teile-bild { margin-top: var(--a6); } }
.symbol-zeile { text-align: right; }
.explosion .symbol-zeile { text-align: left; }
.foto.breit { margin-top: var(--a7); }
.foto.breit img { aspect-ratio: 21 / 9; object-fit: cover; }

.material {
  margin-top: var(--a7);
  padding: var(--a4);
  border: var(--linie-stark-b) solid var(--linie);
  border-radius: var(--rund-flaeche);
}
.material.offen { border-style: dashed; border-color: var(--platzhalter-rand); }
.material-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a2) var(--a3); margin-bottom: var(--a3); }
.material-titel { font-family: var(--schrift-titel); font-weight: var(--gewicht-titel); font-size: var(--gr-h3); color: var(--titel); }
.platzhalter-pille, .platzhalter-marke {
  padding: 0.15rem 0.7rem;
  border-radius: var(--rund-pille);
  background: var(--platzhalter-grund);
  color: var(--platzhalter-text);
  font-size: var(--gr-klein);
  font-weight: var(--gewicht-stark);
  white-space: nowrap;
}
.pillen { display: flex; flex-wrap: wrap; gap: var(--a1); list-style: none; margin: 0; padding: 0; }
.pillen li {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border: var(--linie-stark-b) solid var(--linie-stark);
  border-radius: var(--rund-pille);
  font-weight: var(--gewicht-stark);
}
.material.offen .pillen li { border-style: dashed; }
.pillen .weitere { border-style: dashed; color: var(--tinte-leise); }
@media (min-width: 52rem) {
  .material { display: flex; align-items: center; justify-content: space-between; gap: var(--a5); padding: var(--a4) var(--a5); }
  .material-kopf { margin: 0; }
}

/* Referenz und Über ---------------------------------------------------------------- */
.referenz-raster, .ueber-raster { display: grid; gap: var(--a6); }
@media (min-width: 60rem) {
  .referenz-raster { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--a7); align-items: center; }
  .ueber-raster { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--a7); align-items: start; }
}
.leitsatz-titel { margin-top: var(--a5); font-weight: var(--gewicht-stark); color: var(--tinte-leise); }
.leitsatz {
  margin-top: var(--a1);
  font-family: var(--schrift-titel);
  font-weight: var(--gewicht-titel);
  font-size: var(--gr-kern);
  line-height: 1.2;
  letter-spacing: var(--sperrung-titel);
  text-transform: var(--titel-schreibung);
  color: var(--titel);
}
.leitsatz-zusatz { margin-top: var(--a1); color: var(--tinte-leise); }
.blick {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--rund-flaeche);
  background: var(--papier-2);
}
.blick h3 { margin-bottom: var(--a3); }
.punktliste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a2); }
.punktliste li, .paare div { position: relative; padding-left: 1.6rem; }
.punktliste li::before, .paare div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--gruen);
}

/* Anfrage ------------------------------------------------------------------------ */
.anfrage-raster { display: grid; gap: var(--a6); }
@media (min-width: 60rem) {
  .anfrage-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--a7); align-items: center; }
}
.anfrage h2 { font-size: var(--gr-h2-gross); line-height: 1.1; color: inherit; max-width: none; }
.anfrage .einleitung { max-width: 30rem; margin-bottom: var(--a5); }
.tafel {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: var(--linie-b) solid var(--tafel-rand);
  border-radius: var(--rund-flaeche);
  background: var(--tafel);
  color: var(--tinte);
}
.tafel h3 { margin-bottom: var(--a4); }
.paare { margin: 0 0 var(--a4); display: grid; gap: var(--a2); }
.paare dt { display: inline; font-weight: 700; }
.paare dt::after { content: ":"; }
.paare dd { display: inline; margin: 0; }
.klein { font-size: var(--gr-klein); color: var(--tinte-leise); }

/* Fuß ---------------------------------------------------------------------------- */
.fuss { padding-block: var(--a6) var(--a5); font-size: var(--gr-klein); color: var(--tinte-leise); }
.fuss-raster { display: grid; gap: var(--a5); }
.fuss-marke { color: var(--titel); justify-self: start; }
.fuss-marke svg { display: block; width: 11rem; height: auto; }
.slogan { margin-top: var(--a1); font-weight: var(--gewicht-stark); color: var(--tinte-leise); }
.fuss address { color: var(--tinte); display: grid; }
@media (min-width: 44rem) {
  .fuss address { display: flex; flex-wrap: wrap; column-gap: 1.4rem; }
  .fuss address span { position: relative; }
  .fuss address span + span::before {
    content: "";
    position: absolute;
    left: -0.85rem;
    top: 0.68em;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: currentColor;
  }
}
.fuss-text p { margin-top: var(--a1); max-width: 34rem; }
.fuss-verweise { display: flex; flex-wrap: wrap; gap: 0 var(--a4); list-style: none; margin: var(--a2) 0 0; padding: 0; }
.fuss-verweise a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: var(--gewicht-stark); }
.schalter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--a2);
  padding-top: var(--a4);
  border-top: var(--linie-b) solid var(--linie);
}
.schalter .stand { margin-right: auto; }
.wahl { display: inline-flex; padding: 0.1875rem; border: var(--linie-stark-b) solid var(--linie-stark); border-radius: var(--rund-pille); }
.wahl button, .wahl a, .wahl span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: var(--rund-pille);
  background: none;
  color: var(--tinte);
  font-weight: var(--gewicht-stark);
  font-size: var(--gr-klein);
  text-decoration: none;
  transition: background-color var(--dauer-kurz), color var(--dauer-kurz);
}
.wahl button:not([aria-pressed="true"]):hover, .wahl a:hover { background: var(--papier-2); }
.wahl [aria-pressed="true"], .wahl [aria-current="true"] { background: var(--wahl-grund); color: var(--wahl-text); }
html:not(.js) .wahl-schema { display: none; }
@media (min-width: 52rem) {
  .fuss-raster { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--a7); align-items: start; }
  .schalter { grid-column: 1 / -1; }
}

/* Rechtsseiten und Fehlerseite ------------------------------------------------------ */
.seitenkopf { padding-block: var(--a6) var(--a5); }
.seitenkopf h1 { font-size: var(--gr-h2-gross); line-height: 1.1; }
.seitenkopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a1) var(--a5); margin-top: var(--a3); }
.zurueck { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; font-weight: var(--gewicht-stark); }
.recht-raster { display: grid; gap: var(--a6); padding-block: var(--a6) var(--abschnitt); }
@media (min-width: 60rem) {
  .recht-raster { grid-template-columns: 17rem minmax(0, 1fr); gap: var(--a7); align-items: start; }
  .ivz { position: sticky; top: calc(var(--kopf-h) + var(--a5)); max-height: calc(100vh - var(--kopf-h) - var(--a6)); overflow-y: auto; }
}
.ivz h2 { font-size: var(--gr-h3); color: var(--titel); margin-bottom: var(--a2); }
.ivz ol { list-style: none; margin: 0; padding: 0; border-top: var(--linie-b) solid var(--linie); }
.ivz a {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  min-height: 2.75rem;
  padding-block: 0.6rem;
  border-bottom: var(--linie-b) solid var(--linie);
  color: var(--tinte);
  font-size: var(--gr-klein);
  line-height: 1.35;
  text-decoration: none;
}
.ivz a:hover { color: var(--verweis); }
.ivz .nr { flex: none; min-width: 1.4rem; font-family: var(--schrift-titel); color: var(--titel); }
.recht-text { max-width: var(--breite-text); overflow-wrap: break-word; }
.recht-text h2 { font-size: 1.625rem; line-height: 1.2; text-transform: none; letter-spacing: 0; color: var(--titel); margin: var(--a6) 0 var(--a2); }
.recht-text h2:first-child { margin-top: 0; }
.recht-text h3 { margin: var(--a4) 0 var(--a1); }
.recht-text ul { margin: var(--a3) 0; padding-left: 1.3rem; }
.recht-text li + li { margin-top: 0.35rem; }
.recht-text code { font-size: 0.92em; }
.platzhalter {
  padding: 0.05em 0.3em;
  border-radius: 0.25rem;
  background: var(--platzhalter-grund);
  color: var(--platzhalter-text);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.platzhalter .platzhalter-marke { margin-left: 0.3em; padding: 0 0.5em; border: 1px solid var(--platzhalter-rand); font-size: 0.8em; }

.fehler { padding-block: var(--abschnitt); min-height: 60vh; display: grid; align-items: center; }
.fehler h1 { font-size: var(--gr-h2-gross); line-height: 1.1; margin-bottom: var(--a3); }
.fehler .einleitung { margin-bottom: var(--a5); }
.fehler .zweit { margin-top: var(--a4); }
.fehler .zweit a { color: inherit; }

/* Bewegung beim Scrollen ----------------------------------------------------------- */
/* Nur mit Skript und ohne "reduzierte Bewegung" (Klasse bewegt). Sonst steht alles still und sichtbar. */
.bewegt .zeig { opacity: 0; translate: 0 var(--weg); transition: opacity var(--dauer) var(--aus), translate var(--dauer) var(--aus); }
.bewegt .zeig.da { opacity: 1; translate: 0 0; }
.bewegt .teil.zeig:nth-child(2) { transition-delay: 0.07s; }
.bewegt .teil.zeig:nth-child(3) { transition-delay: 0.14s; }
.bewegt .teil.zeig:nth-child(4) { transition-delay: 0.21s; }
.bewegt .teil.zeig:nth-child(5) { transition-delay: 0.28s; }

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

@media print {
  .kopf, .schalter, .wege, .sprung { display: none; }
  .buehne { background: none; color: inherit; }
}

/* automatisch erzeugt aus src/punktnetz.py */
:root{--kette-r:1.6250rem;--kette-p:18.7500rem}@media (min-width:60rem){:root{--kette-r:3.5000rem;--kette-p:9.7265rem}}.lose{margin-inline:-3.768%}.lose li::before{width:71.968%}.legende{--l-rand:2.420%;--l-spalte:15.986%}@supports (offset-path:path("M0 0")){.druckkopf{offset-path:path("M0 0L98.25 98.25L196.51 0L294.76 98.25L393.01 0L419.01 -80");offset-rotate:0deg;offset-distance:100%}}@supports not (offset-path:path("M0 0")){.druckkopf{transform:translate(419.01px,-80px)}}@keyframes fahrt{0%{offset-distance:0%}86%{offset-distance:86.85%;animation-timing-function:ease-out}100%{offset-distance:100%}}@keyframes spur{0%{stroke-dashoffset:1}86%{stroke-dashoffset:0.1872}100%{stroke-dashoffset:0}}