/*
 * patricvogel.ch, variant person-B «Das Programmheft» (03.11.2026).
 * A cinema foyer: posters on a brick wall (the plan of the page), a box office with two windows
 * (companies, lab), then the career as a film running backwards, with a film strip as the fixed map.
 * Dark «evening show» first, light «matinee» via prefers-color-scheme. One family (Satoshi), no mono.
 * CSP style-src 'self': no style attributes in markup; seite.js only writes CSSOM custom properties.
 */
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* evening show */
  --grund: #1a1310;
  --samt: #2b1915;
  --samt-2: #3a221c;
  --papier: #f0e4d0;
  --text: #f0e4d0;
  --leise: #b4a696;
  --linie: #45352c;
  --signal: #ef7a52;
  --signal-text: #1a1310;
  --licht: #ffd27f;
  --licht-text: #ffd27f;
  --rahmen: #0f0b09;
  --mauer-bild: url('/mauer-dunkel.svg');
  --streifen: #0c0907;
  --setzen: cubic-bezier(0.2, 1.3, 0.45, 1);
  --kamera: cubic-bezier(0.65, 0, 0.35, 1);
  --f: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --kopf: 56px;
  --rand: clamp(16px, 3.4vw, 44px);
  --fs-breite: 0px;
  --fp: 0;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --grund: #efe6da;
    --samt: #e4d5c3;
    --samt-2: #d8c4ae;
    --papier: #fbf5ea;
    --text: #24170f;
    --leise: #5f4d40;
    --linie: #c9b8a5;
    --signal: #a3361b;
    --signal-text: #fbf5ea;
    --licht: #b8741a;
    /* glow as text on the light ground: 4.9:1 on #e6dccf, 5.4:1 on #efe6da (review R1 #5) */
    --licht-text: #85500f;
    --rahmen: #3a2a20;
    --mauer-bild: url('/mauer-hell.svg');
    --streifen: #2a1e18;
  }
}
@media (min-width: 960px) {
  :root {
    /* Befund 4: the film strip 112 px wide */
    --fs-breite: 112px;
  }
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopf) + 12px);
}
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--f);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--signal);
  color: var(--signal-text);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
.raus {
  font-weight: 700;
}
.dom {
  font-variant-numeric: tabular-nums;
}

/* ---------- WebGL canvas (decoration, behind everything) ---------- */
.buehne-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.dreid .buehne-canvas {
  opacity: 1;
}

/* ---------- head ---------- */
.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--kopf);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--rand);
  /* Befund 5: an opaque head in paper cream or dark brown, nothing shows through while scrolling */
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
}
.name {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
}
.menue {
  margin-left: auto;
  display: none;
}
.menue ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menue a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.menue a:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.menue a[aria-current] {
  background: var(--text);
  color: var(--grund);
}
.menue .raus {
  color: var(--signal);
  font-size: 0.82rem;
}
.werkzeug {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sprache,
.bewegung {
  font: inherit;
  font-size: 0.85rem;
  color: var(--leise);
  background: none;
  border: 1px solid var(--linie);
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 4px 12px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
/* the switch names its action («Animation aus» / «Animation an», G4), no strike-through any more.
   Befund 5: on phones it sits in the programme sheet, not in the narrow head */
@media (max-width: 959px) {
  .werkzeug .bewegung {
    display: none;
  }
  /* external review 24.11.2026: the programme chip needs JavaScript; without it the head shows the
     chapter anchors instead (the chapters stand in the HTML) */
  html:not(.js) .menue {
    display: block;
  }
  html:not(.js) .chip {
    display: none;
  }
}
/* name and state word sit in a flex box, which drops the space between them */
.bewegung {
  gap: 0.3em;
}
.blatt-schalter {
  margin-top: 14px;
}
.blatt-schalter .bewegung {
  color: var(--text);
}
.chip {
  margin-left: auto;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--signal);
  background: color-mix(in srgb, var(--signal) 12%, transparent);
  color: var(--text);
  cursor: pointer;
  max-width: 52vw;
}
.chip-k {
  font-weight: 700;
}
/* narrow phones: everything in the head must fit in one row without sideways scrolling */
@media (max-width: 479px) {
  .kopf {
    gap: 8px;
  }
  .name {
    font-size: 0.95rem;
  }
  .chip {
    padding: 4px 10px;
    gap: 6px;
    min-width: 0;
    max-width: none;
    flex: 0 1 auto;
  }
  .chip-k {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .chip-ort::after {
    content: ' \25BE';
  }
  .sprache,
  .bewegung {
    font-size: 0.78rem;
    padding: 4px 8px;
  }
  html:not(.js) .menue ul {
    gap: 0;
  }
  html:not(.js) .menue a {
    padding-left: 6px;
    padding-right: 6px;
  }
  /* the name in the head already leads to the foyer */
  html:not(.js) .menue li:first-child {
    display: none;
  }
}
.chip-ort {
  color: var(--leise);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 960px) {
  .menue {
    display: block;
  }
  .chip {
    display: none;
  }
  .werkzeug {
    margin-left: 6px;
  }
}

/* ---------- mobile sheet: the full plan (modal dialog via showModal) ---------- */
.blatt {
  border: 0;
  padding: 0;
  margin: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: 88vh;
  background: var(--samt);
  color: var(--text);
  border-radius: 18px 18px 0 0;
}
.blatt::backdrop {
  background: rgb(0 0 0 / 0.6);
}
.blatt-in {
  padding: 18px var(--rand) 28px;
}
.blatt-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.blatt-zu {
  font: inherit;
  font-size: 0.9rem;
  min-height: 40px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--linie);
  background: none;
  color: var(--text);
  cursor: pointer;
}
.blatt-liste,
.blatt-raus {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blatt-liste a,
.blatt-raus a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 6px;
  border-bottom: 1px solid var(--linie);
  text-decoration: none;
  min-height: 44px;
}
.blatt-liste .pl-jahr {
  width: 5.5em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.blatt-liste a[aria-current] {
  color: var(--signal);
}
.blatt-liste .pl-bild {
  display: none;
}
.blatt-raus {
  margin-top: 14px;
}
.blatt-raus .raus,
.blatt-raus .dom {
  color: var(--signal);
}

/* ---------- film strip: the fixed map once the film runs (desktop) ---------- */
.filmstreifen {
  display: none;
  /* LR-0402: the strip keeps its fixed width, so its text is capped in pixels (labels ran over their boxes at
     200 percent text size); the full navigation at the top and the content still grow with the text size */
  font-size: min(1rem, 14px);
}
@media (min-width: 960px) {
  .filmstreifen {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 20;
    top: var(--kopf);
    bottom: 0;
    left: 0;
    width: var(--fs-breite);
    background: var(--streifen);
    color: #f0e4d0;
    padding: 12px 15px;
  }
  .filmstreifen::before,
  .filmstreifen::after {
    /* perforation on both edges, the strip of a 35 mm film */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 9px;
    background: repeating-linear-gradient(to bottom, transparent 0 7px, #6b5a4d 7px 15px, transparent 15px 22px);
    opacity: 0.6;
  }
  .filmstreifen::before {
    left: 6px;
  }
  .filmstreifen::after {
    right: 6px;
  }
  .js .filmstreifen {
    opacity: var(--fp);
    transform: translateX(calc((1 - var(--fp)) * -24px));
    visibility: hidden;
  }
  .js.im-kino .filmstreifen {
    visibility: visible;
  }
  /* a link of the strip that has the keyboard focus is never half transparent (review R1 #1) */
  .js.im-kino .filmstreifen:focus-within {
    opacity: 1;
    transform: none;
  }
}
.fs-zaehler {
  font-size: min(0.72rem, 11.5px);
  line-height: 1.3;
  color: #c7b7a3;
  min-height: 2.6em;
  margin-bottom: 6px;
}
.fs-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}
.fs-liste li {
  flex: 1 1 0;
  min-height: 0;
  max-height: 86px;
}
.fs-liste a {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5px 3px;
  border-radius: 3px;
  text-decoration: none;
  background: #241a15;
  border: 1px solid #3a2b23;
  overflow: hidden;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.fs-liste .pl-bild {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, #3a1f17 0 6px, #2d1812 6px 12px);
  opacity: 0.6;
}
.fs-liste .pl-jahr,
.fs-liste .pl-titel {
  position: relative;
}
.fs-liste .pl-jahr {
  font-weight: 700;
  font-size: min(0.86rem, 14px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
/* Befund 4: short labels 13/17 px; the short words (Bauwerke, Armee) fit, so no word breaks apart */
.fs-liste .pl-titel {
  font-size: 13px;
  line-height: 17px;
  color: #c7b7a3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fs-liste a:hover {
  border-color: #ef7a52;
}
.fs-liste a[aria-current] {
  background: #ffd27f;
  border-color: #ffd27f;
  color: #1a1310;
  box-shadow: 0 0 18px rgb(255 210 127 / 0.45);
}
.fs-liste a[aria-current] .pl-titel {
  color: #3a2a20;
}
.fs-liste a[aria-current] .pl-bild {
  opacity: 0.35;
}
/* each field shows the still its poster flew in with */
.fs-liste [data-ziel] .pl-bild {
  background-position: 50% 30%;
  background-size: 130% auto;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.fs-liste [data-ziel='station-7'] .pl-bild {
  background-image: url('/standbilder/netz.svg');
}
.fs-liste [data-ziel='station-6'] .pl-bild {
  background-image: url('/standbilder/riss.svg');
}
.fs-liste [data-ziel='station-5'] .pl-bild {
  background-image: url('/standbilder/welle.svg');
}
.fs-liste [data-ziel='station-4'] .pl-bild {
  background-image: url('/standbilder/globus.svg');
}
.fs-liste [data-ziel='station-3'] .pl-bild {
  background-image: url('/standbilder/bruecke.svg');
}
.fs-liste [data-ziel='station-2'] .pl-bild {
  background-image: url('/standbilder/mauer.svg');
}
.fs-liste [data-ziel='station-1'] .pl-bild {
  background-image: url('/standbilder/spiel.svg');
}
/* Feinschliff A10: foyer and contact get their own still, cinema front and envelope from bricks */
.fs-liste [data-ziel='foyer'] .pl-bild {
  background-image: url('/standbilder/foyer.svg');
}
.fs-liste [data-ziel='kontakt'] .pl-bild {
  background-image: url('/standbilder/kontakt.svg');
}

/* ---------- main ---------- */
main {
  position: relative;
  z-index: 1;
}
main:focus {
  outline: none;
}

/* ---------- foyer: the plan ---------- */
.foyer {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--kopf) + 18px) var(--rand) 40px;
  isolation: isolate;
}
/* without JavaScript the film strip stands from the start, so the foyer makes room for it */
html:not(.js) .foyer {
  padding-left: calc(var(--fs-breite) + var(--rand));
}
.foyer::before {
  /* the poster wall without WebGL; with 3D planned the foyer stays dark until the wall is laid */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 18%, rgb(255 205 130 / 0.22), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgb(0 0 0 / 0.55), transparent 70%),
    var(--mauer-bild) 0 0 / 480px 144px repeat,
    var(--grund);
  transition: opacity 0.8s ease;
}
@media (prefers-color-scheme: light) {
  .foyer::before {
    background:
      radial-gradient(ellipse 60% 45% at 50% 18%, rgb(255 250 235 / 0.55), transparent 70%),
      var(--mauer-bild) 0 0 / 480px 144px repeat,
      var(--grund);
  }
}
.mit3d .foyer::before {
  opacity: 0;
}
/* WEB-08: a calmer wall. Without 3D a veil of the ground colour lies over the CSS bricks; with 3D the
   same veil lies over the laid WebGL wall (the canvas is under main), so the bricks lose contrast and the
   sign, portrait and posters stand out; the room, the lights and the laying stay as they are */
.foyer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--grund) 38%, transparent);
}
@media (prefers-color-scheme: light) {
  .foyer::after {
    background: color-mix(in srgb, var(--grund) 30%, transparent);
  }
}
.foyer-in {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
/* phones (Befund 1): face, name, today line and one whole poster in the first 390 x 844 view */
@media (max-width: 719px) {
  .foyer {
    padding-top: calc(var(--kopf) + 12px);
  }
  .foyer-in {
    gap: 12px;
  }
  .schild {
    padding: 12px 18px 14px;
  }
}

/* chain card: where the four sites are, which one is this */
.kette ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
/* phones: the chain stays above the fold as one line (Bauliste 4, 17.11.2026), names only, the
   «you are here» card is the light one; a line that does not fit scrolls sideways inside itself */
.kette {
  display: block;
}
@media (max-width: 719px) {
  .kette ol {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--rand) * -1);
    padding: 0 var(--rand);
  }
  .kette li {
    flex: 0 0 auto;
  }
  .kette .k-ort {
    min-height: 44px;
    align-items: center;
  }
}
.k-ort {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  height: 100%;
  padding: 5px 12px;
  border-radius: 8px;
  /* Befund 5: no extra frame and no blur on the card, form and place stay (T1918 T-d) */
  border: 0;
  background: color-mix(in srgb, var(--grund) 86%, transparent);
  text-decoration: none;
  line-height: 1.25;
  min-height: 44px;
  align-items: center;
  /* keeps the hidden screen-reader label inside the scrolling card (the blur did this before) */
  position: relative;
}
a.k-ort:hover {
  text-decoration: underline;
  text-decoration-color: var(--signal);
}
.k-name {
  font-weight: 700;
  font-size: 0.86rem;
}
.k-was {
  font-size: 0.74rem;
  color: var(--leise);
}
.k-hier .k-ort {
  background: #f0e4d0;
  color: #24170f;
  border-color: #f0e4d0;
}
.k-hier .k-was {
  color: #7a3424;
  font-weight: 700;
}
@media (min-width: 720px) {
  .kette {
    display: block;
    justify-self: end;
  }
  .kette ol {
    display: flex;
    gap: 0;
    align-items: stretch;
  }
  .kette li {
    position: relative;
    padding-left: 18px;
  }
  .kette li:first-child {
    padding-left: 0;
  }
  .kette li + li::before {
    /* the line between the doors */
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    width: 12px;
    border-top: 1px dashed color-mix(in srgb, var(--text) 45%, transparent);
  }
}

/* sign and portrait (Befund 1): the face stands free next to the sign, 160 x 200 px to its right on
   wide screens, 96 x 120 px above it on phones, 16 px apart; it belongs to no poster */
.schild-reihe {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.portraet,
.portraet img {
  display: block;
  width: 96px;
  height: 120px;
}
.portraet img {
  object-fit: cover;
  border-radius: 6px;
  box-shadow:
    0 0 0 2px #5a3a22,
    0 14px 30px rgb(0 0 0 / 0.45);
}
@media (min-width: 720px) {
  .schild-reihe {
    flex-direction: row-reverse;
    align-items: center;
  }
  .portraet,
  .portraet img {
    width: 160px;
    height: 200px;
  }
}

/* marquee sign */
.schild {
  justify-self: center;
  text-align: center;
  position: relative;
  padding: 16px clamp(22px, 4vw, 54px) 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2b1814, #170e0b);
  box-shadow:
    0 0 0 2px #5a3a22,
    0 0 0 6px #120b08,
    0 24px 60px rgb(0 0 0 / 0.55);
  color: #ffe9bf;
  max-width: 980px;
}
.schild::before {
  /* the bulbs around the sign */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 7px;
  background: radial-gradient(circle, #ffd27f 0 2.6px, rgb(255 210 127 / 0.15) 3.4px, transparent 4px) 0 0 / 16px 16px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.bewegt .schild::before {
  animation: lauflicht 1.6s steps(8) 0.3s 2 both;
}
@keyframes lauflicht {
  from {
    background-position: 0 0;
    filter: brightness(0.6);
  }
  to {
    background-position: 16px 0;
    filter: brightness(1.15);
  }
}
.schild-klein {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: #e7a46a;
  margin-bottom: 2px;
}
/* Befund 3: paper cream on dark brown, fully opaque at every moment; the glow only adds to it */
.schild-name {
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  letter-spacing: -0.01em;
  line-height: 0.98;
  color: #f0e4d0;
  opacity: 1;
  text-shadow:
    0 0 18px rgb(255 196 110 / 0.55),
    0 0 2px rgb(255 230 180 / 0.9);
}
.schild-name:focus {
  outline: none;
}
.schild-satz {
  margin-top: 10px;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  color: #f0e4d0;
}
/* Befund 1: what he does today, 16 px under the sentence, 20/28 px wide, 18/26 px on phones */
.schild-heute {
  margin-top: 16px;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  color: #f0e4d0;
}
@media (min-width: 720px) {
  .schild-heute {
    font-size: 20px;
    line-height: 28px;
  }
}
/* the sign switches on once, when the visitor arrives: only the glow flickers, the letters stay */
.bewegt .schild-name {
  animation: anschalten 1.1s steps(1, end) 0.2s both;
}
@keyframes anschalten {
  0% { text-shadow: none; }
  12% { text-shadow: 0 0 18px rgb(255 196 110 / 0.55), 0 0 2px rgb(255 230 180 / 0.9); }
  18% { text-shadow: none; }
  30%, 100% { text-shadow: 0 0 18px rgb(255 196 110 / 0.55), 0 0 2px rgb(255 230 180 / 0.9); }
}
/* daylight: an unlit enamel plaque, dark letters, bulbs off (review E5) */
@media (prefers-color-scheme: light) {
  .schild {
    background: linear-gradient(180deg, #f7efe2, #ebdfcb);
    box-shadow:
      0 0 0 2px #8a5a36,
      0 0 0 6px #d9c6a8,
      0 18px 40px rgb(60 30 10 / 0.18);
    color: #2a1810;
  }
  .schild::before,
  .bewegt .schild::before {
    background: radial-gradient(circle, #b9a487 0 2.4px, transparent 3px) 0 0 / 16px 16px;
    animation: none;
  }
  .schild-klein {
    color: #8a3d26;
  }
  .schild-name,
  .bewegt .schild-name {
    color: #24150e;
    text-shadow: none;
    animation: none;
  }
  .schild-satz,
  .schild-heute {
    color: #2a1810;
  }
  .portraet img {
    box-shadow:
      0 0 0 2px #8a5a36,
      0 12px 26px rgb(60 30 10 / 0.2);
  }
}
.lead {
  justify-self: center;
  text-align: center;
  color: var(--text);
  font-size: 1rem;
  padding: 4px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--grund) 78%, transparent);
}

/* posters */
.plakate {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.plakat a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: #0f0b09;
  /* WEB-08: a thinner frame and a softer shadow, the poster motif carries the picture */
  padding: 3px;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.06) inset,
    0 8px 18px rgb(0 0 0 / 0.3);
  color: #f0e4d0;
  transition: box-shadow 0.35s ease, filter 0.35s ease;
}
/* the link box never moves under the pointer (B1): a lifted box left its lower edge, the pointer
   fell off, the poster dropped back and flickered; only the motif inside lifts */
.plakat a:hover,
.plakat a:focus-visible {
  box-shadow:
    0 0 0 2px #ffd27f,
    0 22px 40px rgb(0 0 0 / 0.55),
    0 0 40px rgb(255 210 127 / 0.25);
}
.plakat-bild {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 2px;
  /* a dark stage for the brick still, lit from above */
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgb(255 210 127 / 0.22), transparent 70%),
    linear-gradient(180deg, #2a1a14, #120b08);
}
/* the poster motif: a still of the same bricks the 3D scene lays for this station */
.plakat-art {
  position: absolute;
  top: 6%;
  left: 4%;
  width: 92%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.45));
  transition: translate 0.35s var(--setzen);
}
.plakat a:hover .plakat-art,
.plakat a:focus-visible .plakat-art {
  translate: 0 -6px;
}
/* the other posters step back while one is in the light */
.plakate:has(a:hover, a:focus-visible) .plakat a:not(:hover):not(:focus-visible) {
  filter: brightness(0.55);
}
/* Befund 4: year 20/24 px, title 16/21 px on every poster */
.plakat-unten {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px 4px;
}
.plakat-jahr {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  color: #ffd27f;
}
.plakat-titel {
  font-size: 16px;
  line-height: 21px;
  color: #f0e4d0;
  hyphens: manual;
}

/* posters hang one after the other (only with motion) */
.bewegt .plakat {
  animation: haengen 0.7s var(--setzen) both;
}
.bewegt .plakat:nth-child(2) { animation-delay: 0.06s; }
.bewegt .plakat:nth-child(3) { animation-delay: 0.12s; }
.bewegt .plakat:nth-child(4) { animation-delay: 0.18s; }
.bewegt .plakat:nth-child(5) { animation-delay: 0.24s; }
.bewegt .plakat:nth-child(6) { animation-delay: 0.3s; }
.bewegt .plakat:nth-child(7) { animation-delay: 0.36s; }
@keyframes haengen {
  from {
    opacity: 0;
    transform: translateY(-18px) rotate(-1.2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Befund 4: seven posters of the same width. Narrower than the full row: a sliding row of 152 px cards,
   the next one cut at the right edge as the hint to swipe; wide screens: one row, at least 128 px each */
.plakate {
  grid-auto-flow: column;
  grid-auto-columns: 152px;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--rand) 12px;
  margin: 0 calc(var(--rand) * -1);
  scroll-padding-inline: var(--rand);
}
.plakat {
  scroll-snap-align: start;
}
@media (min-width: 1100px) {
  .plakate {
    grid-auto-flow: row;
    grid-template-columns: repeat(7, minmax(128px, 1fr));
    overflow: visible;
    margin: 0;
    padding: 4px 0 0;
    align-items: stretch;
    align-self: start;
  }
}

/* box office */
.kasse {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.04), transparent 40%),
    var(--samt);
  border-radius: 14px 14px 6px 6px;
  padding: 12px 12px 14px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--licht) 35%, transparent),
    0 20px 50px rgb(0 0 0 / 0.45);
}
/* the box office reads as one: a lit «KASSE» sign over a glazed window, tickets on the counter (review E2) */
.kasse-schild {
  display: block;
  width: fit-content;
  margin: 0 auto 10px;
  padding: 4px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: #170e0b;
  color: #ffe2a8;
  box-shadow:
    0 0 0 2px #5a3a22,
    0 0 18px rgb(255 196 110 / 0.35);
  text-shadow: 0 0 8px rgb(255 196 110 / 0.7);
}
/* WEB-08: the box office says what it leads to */
.kasse-zusatz {
  margin: -4px auto 10px;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  background: color-mix(in srgb, var(--grund) 85%, transparent);
  color: var(--text);
}
.kasse-fenster {
  position: relative;
  padding: 14px 8px 22px;
  border-radius: 90px 90px 6px 6px / 46px 46px 6px 6px;
  /* glass: a cool sheen over the warm room behind */
  background:
    linear-gradient(115deg, rgb(255 255 255 / 0.1) 0 18%, transparent 18% 34%, rgb(255 255 255 / 0.05) 34% 40%, transparent 40%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgb(255 210 127 / 0.18), transparent 70%),
    color-mix(in srgb, #0d0807 70%, var(--samt));
  box-shadow:
    inset 0 0 0 3px #5a3a22,
    inset 0 0 0 5px #120b08;
}
.durchreiche {
  /* the slot under the glass where tickets change hands */
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 46%;
  height: 10px;
  translate: -50% 0;
  border-radius: 10px 10px 2px 2px;
  background: #050302;
  box-shadow: inset 0 3px 4px rgb(0 0 0 / 0.8);
}
.schalter-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* a ticket: stub with the perforation on the left, main part right */
.billett {
  --kerbe: radial-gradient(circle at 0 50%, transparent 7px, #000 7.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 7px, #000 7.5px) right / 51% 100% no-repeat;
  display: grid;
  grid-template-columns: 28px 1fr;
  min-height: 44px;
  text-decoration: none;
  color: #2a1810;
  background: #f3e2c2;
  border-radius: 4px;
  -webkit-mask: var(--kerbe);
  mask: var(--kerbe);
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.35));
  transition: background 0.3s ease, filter 0.3s ease;
}
.s-labor.billett {
  background: #ecd6c8;
}
/* the ticket stays where it is under the pointer (B2), the light marks it */
.billett:hover,
.billett:focus-visible {
  background: #ffe6b8;
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.35)) drop-shadow(0 0 10px rgb(255 210 127 / 0.55));
}
.b-abriss {
  display: grid;
  place-items: center;
  border-right: 2px dashed rgb(42 24 16 / 0.45);
  background: rgb(122 52 36 / 0.14);
}
.b-abriss span {
  writing-mode: vertical-rl;
  rotate: 180deg;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7a3424;
}
/* Befund 7: the whole decided wording, no smaller type: 20 px padding, title 18/24, text 16/24 px;
   dark brown letters, brick red link; the ticket grows with its text */
.b-haupt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
}
.s-name {
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
}
.s-satz {
  font-size: 16px;
  line-height: 24px;
}
.s-dom {
  margin-top: auto;
  padding-top: 2px;
  font-size: 16px;
  line-height: 24px;
  color: #a3361b;
  font-weight: 700;
}
.s-dom .raus {
  color: inherit;
}

/* order everywhere (Befund 1, Befund 7): chain, portrait and sign, «pick a poster», posters, box office.
   Wide screens: the box office 288 px wide; next to the posters once seven of at least 128 px fit */
@media (min-width: 1100px) {
  .foyer {
    display: flex;
    align-items: center;
  }
  .foyer-in {
    width: 100%;
    row-gap: 14px;
  }
  .kasse {
    justify-self: center;
    width: 288px;
  }
}
@media (min-width: 1380px) {
  .foyer-in {
    grid-template-columns: minmax(0, 1fr) 288px;
    column-gap: 22px;
  }
  .kette {
    grid-column: 1 / -1;
  }
  .schild-reihe,
  .lead,
  .plakate {
    grid-column: 1;
  }
  /* Befund 7: the box office runs from the sign down to the posters, so both tickets stand whole in
     the first 1440 x 900 view */
  .kasse {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: end;
  }
}
/* code review R1 finding 2: without JavaScript the film strip stands from the start and takes 112 px
   of the width, so both switch points move by that much. The row of seven needs 7 x 128 + 6 x 12 =
   968 px, the box office beside it 22 + 288 px more; with the strip that is reached from about 1160
   and 1480 px, with room for a classic scrollbar from 1280 and 1500 px. Below that the posters keep
   sliding in their row and the box office stands under them, as on narrower screens. */
@media (min-width: 1100px) and (max-width: 1279px) {
  html:not(.js) .plakate {
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    margin: 0 calc(var(--rand) * -1);
    padding: 4px var(--rand) 12px;
  }
}
@media (min-width: 1380px) and (max-width: 1499px) {
  html:not(.js) .foyer-in {
    grid-template-columns: minmax(0, 1fr);
  }
  html:not(.js) .kasse {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }
}
/* B2: from 960 px the film strip fades in over the left 112 px once the visitor scrolls; below
   1100 px the foyer starts at the left margin, so the strip covered the left third of the first
   ticket (1024 x 800: 3 of 9 points hit the strip) and the first poster. The foyer makes room */
@media (min-width: 960px) and (max-width: 1099px) {
  .js .foyer {
    padding-left: calc(var(--fs-breite) + var(--rand));
  }
}
@media (min-width: 560px) and (max-width: 1099px) {
  .schalter-liste {
    grid-template-columns: 1fr 1fr;
  }
}
/* the foyer is a room: with 3D the DOM posters tilt with the GL camera (seite.js / szene.js write
   --kp, --krx, --kry, --kox, --koy, --kix, --kiy), so wall, light and posters stay one picture */
.dreid .foyer {
  /* the tilted plane must not widen the page */
  overflow-x: clip;
  perspective: var(--kp, 1600px);
  perspective-origin: var(--kox, 50%) var(--koy, 50%);
}
.dreid .foyer-in {
  transform: rotateX(calc(var(--krx, 0deg) * (1 - var(--fp, 0)))) rotateY(calc(var(--kry, 0deg) * (1 - var(--fp, 0))));
  transform-origin: var(--kix, 50%) var(--kiy, 50%);
  /* flat, not preserve-3d (B1, 18.11.2026): no child carries its own 3D transform, and with
     preserve-3d Chrome hit-tested the tilted plane against the poster row, so the pointer landed on
     the list instead of the poster link on up to five of seven posters, depending on the sway */
  transform-style: flat;
}
/* scrolling on: sign, lead, box office and chain fade; the posters fly into the film strip (review K2) */
@media (min-width: 960px) {
  .bewegt .kette,
  .bewegt .schild-reihe,
  .bewegt .lead {
    opacity: calc(1 - var(--fp, 0) * 1.6);
  }
  .flug .plakat a {
    transform: translate(var(--pdx, 0), var(--pdy, 0)) scale(var(--psx, 1), var(--psy, 1));
    transform-origin: 0 0;
    opacity: var(--po, 1);
  }
  /* a poster on its way to the strip takes no clicks (B2): it slid over the tickets and over the
     strip fields; the field of the same station is the target meanwhile (seite.js sets .fliegt) */
  .flug .plakat a.fliegt {
    pointer-events: none;
  }
}
/* B2: the box office fades only where it stands beside the posters in the first view. Narrower it
   stands under them, the visitor scrolls to it, and a fade tied to that scroll hid both tickets
   exactly when they came into view (1280 x 800: opacity 0.1 once the tickets were reached) */
@media (min-width: 1380px) {
  .bewegt .kasse {
    opacity: calc(1 - var(--fp, 0) * 1.6);
  }
}
@media (min-width: 960px) {
  /* faded links stay reachable by Tab: the one with the keyboard focus is never transparent
     (review R2 #1; a flown poster then sits opaque on its field of the strip) */
  .bewegt .kette:focus-within,
  .bewegt .kasse:focus-within,
  .flug .plakat a:focus-visible {
    opacity: 1;
  }
  .mess .plakat a,
  .mess .foyer-in,
  .mess.js .filmstreifen {
    transform: none !important;
    transition: none !important;
  }
}

/* «lights off» curtain when a poster is picked */
.vorhang {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--kamera);
}
.licht-aus .vorhang {
  opacity: 0.72;
}

/* ---------- stations: the film ---------- */
.station {
  position: relative;
  min-height: 80vh;
  padding: 12vh var(--rand) 10vh calc(var(--fs-breite) + var(--rand));
  display: flex;
  align-items: center;
}
.station-in {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.station-text {
  max-width: 36rem;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--grund) 84%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.station-kopf {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.88rem;
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}
.st-von {
  color: var(--licht-text);
  font-weight: 700;
}
/* Befund 4: full station titles 32/36 px on phones, 48/52 px wide; body text 16/24 and 18/28 px,
   at most 52 characters a line */
.station h2 {
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.015em;
  hyphens: manual;
}
.station-text > p:not(.station-kopf) {
  font-size: 16px;
  line-height: 24px;
  max-width: 52ch;
}
@media (min-width: 960px) {
  .station h2 {
    font-size: 48px;
    line-height: 52px;
  }
  .station-text > p:not(.station-kopf) {
    font-size: 18px;
    line-height: 28px;
  }
}
.station h2:focus {
  outline: none;
}
.liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}
.liste li {
  display: grid;
  grid-template-columns: 7.2em minmax(0, 1fr);
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--linie);
}
.liste .j {
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}
/* long German words («Immobiliengesellschaft») break instead of leaving the screen */
.station-text {
  overflow-wrap: break-word;
  hyphens: auto;
}
/* narrow screens and large text: year above the entry, one column (as in the base, review R1 #4) */
@media (max-width: 559px) {
  .liste li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
/* old chapter anchors #szene-N (links from before 03.11.2026) point at the top of their station */
.alt-anker {
  position: absolute;
  top: 0;
  left: 0;
}
.labor-zeile {
  font-size: 0.95rem;
}
/* WEB-08: today's work, one clear link right under the text of station 7 */
.firma-zeile {
  margin-top: 4px;
}
.firma-zeile a {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--signal);
  color: var(--signal);
  font-weight: 700;
  text-decoration: none;
}
.firma-zeile a:hover,
.firma-zeile a:focus-visible {
  background: var(--signal);
  color: var(--signal-text);
}
/* WEB-02: one own project as a checkable example, right under today's work */
.fall-zeile {
  margin-top: 8px;
  font-size: 0.95rem;
}
.fall-zeile a,
.labor-zeile a,
.zurueck a {
  color: var(--signal);
  font-weight: 700;
  text-underline-offset: 3px;
}
.neben summary {
  cursor: pointer;
  color: var(--signal);
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.neben p {
  color: var(--leise);
}
.laender {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.land {
  font: inherit;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--linie);
  background: color-mix(in srgb, var(--text) 5%, transparent);
  color: var(--text);
  cursor: pointer;
  text-align: start; /* a long name (Emirates) wraps flush with its flag, not centred */
}
.land img {
  border-radius: 2px;
}
.land[aria-pressed='true'] {
  border-color: var(--signal);
  background: color-mix(in srgb, var(--signal) 18%, transparent);
}
/* the other countries (3.3.4): smaller buttons, flag 18 x 13 px with the name beside it, wrapping;
   every one stays a button with a 44 px target, because it turns the globe */
/* Befund 9: two ranks. The four stops stay the big buttons (two columns on phones, 12 px apart); 24 px
   below them the sentence, 16/24 px; then the other countries with 24 x 16 px flags, 12 px apart,
   wrapping, the name always visible beside the flag, buttons without the style of the big ones */
@media (max-width: 559px) {
  .laender:not(.reiseliste) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
.reise-satz {
  margin-top: 10px;
  font-size: 16px;
  line-height: 24px;
}
.reiseliste {
  gap: 0 12px;
}
.reiseliste .land {
  font-size: 15px;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent);
  text-underline-offset: 4px;
}
.reiseliste .land[aria-pressed='true'] {
  background: none;
  text-decoration-color: var(--signal);
  color: var(--signal);
}
.reiseliste .land img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent);
}

/* the screen: the still of the brick scene when there is no 3D (or it paused); with 3D the canvas paints this area */
.leinwand {
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  background: radial-gradient(ellipse at 50% 40%, #2e211b, #120c09 75%);
  box-shadow:
    0 0 0 8px #0d0907,
    0 0 0 9px #3a2b23,
    0 30px 70px rgb(0 0 0 / 0.5);
  display: grid;
  place-items: center;
  padding: 6%;
}
.leinwand-bild {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 60vh;
  object-fit: contain;
}
.mit3d .leinwand {
  min-height: 46vh;
  aspect-ratio: auto;
}
.dreid .leinwand {
  visibility: hidden;
}
/* the scene rests (no picture area in the window, canvas hidden): the stills stand (V1, K3) */
.dreid.ruht3d .leinwand {
  visibility: visible;
}
/* 3D paused by the performance watch: the still walls come back until it resumes */
html.pause3d .foyer::before,
html.pause3d .abspann::before {
  opacity: 1;
}
/* the 3D scene needs room to morph between stations */
.mit3d .station {
  min-height: 118vh;
  padding-top: 18vh;
  padding-bottom: 14vh;
}
/* Befund 6: two columns on wide screens, text at most 480 px, picture at most 560 px, 48 px apart,
   one shared vertical middle */
@media (min-width: 960px) {
  .station-in {
    grid-template-columns: minmax(0, 480px) minmax(0, 560px);
    justify-content: center;
    gap: 48px;
    align-items: center;
  }
  .station-text {
    max-width: 480px;
    background: color-mix(in srgb, var(--grund) 62%, transparent);
  }
}
/* Befund 2: under 768 px every station is a plain block, title, still, text; side margin 20 px, the
   still 4:3 over the full width, 24 px between picture and text, 56 px between stations, heights from
   the content. No 3D there (seite.js), so the same stills as with animation off. */
@media (max-width: 767px) {
  .station,
  .mit3d .station {
    display: block;
    min-height: 0;
    padding: 28px 20px;
  }
  .station-in {
    gap: 0;
  }
  .station-text {
    display: contents;
  }
  .station-kopf {
    order: 1;
    margin-bottom: 8px;
  }
  .station h2 {
    order: 2;
    margin-bottom: 24px;
  }
  .leinwand,
  .mit3d .leinwand {
    order: 3;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    margin-bottom: 24px;
    padding: 0;
    display: block;
    position: relative;
    overflow: hidden;
  }
  /* the still fills the 4:3 stage and never grows past it into the text */
  .leinwand-bild {
    position: absolute;
    inset: 4%;
    width: 92%;
    height: 92%;
    max-height: none;
  }
  .station-text > :not(.station-kopf):not(h2) {
    order: 4;
    margin-bottom: 14px;
  }
}
@media (min-width: 768px) and (max-width: 959px) {
  /* tablets: the formation follows its screen slot (szene.js), the station needs no extra morph room */
  .mit3d .station {
    min-height: 0;
    padding-top: 8vh;
    padding-bottom: 6vh;
  }
  .mit3d .leinwand {
    order: -1;
    min-height: 40vh;
    /* with a min height the 3:2 ratio would push the width past the screen */
    aspect-ratio: auto;
  }
}

/* ---------- credits and contact ---------- */
.abspann {
  position: relative;
  min-height: 100svh;
  padding: 18vh var(--rand) 12vh calc(var(--fs-breite) + var(--rand));
  display: flex;
  align-items: center;
  isolation: isolate;
}
.abspann::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.55)),
    var(--mauer-bild) 0 0 / 480px 144px repeat,
    var(--grund);
}
.mit3d .abspann::before {
  opacity: 0;
}
.abspann-in {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: center;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 16px;
  background: color-mix(in srgb, var(--grund) 86%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.abspann h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  letter-spacing: -0.015em;
}
.abspann h2:focus {
  outline: none;
}
.abspann-text {
  color: var(--leise);
  max-width: 34rem;
  margin: 0 auto;
}
/* Feinschliff A8: the address itself is the link, large and centred, no button */
.mail {
  margin: 0;
}
.mail-adresse {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: clamp(1.25rem, 4.4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.mail-adresse:hover {
  color: var(--signal);
}
/* Befund 10: no data table at the end; 32 px after the contact, the place clearly named */
.credits {
  margin: 14px 0 0; /* plus the 18 px row gap of .abspann-in: 32 px after the contact */
  display: grid;
  gap: 10px;
  justify-items: center;
  font-size: 16px;
  line-height: 24px;
}
.credits p {
  max-width: 48ch;
}
.c-k {
  color: var(--leise);
  font-weight: 700;
}
.c-ort {
  font-weight: 700;
}
.zurueck {
  margin-top: 6px;
}
/* the exits at the end of the credits (review N3) */
.abspann-raus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--linie);
}
.ar-kopf {
  width: 100%;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leise);
}
.abspann-raus a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--text);
  text-underline-offset: 3px;
}
.abspann-raus .raus,
.abspann-raus .dom {
  color: var(--signal);
}

/* ---------- footer ---------- */
.fuss {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  padding: 22px var(--rand) 28px calc(var(--fs-breite) + var(--rand));
  border-top: 1px solid var(--linie);
  background: var(--grund);
  font-size: 14px;
  color: var(--leise);
}
.fuss-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.fuss a {
  color: var(--text);
}
/* Befund 10: footer links (company, legal texts, LinkedIn) at least 14 px, 44 px targets on phones;
   Feinschliff A9: only the words, no arrow and no address */
@media (max-width: 719px) {
  .fuss a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ---------- error page (404.html, both languages) ---------- */
.fehler {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.55)),
    var(--mauer-bild) 0 0 / 480px 144px repeat,
    var(--grund);
}
.fehler-in {
  display: grid;
  gap: 18px;
  width: min(100%, 560px);
}
.fehler-schild {
  text-align: center;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--grund);
  box-shadow: 0 0 0 2px #5a3a22;
}
.fehler-schild h1,
.fehler-schild h2 {
  font-size: 28px;
  line-height: 34px;
  margin: 6px 0 12px;
}
.fehler-schild a {
  color: var(--signal);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- no motion: nothing moves, everything stays readable ---------- */
/* The explicit choice of the switch holds for the session in both directions (lead decision 17.11.2026):
   «Animation an» runs the animations even with reduced motion in the system; without a choice the
   system decides, and seite.js then leaves html without .bewegt. Without JavaScript there is no
   .bewegt either, so everything stands still. */
@media (prefers-reduced-motion: reduce) {
  html:not(.bewegt) *,
  html:not(.bewegt) *::before,
  html:not(.bewegt) *::after {
    transition: none !important;
  }
}
html:not(.bewegt) *,
html:not(.bewegt) *::before,
html:not(.bewegt) *::after {
  animation: none !important;
}
/* legal review R1, finding 3: imprint and privacy under each way back, quieter than the way back */
.fehler-schild .fehler-recht {
  margin-top: 4px;
  font-size: 14px;
  color: var(--leise);
}
.fehler-schild .fehler-recht a {
  font-weight: 400;
  color: var(--text);
}
