/* ============================================================
   base.css — Reset, Tokens, Hintergrund-Ebenen, Typografie
   ============================================================ */

:root {
  /* Farben */
  --pink-50:  #fff2f8;
  --pink-200: #ffc9e4;
  --pink-400: #ff7ab8;
  --pink-500: #f4508f;
  --lilac-300: #cfb2ff;
  --lilac-500: #9b6bff;
  --violet-700: #5b2ea6;
  --ink:      #3d1f52;
  --ink-soft: #6b4680;

  /* Glas */
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-bg-strong: rgba(255, 255, 255, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.72);
  --glass-blur: 18px;

  /* Radien */
  --r-card: 24px;
  --r-btn: 22px;
  --r-pill: 999px;

  /* Schatten */
  --sh-card: 0 8px 24px rgba(120, 40, 120, 0.13), 0 2px 6px rgba(120, 40, 120, 0.08);
  --sh-card-hi: 0 18px 40px rgba(120, 40, 120, 0.22), 0 4px 10px rgba(120, 40, 120, 0.12);
  --sh-btn: 0 10px 26px rgba(244, 80, 143, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);

  /* Safe Areas */
  --pad-top: max(20px, env(safe-area-inset-top));
  --pad-bot: max(20px, env(safe-area-inset-bottom));
}

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

/* muss !important sein: sonst gewinnt jede display-Klasse (.btn--block) gegen [hidden] */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #f9d7ec;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: fixed;
  inset: 0;
}

button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
b { font-weight: 600; }

/* Scrollbalken nirgends sichtbar */
::-webkit-scrollbar { width: 0; height: 0; display: none; }
* { scrollbar-width: none; }

/* ---------- Hintergrund: Verlauf ---------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(165deg, #ffe3f3 0%, #fdd3ee 26%, #efc4f7 58%, #d9bafc 82%, #c9b3fb 100%);
}

/* ---------- Hintergrund: weiche Blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: -12%;
  z-index: -2;
  filter: blur(58px);
  opacity: 0.62;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.blob--1 {
  width: 62vw; height: 62vw;
  top: -8%; left: -18%;
  background: radial-gradient(circle at 35% 35%, #ff9dd2, rgba(255, 157, 210, 0) 70%);
  animation: drift-a 22s var(--ease-io) infinite;
}
.blob--2 {
  width: 70vw; height: 70vw;
  bottom: -14%; right: -22%;
  background: radial-gradient(circle at 60% 40%, #b18cff, rgba(177, 140, 255, 0) 70%);
  animation: drift-b 27s var(--ease-io) infinite;
}
.blob--3 {
  width: 46vw; height: 46vw;
  top: 38%; right: -8%;
  background: radial-gradient(circle at 50% 50%, #ffd0ec, rgba(255, 208, 236, 0) 70%);
  animation: drift-c 19s var(--ease-io) infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50%      { transform: translate3d(-7vw, -6vh, 0) scale(0.94); }
}
@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.96); }
  50%      { transform: translate3d(-5vw, 7vh, 0) scale(1.14); }
}

/* ---------- Hintergrund: viele kleine Herzchen ---------- */
.bg-hearts {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  contain: strict;
}

.bg-heart {
  position: absolute;
  bottom: -8vh;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  will-change: transform, opacity;
  animation: float-up var(--dur, 16s) linear var(--delay, 0s) infinite;
}

@keyframes float-up {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(var(--s, 1)); opacity: 0; }
  8%   { opacity: var(--o, 0.55); }
  50%  { transform: translate3d(var(--x, 20px), -55vh, 0) rotate(22deg) scale(var(--s, 1)); }
  88%  { opacity: var(--o, 0.55); }
  100% { transform: translate3d(calc(var(--x, 20px) * -1), -112vh, 0) rotate(-14deg) scale(var(--s, 1)); opacity: 0; }
}

/* ---------- Effekt-Canvas (Konfetti / Glitzer) ---------- */
.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

/* ---------- Typografie ---------- */
.title {
  font-size: clamp(22px, 6.4vw, 30px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.title--xl {
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, var(--pink-500), var(--lilac-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title--tight { font-size: clamp(21px, 5.8vw, 27px); }

.lead {
  font-size: clamp(15px, 4.1vw, 17px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 34ch;
  margin-inline: auto;
}
.lead--tight { line-height: 1.45; }

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--violet-700);
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  box-shadow: var(--sh-card);
}

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