/* ==========================================================================
   waterbounce – Styles
   ========================================================================== */

:root {
  /* Reines Schwarz, damit Video-Ränder unsichtbar mit der Seite verschmelzen */
  --black: #000000;
  --dim: #8C8A99;
  --text: #FFFFFF;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Bühne: ganze Fläche = Checkout-Link ---------- */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: calc(clamp(1rem, 6vh, 3.75rem) + var(--safe-bottom));
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  background: var(--black) url("../img/hero-poster.jpg") center / contain no-repeat;
  -webkit-tap-highlight-color: transparent;
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Hochformat: Die Visuals sitzen mittig, die Seiten sind schwarz. Video
   breiter als den Bildschirm skalieren, damit es nicht winzig wirkt. */
@media (orientation: portrait) {
  .stage { background-size: min(180vw, 177.78vh) auto; }
  .stage-video {
    left: 50%;
    width: min(180vw, 177.78vh);
    transform: translateX(-50%);
  }
}

/* ---------- Kaufen-Button: durchsichtig, mit wanderndem Lichtreflex ---------- */
@property --cta-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.stage-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.1rem);
  padding: clamp(0.75rem, 1.8vh, 0.95rem) clamp(1.3rem, 5vw, 1.9rem);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

/* Rand: feine Linie + ein heller Reflex, der ringsum läuft */
.stage-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--cta-angle),
    rgb(255 255 255 / 0.35) 0deg,
    rgb(255 255 255 / 0.35) 250deg,
    #fff 300deg,
    rgb(255 255 255 / 0.35) 350deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.cta-label {
  font-weight: 500;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
  letter-spacing: 0.01em;
}

.cta-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-left: clamp(0.75rem, 3vw, 1.1rem);
  border-left: 1px solid rgb(255 255 255 / 0.3);
}
.cta-old {
  color: rgb(255 255 255 / 0.55);
  text-decoration: line-through;
  font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
}
.cta-new {
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
}

/* Die ganze Fläche ist klickbar, also reagiert der Button auf Hover überall. */
.stage:hover .stage-cta {
  background: rgb(255 255 255 / 0.1);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 0 32px rgb(255 255 255 / 0.18);
}
.stage:active .stage-cta { transform: scale(0.97); }

/* Fokus-Ring am Button statt am Bildschirmrand */
.stage:focus-visible { outline: none; }
.stage:focus-visible .stage-cta {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .stage-cta { animation: cta-in 0.8s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .stage-cta::before { animation: cta-shine 4s linear infinite; }
}
@keyframes cta-in {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes cta-shine {
  to { --cta-angle: 360deg; }
}

/* ---------- Rechtliche Links: dezent, aber sichtbar ---------- */
.legal-links {
  position: fixed;
  right: 1rem;
  bottom: calc(0.75rem + var(--safe-bottom));
  z-index: 10;
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
}
.legal-links a {
  color: var(--dim);
  text-decoration: none;
  padding: 0.25rem 0;
}
.legal-links a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 600px) {
  .legal-links { right: 50%; transform: translateX(50%); }
}

/* ---------- Rechtliche Unterseiten ---------- */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) 1.25rem calc(4rem + var(--safe-bottom));
}
.legal .legal-back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--dim);
  font-size: 0.9rem;
  text-decoration: none;
}
.legal .legal-back:hover { color: var(--text); }
.legal h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 2rem;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}
.legal p, .legal address { margin: 0 0 1rem; }
.legal address { font-style: normal; }
.legal a { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
