@import url("https://fonts.googleapis.com/css2?family=Grandstander:ital,wght@0,500;0,700;0,800;1,700&family=Nunito:wght@400;600;700;800&display=swap");

:root {
  --mint: #d2ebe8;
  --mint-deep: #bfe2de;
  --card: #ffffff;
  --pink: #e8478b;
  --pink-dark: #c22d6d;
  --ink: #3a3557;
  --ink-soft: #6f6a8c;
  --rose: #f6a5c8;
  --sun: #fcd77f;
  --leaf: #a9dcc4;
  --sky: #a9cdf0;
  --lilac: #cdb3ea;
  --teal: #2fae95;
  --line: #dcecea;
  --shadow: 0 1px 2px rgba(58, 53, 87, 0.06), 0 12px 32px -10px rgba(58, 90, 100, 0.28);
  --shadow-lg: 0 2px 4px rgba(58, 53, 87, 0.06), 0 24px 60px -14px rgba(58, 90, 100, 0.38);
  --display: "Grandstander", "Comic Sans MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--mint);
  /* zarte Pünktchen wie Feenstaub */
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1.2px, transparent 1.6px),
    radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.4px);
  background-size: 46px 46px, 31px 31px;
  background-position: 0 0, 17px 23px;
  font-family: var(--body);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
}

/* ---------- Basis-Bausteine (auch für admin.html) ---------- */

main:not(.page) {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title,
.section-title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--pink);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.05;
  text-align: center;
  margin: 0 0 0.75rem;
}

.script,
.title .script,
.section-title .script {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  color: var(--pink-dark);
  font-size: 1.05em;
  display: inline-block;
  transform: rotate(-4deg) translateY(-0.04em);
  text-decoration: underline wavy var(--sun);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
  text-align: center;
}

.eyebrow::before,
.eyebrow::after {
  content: "✦";
  color: var(--pink);
  margin: 0 0.6em;
  letter-spacing: 0;
}

.card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

input[type="password"],
input[type="text"],
input[type="url"] {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="password"]:focus,
input[type="text"]:focus,
input[type="url"]:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 5px rgba(232, 71, 139, 0.16);
}

button {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--pink);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 6px 0 var(--pink-dark), 0 10px 20px -6px rgba(194, 45, 109, 0.5);
  transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s, background 0.15s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--pink-dark), 0 14px 24px -6px rgba(194, 45, 109, 0.5);
}

button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--pink-dark), 0 4px 10px -4px rgba(194, 45, 109, 0.5);
}

button:disabled {
  cursor: default;
  transform: none;
}

button.secondary {
  background: #fff;
  color: var(--ink-soft);
  box-shadow: 0 0 0 2px var(--line) inset;
}

button.secondary:hover,
button.secondary:active {
  background: #f3faf9;
  transform: none;
  box-shadow: 0 0 0 2px var(--line) inset;
}

.error {
  color: var(--pink-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin-top: 1rem;
}

.login-card h1,
.login-card h2 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--pink);
  font-size: 2rem;
  margin: 0 0 1rem;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---------- Schwebende Laternen ---------- */

.lanterns {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.lantern {
  position: absolute;
  bottom: -120px;
  width: var(--w, 36px);
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(255, 200, 90, 0.75)) drop-shadow(0 0 22px rgba(255, 214, 120, 0.45));
  animation: rise var(--dur, 22s) linear var(--delay, 0s) infinite;
}

.lantern svg {
  display: block;
  width: 100%;
  overflow: visible;
  animation: sway 3.8s ease-in-out infinite alternate;
  transform-origin: 50% 0%;
}

@keyframes rise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(calc(-100vh - 220px));
    opacity: 0;
  }
}

@keyframes sway {
  from {
    transform: rotate(-7deg) translateX(-6px);
  }
  to {
    transform: rotate(7deg) translateX(6px);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vh, 3.5rem) 1rem 9rem;
  overflow: hidden;
}

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.cloud-left {
  width: clamp(120px, 16vw, 210px);
  left: 0;
  top: clamp(1rem, 4vh, 2.5rem);
  animation: drift 9s ease-in-out infinite alternate;
}

.sun-cloud {
  width: clamp(150px, 20vw, 270px);
  right: clamp(-20px, 3vw, 4rem);
  top: clamp(0.8rem, 4vh, 2.5rem);
  animation: drift 11s ease-in-out infinite alternate-reverse;
}

.flower {
  animation: twirl 6s ease-in-out infinite;
}

.flower-red {
  width: 42px;
  left: 6%;
  top: 42%;
}

.flower-pink {
  width: 48px;
  right: 8%;
  top: 34%;
  animation-delay: -2s;
}

@keyframes drift {
  from {
    transform: translateX(-12px);
  }
  to {
    transform: translateX(14px);
  }
}

@keyframes twirl {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(8deg) translateY(-4px);
  }
}

.hero-stage {
  position: relative;
  width: min(680px, 100%);
  aspect-ratio: 600 / 400;
  margin: 0 auto;
  --mx: 0;
  --my: 0;
}

.rainbow {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: auto;
  overflow: visible;
}

.rainbow path {
  fill: none;
  stroke-width: 36;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.85;
  animation: draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) calc(0.15s + var(--i) * 0.16s) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  margin: 0;
  text-align: center;
  color: var(--pink);
  line-height: 0.9;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.hero-title .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.6rem, 15vw, 7.4rem);
  display: flex;
  text-shadow: 0 4px 0 #fff, 0 8px 18px rgba(232, 71, 139, 0.25);
}

.hero-title .big > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scale(0.6) rotate(-8deg);
  animation: pop-in 0.7s var(--ease-bounce) forwards;
}

.hero-title .big > span:nth-child(1) { animation-delay: 0.9s; }
.hero-title .big > span:nth-child(2) { animation-delay: 0.98s; }
.hero-title .big > span:nth-child(3) { animation-delay: 1.06s; }
.hero-title .big > span:nth-child(4) { animation-delay: 1.14s; }
.hero-title .big > span:nth-child(5) { animation-delay: 1.22s; }
.hero-title .big > span:nth-child(6) { animation-delay: 1.3s; }
.hero-title .five > span:nth-child(1) { animation-delay: 1.85s; }

.hero-title .five {
  font-size: clamp(5rem, 22vw, 10.5rem);
  color: var(--pink-dark);
  margin-top: -0.06em;
  position: relative;
}

/* Glitzer am Fünfer */
.hero-title .five::before,
.hero-title .five::after {
  content: "✦";
  position: absolute;
  font-size: 0.22em;
  color: var(--sun);
  text-shadow: none;
  opacity: 0;
  animation: sparkle 2.4s ease-in-out 2.5s infinite;
}

.hero-title .five::before {
  left: -0.35em;
  top: 0.2em;
}

.hero-title .five::after {
  right: -0.4em;
  top: 0.55em;
  animation-delay: 3.6s;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(90deg);
  }
}

.hero-title .letter {
  display: inline-block;
}

/* Wackeln auf der inneren Ebene, damit die Einblend-Animation außen unberührt bleibt */
.hero-title .big > span:hover .letter {
  animation: jiggle 0.6s ease;
}

@keyframes pop-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes jiggle {
  0% { transform: none; }
  30% { transform: translateY(-14px) rotate(-6deg); }
  60% { transform: translateY(2px) rotate(4deg); }
  100% { transform: none; }
}

.hero-title .wird {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  margin: 0.02em 0 -0.12em;
  transform: rotate(-6deg);
  clip-path: inset(0 100% 0 0);
  animation: write 0.8s ease-out 1.45s forwards;
}

@keyframes write {
  to {
    clip-path: inset(0 -10% 0 0);
  }
}

.critter {
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
}

.hero-stage .critter {
  translate: calc(var(--mx) * var(--depth, 10px)) calc(var(--my) * var(--depth, 10px));
  transition: translate 0.4s ease-out;
}

.star {
  width: 22%;
  left: 62%;
  top: -6%;
  --depth: 6px;
  transform-origin: 50% 50%;
  opacity: 0;
  animation: fly-in 1.1s var(--ease-bounce) 1.9s forwards, bob 2.8s ease-in-out 3s infinite;
}

.ariel {
  width: 30%;
  left: -18%;
  top: 30%;
  --depth: 18px;
  transform-origin: 50% 100%;
  opacity: 0;
  animation: slide-left 1s var(--ease-bounce) 0.7s forwards, waddle 3.4s ease-in-out 1.8s infinite;
}

.aurora {
  width: 25%;
  right: -12%;
  top: 34%;
  --depth: 14px;
  transform-origin: 50% 100%;
  opacity: 0;
  animation: slide-right 1s var(--ease-bounce) 0.9s forwards, waddle 3.8s ease-in-out 2s infinite reverse;
}

.belle-peek {
  width: clamp(120px, 15vw, 210px);
  right: max(-20px, calc(50% - 640px));
  bottom: -40px;
  z-index: 3;
  transform-origin: 50% 100%;
  transform: translateY(110%);
  animation: peek 1.2s var(--ease-bounce) 2.3s forwards, nod 5s ease-in-out 3.6s infinite;
}

@keyframes fly-in {
  from { opacity: 0; transform: translate(80px, -60px) rotate(25deg) scale(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-left {
  from { opacity: 0; transform: translateX(-80px) rotate(-10deg); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-right {
  from { opacity: 0; transform: translateX(80px) rotate(10deg); }
  to { opacity: 1; transform: none; }
}

@keyframes peek {
  to { transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { opacity: 1; transform: translateY(0) rotate(0); }
  50% { opacity: 1; transform: translateY(-6px) rotate(-4deg); }
}

@keyframes waddle {
  0%, 100% { opacity: 1; transform: rotate(0); }
  25% { opacity: 1; transform: rotate(-3deg); }
  75% { opacity: 1; transform: rotate(3deg); }
}

@keyframes nod {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(0) rotate(0); }
  55% { transform: translateY(6px) rotate(-3deg); }
  65% { transform: translateY(0) rotate(1deg); }
}

.hero-date {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.8rem;
  margin: clamp(1.2rem, 5vw, 2.6rem) 0 1.25rem;
  font-weight: 800;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  animation: fade-up 0.8s ease 2.2s forwards;
}

.hero-date .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
}

.hero-date .dot:nth-of-type(2) {
  background: var(--sky);
}

.countdown {
  position: relative;
  z-index: 2;
  display: flex;
  gap: clamp(0.4rem, 2vw, 0.8rem);
  opacity: 0;
  animation: fade-up 0.8s ease 2.4s forwards;
}

.countdown > div {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  min-width: clamp(64px, 17vw, 84px);
  padding: 0.75rem 0.4rem 0.55rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown > div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--c, var(--rose));
}

.countdown > div:nth-child(2) { --c: var(--sun); }
.countdown > div:nth-child(3) { --c: var(--leaf); }
.countdown > div:nth-child(4) { --c: var(--lilac); }

.countdown b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  line-height: 1.1;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}

.countdown span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.countdown.done {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--pink);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero .login-card {
  position: relative;
  z-index: 4;
  margin-top: 1.75rem;
  padding: 1.6rem 1.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  animation: fade-up 0.8s ease 2.6s forwards;
}

.hero .login-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
}

.input-row {
  display: flex;
  gap: 0.5rem;
}

.login-card.shake {
  animation: shake 0.45s ease;
  opacity: 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px) rotate(-1deg); }
  40% { transform: translateX(9px) rotate(1deg); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.scroll-cue {
  position: relative;
  z-index: 4;
  margin-top: 2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--pink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0;
  animation: fade-up 0.8s ease 2.6s forwards;
}

.scroll-cue svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 1.6s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* Wiese mit Büschen am unteren Rand (wie auf der Einladung) */
.meadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}

.meadow img {
  position: absolute;
  bottom: -6px;
}

.bush {
  width: clamp(180px, 24vw, 320px);
}

.bush-left {
  left: -40px;
}

.bush-right {
  right: -30px;
  transform: scaleX(-1);
}

/* Zwei Vögelchen tragen ein Banner über den Bildschirm */
.bird-lane {
  position: relative;
  height: 90px;
  overflow: hidden;
  pointer-events: none;
}

.hero .bird-lane {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(70px, 12vw, 130px);
  z-index: 1;
}

.bird-rig {
  position: absolute;
  left: 0;
  top: 10px;
  width: 260px;
  transform: translateX(100vw);
  animation: fly var(--fly, 22s) linear var(--fly-delay, 0s) infinite;
}

.hero .bird-rig {
  --fly-delay: 2.5s;
}

.bird-rig img {
  display: block;
  width: 100%;
  animation: flutter 1.6s ease-in-out infinite;
}

.bird-rig span {
  position: absolute;
  left: 22%;
  right: 20%;
  top: 34%;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pink);
  transform: rotate(-3deg);
  animation: flutter 1.6s ease-in-out infinite;
}

@keyframes fly {
  from { transform: translateX(100vw); }
  to { transform: translateX(-300px); }
}

@keyframes flutter {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -7px; rotate: -1.5deg; }
}

/* ---------- Inhaltsseite ---------- */

.page {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page > section {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) 1.25rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-bounce);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.subtitle.invite {
  font-size: 1.08rem;
  color: var(--ink);
  max-width: 46ch;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.info-card {
  position: relative;
  background: var(--card);
  border-radius: 28px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s;
}

.info-card.c1 { transform: rotate(-1.5deg); }
.info-card.c2 { transform: rotate(1deg) translateY(10px); }
.info-card.c3 { transform: rotate(-0.5deg); }

.info-card:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: -3.3rem auto 0.8rem;
  font-size: 1.8rem;
  /* Blütenform */
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 6px #fff, var(--shadow);
}

.c2 .info-icon { background: var(--sun); }
.c3 .info-icon { background: var(--sky); }

.info-card h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--pink);
  font-size: 1.55rem;
  margin: 0 0 0.35rem;
}

.info-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.pill-link {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #fde7f0;
  color: var(--pink-dark);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s;
}

.pill-link:hover {
  background: #fbd3e4;
}

/* ---------- Wunschliste ---------- */

.wishlist {
  position: relative;
}

.wishlist .critter.rapunzel {
  position: absolute;
  width: clamp(100px, 15vw, 170px);
  right: 0;
  top: clamp(0.5rem, 3vw, 2rem);
  transform-origin: 50% 100%;
  animation: waddle 4s ease-in-out infinite;
}

.subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 52ch;
}

.subtitle strong {
  color: var(--pink);
}

.subtitle.small {
  font-size: 0.92rem;
  margin-top: -1.2rem;
}

.progress {
  max-width: 460px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.progress-track {
  height: 18px;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(58, 90, 100, 0.12);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--sun), var(--leaf), var(--sky), var(--lilac));
  background-size: 460px 100%;
  transition: width 1s var(--ease-bounce);
}

.progress p {
  margin: 0.6rem 0 0;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.item-card {
  --accent: var(--rose);
  position: relative;
  background: var(--card);
  border-radius: 28px;
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  isolation: isolate;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s;
  animation: card-in 0.6s var(--ease-bounce) both;
  animation-delay: calc(var(--n, 0) * 70ms);
}

.item-card:nth-child(5n + 2) { --accent: var(--sun); }
.item-card:nth-child(5n + 3) { --accent: var(--leaf); }
.item-card:nth-child(5n + 4) { --accent: var(--sky); }
.item-card:nth-child(5n + 5) { --accent: var(--lilac); }
.item-card:nth-child(odd) { --tilt: -0.8deg; }
.item-card:nth-child(even) { --tilt: 0.8deg; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
}

/* Wolken-Klecks in der Ecke */
.item-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 120px;
  right: -48px;
  top: -50px;
  background: radial-gradient(circle at 30% 60%, var(--accent) 34%, transparent 35%),
    radial-gradient(circle at 62% 42%, var(--accent) 40%, transparent 41%),
    radial-gradient(circle at 80% 70%, var(--accent) 30%, transparent 31%);
  opacity: 0.6;
  transition: transform 0.6s var(--ease-bounce);
}

.item-card:not(.claimed):hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.item-card:not(.claimed):hover::before {
  transform: scale(1.25) rotate(12deg);
}

.item-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--pink);
  opacity: 0.8;
}

.item-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--ink);
  padding-right: 1.5rem;
}

.item-card .note {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.93rem;
  margin: 0;
}

.item-card a.link {
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 35%, #fff);
  color: var(--pink-dark);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s var(--ease-bounce);
}

.item-card a.link:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.item-card .spacer {
  flex: 1;
}

.item-card button {
  margin-top: 0.6rem;
  width: 100%;
}

.item-card.claimed {
  background: #f1f8f7;
  box-shadow: 0 1px 2px rgba(58, 53, 87, 0.06);
}

.item-card.claimed > :not(.stamp) {
  opacity: 0.45;
}

.item-card.claimed::before {
  filter: grayscale(1);
  opacity: 0.25;
}

.item-card.claimed h3 {
  text-decoration: line-through;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
}

.stamp {
  position: absolute;
  right: 1rem;
  bottom: 1.1rem;
  padding: 0.35rem 0.8rem;
  border: 3px solid var(--pink);
  border-radius: 12px;
  color: var(--pink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: 0.9;
}

.item-card.just-claimed .stamp {
  animation: stamp 0.5s var(--ease-bounce);
}

@keyframes stamp {
  from { transform: rotate(-12deg) scale(2.4); opacity: 0; }
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  margin-top: 4rem;
  padding: 3rem 1.25rem clamp(70px, 10vw, 120px);
  text-align: center;
  overflow: hidden;
}

.footer-text {
  position: relative;
  z-index: 3;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--pink);
  margin: 0;
}

.footer .snowwhite {
  position: static;
  display: block;
  margin: 0 auto 0.5rem;
  width: clamp(200px, 32vw, 320px);
  transform-origin: 50% 100%;
  animation: waddle 4s ease-in-out infinite;
}

.footer .flowers {
  left: 50%;
  width: 90px;
  margin-left: -45px;
  bottom: 4px;
}

.footer .bird-lane {
  margin-top: 1rem;
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 53, 87, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
  animation: fade 0.2s ease;
}

@keyframes fade {
  from { opacity: 0; }
}

.modal-card {
  background: var(--card);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem 1.75rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  animation: pop 0.45s var(--ease-bounce);
}

@keyframes pop {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
}

.modal-emoji {
  display: block;
  font-size: 2.6rem;
  margin-top: -0.5rem;
  animation: bob 2s ease-in-out infinite;
}

.modal-card h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--pink);
  margin: 0.2rem 0 0.25rem;
}

#claim-item-name {
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 1.25rem;
}

#claim-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.modal-actions button {
  flex: 1;
}

/* ---------- Toast & Konfetti ---------- */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  max-width: calc(100% - 2rem);
  text-align: center;
  animation: toast-in 0.4s var(--ease-bounce);
}

@keyframes toast-in {
  from { transform: translate(-50%, 30px); opacity: 0; }
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 70;
}

/* ---------- Responsiv ---------- */

@media (max-width: 760px) {
  .hero {
    padding-top: 5.5rem;
  }

  .hero-stage {
    width: min(520px, 100%);
  }

  .ariel {
    width: 24%;
    left: -5%;
    top: 58%;
  }

  .aurora {
    width: 19%;
    right: -3%;
    top: 60%;
  }

  .flower-red,
  .flower-pink {
    display: none;
  }

  .bird-rig {
    width: 190px;
  }

  .bird-rig span {
    font-size: 0.8rem;
  }

  .hero .bird-lane {
    height: 70px;
  }

  .belle-peek {
    width: 100px;
    right: -14px;
    bottom: -30px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    max-width: 380px;
    margin: 3.5rem auto 0;
  }

  .info-card.c2 {
    transform: rotate(1deg);
  }

  .wishlist .critter.rapunzel {
    position: static;
    display: block;
    margin: 0 auto 0.5rem;
    width: 110px;
  }
}

@media (max-width: 420px) {
  .card,
  .modal-card {
    padding: 1.4rem;
  }

  .input-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .lanterns,
  .bird-lane {
    display: none;
  }
}
