/* ============================================================
   PALAIS RITZ · Ärztehaus Potsdam — 3D Experience im Morgenlicht
   Kein Framework, keine Webfonts. Das Haus ist das Original-Aufmaß
   (1:1-Modell des Vermessers) als WebGL-Szene — siehe
   assets/js/scene3d.js. Die Choreografie hängt an EINER
   Scroll-Variable --p (0 → 1), die main.js auf .scene-wrap setzt.
   ============================================================ */

:root {
  color-scheme: only light; /* Auto-Dark-Modi würden das Morgenlicht kippen */
  /* Palette: Champagner & Tinte */
  --paper:    #faf5ec;
  --paper-2:  #f2ead9;
  --ink:      #23272b;
  --ink-soft: #59606a;
  --line:     #e5e2da;
  --gold:     #57b4ec;   /* helles Ice Blue — einziger Akzent */
  --gold-deep:#2b86c0;   /* Ice Blue tief (Text/AA) */

  /* Praxis-Akzente je Etage (AA auf hellem Grund) */
  --c-ug: #bf4630;   /* Kardiologie   · Terrakotta */
  --c-eg: #2d6da4;   /* HNO           · Azur */
  --c-og: #a8730f;   /* KU64          · Bernstein */
  --c-dg: #35785c;   /* Ortho Balance · Grün */


  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-lux: cubic-bezier(.22, .8, .24, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem;
}
.skip:focus { left: 0; }

/* ---------- Typo-Grundlagen ---------- */

h1, h2, h3, .t-year, .foot-logo { font-family: var(--font-display); font-weight: 600; line-height: 1.08; }

h2 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 em, h1 em { font-style: italic; color: var(--gold-deep); }

.eyebrow {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: #6a7078; margin-bottom: .9rem;
}

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; padding: 0 1.4rem; }
.section-head p:not(.eyebrow) { margin-top: 1rem; color: var(--ink-soft); }

/* ---------- Header ---------- */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  transition: background .4s, box-shadow .4s;
}
.top.scrolled {
  background: rgba(250, 245, 236, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(43, 38, 34, .08);
}

.brand { display: block; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-size: .92rem; opacity: .82; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

.cta {
  display: inline-block; text-decoration: none;
  background: var(--ink); color: var(--paper);
  padding: .65rem 1.3rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600;
  transition: transform .25s var(--ease-lux), box-shadow .25s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43, 38, 34, .25); }

.burger { display: none; }

/* ============================================================
   DIE 3D-SZENE — Morgenlicht über der Berliner Vorstadt
   .scene-wrap ist 560vh hoch; darin klebt .scene-sticky.
   Phasen:  0–.10  Titel & Idle
           .10–.22 Drehung, Titel weicht
           .22–.34 Explosion in Etagen
           .34–.50 Fokus UG   .50–.66 EG   .66–.82 OG   .82–.98 DG
   ============================================================ */

.scene-wrap {
  height: 560vh;
  position: relative;
  --p: 0;
  --spin: clamp(0, calc((var(--p) - .10) / .12), 1);
  --boom: clamp(0, calc((var(--p) - .22) / .12), 1);
  --f-ug: clamp(0, calc((var(--p) - .34) / .16), 1);
  --f-eg: clamp(0, calc((var(--p) - .50) / .16), 1);
  --f-og: clamp(0, calc((var(--p) - .66) / .16), 1);
  --f-dg: clamp(0, calc((var(--p) - .82) / .16), 1);
}

.scene-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(85% 55% at 70% 82%, rgba(255, 208, 158, .5), transparent 62%),
    radial-gradient(120% 70% at 18% 0%, #e9f1f7 0%, transparent 55%),
    linear-gradient(#dce9f2 0%, #ece3d2 60%, #f6ebd8 100%);
  color: var(--ink);
}

/* weiche Wolken + Lichtdunst */
.scene-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(34% 10% at 22% 16%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(26% 8% at 66% 9%, rgba(255,255,255,.6), transparent 70%),
    radial-gradient(40% 12% at 85% 24%, rgba(255,255,255,.5), transparent 70%),
    radial-gradient(30% 9% at 42% 30%, rgba(255,255,255,.4), transparent 70%);
  mask-image: linear-gradient(#000 60%, transparent 95%);
  -webkit-mask-image: linear-gradient(#000 60%, transparent 95%);
}

/* ---------- Bühne: WebGL-Canvas mit dem 1:1-Modell ---------- */

.scene { position: absolute; inset: 0; }

#stage3d {
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.1s var(--ease-lux);
}
.scene.ready #stage3d { opacity: 1; }

/* Fallback ohne WebGL: vorgerendertes Standbild des Modells */
.scene.no3d .poster3d {
  position: absolute; left: 50%; top: 54%;
  transform: translate(-50%, -50%);
  width: min(1100px, 96vw);
}

/* ---------- Szene-Overlays ---------- */

.scene-title, .scene-interlude, .scene-card {
  position: absolute; z-index: 5;
}

.scene-title {
  left: clamp(1.4rem, 7vw, 7rem); top: 50%;
  transform: translateY(-50%);
  max-width: 30rem;
  opacity: calc(1 - var(--spin) * 2);
  translate: calc(var(--spin) * -4rem) 0;
  pointer-events: none;
}
.scene-title h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  margin: .4rem 0 1.2rem;
}
.scene-title .lede { color: var(--ink-soft); max-width: 26rem; }
.scene-title .eyebrow { color: var(--gold-deep); }

.scroll-hint {
  margin-top: 2.2rem; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: #7a828c;
}
.hint-arrow { display: inline-block; margin-left: .7em; animation: bob 1.6s infinite var(--ease-lux); }
@keyframes bob { 50% { transform: translateY(6px); } }

.scene-interlude {
  left: 50%; top: 7%;
  transform: translateX(-50%);
  text-align: center; pointer-events: none;
  opacity: calc(min(var(--boom), 1) - var(--f-ug) * 3);
  translate: 0 calc((1 - var(--boom)) * 2rem);
  width: max-content; max-width: 90vw;
}
.scene-interlude h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); text-shadow: 0 2px 20px rgba(250,245,236,.9); }
.scene-interlude p { color: var(--ink-soft); margin-top: .8rem; text-shadow: 0 1px 10px rgba(250,245,236,.9); }

.scene-card {
  right: clamp(1.4rem, 7vw, 7rem); top: 50%;
  transform: translateY(-50%);
  width: min(24rem, 42vw);
  padding: 1.8rem 2rem;
  background: rgba(255, 253, 248, .82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(43, 38, 34, .1);
  border-left: 3px solid var(--ac, var(--gold));
  border-radius: 14px;
  box-shadow: 0 24px 60px -30px rgba(30, 45, 60, .38);
  pointer-events: none;
}
.scene-card h3 { font-size: 1.6rem; margin: .3rem 0 .7rem; }
.scene-card p { color: var(--ink-soft); font-size: .95rem; }
.card-floor {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ac, var(--gold-deep));
}

.card-ug { --ac: var(--c-ug); opacity: calc(var(--f-ug) * 3 - var(--f-eg) * 12); }
.card-eg { --ac: var(--c-eg); opacity: calc(var(--f-eg) * 3 - var(--f-og) * 12); }
.card-og { --ac: var(--c-og); opacity: calc(var(--f-og) * 3 - var(--f-dg) * 12); }
.card-dg { --ac: var(--c-dg); opacity: calc(var(--f-dg) * 3); }

/* Mieter-Chips in den Etagenkarten (mit Logos, klickbar → Detailsektion) */
.card-tenants { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 .2rem; }
.card-text { color: var(--ink-soft); font-size: .95rem; margin-top: .4rem; }
.tenant {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .8rem; border-radius: 11px;
  text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
  border-left: 3px solid var(--tc);
  transition: transform .25s var(--ease-lux), background .25s, box-shadow .25s;
}
.tenant:hover { transform: translateX(3px); background: #fff; box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--tc) 60%, transparent); }
.tenant-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 22%, transparent); }
.tenant-name { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.15; }
.tenant-name em { display: block; font-style: normal; font-family: var(--font-body); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: .12rem; }
.tenant-logo { width: 84px; height: auto; color: var(--tc); flex: 0 0 auto; }
.tenant-brand { align-items: center; }

.card-hint {
  margin-top: .9rem; font-size: .72rem; letter-spacing: .06em;
  color: #8a7c66; font-style: italic;
}

/* Aktive Karte klickbar machen (übrige bleiben durchlässig für Etagen-Klicks) */
.scene-wrap[data-focus="ug"] .card-ug,
.scene-wrap[data-focus="eg"] .card-eg,
.scene-wrap[data-focus="og"] .card-og,
.scene-wrap[data-focus="dg"] .card-dg { pointer-events: auto; }

/* Anker-Ziele nicht unter den fixierten Header scrollen */
[id^="detail-"] { scroll-margin-top: 90px; }

.scene-progress {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 1.4rem;
  font-size: .68rem; letter-spacing: .2em;
  color: #8a7c66;
  opacity: min(var(--boom), 1);
}
.scene-progress span { position: relative; padding-top: .8rem; }
.scene-progress span::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .5; transition: all .3s;
}
.scene-wrap[data-focus="ug"] [data-step="ug"],
.scene-wrap[data-focus="eg"] [data-step="eg"],
.scene-wrap[data-focus="og"] [data-step="og"],
.scene-wrap[data-focus="dg"] [data-step="dg"] { color: var(--ink); }
.scene-wrap[data-focus="ug"] [data-step="ug"]::before { background: var(--c-ug); opacity: 1; box-shadow: 0 0 12px var(--c-ug); }
.scene-wrap[data-focus="eg"] [data-step="eg"]::before { background: var(--c-eg); opacity: 1; box-shadow: 0 0 12px var(--c-eg); }
.scene-wrap[data-focus="og"] [data-step="og"]::before { background: var(--c-og); opacity: 1; box-shadow: 0 0 12px var(--c-og); }
.scene-wrap[data-focus="dg"] [data-step="dg"]::before { background: var(--c-dg); opacity: 1; box-shadow: 0 0 12px var(--c-dg); }

/* ============================================================
   Reguläre Sektionen
   ============================================================ */

section:not(.scene-wrap):not(.haus-photo) { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.2rem, 5vw, 3rem); }

/* Zahlenband */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem; max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1;
  color: var(--gold-deep);
}
.stat span { font-size: .9rem; color: #6d6450; letter-spacing: .04em; }

/* Editorial-Foto */
.haus-photo { padding: clamp(2rem, 5vw, 4rem) 0 0; }
.haus-photo figure { position: relative; }
.haus-photo img { width: 100%; height: clamp(320px, 62vh, 640px); object-fit: cover; }
.haus-photo figcaption {
  position: absolute; left: clamp(1.2rem, 6vw, 4rem); bottom: clamp(1.2rem, 4vw, 2.6rem);
  background: rgba(250, 245, 236, .9);
  backdrop-filter: blur(8px);
  padding: 1.1rem 1.6rem;
  border-radius: 12px;
  box-shadow: 0 18px 44px -22px rgba(43, 38, 34, .5);
}
.haus-photo .eyebrow { margin-bottom: .2rem; }
.haus-photo figcaption p:last-child { font-family: var(--font-display); font-size: 1.05rem; }

/* Praxen */
.praxen { background: var(--paper); }
.praxis {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
  max-width: 1150px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.praxis:first-of-type { border-top: 0; }
.praxis:nth-of-type(even) .praxis-media { order: 2; }

.praxis-media {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 11 / 7;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 16%, var(--paper-2)), var(--paper-2) 55%),
    var(--paper-2);
  box-shadow: 0 24px 60px -30px rgba(30, 45, 60, .4);
  transition: transform .6s var(--ease-lux);
}
.praxis-media img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.praxis:hover .praxis-media { transform: perspective(900px) rotateY(2.5deg) rotateX(1deg) translateY(-4px); }
.praxis:nth-of-type(even):hover .praxis-media { transform: perspective(900px) rotateY(-2.5deg) rotateX(1deg) translateY(-4px); }

.praxis-floor {
  display: inline-block;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.praxis h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .9rem; }
.praxis p { color: #4c4636; max-width: 34rem; }
.praxis-links { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.6rem; flex-wrap: wrap; }
.link-more { color: var(--ink); font-size: .92rem; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* Im Palais — Mieter */
.mieter { background: var(--paper-2); }
.mieter-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem; max-width: 1150px; margin: 0 auto;
}
.mieter-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .5s var(--ease-lux), box-shadow .5s;
}
.mieter-card:hover { transform: translateY(-8px); box-shadow: 0 28px 56px -30px rgba(30, 45, 60, .4); }
.mieter-media { aspect-ratio: 16 / 10; background: var(--paper-2); }
.mieter-media img { width: 100%; height: 100%; object-fit: cover; }
.mieter-card h3 { font-size: 1.25rem; margin: 1.2rem 1.4rem .4rem; }
.mieter-card p { font-size: .92rem; color: var(--ink-soft); margin: 0 1.4rem 1rem; }
.mieter-card .link-more { display: inline-block; margin: 0 1.4rem 1.4rem; }

.marken {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem;
  max-width: 1150px; margin: 3rem auto 0;
}
.marken-label { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: #6d6450; margin-right: .4rem; }
.marken a {
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); background: #fffdf8;
  padding: .55rem 1.2rem; border-radius: 999px; font-size: .92rem;
  transition: transform .3s var(--ease-lux), box-shadow .3s, border-color .3s;
}
.marken a:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 26px -14px rgba(30, 45, 60, .45); }

/* Geschichte — warmes Dunkelbronze als Kontrast-Akt */
.history {
  background: #1c2530; color: var(--paper);
  background-image: radial-gradient(90% 70% at 50% 0%, #24303e 0%, transparent 60%);
}
.history .section-head p, .history .eyebrow { color: rgba(250, 245, 236, .6); }
.history h2 em { color: var(--gold); }
.timeline {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem; max-width: 1150px; margin: 0 auto;
}
.t-item {
  position: relative;
  padding: 2rem 1.6rem;
  background: rgba(250, 245, 236, .05);
  border: 1px solid rgba(250, 245, 236, .12);
  border-radius: 16px;
  transition: transform .5s var(--ease-lux), background .5s;
}
.t-item:hover { transform: translateY(-8px); background: rgba(250, 245, 236, .09); }
.t-year { display: block; font-size: 2.2rem; color: var(--gold); margin-bottom: .8rem; }
.t-item h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.t-item p { font-size: .92rem; color: rgba(250, 245, 236, .72); }

/* Moderne Seite */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem; max-width: 1150px; margin: 0 auto;
}
.feature {
  padding: 2.2rem 1.8rem;
  background: #fffdf8;
  border: 1px solid var(--line); border-radius: 16px;
  transition: transform .5s var(--ease-lux), box-shadow .5s;
}
.feature:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -28px rgba(30, 45, 60, .38); }
.feature-icon { font-size: 1.6rem; color: var(--gold-deep); }
.feature h3 { font-size: 1.15rem; margin: .9rem 0 .5rem; }
.feature p { font-size: .92rem; color: var(--ink-soft); }

/* Kontakt */
.contact { background: var(--paper-2); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; max-width: 1150px; margin: 0 auto;
}
.contact address { font-style: normal; font-size: 1.15rem; line-height: 1.7; margin: 1.6rem 0; }
.contact-note { color: #6d6450; margin-bottom: 1rem; }
.cta-big { padding: 1rem 2.2rem; font-size: 1.05rem; background: var(--gold); color: var(--ink); }
.contact-map {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #ece2cd, #ddd1b8);
  box-shadow: 0 24px 60px -30px rgba(30, 45, 60, .4);
}
.contact-map img { width: 100%; height: 100%; object-fit: cover; }

/* Footer — Dunkelbronze mit Backlink-Spalten */
.foot {
  background: #1c2530; color: rgba(240, 246, 250, .68);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 3rem) 2rem;
  font-size: .9rem;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem; max-width: 1150px; margin: 0 auto 2.6rem;
}
.foot-logo { font-size: 1.5rem; color: var(--paper); margin-bottom: .6rem; }
.foot-head {
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
}
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.foot-col a { color: rgba(250, 245, 236, .8); text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--gold); }
.foot-line a { color: var(--gold); text-decoration: none; }
.foot-line a:hover { text-decoration: underline; }
.foot-line {
  max-width: 1150px; margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(250, 245, 236, .14);
  font-size: .82rem; color: rgba(250, 245, 236, .66);
}

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-lux), transform .8s var(--ease-lux); }
.reveal.in { opacity: 1; transform: none; }


/* ---------- Echte Logos: Chips, Praxis-/Mieter-Kacheln, Wortmarke ---------- */
.tenant-logo-sm {
  flex: 0 0 auto; width: 42px; height: 30px; object-fit: contain;
  background: #fff; border-radius: 6px; padding: 3px;
  box-shadow: 0 0 0 1px rgba(30,40,55,.06);
}
.tenant-logo { width: 96px; height: auto; }

/* Praxis-/Mieter-Medien, die ein Logo statt Foto zeigen */
.praxis-media.is-logo-tile, .mieter-media:has(.is-logo) { background: #fff; }
.praxis-media img.is-logo, .mieter-media img.is-logo {
  width: 100%; height: 100%; object-fit: contain;
  padding: clamp(1.4rem, 5%, 3rem); background: #fff;
}
.mieter-media { display: flex; align-items: center; justify-content: center; background: #fff; }

/* Textmarke (Medical Balance — kein Logo als Datei) */
.praxis-media.is-wordmark {
  display: flex; align-items: center; justify-content: center; background: #fff;
}
.wordmark {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .02em;
  color: var(--c-dg); text-align: center; line-height: 1.1;
}
.wordmark em {
  display: block; font-style: normal; font-family: var(--font-body);
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: .6rem;
}

/* ---------- 360°-Rundgang (Matterport, Klick-zum-Laden) ---------- */
.tour { background: var(--paper); }
.tour-frame {
  position: relative; max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: #0d1218; box-shadow: 0 30px 70px -34px rgba(30, 45, 60, .5);
}
.tour-frame > img { width: 100%; height: 100%; object-fit: cover; }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-play {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .7rem;
  background: linear-gradient(rgba(20,30,42,.28), rgba(20,30,42,.5));
  color: #fff; border: 0; cursor: pointer; font: inherit;
  transition: background .3s;
}
.tour-play:hover { background: linear-gradient(rgba(20,30,42,.2), rgba(20,30,42,.42)); }
.tour-ico {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--gold); color: #06131c; padding-left: 4px;
  box-shadow: 0 10px 30px -8px rgba(62,155,209,.7);
  transition: transform .3s var(--ease-lux);
}
.tour-play:hover .tour-ico { transform: scale(1.08); }
.tour-label { font-family: var(--font-display); font-size: 1.4rem; }
.tour-play small { font-size: .74rem; letter-spacing: .04em; opacity: .82; }

/* ============================================================
   Responsive
   ============================================================ */

.cta-nav { display: none; }

@media (max-width: 900px) {
  .top { gap: 1rem; }
  .nav {
    position: fixed; inset: 0; z-index: 90;
    flex-direction: column; justify-content: center; align-items: center; gap: clamp(1.2rem, 4vh, 2rem);
    background: rgba(28, 37, 48, .97); backdrop-filter: blur(10px);
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    /* scrollbar + Safe-Area, damit auf kurzen Screens nichts überlappt/abgeschnitten wird */
    overflow-y: auto;
    padding: max(4.5rem, env(safe-area-inset-top)) 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav a { color: var(--paper) !important; }
  body.nav-open .nav { opacity: 1; pointer-events: auto; }
  /* Termin-CTA in das Mobil-Menü holen */
  .nav .cta-nav {
    display: inline-block; margin-top: 1rem;
    background: var(--gold) !important; color: #06131c !important;
    padding: .8rem 2rem; border-radius: 999px; font-size: 1.1rem;
    opacity: 1;
  }

  .burger {
    display: block; margin-left: auto; z-index: 95;
    background: none; border: 0; padding: .6rem; cursor: pointer; color: var(--ink);
  }
  .burger span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s; }
  body.nav-open .burger { color: var(--paper); }
  body.nav-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  /* Header-CTA nur ab Tablet; auf dem Handy steckt sie im Menü */
  .top .cta-small { margin-left: auto; padding: .55rem 1.1rem; font-size: .88rem; }
  .brand img { height: 26px; }

  /* Titel randlos über die volle Breite; Fläche gast nach oben weich aus
     (kein Kasten, keine harten Kanten), mit großzügigem Randabstand. */
  .scene-title {
    top: auto; bottom: 0; transform: none; left: 0; right: 0; max-width: none;
    padding: 4.5rem 1.7rem calc(2.2rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(1.7rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.7rem, env(safe-area-inset-right, 0px));
    background: linear-gradient(
      to top,
      var(--paper) 0%,
      var(--paper) 42%,
      color-mix(in srgb, var(--paper) 55%, transparent) 72%,
      transparent 100%);
  }
  .scene-title h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .scene-title .lede { font-size: .95rem; }
  .scene-title .eyebrow { letter-spacing: .18em; }
  .scroll-hint { letter-spacing: .16em; }
  .scene-card {
    right: 50%; transform: translate(50%, 0); top: auto; bottom: 5%;
    width: calc(100vw - 1.8rem);
    padding: 1.1rem 1.2rem;
  }
  .card-floor { font-size: .66rem; }
  .tenant { padding: .5rem .6rem; gap: .55rem; }
  .tenant-name { font-size: .92rem; }
  .tenant-name em { font-size: .62rem; }
  .tenant-logo-sm { width: 34px; height: 24px; }
  .card-hint { margin-top: .6rem; }
  .scene-interlude { top: 7%; width: calc(100vw - 2.4rem); }
  .scene-progress { display: none; }

  .praxis, .contact-inner { grid-template-columns: 1fr; }
  .praxis:nth-of-type(even) .praxis-media { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Handy: Header-CTA raus (steckt im Menü), Titel/Karten kompakter */
@media (max-width: 560px) {
  .top .cta-small { display: none; }
  .top { padding: .7rem 1rem; }
  section:not(.scene-wrap):not(.haus-photo) { padding: clamp(3rem, 8vw, 4.5rem) 1.1rem; }
  .praxis-media { aspect-ratio: 16 / 11; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
}

/* ============================================================
   Reduzierte Bewegung: Szene wird statisches Schaubild
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-wrap { height: auto; --p: .28; }
  .scene-sticky { position: relative; height: auto; min-height: 100vh; padding-bottom: 4rem; }
  .scene-title { position: relative; left: 0; top: 0; transform: none; opacity: 1; translate: 0; margin: 8rem auto 2rem; padding: 0 1.4rem; }
  .scene { position: relative; min-height: 560px; }
  .scene-interlude, .scene-card { display: none; }
  .scene-progress { display: none; }
  .hint-arrow { animation: none; }
  .scroll-hint { display: none; }
  .reveal { opacity: 1; transform: none; }
}
