/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}

/* ---------- Theme ---------- */
:root {
  --pink-50: #fff6fb;
  --pink-100: #ffe9f5;
  --pink-200: #ffd3ec;
  --pink-400: #f48fc7;
  --pink-500: #ec6bb6;
  --pink-600: #d84fa0;
  --pink-700: #b13a83;
  --ink: #3a1230;
  --ink-soft: #7a4a6a;
  --glass-border: rgba(255, 255, 255, 0.85);
  --shadow-pink: rgba(236, 107, 182, 0.35);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(120% 90% at 50% 0%, var(--pink-50) 0%, #ffffff 55%, var(--pink-100) 100%);
  -webkit-font-smoothing: antialiased;
}

/* ---------- One screen, zero scroll (home only) ---------- */
html:has(body.home) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.home {
  position: fixed;
  inset: 0;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

/* ---------- 3D canvas ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + clamp(0.5rem, 2vh, 1.5rem))
    max(1.1rem, env(safe-area-inset-right))
    calc(env(safe-area-inset-bottom) + clamp(0.4rem, 1.2vh, 1rem))
    max(1.1rem, env(safe-area-inset-left));
}

.center {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(0.5rem, 2.2vh, 1.5rem);
}

/* ---------- Logo (tilt layer + shine) ---------- */
.logo-tilt {
  perspective: 800px;
}

.logo-wrap {
  position: relative;
  width: min(80vw, 400px, 108vh);
  transform-style: preserve-3d;
  will-change: transform;
}

.logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 26px var(--shadow-pink));
}

.shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: url("/assets/logo.png");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("/assets/logo.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.shine::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    75deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shine-sweep 5.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

@keyframes shine-sweep {
  0% {
    transform: translateX(-20%) skewX(-12deg);
  }
  22%,
  100% {
    transform: translateX(320%) skewX(-12deg);
  }
}

/* ---------- Copy ---------- */
.copy p {
  margin: 0 0 clamp(0.3rem, 1vh, 0.7rem);
  font-size: clamp(0.85rem, 1.1vh + 0.55rem, 1.05rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.copy p:first-child {
  color: var(--ink);
}

.copy .highlight {
  font-weight: 600;
  font-size: clamp(1rem, 1.4vh + 0.6rem, 1.25rem);
  color: var(--pink-700);
  letter-spacing: 0.01em;
}

.copy .tagline {
  font-style: italic;
  color: var(--pink-600);
  margin-bottom: 0;
}

/* ---------- Signup (fixed-height slot, no layout shift) ---------- */
.signup {
  width: 100%;
  max-width: 420px;
}

.slot {
  position: relative;
}

.field-glass {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 214, 238, 0.45));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px var(--shadow-pink), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}

.field-glass:focus-within {
  box-shadow: 0 10px 34px var(--shadow-pink), 0 0 0 3px var(--pink-200);
}

#email {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  /* 16px+ verhindert den iOS-Auto-Zoom beim Fokussieren */
  font-size: 16px;
  padding: 0.5rem 0;
  color: var(--ink);
}

#email::placeholder {
  color: var(--ink-soft);
  opacity: 0.7;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

#subscribeBtn {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  box-shadow: 0 4px 14px var(--shadow-pink), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

#subscribeBtn:hover {
  transform: translateY(-1px);
}

#subscribeBtn:active {
  transform: scale(0.98);
}

#subscribeBtn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Success overlays the form slot — identical box, zero height change */
.signup-form.is-hidden {
  visibility: hidden;
}

.success-state[hidden] {
  display: none;
}

.success-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 214, 238, 0.45));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px var(--shadow-pink), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.success-text {
  margin: 0;
  font-weight: 600;
  color: var(--pink-700);
  font-size: 1.05rem;
}

.sparkle-inline {
  display: inline-block;
  animation: twinkle 1.4s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Fixed one-line message slot — reserves height, never shifts layout */
.form-msg {
  height: 1.2em;
  overflow: hidden;
  margin: clamp(0.25rem, 0.8vh, 0.5rem) 0 0;
  font-size: 0.8rem;
  color: var(--pink-700);
}

.form-msg.is-error {
  color: #b0304f;
}

.disclaimer {
  margin: 0;
  font-size: clamp(0.62rem, 0.6vh + 0.4rem, 0.72rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.disclaimer a {
  color: var(--pink-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Tap sparkle burst (success) ---------- */
.tap-burst {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  width: 10px;
  height: 10px;
  color: var(--pink-500);
  font-size: 1rem;
  transform: translate(-50%, -50%);
  animation: burst-fly 0.7s ease-out forwards;
}

@keyframes burst-fly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--bx, 0), var(--by, -40px))
      scale(1.1);
  }
}

/* ---------- Footer: two mini lines (links + credit) ---------- */
.site-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding-top: clamp(0.3rem, 1vh, 0.7rem);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.credit-line {
  margin: 0;
  font-size: 0.65rem;
  opacity: 0.85;
}

.credit-line a {
  color: inherit;
  text-decoration: none;
}

.credit-line .credit-name {
  color: var(--pink-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.credit-line a:hover .credit-name {
  color: var(--pink-700);
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--pink-600);
  text-decoration: underline;
}

.ig-link {
  display: inline-flex;
  color: var(--pink-600);
  transition: color 0.2s ease;
}

.ig-link:hover {
  color: var(--pink-700);
}

.sep {
  opacity: 0.6;
}

/* ---------- Legal pages (normal scrolling) ---------- */
.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  color: var(--ink);
  line-height: 1.6;
}

.legal-page h1 {
  color: var(--pink-700);
}

.legal-page h2 {
  color: var(--pink-700);
  font-size: 1.1rem;
  margin-top: 2rem;
}

.legal-page a {
  color: var(--pink-600);
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page li {
  margin-bottom: 0.3rem;
}

.legal-page .credit {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.legal-page a.back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--pink-600);
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-page a.back:hover {
  text-decoration: underline;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .shine::after,
  .sparkle-inline,
  .tap-burst {
    animation: none !important;
  }
  #subscribeBtn,
  .ig-link {
    transition: none !important;
  }
}

/* Brand is intentionally light/clean in both color schemes — no dark mode
   override, the Y2K-chrome-on-white look is the point. */
