:root {
  --rose: #e8a3b3;
  --rose-light: #fbe8ec;
  --cream: #fff8f3;
  --wine: #8e1f45;
  --wine-dark: #5a1430;
  --gold: #c9a35b;
  --text: #4a2a35;
  --muted: #8a6a74;
  --card: #ffffffcc;
  --shadow: 0 10px 30px rgba(142, 31, 69, 0.12);
  --radius: 18px;
  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --serif: 'Lora', Georgia, serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--serif);
  color: var(--text);
  background: radial-gradient(circle at 50% 0%, var(--rose-light), var(--cream) 60%) fixed;
  line-height: 1.6;
}

a { color: var(--wine); }

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--wine);
  line-height: 1.1;
}

.muted { color: var(--muted); }

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

/* --- Kopfzeile ---------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 16px;
  background: rgba(255, 248, 243, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(142, 31, 69, 0.08);
}

.brand {
  font-family: var(--script); font-size: 1.8rem; text-decoration: none; color: var(--wine);
}
.brand-heart { color: #e0405e; font-family: var(--serif); font-size: 1.1rem; vertical-align: middle; }

.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 0.95rem; }
.menu a { text-decoration: none; color: var(--text); }
.menu a[aria-current="page"], .menu a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }

.inline { display: inline; margin: 0; }
button.link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer;
}
button.link:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }

/* --- Formulare ---------------------------------------------------------- */

.stack { display: flex; flex-direction: column; gap: 14px; }

label { display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; text-align: left; }

input {
  font: inherit; padding: 10px 14px;
  border: 1px solid #e6c9d0; border-radius: 12px; background: #fff; color: var(--text);
}
input:focus { outline: 2px solid var(--rose); border-color: var(--rose); }

.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  padding: 11px 22px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #e0405e, var(--wine)); color: #fff;
  box-shadow: 0 6px 18px rgba(142, 31, 69, 0.25);
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.alert { background: #fde2e6; color: var(--wine-dark); padding: 10px 14px; border-radius: 12px; }
.notice { background: #e9f6ee; color: #23613d; padding: 10px 14px; border-radius: 12px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

.content { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.content h1 { font-size: 3rem; margin: 8px 0 16px; }

/* --- Login -------------------------------------------------------------- */

.page-login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }

.login-card {
  width: 100%; max-width: 380px; text-align: center;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 32px 24px;
}
.login-card h1 { font-size: 3.2rem; margin: 4px 0; }
.login-heart { width: 72px; height: auto; animation: beat 1.6s ease-in-out infinite; }

@keyframes beat {
  0%, 40%, 100% { transform: scale(1); }
  15% { transform: scale(1.12); }
  28% { transform: scale(1.04); }
}

/* --- Startseite --------------------------------------------------------- */

.hero {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 16px 64px;
}

.hero-heart {
  background: none; border: 0; padding: 0; cursor: pointer;
  width: min(180px, 40vw);
  filter: drop-shadow(0 12px 24px rgba(224, 64, 94, 0.35));
  animation: beat 1.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.hero-heart img { width: 100%; height: auto; display: block; }

.hero-title { font-size: clamp(3.5rem, 14vw, 6.5rem); margin: 8px 0 12px; }
.hero-hello { margin-top: 32px; font-style: italic; color: var(--muted); }

.counter {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  width: 100%; max-width: 620px;
}
.counter div {
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 4px; display: flex; flex-direction: column; align-items: center;
}
.counter strong { font-size: clamp(1.4rem, 6vw, 2.2rem); color: var(--wine); font-variant-numeric: tabular-nums; }
.counter span { font-size: 0.8rem; color: var(--muted); }

@media (max-width: 480px) {
  .counter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Fallende Herzen / Blütenblätter */
.petals { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.petal {
  position: absolute; top: -40px;
  color: #e0405e; opacity: 0.55;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translate(var(--drift), 110vh) rotate(var(--spin)); opacity: 0; }
}

.fireworks-layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

@media (prefers-reduced-motion: reduce) {
  .login-heart, .hero-heart { animation: none; }
  .petals { display: none; }
}
