/* Unique.mf · „Die Hängung“ · Daumedia SARL-S — Tokens: docs/design-system.md
   Die Seite ist eine Ausstellungswand im Aufriss: Wandfarbe je Raum, Werkschilder,
   rote Punkte für Patenschaften, eine gestrichelte Linie auf Augenhöhe im Sitzen. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-2JMSASU.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-italic-zje9yBa.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Wandfarben */
  --gruen: #1f4a43;
  --gruen-boden: #16332e;
  --gruen-ecke: #1a3e38;
  --blau: #1c2e4a;
  --blau-boden: #131f33;
  --ziegel: #7b2d26;
  --ziegel-boden: #561f1a;
  --schwarz: #131313;
  --schwarz-boden: #080808;
  --kreide: #f4f1ea;
  --kreide-boden: #ddd7c9;
  /* Schrift und Zeichen */
  --elfenbein: #f4f1ea;
  --tinte: #16211f;
  --punkt: #e63a2e;
  --gelb: #ffcf5a;

  --schrift: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --eingang: 21rem;
  --rand: clamp(1.25rem, 4vw, 4rem);
  --balken: 0px;
  --weich: cubic-bezier(0.16, 1, 0.3, 1);

  /* Raum: wird je Sektion überschrieben */
  --wand: var(--gruen);
  --boden-farbe: var(--gruen-boden);
  --text: var(--elfenbein);
  --text-leise: color-mix(in oklab, var(--elfenbein) 76%, var(--wand));
  --linie: color-mix(in oklab, var(--elfenbein) 34%, var(--wand));
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--elfenbein);
  background: var(--gruen-ecke);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: color-mix(in oklab, var(--elfenbein) 60%, var(--gruen)) var(--gruen-boden);
}

::selection { background: var(--gelb); color: var(--tinte); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-radius: 2px; }
.raum--kreide :focus-visible, .betrachter-schild :focus-visible { outline-color: var(--tinte); }

.nur-vorlesen {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprung {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--gelb); color: var(--tinte); padding: 0.6rem 1rem; font-weight: 700; text-decoration: none;
}
.sprung:focus { top: 1rem; }

/* ── Entwurfsbalken ─────────────────────────────────────────────────────── */

.demobar {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 0.55rem var(--rand);
  background: var(--gelb); color: var(--tinte);
  font-size: 0.875rem; line-height: 1.35;
}
.demobar a { font-weight: 700; }
.demobar button {
  flex: none; background: none; border: 1.5px solid var(--tinte); border-radius: 2px;
  padding: 0.3rem 0.7rem; font-weight: 700; font-size: 0.8125rem; cursor: pointer;
}
.demobar button:hover { background: var(--tinte); color: var(--gelb); }
.demobar :focus-visible { outline-color: var(--tinte); }
.demobar[hidden] { display: none; }

/* ── Haus: Eingangswand links, Räume rechts ─────────────────────────────── */

.haus { display: grid; grid-template-columns: var(--eingang) minmax(0, 1fr); align-items: start; }

.eingang {
  position: sticky; top: 0; z-index: 20;
  height: calc(100dvh - var(--balken));
  display: flex; flex-direction: column;
  padding: 2.75rem 1.5rem 2.25rem 3rem;
  background: var(--gruen-ecke);
  /* Raumecke: die Eingangswand steht im Winkel zur Bildwand und liegt im Halbschatten */
  box-shadow: inset -1px 0 0 color-mix(in oklab, black 34%, var(--gruen-ecke)), inset -26px 0 34px -22px rgb(0 0 0 / 0.34);
}
.logo { display: block; width: 11.5rem; }
.logo img { width: 100%; }

.eingang-text { margin-top: 2.25rem; }
.eingang-text h1 {
  font-size: clamp(2rem, 3.2vw, 2.875rem); line-height: 1.02; font-weight: 900; letter-spacing: -0.02em;
  text-wrap: balance;
  /* lange Wörter anderer Sprachen („photographies“) bleiben in der Eingangswand; nur ab 12 Zeichen (12) */
  hyphens: auto; hyphenate-limit-chars: 12 6 5; overflow-wrap: break-word;
}
.eingang-text p { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.4; color: color-mix(in oklab, var(--elfenbein) 76%, var(--gruen-ecke)); max-width: 17rem; }

.raeume-nav { margin-top: auto; }
.raeume-nav ul { display: grid; gap: 0.1rem; }
.raeume-nav a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.28rem 0; font-size: 1.25rem; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.raeume-nav a:hover { text-decoration: underline; text-decoration-thickness: 0.1em; }
.raeume-nav a[aria-current="page"] { color: var(--gelb); }
.raeume-nav .hier {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem; border: 1px solid currentColor; border-radius: 1px;
}
.eingang-fuss { margin-top: 1.5rem; font-size: 0.9375rem; color: color-mix(in oklab, var(--elfenbein) 78%, var(--gruen-ecke)); }
.eingang-fuss a { font-weight: 600; color: var(--elfenbein); }

.nav-knopf { display: none; }

.raeume { min-width: 0; }

/* ── Räume ──────────────────────────────────────────────────────────────── */

.raum {
  --text-leise: color-mix(in oklab, var(--text) 76%, var(--wand));
  --linie: color-mix(in oklab, var(--text) 34%, var(--wand));
  position: relative;
  background: var(--wand); color: var(--text);
  scrollbar-color: color-mix(in oklab, var(--text) 62%, var(--wand)) var(--boden-farbe);
}
.raum--gruen { --wand: var(--gruen); --boden-farbe: var(--gruen-boden); --text: var(--elfenbein); }
.raum--blau { --wand: var(--blau); --boden-farbe: var(--blau-boden); --text: var(--elfenbein); }
.raum--ziegel { --wand: var(--ziegel); --boden-farbe: var(--ziegel-boden); --text: var(--elfenbein); }
.raum--schwarz { --wand: var(--schwarz); --boden-farbe: var(--schwarz-boden); --text: var(--elfenbein); }
.raum--kreide { --wand: var(--kreide); --boden-farbe: var(--kreide-boden); --text: var(--tinte); }

.innen { padding: clamp(3.5rem, 7vw, 6rem) var(--rand) clamp(3rem, 6vw, 5rem); }
.innen > * + * { margin-top: 1.25rem; }
.innen--eng { max-width: 58rem; }

.raum h1, .raum h2 { font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
.raum h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 0.98; }
.raum h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); line-height: 1.04; }
.raum h3 { font-size: 1.25rem; line-height: 1.2; font-weight: 800; }
.wandtext { max-width: 38rem; }
.wandtext > * + * { margin-top: 1rem; }
.wandtext--gross { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.38; max-width: 34rem; }
.leise { color: var(--text-leise); }
.klein { font-size: 0.9375rem; line-height: 1.45; }

/* Tür: der Weg in den nächsten Raum */
.tuer {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.8rem 1.15rem; border: 2px solid currentColor; border-radius: 2px;
  font-weight: 800; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
  transition: background-color 0.2s var(--weich), color 0.2s var(--weich);
}
.tuer svg { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--weich); }
.tuer:hover { background: var(--text); color: var(--wand); }
.tuer:hover svg { transform: translateX(3px); }

/* Lücke: Angabe fehlt, füllt Mika aus */
.gap {
  display: inline-block; padding: 0.1rem 0.5rem; border: 1.5px dashed currentColor; border-radius: 2px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.4;
}
.gap b { font-weight: 800; }

/* ── Wand im Aufriss ────────────────────────────────────────────────────── */

.wand {
  --wand-h: clamp(38rem, calc(100dvh - var(--balken)), 56.25rem); /* min. 38rem: das Schild mit Patenzeile passt unter das Werk (03 EC-02, BUG-04) */
  --boden: 6rem;
  --links: max(var(--rand), 3.25rem);
  --abstand: clamp(1.75rem, 2.6vw, 2.5rem);
  /* Bildmitte 1,25 m über dem Boden, Kantenlänge 1,20 m: Wandhöhe ab Bildoberkante = Werk × 1,5417 */
  --werk-h: min(28.125rem, calc((var(--wand-h) - var(--boden) - 4rem) / 1.5417));
  /* Zwei Werke ganz im Licht, das dritte wartet am Rand; site.js rechnet für breite Wände nach */
  --werk-b: calc((100vw - var(--eingang) - var(--links) - 2 * var(--abstand) - 4.5rem) / 2);
  --werk: min(var(--werk-h), var(--werk-b));
  --oben: calc(var(--wand-h) - var(--boden) - var(--werk) * 1.5417);
  overflow: hidden;
  /* Decke im Dunkeln, die Strahler leuchten nach unten */
  background-image: linear-gradient(to bottom, rgb(0 0 0 / 0.2), transparent 26%);
}
.wand--klein {
  --wand-h: clamp(32rem, 86dvh, 47rem);
  --werk-h: min(25rem, calc((var(--wand-h) - var(--boden) - 3rem) / 1.5417));
  --werk-b: 70vw;
}

.augenhoehe {
  position: absolute; left: 0; right: 0; top: calc(var(--oben) + var(--werk) / 2);
  border-top: 1px dashed var(--linie); pointer-events: none;
}

.wand-lauf {
  position: relative; z-index: 1; height: calc(var(--wand-h) - var(--boden));
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; scroll-padding-left: var(--links);
  overscroll-behavior-x: contain;
  /* kein Scrollbalken: er kostet dem Schild Höhe (03 BUG-04); gegangen wird mit Schritten, Pfeilen, Ziehen */
  scrollbar-width: none;
}
.wand-lauf:focus-visible { outline-offset: -4px; }
.wand-lauf.wird-gezogen { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.wand-reihe {
  position: relative;
  display: flex; align-items: flex-start; gap: var(--abstand);
  width: max-content; height: 100%;
  padding: var(--oben) var(--rand) 0 var(--links);
}

/* Maßkette am Wandanfang: von der Augenlinie bis zum Boden */
.mass {
  --strich: color-mix(in oklab, var(--text) 58%, var(--wand));
  position: absolute; left: calc(var(--links) - 2.75rem); top: var(--oben); width: 2.25rem; height: calc(var(--werk) * 1.5417);
  color: var(--text-leise);
}
.mass::before { content: ""; position: absolute; left: 0.6rem; top: calc(var(--werk) / 2); bottom: 0; border-left: 1px solid var(--strich); }
.mass::after { content: ""; position: absolute; left: 0.25rem; width: 0.75rem; top: calc(var(--werk) / 2); bottom: 0; border-block: 1px solid var(--strich); }
.mass span {
  position: absolute; left: 1rem; top: calc(var(--werk) / 2); bottom: 0; display: grid; place-items: center;
  writing-mode: vertical-rl; rotate: 180deg;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
}

/* Wandbeschriftung: benennt den Raum, steht über der Augenlinie */
.wandtitel {
  flex: none; align-self: flex-start; display: grid; align-content: end; gap: 0.35rem;
  height: calc(var(--werk) / 2 - 1.25rem); padding-right: clamp(0.5rem, 2vw, 2rem);
  scroll-snap-align: start;
}
.wandtitel h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 0.98; }
.wandtitel p { font-size: 1.0625rem; color: var(--text-leise); }

/* Werk an der Wand */
.werk { position: relative; flex: none; width: var(--werk); scroll-snap-align: start; --sicht: 1; --licht: 1; }
.werk-bild {
  position: relative; display: block; width: var(--werk); height: var(--werk);
  padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 1px;
}
.werk-bild img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 1px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 22px 34px -10px rgb(0 0 0 / 0.5);
  filter: brightness(calc(0.46 + 0.36 * var(--sicht) + 0.18 * var(--licht)));
  transition: filter 0.9s var(--weich);
}
/* Lichtkegel des Strahlers */
.werk::before {
  content: ""; position: absolute; left: 50%; top: calc(var(--werk) * -0.34);
  width: calc(var(--werk) * 1.7); height: calc(var(--werk) * 1.75); transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 45%, color-mix(in oklab, white 21%, transparent), transparent 70%);
  opacity: var(--licht); transition: opacity 0.9s var(--weich); pointer-events: none;
}
/* Ganz an der Wand zu sehen: Schild lesbar. Kommt die Wand ins Blickfeld, geht dazu der Strahler an.
   Am Rand wartet das nächste Werk im Dunkeln, ohne Schild. */
html .werk { --sicht: 0; --licht: 0; }
html .werk.ist-ganz { --sicht: 1; }
html .werk.ist-an { --licht: 1; }
html .kommt-an .werk::before, html .kommt-an .werk-bild img, html .kommt-an .werk .schild { transition-delay: calc(var(--i, 0) * 130ms); }
.werk-bild:hover img, .werk-bild:focus-visible img { filter: brightness(1.06); transition-duration: 0.25s; transition-delay: 0s; }
.werk-bild::after {
  content: attr(data-naeher); position: absolute; right: 0.6rem; bottom: 0.6rem;
  padding: 0.3rem 0.6rem; background: var(--elfenbein); color: var(--tinte);
  font-size: 0.8125rem; font-weight: 700; line-height: 1.2; border-radius: 1px;
  opacity: 0; transform: translateY(4px); transition: opacity 0.2s var(--weich), transform 0.2s var(--weich);
}
.werk-bild:hover::after, .werk-bild:focus-visible::after { opacity: 1; transform: none; }

/* Mischformate (Arbeiten): Mitte auf der Linie */
.werk--frei { width: auto; }
.werk--frei .werk-bild { width: auto; height: var(--werk); display: grid; place-items: center; }
.werk--frei .werk-bild img { width: auto; height: calc(var(--werk) * var(--h, 0.8)); aspect-ratio: var(--ar); max-width: none; }
.werk--frei .schild { margin-top: 1.25rem; }

/* Werkschild */
.schild {
  position: relative; margin-top: 1.5rem; width: min(100% - 2.6rem, 18.75rem);
  padding: 0.8rem 1rem 0.85rem; background: var(--elfenbein); color: var(--tinte);
  font-size: 1rem; line-height: 1.35; border-radius: 1px;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 0 6px 10px -4px rgb(0 0 0 / 0.35);
}
.werk .schild { opacity: var(--sicht); transition: opacity 0.6s var(--weich); }
.schild h3, .schild .schild-titel { font-size: 1.25rem; line-height: 1.15; font-weight: 800; letter-spacing: 0; }
.schild p { margin-top: 0.2rem; }
.schild .pate { font-weight: 800; }
.schild--mini { width: auto; display: inline-block; padding: 0.35rem 0.6rem; margin-top: 1.1rem; font-size: 0.875rem; font-weight: 700; line-height: 1.2; }
.punkt {
  position: absolute; right: -2.35rem; top: 0.7rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--punkt); box-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
}
/* Niedrige Wände: Schild kleiner setzen, damit es über dem Boden bleibt */
@media (max-height: 46rem) {
  .werk .schild { font-size: 0.875rem; padding: 0.6rem 0.8rem 0.65rem; margin-top: 1.1rem; }
  .werk .schild h3 { font-size: 1.0625rem; }
}

/* Durchgang am Ende der Wand: steht unter der Augenlinie */
.durchgang {
  flex: none; align-self: flex-start; display: grid; align-content: start; gap: 1rem;
  width: min(22rem, 78vw); padding: calc(var(--werk) / 2 + 1.75rem) var(--rand) 0 0;
  scroll-snap-align: start;
}
.durchgang p { font-size: 1.25rem; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.durchgang .tuer { justify-self: start; }

/* Boden mit Fußleiste, Legende und Schritten */
.boden {
  position: relative; z-index: 2; min-height: var(--boden);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  padding: 1.1rem var(--rand) 1rem var(--links);
  background: var(--boden-farbe);
  box-shadow: inset 0 3px 0 color-mix(in oklab, black 22%, var(--boden-farbe)), 0 -1px 0 color-mix(in oklab, white 8%, var(--wand));
  font-size: 0.875rem; line-height: 1.35; color: var(--text-leise);
}
.boden--ruhig { --links: var(--rand); min-height: 4.5rem; }
.legende { display: flex; flex-wrap: wrap; gap: 0.35rem 1.75rem; }
.legende li { display: flex; align-items: center; gap: 0.55rem; }
.legende i { flex: none; display: block; }
.legende .l-linie { width: 1.75rem; border-top: 1px dashed currentColor; }
.legende .l-punkt { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--punkt); }
.schritte { flex: none; display: flex; align-items: center; gap: 0.6rem; }
.schritte output { min-width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.schritte button {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  background: none; border: 2px solid var(--text); border-radius: 50%; color: var(--text); cursor: pointer;
  transition: background-color 0.2s var(--weich), color 0.2s var(--weich), opacity 0.2s;
}
.schritte button svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.schritte button:hover:not(:disabled) { background: var(--text); color: var(--boden-farbe); }
.schritte button:disabled { opacity: 0.35; cursor: default; }

/* ── Startseite ─────────────────────────────────────────────────────────── */

.daumen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.triptychon { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.6rem, 1.4vw, 1.25rem); }
.triptychon img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 1px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 18px 28px -12px rgb(0 0 0 / 0.38); }
.triptychon figcaption { margin-top: 0.8rem; font-size: 1rem; font-weight: 700; line-height: 1.3; }

.termine { border-top: 1px solid var(--linie); }
.termine li { display: grid; grid-template-columns: 13.5rem minmax(0, 1.2fr) minmax(0, 1fr); gap: 0.5rem 2rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--linie); }
.termine time { font-size: 1.0625rem; font-weight: 800; white-space: nowrap; }
.termine strong { font-size: 1.25rem; line-height: 1.25; font-weight: 800; }
.termine span { color: var(--text-leise); }

.kino { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.kino > div > * + * { margin-top: 1.1rem; }
.leinwand { position: relative; aspect-ratio: 16 / 9; background: var(--schwarz-boden); box-shadow: 0 0 110px 12px rgb(255 255 255 / 0.07); }
.leinwand img, .leinwand iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.leinwand-start {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0;
  background: rgb(0 0 0 / 0.18); color: var(--elfenbein); cursor: pointer;
}
.leinwand-start span {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1.3rem;
  background: var(--elfenbein); color: var(--tinte); font-weight: 800; border-radius: 2px;
  transition: transform 0.25s var(--weich);
}
.leinwand-start svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.leinwand-start:hover span { transform: scale(1.05); }
.leinwand-hinweis { margin-top: 0.75rem; font-size: 0.875rem; color: var(--text-leise); }

/* ── Raster der Arbeiten ────────────────────────────────────────────────── */

.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.filter button {
  padding: 0.5rem 0.85rem; background: none; border: 2px solid var(--linie); border-radius: 1px;
  font-weight: 700; font-size: 0.9375rem; line-height: 1.2; cursor: pointer;
  transition: background-color 0.2s var(--weich), color 0.2s var(--weich), border-color 0.2s var(--weich);
}
.filter button:hover { border-color: var(--text); }
.filter button[aria-pressed="true"] {
  background: var(--elfenbein); border-color: var(--elfenbein); color: var(--tinte);
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 0 6px 10px -4px rgb(0 0 0 / 0.35);
}
.filter-stand { margin-top: 0.9rem; font-size: 0.9375rem; color: var(--text-leise); font-variant-numeric: tabular-nums; }

.haengung { --gx: clamp(1.5rem, 3vw, 2.75rem); display: flex; flex-wrap: wrap; align-items: center; gap: 6rem var(--gx); margin-top: 3.25rem; padding-bottom: 4.25rem; }
.haengung li { position: relative; flex: none; isolation: isolate; --licht: 1; }
.haengung li[hidden] { display: none; }
/* Augenlinie je Reihe: jedes Bild trägt sein Stück, die Mitten liegen aufeinander */
.haengung li::before {
  content: ""; position: absolute; z-index: -1; top: 50%; left: calc(var(--gx) / -2 - 1px); right: calc(var(--gx) / -2 - 1px);
  border-top: 1px dashed var(--linie);
}
/* Querformate hängen zu zweit, Hoch- und Quadratformate zu dritt in einer Reihe */
.haengung { container-type: inline-size; }
.haengung li { --n: var(--nd); }
.haengung .werk-bild {
  width: min(calc((100cqw - (var(--n) - 1) * var(--gx)) / var(--n) - 0.5px), calc(var(--hmax) * var(--ar)));
  height: auto; aspect-ratio: var(--ar);
}
.haengung .werk-bild img { filter: none; }
.haengung .werk-bild:hover img, .haengung .werk-bild:focus-visible img { filter: brightness(1.07); }
.haengung .schild--mini { position: absolute; left: 0; top: calc(100% + 0.9rem); margin: 0; white-space: nowrap; }

/* ── Reverse ────────────────────────────────────────────────────────────── */

.kopf-wand { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 2rem); }
.paar img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 22px 34px -10px rgb(0 0 0 / 0.5); }
.paar figcaption { margin-top: 1.1rem; }
.paar .schild { margin-top: 0; }

.plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem clamp(1rem, 2vw, 1.75rem); margin-top: 2.5rem; }
.plan li { position: relative; }
.plan .werk-bild { width: 100%; height: auto; aspect-ratio: 1; }
.plan .werk-bild img { filter: none; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 12px 20px -10px rgb(0 0 0 / 0.4); }
.plan .werk-bild::after { content: none; }
.plan-zeile { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.7rem; font-weight: 800; }
.plan-zeile .l-punkt, .plan-zeile .l-frei { flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; transform: translateY(0.02em); }
.plan-zeile .l-punkt { background: var(--punkt); }
.plan-zeile .l-frei { border: 1.5px solid currentColor; }
.plan-status { font-size: 0.9375rem; line-height: 1.35; color: var(--text-leise); }

.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem 2.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); }
.fakten dt { font-size: 0.9375rem; color: var(--text-leise); }
.fakten dd { font-size: 1.375rem; font-weight: 800; line-height: 1.2; }

.jahre { margin-top: 2.5rem; border-top: 1px solid var(--linie); }
.jahre li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--linie); }
.jahre time { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.jahre p { max-width: 40rem; }

.ziele { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(2rem, 4vw, 4rem); }
.ziele li { padding-top: 1rem; border-top: 3px solid var(--text); font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }

.zwei { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.zwei > div > * + * { margin-top: 1.1rem; }
.zwei img { box-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 22px 34px -10px rgb(0 0 0 / 0.45); border-radius: 1px; }

.stimmen { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(2rem, 4vw, 4rem); }
.stimme blockquote p { font-size: 1.375rem; line-height: 1.38; font-weight: 600; text-wrap: pretty; }
.stimme .original { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.45; font-weight: 400; font-style: italic; color: var(--text-leise); }
.stimme figcaption {
  display: inline-flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  background: var(--elfenbein); color: var(--tinte); border-radius: 1px; font-size: 0.875rem; line-height: 1.3;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 0 6px 10px -4px rgb(0 0 0 / 0.35);
}
.stimme figcaption img { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 1px; object-fit: cover; }
.stimme figcaption strong { display: block; font-size: 1rem; }

/* ── Ausstellungen ──────────────────────────────────────────────────────── */

.schau { border-top: 1px solid var(--linie); margin-top: 2.5rem; }
.schau > li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(8rem, 15rem); gap: 1.5rem clamp(1.5rem, 3vw, 3.5rem); padding: 2.25rem 0; border-bottom: 1px solid var(--linie); align-items: start; }
.schau-datum { line-height: 1; }
.schau-datum b { display: block; font-size: clamp(3.5rem, 6vw, 5.25rem); font-weight: 900; letter-spacing: -0.035em; }
.schau-datum span { display: block; margin-top: 0.5rem; font-size: 1.125rem; font-weight: 800; }
.schau h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.schau-text > * + * { margin-top: 0.7rem; }
.schau-ort { font-weight: 700; }
.schau-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-weight: 700; }
.schau figure img { width: 100%; box-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 20px 30px -12px rgb(0 0 0 / 0.5); border-radius: 1px; }
.schau figcaption { margin-top: 0.7rem; font-size: 0.8125rem; line-height: 1.35; color: var(--text-leise); }
.schau > li.schau-offen { grid-template-columns: 11rem minmax(0, 1fr); }

/* ── Über mich, Kontakt, Impressum ──────────────────────────────────────── */

.portrait { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.portrait img { box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 24px 36px -14px rgb(0 0 0 / 0.42); border-radius: 1px; }
.lesen { max-width: 40rem; }
.lesen > * + * { margin-top: 1.1rem; }
.zitat { font-size: clamp(1.625rem, 3.4vw, 2.75rem); line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; max-width: 24ch; text-wrap: balance; }

.kontakt-gross { display: grid; gap: 0.4rem; margin-top: 2rem; }
.kontakt-gross a { font-size: clamp(1.75rem, 4.6vw, 3.75rem); line-height: 1.08; font-weight: 900; letter-spacing: -0.025em; text-decoration-thickness: 0.06em; overflow-wrap: anywhere; }
.kontakt-gross a:hover { color: var(--gelb); }
.kontakt-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--linie); }
.kontakt-raster h2 { font-size: 1rem; line-height: 1.3; font-weight: 800; letter-spacing: 0; margin-bottom: 0.5rem; }
.kontakt-raster li + li { margin-top: 0.25rem; }
.kontakt-raster a { font-weight: 700; }

.recht h2 { font-size: 1.375rem; line-height: 1.2; margin-top: 2.5rem; }
.recht h2:first-of-type { margin-top: 2rem; }
.recht p, .recht ul { margin-top: 0.75rem; max-width: 40rem; }
.recht ul { list-style: disc; padding-left: 1.25rem; }

/* ── Fuß mit Raumplan ───────────────────────────────────────────────────── */

.fuss { background: var(--gruen-boden); color: var(--elfenbein); padding: clamp(3rem, 6vw, 4.5rem) var(--rand) 2.25rem; --wand: var(--gruen-boden); --text: var(--elfenbein); --linie: color-mix(in oklab, var(--elfenbein) 30%, var(--gruen-boden)); }
.fuss-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.fuss-raster--plan { grid-template-columns: minmax(0, 34rem); }
.fuss h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.04; font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
.fuss-kontakt > * + * { margin-top: 1rem; }
.fuss-kontakt .gross { display: block; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }

.raumplan { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, minmax(4.25rem, auto)); gap: 0; border: 2px solid var(--elfenbein); }
.raumplan a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem;
  padding: 0.6rem 0.7rem; font-size: 0.9375rem; font-weight: 800; line-height: 1.15; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--elfenbein);
  transition: background-color 0.2s var(--weich), color 0.2s var(--weich);
}
.raumplan a { --kachel: var(--gruen-boden); background: var(--kachel); }
.raumplan a small { font-size: 0.75rem; font-weight: 600; color: color-mix(in oklab, currentColor 76%, var(--kachel)); }
.raumplan a:hover, .raumplan a[aria-current="page"] { color: var(--tinte); }
.raumplan a:hover { --kachel: var(--elfenbein); }
.raumplan a[aria-current="page"] { --kachel: var(--gelb); }
.raumplan .r-start { grid-area: 3 / 1 / 4 / 3; }
.raumplan .r-reverse { grid-area: 1 / 1 / 3 / 4; --kachel: var(--gruen); }
.raumplan .r-arbeiten { grid-area: 1 / 4 / 3 / 7; --kachel: var(--blau); }
.raumplan .r-ausstellungen { grid-area: 3 / 3 / 4 / 5; --kachel: var(--ziegel); }
.raumplan .r-film { grid-area: 3 / 5 / 4 / 6; --kachel: var(--schwarz); }
.raumplan .r-ueber { grid-area: 3 / 6 / 4 / 7; --kachel: var(--kreide); color: var(--tinte); }

.fuss-zeile { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--linie); font-size: 0.875rem; color: color-mix(in oklab, var(--elfenbein) 78%, var(--gruen-boden)); }
.fuss-zeile a { color: var(--elfenbein); font-weight: 600; }

/* ── Betrachter: näher treten ───────────────────────────────────────────── */

.betrachter {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bw, var(--gruen)); color: var(--elfenbein);
  overflow: hidden;
}
.betrachter::backdrop { background: var(--bw, var(--gruen)); }
.betrachter[open] { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; grid-template-rows: minmax(0, 1fr); animation: naeher 0.5s var(--weich); }
@keyframes naeher { from { opacity: 0; } }
.betrachter-bild { display: grid; place-items: center; min-height: 0; min-width: 0; padding: var(--bp) clamp(1rem, 3vw, 3rem); }
.betrachter-bild { --bp: clamp(1rem, 4vh, 3rem); }
.betrachter-bild img {
  max-width: 100%; max-height: calc(100dvh - 2 * var(--bp)); width: auto; height: auto; object-fit: contain; border-radius: 1px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.4), 0 34px 60px -18px rgb(0 0 0 / 0.6);
  animation: herantreten 0.6s var(--weich);
}
@keyframes herantreten { from { transform: scale(0.94); filter: brightness(0.75); } }
.betrachter-seite { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem 2rem 2rem 0; min-height: 0; }
.betrachter-schild { position: relative; margin-top: auto; padding: 0.9rem 1rem 1rem; border-radius: 1px; background: var(--elfenbein); color: var(--tinte); font-size: 0.9375rem; line-height: 1.4; box-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 0 8px 14px -6px rgb(0 0 0 / 0.4); }
.betrachter-schild h2 { font-size: 1.25rem; line-height: 1.15; font-weight: 800; }
.betrachter-schild p { margin-top: 0.3rem; }
.betrachter-schild .pate { font-weight: 800; }
.betrachter-schild .punkt { right: auto; left: -2.2rem; top: 0.9rem; }
.betrachter-schild .alt { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid color-mix(in oklab, var(--tinte) 22%, var(--elfenbein)); }
.betrachter-leiste { display: flex; align-items: center; gap: 0.6rem; }
.betrachter-leiste output { margin-right: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.betrachter button.rund {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; flex: none;
  background: none; border: 2px solid var(--elfenbein); border-radius: 50%; cursor: pointer;
  transition: background-color 0.2s var(--weich), color 0.2s var(--weich);
}
.betrachter button.rund svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.betrachter button.rund:hover { background: var(--elfenbein); color: var(--tinte); }
.betrachter-zu { align-self: flex-end; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem; background: none; border: 2px solid var(--elfenbein); border-radius: 2px; font-weight: 800; cursor: pointer; }
.betrachter-zu svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.betrachter-zu:hover { background: var(--elfenbein); color: var(--tinte); }

/* Niedrige Fenster: Eingangswand enger setzen, damit die Räume sichtbar bleiben */
@media (max-height: 46rem) and (min-width: 54.01rem) {
  .eingang { padding-top: 2rem; padding-bottom: 1.5rem; overflow-y: auto; }
  .logo { width: 9.5rem; }
  .eingang-text { margin-top: 1.5rem; }
  .eingang-text h1 { font-size: clamp(1.75rem, 2.5vw, 2.125rem); }
  .eingang-text p { margin-top: 0.8rem; font-size: 1rem; }
  .raeume-nav { padding-top: 1.25rem; }
  .raeume-nav a { font-size: 1.0625rem; padding: 0.16rem 0; }
  .eingang-fuss { margin-top: 0.9rem; }
}

/* ── Schmaler: Eingangswand wird Kopfzeile ──────────────────────────────── */

@media (max-width: 68rem) {
  :root { --eingang: 17.5rem; }
  .eingang { padding: 2.25rem 1.5rem 1.75rem 2rem; }
  .logo { width: 10rem; }
  .raeume-nav a { font-size: 1.125rem; }
  .schau > li { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .schau figure { grid-column: 2; max-width: 14rem; }
  .schau > li.schau-offen { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .plan { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .betrachter[open] { grid-template-columns: minmax(0, 1fr) 16rem; }
}

@media (max-width: 54rem) {
  :root { --eingang: 0rem; }
  .haus { display: block; }
  .eingang {
    position: sticky; top: 0; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 0.7rem var(--rand); box-shadow: 0 1px 0 color-mix(in oklab, black 34%, var(--gruen-ecke)), 0 10px 18px -12px rgb(0 0 0 / 0.5);
  }
  .logo { width: 8.25rem; }
  .eingang-text { display: none; }
  .eingang-fuss { display: none; }
  .nav-knopf {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem;
    background: none; border: 2px solid var(--elfenbein); border-radius: 2px; font-weight: 800; cursor: pointer;
  }
  .nav-knopf svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .nav-knopf .zu, .nav-knopf[aria-expanded="true"] .auf { display: none; }
  .nav-knopf[aria-expanded="true"] .zu { display: inline-flex; align-items: center; gap: 0.5rem; }
  .nav-knopf .auf { display: inline-flex; align-items: center; gap: 0.5rem; }
  .raeume-nav { flex-basis: 100%; margin-top: 0; }
  html .raeume-nav { display: none; }
  html .raeume-nav.ist-offen { display: block; padding: 1rem 0 1.25rem; }
  .raeume-nav a { font-size: 1.5rem; padding: 0.45rem 0; }

  .wand {
    --boden: 4.75rem; --links: 3.25rem; --abstand: 1.5rem;
    --werk-h: 22rem; --werk-b: calc(100vw - var(--links) - var(--abstand) - 2.75rem);
    --wand-h: calc(var(--werk) * 1.5417 + 1.75rem + var(--boden));
  }
  .wand--titel { --wand-h: calc(var(--werk) * 1.5417 + 6.5rem + var(--boden)); }
  .wandtitel { position: absolute; left: var(--links); top: 1.4rem; height: auto; padding: 0; }
  .wandtitel h2 { font-size: 2.25rem; }
  .wandtitel p { font-size: 0.9375rem; }
  .werk .schild { font-size: 0.875rem; padding: 0.6rem 0.8rem 0.65rem; margin-top: 1rem; }
  .werk .schild h3 { font-size: 1.0625rem; }
  .boden { flex-direction: column; align-items: stretch; padding: 1rem var(--rand) 1.1rem; }
  .legende { gap: 0.3rem 1.25rem; font-size: 0.8125rem; }
  .schritte { justify-content: space-between; }
  .schritte output { margin-right: auto; text-align: left; order: -1; }
  .punkt { right: -1.9rem; width: 1.15rem; height: 1.15rem; }
  .betrachter-schild .punkt { left: auto; right: 0.9rem; top: 0.9rem; }

  .daumen, .kino, .kopf-wand, .zwei, .portrait, .fuss-raster { grid-template-columns: minmax(0, 1fr); }
  .termine li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .ziele, .stimmen { grid-template-columns: minmax(0, 1fr); }
  .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schau > li, .schau > li.schau-offen { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .schau figure { grid-column: auto; }
  .schau-datum { display: flex; align-items: baseline; gap: 0.75rem; }
  .schau-datum span { margin-top: 0; }
  .jahre li { grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1rem; }
  .haengung { --gx: 1rem; gap: 5rem var(--gx); }
  .haengung li { --n: var(--nm); }
  .stimme blockquote p { font-size: 1.25rem; }
  .raumplan { grid-template-rows: repeat(3, minmax(3.75rem, auto)); }
  .raumplan a { padding: 0.5rem; font-size: 0.8125rem; }
  .raumplan a small { display: none; }

  .betrachter[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .betrachter-bild { padding: 4.25rem 1rem 1rem; }
  .betrachter-bild img { max-height: min(62dvh, 100%); }
  .start-text + .wand { background-image: none; }
  .betrachter-seite { flex-direction: column-reverse; padding: 0 1rem 1rem; gap: 0.75rem; }
  .betrachter-schild { margin-top: 0; }
  .betrachter-schild .alt { display: none; }
  .betrachter-zu { position: absolute; top: 0.75rem; right: 0.75rem; background: var(--bw, var(--gruen)); }
}

.start-text { display: none; }
@media (max-width: 54rem) {
  .start-text { display: block; padding: 2rem var(--rand) 0.5rem; background: var(--gruen); }
  .start-text h1 { font-size: clamp(2rem, 8.6vw, 2.75rem); line-height: 1.02; font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; hyphens: auto; hyphenate-limit-chars: 12 6 5; overflow-wrap: break-word; }
  .start-text p { margin-top: 0.9rem; font-size: 1.0625rem; line-height: 1.4; color: color-mix(in oklab, var(--elfenbein) 76%, var(--gruen)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

@media print {
  .demobar, .nav-knopf, .schritte, .betrachter { display: none !important; }
  .haus { display: block; }
  .eingang { position: static; height: auto; }
}

/* Ohne JavaScript: assets/styles/ohne-js.css, geladen über <noscript> (01 Entscheidung 3) */
.wand-lauf::-webkit-scrollbar { display: none; }

.fehler-tueren { display: flex; flex-wrap: wrap; gap: 1rem; }
.fehler-allein { min-height: 100vh; }
.fehler-allein .logo { width: 11.5rem; margin-bottom: 3rem; }

/* Abstände, die im Entwurf inline standen (CSP: keine style-Attribute für Layout) */
.abstand { margin-top: 2rem; }
.abstand-gross { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.kino--abstand { margin-top: 2.5rem; }
.triptychon--weit { margin-top: 2rem; max-width: 56rem; }
.zwei--oben { align-items: start; }
.wandtext--abstand { margin-top: clamp(3rem, 6vw, 5rem); }
.lead-abstand { margin-top: 1.75rem; }

/* Offener Betrachter: die Seite dahinter scrollt nicht mit (docs/app-shell.md) */
html:has(.betrachter[open]) { overflow: hidden; }

/* Über mich, schmal: das Farbporträt steht unter der Biografie (08 EC-01) */
@media (max-width: 54rem) {
  .zwei--bild-nach > img { order: 2; }
}

/* Schmale Werke: das Schild hängt kompakter, damit auch eine umbrechende Patenzeile über dem Boden
   bleibt — unter dem Werk stehen nur 0,5417 Kantenlängen bis zum Boden (03 EC-02, BUG-04) */
/* nur Werke mit fester Breite: Größen-Containment ließe ein freies Werk (width: auto) auf 0 zusammenfallen (03 BUG-10) */
.werk:not(.werk--frei) { container-type: inline-size; container-name: werk; }
@container werk (max-width: 20rem) {
  .werk .schild { margin-top: 0.75rem; padding: 0.5rem 0.7rem 0.55rem; font-size: 0.8125rem; line-height: 1.25; }
  .werk .schild h3 { font-size: 1rem; line-height: 1.1; }
  .werk .schild p { margin-top: 0.1rem; }
}

/* Sprachumschalter (12 AK-06): Kürzel, aktuelle Sprache gelb wie der aktuelle Raum */
.sprachen { display: flex; flex-wrap: wrap; gap: 0.15rem 0.85rem; margin: 0.9rem 0 0; padding: 0; list-style: none; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.02em; }
.sprachen a { display: inline-flex; align-items: center; min-inline-size: 1.5rem; min-block-size: 1.75rem; padding: 0.2rem 0; color: var(--elfenbein); text-decoration: none; } /* Ziel ≥ 24 px (WCAG 2.5.8) */
.sprachen a:hover { text-decoration: underline; text-decoration-thickness: 0.1em; }
.sprachen a[aria-current="true"] { color: var(--gelb); }
.sprachen--fuss { margin: 0; }
.sprachen--fuss a { color: var(--elfenbein); }
@media (max-width: 54rem) {
  /* schmal: im aufgeklappten Menü „Räume“ (12 AK-08) */
  html .sprachen--eingang { display: none; flex-basis: 100%; margin: 0 0 1rem; font-size: 1.125rem; }
  html .raeume-nav.ist-offen ~ .sprachen--eingang { display: flex; }
}
