/* andrefritz.de · Probe „Aufzug“: drei Ebenen, die Kamera fährt durch Decke und Boden.
   Atelier (oben, hell) · KI mit dem Kugelauge (Mitte, Start) · Werkstatt/Backstage (unten, dunkel).
   Farben und Schrift aus alfred-tokens.css; Atelier und Werkstatt haben eigene Raumfarben, Kontrast geprüft. */

*, *::before, *::after { box-sizing: border-box; }
html { background: #000; scroll-snap-type: y mandatory; overscroll-behavior-y: none; }
body { margin: 0; color: var(--alfred-text); font: var(--alfred-gewicht-text) var(--alfred-gr-text)/var(--alfred-zeile-text) var(--alfred-schrift-text); }
a { color: inherit; }
:focus-visible { outline: var(--alfred-fokus) solid var(--alfred-akzent); outline-offset: 2px; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Scrollbahn: drei Haltepunkte, je eine Fensterhöhe ---------- */
.halt { height: 100vh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }
/* Letzter Haltepunkt so hoch wie das größte Fenster: sonst ist die Werkstatt am iPhone bei eingeklappter Adressleiste unerreichbar (André 02.12.2026) */
.halt:last-child { height: 100vh; height: 100lvh; }

/* ---------- Bühne: feststehendes Fenster, darin fährt die Welt ---------- */
.schacht { position: fixed; inset: 0; overflow: hidden; background: #0b0908; }
.welt { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.raum, .decke { position: absolute; left: 0; width: 100%; overflow: hidden; }
.raum { height: var(--h, 100vh); }
.decke { height: calc(var(--h, 100vh) * var(--decke, .8)); }
.raum[data-ebene="atelier"] { top: 0; }
.decke.d1 { top: var(--h, 100vh); }
.raum[data-ebene="ki"] { top: calc(var(--h, 100vh) * (1 + var(--decke, .8))); }
.decke.d2 { top: calc(var(--h, 100vh) * (2 + var(--decke, .8))); }
.raum[data-ebene="werkstatt"] { top: calc(var(--h, 100vh) * (2 + 2 * var(--decke, .8))); }
[data-tiefe] { will-change: transform; }

/* Kino: Breitwandbalken, Korn und Vignette werden während der Fahrt stärker (--fahrt 0..1) */
.kino { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.kino::before, .kino::after { content: ""; position: absolute; left: 0; right: 0; height: calc(var(--fahrt, 0) * 12vh); background: #000; }
.kino::before { top: 0; } .kino::after { bottom: 0; }
.korn { position: fixed; inset: -50%; pointer-events: none; z-index: 2; opacity: calc(.035 + var(--fahrt, 0) * .09);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>");
  animation: korn .5s steps(4) infinite; }
@keyframes korn { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0, calc(.35 + var(--fahrt, 0) * .45)) 100%); }

/* ---------- Stockwerkanzeige (Navigation) ---------- */
.anzeige { position: fixed; z-index: 5; top: calc(14px + var(--fahrt, 0) * 2vh); left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px; border-radius: var(--alfred-ecke); background: rgba(12,10,8,.72);
  border: 1px solid rgba(255,200,140,.30); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.anzeige a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--alfred-ecke-klein);
  text-decoration: none; color: #C2B29F; font-size: var(--alfred-gr-klein); letter-spacing: var(--alfred-sperrung-marke); text-transform: uppercase; }
.anzeige a b { font-family: var(--alfred-schrift-zahl); font-weight: 400; font-size: 16px; letter-spacing: 0; color: #A39280; min-width: 1.4em; text-align: center; }
.anzeige a[aria-current="true"] { color: #FFF4E6; background: rgba(255,178,62,.14); }
.anzeige a[aria-current="true"] b { color: #FFB23E; }
.anzeige a:hover { color: #FFF4E6; }

/* Ecke oben rechts: Ton, Vollbild, Lichtschalter (André 01.12.2026) */
.ecke { position: fixed; z-index: 6; top: 12px; right: 14px; display: flex; align-items: center; gap: 4px; }
.ecke .lichtschalter { position: static; transform: none; }
.eckknopf { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #A39280; cursor: pointer; border-radius: var(--alfred-ecke-klein); }
.eckknopf svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.eckknopf:hover, .eckknopf[aria-expanded="true"], .eckknopf[aria-pressed="true"] { color: #FFB23E; }
.eckknopf:focus-visible { outline: 2px solid #FFB23E; outline-offset: -2px; }
.eckknopf[hidden] { display: none; }
.eckknopf .stumm { display: none; }
/* Kleiner Equalizer: zeigt in der Werkstatt, dass Musik läuft, und schaltet sie mit einem Klick ab (André 01.12.2026) */
.musik-anzeige .eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.musik-anzeige .eq i { display: block; width: 3px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; transform: scaleY(.18); }
html[data-musik="an"] .musik-anzeige { color: #FFB23E; }
html[data-musik="an"] .musik-anzeige .eq i { animation: eq-takt 1.1s ease-in-out infinite alternate; }
html[data-musik="an"] .musik-anzeige .eq i:nth-child(1) { animation-duration: .82s; animation-delay: -.3s; }
html[data-musik="an"] .musik-anzeige .eq i:nth-child(2) { animation-duration: 1.23s; animation-delay: -.7s; }
html[data-musik="an"] .musik-anzeige .eq i:nth-child(3) { animation-duration: .64s; animation-delay: -.1s; }
html[data-musik="an"] .musik-anzeige .eq i:nth-child(4) { animation-duration: 1.02s; animation-delay: -.5s; }
@keyframes eq-takt { from { transform: scaleY(.22); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { html[data-musik="an"] .musik-anzeige .eq i { animation: none; transform: scaleY(.7); } }
html[data-ton="aus"] .eckknopf .welle { display: none; }
html[data-ton="aus"] .eckknopf .stumm { display: inline; }
.kontakt.ton-karte { position: fixed; z-index: 6; top: 64px; right: 14px; bottom: auto; width: min(300px, 92vw); transform-origin: 100% 0; }
.tonzeile { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 12px; min-height: 44px; }
.kontakt .tonschalter { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 10px; min-height: 44px; font-size: var(--alfred-gr-text); letter-spacing: 0; color: var(--alfred-text); cursor: pointer; }
.kontakt .tonschalter input { appearance: none; -webkit-appearance: none; position: relative; width: 34px; min-height: 0; height: 20px; padding: 0; border-radius: 10px; border: 1px solid var(--alfred-linie); background: rgba(255,255,255,.06); cursor: pointer; }
.kontakt .tonschalter input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #A39280; transition: transform .16s ease, background .16s ease; }
.kontakt .tonschalter input:checked { border-color: #FFB23E; background: rgba(255,178,62,.2); }
.kontakt .tonschalter input:checked::after { transform: translateX(14px); background: #FFB23E; }
.kontakt .tonzeile input[type="range"] { min-height: 44px; padding: 0; border: 0; background: none; accent-color: #FFB23E; }
.kontakt .tonzeile input:disabled { opacity: .35; cursor: default; }

/* ---------- Gemeinsame Schrift in den Räumen ---------- */
.kopfblock { position: absolute; left: 7%; top: 16%; z-index: 1; }
.titel { margin: 0; font: var(--alfred-gewicht-kopf) clamp(56px, 9vw, 132px)/var(--alfred-zeile-kopf) var(--alfred-schrift-kopf); letter-spacing: var(--alfred-sperrung-kopf); }
.unterzeile { margin: 12px 0 0; font-size: var(--alfred-gr-gross); font-weight: 300; max-width: 34ch; }
.platzhalter { font-family: var(--alfred-schrift-zahl); font-size: var(--alfred-gr-klein); letter-spacing: .02em; }

/* =========================== ATELIER (oben, Tageslicht) =========================== */
.raum[data-ebene="atelier"] { --wand: #EFE8DD; --wand-2: #E2D7C7; --tinte: #221C16; --tinte-2: #5D5145;
  background: linear-gradient(180deg, var(--wand) 0%, var(--wand-2) 100%); color: var(--tinte); }
.atelier-licht { position: absolute; inset: -10% -10% 0 30%;
  background: repeating-linear-gradient(115deg, rgba(255,250,236,.0) 0 7%, rgba(255,250,236,.55) 7% 15%, rgba(255,250,236,0) 15% 22%);
  filter: blur(18px); mix-blend-mode: soft-light; }
.atelier-fenster { position: absolute; right: 6%; top: 10%; width: 22%; height: 52%; border: 10px solid #CFC2B0; background:
  linear-gradient(#CFC2B0, #CFC2B0) 50% 0/6px 100% no-repeat, linear-gradient(#CFC2B0, #CFC2B0) 0 50%/100% 6px no-repeat,
  linear-gradient(180deg, #FDFBF5, #F1EADD); box-shadow: inset 0 0 40px rgba(255,255,255,.8); }
.atelier .titel { color: var(--tinte); }
.atelier .unterzeile { color: var(--tinte-2); }
.blaetter { position: absolute; left: 7%; right: 34%; bottom: 14%; display: flex; gap: 3%; align-items: flex-end; }
.blatt { position: relative; flex: 1; aspect-ratio: 3/4; max-height: 40vh; background: #FBF8F1; border: 1px solid #D6CABB;
  box-shadow: 0 14px 30px rgba(60,40,20,.16); display: grid; place-items: center; padding: 12px; text-align: center; color: var(--tinte-2); }
.blatt:nth-child(1) { transform: rotate(-2deg); } .blatt:nth-child(2) { transform: rotate(1.2deg) translateY(-4vh); } .blatt:nth-child(3) { transform: rotate(-.6deg); }
.blatt::before { content: ""; position: absolute; top: -8px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #9A6E36; box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.lampe-atelier { position: absolute; left: 52%; top: 0; width: 2px; height: 22vh; background: #5D5145; }
.lampe-atelier::after { content: ""; position: absolute; left: -36px; bottom: -30px; width: 74px; height: 34px; border-radius: 74px 74px 6px 6px; background: #2A231C; }

/* =========================== KI (Mitte, Alfreds Studio) =========================== */
.raum[data-ebene="ki"] { background: var(--alfred-grund); }
/* HERKUNFT: Bühnenregeln der Figur, unverändert aus Alfred-CI/werkstatt/zentrale.quelle.html Z. 79–84 (01.12.2026).
   Ohne sie liegt das Ersatzbild über dem 3D-Auge. */
.richtung{position:relative;overflow:hidden;background:var(--k-grund);color:var(--k-text)}
.richtung .r-buehne{position:relative;aspect-ratio:21/9;max-height:62vh;width:100%;overflow:hidden;touch-action:pan-y}
.richtung .r-buehne>canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.richtung .r-ersatz{position:absolute;inset:0;display:none}
.richtung.ohne-3d .r-buehne>canvas{display:none}
.richtung.ohne-3d .r-ersatz{display:block}
.raum[data-ebene="ki"] .richtung { position: absolute; inset: 0; }
.raum[data-ebene="ki"] .richtung .r-buehne { aspect-ratio: auto; max-height: none; height: 100%; }
.raum[data-ebene="ki"] .richtung .r-info { display: none !important; }
.ki-text { pointer-events: none; }
/* Fachbereiche als Titel der Tafeln: Maße in Tausendstel Tafel-Einheiten, die Abbildung auf die Tafel setzt probe-aufzug.js.
   Farbe und Leuchten wie der Akzent der Tafeln (Figur: akz = 1.0, 0.76, 0.46), Mischung „screen“ wie Licht. */
.fach { position: absolute; left: 0; top: 0; z-index: 1; margin: 0; pointer-events: none; opacity: 0; transform-origin: 0 0; white-space: nowrap;
  mix-blend-mode: screen; }
.fach span { display: block; transform: translateY(-58%); font: 300 92px/1 var(--alfred-schrift-kopf); letter-spacing: .01em;
  color: #FFC27A; text-shadow: 0 0 18px rgba(255,170,80,.85), 0 0 60px rgba(255,150,60,.45); }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Demo-Knopf ruhig wie „Kontakt“ (André 02.12.2026: „poppt noch so raus“, passt bei Licht farblich nicht): Rand und Schrift aus den
   Farbwerten des Themas statt festem Bernstein; die Auszeichnung kommt erst beim Überfahren. Vorher: Rand #FFB23E, Grund rgba(255,178,62,.12). */
.statusband .start { min-height: 44px; padding: 0 18px; border: 1px solid var(--alfred-glas-kante); border-radius: var(--alfred-ecke-klein);
  background: none; color: var(--alfred-text-2); font: inherit; letter-spacing: .06em; cursor: pointer; transition: border-color .2s, color .2s; }
.statusband .start:hover, .statusband .start:focus-visible { border-color: var(--alfred-akzent); color: var(--alfred-text); }
.statusband .start[hidden] { display: inline-block; visibility: hidden; }
.raum.ki .r-buehne { cursor: pointer; }
/* Name oben links, klein wie Alfreds Schriftzug: die Mitte gehört dem Auge (André 01.12.2026) */
.ki-text .titel { color: var(--alfred-text); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.ki-text .unterzeile { color: var(--alfred-text-2); }
.statusband { position: absolute; left: 7%; right: 7%; bottom: 7%; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 16px 22px; border-radius: var(--alfred-ecke-tafel); background: var(--alfred-glas); border: 1px solid var(--alfred-glas-kante);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.statusband .lage { display: flex; align-items: center; gap: 24px; min-width: 0; }
.statusband .zustand { margin: 0; display: flex; align-items: baseline; gap: 22px; }
.statusband .wort { font: 200 34px/1 var(--alfred-schrift-kopf); letter-spacing: -.02em; color: var(--alfred-text); min-width: 4.6em; }
.statusband .bedeutung { font-size: var(--alfred-gr-klein); letter-spacing: var(--alfred-sperrung-marke); text-transform: uppercase; color: var(--alfred-text-2); white-space: nowrap; }
/* Fortschrittsstriche nur in der Demo, dann kräftiger (André 01.12.2026) */
.statusband ol { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; visibility: hidden; opacity: 0;
  transition: opacity var(--alfred-zeit-ruhig) var(--alfred-kurve), visibility 0s linear var(--alfred-zeit-ruhig); }
html[data-demo="an"] .statusband ol { visibility: visible; opacity: 1; transition: opacity var(--alfred-zeit-ruhig) var(--alfred-kurve); }
.statusband li { width: 32px; height: 4px; border-radius: 2px; background: rgba(255,244,230,.28); transition: background var(--alfred-zeit-ruhig) var(--alfred-kurve), box-shadow var(--alfred-zeit-ruhig) var(--alfred-kurve); }
.statusband li.an { background: #FFB23E; box-shadow: 0 0 10px rgba(255,178,62,.6); }
.statusband .start { justify-self: center; }
.statusband .kontakt-knopf { justify-self: end; min-height: 44px; padding: 0 18px; border: 1px solid var(--alfred-glas-kante); border-radius: var(--alfred-ecke-klein);
  background: transparent; color: var(--alfred-text); font: inherit; letter-spacing: .06em; cursor: pointer; }
.statusband .kontakt-knopf:hover, .statusband .kontakt-knopf:focus-visible, .statusband .kontakt-knopf[aria-expanded="true"] { border-color: #FFB23E; color: #FFF4E6; }

/* Kontakt: klappt rechts über der Leiste auf */
.kontakt { position: absolute; right: 7%; bottom: calc(7% + 92px); z-index: 3; width: min(420px, 86vw); display: grid; gap: 12px;
  padding: 20px 22px 18px; border-radius: var(--alfred-ecke-tafel); background: rgba(24, 17, 11, .78); border: 1px solid var(--alfred-glas-kante);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0,0,0,.45);
  transform-origin: 100% 100%; animation: aufklappen .32s var(--alfred-kurve); color: var(--alfred-text); }
.kontakt[hidden] { display: none; }
/* Vita: Knopf links in der Leiste, Klappe mit Zeitstrahl darüber (André 02.12.2026). Baut auf der Kontakt-Klappe auf. */
.statusband .vita-knopf { min-height: 44px; padding: 0 18px; border: 1px solid var(--alfred-glas-kante); border-radius: var(--alfred-ecke-klein);
  background: none; color: var(--alfred-text); font: inherit; letter-spacing: .06em; cursor: pointer; transition: border-color .2s; }
.statusband .vita-knopf:hover, .statusband .vita-knopf:focus-visible, .statusband .vita-knopf[aria-expanded="true"] { border-color: var(--alfred-akzent); }
.kontakt.vita { left: 7%; right: auto; width: min(660px, 86vw); max-height: min(64vh, 620px); overflow: auto; transform-origin: 0 100%; gap: 10px; }
.vita-satz { margin: 0 0 6px; font-size: var(--alfred-gr-klein); letter-spacing: .06em; color: #C2B29F; }
.zeitstrahl { position: relative; margin: 0; padding: 4px 0 4px 0; list-style: none; display: grid; gap: 18px; }
.zeitstrahl::before { content: ""; position: absolute; left: 124px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(to bottom, rgba(255,200,140,.15), rgba(255,200,140,.5) 12%, rgba(255,200,140,.5) 82%, #FFB23E); }
.zeitstrahl li { position: relative; display: grid; grid-template-columns: 108px 1fr; column-gap: 34px; row-gap: 4px; align-items: baseline; }
.zeitstrahl li::before { content: ""; position: absolute; left: 121px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #18110B; border: 1px solid rgba(255,200,140,.75); }
.zeitstrahl .zeit { grid-row: 1 / span 2; text-align: right; font: 200 19px/1.1 var(--alfred-schrift-kopf); letter-spacing: -.01em; color: #FFF4E6; white-space: nowrap; }
.zeitstrahl .ort { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #A39280; }
.zeitstrahl .programme { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 15px; line-height: 1.45; color: #FFF4E6; }
.zeitstrahl .programme i { font-style: normal; white-space: nowrap; }
.zeitstrahl .programme i:not(:last-child)::after { content: "·"; margin: 0 .55em; color: #846E58; }   /* Trennpunkt hinten, damit keine Zeile mit einem Punkt beginnt */
.kontakt.vita h2 { color: #FFF4E6; } .kontakt.vita .zu { color: #C2B29F; }   /* die Klappe ist in beiden Lichtstimmungen dunkel */
.zeitstrahl li.heute::before { background: #FFB23E; border-color: #FFB23E; box-shadow: 0 0 12px rgba(255,178,62,.7); }
.zeitstrahl li.heute .zeit, .zeitstrahl li.heute .programme { color: #FFC27A; }
/* Vita, bewegte Fassung (js/vita.js): Systemstart in Schreibmaschinenschrift, darunter die Leiterbahn. Die Liste bleibt für Vorleseprogramme. */
.vita.mit-start .zeitstrahl, .vita.mit-start .vita-satz { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vita-start { display: none; margin: 2px 0 0; min-height: 17.5em; font: 12.5px/1.8 ui-monospace, "SF Mono", Menlo, monospace; color: #FFF4E6; white-space: pre-wrap; }
.vita.mit-start .vita-start { display: block; }
.vita-start i { font-style: normal; color: #FFB23E; } .vita-start u { text-decoration: none; color: #8C7B69; }
.vita-start .cursor { display: inline-block; width: 8px; height: 1em; vertical-align: -2px; background: #FFB23E; animation: vita-cursor 1s steps(2) infinite; }
@keyframes vita-cursor { 50% { opacity: 0; } }
.vita-bahn { display: none; width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.vita.mit-start .vita-bahn { display: block; }
.vita-bahn path { fill: none; stroke-width: 1.5; } .vita-bahn .spur { stroke: rgba(255,200,140,.16); }
.vita-bahn .strom { stroke: #FFB23E; transition: stroke-dashoffset .5s cubic-bezier(.5,0,.2,1); filter: drop-shadow(0 0 4px rgba(255,178,62,.6)); }
.vita-bahn .knoten circle { fill: #18110B; stroke: rgba(255,200,140,.3); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.vita-bahn .knoten text { fill: #8C7B69; font: 9.5px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .12em; transition: fill .3s; }
.vita-bahn .knoten.an circle { stroke: #FFB23E; } .vita-bahn .knoten.an text { fill: #FFF4E6; }
.vita-bahn .knoten.heute.an circle { fill: #FFB23E; } .vita-bahn .knoten.heute.an text { fill: #FFC27A; }
@media (prefers-reduced-motion: reduce) { .vita-start .cursor { animation: none; } .vita-bahn .strom { transition: none; } }
@media (max-width: 560px) { .zeitstrahl::before { left: 98px; } .zeitstrahl li { grid-template-columns: 86px 1fr; column-gap: 26px; } .zeitstrahl li::before { left: 95px; } .zeitstrahl .zeit { font-size: 15px; } }
@keyframes aufklappen { from { opacity: 0; transform: translateY(12px) scaleY(.92); } to { opacity: 1; transform: none; } }
.kontakt-kopf { display: flex; justify-content: space-between; align-items: center; }
.kontakt h2 { margin: 0; font: 200 28px/1 var(--alfred-schrift-kopf); letter-spacing: -.01em; }
.kontakt .zu { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--alfred-text-2); font-size: 26px; cursor: pointer; }
.kontakt .zu:hover { color: var(--alfred-text); }
.kontakt label { display: grid; gap: 6px; font-size: var(--alfred-gr-klein); letter-spacing: .06em; color: var(--alfred-text-2); }
.kontakt input, .kontakt textarea { min-height: 44px; padding: 10px 12px; border: 1px solid var(--alfred-linie); border-radius: var(--alfred-ecke-klein);
  background: rgba(0,0,0,.28); color: var(--alfred-text); font: var(--alfred-gewicht-text) 16px/1.4 var(--alfred-schrift-text); resize: vertical; }
.kontakt input:focus, .kontakt textarea:focus { outline: none; border-color: #FFB23E; box-shadow: 0 0 0 2px rgba(255,178,62,.25); }
.kontakt-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kontakt-meldung { margin: 0; font-size: var(--alfred-gr-klein); color: var(--alfred-text-2); }
.kontakt-meldung:empty { display: none; }
.rechtliches { margin: 0; display: flex; gap: 4px; }
.rechtliches a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: var(--alfred-gr-klein); letter-spacing: .06em;
  color: var(--alfred-text-2); text-decoration: none; }
.rechtliches a:first-child { padding-left: 0; }
.rechtliches a:hover, .rechtliches a:focus-visible { color: #FFF4E6; text-decoration: underline; text-underline-offset: 3px; }
.kontakt .senden { min-height: 44px; padding: 0 22px; border: 1px solid #FFB23E; border-radius: var(--alfred-ecke-klein); background: rgba(255,178,62,.16);
  color: #FFF4E6; font: inherit; letter-spacing: .06em; cursor: pointer; }
.kontakt .senden:hover { background: rgba(255,178,62,.3); }

/* =========================== KELLER (unten, Backstage) =========================== */
.raum[data-ebene="werkstatt"] { color: #F4E9DA;
  background:
    radial-gradient(ellipse 60% 55% at 50% 18%, rgba(255,170,80,.22), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.6)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='64'><filter id='r'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .1  0 0 0 0 .06  0 0 0 .55 0'/></filter><rect width='120' height='64' fill='%23251611'/><g fill='%235e3727'><rect x='2' y='2' width='56' height='28' rx='1.5'/><rect x='62' y='2' width='56' height='28' rx='1.5' fill='%23683d2b'/><rect x='-28' y='34' width='56' height='28' rx='1.5' fill='%23553023'/><rect x='32' y='34' width='56' height='28' rx='1.5'/><rect x='92' y='34' width='56' height='28' rx='1.5' fill='%23553023'/></g><rect width='120' height='64' filter='url(%23r)'/></svg>") 0 0/120px 64px; }
.werkstatt-dunkel { position: absolute; inset: 0; background: rgba(8,6,5,.62); transition: opacity 1.2s ease; }
html[data-licht-werkstatt="an"] .werkstatt-dunkel { opacity: .18; }
.traeger { position: absolute; left: 0; right: 0; top: 0; height: 34px; background: linear-gradient(#3b3631, #1d1a17 60%, #2c2824);
  box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.traeger::after { content: ""; position: absolute; inset: 12px 0 auto; height: 3px;
  background: repeating-linear-gradient(90deg, #5c544b 0 6px, transparent 6px 90px); }
.birne { position: absolute; top: 34px; width: 2px; background: #1a1613; }
.birne::after { content: ""; position: absolute; left: -9px; bottom: -22px; width: 20px; height: 26px; border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 40%, #fff6dc, #ffbf5e 45%, #a35a14 100%); box-shadow: 0 0 0 rgba(255,180,90,0); opacity: .35; }
html[data-licht-werkstatt="an"] .birne::after { opacity: 1; box-shadow: 0 0 40px 14px rgba(255,180,90,.45), 0 0 120px 40px rgba(255,150,60,.18); }
html[data-licht-werkstatt="an"] .birne.flackert::after { animation: flackern 1.1s steps(1) 1; }
@keyframes flackern { 0% { opacity: .3; } 12% { opacity: 1; } 20% { opacity: .4; } 34% { opacity: 1; } 42% { opacity: .55; } 55%, 100% { opacity: 1; } }
.werkstatt .titel { color: #FFF4E6; }
.werkstatt .unterzeile { color: #D9C8B2; }
.tuer { position: absolute; right: 12%; bottom: 0; width: min(26vw, 340px); height: 62%; border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #2a2724, #46413b 50%, #2a2724); border: 2px solid #15120f; box-shadow: 0 0 60px rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.tuer .schild { font-family: var(--alfred-schrift-zahl); font-size: 16px; letter-spacing: .3em; text-transform: uppercase; color: #FFB23E;
  border: 1px solid rgba(255,178,62,.5); padding: 6px 12px; }
.tuer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: var(--alfred-ecke);
  background: #FFB23E; color: #14110E; text-decoration: none; font-weight: 600; }
.boden-werkstatt { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: linear-gradient(#2a2420, #15110e); }

/* =========================== DECKEN (dazwischen) =========================== */
.decke { background:
  radial-gradient(circle, #1c1a18 0 5px, #5b4a3a 5px 7px, transparent 7.5px) 0 0/90px 100%,
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .48  0 0 0 0 .45  0 0 0 .5 0'/></filter><rect width='300' height='300' filter='url(%23b)'/></svg>") 0 0/300px 300px,
  linear-gradient(180deg, #5d5852, #45413c 40%, #393530); background-repeat: repeat-x, repeat, no-repeat; background-position: 0 50%, 0 0, 0 0; }
.decke::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 18%, transparent 82%, rgba(0,0,0,.6)); }
/* Kabinenlicht: fährt mit der Kamera, streift die Decke warm an */
.kabinenlicht { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: var(--fahrt, 0);
  background: radial-gradient(ellipse 70% 40% at 50% 50%, rgba(255,190,120,.22), transparent 70%); mix-blend-mode: screen; }
.decke .oberseite, .decke .unterseite { position: absolute; left: 0; right: 0; }
.d1 .oberseite { top: 0; height: 9%; background: repeating-linear-gradient(90deg, #8a6a4a 0 180px, #7a5c3f 180px 182px, #94734f 182px 360px, #6f5338 360px 362px); box-shadow: inset 0 -6px 12px rgba(0,0,0,.35); }
.d2 .oberseite { top: 0; height: 7%; background: linear-gradient(#24201b, #14110e); box-shadow: inset 0 -6px 12px rgba(0,0,0,.4); }
.decke .unterseite { bottom: 0; height: 6%; background: linear-gradient(#5f5953, #4a4540); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.d2 .unterseite { background: linear-gradient(#3b3631, #2a2622); }
.stahl { position: absolute; left: -5%; right: -5%; height: 9%; top: 44%;
  background: linear-gradient(#6b6158, #3d3630 22%, #2a2520 50%, #3d3630 78%, #6b6158); box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.stahl::after { content: ""; position: absolute; inset: 22% 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 8px, transparent 8px 140px); }
.rohr { position: absolute; top: 20%; left: -5%; right: -5%; height: 26px; border-radius: 13px;
  background: linear-gradient(#8f8a82, #4b4740 55%, #2c2925); }
.rohr.r2 { top: 70%; height: 16px; background: linear-gradient(#a3703b, #6b4520 55%, #3d260f); }
.kabel { position: absolute; top: 26%; left: 0; right: 0; height: 40%; background:
  repeating-linear-gradient(180deg, transparent 0 18px, rgba(20,16,12,.8) 18px 21px, transparent 21px 34px); opacity: .6; }
.etage-schild { position: absolute; left: 7%; top: 30%; font-family: var(--alfred-schrift-zahl); font-size: clamp(64px, 12vw, 180px);
  color: rgba(255,244,230,.12); letter-spacing: -.02em; line-height: 1; }

/* ---------- Bewegung reduzieren: keine Fahrt, kein Korn, kein Flackern ---------- */
/* ---------- Hinweis: nach oben / nach unten scrollen ---------- */
.hinweis { position: fixed; z-index: 5; left: 50%; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 44px; min-height: 44px; padding: 4px 14px; border: 0; background: none; cursor: pointer;
  font: 400 14px/1.2 var(--alfred-schrift-text); letter-spacing: .14em; text-transform: uppercase; color: #CDBBA6;
  opacity: calc(.85 - var(--fahrt, 0) * 2); transition: color .2s; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hinweis[hidden] { display: none; }
html[data-demo="an"] .hinweis { opacity: 0; pointer-events: none; transition: opacity .4s; }
.hinweis.hoch { top: 70px; }
.hinweis.runter { bottom: 10px; }
.hinweis:hover, .hinweis:focus-visible { color: #FFF4E6; opacity: 1; }
.hinweis:focus-visible { outline: 2px solid #FFB23E; outline-offset: 2px; border-radius: 4px; }
.hinweis .pfeil { width: 10px; height: 10px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; }
.hinweis.hoch .pfeil { transform: rotate(45deg); margin-top: 6px; animation: wink-hoch 2.4s ease-in-out infinite; }
.hinweis.runter .pfeil { transform: rotate(225deg); margin-bottom: 6px; animation: wink-runter 2.4s ease-in-out infinite; }
@keyframes wink-hoch { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -5px; } }
@keyframes wink-runter { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 5px; } }
html[data-ebene="atelier"] .hinweis { color: #3A2E22; text-shadow: 0 1px 6px rgba(255,248,236,.8); }
html[data-ebene="atelier"] .hinweis:hover { color: #000; }

@media (prefers-reduced-motion: reduce) {
  .hinweis .pfeil { animation: none; }
  .korn { animation: none; }
  .welt { transition: opacity .01s; }
  html[data-licht-werkstatt="an"] .birne.flackert::after { animation: none; }
  .statusband li, .werkstatt-dunkel { transition: none; }
}

/* ---------- Schmale Fenster: Probe nur für den Rechner gestaltet, hier nur, dass nichts überläuft ---------- */
@media (max-width: 860px) {
  .anzeige a { padding: 0 8px; letter-spacing: .06em; }
  .anzeige a span { display: none; }
  .ecke { top: 64px; right: 6px; }   /* am Handy unter der Stockwerkanzeige */
  .kontakt.ton-karte { top: 114px; right: 4%; }
  .atelier-fenster { display: none; }
  .blaetter { right: 7%; bottom: 10%; }
  .statusband { grid-template-columns: 1fr 1fr; gap: 12px; bottom: 76px; padding: 14px 16px; }
  .statusband .lage { grid-column: 1 / -1; flex-wrap: wrap; gap: 10px 18px; }
  .statusband .start { justify-self: start; }
  .kontakt { right: 4%; left: 4%; width: auto; bottom: 70px; }  /* frei über Lichtschalter und Scroll-Hinweis */
  .kopfblock.einheit { top: 118px; }
  .tuer { right: 7%; width: 60vw; height: 46%; }
}

/* =========================== Räume aus Blender (01.12.2026) =========================== */
/* Das Bild ersetzt die gezeichnete Kulisse; etwas größer als der Raum, damit die Tiefenbewegung keine Ränder zeigt */
.raumbild { position: absolute; inset: -4%; background: center / cover no-repeat; }
.raum.atelier .raumbild { background-image: url("../bilder/atelier.jpg"); }
.raum.werkstatt .raumbild { background-image: url("../bilder/werkstatt.jpg"); }
.raum.atelier, .raum.werkstatt { background: #1a1512; }
/* Tiefenwirkung: die berechnete Fläche liegt deckungsgleich über dem flachen Bild (js/raumtiefe-bild.js) */
.raumbild canvas.raumtiefe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Werkstatt: das Bild ist schon Abendlicht, beim Ankommen geht nur noch ein Rest Dunkel weg */
.raum.werkstatt .werkstatt-dunkel { background: rgba(8,6,5,.45); }
html[data-licht-werkstatt="an"] .raum.werkstatt .werkstatt-dunkel { opacity: 0; }
/* Atelier: Schrift auf hellem Glasraum lesbar halten */
.raum.atelier .kopfblock { text-shadow: 0 1px 18px rgba(255,250,240,.9); }
/* Platzhalter-Blätter vorerst aus: sie verdecken den Raum (01.12.2026, bis die Werkserien feststehen) */
.raum.atelier .blaetter { display: none; }
/* Eingang „Anmelden“ sitzt auf der echten Tür im Werkstatt-Bild (Tür rechts, etwa 71 % / 42 % der Fläche bei 16:10) */
/* Kontaktpunkt: sitzt auf einem Ort im Raum (hier die Tür) und wandert mit der Tiefe mit; js/raumtiefe-bild.js setzt left/top */
.raumpunkt { position: absolute; z-index: 1; left: 72%; top: 40%; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 160px; --kipp: -58deg; }   /* liegt perspektivisch auf der Türfläche der rechten Wand */
/* --lage (freiwillig): genaue Lage des Kreises auf einer schrägen Fläche, aus der Kamera errechnet (Display des MacBooks); sonst gilt --kipp */
.raumpunkt span { position: absolute; inset: 4px; transform: var(--lage, rotateY(var(--kipp))); transition: transform .25s var(--alfred-kurve); }
.raumpunkt span::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #D9BC92; box-shadow: 0 0 0 2px rgba(20,17,14,.4), 0 0 10px rgba(217,188,146,.35);   /* entsättigt (André 02.12.2026: „poppen ganz schön raus“), vorher #FFB23E mit kräftigem Schein */
  transition: background .2s, box-shadow .2s; }
.raumpunkt span::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(217,188,146,.6); animation: raumpunkt 2.4s ease-out infinite; }
.raumpunkt:hover span, .raumpunkt:focus-visible span { transform: var(--lage, rotateY(var(--kipp))) scale(1.35); }   /* Rollover: wird größer und heller, öffnet aber nichts */
.raumpunkt:hover span::before, .raumpunkt:focus-visible span::before, .raumpunkt[aria-expanded="true"] span::before { background: #FFF4E6; box-shadow: 0 0 0 2px rgba(20,17,14,.55), 0 0 26px rgba(255,214,150,.95); }
.raumpunkt:focus-visible { outline: 2px solid #FFB23E; outline-offset: 2px; border-radius: 50%; }
@keyframes raumpunkt { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .raumpunkt span::after { animation: none; } }
.raumpunkt[hidden] { display: none; }
.werkstatt-dunkel { pointer-events: none; }
/* Karte zum Backstage: klappt wie das Kontaktformular auf, neben der Tür */
.kontakt.tuer-karte { right: 7%; bottom: auto; top: 52%; width: min(280px, 86vw); transform-origin: 100% 0; }
.kontakt.tuer-karte .senden { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #FFF4E6; }
/* Kacheln zu den Kontaktpunkten (André 02.12.2026: „schönes Overlay … wie so eine Kachel in der Lobby“, „Frozen Glas“): Milchglas, mittig im Raum */
.kachel { position: absolute; z-index: 4; inset: 0; margin: auto; width: min(440px, 88vw); height: fit-content; display: grid; gap: 10px; justify-items: start;
  padding: 30px 32px 28px; border-radius: 20px; border: 1px solid rgba(255,236,210,.28); color: #FFF4E6;
  background: linear-gradient(155deg, rgba(255,244,230,.16), rgba(255,244,230,.05) 46%, rgba(20,14,9,.30)), rgba(24,17,11,.42);
  backdrop-filter: blur(26px) saturate(1.25); -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.22); animation: kachel .36s var(--alfred-kurve); }
.kachel[hidden] { display: none; }
@keyframes kachel { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kachel { animation: none; } }
.kachel .zu { position: absolute; top: 8px; right: 10px; min-width: 44px; min-height: 44px; border: 0; background: none; color: #C2B29F; font-size: 26px; cursor: pointer; }
.kachel .zu:hover, .kachel .zu:focus-visible { color: #FFF4E6; }
.kachel-art { margin: 0; font-size: var(--alfred-gr-klein); letter-spacing: .22em; text-transform: uppercase; color: #FFB23E; }
.kachel h2 { margin: 0; padding-right: 30px; font: 200 32px/1.1 var(--alfred-schrift-kopf); letter-spacing: -.01em; }
.kachel h2.gross { font-size: clamp(64px, 9vw, 104px); line-height: .95; letter-spacing: .04em; }
.kachel-text { margin: 0 0 8px; font-size: var(--alfred-gr-text); line-height: 1.5; color: #E6D8C6; }
.kachel .senden { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border: 1px solid #FFB23E; border-radius: var(--alfred-ecke-klein);
  background: rgba(255,178,62,.18); color: #FFF4E6; font: inherit; letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: background .2s; }
.kachel .senden:hover, .kachel .senden:focus-visible { background: rgba(255,178,62,.36); }
.kachel-zeichen { position: relative; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; border: 1.5px solid rgba(255,178,62,.75); box-shadow: 0 0 24px rgba(255,178,62,.25); }
.kachel-zeichen.abspielen::before { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #FFB23E; }
.kachel-zeichen.zuzweit::before, .kachel-zeichen.zuzweit::after { content: ""; position: absolute; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: #FFB23E; }
.kachel-zeichen.zuzweit::before { left: 12px; } .kachel-zeichen.zuzweit::after { right: 12px; opacity: .55; }
/* Punkt am Fernseher: erst da, wenn der 3D-Raum steht (im flachen Bild läuft kein Film) */
.raumpunkt[data-fernseher]:not([data-bereit]) { display: none; }
/* Fernseher läuft: der Punkt leuchtet ruhig, ohne Puls */
.raumpunkt[aria-pressed="true"] span::before { background: #FFF4E6; box-shadow: 0 0 0 2px rgba(20,17,14,.55), 0 0 20px rgba(255,214,150,.8); }
.raumpunkt[aria-pressed="true"] span::after { animation: none; opacity: 0; }
/* Bauchbinde: Titel und Unterzeile unten links im dunklen Freiraum, mit eigenem Grund, damit sie bei jedem Licht lesbar bleibt */
.kopfblock.bauchbinde { top: auto; bottom: 8%; left: 0; padding: 16px 30px 18px 7%; border-left: 0;
  background: linear-gradient(90deg, rgba(12,9,7,.78), rgba(12,9,7,.62) 70%, rgba(12,9,7,0)); padding-right: 90px;
  box-shadow: inset 3px 0 0 #FFB23E; }
.bauchbinde .titel { font-size: clamp(34px, 4.4vw, 64px); line-height: 1; letter-spacing: .1945em; margin-right: -.1945em; white-space: nowrap; }   /* gesperrt wie die anderen Titel (André 01.12.2026: „Schriftschnitt zu eng“) */
.bauchbinde .unterzeile { margin-top: 6px; font-size: var(--alfred-gr-text); }
@media (max-width: 860px) {
  .kontakt.tuer-karte { right: 4%; left: 4%; width: auto; top: auto; bottom: 30%; }
  .kopfblock.bauchbinde { bottom: 12%; }
}
/* Zweite Lichtsituation (Lichtschalter): Deckenlicht an; flaches Bild für Geräte ohne Tiefenwirkung */
html[data-theme="hell"] .raum.werkstatt .raumbild { background-image: url("../bilder/werkstatt-hell.jpg"); }
html[data-theme="hell"] .raum.werkstatt .werkstatt-dunkel { opacity: 0; }
/* Werkstatt: Titel vor den hellen Wandstrahlern lesbar halten */
.raum.werkstatt .kopfblock { text-shadow: 0 2px 22px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6); }

/* Schrift der Räume kommt mit dem zweiten Klang des Woosh ins Bild (André 01.12.2026); js/probe-aufzug.js setzt data-typo */
/* Gestaffelt und weich (André 02.12.2026: „kommt so blockig rein … erst die Headline, dann der Text darunter. Edel, easy eased“):
   Der Titel hebt sich aus leichter Unschärfe an seinen Platz, die Unterzeile folgt knapp eine halbe Sekunde später. Beides bremst
   lang aus. Weg geht die Schrift schnell und gemeinsam. Vorher kamen Titel und Unterzeile als ein Block von links. */
.raum .kopfblock > * { transition: opacity 1.1s cubic-bezier(.22, 1, .36, 1), transform 1.4s cubic-bezier(.22, 1, .36, 1), filter 1s cubic-bezier(.22, 1, .36, 1); }
.raum .kopfblock > .titel { transition-delay: .1s; }
.raum .kopfblock > .unterzeile { transition-delay: .55s; }
.raum .kopfblock.bauchbinde { transition: opacity .5s ease, clip-path .9s cubic-bezier(.22, 1, .36, 1); clip-path: inset(0 0 0 0); }
.raum .kopfblock.bauchbinde > .titel { transition-delay: .3s; }
.raum .kopfblock.bauchbinde > .unterzeile { transition-delay: .75s; }
html[data-typo="weg"] .raum .kopfblock > * { opacity: 0; transform: translateY(16px); filter: blur(7px); transition-duration: .15s; transition-delay: 0s; }
html[data-typo="weg"] .raum .kopfblock > .unterzeile { transform: translateY(9px); filter: blur(4px); }
html[data-typo="weg"] .raum .kopfblock.bauchbinde { opacity: 0; clip-path: inset(0 100% 0 0); transition-duration: .15s; }
@media (prefers-reduced-motion: reduce) { .raum .kopfblock > *, .raum .kopfblock.bauchbinde { transition-duration: .01s; transition-delay: 0s; } }

/* Atelier: Lichtschalter aus = Nacht (Grundzustand), an = Tag (André 01.12.2026) */
html[data-theme="hell"] .raum.atelier .raumbild { background-image: url("../bilder/atelier-hell.jpg"); }
/* Atelier: Titel oben links auf der ruhigen Deckenfläche; nachts helle Schrift, am Tag dunkle */
.kopfblock.decke-text { top: 5%; left: 5%; }
.decke-text .titel { font-size: clamp(44px, 6.2vw, 96px); line-height: 1; }
.decke-text .unterzeile { margin-top: 8px; }
.raum.atelier .kopfblock.decke-text { text-shadow: 0 2px 20px rgba(0,0,0,.55); }
.raum.atelier .decke-text .titel { color: #FFF4E6; }
.raum.atelier .decke-text .unterzeile { color: #D9C8B2; }
html[data-theme="hell"] .raum.atelier .kopfblock.decke-text { text-shadow: 0 1px 18px rgba(255,250,240,.75); }
html[data-theme="hell"] .raum.atelier .decke-text .titel { color: #2A211A; }
html[data-theme="hell"] .raum.atelier .decke-text .unterzeile { color: #4A3D31; }

/* Einheitlicher Titelblock für Atelier und Namen (André 01.12.2026: „die Typo ist nicht einheitlich“). Die Werkstatt behält ihre Bauchbinde unten
   und bekommt nur dieselbe Sperrung (seine Korrektur: „der stand der typo bei werkstatt war ok, nur der schriftschnitt war zu eng“).
   Titel klein und gesperrt oben links, Unterzeile genau so breit wie der Titel. Beide Größen hängen an einer Grundgröße,
   damit die Breiten bei jeder Fensterbreite gleich bleiben. Die Sperrung der Unterzeile ist je Stockwerk ausgemessen. */
.kopfblock.einheit { top: 18px; left: 7%; bottom: auto; padding: 0; background: none; border: 0; font-size: clamp(36px, 3.2vw, 46px); }
.einheit .titel { font-size: 1em; line-height: 1.05; letter-spacing: .1945em; margin-right: -.1945em; white-space: nowrap; }
.einheit .unterzeile { margin-top: .22em; font-size: .348em; max-width: none; white-space: nowrap; letter-spacing: var(--unter-sperrung, 0em); margin-right: calc(-1 * var(--unter-sperrung, 0em)); }
@media (max-width: 860px) { .kopfblock.einheit { top: 118px; } }   /* am Handy unter Stockwerkanzeige und Ecke */
.raum.atelier .einheit { --unter-sperrung: .0785em; }

/* ---------- Handy (André 02.12.2026): hochkant ist die Handy-Fassung (Variante A); quer bleibt nutzbar ---------- */
/* Hochkant: Name und Unterzeile oben mittig (André 02.12.2026: „bei mobile funktioniert zentriert meist besser“) */
@media (max-width: 860px) and (orientation: portrait) {
  .kopfblock.einheit { left: 0; right: 0; text-align: center; }
  .kopfblock.einheit { top: 100px; font-size: 28px; }
  .statusband { bottom: 18px; padding: 8px 10px; gap: 8px 10px; }
  .hinweis.hoch { display: none; }      /* hochkant steht oben der Name; nach oben über die Stockwerkanzeige oder Wischen */
  html[data-ebene="ki"] .hinweis.runter { bottom: 156px; }      /* Knopf nach unten über der Leiste (André 02.12.2026: „sonst Button nach unten“) */
  .statusband li { width: 18px; }
  .statusband .lage { gap: 8px 14px; }
}

/* Quer am Handy (wenig Höhe): Leiste einzeilig und schmal unten, Name klein oben links, damit das Auge frei bleibt.
   Steht nach den Regeln für schmale Fenster und überstimmt sie. */
@media (orientation: landscape) and (max-height: 520px) {
  .ecke { top: 8px; right: 8px; }
  .kopfblock.einheit { top: 12px; left: 4%; font-size: clamp(20px, 6.5vh, 30px); }
  .statusband { grid-template-columns: auto 1fr auto; left: 4%; right: 4%; bottom: 10px; gap: 12px; padding: 6px 10px; }
  .statusband .lage { grid-column: auto; flex-wrap: nowrap; gap: 12px; }
  .statusband .start { justify-self: center; }
  .statusband li { width: 20px; }
  .kontakt { bottom: 62px; max-height: calc(100vh - 76px); overflow: auto; }
  .kontakt.vita { max-height: calc(100vh - 76px); }
  .kopfblock.bauchbinde { bottom: 6%; }
  .bauchbinde .titel { font-size: clamp(26px, 9vh, 40px); }
  .hinweis { display: none; }
}
