/* ══════════════════════════════════════════
   EDGE — Global Reset & Base
══════════════════════════════════════════ */
:root {
  --accent:       #9333ea;
  --accent-light: #c084fc;
  --bg:           #04040a;
  --text:         #ffffff;
}

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

* {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

@supports (height: 100dvh) {
  html, body {
    height: 100dvh;
    min-height: 100dvh;
  }
}

button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; touch-action: manipulation; }
a { color: inherit; }
video {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}

/* ══════════════════════════════════════════
   INTRO — Hero Startseite
══════════════════════════════════════════ */
.intro {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  z-index: 10;
  background: radial-gradient(ellipse 80% 60% at 50% 60%, #0e0520 0%, #04040a 70%);
  transition: opacity 350ms ease, transform 350ms ease;
}
.intro.is-leaving { opacity: 0; transform: scale(1.02); pointer-events: none; }

.intro__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

.intro__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro__logo-wrap { margin-bottom: 24px; }
.intro__logo { width: clamp(90px, 10vw, 140px); height: auto; display: block; }

.intro__title {
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  background: linear-gradient(180deg, #f5eeff 0%, #c084fc 32%, #9333ea 55%, #4c1d95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro__tagline {
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #7c3aed, #c084fc, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(168,85,247,0.35);
  margin-top: 18px;
}

.intro__enter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 44px;
  margin-top: 80px;
  border: 1px solid rgba(168,85,247,0.55);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(126,34,206,0.7), rgba(109,40,217,0.6));
  backdrop-filter: blur(16px);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 0 18px rgba(168,85,247,0.5);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 200ms ease;
}
.intro__enter:hover { border-color: rgba(216,180,254,0.75); transform: translateY(-2px); }
.intro__enter-arrow { width: 17px; height: 17px; }

/* ══════════════════════════════════════════
   EXPERIENCE
══════════════════════════════════════════ */
.experience {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  min-height: 100dvh;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  background: #000;
}

.cinema {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}
.cinema.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.cinema.is-final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(30deg, transparent 42%, rgba(255,255,255,0.16) 48%, transparent 54%),
    linear-gradient(150deg, transparent 42%, rgba(192,132,252,0.14) 49%, transparent 55%);
  mix-blend-mode: screen;
}
.cinema.is-final.is-ambient::after {
  opacity: 0.18;
  animation: none;
}

.film {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Sanfter Crossfade — verhindert Blackframes beim Videowechsel */
  transition: opacity 280ms ease;
}
.film.is-active { z-index: 1; opacity: 1; }

.cinema.is-final .film { transform: none !important; }

.film-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, transparent 30%, transparent 65%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* Skip button */
.skip-btn {
  position: absolute;
  z-index: 10;
  top: 24px; right: 24px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  background: rgba(10,6,20,0.5);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease, border-color 250ms ease;
}
.cinema.is-visible:not(.is-final) .skip-btn { opacity: 1; pointer-events: auto; }
.skip-btn:hover { border-color: rgba(168,85,247,0.5); color: #fff; }

/* Progress bar */
.progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
  display: none;
}
/* Zeitstrahl entfernt — Video läuft ohne Fortschrittsanzeige */
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s linear;
}

/* ══════════════════════════════════════════
   SERVICE CARDS (Bereiche im Menu-Loop)
══════════════════════════════════════════ */
.services {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms ease;
}
.services.is-visible { opacity: 1; pointer-events: auto; }

.service-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(360px, 26vw);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
/* Oben links: Buchhaltung */
.service-card[data-service="buchhaltung"] { left: 8%; top: 12%; align-items: flex-start; }
/* Unten links: Automatisierung */
.service-card[data-service="ai"]          { left: 8%; bottom: 12%; align-items: flex-start; }
/* Oben rechts: Website */
.service-card[data-service="website"]     { right: 8%; top: 12%; align-items: flex-end; }
/* Unten rechts: Finanzen */
.service-card[data-service="finance"]     { right: 8%; bottom: 12%; align-items: flex-end; }

.service-card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(0,0,0,0.9),
    0 0 35px rgba(0,0,0,0.8),
    0 2px 8px rgba(0,0,0,0.95);
  transition: text-shadow 250ms ease, color 250ms ease;
}
.service-card__sub {
  font-size: 9px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0,0,0,0.9), 0 2px 6px rgba(0,0,0,0.95);
}
.service-card[data-service="website"],
.service-card[data-service="finance"] {
  text-align: right;
}
.service-card:hover .service-card__title {
  color: #c084fc;
  text-shadow:
    0 0 18px rgba(0,0,0,0.9),
    0 0 35px rgba(0,0,0,0.8),
    0 0 20px rgba(168,85,247,0.4);
}

.cinema.is-zooming ~ .services { opacity: 0; pointer-events: none; }

/* ══════════════════════════════════════════
   ROOM ORBS — milky glass spheres over each room
══════════════════════════════════════════ */
.room-orb {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  transform-origin: bottom center;
  will-change: opacity;
  filter: none;
  transition: opacity 220ms ease;
}
.room-orb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* Glass vitrine — faces, reflections and bevelled edges.
   Faces keep their gradients; hover colour comes from .go-tint,
   because gradient (url) fills cannot fade. */
.room-orb .go-front {
  fill: rgba(255,255,255,0.12);
}
.room-orb .go-tint {
  fill: rgba(168,85,247,0);
  transition: fill 600ms cubic-bezier(0.4,0,0.2,1);
}
/* Nur ein Hauch Fläche — die Farbe tragen die KANTEN */
.room-orb.is-active .go-tint  { fill: rgba(180,95,255,0); }
.room-orb.is-dim    .go-tint  { fill: rgba(80,150,255,0); }
.room-orb.is-active .go-thick { stroke: rgba(200,120,255,0.38); stroke-width: 3.2; }
.room-orb.is-dim    .go-thick { stroke: rgba(110,175,255,0.32); stroke-width: 3.2; }

/* Contact shadow the glass casts on the ground */
.room-orb .go-shadow {
  fill: rgba(15,8,38,0.45);
  transition: fill 600ms;
}
/* Specular sheen on the top pane */
.room-orb .go-sheen {
  fill: rgba(255,255,255,0.22);
  opacity: 0.8;
  transition: opacity 600ms;
}
/* Dispersion: kühler Farbsaum hinter den Kanten (Lichtbrechung) */
.room-orb .go-fringe {
  fill: none;
  stroke: rgba(185,215,255,0.18);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: stroke 600ms;
}
/* Glass thickness: wide translucent halo behind the crisp edge */
.room-orb .go-thick {
  fill: none;
  stroke: rgba(255,255,255,0.16);
  stroke-width: 3;
  stroke-linejoin: round;
  transition: stroke 600ms;
}
.room-orb .go-refl { opacity: 0.42; }
.room-orb .go-refl--thin { opacity: 0.28; }
.room-orb .go-face {
  transition: fill 600ms, opacity 600ms;
  /* Fresnel: Glasflächen sind an ihren Rändern minimal heller */
  stroke: rgba(255,255,255,0.10);
  stroke-width: 1.5;
}
.room-orb .go-refl {
  fill: rgba(255,255,255,0.20);
  opacity: 0.7;
  transition: opacity 600ms;
}
.room-orb .go-edge {
  fill: none;
  stroke: rgba(255,255,255,0.50);
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: stroke 600ms;
}
.room-orb .go-edge--soft { stroke: rgba(255,255,255,0.32); }

/* Wave: every animated part of a case starts after --wave-delay,
   set per-room by JS from the distance to the hovered room */
.room-orb,
.room-orb .go-tint,
.room-orb .go-edge,
.room-orb .go-fringe,
.room-orb .go-thick,
.room-orb .go-refl,
.room-orb .go-sheen,
.room-orb .go-shadow {
  transition-delay: var(--wave-delay, 0ms);
}

/* Hover: this room glows purple */
.room-orb.is-active {
  filter: none;
}
.room-orb.is-active .go-refl   { opacity: 1; }
.room-orb.is-active .go-edge   { stroke: rgba(230,180,255,1); }
.room-orb.is-active .go-fringe { stroke: rgba(215,170,255,0.38); }
.room-orb.is-active .go-shadow { fill: rgba(70,20,110,0.55); }

/* Other rooms glow softly blue */
.room-orb.is-dim {
  filter: none;
}
.room-orb.is-dim .go-edge   { stroke: rgba(180,220,255,0.95); }
.room-orb.is-dim .go-fringe { stroke: rgba(145,205,255,0.32); }
.room-orb.is-dim .go-shadow { fill: rgba(20,45,100,0.50); }

/* ══════════════════════════════════════════
   HOTSPOTS — leuchtende Punkte + Info-Panel
══════════════════════════════════════════ */
.hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.hotspot {
  position: absolute;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  cursor: pointer; pointer-events: auto;
  background: radial-gradient(circle,
    rgba(255,255,255,1) 0 30%,
    rgba(215,150,255,0.95) 48%,
    rgba(168,85,247,0.55) 68%,
    rgba(168,85,247,0.15) 100%);
  box-shadow:
    0 0 0 6px rgba(168,85,247,0.18),
    0 0 16px rgba(230,180,255,1),
    0 0 40px rgba(168,85,247,0.85),
    0 0 90px rgba(139,92,246,0.5);
  animation: hotspotPulse 3.4s ease-in-out infinite;
  transition: transform 250ms ease;
}
.hotspot:hover { transform: scale(1.18); }
.hotspot.is-active {
  animation: none;
  transform: scale(1.18);
}
.hotspot__hint {
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  transform: translateX(-50%);
  width: 150px;
  pointer-events: none;
  color: rgba(255,255,255,0.82);
  font-size: 8.8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.18;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 14px rgba(168,85,247,0.85);
  opacity: 0.9;
}
@keyframes hotspotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 6px rgba(168,85,247,0.18),
      0 0 16px rgba(230,180,255,1),
      0 0 40px rgba(168,85,247,0.85),
      0 0 90px rgba(139,92,246,0.5);
  }
  50% {
    transform: scale(1.18);
    box-shadow:
      0 0 0 14px rgba(168,85,247,0.10),
      0 0 26px rgba(230,180,255,1),
      0 0 60px rgba(168,85,247,0.95),
      0 0 120px rgba(139,92,246,0.6);
  }
}

.hotspot-panel {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(360px, 31vw, 500px);
  height: 100vh;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 58px 30px 24px;
  border-radius: 0 18px 18px 0;
  background: rgba(9,6,24,0.92);
  border-right: 1px solid rgba(200,150,255,0.22);
  box-shadow: 18px 0 50px rgba(5,2,18,0.45), inset -1px 0 0 rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateX(-18px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 260ms cubic-bezier(0.4,0,0.2,1);
}
.hotspot-panel.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hotspot-panel__close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.45); font-size: 18px; line-height: 1;
  transition: color 200ms;
}
.hotspot-panel__close:hover { color: #fff; }
.hotspot-panel__title {
  margin: 0 0 10px;
  font-size: 17px; font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.18;
  color: #fff;
  text-transform: uppercase;
}
.hotspot-panel__text {
  margin: 0 0 12px;
  font-size: 12.4px; line-height: 1.45; font-weight: 300;
  color: rgba(255,255,255,0.85);
}
.hotspot-panel__section {
  margin: 11px 0;
}
.hotspot-panel__section-title {
  margin: 0 0 6px;
  font-size: 9.4px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200,150,255,0.95);
}
.hotspot-panel__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hotspot-panel__list li {
  position: relative;
  padding-left: 13px;
  font-size: 10.8px;
  line-height: 1.29;
  color: rgba(255,255,255,0.74);
}
.hotspot-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(200,150,255,0.9);
  box-shadow: 0 0 10px rgba(168,85,247,0.55);
}
.hotspot-panel__example {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid rgba(168,85,247,0.75);
  border-radius: 0 12px 12px 0;
  background: rgba(168,85,247,0.10);
  font-size: 10.8px; line-height: 1.35;
  color: rgba(255,255,255,0.75);
  font-style: italic;
}
.hotspot-panel__example-label {
  display: block;
  font-style: normal; font-weight: 700;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(200,150,255,0.9);
  margin-bottom: 4px;
}
.hotspot-panel__cta {
  display: none;
  margin-top: 20px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(120deg, #8b5cf6, #a855f7);
  color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  box-shadow: 0 4px 22px rgba(139,92,246,0.45);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.hotspot-panel__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.65);
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav { position: absolute; top: 24px; left: 24px; z-index: 10; opacity: 0; pointer-events: none; transition: opacity 400ms ease; }
.nav.is-visible { opacity: 1; pointer-events: auto; }
.nav__toggle {
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(10,6,20,0.6);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.75);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__list {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(10,6,20,0.75);
  backdrop-filter: blur(20px);
  list-style: none;
}
.nav.is-open .nav__list { display: flex; }
.nav__list button { padding: 8px 16px; border-radius: 8px; font-size: 11px; color: rgba(255,255,255,0.7); text-align: left; width: 100%; }
.nav__list button:hover { background: rgba(168,85,247,0.15); color: #fff; }

/* ══════════════════════════════════════════
   SOUND BUTTON
══════════════════════════════════════════ */
.sound-btn {
  position: absolute;
  bottom: 24px; left: 24px;
  z-index: 10;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,6,20,0.6);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  display: none;
  align-items: center;
  justify-content: center;
}
.sound-btn.is-visible { display: flex; }
.sound-btn:hover { border-color: rgba(168,85,247,0.5); color: #fff; }
.sound-btn.is-muted {
  color: rgba(255,255,255,0.42);
  border-color: rgba(255,255,255,0.08);
  background: rgba(10,6,20,0.42);
}

/* ══════════════════════════════════════════
   WEBSITE-LINKS (unten rechts)
══════════════════════════════════════════ */
.website-links {
  position: absolute;
  bottom: 28px; right: 28px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}
.website-links.is-visible { opacity: 1; pointer-events: auto; }
.website-links__label { font-size: 8px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.website-links__btn {
  padding: 7px 18px;
  border-radius: 14px;
  border: 1px solid rgba(168,85,247,0.35);
  background: rgba(10,4,24,0.6);
  backdrop-filter: blur(14px);
  color: rgba(216,180,254,0.85);
  font-size: 10px;
  text-decoration: none;
  transition: border-color 250ms ease, color 250ms ease;
}
.website-links__btn:hover { border-color: rgba(192,132,252,0.7); color: #fff; }

/* ══════════════════════════════════════════
   ZOOM-IN TRANSITION
══════════════════════════════════════════ */
.zoom-transition {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms cubic-bezier(0.4,0,0.2,1);
}
.zoom-transition.is-playing { opacity: 1; }

/* ══════════════════════════════════════════
   DETAIL VIEW (Problem → Transformation → Lösung)
══════════════════════════════════════════ */
.detail { position: absolute; inset: 0; z-index: 7; opacity: 0; pointer-events: none; transition: opacity 350ms ease; background: #000; }
.detail.is-visible { opacity: 1; pointer-events: auto; }

.detail__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Sanfter Crossfade — verhindert Blackframes beim Videowechsel */
  transition: opacity 280ms ease;
}
.detail__video.is-active { opacity: 1; z-index: 1; }

.detail__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.detail__header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(310px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  padding: 24px 28px;
}

.detail__left-controls {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.detail__label {
  justify-self: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 16px rgba(0,0,0,0.65), 0 0 20px rgba(168,85,247,0.35);
}

.detail__back, .detail__back-problem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 14px;
  background: rgba(10,6,20,0.55);
  backdrop-filter: blur(12px);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 250ms ease, color 250ms ease;
}
.detail__back { border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.75); }
.detail__back:hover { border-color: rgba(168,85,247,0.5); color: #fff; }

.detail__back-problem { display: none; justify-self: end; border: 1px solid rgba(168,85,247,0.35); color: rgba(216,180,254,0.85); }
.detail__back-problem.is-visible { display: inline-flex; }
.detail__back-problem:hover { border-color: rgba(192,132,252,0.7); color: #fff; }

/* Transformieren CTA */
.detail__cta {
  position: absolute;
  z-index: 8;
  bottom: 44px;
  left: 50%;
  translate: -50% 0;
  padding: 14px 36px;
  border-radius: 14px;
  border: 1px solid rgba(230,190,255,0.75);
  background: linear-gradient(135deg, #a855f7, #c084fc);
  box-shadow:
    0 0 18px rgba(192,132,252,0.75),
    0 0 48px rgba(168,85,247,0.45),
    inset 0 1px 0 rgba(255,255,255,0.35);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(168,85,247,0.5);
  transition: box-shadow 300ms ease, border-color 300ms ease, transform 250ms ease;
}
.detail__cta:hover {
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow:
    0 0 26px rgba(192,132,252,0.95),
    0 0 70px rgba(168,85,247,0.6),
    inset 0 1px 0 rgba(255,255,255,0.45);
}

.detail-remote {
  position: relative;
  display: grid;
  grid-template-columns: 32px 36px 32px;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 10px;
  background: rgba(8,5,20,0.68);
  box-shadow: 0 10px 34px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
}

.detail-remote__btn {
  display: grid;
  place-items: center;
  width: 100%;
  height: 30px;
  border: 1px solid rgba(190,150,255,0.24);
  border-radius: 8px;
  background: rgba(18,10,36,0.76);
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.detail-remote__home {
  color: #fff;
  background: linear-gradient(135deg, rgba(126,34,206,0.88), rgba(168,85,247,0.82));
  border-color: rgba(230,190,255,0.52);
}

.detail-remote__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(230,190,255,0.72);
  background: rgba(38,18,70,0.88);
}

.detail-remote__home:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(147,51,234,0.95), rgba(192,132,252,0.9));
}

.detail-remote__btn:disabled,
.detail-remote__btn.is-disabled {
  cursor: default;
  opacity: 0.34;
}

/* ══════════════════════════════════════════
   ROTATE PROMPT
══════════════════════════════════════════ */
.rotate-prompt {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(ellipse at center, #0d0720 0%, #04040a 100%);
  color: #fff;
  text-align: center;
  padding: 40px;
  padding:
    max(40px, env(safe-area-inset-top))
    max(40px, env(safe-area-inset-right))
    max(40px, env(safe-area-inset-bottom))
    max(40px, env(safe-area-inset-left));
}
.rotate-prompt__title { font-size: 18px; font-weight: 300; color: #a78bfa; }
.rotate-prompt__sub { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

@media (orientation: portrait) and (max-width: 768px) {
  .rotate-prompt { display: none; }
}

@media (orientation: portrait) and (max-width: 1024px) {
  .rotate-prompt { display: none; }
}

@media (orientation: landscape) and (max-width: 1024px) and (max-height: 560px) {
  html, body,
  .intro,
  .experience,
  .cinema,
  .detail {
    height: 100dvh;
    min-height: 100dvh;
  }

  .intro__logo-wrap { margin-bottom: 10px; }
  .intro__logo { width: clamp(52px, 13vh, 76px); }
  .intro__title {
    font-size: clamp(46px, 16vh, 78px);
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }
  .intro__tagline {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 0.38em;
  }
  .intro__enter {
    min-height: 44px;
    margin-top: 28px;
    padding: 11px 30px;
    border-radius: 12px;
    font-size: 9px;
    letter-spacing: 0.24em;
  }

  .skip-btn {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 7.5px;
    letter-spacing: 0.09em;
  }

  .service-card[data-service="buchhaltung"] { left: 5%; top: 9%; }
  .service-card[data-service="website"] { right: 5%; top: 9%; }
  .service-card[data-service="ai"] { left: 5%; bottom: 9%; }
  .service-card[data-service="finance"] { right: 5%; bottom: 9%; }
  .service-card { max-width: 31vw; }
  .service-card__title { font-size: 10px; letter-spacing: 0.045em; line-height: 1.08; }
  .service-card__sub { font-size: 7.5px; letter-spacing: 0.12em; }

  .nav {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
  }
  .nav__toggle {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 7.5px;
    letter-spacing: 0.09em;
  }
  .nav__list {
    gap: 3px;
    margin-top: 6px;
    padding: 8px;
  }
  .nav__list button {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .sound-btn {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .website-links {
    display: none !important;
  }

  .detail__header {
    grid-template-columns: minmax(170px, 1fr) auto minmax(112px, 1fr);
    padding: max(9px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  }
  .detail__label {
    max-width: 42vw;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-align: center;
    line-height: 1.15;
  }
  .detail__back,
  .detail__back-problem {
    min-height: 32px;
    max-width: 128px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 7.2px;
    letter-spacing: 0.07em;
    line-height: 1.1;
  }

  .detail__cta {
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 38px;
    max-width: min(78vw, 340px);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 8px;
    letter-spacing: 0.11em;
    white-space: normal;
    text-align: center;
  }

  .detail-remote {
    grid-template-columns: 28px 32px 28px;
    gap: 4px;
    padding: 4px;
  }

  .detail-remote__btn {
    height: 28px;
    font-size: 13px;
  }

  .hotspot {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
  }
  .hotspot__hint {
    top: calc(100% + 6px);
    width: 118px;
    font-size: 7.2px;
    line-height: 1.15;
    letter-spacing: 0.05em;
  }

  .hotspot-panel {
    width: clamp(292px, 44vw, 390px);
    height: 100dvh;
    max-height: 100dvh;
    padding: 46px 18px calc(16px + env(safe-area-inset-bottom));
    border-radius: 0 14px 14px 0;
  }
  .hotspot-panel__close {
    top: 7px;
    right: 9px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .hotspot-panel__title {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.02em;
  }
  .hotspot-panel__text {
    margin-bottom: 9px;
    font-size: 10.8px;
    line-height: 1.35;
  }
  .hotspot-panel__section { margin: 9px 0; }
  .hotspot-panel__section-title {
    margin-bottom: 5px;
    font-size: 8.2px;
    letter-spacing: 0.13em;
  }
  .hotspot-panel__list { gap: 3px; }
  .hotspot-panel__list li {
    padding-left: 11px;
    font-size: 9.2px;
    line-height: 1.22;
  }
  .hotspot-panel__list li::before {
    width: 3px;
    height: 3px;
  }
  .hotspot-panel__example {
    margin-bottom: 10px;
    padding: 8px 10px;
    font-size: 9.4px;
    line-height: 1.28;
  }
  .hotspot-panel__example-label {
    margin-bottom: 3px;
    font-size: 8px;
  }
  .hotspot-panel__cta {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 10px;
  }
}

@media (orientation: portrait) and (max-width: 768px) {
  html,
  body,
  .intro,
  .experience,
  .cinema,
  .detail {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .rotate-prompt {
    display: none !important;
  }

  .intro {
    display: grid;
    padding:
      max(16px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .intro__bg,
  .film,
  .detail__video,
  .zoom-transition {
    object-fit: cover;
    object-position: center center;
  }

  .intro__content {
    width: min(92vw, 420px);
    transform: translateY(-2vh);
  }

  .intro__logo-wrap {
    margin-bottom: 14px;
  }

  .intro__logo {
    width: clamp(60px, 18vw, 88px);
  }

  .intro__title {
    font-size: clamp(54px, 18vw, 82px);
    letter-spacing: 0.11em;
    text-indent: 0.11em;
  }

  .intro__tagline {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 0.34em;
  }

  .intro__enter {
    min-height: 46px;
    margin-top: 42px;
    padding: 12px 28px;
    border-radius: 13px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .skip-btn {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 7.5px;
    letter-spacing: 0.08em;
  }

  .services {
    pointer-events: none;
  }

  .service-card {
    max-width: 42vw;
    gap: 4px;
    pointer-events: auto;
  }

  .service-card[data-service="buchhaltung"] {
    left: 5%;
    top: 15%;
    align-items: flex-start;
    text-align: left;
  }

  .service-card[data-service="website"] {
    right: 5%;
    top: 15%;
    align-items: flex-end;
    text-align: right;
  }

  .service-card[data-service="ai"] {
    left: 5%;
    bottom: 16%;
    align-items: flex-start;
    text-align: left;
  }

  .service-card[data-service="finance"] {
    right: 5%;
    bottom: 16%;
    align-items: flex-end;
    text-align: right;
  }

  .service-card__title {
    font-size: 9px;
    line-height: 1.08;
    letter-spacing: 0.035em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.65);
  }

  .service-card__sub {
    font-size: 6.8px;
    letter-spacing: 0.10em;
  }

  .nav {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
  }

  .nav__toggle {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 7.5px;
    letter-spacing: 0.08em;
  }

  .nav__list {
    max-width: min(236px, 70vw);
    gap: 3px;
    margin-top: 6px;
    padding: 8px;
  }

  .nav__list button {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 8.5px;
    line-height: 1.18;
    white-space: normal;
  }

  .sound-btn {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .website-links {
    display: none !important;
  }

  .detail__header {
    grid-template-columns: minmax(160px, 1fr) minmax(0, 1fr) 72px;
    gap: 8px;
    padding:
      max(8px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      8px
      max(10px, env(safe-area-inset-left));
  }

  .detail__label {
    max-width: 52vw;
    font-size: 10.5px;
    line-height: 1.12;
    letter-spacing: 0.11em;
    text-align: center;
  }

  .detail__back,
  .detail__back-problem {
    min-height: 30px;
    max-width: 82px;
    padding: 6px 7px;
    border-radius: 10px;
    font-size: 6.7px;
    line-height: 1.08;
    letter-spacing: 0.04em;
  }

  .detail__cta {
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 40px;
    max-width: 84vw;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 8px;
    line-height: 1.18;
    letter-spacing: 0.08em;
    white-space: normal;
    text-align: center;
  }

  .detail-remote {
    grid-template-columns: 27px 31px 27px;
    gap: 3px;
    padding: 3px;
  }

  .detail-remote__btn {
    height: 27px;
    font-size: 12px;
  }

  .hotspot {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
  }

  .hotspot__hint {
    top: calc(100% + 5px);
    width: 96px;
    font-size: 6.7px;
    line-height: 1.12;
    letter-spacing: 0.025em;
  }

  .hotspot-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(64dvh, 560px);
    max-height: 64dvh;
    padding: 44px 18px calc(16px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid rgba(168,85,247,0.28);
    border-radius: 16px 16px 0 0;
    transform: translateY(18px);
  }

  .hotspot-panel.is-visible {
    transform: translateY(0);
  }

  .hotspot-panel__close {
    top: 4px;
    right: 8px;
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .hotspot-panel__title {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.015em;
  }

  .hotspot-panel__text {
    margin-bottom: 9px;
    font-size: 10.6px;
    line-height: 1.36;
  }

  .hotspot-panel__section {
    margin: 9px 0;
  }

  .hotspot-panel__section-title {
    margin-bottom: 5px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .hotspot-panel__list {
    gap: 3px;
  }

  .hotspot-panel__list li {
    padding-left: 11px;
    font-size: 9.1px;
    line-height: 1.24;
  }

  .hotspot-panel__list li::before {
    width: 3px;
    height: 3px;
  }

  .hotspot-panel__example {
    margin: 9px 0 10px;
    padding: 8px 10px;
    font-size: 9.3px;
    line-height: 1.28;
  }

  .hotspot-panel__example-label {
    margin-bottom: 3px;
    font-size: 8px;
  }

  .hotspot-panel__cta {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 9.5px;
  }

  body {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
  }

  .intro,
  .experience {
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100dvh;
    height: 100dvw;
    min-width: 100dvh;
    min-height: 100dvw;
    transform: rotate(90deg) translateY(-100%);
    transform-origin: top left;
  }

  .intro.is-leaving {
    transform: rotate(90deg) translateY(-100%) scale(1.02);
  }

  .intro__content {
    transform: none;
  }

  .cinema,
  .detail {
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .service-card {
    max-width: 31dvh;
  }

  .service-card[data-service="buchhaltung"] {
    left: 5%;
    top: 9%;
  }

  .service-card[data-service="website"] {
    right: 5%;
    top: 9%;
  }

  .service-card[data-service="ai"] {
    left: 5%;
    bottom: 9%;
  }

  .service-card[data-service="finance"] {
    right: 5%;
    bottom: 9%;
  }

  .hotspot-panel {
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: clamp(292px, 44dvh, 390px);
    height: 100%;
    max-height: 100%;
    border-top: 0;
    border-right: 1px solid rgba(168,85,247,0.22);
    border-radius: 0 14px 14px 0;
    transform: translateX(-18px);
  }

  .hotspot-panel.is-visible {
    transform: translateX(0);
  }
}

/* Premium glass-room reveal and calm ambient loop. */
.services:not(.has-revealed) .room-orb {
  opacity: 0;
  transform: none;
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
  filter: none;
}
.services.is-revealing .room-orb {
  animation: glassRoomReveal 700ms ease-out both;
  animation-delay: var(--reveal-delay, 0ms);
}
.room-orb[data-service="buchhaltung"] { --reveal-delay: 0ms; }
.room-orb[data-service="website"] { --reveal-delay: 70ms; }
.room-orb[data-service="ai"] { --reveal-delay: 140ms; }
.room-orb[data-service="finance"] { --reveal-delay: 210ms; }

.services.has-revealed .room-orb:not(.is-active) {
  opacity: 1;
  transform: none;
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
  animation: none;
}
.services.has-revealed .room-orb .go-sheen {
  animation: none;
}
.services.has-revealed .room-orb .go-refl {
  animation: none;
}

@keyframes glassRoomReveal {
  0% {
    opacity: 0;
    transform: none;
    filter: none;
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes glassAmbientGlow {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px rgba(255,255,255,0.15))
      drop-shadow(0 0 26px rgba(168,85,247,0));
  }
  50% {
    filter:
      drop-shadow(0 0 8px rgba(255,255,255,0.22))
      drop-shadow(0 0 28px rgba(168,85,247,0.10));
  }
}

@keyframes glassSheenDrift {
  0%, 100% { opacity: 0.56; transform: translateX(-1px); }
  45% { opacity: 0.92; transform: translateX(1.5px); }
}

@keyframes glassReflectionBreath {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.76; }
}

@keyframes connectionLightSweep {
  0%, 100% { transform: translateX(-2%) translateY(1%); opacity: 0.22; }
  50% { transform: translateX(2%) translateY(-1%); opacity: 0.46; }
}

@media (prefers-reduced-motion: reduce) {
  .services:not(.has-revealed) .room-orb,
  .services.is-revealing .room-orb {
    opacity: 1;
    transform: none;
    filter:
      drop-shadow(0 0 6px rgba(255,255,255,0.15))
      drop-shadow(0 0 30px rgba(255,255,255,0));
    animation: none;
  }
  .services.has-revealed .room-orb,
  .services.has-revealed .room-orb .go-sheen,
  .services.has-revealed .room-orb .go-refl,
  .cinema.is-final.is-ambient::after {
    animation: none;
  }
}

/* Einheitliche Box-Optik: rechteckige Kästen mit dezent abgerundeten Ecken. */
.intro__enter,
.skip-btn,
.nav__toggle,
.nav__list,
.nav__list button,
.website-links__btn,
.detail__back,
.detail__back-problem,
.detail__cta,
.detail-remote,
.detail-remote__btn,
.hotspot-panel__cta,
.hotspot-panel__example,
.sound-btn {
  border-radius: 8px !important;
}

.hotspot-panel {
  border-radius: 0 10px 10px 0 !important;
}
