/* =========================================================
   Constanze Hochmuth Simonetti
   Eröffnung in einem hellen Zimmer, darunter Räume mit tief gestrichenen Wänden (Putz, Wandkante, Sockelleiste).
   Schriften: Fraunces (Display-Antiqua, optische Größe 144 für Titel, 9–14 für Text)
              Schibsted Grotesk (präzise Grotesk für Werkangaben, Navigation, Formular)
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
  /* Wände */
  --petrol: #173f44;
  --terrakotta: #7a3b2a;
  --tannengruen: #1f4a36;
  --aubergine: #5b2b4f;
  --indigo: #1f4268;
  --ochsenblut: #561b19;
  --umbra: #3a2f2a;
  --nacht: #14110f;

  --knochen: #efe7d7;          /* Text auf den Wänden */
  --leise: rgba(239, 231, 215, .86);
  --linie: rgba(239, 231, 215, .26);
  --messing: #cfae6a;          /* feine Linien, Fokus, Akzente */

  --antiqua: "Fraunces", "Iowan Old Style", Georgia, serif;
  --grotesk: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --rand: clamp(20px, 4.6vw, 80px);
  --spalt: clamp(14px, 1.6vw, 28px);
  --raum-pad: clamp(64px, 7.5vw, 120px);
  --sockel: clamp(18px, 1.9vw, 30px);

  --t-text: clamp(1.0625rem, 1.1vw, 1.1875rem);
  --t-angabe: 1rem;

  --gleit: cubic-bezier(.22, .61, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--nacht);
  color: var(--knochen);
  font-family: var(--antiqua);
  font-size: var(--t-text);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.55;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--messing); color: #1a1410; }
:focus-visible { outline: 2px solid var(--knochen); outline-offset: 4px; }

.skip {
  position: absolute; left: var(--rand); top: -100px; z-index: 100;
  background: var(--knochen); color: #1a1410; padding: 12px 18px;
  font: 500 16px/1 var(--grotesk); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Räume ---------- */
.raum { position: relative; overflow-x: clip; }

/* Wand: tiefe Farbe mit feinem Putzkorn, Raumvignette, Schatten an der Deckenkante, Sockelleiste unten */
.wand {
  --w: var(--petrol);
  isolation: isolate;
  background-color: var(--w);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 38%, rgba(255, 240, 215, .06), rgba(255, 240, 215, 0) 62%);
  background-size: 240px 240px, 100% 100%;
  background-blend-mode: soft-light, normal;
  /* oben: Deckenfuge als klare, 3 px starke Kante in dunklerem Ton mit kleiner Schattenkehle darunter (kein Verlauf zur Nachbarwand) */
  border-top: 3px solid color-mix(in srgb, var(--w) 40%, #000);
  box-shadow: inset 0 14px 12px -12px rgba(0, 0, 0, .5);
}
/* unten: Sockelleiste, massiv, mit heller Oberkante und dunkler Fuge */
.wand::after {
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: var(--sockel); pointer-events: none;
  background: color-mix(in srgb, var(--w) 52%, #000);
  border-top: 2px solid color-mix(in srgb, var(--w) 55%, #f3e6cf);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .35);
}
.wand--terrakotta { --w: var(--terrakotta); --leise: var(--knochen); }
.wand--tannengruen { --w: var(--tannengruen); }
.wand--aubergine { --w: var(--aubergine); }
.wand--indigo { --w: var(--indigo); }
.wand--ochsenblut { --w: var(--ochsenblut); }
.wand--umbra { --w: var(--umbra); }
.wand--anthrazit { --w: #2a2421; }
.wand > * { position: relative; z-index: 1; }

/* ---------- Kopf ---------- */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 20; background: transparent; border-bottom: 1px solid transparent; transition: background-color .18s ease, border-color .18s ease; }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; padding: 0 var(--rand); }
.kopf__marke, .eroeffnung__name, .vita-raum__satz, .fuss__name { font-variant-ligatures: no-common-ligatures no-discretionary-ligatures; }
.kopf__marke {
  font: italic 400 1.125rem/1 var(--antiqua); font-variation-settings: "opsz" 30, "WONK" 0;
  text-decoration: none; letter-spacing: .005em; white-space: nowrap; color: var(--knochen);
  transition: opacity .18s ease, visibility .18s;
}
.kopf__nav { display: flex; gap: clamp(18px, 1.9vw, 30px); }
.kopf__nav a {
  font: 500 1rem/1 var(--grotesk); letter-spacing: .01em; text-transform: none;
  text-decoration: none; padding: 24px 0; position: relative; color: var(--leise);
  transition: color .3s ease;
}
.kopf__nav a::after {
  content: ""; position: absolute; left: 0; right: .14em; bottom: 18px; height: 1px;
  background: var(--messing); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--gleit);
}
.kopf__nav a:hover { color: #fff; }
.kopf__nav a:hover::after, .kopf__nav a[aria-current]::after { transform: scaleX(1); }
.kopf__nav a[aria-current] { color: var(--knochen); }
.kopf__menu { display: none; }
/* Seitenanfang: durchsichtig, nur dunkle Navigationsworte auf dem Foto; die Marke fehlt (der Name steht als Überschrift im Hero) */
.kopf:not(.ist-gerollt):not(.ist-offen) .kopf__marke { opacity: 0; visibility: hidden; }
.kopf:not(.ist-gerollt):not(.ist-offen) .kopf__nav a,
.kopf:not(.ist-gerollt):not(.ist-offen) .kopf__menu { color: #1b1410; }
.kopf:not(.ist-gerollt):not(.ist-offen) .kopf__nav a::after { background: #8f6a1c; }
.kopf:not(.ist-gerollt):not(.ist-offen) .kopf__nav a:hover { color: #000; }
.kopf:not(.ist-gerollt) :focus-visible { outline-color: #1b1410; }
/* nach dem Hero: ruhige, deckende Leiste mit feiner Linie */
.kopf.ist-gerollt { background-color: #17130f; border-bottom-color: rgba(239, 231, 215, .16); }

/* ---------- Titel ---------- */
.titel {
  font-family: var(--antiqua); font-weight: 300; font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: clamp(3rem, 6.4vw, 7rem); line-height: .98; letter-spacing: -.025em;
  margin-left: -.04em;
}
.titel--werke { font-size: clamp(3.5rem, 7.2vw, 8rem); font-weight: 250; line-height: .9; letter-spacing: -.03em; }

/* kleine Überschrift mit Messinglinie */
.klein, .gruppe {
  font: 500 1rem/1.2 var(--grotesk); letter-spacing: .02em; color: var(--leise);
  display: flex; align-items: center; gap: 14px;
}
.klein::before, .gruppe::before { content: ""; width: 44px; height: 1px; background: var(--messing); flex: none; }

/* ---------- Museumsschild (Werkangaben) ---------- */
.schild { display: block; max-width: 24rem; font: 400 var(--t-angabe)/1.5 var(--grotesk); letter-spacing: .01em; }
.schild > span { display: block; }
.schild::before {
  content: ""; display: block; width: 28px; height: 1px; background: var(--messing); margin-bottom: 14px;
}
.schild__titel {
  font: 400 1.1875rem/1.25 var(--antiqua); font-variation-settings: "opsz" 24, "WONK" 0;
  margin-bottom: 6px; letter-spacing: 0;
}
.schild__zeile { color: var(--knochen); }
.schild__zeile--leise { color: var(--leise); }

/* ---------- Rahmen ---------- */
.rahmen { position: relative; display: block; }
/* Schwarze Lackleiste mit feiner Messingkante */
.rahmen--leiste {
  padding: clamp(10px, 1.05vw, 16px);
  background: linear-gradient(160deg, #26221f 0%, #0f0d0c 45%, #1c1916 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    inset 0 2px 1px rgba(255, 255, 255, .08),
    0 40px 70px -28px rgba(0, 0, 0, .7),
    0 14px 26px -10px rgba(0, 0, 0, .45);
}
.rahmen--leiste > :first-child { box-shadow: 0 0 0 1px #070605, 0 0 0 2px rgba(207, 174, 106, .55); }
/* Goldleiste: flach, matt, leicht berieben */
.rahmen--gold {
  padding: clamp(12px, 1.25vw, 20px);
  background:
    linear-gradient(135deg, rgba(255, 245, 210, .25), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .25)),
    linear-gradient(90deg, #7d6029, #ab8b4b 18%, #8f7034 40%, #b5975a 62%, #876a31 84%, #6c5124);
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 190, .35),
    inset 0 0 0 4px rgba(90, 64, 22, .35),
    0 40px 70px -28px rgba(0, 0, 0, .7),
    0 14px 26px -10px rgba(0, 0, 0, .45);
}
.rahmen--gold > :first-child { box-shadow: 0 0 0 2px #3a2a10, 0 0 8px 2px rgba(0, 0, 0, .55); }

/* ---------- Eröffnung: Foto eines hellen Wohnzimmers, das Gemälde hängt über dem Sofa ---------- */
.eroeffnung {
  --tinte: #1b1410;
  height: 100vh; height: 100svh; min-height: 560px; max-height: 1300px;
  overflow: hidden; isolation: isolate; background-color: #d8ccb8; color: var(--tinte);
  container-type: size;
}
/* Variablen am Abschnitt, damit Foto, Text und Kamerafahrt dieselbe Rechnung nutzen */
.eroeffnung__szene {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
}
.eroeffnung {
  /* Bildausschnitt wie object-fit: cover, aber als Rechnung: Bildmaße und Lage in Pixeln, damit Text und Kamerafahrt am Foto hängen */
  --ar: 1.8337;                                            /* 2560 : 1396 */
  --zoom: 1.4;                                            /* engerer Ausschnitt: Gemälde (60 x 80 cm) bleibt der Star, ca. 17 % der Breite */
  --iw: max(calc(100cqw * var(--zoom)), calc(100cqh * var(--ar)));
  --ih: calc(var(--iw) / var(--ar));
  --ix: clamp(calc(100cqw - var(--iw)), calc(55cqw - var(--iw) * .5085), 0px);                   /* Bildmitte des Gemäldes bei 55 % der Breite, links bleibt Platz für den Namen */
  --iy: clamp(calc(100cqh - var(--ih)), calc(max(64px, 7cqh) - var(--ih) * .209253), 0px);
  --bl: 44.7205%; --bt: 20.9253%; --bw: 12.2283%; --bh: 29.3951%;   /* Lage des Gemäldes (samt Rahmen) auf der Wand im Foto */
}
.zimmer {
  position: absolute; z-index: 0; left: var(--ix); top: var(--iy); width: var(--iw); height: var(--ih);
  transform-origin: 0 0; backface-visibility: hidden;
}
.js .eroeffnung:not(.ist-bereit) .zimmer { opacity: 0; }
.zimmer picture, .zimmer__foto { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
/* Gemälde: scharfes Werkfoto (auf 3:4 gebracht) im schmalen schwarzen Eichenrahmen, liegt exakt auf der Wandposition.
   Der Schatten auf der Wand steckt im Foto; hier nur Rahmen, Schattenfuge und dezentes Licht. Maße relativ zur Bühne (--iw). */
.zimmer__bild {
  --leiste: calc(var(--iw) * .0035); --fuge: calc(var(--iw) * .00058);
  position: absolute; left: var(--bl); top: var(--bt); width: var(--bw); height: var(--bh);
  box-sizing: border-box; margin: 0; padding: var(--fuge); cursor: zoom-in; display: block;
  background: #0b0908; border: var(--leiste) solid #26201c;
  border-top-color: #4a3f37; border-left-color: #3b322b; border-right-color: #1b1613; border-bottom-color: #14100d;
}
.zimmer__bild img { display: block; width: 100%; height: 100%; object-fit: fill; }
.zimmer__bild::after {
  content: ""; position: absolute; inset: var(--fuge); pointer-events: none;
  background:
    linear-gradient(105deg, rgba(255, 238, 205, .20) 0%, rgba(255, 238, 205, 0) 52%),
    linear-gradient(90deg, rgb(255, 251, 244) 0%, rgb(236, 224, 208) 100%);
  background-blend-mode: normal;
  mix-blend-mode: multiply;
  box-shadow: inset calc(var(--iw) * .0019) calc(var(--iw) * .0013) calc(var(--iw) * .0020) rgba(0, 0, 0, .55);
}
.zimmer__bild:focus-visible { outline: 2px solid #1b1410; outline-offset: 5px; }

.eroeffnung__satz {
  position: absolute; z-index: 3; pointer-events: none;
  left: calc(var(--rand) + 5.5vw); bottom: max(5.5vh, 34px);
}
/* Name am Fuß des Hero: einzeilig auf dem hellen Boden, dunkle Schrift */
.eroeffnung__name {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .24em;
  font-family: var(--antiqua); font-weight: 300; font-variation-settings: "opsz" 144, "WONK" 0;
  font-size: clamp(2rem, 3.5vw, 4.4rem); line-height: 1; letter-spacing: -.03em;
  color: var(--tinte);
}
.zeile { display: block; overflow: hidden; padding: 0 .06em .12em 0; margin-bottom: -.12em; }
.zeile > span { display: inline-block; }
.zeile--2 { font-style: italic; font-weight: 300; }
.eroeffnung__fach {
  margin: clamp(8px, .9vw, 14px) 0 0 .1em;
  font: 500 1rem/1 var(--grotesk); letter-spacing: .02em; color: var(--tinte);
  display: flex; align-items: center; gap: 16px;
}
.eroeffnung__fach::before { content: ""; width: 44px; height: 1px; background: #8f6a1c; }
/* Hochformat: eigener Ausschnitt mit Decke oben (dort steht der Name), Gemälde groß, Sofa darunter */
@media (max-aspect-ratio: 3/4) {
  .eroeffnung { height: max(100svh, calc(100vw * 1.54 + 215px)); min-height: 0; max-height: none; }
  .eroeffnung {
    --ar: .4623; --iw: max(100cqw, calc(100cqh * var(--ar)));
    --zoom: 1; --iy: calc(100cqh - var(--ih)); --ix: calc((100cqw - var(--iw)) * .5);
    --bl: 29.7436%; --bt: 46.2914%; --bw: 40.3846%; --bh: 24.4793%;
  }
}

/* Auftritt (nur mit Skript) */
.js .zeile > span { transform: translateY(105%); }
.js .eroeffnung.ist-name .zeile > span { transform: none; transition: transform 1.6s var(--gleit); }
.js .eroeffnung.ist-name .zeile--2 > span { transition-delay: .14s; }
.js .eroeffnung.ist-name .zeile--3 > span { transition-delay: .28s; }
.js .eroeffnung__fach { opacity: 0; transition: opacity 1.4s var(--gleit); }
.js .eroeffnung.ist-name .eroeffnung__fach { opacity: 1; transition-delay: .7s; }

/* ---------- Werke: ein Raum je Gemälde ---------- */
.werk-raum {
  --bildh: min(78svh, 780px);
  padding: var(--raum-pad) var(--rand) calc(var(--raum-pad) + var(--sockel));
  display: grid; align-items: center;
  min-height: min(100svh, 1000px);
}
.werk { position: relative; display: flex; align-items: flex-end; gap: clamp(28px, 4vw, 72px); }
/* Lichtkegel über jedem Bild */

.werk__oeffnen {
  flex: 0 0 auto; width: calc(var(--bildh) * var(--ar)); max-width: 100%;
  margin: 0; border: 0; cursor: zoom-in; text-align: left; transition: transform .8s var(--gleit);
}
.werk__oeffnen:hover { transform: translateY(-3px); }
.werk__oeffnen:focus-visible { outline-offset: 8px; }
.werk__oeffnen img { display: block; width: 100%; height: auto; position: relative; }
.werk .schild { flex: 0 1 15rem; padding-bottom: 6px; }

/* Auftritt: das Bild „wird gehängt“ – leise von unten, Schild folgt */
.js .werk > .werk__oeffnen { opacity: 0; transform: translateY(40px); }
.js .werk.ist-sichtbar > .werk__oeffnen { opacity: 1; transform: none; transition: opacity 1.4s var(--gleit), transform 1.6s var(--gleit); }
.js .werk.ist-sichtbar > .werk__oeffnen:hover { transform: translateY(-3px); transition: transform .8s var(--gleit); }
.js .werk .schild { opacity: 0; }
.js .werk.ist-sichtbar .schild { opacity: 1; transition: opacity 1.2s .6s var(--gleit); }

.werk-raum__kopf { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 30px); align-self: start; padding-top: clamp(8px, 2vw, 32px); }
/* Hängung 1: Titel links, Gemälde rechts */
.werk-raum--zwei { --ar: calc(1200 / 1714); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--spalt); align-items: center; }
.werk-raum--zwei .werk { justify-self: center; }
/* Hängung 2: Schild links, Porträt rechts */
.werk-raum--drei { --ar: 1; --bildh: min(70svh, 700px); }
.werk-raum--drei .werk { flex-direction: row-reverse; justify-self: end; margin-right: clamp(0px, 9vw, 150px); }

/* ---------- Vita ---------- */
.vita-raum {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt); align-items: start;
  padding: var(--raum-pad) var(--rand) calc(var(--raum-pad) + var(--sockel));
}
.vita-raum__text { grid-column: 1 / 6; }
.vita-raum__satz {
  margin-top: clamp(22px, 2.4vw, 36px);
  font-family: var(--antiqua); font-weight: 300; font-variation-settings: "opsz" 72, "WONK" 0;
  font-size: clamp(1.75rem, 2.5vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em;
}
.vita-raum__intro {
  margin-top: clamp(28px, 3vw, 44px); max-width: 36rem;
  font: 350 clamp(1.1875rem, 1.45vw, 1.4rem)/1.5 var(--antiqua); font-variation-settings: "opsz" 30, "WONK" 0;
}
.vita { margin-top: clamp(32px, 3.4vw, 52px); border-top: 1px solid var(--messing); max-width: 36rem; }
.vita li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--spalt); padding: 16px 0 15px; border-bottom: 1px solid var(--linie); align-items: baseline; }
.vita__zeit { font: 500 1rem/1.4 var(--grotesk); font-variant-numeric: tabular-nums; color: var(--leise); }
.vita__was { font: 350 clamp(1.1875rem, 1.4vw, 1.375rem)/1.35 var(--antiqua); font-variation-settings: "opsz" 30, "WONK" 0; }
.vita .vita__ganz { display: block; }

/* Foto der Künstlerin: als Abzug mit schmalem hellem Rand, nicht als Gemälde gerahmt */
.foto { grid-column: 6 / 13; margin-left: 4%; position: sticky; top: 96px; }
.foto__bild { padding: clamp(6px, .6vw, 10px); background: #ece3d2; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .65), 0 12px 24px -12px rgba(0, 0, 0, .4); }
.foto__bild img { width: 100%; height: auto; aspect-ratio: 1600 / 1068; object-fit: cover; }
.foto__schild { margin-top: 20px; max-width: 30rem; }
.foto__schild .schild__titel { font-size: 1.0625rem; }

/* ---------- Ausstellungen ---------- */
.ausstellungen { padding: var(--raum-pad) var(--rand) calc(var(--raum-pad) + var(--sockel)); }
.ausstellungen__kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 60px; flex-wrap: wrap; }
.ausstellungen__lead { font: 350 clamp(1.25rem, 1.6vw, 1.625rem)/1.35 var(--antiqua); font-variation-settings: "opsz" 36, "WONK" 0; max-width: 26rem; padding-bottom: .4em; }
.ausstellungen__inhalt { margin-top: clamp(40px, 5vw, 72px); }
.orte-gruppe {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt);
  padding: clamp(24px, 2.8vw, 40px) 0; border-top: 1px solid var(--linie);
}
.orte-gruppe > .klein { grid-column: 1 / 4; align-self: start; padding-top: .6em; }
.orte-gruppe > ul { grid-column: 4 / 13; }
/* Orte: aufrechte Antiqua, hell auf der Wand (über 7:1), durch feine Mittelpunkte getrennt, Zeilenlänge unter 75 Zeichen */
.orte {
  font: 400 clamp(1.25rem, 1.7vw, 1.625rem)/1.75 var(--antiqua); font-variation-settings: "opsz" 24, "WONK" 0;
  letter-spacing: 0; color: #f7f0e1; max-width: 34em; text-wrap: pretty;
}
.orte li { display: inline; }
.orte li:not(:last-child)::after { content: "\00b7"; margin: 0 .55em; color: var(--messing); font-weight: 700; }
.orte-gruppe > .klein { font-size: 1rem; letter-spacing: .02em; text-transform: none; color: #e9dfca; }
.ankaeufe__liste { border-top: 1px solid var(--messing); columns: 2; column-gap: var(--spalt); }
.ankaeufe__liste li {
  break-inside: avoid; padding: 14px 0 13px; border-bottom: 1px solid var(--linie);
  font: 400 clamp(1.0625rem, 1.2vw, 1.1875rem)/1.4 var(--antiqua); font-variation-settings: "opsz" 24, "WONK" 0;
}

/* ---------- Anfragen ---------- */
.kontakt {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt); align-items: end;
  padding: var(--raum-pad) var(--rand) calc(var(--raum-pad) + var(--sockel));
}
.kontakt__kopf { grid-column: 1 / 6; align-self: start; }
.kontakt__satz { margin-top: clamp(20px, 2.2vw, 32px); font: 350 clamp(1.25rem, 1.55vw, 1.5rem)/1.45 var(--antiqua); font-variation-settings: "opsz" 30, "WONK" 0; max-width: 26rem; }
.formular {
  grid-column: 7 / 13;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--spalt);
}
.feld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feld--breit { grid-column: 1 / -1; }
.feld label { font: 500 var(--t-angabe)/1.3 var(--grotesk); letter-spacing: .02em; color: var(--leise); }
.optional { color: var(--leise); font-weight: 400; }
.feld input, .feld select, .feld textarea {
  font: 400 1.125rem/1.4 var(--antiqua); font-variation-settings: "opsz" 18, "WONK" 0; color: var(--knochen);
  background: transparent; border: 0; border-bottom: 1px solid rgba(239, 231, 215, .55); border-radius: 0;
  padding: 8px 0 10px; width: 100%;
  transition: border-color .3s;
}
.feld select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--knochen) 50%), linear-gradient(135deg, var(--knochen) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.feld select option { color: #1a1410; background: #efe7d7; }
.feld textarea { resize: vertical; min-height: 7.5em; }
.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--knochen); }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: none; border-bottom: 2px solid var(--messing); padding-bottom: 9px; }
.feld [aria-invalid="true"] { border-bottom-color: #f0b49a; }
.feld--fang { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feld--wahl { flex-direction: row; align-items: flex-start; gap: 14px; }
.feld--wahl input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--messing); }
.feld--wahl label { font: 400 1rem/1.5 var(--grotesk); color: var(--knochen); letter-spacing: 0; }
.feld--wahl label a { text-underline-offset: 3px; }
.formular__fuss { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.senden {
  font: 500 1rem/1 var(--grotesk); letter-spacing: .02em;
  color: #1c120c; background: var(--knochen); border: 1px solid var(--knochen); border-radius: 0;
  padding: 19px 34px 18px; min-height: 52px; cursor: pointer;
  transition: background-color .4s var(--gleit), color .4s var(--gleit);
}
.senden:hover { background: transparent; color: var(--knochen); }
.senden:disabled { opacity: .6; cursor: wait; }
.formular__meldung { font: 400 1rem/1.45 var(--grotesk); }
.formular__meldung.ist-fehler { color: #f6c7b2; }

/* ---------- Fuß ---------- */
.fuss { background: var(--nacht); padding: clamp(56px, 6vw, 96px) var(--rand) 36px; border-top: 3px solid #070605; box-shadow: inset 0 14px 12px -12px rgba(0, 0, 0, .6); }
.fuss__innen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt); align-items: end; row-gap: 28px; }
.fuss__name { grid-column: 1 / 7; font: italic 300 clamp(2rem, 3.6vw, 3.5rem)/1 var(--antiqua); font-variation-settings: "opsz" 144, "WONK" 0; letter-spacing: -.02em; }
.fuss__recht { grid-column: 7 / 13; display: flex; flex-wrap: wrap; gap: 0 clamp(18px, 2.4vw, 36px); justify-content: flex-end; font: 500 1rem/1 var(--grotesk); }
.fuss__recht a { display: inline-block; padding: 12px 0; text-decoration: none; border-bottom: 1px solid transparent; }
.fuss__recht a:hover { border-bottom-color: var(--messing); }
.fuss__klein { grid-column: 1 / 13; border-top: 1px solid var(--linie); padding-top: 18px; font: 400 var(--t-angabe)/1.6 var(--grotesk); color: var(--leise); }

/* ---------- Lichtkasten ---------- */
.lichtkasten {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #100e0d; color: var(--knochen);
  overflow: hidden;
}
.lichtkasten[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lichtkasten::backdrop { background: #100e0d; }
.lichtkasten__buehne { display: grid; place-items: center; padding: 76px var(--rand) 24px; min-height: 0; touch-action: pan-y; }
.lichtkasten__buehne > * { max-width: 100%; max-height: 100%; opacity: 0; transition: opacity .6s var(--gleit); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lichtkasten__buehne > .ist-da { opacity: 1; }
.lichtkasten__leiste { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding: 16px var(--rand) 28px; }
.lichtkasten__angabe::before { display: none; }
.lichtkasten__zahl { font: 400 var(--t-angabe)/1 var(--grotesk); color: var(--leise); font-variant-numeric: tabular-nums; padding-bottom: 3px; }
.lichtkasten__steuer { display: flex; gap: 28px; justify-content: flex-end; align-items: baseline; }
.textknopf, .textlink {
  font: 500 1rem/1 var(--grotesk); color: var(--knochen);
  background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.textknopf:hover, .textlink:hover { border-color: currentColor; }
.textlink { border-color: var(--messing); }
.lichtkasten__zu { position: absolute; top: 24px; right: var(--rand); }

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */
.recht { background: var(--nacht); min-height: 100vh; }
.recht__kopf { padding: 24px var(--rand); border-bottom: 1px solid var(--linie); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.recht__kopf a { text-decoration: none; }
.recht__marke { font: italic 400 1.1875rem/1 var(--antiqua); font-variation-settings: "opsz" 30, "WONK" 0; padding: 10px 0; }
.recht__zurueck { font: 500 1rem/1 var(--grotesk); padding: 12px 0; border-bottom: 1px solid var(--messing); }
.recht__inhalt { padding: clamp(48px, 7vw, 100px) var(--rand) clamp(64px, 8vw, 120px); max-width: calc(46rem + 2 * var(--rand)); }
.recht h1 { font: italic 300 clamp(2.75rem, 6vw, 5.5rem)/1 var(--antiqua); font-variation-settings: "opsz" 144, "WONK" 0; letter-spacing: -.025em; margin-bottom: clamp(32px, 4vw, 56px); }
.recht h2 { font: 500 1rem/1.2 var(--grotesk); letter-spacing: .02em; color: var(--leise); display: flex; align-items: center; gap: 14px; margin: clamp(36px, 4vw, 56px) 0 16px; }
.recht h2::before { content: ""; width: 44px; height: 1px; background: var(--messing); }
.recht dl { border-top: 1px solid var(--messing); }
.recht dl > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--spalt); padding: 14px 0; border-bottom: 1px solid var(--linie); align-items: baseline; }
.recht dt { font: 500 var(--t-angabe)/1.4 var(--grotesk); color: var(--leise); }
.recht dd, .recht p { font: 300 1.1875rem/1.5 var(--antiqua); font-variation-settings: "opsz" 24, "WONK" 0; }
.offen { background: #f0c36b; color: #1b1410; font: 600 1rem/1.4 var(--grotesk); letter-spacing: .02em; padding: 2px 8px; }
.recht__fuss { padding: 28px var(--rand) 40px; border-top: 1px solid var(--linie); font: 400 var(--t-angabe)/1.6 var(--grotesk); color: var(--leise); display: flex; gap: 8px 28px; flex-wrap: wrap; }
.recht__fuss a { padding: 10px 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .kopf__nav { gap: 20px; }
  .werk-raum--zwei { grid-template-columns: 1fr; row-gap: clamp(28px, 4vw, 48px); }
  .werk-raum--zwei .werk { justify-self: start; }
  .werk-raum--drei .werk { margin-right: 0; }
  .kontakt__kopf { grid-column: 1 / 6; }
  .formular { grid-column: 6 / 13; }
  .vita-raum__text { grid-column: 1 / 7; }
  .foto { grid-column: 7 / 13; margin-left: 0; }
  .orte-gruppe > .klein { grid-column: 1 / 13; margin-bottom: 14px; padding-top: 0; }
  .orte-gruppe > ul { grid-column: 1 / 13; }
}

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .kopf__innen { height: 60px; }
  .kopf__marke { font-size: 1.0625rem; position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 48px; }
  .kopf__menu {
    display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 2;
    background: none; border: 0; cursor: pointer; min-height: 48px; min-width: 48px; margin-right: -8px; padding: 0 8px; justify-content: flex-end;
    font: 500 1rem/1 var(--grotesk); letter-spacing: .01em; text-transform: none; color: var(--knochen);
  }
  .kopf__menu-text { padding: 6px 0 5px; border-bottom: 1px solid var(--messing); }
  /* geöffnet: nur das Kreuz sichtbar (Beschriftung „Schließen“ bleibt für Screenreader) */
  .kopf.ist-offen .kopf__menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; }
  .kopf.ist-offen .kopf__menu::after {
    content: ""; width: 16px; height: 16px; flex: none;
    background:
      linear-gradient(45deg, transparent calc(50% - .5px), currentColor calc(50% - .5px), currentColor calc(50% + .5px), transparent calc(50% + .5px)),
      linear-gradient(-45deg, transparent calc(50% - .5px), currentColor calc(50% - .5px), currentColor calc(50% + .5px), transparent calc(50% + .5px));
  }
  .kopf__nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 4px;
    padding: 90px var(--rand) 60px;
    background-color: #14110f;
    visibility: hidden; opacity: 0; transition: opacity .35s var(--gleit), visibility 0s .35s;
  }
  .kopf.ist-offen .kopf__nav { visibility: visible; opacity: 1; transition: opacity .35s var(--gleit); }
  .kopf.ist-offen { background-color: #14110f; border-bottom-color: transparent; }
  .kopf__nav a { font: 300 clamp(2.4rem, 10.5vw, 3.4rem)/1.12 var(--antiqua); font-variation-settings: "opsz" 144, "WONK" 0; text-transform: none; color: var(--knochen); padding: 6px 0; align-self: flex-start; letter-spacing: -.02em; }
  .kopf__nav a::after { bottom: 6px; right: 0; }

  .eroeffnung__satz { left: var(--rand); right: var(--rand); top: 84px; bottom: auto; text-align: center; }
  .eroeffnung__name { flex-direction: column; align-items: center; font-size: clamp(2.3rem, 10.4vw, 4.4rem); line-height: .92; }
  .eroeffnung__fach { margin-top: 14px; justify-content: center; }
  .eroeffnung__fach::before { display: none; }

  .werk-raum { min-height: 0; padding-top: 56px; }
  .werk-raum--zwei { row-gap: 36px; }
  .werk { flex-direction: column; align-items: flex-start; gap: 20px; }
  .werk-raum--drei .werk { flex-direction: column; }
  .werk__oeffnen { width: min(100%, calc(70svh * var(--ar))); }
  .werk-raum--zwei .werk, .werk-raum--drei .werk { align-items: stretch; }
  .werk .schild { flex: none; }

  .vita-raum, .kontakt { display: flex; flex-direction: column; align-items: stretch; }
  .foto { position: static; margin: 44px calc(-1 * var(--rand)) 0; }
  .foto__bild { padding: 0; background: none; box-shadow: none; }
  .foto__bild img { aspect-ratio: 4 / 5; object-position: 50% 50%; }
  .foto__schild { margin: 18px var(--rand) 0; }
  .vita li { grid-template-columns: 6.5rem minmax(0, 1fr); }

  .orte-gruppe { display: block; }
  .ankaeufe__liste { columns: 1; }

  .formular { grid-template-columns: 1fr; margin-top: 44px; }
  .fuss__innen { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .fuss__recht { justify-content: flex-start; }

  .lichtkasten__buehne { padding: 68px 12px 12px; }
  .lichtkasten__leiste { grid-template-columns: 1fr auto; row-gap: 16px; padding-bottom: 20px; }
  .lichtkasten__angabe { grid-column: 1 / 2; }
  .lichtkasten__zahl { grid-column: 2; grid-row: 1; justify-self: end; }
  .lichtkasten__steuer { grid-column: 1 / -1; justify-content: space-between; }
  .textknopf, .textlink { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 4px; }
  .lichtkasten__zu { top: 10px; right: calc(var(--rand) - 4px); }

  .recht dl > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
@media (min-width: 821px) { .orte li { white-space: nowrap; } }

/* =========================================================
   Galerie-Beleuchtung: Bilderleuchte, sichtbarer Lichtkegel, Staub, Dämmerung -> Licht an (nur transform/opacity)
   ========================================================= */
.licht, .zimmer__licht { pointer-events: none; }
.licht { position: absolute; inset: 0; --lo: 7px; }
.licht > * { z-index: 2; }
.licht--hinten { z-index: auto; }
.licht--werk.licht--hinten { z-index: -1; }
.zimmer__licht { position: absolute; left: var(--bl); top: var(--bt); width: var(--bw); height: var(--bh); z-index: 2; --leiste: calc(var(--iw) * .0035); }
.zimmer__licht .licht { --lo: calc(var(--leiste) + 5px); }
.licht__lampe { position: absolute; left: 20%; width: 60%; height: auto; bottom: calc(100% + var(--lo)); overflow: visible; }
.licht__gluehen { opacity: 0; transition: opacity .9s ease-in-out; }
.licht__kegel, .licht__kante, .licht__staub, .licht__glanz { opacity: 0; transition: opacity .9s ease-in-out; }
.licht-an .licht__gluehen, .ist-licht .licht__gluehen { opacity: 1; }
.licht-an .licht__kegel, .ist-licht .licht__kegel { opacity: .95; }
.licht-an .licht__kante, .ist-licht .licht__kante, .licht-an .licht__staub, .ist-licht .licht__staub { opacity: 1; }
.licht-an .licht__glanz, .ist-licht .licht__glanz { opacity: 1; }
.ist-licht .werk__oeffnen:hover .licht__kegel, .ist-licht .werk__oeffnen:focus-visible .licht__kegel { opacity: 1; }
/* Trichter von der Leuchte über das Bild */
.licht__kegel { position: absolute; left: -60%; width: 220%; top: calc(-1 * var(--lo)); height: 190%; transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
.licht__atmen { position: absolute; inset: 0; animation: licht-atmen 11s ease-in-out infinite; will-change: opacity; }
.licht__atmen svg, .licht__strahlen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.licht__strahlen { animation: strahlen 8s ease-in-out infinite alternate; will-change: opacity; }
@keyframes licht-atmen { 0%, 100% { opacity: 1; } 50% { opacity: .94; } }
@keyframes strahlen { from { opacity: .55; } to { opacity: 1; } }
.licht__kante { position: absolute; left: 3%; width: 94%; top: calc(-1 * var(--leiste, 2px)); height: 2px;
  background: linear-gradient(90deg, rgba(255, 236, 196, 0), rgba(255, 244, 214, .95) 50%, rgba(255, 236, 196, 0)); transform: translate3d(var(--mx, 0px), 0, 0); }
.licht__glanz { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, rgba(255, 236, 190, .20), rgba(255, 236, 190, 0) 26%); }
.licht__glanz::before { content: ""; position: absolute; inset: -10% -40%; transform: translate3d(calc(var(--mx, 0px) * 5), 0, 0);
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 38%, rgba(255, 246, 225, .20) 50%, rgba(255, 255, 255, 0) 62%); }
.licht__staub { position: absolute; left: -60%; width: 220%; top: 0; height: 190%;
}
.licht__staub i { position: absolute; display: block; width: var(--d, 3px); height: var(--d, 3px); border-radius: 50%; background: #fff3d6; opacity: var(--o, .5);
  animation: staub var(--t, 22s) ease-in-out infinite alternate; animation-delay: var(--v, 0s); }
@keyframes staub { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--dx, 12px), var(--dy, 20px), 0); } }
.licht--pause *, html.ist-verborgen .licht * { animation-play-state: paused !important; }

/* Hero: Dämmerung, dann Kunstlicht an; Vignette um den Lichtpool bleibt */
.zimmer__dunkel, .zimmer__pool { position: absolute; inset: 0; pointer-events: none; }
.zimmer__dunkel { background: rgba(14, 8, 4, .40); transition: opacity .9s ease-in-out; }
.zimmer__pool { opacity: 0; transition: opacity .9s ease-in-out;
  background: radial-gradient(ellipse 52% 70% at calc(var(--bl) + var(--bw) / 2) calc(var(--bt) + var(--bh) * .6), rgba(20, 12, 6, 0) 22%, rgba(20, 12, 6, .26) 100%); }
.licht-an .zimmer__dunkel { opacity: 0; }
.licht-an .zimmer__pool { opacity: 1; }

/* Sonnenflecken: ganz langsam wandernd über den im Foto vorhandenen Flecken */
.sonne { position: absolute; left: 24%; top: 25%; width: 12%; height: 32%; pointer-events: none;
  background: linear-gradient(104deg, rgba(255, 238, 200, 0) 0%, rgba(255, 240, 205, .38) 50%, rgba(255, 238, 200, 0) 100%);
  opacity: .3; transform: skewX(-9deg); animation: sonne 36s ease-in-out infinite alternate; }
.sonne--2 { left: 31%; top: 22%; width: 5%; height: 24%; animation-duration: 31s; animation-delay: -9s; }
@keyframes sonne { from { transform: translate3d(0, 0, 0) skewX(-9deg); opacity: .27; } to { transform: translate3d(1.2%, 0.6%, 0) skewX(-9deg); opacity: .33; } }
@media (max-aspect-ratio: 3/4) { .sonne { display: none; } .zimmer__pool { background: radial-gradient(ellipse 110% 40% at calc(var(--bl) + var(--bw) / 2) calc(var(--bt) + var(--bh) * .6), rgba(20, 12, 6, 0) 22%, rgba(20, 12, 6, .26) 100%); } }

/* Hero-Gemälde: feine Neigung beim Überfahren (max. 2 Grad) */
.zimmer__bild { transition: transform .6s var(--gleit); }
.zimmer__bild:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Werke-Räume: Wand zuerst fast dunkel (ca. 35 % Helligkeit), dann Lichtpool */
.werk-raum__dunkel, .werk-raum__pool { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; }
.werk-raum__dunkel { background: rgba(6, 4, 3, .64); opacity: 1; transition: opacity .9s ease-in-out; }
.werk-raum__pool { opacity: 0; transition: opacity .9s ease-in-out;
  background: radial-gradient(ellipse 36% 52% at var(--px, 60%) var(--py, 45%), rgba(255, 214, 150, .30) 0%, rgba(255, 214, 150, .11) 55%, rgba(255, 214, 150, 0) 100%),
              radial-gradient(ellipse 85% 95% at var(--px, 60%) var(--py, 45%), rgba(0, 0, 0, 0) 28%, rgba(6, 4, 3, .42) 100%); }
.werk-raum.ist-licht .werk-raum__dunkel { opacity: 0; }
.werk-raum.ist-licht .werk-raum__pool { opacity: 1; }
.js .werk.ist-sichtbar > .werk__oeffnen:hover { transform: translateY(-3px) perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .werk.ist-sichtbar > .werk__oeffnen { transform-style: flat; }
.licht--werk .licht__atmen svg { opacity: 1; }

/* Titel: Maskenreveal, Zeilen gestaffelt */
.js .titel { overflow: hidden; padding: 0 .1em .14em 0; margin-bottom: -.14em; }
.js .titel__t { display: block; transform: translateY(108%); }
.js .titel.ist-sichtbar .titel__t { transform: none; transition: transform .8s cubic-bezier(.16, .84, .3, 1); }
.js .orte li, .js .vita li { opacity: 0; }
.js .orte-gruppe.ist-sichtbar .orte li, .js .vita.ist-sichtbar li { opacity: 1; transition: opacity .7s ease calc(var(--i, 0) * 40ms); }

/* Scroll-Fortschritt: feine Messinglinie unten an der Leiste */
.kopf__fortschritt { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--messing); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; transition: opacity .2s; }
.kopf.ist-gerollt .kopf__fortschritt { opacity: .9; }
.eroeffnung__satz { transform: translate3d(0, var(--sy, 0px), 0); }

@media (prefers-reduced-motion: reduce) {
  .licht__atmen, .licht__strahlen, .licht__staub i, .sonne { animation: none !important; }
  .licht__staub { display: none; }
  .zimmer__dunkel, .werk-raum__dunkel { display: none; }
  .js .titel__t, .js .orte li, .js .vita li { transform: none; opacity: 1; }
  .kopf__fortschritt { display: none; }
}
.zimmer__licht--hinten { z-index: auto; }
.licht--hinten > * { z-index: auto; }

.ist-licht .licht--werk .licht__kegel { opacity: .78; }
.ist-licht .werk__oeffnen:hover .licht--werk .licht__kegel, .ist-licht .werk__oeffnen:focus-visible .licht--werk .licht__kegel { opacity: .86; }

/* ---------- Auftragsbilder ---------- */
.auftrag {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--spalt); align-items: center;
  padding: var(--raum-pad) var(--rand) calc(var(--raum-pad) + var(--sockel));
}
.auftrag__satz {
  margin-top: clamp(22px, 2.4vw, 36px);
  font-family: var(--antiqua); font-weight: 300; font-variation-settings: "opsz" 72, "WONK" 0;
  font-size: clamp(1.75rem, 2.5vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em;
}
.auftrag__intro {
  margin: clamp(22px, 2.4vw, 36px) 0 clamp(26px, 2.8vw, 40px); max-width: 34rem;
  font: 350 clamp(1.1875rem, 1.45vw, 1.4rem)/1.5 var(--antiqua); font-variation-settings: "opsz" 30, "WONK" 0;
}
.auftrag__bild { display: flex; flex-direction: column; gap: 22px; justify-self: center; width: min(100%, 560px); }
.auftrag__bild .schild { max-width: none; }
@media (max-width: 820px) {
  .auftrag { grid-template-columns: 1fr; row-gap: 40px; }
  .auftrag__bild { justify-self: stretch; width: auto; }
}

/* Licht gedämpft (Feinjustierung) */
.licht-an .licht__kegel { opacity: .56; }
.ist-licht .licht--werk .licht__kegel { opacity: .44; }
.ist-licht .werk__oeffnen:hover .licht--werk .licht__kegel, .ist-licht .werk__oeffnen:focus-visible .licht--werk .licht__kegel { opacity: .5; }
.ist-licht .werk__oeffnen:hover .licht__kegel, .ist-licht .werk__oeffnen:focus-visible .licht__kegel { opacity: .5; }
.licht-an .licht__glanz, .ist-licht .licht__glanz { opacity: .5; }
.licht-an .licht__staub, .ist-licht .licht__staub { opacity: .7; }
.licht-an .licht__gluehen, .ist-licht .licht__gluehen { opacity: .8; }
.werk-raum__pool {
  background: radial-gradient(ellipse 36% 52% at var(--px, 60%) var(--py, 45%), rgba(255, 214, 150, .16) 0%, rgba(255, 214, 150, .055) 55%, rgba(255, 214, 150, 0) 100%),
              radial-gradient(ellipse 85% 95% at var(--px, 60%) var(--py, 45%), rgba(0, 0, 0, 0) 28%, rgba(6, 4, 3, .36) 100%);
}
.werk-raum__dunkel { background: rgba(6, 4, 3, .5); }
.auftrag__bild img { width: 100%; height: auto; }

/* Ruhiger: kein Staub */
.licht__staub { display: none !important; }


/* ---------- Feinschliff (Prüfung nach Web Interface Guidelines) ---------- */
html { -webkit-tap-highlight-color: rgba(143, 106, 28, .18); }
a, button, select, summary, label, input[type="checkbox"] { touch-action: manipulation; }
h1, h2, .titel { text-wrap: balance; }
.ankaeufe > summary { list-style: none; cursor: pointer; display: block; }
.ankaeufe > summary::-webkit-details-marker { display: none; }
.ankaeufe > summary:focus-visible { outline: 2px solid var(--messing); outline-offset: 6px; }
@media (max-width: 820px) {
  .ankaeufe > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
  .ankaeufe > summary::after { content: "+"; font: 300 1.6rem/1 var(--grotesk); color: var(--messing); }
  .ankaeufe[open] > summary::after { content: "\2212"; }
  .werk-raum--zwei { row-gap: 76px; }
}

/* ---------- Lesbarkeit der Überschriften (Bodoni-feine Linien waren auf farbigen Wänden zu dünn) ---------- */
.titel { font-weight: 380; font-variation-settings: "opsz" 96; }
.titel--werke { font-weight: 360; font-variation-settings: "opsz" 96; letter-spacing: -.02em; }
.klein, .gruppe { color: #f3ead8; font-weight: 500; text-shadow: 0 1px 0 rgba(0, 0, 0, .12); }

/* ---------- Hero auf dem Handy: kleinerer Name, Gemälde größer, weniger Leerraum ---------- */
@media (max-aspect-ratio: 3/4) {
  .eroeffnung { height: max(94svh, 800px); }
  .eroeffnung {
    --iw: calc(max(100cqw, calc(100cqh * var(--ar))) * 1.3);
    --ix: calc((100cqw - var(--iw)) * .5);
    --iy: calc(100cqh - var(--ih));
  }
  .eroeffnung__satz { top: 82px; }
  .eroeffnung__name { flex-direction: row; justify-content: center; font-size: clamp(1.5rem, 6.7vw, 2.4rem); line-height: 1.05; column-gap: .26em; font-weight: 400; }
  .eroeffnung__fach { margin-top: 10px; }
}

/* Ankäufe als Aufklappblock: kein Grid auf <details> (Browser rendern das uneinheitlich) */
.ankaeufe { display: block; position: relative; }
.ankaeufe > summary { margin-bottom: 14px; padding-top: 0; }
.ankaeufe > ul { margin-left: 0; }
@media (min-width: 1081px) {
  .ankaeufe > summary { position: absolute; left: 0; top: clamp(24px, 2.8vw, 40px); width: 25%; margin: 0; padding-top: .6em; }
  .ankaeufe > ul { margin-left: calc(25% + var(--spalt) / 4); }
}

/* Einspaltig (Tablet, schmale Fenster): Lampe wächst mit dem Bild, daher Abstand zur Überschrift mitwachsen lassen */
@media (max-width: 1080px) {
  .werk-raum--zwei { row-gap: clamp(76px, calc(.13 * min(86vw, 70svh * .7) + 56px), 170px); }
}
