:root {
  --color-cream: #fdf3ec;
  --color-cream-soft: #f7e6da;
  --color-rose: #e7aab3;
  --color-rose-deep: #c96b7c;
  --color-burgundy: #6d1f38;
  --color-burgundy-deep: #4a1526;
  --color-text: #3a1620;
  --color-text-soft: #6b3a45;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-soft: 0 12px 32px rgba(74, 21, 38, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Hintergrundverlauf an das Viewport gebunden statt an die Seitenhöhe,
   damit lange, scrollbare Screens nicht im dunklen Bereich des Verlaufs
   landen und dadurch schwer lesbar werden. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, var(--color-cream) 0%, var(--color-cream-soft) 35%, var(--color-rose) 70%, var(--color-burgundy) 130%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app {
  position: relative;
  min-height: 100dvh;
  width: 100%;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 6vw;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.screen.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.screen-inner {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

/* Screen 1: verspielte Deko + Eintritts-Animation ------------------------ */

#screen-1 .screen-inner {
  position: relative;
}

.floating-hearts {
  position: absolute;
  inset: -12vh -10vw auto -10vw;
  height: 46vh;
  pointer-events: none;
  overflow: visible;
  z-index: -1;
}

.floating-hearts span {
  position: absolute;
  bottom: 0;
  font-size: 1.4rem;
  color: var(--color-rose-deep);
  opacity: 0;
  animation: drift-up 7s ease-in infinite;
}

.floating-hearts span:nth-child(1) { left: 6%;  font-size: 1.1rem; animation-delay: 0s;   animation-duration: 8s; }
.floating-hearts span:nth-child(2) { left: 22%; font-size: 1.7rem; animation-delay: 1.4s; animation-duration: 6.5s; }
.floating-hearts span:nth-child(3) { left: 40%; font-size: 0.95rem; animation-delay: 2.6s; animation-duration: 7.5s; }
.floating-hearts span:nth-child(4) { left: 60%; font-size: 1.5rem; animation-delay: 0.8s; animation-duration: 9s; }
.floating-hearts span:nth-child(5) { left: 78%; font-size: 1.1rem; animation-delay: 3.4s; animation-duration: 6.8s; }
.floating-hearts span:nth-child(6) { left: 92%; font-size: 1.35rem; animation-delay: 2s;   animation-duration: 8.4s; }

@keyframes drift-up {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  15% { opacity: 0.55; }
  85% { opacity: 0.4; }
  100% { transform: translateY(-42vh) scale(1.1); opacity: 0; }
}

.glow-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 380px);
  height: min(70vw, 380px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 107, 124, 0.4) 0%, rgba(201, 107, 124, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
  animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.75; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.heart-icon {
  width: 46px;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 6px 14px rgba(109, 31, 56, 0.35));
  animation: heart-pulse 2.4s ease-in-out infinite;
}

.heart-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.flourish {
  width: 140px;
  height: 18px;
  margin: 0.5rem auto 2rem;
  color: var(--color-rose-deep);
  opacity: 0.8;
}

#screen-1 .eyebrow,
#screen-1 h1,
#screen-1 .button-row {
  opacity: 0;
  animation: rise-in 0.7s ease-out forwards;
}

#screen-1 .heart-icon { animation: heart-pulse 2.4s ease-in-out 0.9s infinite, rise-in 0.7s ease-out forwards; }
#screen-1 .flourish { opacity: 0; animation: rise-in 0.7s ease-out 0.3s forwards; }
#screen-1 .eyebrow { animation-delay: 0.05s; }
#screen-1 h1 { animation-delay: 0.2s; }
#screen-1 .button-row { animation-delay: 0.5s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.25;
  color: var(--color-burgundy-deep);
  margin: 0 0 2.5rem;
}

.button-row {
  position: relative;
  display: flex;
  gap: 1rem;
  justify-content: center;
  min-height: 64px;
}

.btn {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-burgundy), var(--color-rose-deep));
  color: var(--color-cream);
  box-shadow: var(--shadow-soft);
}

/* Humorvolles Wachsen des "Ja"-Buttons nach jeder Flucht von "Nein" */
#btn-ja {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-soft);
  border: 1.5px solid var(--color-rose-deep);
}

#btn-nein.is-fleeing {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  transition: top 0.55s cubic-bezier(0.16, 1, 0.3, 1), left 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Terminauswahl */

.date-list {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.doppeldate-row {
  margin: 0.5rem 0 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--color-rose-deep);
}

.lead {
  margin: -1.5rem 0 2rem;
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.idea-group {
  margin-bottom: 1.75rem;
  text-align: left;
}

.idea-group-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-burgundy-deep);
}

.idea-list {
  gap: 0.55rem;
}

.idea-list .checkbox-card {
  padding: 0.7rem 1rem;
}

.checkbox-label small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
  font-weight: 400;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 252, 249, 0.88);
  border: 1.5px solid transparent;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(74, 21, 38, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-card:has(input:checked) {
  border-color: var(--color-rose-deep);
  background: #fffdfb;
}

.checkbox-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.checkbox-box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--color-rose-deep);
  background: var(--color-cream);
  position: relative;
  transition: background 0.2s ease;
}

.checkbox-card input:checked + .checkbox-box {
  background: var(--color-burgundy);
  border-color: var(--color-burgundy);
}

.checkbox-card input:checked + .checkbox-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--color-cream);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.checkbox-label {
  font-size: 0.98rem;
  color: var(--color-text);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.form-error {
  margin-top: 0.9rem;
  color: var(--color-burgundy-deep);
  font-size: 0.92rem;
}

/* Herz-Partikel */

#heart-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}

.heart-particle {
  position: absolute;
  font-size: 1rem;
  color: var(--color-rose-deep);
  opacity: 0.85;
  animation: heart-float 900ms ease-out forwards;
  will-change: transform, opacity;
}

@keyframes heart-float {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -140%) scale(1.1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .btn,
  .heart-particle,
  .floating-hearts span,
  .heart-badge,
  #screen-1 .eyebrow,
  #screen-1 h1,
  #screen-1 .button-row {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
}
