/* Exposé 2.0 – Grundriss in 3D (Architekturmodell). Baut auf expose.css auf. */
body.p3 { background: var(--bg); }
body.p3 .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; }
.p3-track { position: relative; height: calc(var(--len, 1000) * 1vh); height: calc(var(--len, 1000) * 1lvh); }
.p3-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--bg); color: var(--ink); }
.p3-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.p3-stage { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.p3-stage.drag { cursor: grabbing; }
/* Hinweis: Modell lässt sich drehen */
.p3-turn { position: absolute; z-index: 3; left: 50%; top: 86px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); opacity: 0; transition: opacity .5s; pointer-events: none; white-space: nowrap; }
.p3-turn.on { opacity: 1; }
.p3-turn.off { opacity: 0 !important; }
.p3-turn svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Aufnahme für Reels und Vorschauen */
.p3-end-url { display: none; margin: 0; font: 600 12px/1.4 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--accent) !important; }
body.rec .topnav, body.rec .p3-rail, body.rec .p3-hint, body.rec .p3-turn, body.rec .p3-end-cta { display: none !important; }
body.rec .p3-end-url { display: block; }
body.rec * { transition: none !important; animation: none !important; }
body.rec .p3-load { display: none; }

/* Text links unten, auf einer ruhigen Fläche */
.p3-cap, .p3-end > div { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.p3-cap { position: absolute; z-index: 3; left: calc(var(--gutter) - 8px); bottom: clamp(30px, 7vh, 80px); width: min(430px, 80vw); opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; pointer-events: none; }
.p3-cap.on { opacity: 1; transform: none; }
.p3-cap .kicker { display: block; margin-bottom: 10px; }
.p3-cap h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; margin: 0; }
.p3-cap p { margin: 12px 0 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; color: var(--ink-soft); }
.p3-cap p:empty { display: none; }

/* Raumschilder über dem Modell */
.p3-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; visibility: hidden; }
.p3-label { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 12px 6px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 86%, transparent); border: 1px solid var(--line); white-space: nowrap; will-change: transform; }
.p3-label b { font: 600 10px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.p3-label span { font: 500 15px/1 var(--serif); color: var(--accent); }

/* Abschnitte rechts */
.p3-rail { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.p3-rail button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 10px; font: 500 12px var(--sans); letter-spacing: .08em; }
.p3-rail span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.p3-rail i { width: 22px; height: 2px; background: currentColor; opacity: .4; transition: width .25s, opacity .25s, background .25s; }
.p3-rail button:hover span, .p3-rail button.on span, .p3-rail button:focus-visible span { opacity: 1; transform: none; }
.p3-rail button.on i { width: 38px; opacity: 1; background: var(--accent); }

.p3-hint { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); font: 500 11px var(--sans); letter-spacing: .22em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-soft); transition: opacity .4s; }
.p3-hint.off { opacity: 0; }
.p3-hint i { width: 1px; height: 34px; background: currentColor; animation: p3hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes p3hint { 0%, 100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* Schluss */
.p3-end { position: absolute; z-index: 4; left: calc(var(--gutter) - 8px); bottom: clamp(30px, 7vh, 80px); width: min(520px, calc(100vw - 2 * var(--gutter) + 16px)); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .45s, transform .45s; }
.p3-end.on { opacity: 1; transform: none; pointer-events: auto; }
.p3-end h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1; margin: 10px 0 8px; }
.p3-end p { margin: 0 0 20px; font: italic 400 clamp(17px, 1.6vw, 21px)/1.3 var(--serif); color: var(--ink-soft); }
.p3-end-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.p3-end-cta .btn { padding: 1em 1.6em; }

/* Laden */
.p3-load { position: absolute; z-index: 30; inset: 0; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; transition: opacity .7s, visibility .7s; }
.p3-load.done { opacity: 0; visibility: hidden; }
.p3-load .brand-mark { width: 64px; height: 64px; font-size: 22px; }
.p3-load .brand-logo { height: 64px; width: auto; }
.p3-load p { margin: 0; font: 500 11px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.p3-load-bar { width: 160px; height: 2px; background: var(--line); overflow: hidden; }
.p3-load-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }

.p3-after { text-align: center; }
.p3-after .x-body { max-width: 62ch; margin: 14px auto 28px; }
.p3-after-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 760px) {
  .p3-rail, .p3-hint { display: none; }
  .p3-cap { bottom: 22px; width: calc(100vw - 2 * var(--gutter) + 16px); padding: 16px 18px; }
  .p3-cap h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .p3-cap p { font-size: 14px; margin-top: 8px; }
  .p3-end { bottom: 22px; }
  .p3-end > div { padding: 18px; }
  .p3-end-cta .btn { width: 100%; justify-content: center; }
  .p3-label { padding: 5px 9px 4px; }
  .p3-label b { font-size: 8.5px; }
  .p3-label span { font-size: 13px; }
}

/* Aufnahme im Hochformat fürs Reel und die Story: größere Schrift, Text über dem Bereich, den die Apps verdecken */
@media (max-width: 760px) {
  body.rec-video .p3-cap, body.rec-video .p3-end { bottom: 13vh; }
  body.rec-video .p3-cap h2 { font-size: 11vw; }
  body.rec-video .p3-cap p { font-size: 4.1vw; }
  body.rec-video .p3-cap .kicker, body.rec-video .p3-end .kicker { font-size: 3vw; }
  body.rec-video .p3-end h2 { font-size: 12vw; }
  body.rec-video .p3-end p { font-size: 4.6vw; }
  /* Beitragsbild 4:5: nur eine schmale Zeile unten, damit das Modell frei bleibt */
  body.rec-post .p3-cap, body.rec-post .p3-end { bottom: 14px; }
  body.rec-post .p3-cap, body.rec-post .p3-end > div { padding: 12px 16px; }
  body.rec-post .p3-cap p { display: none; }
  body.rec-post .p3-cap .kicker { margin-bottom: 4px; }
  body.rec-post .p3-cap h2 { font-size: 7.4vw; }
  body.rec-post .p3-end h2 { font-size: 8vw; margin: 4px 0; }
  body.rec-post .p3-end p { font-size: 3.6vw; margin-bottom: 8px; }
}
body.rec .p3-end-url { font-size: 2.5vw !important; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 761px) { body.rec .p3-end-url { font-size: 12px !important; } }

/* Handy: Die Bühne ist so hoch wie der größte sichtbare Bereich (100lvh). Solange der Browser seine
   Leisten zeigt, ist weniger zu sehen. Der Text rückt um genau diese Differenz nach oben. */
@media (max-width: 760px) {
  body:not(.rec) .p3-cap, body:not(.rec) .p3-end { bottom: calc(18px + 100lvh - 100svh); }
}

/* Raum im Detail: Karte mit Maßen, Maßangaben an den Kanten */
.p3-pick { position: absolute; z-index: 5; left: calc(var(--gutter) - 8px); bottom: clamp(30px, 7vh, 80px); width: min(430px, 80vw); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--accent); border-radius: var(--radius); padding: 22px 26px; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; pointer-events: none; cursor: default; }
.p3-stage.picking .p3-pick { opacity: 1; transform: none; pointer-events: auto; }
.p3-stage.picking .p3-cap, .p3-stage.picking .p3-end { opacity: 0 !important; pointer-events: none !important; }
.p3-pick h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1; margin: 8px 44px 16px 0; }
.p3-pick dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0; border-top: 1px solid var(--line); }
.p3-pick dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.p3-pick dt { font: 500 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.p3-pick dd { margin: 0; font: 500 20px/1 var(--serif); white-space: nowrap; }
.p3-pick p { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.p3-pick-x { all: unset; position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; cursor: pointer; }
.p3-pick-x:hover, .p3-pick-x:focus-visible { border-color: var(--accent); color: var(--accent); }
.p3-dims { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; visibility: hidden; }
.p3-dim { position: absolute; left: 0; top: 0; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 13px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.22); will-change: transform; }
@media (max-width: 760px) {
  .p3-pick { width: calc(100vw - 2 * var(--gutter) + 16px); padding: 16px 18px; bottom: calc(18px + 100lvh - 100svh); }
  .p3-pick h2 { font-size: clamp(28px, 8vw, 36px); margin-bottom: 12px; }
  .p3-pick dd { font-size: 18px; }
  .p3-pick dl div { padding: 8px 0; }
  .p3-turn { font-size: 9.5px; letter-spacing: .1em; padding: 7px 11px; }
}

/* Erkunden: nach dem Schließen eines Raums steht das ganze Modell frei, ohne Text */
.p3-stage.exploring .p3-cap, .p3-stage.exploring .p3-end { opacity: 0 !important; pointer-events: none !important; }
.p3-stage.exploring .p3-turn, .p3-stage.exploring .p3-turn.off { opacity: 1 !important; }

/* Handy: Texte sitzen am sichtbaren unteren Rand, auch wenn der Browser seine Leisten ein- oder ausblendet */
@media (max-width: 760px) {
  body:not(.rec) .p3-cap, body:not(.rec) .p3-end, .p3-pick { bottom: calc(14px + 100lvh - 100svh); bottom: calc(14px + 100lvh - 100dvh); }
  /* Raum im Detail: flache Karte, damit der Raum darüber frei bleibt */
  .p3-pick { padding: 12px 16px 12px; }
  .p3-pick .kicker, .p3-pick p { display: none; }
  .p3-pick h2 { font-size: 26px; margin: 0 44px 6px 0; }
  .p3-pick dl { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0 10px; border-top: 0; }
  .p3-pick dl div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 0 0; border-bottom: 0; }
  .p3-pick dt { font-size: 8.5px; letter-spacing: .12em; }
  .p3-pick dd { font-size: 17px; }
  .p3-pick-x { top: 8px; right: 8px; width: 34px; height: 34px; }
}

/* Etagen-Schalter */
.p3-floors { position: absolute; z-index: 4; left: 50%; top: 84px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.p3-floors[hidden] { display: none; }
.p3-floors.on { opacity: 1; pointer-events: auto; }
.p3-floors button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; transition: background .25s, color .25s; }
.p3-floors button.on { background: var(--accent); color: var(--accent-ink); }
.p3-floors button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p3-floors:not([hidden]) ~ .p3-turn { top: 132px; }
.p3-labelset { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.p3-labels { opacity: 1 !important; visibility: visible !important; }
body.rec .p3-floors { display: none !important; }
@media (max-width: 760px) { .p3-floors { top: 74px; } .p3-floors button { padding: 7px 11px; font-size: 9.5px; } .p3-floors:not([hidden]) ~ .p3-turn { top: 116px; } }

/* Zoom-Knöpfe (am Handy reichen zwei Finger) */
.p3-zoom { position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(30px, 7vh, 80px); display: flex; flex-direction: column; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .4s; }
.p3-zoom.on { opacity: 1; pointer-events: auto; }
.p3-zoom button { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; font: 400 20px/1 var(--sans); color: var(--ink); }
.p3-zoom button + button { border-top: 1px solid var(--line); }
.p3-zoom button:hover, .p3-zoom button:focus-visible { color: var(--accent); }
body.rec .p3-zoom { display: none !important; }
@media (max-width: 760px) { .p3-zoom { display: none; } .p3-turn { max-width: calc(100vw - 24px); } }

/* Frei bewegen: Knopf zurück in den Ablauf, Treppen-Schild als Verbindung der Etagen */
.p3-exit { position: absolute; z-index: 5; left: 50%; bottom: clamp(30px, 7vh, 80px); transform: translate(-50%, 10px); padding: .95em 1.5em; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; box-shadow: 0 10px 30px rgba(0,0,0,.25); white-space: nowrap; }
.p3-stage.exploring .p3-exit { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.p3-stage.free { cursor: grab; }
.p3-stage:not(.free) { cursor: default; }
.p3-stage.drag { cursor: grabbing; }
.p3-stair { all: unset; position: absolute; left: 0; top: 0; padding: 7px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); cursor: pointer; pointer-events: auto; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.22); will-change: transform; }
.p3-stair b { font: 600 10px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.p3-labelset[style*="hidden"] .p3-stair { pointer-events: none; }
body.rec .p3-exit, body.rec .p3-stair { display: none !important; }
@media (max-width: 760px) {
  .p3-exit { bottom: calc(14px + 100lvh - 100svh); bottom: calc(14px + 100lvh - 100dvh); }
  .p3-stair { padding: 5px 9px; } .p3-stair b { font-size: 8.5px; }
}

/* Handy: Schlusskarte flach, damit die Etagen darüber zu sehen bleiben */
@media (max-width: 760px) {
  .p3-end > div { padding: 14px 16px; }
  .p3-end .kicker, .p3-end p:not(.p3-end-url) { display: none; }
  .p3-end h2 { font-size: 30px; margin: 0 0 12px; }
  .p3-end-cta { flex-wrap: nowrap; gap: 8px; }
  .p3-end-cta .btn { width: auto; flex: 1; padding: .9em .6em; font-size: 13px; white-space: nowrap; }
  body.rec .p3-end .kicker, body.rec .p3-end p { display: block; }
}

/* ---------- Schalter: Etage und Ansicht nebeneinander ---------- */
.p3-switch { position: absolute; z-index: 4; left: 50%; top: 84px; transform: translateX(-50%); display: flex; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.p3-switch.on { opacity: 1; visibility: visible; transition: opacity .4s; }
.p3-floors, .p3-view { position: static; left: auto; top: auto; transform: none; opacity: 1; pointer-events: auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.p3-floors[hidden] { display: none; }
.p3-floors button, .p3-view button { all: unset; cursor: pointer; padding: 10px 14px; border-radius: 999px; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; transition: background .25s, color .25s; }
.p3-floors button.on, .p3-view button.on { background: var(--accent); color: var(--accent-ink); }
.p3-floors .kurz { display: none; }
.p3-turn, .p3-floors:not([hidden]) ~ .p3-turn { top: 136px; }
/* Szenenwechsel beim Wählen einer Etage: kurz ab- und wieder aufblenden */
.p3-stage canvas { transition: opacity .28s ease; }
.p3-stage.cut canvas, .p3-stage.cut .p3-labels, .p3-stage.cut .p3-dims, .p3-stage.cut .p3-cap { opacity: 0 !important; }
/* Ausgeblendete Bedienelemente sind auch für Tastatur und Vorleseprogramme weg */
.p3-zoom, .p3-exit, .p3-pick, .p3-end { visibility: hidden; }
.p3-zoom.on, .p3-stage.exploring .p3-exit, .p3-stage.picking .p3-pick, .p3-end.on { visibility: visible; }
.p3-rail button:focus-visible, .p3-zoom button:focus-visible, .p3-floors button:focus-visible, .p3-view button:focus-visible, .p3-pick-x:focus-visible, .p3-stair:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .p3-switch { top: 70px; gap: 6px; }
  .p3-floors .lang { display: none; } .p3-floors .kurz { display: inline; }
  .p3-floors button, .p3-view button { padding: 12px 13px; font-size: 10.5px; }
  .p3-turn, .p3-floors:not([hidden]) ~ .p3-turn { top: 122px; }
}
/* Handy quer: wenig Höhe, deshalb flache Texte, die das Modell nicht verdecken */
@media (max-height: 520px) and (min-width: 600px) {
  .p3-cap, .p3-pick, .p3-end { width: min(320px, 44vw); bottom: 12px; }
  .p3-cap, .p3-pick, .p3-end > div { padding: 12px 16px; }
  .p3-cap h2, .p3-pick h2 { font-size: 24px; } .p3-end h2 { font-size: 26px; margin: 0 0 10px; }
  .p3-cap p, .p3-pick p, .p3-pick .kicker, .p3-end .kicker, .p3-end p:not(.p3-end-url) { display: none; }
  .p3-pick dl { grid-template-columns: repeat(4, auto); justify-content: space-between; border-top: 0; }
  .p3-pick dl div { flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 0 0; border-bottom: 0; }
  .p3-pick dt { font-size: 8.5px; } .p3-pick dd { font-size: 16px; }
  .p3-switch { top: 62px; } .p3-turn, .p3-floors:not([hidden]) ~ .p3-turn { top: 62px; left: auto; right: var(--gutter); transform: none; }
  .p3-rail { display: none; }
  .p3-exit { bottom: 12px; } .p3-zoom { bottom: 12px; }
}

/* ---------- Nachschliff Bedienung ---------- */
/* Raumkarte: der Weg zurück in den Ablauf steht direkt auf der Karte (am Touch-Gerät scrollt die Seite hier nicht) */
.p3-pick-go { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .5em; margin-top: 14px; padding: 10px 0 2px; font: 600 13px/1 var(--sans); letter-spacing: .04em; color: var(--accent); }
.p3-pick-go:hover { text-decoration: underline; text-underline-offset: 4px; }
.p3-pick-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body.rec .p3-pick-go { display: none; }
/* Lesbarkeit am Handy */
@media (max-width: 760px) {
  .p3-label b, .p3-stair b { font-size: 10px; letter-spacing: .12em; }
  .p3-turn { font-size: 11px; letter-spacing: .06em; padding: 8px 12px; white-space: normal; text-align: center; line-height: 1.35; }
  .p3-pick dt { font-size: 10px; letter-spacing: .08em; }
  .p3-floors button, .p3-view button { font-size: 11px; letter-spacing: .1em; }
  .p3-pick-go { margin-top: 8px; padding: 10px 0 4px; }
}
@media (max-width: 380px) { .p3-end-cta { flex-wrap: wrap; } .p3-end-cta .btn { flex: 1 1 100%; justify-content: center; } }
/* Handy quer: der Bedienhinweis steht unten zwischen Text und Zoom, nicht mehr hinter dem Schalter */
@media (max-height: 520px) and (min-width: 600px) {
  .p3-turn, .p3-floors:not([hidden]) ~ .p3-turn { top: auto; bottom: 14px; left: calc(min(320px, 44vw) + var(--gutter) + 6px); right: calc(var(--gutter) + 52px); transform: none; justify-content: center; white-space: normal; text-align: center; line-height: 1.35; font-size: 11px; letter-spacing: .06em; }
  .p3-exit { left: calc(var(--gutter) - 8px); transform: translate(0, 10px); padding: .8em 1.2em; }
  .p3-stage.exploring .p3-exit { transform: none; }
  .p3-stage.exploring .p3-turn { left: 230px; }
  .p3-pick dt { font-size: 10px; } .p3-pick-go { margin-top: 6px; padding: 8px 0 2px; }
}
.p3-turn { width: max-content; } /* links 50 %: ohne das darf die Pille nur halb so breit werden und bricht um */
.p3-turn span { white-space: nowrap; }
.p3-end h2.lang { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; } /* lange Projektnamen */

/* ---------- Bau-Trailer (bau.js): ein Film, keine Bedienelemente; Titel stehen groß im Bild ---------- */
body.bau .p3-labels, body.bau .p3-switch, body.bau .p3-dims, body.bau .p3-pick, body.bau .p3-cap, body.bau .p3-rail, body.bau .p3-turn, body.bau .p3-exit, body.bau .p3-zoom, body.bau .p3-end { display: none !important; }
body.bau.rec .topbar, body.bau.rec .p3-hint { display: none !important; }
.bau-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; color: var(--ink); }
.bau-intro { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); text-align: center; }
.bau-intro > div { display: grid; justify-items: center; gap: 1.6vmin; }
.bau-intro img { height: 11vmin; width: auto; }
.bau-mark { width: 11vmin; height: 11vmin; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font: 500 4vmin var(--serif); }
.bau-intro b { font: 500 9vmin/1 var(--serif); margin-top: 1.5vmin; }
.bau-intro span:not(.bau-mark) { font: 600 1.7vmin var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.bau-ui::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 82%, transparent)); opacity: var(--bau-schleier, 0); }
.bau-titel { position: absolute; z-index: 1; left: 6vw; right: 6vw; bottom: 9vh; margin: 0; font: 500 clamp(28px, 6.6vmin, 104px)/1.06 var(--serif); opacity: 0; text-shadow: 0 0 22px var(--bg), 0 0 8px var(--bg), 0 0 2px var(--bg); max-width: 22ch; }
.bau-ende { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1.4vmin; text-align: center; opacity: 0; visibility: hidden; padding: 0 6vw;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--bg) 93%, transparent) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 45%, color-mix(in srgb, var(--bg) 30%, transparent) 100%); }
.bau-ende span { font: 600 clamp(11.5px, 2.1vmin, 28px) var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.bau-ende b { font: 500 min(15vmin, 11.5vw)/1 var(--serif); overflow-wrap: anywhere; }
.bau-ende i { font: italic 400 clamp(18px, 4.2vmin, 60px) var(--serif); }
.bau-ende em { font: 600 clamp(13px, 2.5vmin, 34px) var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink, #fff); padding: 1.3vmin 3vmin; border-radius: 999px; margin-top: 1.6vmin; }
.bau-ende u { text-decoration: none; font: 500 clamp(12.5px, 2.3vmin, 30px) var(--sans); letter-spacing: .06em; }
.bau-ende small { position: absolute; bottom: 3vh; left: 0; right: 0; font-size: clamp(11.5px, 1.3vmin, 16px); color: var(--ink-soft); }
@media (max-aspect-ratio: 9/10) { .bau-titel { bottom: auto; top: 16vh; font-size: clamp(30px, 8.4vmin, 90px); } } /* Hochformat: Titel oben, frei von App-Knöpfen */

/* Wände-Knopf: zeigt die gewählte Höhe als Balken (niedrig, automatisch, hoch) */
.p3-view .p3-wand { display: inline-flex; align-items: center; gap: 7px; }
.p3-wand svg { width: 15px; height: 15px; fill: currentColor; }
.p3-wand svg rect { opacity: .28; transition: opacity .2s; }
.p3-wand[data-modus="niedrig"] svg rect:nth-child(1), .p3-wand[data-modus="auto"] svg rect:nth-child(-n+2), .p3-wand[data-modus="hoch"] svg rect { opacity: 1; }
@media (max-width: 760px) { .p3-wand span { display: none; } .p3-view .p3-wand { padding-left: 12px; padding-right: 12px; } } /* Handy: nur das Symbol, der Name steht im Hinweis */
.p3-toast { position: absolute; z-index: 6; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.96); padding: 12px 20px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.p3-toast.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
