:root{
  --accent: #2563eb;
  --panel-bg: #0b1020;
  --panel-text: #e8ecf3;
  --glass: rgba(15, 23, 42, 0.65);
  --outline: rgba(37,99,235,.35);
  --hover-fill: rgba(37,99,235,.18);
  --shadow-xl: 0 20px 45px rgba(0,0,0,.35);
  --shadow-md: 0 10px 25px rgba(0,0,0,.25);
  --radius: 14px;
}

html, body { height: 100%; background: #0b0e17; color: #e5e7eb; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; margin: 0; }

.wrap { max-width: 1100px; margin: 32px auto; padding: 0 20px 120px; }
h1 { font-size: clamp(22px, 3.2vw, 32px); margin: 0 0 16px; letter-spacing: .2px; }
h2 { font-size: clamp(18px, 2.6vw, 24px); margin: 28px 0 12px; }
.sub { color: #9aa3b2; margin: 0 0 20px; font-size: 14px; }

/* Floorplan stage */
.stage { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: #0f172a; box-shadow: var(--shadow-xl); outline: 1px solid rgba(148,163,184,.12); aspect-ratio: 16/9; }
.stage img.plan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* Hotspots */
.hotspot { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); background: transparent; border: none; padding: 0; cursor: pointer; isolation: isolate; }
.hotspot::before { content: ""; position: absolute; inset: 0; background: transparent; border: 2px solid transparent; border-radius: 8px; box-shadow: 0 0 0 0 transparent; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; pointer-events: none; }
.hotspot:hover::before, .hotspot:focus-visible::before { background: var(--hover-fill); border-color: var(--outline); box-shadow: 0 6px 18px rgba(37,99,235,.25) inset, 0 8px 22px rgba(0,0,0,.35); outline: none; }
.hotspot .label { position: absolute; left: 8px; bottom: 8px; font-size: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(2,6,23,.65); color: #e5efff; display: inline-block; backdrop-filter: blur(4px); box-shadow: var(--shadow-md); pointer-events: none; }

/* Bottom sheet panel */
.panel { position: fixed; left: 0; right: 0; bottom: 0; transform: translateY(100%); opacity: 0; transition: transform .28s ease, opacity .22s ease; z-index: 50; display: grid; justify-content: center; padding: 24px; pointer-events: none; }
.panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.panel .card { width: min(960px, 95vw); border-radius: calc(var(--radius) + 2px); background: linear-gradient(180deg, rgba(10,14,25,.9), rgba(10,14,25,.9)), var(--panel-bg); color: var(--panel-text); border: 1px solid rgba(148,163,184,.18); box-shadow: 0 -20px 60px rgba(0,0,0,.55); overflow: hidden; }
.panel header { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid rgba(148,163,184,.14); }
.dragbar { width: 46px; height: 5px; border-radius: 999px; background: rgba(203,213,225,.4); margin-right: auto; }
.title { font-weight: 600; letter-spacing: .2px; }
.close { margin-left: auto; background: transparent; color: #cbd5e1; border: 1px solid rgba(148,163,184,.25); padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.content { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; }
.content .photo { background: #0b0f1d; min-height: 240px; }
.content .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content .info { padding: 18px 20px 22px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 14px; font-size: 14px; color: #b6c1d3; }
.meta .pill { padding: 6px 10px; border-radius: 999px; background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.32); }
.desc { line-height: 1.5; color: #dbe7ff; }

/* Backdrop */
.backdrop { position: fixed; inset: 0; background: rgba(2,6,23,.55); opacity: 0; transition: opacity .2s ease; pointer-events: none; z-index: 40; backdrop-filter: blur(2px); }
.backdrop.show { opacity: 1; pointer-events: auto; }

/* 360° tour wrapper */
.tour-title { margin: 40px 0 12px; font-size: clamp(18px,2.6vw,24px); }
.tour-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-xl); outline: 1px solid rgba(148,163,184,.12); background: #0f172a; }
.tour-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Consent/Klick-Lösung */
.tour-consent {
  display: grid;
  place-items: center;
  gap: 12px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 24px;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 14px;
  text-align: center;
  min-height: 220px;
}
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: var(--shadow-md);
}
.btn:hover { filter: brightness(0.95); }

/* Footer */
.footer {
  background: #0b0e17;
  border-top: 1px solid rgba(148,163,184,.2);
  padding: 28px 20px;
  color: #9aa3b2;
  font-size: 14px;
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--accent); }

@media (max-width: 860px){ .content { grid-template-columns: 1fr; } .content .photo { height: 220px; } }
@media (prefers-reduced-motion: reduce){ .panel, .hotspot::before { transition: none !important; } }
.hotspot:focus-visible, .close:focus-visible { outline: 2px solid #7aa2ff; outline-offset: 2px; border-radius: 10px; }

/* Hilfs-Utility fürs Umschalten */
.hidden { display: none !important; }

/* -------- Optional: Farbcodierung der vier Hotspots -------- */
/* Blau, Orange, Gelb, Grün – wirkt auf Hover/Focus-Ring in der Fläche */
.hotspot[data-id="creative"]     { --hover-fill: rgba(37,99,235,.18);  --outline: rgba(37,99,235,.50); }
.hotspot[data-id="coworking"]    { --hover-fill: rgba(234, 88, 12,.18); --outline: rgba(234, 88, 12,.50); }
.hotspot[data-id="meetingrooms"] { --hover-fill: rgba(234,179,  8,.22); --outline: rgba(234,179,  8,.55); }
.hotspot[data-id="kitchen"]      { --hover-fill: rgba( 22,163, 74,.20); --outline: rgba( 22,163, 74,.50); }
																  
/* ==== FIX: Consent-Button auf Mobile sichtbar machen ==== */

/* 1) Der Container hat KEINE feste Aspect-Ratio mehr.
      So wächst er für die Consent-Karte (auto-Höhe). */
.tour-wrap {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  outline: 1px solid rgba(148,163,184,.12);
  background: #0f172a;
  aspect-ratio: auto; /* überschreibt die alte 16/9-Angabe */
}

/* 2) Das iFrame selbst hält 16:9 ein, wenn geladen. */
.tour-wrap iframe {
  position: static;     /* statt absolute */
  inset: auto;          /* reset für evtl. alte Werte */
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* 16:9 Höhe wird vom iframe bestimmt */
  height: auto;
  border: 0;
}

/* 3) Consent-Karte kompakter, damit sie auf kleinen Screens sicher passt */
.tour-consent {
  min-height: 180px;    /* vorher 220px */
  padding: 16px;
  gap: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 480px){
  .tour-consent { min-height: 200px; padding: 20px; gap: 12px; }
}

