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

html, body {
  height: 100%;
  overflow: hidden;
  background: #0e0e0e;
  font-family: 'Poppins', system-ui, sans-serif;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.1) 45%, transparent 70%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.35) 0%, transparent 20%);
  z-index: 1;
}

.copy {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 90%;
  max-width: 700px;
  user-select: none;
}

.copy h1 {
  font-size: clamp(1.6rem, 5.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f0ede8;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.copy p {
  font-size: clamp(0.6rem, 1.6vw, 0.8rem);
  font-weight: 300;
  color: rgba(240, 237, 232, 0.45);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.copy p span {
  color: #c8922a;
  font-weight: 700;
}

/* ── Sound toggle ────────────────────────────────── */
.sound-btn {
  position: fixed;
  top: 1.4rem;
  left: 1.4rem;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  color: #c8922a;
  padding: 0.3rem;
  line-height: 0;
  transition: color 0.2s;
}

.sound-btn:hover {
  color: #e0a83a;
}

/* Waves animate when sound is on */
.sound-btn .wave {
  transform-origin: left center;
  transition: opacity 0.3s;
}
.sound-btn .wave-1 {
  animation: wave-pulse 1.4s ease-in-out infinite;
}
.sound-btn .wave-2 {
  animation: wave-pulse 1.4s ease-in-out infinite 0.35s;
}
@keyframes wave-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

/* X lines hidden by default */
.sound-btn .mute-x {
  opacity: 0;
  transition: opacity 0.25s;
}

/* Muted state: waves out, X in */
.sound-btn.is-muted .wave {
  animation: none;
  opacity: 0;
}
.sound-btn.is-muted .mute-x {
  opacity: 1;
}
.sound-btn.is-muted {
  color: rgba(200, 146, 42, 0.4);
}

/* ── Typewriter cursor ───────────────────────────── */
.tw-cursor {
  display: inline-block;
  font-weight: 300;
  color: #c8922a;
  animation: blink 0.72s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Legal footer ────────────────────────────────── */
.legal-footer {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.3);
}

.legal-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-footer a:hover {
  color: rgba(240, 237, 232, 0.75);
}

/* ── Legal pages (impressum / datenschutz) ───────── */
html:has(.legal-page),
body:has(.legal-page) {
  overflow: auto;
  height: auto;
}

.legal-page {
  min-height: 100vh;
  background: #0e0e0e;
  color: #f0ede8;
  font-family: 'Poppins', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1.5rem 4rem;
}

.legal-page .back-link {
  align-self: flex-start;
  max-width: 680px;
  width: 100%;
  margin: 0 auto 2.5rem;
}

.legal-page .back-link a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-page .back-link a:hover {
  color: rgba(240, 237, 232, 0.75);
}

.legal-content {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f0ede8;
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8922a;
  margin: 2rem 0 0.6rem;
}

.legal-content p,
.legal-content address {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(240, 237, 232, 0.65);
  font-style: normal;
}

.legal-content a {
  color: rgba(200, 146, 42, 0.8);
  text-decoration: none;
}

.legal-content a:hover {
  color: #c8922a;
}

.legal-note {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(240, 237, 232, 0.35);
  border-left: 2px solid #c8922a;
  padding-left: 0.9rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ── Custom cursor ───────────────────────────────── */
@media (pointer: fine) {
  * { cursor: none !important; }

  #cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #c8922a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: left, top;
  }

  #cursor-bee {
    position: fixed;
    width: 36px;
    height: 36px;
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s;
    will-change: left, top, transform;
  }
}

@media (max-width: 480px) {
  .copy {
    bottom: auto;
    top: 62%;
  }

  .copy h1 {
    font-size: clamp(1.4rem, 7.5vw, 2rem);
    letter-spacing: 0.03em;
  }

  .copy p {
    font-size: clamp(0.6rem, 2.8vw, 0.8rem);
  }
}

/* ── Site-Logo (oben mittig, fixed) ─────────────────── */
.site-logo {
  position: fixed;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 160px;
  height: auto;
  display: block;
  pointer-events: none;
}
