/* ==========================================================
   Hochzeit – Lavendel & Rosmarin
   ========================================================== */

/* ---------- Schriften (lokal eingebunden, DSGVO-freundlich) ---------- */
@font-face { font-family: "Great Vibes"; src: url(../fonts/great-vibes-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jost"; src: url(../fonts/jost-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url(../fonts/jost-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url(../fonts/jost-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Farben & Grundwerte ---------- */
:root {
  --lav-50:  #f7f4fb;
  --lav-100: #efe9f7;
  --lav-200: #ddd2ee;
  --lav-300: #c6b5e2;
  --lav-400: #a892d2;
  --lav-500: #8d74be;
  --lav-600: #7a62a8;
  --lav-800: #4b3b6c;
  --lav-900: #2f2645;

  --ros-100: #e8eee5;
  --ros-200: #cfdbca;
  --ros-300: #a9bba3;
  --ros-500: #6e8c69;
  --ros-600: #587354;
  --ros-700: #43593f;
  --ros-900: #26331f;

  --cream:   #fbf9f5;
  --cream-2: #f3eee4;
  --ink:     #2d2836;
  --muted:   #6c6577;
  --line:    #e4dced;
  --error:   #a33a4d;

  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --font-serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:   "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(47, 38, 69, .05), 0 12px 32px -12px rgba(47, 38, 69, .18);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(16px, 1.02rem + .15vw, 18px);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lav-600); text-underline-offset: 3px; }
a:hover { color: var(--lav-800); }
strong { font-weight: 500; }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--lav-900); }
h2 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem); }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--lav-500); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9em; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); }
.eyebrow {
  font-family: var(--font-sans); font-weight: 500; text-transform: uppercase;
  letter-spacing: .28em; font-size: .78rem; color: var(--ros-600); margin: 0 0 .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--lav-600); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.6em; border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg); font: 500 .95rem/1 var(--font-sans); letter-spacing: .06em;
  text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --bg: var(--lav-800); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(75, 59, 108, .6); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--lav-600); border-color: var(--lav-300); }
.btn-ghost:hover { background: var(--lav-100); color: var(--lav-800); border-color: var(--lav-400); box-shadow: none; }
.btn-light { --bg: rgba(255,255,255,.75); --fg: var(--lav-800); border-color: var(--lav-300); backdrop-filter: blur(6px); }
.btn-light:hover { --bg: var(--lav-600); }
.btn-small { min-height: 40px; padding: .5em 1.1em; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.between { justify-content: space-between; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-left));
  background: rgba(251, 249, 245, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(221, 210, 238, .7);
  transform: translateY(-105%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.nav.show { transform: none; }
.nav-brand { font-family: var(--font-script); font-size: 1.9rem; color: var(--lav-800); text-decoration: none; line-height: 1; white-space: nowrap; }
.nav-brand span { color: var(--ros-500); }
.nav-menu { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); }
.nav-menu a { color: var(--ink); text-decoration: none; font-size: .9rem; letter-spacing: .05em; padding: 6px 2px; position: relative; }
.nav-menu a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--lav-500);
  transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu .nav-cta { background: var(--lav-600); color: #fff; padding: 8px 18px; border-radius: 999px; }
.nav-menu .nav-cta:hover { background: var(--lav-800); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--lav-800); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 20px; clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .4s cubic-bezier(.2,.8,.2,1), visibility 0s .4s;
  }
  .nav-menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .4s cubic-bezier(.2,.8,.2,1); }
  .nav-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-menu a::after { display: none; }
  .nav-menu .nav-cta { margin-top: 14px; text-align: center; border: 0; padding: 14px; }
}

/* ==========================================================
   HERO – Ringe
   ========================================================== */
.hero { position: relative; height: 320vh; height: 320svh; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
  --p: 0;          /* Scroll-Fortschritt 0…1 (per JS) */
  --meet: 0;       /* 0…1, wenn die Ringe sich treffen */
  --title: 0;      /* 0…1 Einblendung Namen */
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(ellipse 80% 60% at 15% 90%, rgba(169,187,163,.35), transparent 70%),
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(198,181,226,.55), transparent 70%),
    linear-gradient(180deg, var(--lav-50), var(--cream) 60%, var(--ros-100));
}
.hero-bg::after { /* sanftes Papier-Korn */
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .55 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Zweige am Rand – wachsen mit dem Scrollen ins Bild */
.sprigs { position: absolute; inset: 0; pointer-events: none; }
.sprig { position: absolute; width: clamp(54px, 9vw, 110px); height: auto; aspect-ratio: 60 / 210; transform-origin: 50% 100%;
  transition: transform .1s linear; }
.sprig.s1 { left: 2%;  bottom: -3%; --r: -14deg; }
.sprig.s2 { left: 7%;  bottom: -6%; --r: 6deg;  width: clamp(60px, 10vw, 125px); }
.sprig.s3 { left: 12%; bottom: -8%; --r: 22deg; width: clamp(40px, 6vw, 80px); }
.sprig.s4 { right: 2%; bottom: -3%; --r: 14deg; }
.sprig.s5 { right: 8%; bottom: -6%; --r: -8deg; width: clamp(60px, 10vw, 125px); }
.sprig.s6 { right: 13%; bottom: -8%; --r: -24deg; width: clamp(40px, 6vw, 80px); }
.sprig { transform: rotate(var(--r)) scale(calc(.55 + var(--p) * .55)) translateY(calc((1 - var(--p)) * 12%)); opacity: calc(.45 + var(--p) * .55); }
.sprig.s1, .sprig.s4 { top: auto; }
@media (max-width: 640px) {
  .sprig.s3, .sprig.s6 { display: none; }
}

/* Intro-Text vor dem Scrollen */
.hero-intro {
  position: absolute; top: 42%; left: 0; right: 0; text-align: center; margin: 0; padding: 0 16px;
  opacity: calc(1 - var(--p) * 3.2); transform: translateY(calc(-50% - var(--p) * 60px));
}
.hero-intro .hero-intro-big { margin-top: .1em; }
.hero-intro .eyebrow { display: block; }
.hero-intro-big { display: block; font-family: var(--font-serif); font-size: clamp(2.4rem, 1.5rem + 4vw, 4.6rem); color: var(--lav-800); font-style: italic; }

/* Ringe */
.rings {
  --size: clamp(160px, 40vw, 290px);
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translateY(calc(var(--title) * -14vh)) scale(calc(1 - var(--title) * .22));
}
.ring {
  position: absolute; width: var(--size); height: auto; aspect-ratio: 220 / 240;
  left: calc(var(--size) / -2); top: calc(var(--size) * -130 / 220);  /* Ring-Mittelpunkt = Ursprung */
  max-width: none; overflow: visible; will-change: transform;
  filter: drop-shadow(0 10px 14px rgba(75, 59, 108, .22));
}
.ring-a { z-index: 1; }
.ring-b { z-index: 2; }
.ring-a-top { z-index: 3; clip-path: inset(0 0 45.8% 0); filter: none; } /* nur obere Hälfte */

.ring-glow {
  position: absolute; width: calc(var(--size) * 2.4); aspect-ratio: 1; left: calc(var(--size) * -1.2); top: calc(var(--size) * -1.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 238, .9) 0%, rgba(221, 210, 238, .5) 38%, transparent 68%);
  opacity: var(--meet); transform: scale(calc(.4 + var(--meet) * .6));
}
.sparkles { position: absolute; left: 0; top: 0; }
.sp {
  position: absolute; width: calc(var(--size) * .14 * var(--s)); height: calc(var(--size) * .14 * var(--s));
  left: calc(var(--size) * var(--x)); top: calc(var(--size) * var(--y));
  max-width: none; color: #c9c4d8; opacity: 0; transform: translate(-50%, -50%) scale(0);
}
.hero-sticky.met .sp { animation: sparkle 2.4s var(--d) ease-out infinite; }
@keyframes sparkle {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0); }
  25%  { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(45deg); }
  60%  { opacity: .9; transform: translate(-50%, -50%) scale(.8) rotate(90deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(160deg); }
}

/* Namen */
.hero-title {
  position: absolute; left: 0; right: 0; top: 50%; text-align: center; padding: 0 16px;
  transform: translateY(calc(6vh + (1 - var(--title)) * 40px)); opacity: var(--title);
  pointer-events: none;
}
.hero-sticky.titled .hero-title { pointer-events: auto; }
.hero-title h1 {
  font-family: var(--font-script); font-weight: 400; color: var(--lav-800);
  font-size: clamp(3.4rem, 2rem + 7vw, 7.5rem); line-height: 1; margin: 0 0 .15em;
  display: flex; justify-content: center; align-items: baseline; gap: .18em; flex-wrap: wrap;
}
.hero-title .amp { color: var(--ros-500); font-size: .7em; }
.hero-date { font-family: var(--font-serif); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); letter-spacing: .25em; margin: 0; color: var(--lav-900); }
.hero-place { text-transform: uppercase; letter-spacing: .35em; font-size: .8rem; color: var(--ros-600); margin: .4em 0 1.4em; }

.scroll-hint {
  position: absolute; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--lav-600);
  opacity: calc(1 - var(--p) * 5);
}
.mouse { width: 24px; height: 38px; border: 1.5px solid var(--lav-400); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.mouse span { width: 3px; height: 8px; border-radius: 2px; background: var(--lav-500); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================
   Sektionen
   ========================================================== */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section.tint { background: linear-gradient(180deg, var(--lav-50), var(--lav-100)); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* Scroll-Einblendung */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Trenner */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 36px auto; }
.divider { height: 60px; }
.divider svg { width: 34px; height: 120px; transform: rotate(-90deg); flex: none; margin: 0 -30px; }
.divider svg.flip { transform: rotate(90deg); }
.divider span { width: 10px; height: 10px; border-radius: 50%; background: var(--lav-400); box-shadow: 0 0 0 6px var(--lav-100); }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vw, 20px); max-width: 560px; margin: 0 auto 14px; }
.countdown div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 2.4vw, 22px) 6px;
  box-shadow: var(--shadow);
}
.countdown span { font-variant-numeric: lining-nums tabular-nums; display: block; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); line-height: 1; color: var(--lav-800); font-variant-numeric: lining-nums tabular-nums; }
.countdown small { display: block; margin-top: 6px; font-size: clamp(.62rem, .55rem + .3vw, .78rem); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.countdown-caption { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--ros-700); }

/* Timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(var(--lav-400), var(--ros-500)); transform-origin: top; transform: scaleY(var(--line, 0));
}
.timeline li { position: relative; width: 50%; padding: 0 44px 44px 0; text-align: right; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 44px 44px; text-align: left; }
.timeline li::before {
  content: ""; position: absolute; top: 6px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--lav-500); box-shadow: 0 0 0 5px var(--lav-100);
}
.timeline li:nth-child(even)::before { right: auto; left: -9px; border-color: var(--ros-500); box-shadow: 0 0 0 5px var(--ros-100); }
.timeline time { font-variant-numeric: lining-nums; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--ros-600); letter-spacing: .08em; }
.timeline h3 { margin: 2px 0 6px; }
.timeline p { color: var(--muted); margin: 0; }
@media (max-width: 680px) {
  .timeline::before { left: 9px; }
  .timeline li, .timeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 36px 44px; text-align: left; }
  .timeline li::before, .timeline li:nth-child(even)::before { left: 0; right: auto; }
}

/* Location */
.location-card {
  display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border-radius: calc(var(--radius) + 6px);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.location-art svg { width: 100%; height: 100%; min-height: 260px; }
.location-body { padding: clamp(24px, 4vw, 48px); }
.location-body address { font-style: normal; font-size: 1.1rem; margin-bottom: 1em; color: var(--lav-800); font-weight: 400; }
@media (max-width: 780px) { .location-card { grid-template-columns: 1fr; } .location-art svg { min-height: 200px; max-height: 240px; } }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(47,38,69,.05), 0 22px 40px -16px rgba(47,38,69,.25); }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--ros-100); margin-bottom: 16px; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ros-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card.person { text-align: center; }
.card.person p { margin-bottom: 16px; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 500; color: #fff;
  background: linear-gradient(135deg, var(--lav-400), var(--ros-500));
}
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } .cards.two { grid-template-columns: 1fr; } }

/* Farbpalette */
.swatches { list-style: none; padding: 0; margin: 32px 0 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); letter-spacing: .05em; }
.swatches li::before {
  content: ""; width: 58px; height: 58px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 6px 14px -6px rgba(47,38,69,.35);
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 4px; position: relative;
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--lav-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--lav-500); border-bottom: 2px solid var(--lav-500); transform: rotate(45deg); transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 4px 20px; color: var(--muted); margin: 0; }
.faq details[open] p { animation: fadeDown .35s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* ==========================================================
   Anmeldung
   ========================================================== */
.rsvp-section { background:
  radial-gradient(ellipse 70% 50% at 0% 0%, rgba(198,181,226,.35), transparent 70%),
  radial-gradient(ellipse 70% 50% at 100% 100%, rgba(169,187,163,.35), transparent 70%), var(--cream); }
.rsvp-card {
  background: #fff; border-radius: calc(var(--radius) + 8px); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: clamp(22px, 5vw, 52px);
}
.rsvp-step { animation: stepIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } }

.code-label { display: block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; color: var(--lav-900); }
.code-row { display: flex; gap: 12px; margin-top: 18px; }
.code-input {
  flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .35em; text-align: center;
  font: 500 1.35rem/1 var(--font-sans) !important; padding: 14px !important;
}
@media (max-width: 480px) { .code-row { flex-direction: column; } }

.form-msg { min-height: 1.4em; margin: 14px 0 0; color: var(--error); font-weight: 400; }
.form-msg.ok { color: var(--ros-700); }

.rsvp-hello { text-align: center; margin-bottom: 26px; }
.rsvp-hello h3 { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.3rem, 1.6rem + 3vw, 3.2rem); color: var(--lav-800); margin: 0; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .attend legend { font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: var(--lav-900); }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
  background: var(--lav-50); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a62a8' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lav-500); background: #fff; box-shadow: 0 0 0 4px rgba(141,116,190,.18); }
input.invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(163,58,77,.12); }
textarea { resize: vertical; min-height: 96px; }

.attend { border: 0; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.attend legend { margin-bottom: 10px; grid-column: 1 / -1; }
.attend-opt { position: relative; cursor: pointer; }
.attend-opt input { position: absolute; opacity: 0; pointer-events: none; }
.attend-opt > span {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; height: 100%;
  padding: 20px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--lav-50);
  transition: all .25s;
}
.attend-opt svg { width: 34px; height: 34px; fill: none; stroke: var(--lav-500); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; transition: all .25s; }
.attend-opt strong { font-family: var(--font-serif); font-size: 1.3rem; color: var(--lav-900); }
.attend-opt small { color: var(--muted); font-size: .85rem; }
.attend-opt:hover > span { border-color: var(--lav-300); }
.attend-opt input:focus-visible + span { outline: 2px solid var(--lav-500); outline-offset: 2px; }
.attend-opt input:checked + span { border-color: var(--lav-500); background: #fff; box-shadow: 0 0 0 4px rgba(141,116,190,.15); }
.attend-opt input[value="1"]:checked + span svg { fill: var(--lav-500); animation: beat .6s; }
.attend-opt input[value="0"]:checked + span { border-color: var(--ros-500); box-shadow: 0 0 0 4px rgba(110,140,105,.15); }
.attend-opt input[value="0"]:checked + span svg { stroke: var(--ros-600); }
@keyframes beat { 30% { transform: scale(1.25); } 60% { transform: scale(.95); } }
@media (max-width: 420px) { .attend { grid-template-columns: 1fr; } }

.persons-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.persons-head h4 { margin-bottom: 12px; }
.person-row {
  border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 16px 2px; margin-bottom: 14px; background: #fff;
  animation: stepIn .35s ease;
}
.person-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.person-num { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--ros-600); }
.person-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .85rem; text-decoration: underline; padding: 6px; }
.person-remove:hover { color: var(--error); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.person-extra { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; min-height: 48px; }
.person-extra .field.age { flex-direction: row; align-items: center; margin: 0; gap: 10px; }
.person-extra .field.age input { width: 84px; padding: 8px 10px; }
.person-row:not(.is-child) .field.age { display: none; }
.rsvp-card.declining .yes-only { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .92rem; color: var(--muted); margin: 10px 0; }
.check.inline { margin: 0; align-items: center; color: var(--ink); }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border: 1.5px solid var(--lav-400); border-radius: 6px; background: #fff; cursor: pointer; display: grid; place-content: center; transition: background .2s; }
.check.inline input { margin: 0; }
.check input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .2s; }
.check input:checked { background: var(--lav-600); border-color: var(--lav-600); }
.check input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.check input.invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(163,58,77,.15); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rsvp-done { text-align: center; padding: 10px 0; }
.rsvp-done:focus { outline: none; }
.done-rings { width: 150px; margin: 0 auto 10px; }
.done-rings circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.2s ease forwards; }
.done-rings circle:last-child { animation-delay: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rsvp-done h3 { font-family: var(--font-script); font-weight: 400; font-size: 3rem; color: var(--lav-800); }

.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 56px 16px calc(40px + env(safe-area-inset-bottom)); background: var(--lav-900); color: var(--lav-200); }
.footer a { color: var(--lav-200); }
.footer-sprig { width: 40px; height: 140px; margin: 0 auto 8px; transform: rotate(0); }
.footer-names { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 500; color: #fff; margin: 0; line-height: 1.2; }
.footer p { margin: 0 0 .4em; }

/* ---------- Weniger Bewegung gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-sticky.met .sp { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

#addPerson { margin-bottom: 26px; }

/* ---------- Zugang mit Code ---------- */
.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; }
.gate { min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(198,181,226,.4), transparent 70%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(169,187,163,.4), transparent 70%), var(--cream); }
.gate-card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 56px); max-width: 560px; margin: 0 auto; }
.gate-rings { width: 110px; margin: 0 auto 14px; }
.gate-card h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.gate-form { display: flex; gap: 12px; margin-top: 24px; }
.gate-form .code-input { flex: 1; }
@media (max-width: 480px) { .gate-form { flex-direction: column; } }
.nav > .btn-small { min-height: 38px; }
.btn-row.between { align-items: center; }

/* ---------- Orte ---------- */
.cards.two.wide { grid-template-columns: repeat(2, minmax(0, 460px)); }
.card.place .eyebrow { margin-bottom: .3rem; }
.card.place address { font-style: normal; color: var(--lav-800); font-weight: 400; margin-bottom: .8em; }
.card.place p { margin-bottom: 1.2em; }
.card-icon.lav { background: var(--lav-100); }
.card-icon.lav svg { stroke: var(--lav-600); }
@media (max-width: 880px) { .cards.two.wide { grid-template-columns: 1fr; } }

/* ---------- Kinder im Formular ---------- */
.grid-kid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.person-row.is-child .grid-kid { grid-template-columns: 110px 1fr; }
.person-row.is-child { border-color: var(--ros-200); background: #fcfdfb; }
.person-row.is-child .person-num { color: var(--lav-600); }
.kids-block { margin-top: 10px; padding-top: 18px; border-top: 1px dashed var(--line); }
.kids-block .persons-head h4 { margin-bottom: 4px; }
#children { margin-top: 10px; }
#addChild { margin-bottom: 26px; }
@media (max-width: 420px) { .person-row.is-child .grid-kid { grid-template-columns: 1fr; } }

/* ---------- Kinder: nur Vorname + Alter ---------- */
.person-row.is-child .adult-only { display: none; }
.person-row:not(.is-child) .kid-only { display: none; }
.person-row.is-child .grid2 { grid-template-columns: 1fr 120px; }
@media (max-width: 560px) { .person-row.is-child .grid2 { grid-template-columns: 1fr 100px; } }

/* ---------- Zusammenfassung einer Anmeldung ---------- */
.rsvp-summary { list-style: none; padding: 16px 20px; margin: 18px auto; max-width: 480px; text-align: left;
  background: var(--lav-50); border: 1px solid var(--line); border-radius: 14px; }
.rsvp-summary:empty { display: none; }
.rsvp-summary li { padding: 4px 0; }
.rsvp-summary li + li { border-top: 1px dashed var(--line); }
.rsvp-summary strong { color: var(--lav-800); }
.change-hint { max-width: 480px; margin: 0 auto 18px; }
#stepLocked h3 { margin-bottom: .3em; }

/* ---------- Aufzählung in Karten (z. B. Buslinien) ---------- */
.card-list { list-style: none; margin: 12px 0 0; padding: 0; color: var(--muted); }
.card-list li { position: relative; padding: 6px 0 6px 18px; border-top: 1px dashed var(--line); }
.card-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--ros-500); }
.card-list strong { color: var(--lav-800); }

/* ---------- Heimfahrt ---------- */
.ride { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px 6px; margin: 4px 0 18px; background: var(--lav-50); }
.ride legend { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--lav-900); padding: 0 6px; }
.ride > p { margin: 0 0 10px; }
.ride .ride-check { color: var(--ink); margin: 6px 0 14px; }
.ride .ride-check strong { font-weight: 500; }
.ride-details input { background: #fff; }
