/* ===========================================================
   Janine & Sergej — Hochzeitseinladung
   Hero + Navigation
   =========================================================== */

:root {
  --color-cream:        #F9F0D6;
  --color-gold:         #D4A569;
  --color-brown-mid:    #946E4B;
  --color-brown-dark:   #523828;
  --color-brown-deep:   #1F1611;
  --color-green:        #2F4A36;
  --color-green-hover:  #3a5c44;

  --font-display: 'Carattere', 'Cormorant Garamond', 'Apple Chancery', cursive;
  --font-body:    'Cormorant Garamond', Georgia, serif;

  --easing-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --easing-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -------- Reset / Base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-cream);
  background: var(--color-brown-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* Hidden attribute must not be overridden by display rules */
[hidden] { display: none !important; }

/* Visually hidden but available to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------- Skip link -------- */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  padding: 0.75rem 1.25rem;
  background: var(--color-brown-deep);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  transform: translateY(-150%);
  transition: transform 200ms var(--easing-soft);
  z-index: 1000;
  border-bottom-right-radius: 8px;
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--color-cream);
  outline-offset: 2px;
}

/* -------- Focus indicators (WCAG 2.4.13) -------- */
:focus-visible {
  outline: 2px solid var(--color-cream);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(31, 22, 17, 0.85);
  border-radius: 4px;
}

/* =========================================================== */
/* NAVIGATION                                                   */
/* =========================================================== */
.site-header {
  /* Default = absolut verankert. Nav scrollt natürlich mit
     der Seite weg, wenn man am Seitenanfang runterscrollt. */
  position: absolute;
  top: 1.75rem;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
  animation: navIn 900ms 200ms var(--easing-soft) forwards;
}

@keyframes navIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sobald hochgescrollt wird, schaltet JS auf "schwebend":
   die Nav wird fixed und kann reingleiten/verschwinden. */
.site-header.is-floating {
  position: fixed;
  transition:
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity   350ms ease-out;
}

/* Weggesteckt nach oben — beim Runterscrollen */
.site-header.is-floating.is-tucked {
  transform: translateY(calc(-100% - 2.5rem));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 450ms cubic-bezier(0.55, 0, 0.68, 0.2),
    opacity   250ms ease-in;
}

/* Immer sichtbar wenn ein Nav-Element fokussiert ist (Keyboard-User) */
.site-header:focus-within {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  .site-header.is-floating,
  .site-header.is-floating.is-tucked {
    transition: opacity 180ms linear !important;
  }
}

.nav {
  pointer-events: auto;
  background: linear-gradient(180deg, #5a3e2e 0%, var(--color-brown-dark) 100%);
  border-radius: 999px;
  padding: 0.55rem 1.75rem;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(249, 240, 214, 0.10);
  border: 1px solid rgba(212, 165, 105, 0.22);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__item {
  display: flex;
  align-items: center;
}

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-cream);
  padding: 0.4rem 0.25rem;
  transition: color 250ms var(--easing-soft);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  transform: translateX(-50%);
  transition: width 350ms var(--easing-soft);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-gold);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 110%;
}

/* CTA in nav looks identical, keeps balance with the design */
.nav__link--cta {
  /* identical styling for visual symmetry — accessibility carried by anchor itself */
}

/* Logo */
.nav__item--logo {
  margin: 0 0.5rem;
}
.nav__logo-link {
  display: block;
  transition: transform 600ms var(--easing-soft);
}
.nav__logo-link:hover,
.nav__logo-link:focus-visible {
  transform: rotate(-3deg) scale(1.05);
}
.nav__logo {
  width: clamp(58px, 6vw, 86px);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: filter 350ms var(--easing-soft);
}
.nav__logo-link:hover .nav__logo,
.nav__logo-link:focus-visible .nav__logo {
  filter:
    drop-shadow(0 0 8px rgba(212, 165, 105, 0.6))
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* =========================================================== */
/* HERO                                                         */
/* =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Safe-Zone damit Hero-Content NICHT mit der Floating-Nav kollidiert */
  padding-top: clamp(7rem, 12vh, 10rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -3% -3% -3% -3%;
  background-color: var(--color-brown-deep);
  background-image: url('../assets/images/hero-background.png');
  background-size: cover;
  background-position: center;
  z-index: -3;
  transform: scale(1.05);
  animation: kenBurns 38s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.18) translate(-1.5%, -1%); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 55%,
      rgba(31, 22, 17, 0.45) 0%,
      rgba(31, 22, 17, 0.70) 70%,
      rgba(31, 22, 17, 0.85) 100%),
    linear-gradient(180deg,
      rgba(31, 22, 17, 0.55) 0%,
      rgba(31, 22, 17, 0.20) 30%,
      rgba(31, 22, 17, 0.20) 70%,
      rgba(31, 22, 17, 0.65) 100%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 1100px;
  width: 100%;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* Stagger entrance */
.hero__eyebrow,
.hero__heart,
.hero__title,
.hero__date,
.hero__cta {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 1100ms var(--easing-soft) forwards;
}
.hero__eyebrow { animation-delay: 800ms; }
.hero__heart   { animation-delay: 1200ms; }
.hero__title   { animation-delay: 1700ms; animation-duration: 1400ms; }
.hero__date    { animation-delay: 2500ms; }
.hero__cta     { animation-delay: 2900ms; }

@keyframes heroIn {
  0%   { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-family: var(--font-display);
  color: var(--color-cream);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.hero__heart {
  width: clamp(200px, 20vw, 320px);
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.5));
  /* PNG hat schwarzen BG -> screen blend mode lässt nur die weiße Linie durch */
  mix-blend-mode: screen;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.95;
  margin: 0.5rem 0 1rem;
  color: var(--color-cream);
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
}

.hero__title-name,
.hero__title-amp {
  display: inline-block;
}

.hero__title-amp {
  color: var(--color-cream);
  opacity: 0.95;
  font-size: 0.85em;
  margin: 0 0.1em;
}

.hero__date {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  margin: 0 0 2.25rem;
  color: var(--color-cream);
}

/* CTA button */
.hero__cta {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  color: var(--color-cream);
  background: var(--color-green);
  padding: 0.8rem 2.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 240, 214, 0.20);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(249, 240, 214, 0.12);
  overflow: hidden;
  transition:
    transform 320ms var(--easing-elastic),
    background-color 320ms var(--easing-soft),
    box-shadow 320ms var(--easing-soft);
  isolation: isolate;
}

.hero__cta-label {
  position: relative;
  z-index: 2;
}

.hero__cta-shimmer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 35%,
    rgba(249, 240, 214, 0.28) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 900ms var(--easing-soft);
  pointer-events: none;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--color-green-hover);
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 165, 105, 0.4),
    inset 0 1px 0 rgba(249, 240, 214, 0.18);
}

.hero__cta:hover .hero__cta-shimmer,
.hero__cta:focus-visible .hero__cta-shimmer {
  transform: translateX(120%);
}

.hero__cta:active {
  transform: translateY(-1px) scale(1.01);
  transition-duration: 80ms;
}

/* =========================================================== */
/* WELCOME SECTION                                              */
/* =========================================================== */
.welcome {
  background: var(--color-cream);
  padding: clamp(5rem, 12vh, 9rem) 1.5rem clamp(5rem, 10vh, 8rem);
  scroll-margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle gold ornament lines top + bottom */
.welcome::before,
.welcome::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 40vw, 480px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-gold) 30%,
    var(--color-gold) 70%,
    transparent 100%);
  opacity: 0.45;
}
.welcome::before { top: 0; }
.welcome::after  { bottom: 0; }

.welcome__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Heading — #946E4B: Kontrast 4.78:1 auf Cream (AA ✓) */
.welcome__heading {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-brown-mid);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 clamp(2rem, 4vh, 3.5rem);
  letter-spacing: 0.01em;
}

/* Body prose — Carattere mit a11y-Hardening */
.welcome__prose {
  font-family: var(--font-display);
  color: var(--color-green);          /* #2F4A36 auf Cream = 8.4:1 ✓ */
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
  max-width: 60ch;
  margin: 0 auto;
}

.welcome__prose p {
  margin: 0 0 1.6rem;
}
.welcome__prose p:last-child {
  margin-bottom: 0;
}

/* Signature */
.welcome__signature {
  font-family: var(--font-display);
  color: var(--color-green);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  letter-spacing: 0.02em;
  margin: clamp(2rem, 4vh, 3.5rem) 0 clamp(2rem, 4vh, 3rem);
}

/* Seal / Logo */
.welcome__seal {
  width: clamp(110px, 11vw, 160px);
  aspect-ratio: 4 / 3;
  background-image: url('../assets/images/logo-sj.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(82, 56, 40, 0.18));
}

/* ---- Scroll-in animation (JS adds classes) ---- */
/* Default: fully visible — works without JS */
.welcome__heading,
.welcome__prose > p,
.welcome__signature,
.welcome__seal {
  opacity: 1;
  transform: none;
}

/* When JS is active, start hidden */
.welcome.js-animate .welcome__heading,
.welcome.js-animate .welcome__prose > p,
.welcome.js-animate .welcome__signature,
.welcome.js-animate .welcome__seal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity  700ms var(--easing-soft),
    transform 700ms var(--easing-soft);
}

/* Reveal with stagger */
.welcome.js-animate.is-visible .welcome__heading,
.welcome.js-animate.is-visible .welcome__prose > p,
.welcome.js-animate.is-visible .welcome__signature,
.welcome.js-animate.is-visible .welcome__seal {
  opacity: 1;
  transform: translateY(0);
}

.welcome.js-animate.is-visible .welcome__heading             { transition-delay:   0ms; }
.welcome.js-animate.is-visible .welcome__prose > p:nth-child(1) { transition-delay: 100ms; }
.welcome.js-animate.is-visible .welcome__prose > p:nth-child(2) { transition-delay: 200ms; }
.welcome.js-animate.is-visible .welcome__prose > p:nth-child(3) { transition-delay: 310ms; }
.welcome.js-animate.is-visible .welcome__prose > p:nth-child(4) { transition-delay: 420ms; }
.welcome.js-animate.is-visible .welcome__signature            { transition-delay: 540ms; }
.welcome.js-animate.is-visible .welcome__seal                 { transition-delay: 650ms; }

@media (prefers-reduced-motion: reduce) {
  .welcome.js-animate .welcome__heading,
  .welcome.js-animate .welcome__prose > p,
  .welcome.js-animate .welcome__signature,
  .welcome.js-animate .welcome__seal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================== */
/* COUNTDOWN                                                    */
/* =========================================================== */
.countdown {
  background: #fff;
  padding: clamp(4rem, 8vh, 6.5rem) 1.5rem;
  position: relative;
}

.countdown::before,
.countdown::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: clamp(200px, 40vw, 480px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--color-gold) 30%,
    var(--color-gold) 70%, transparent 100%);
  opacity: 0.4;
}
.countdown::before { top: 0; }
.countdown::after  { bottom: 0; }

.countdown__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.countdown__timer {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.75rem, 3vh, 2.5rem);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 165, 105, 0.3);
  border-radius: 12px;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
  min-width: clamp(68px, 10vw, 110px);
  box-shadow:
    0 4px 20px rgba(148, 110, 75, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.countdown__number {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--color-green);
  line-height: 1;
  letter-spacing: -0.02em;
  min-width: 2ch;
  display: block;
  transition: transform 180ms var(--easing-elastic);
}

.countdown__number.tick {
  transform: scale(1.08);
}

.countdown__label {
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 1.1vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-green);
  opacity: 0.7;
}

.countdown__date {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--color-green);
  margin: 0;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.countdown__label-tag {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-green);
  opacity: 0.55;
}

@media (max-width: 400px) {
  .countdown__timer { gap: 0.5rem; }
  .countdown__unit  { padding: 0.85rem 0.75rem; border-radius: 8px; }
}

/* =========================================================== */
/* AGENDA / TIMELINE                                            */
/* =========================================================== */
.agenda {
  background: #fff;
  padding: clamp(5rem, 10vh, 8rem) 1.5rem clamp(5rem, 10vh, 8rem);
  scroll-margin-top: 5rem;
  position: relative;
}

.agenda::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 40vw, 480px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--color-gold) 30%,
    var(--color-gold) 70%, transparent 100%);
  opacity: 0.35;
}

.agenda__inner {
  max-width: 860px;
  margin: 0 auto;
}

.agenda__heading {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-brown-mid);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  text-align: center;
  margin: 0 0 clamp(3rem, 6vh, 5rem);
  letter-spacing: 0.01em;
}

/* ---- Timeline list ---- */
.timeline { list-style: none; padding: 0; margin: 0; }

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 0 clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: start;
}

/* Center node */
.timeline__node {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Circle */
.timeline__circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--color-brown-mid);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-brown-mid);
  box-shadow: 0 2px 14px rgba(148, 110, 75, 0.13);
  position: relative; z-index: 1;
}
.timeline__circle svg { width: 30px; height: 30px; }

/* Connector */
.timeline__connector {
  width: 1.5px;
  flex: 1;
  min-height: clamp(55px, 7vh, 80px);
  background: linear-gradient(
    to bottom,
    var(--color-brown-mid) 0%,
    rgba(148, 110, 75, 0.20) 100%
  );
  transform-origin: top;
}

/* Side content — vertical align to circle center */
.timeline__meta {
  padding-top: clamp(1.1rem, 2vw, 1.6rem);
}

/* ODD (1,3,5): label in col 1 LEFT, time in col 3 RIGHT */
.timeline__item:nth-child(odd) .timeline__meta--label {
  grid-column: 1; grid-row: 1; text-align: right;
}
.timeline__item:nth-child(odd) .timeline__meta--time {
  grid-column: 3; grid-row: 1; text-align: left;
}

/* EVEN (2,4,6): time in col 1 LEFT, label in col 3 RIGHT */
.timeline__item:nth-child(even) .timeline__meta--time {
  grid-column: 1; grid-row: 1; text-align: right;
}
.timeline__item:nth-child(even) .timeline__meta--label {
  grid-column: 3; grid-row: 1; text-align: left;
}

/* Typography */
.timeline__meta--time time {
  font-family: var(--font-body);
  color: var(--color-brown-mid);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline__title {
  font-family: var(--font-display);
  color: var(--color-green);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* Location link */
.timeline__title--link {
  color: var(--color-green);
  text-decoration: underline;
  text-decoration-color: rgba(47, 74, 54, 0.3);
  text-underline-offset: 4px;
  transition:
    text-decoration-color 250ms var(--easing-soft),
    opacity 250ms var(--easing-soft);
}
.timeline__title--link:hover,
.timeline__title--link:focus-visible {
  text-decoration-color: var(--color-green);
  opacity: 0.8;
}

/* ---- Scroll-in animations ---- */
/* Default: fully visible (no-JS safe) */
.timeline__circle,
.timeline__connector,
.timeline__meta--time,
.timeline__meta--label { opacity: 1; transform: none; }

/* JS active: start hidden */
.timeline.js-animate .timeline__circle {
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 420ms var(--easing-soft), transform 420ms var(--easing-elastic);
}
.timeline.js-animate .timeline__connector {
  transform: scaleY(0);
  transition: transform 650ms var(--easing-soft);
  transition-delay: 300ms;
}
.timeline.js-animate .timeline__meta--time,
.timeline.js-animate .timeline__meta--label {
  opacity: 0;
  transition: opacity 500ms var(--easing-soft), transform 500ms var(--easing-soft);
  transition-delay: 130ms;
}

/* Left-side text slides in from left */
.timeline.js-animate .timeline__item:nth-child(odd) .timeline__meta--label,
.timeline.js-animate .timeline__item:nth-child(even) .timeline__meta--time {
  transform: translateX(-16px);
}
/* Right-side text slides in from right */
.timeline.js-animate .timeline__item:nth-child(odd)  .timeline__meta--time,
.timeline.js-animate .timeline__item:nth-child(even) .timeline__meta--label {
  transform: translateX(16px);
}

/* Revealed state */
.timeline.js-animate .timeline__item.is-visible .timeline__circle   { opacity: 1; transform: scale(1); }
.timeline.js-animate .timeline__item.is-visible .timeline__connector { transform: scaleY(1); }
.timeline.js-animate .timeline__item.is-visible .timeline__meta--time,
.timeline.js-animate .timeline__item.is-visible .timeline__meta--label { opacity: 1; transform: translateX(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .timeline.js-animate .timeline__circle,
  .timeline.js-animate .timeline__connector,
  .timeline.js-animate .timeline__meta--time,
  .timeline.js-animate .timeline__meta--label {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* Mobile: single column */
@media (max-width: 560px) {
  .timeline__item {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
  }
  .timeline__node { grid-column: 1; grid-row: 1 / 3; }
  .timeline__item .timeline__meta--time,
  .timeline__item .timeline__meta--label {
    grid-column: 2 !important;
    text-align: left !important;
  }
  .timeline__item .timeline__meta--time { grid-row: 1; padding-top: 0.5rem; }
  .timeline__item .timeline__meta--label { grid-row: 2; padding-top: 0.3rem; }
  .timeline__circle { width: 56px; height: 56px; }
  .timeline__circle svg { width: 24px; height: 24px; }
  .timeline.js-animate .timeline__meta--time,
  .timeline.js-animate .timeline__meta--label { transform: translateX(10px) !important; }
}

/* =========================================================== */
/* DRESSCODE                                                    */
/* =========================================================== */

.dresscode {
  background: var(--color-cream);
  padding: clamp(1.5rem, 2.5vh, 2.5rem) 1.5rem;
  scroll-margin-top: 5rem;
}

.dresscode__inner {
  max-width: 1040px;
  margin: 0 auto;
}

/* --- Header --- */
.dresscode__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
}

.dresscode__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-brown-dark);
  line-height: 1.05;
  margin: 0 0 0.3rem;
}

.dresscode__heading {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.4vw, 0.96rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 1rem;
}

.dresscode__body {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: var(--color-brown-dark);
  line-height: 1.85;
  max-width: 58ch;
  margin: 0 auto;
}

/* --- Textile color palette (13 fabric circles, may wrap to 2 rows) --- */
.dresscode__palette {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
  margin: clamp(0.5rem, 1.5vw, 1.2rem) auto clamp(1rem, 2.5vw, 1.75rem);
  max-width: 920px;
}

.dresscode__swatch {
  width: clamp(2.6rem, 4.8vw, 3.6rem);
  height: clamp(2.6rem, 4.8vw, 3.6rem);
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Dark earth frame instead of white ring */
  border: 1.5px solid rgba(82, 56, 40, 0.45);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.14),
    0 4px 14px rgba(82, 56, 40, 0.22),
    inset 0 0 0 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s var(--easing-soft), box-shadow 0.35s ease, border-color 0.35s ease;
}

.dresscode__swatch:hover {
  transform: scale(1.08) rotate(-2deg);
  border-color: rgba(82, 56, 40, 0.75);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 8px 22px rgba(82, 56, 40, 0.32),
    inset 0 0 0 2px rgba(0, 0, 0, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  .dresscode__swatch { transition: none; }
  .dresscode__swatch:hover { transform: none; }
}

/* --- 4×2 Photo Grid --- */
.dresscode__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 720px;
  margin: 0 auto 1rem;
}

.dresscode__cell {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  aspect-ratio: 3 / 4;
  background: rgba(82, 56, 40, 0.12);
}

.dresscode__cell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.5s ease, transform 0.5s var(--easing-soft);
}

.dresscode__cell:hover img {
  transform: scale(1.04);
}

.dresscode__cell img.is-fading {
  opacity: 0;
}

/* --- Note at bottom --- */
.dresscode__note {
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  font-style: italic;
  color: var(--color-brown-mid);
  letter-spacing: 0.03em;
  margin: 0;
}

/* --- Scroll-reveal (JS-driven) --- */
.dresscode__header.js-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--easing-soft), transform 0.9s var(--easing-soft);
}
.dresscode__header.js-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dresscode__grid.js-animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--easing-soft), transform 0.9s var(--easing-soft);
}
.dresscode__grid.js-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 500px) {
  .dresscode__grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

/* =========================================================== */
/* RSVP SECTION                                                 */
/* =========================================================== */
.rsvp {
  background: var(--color-brown-deep);
  padding: clamp(5rem, 10vh, 8rem) 1.5rem;
  scroll-margin-top: 5rem;
}

.rsvp__inner {
  max-width: 660px;
  margin: 0 auto;
}

.rsvp__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.rsvp__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 0.6rem;
}

.rsvp__heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--color-cream);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.rsvp__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: rgba(249, 240, 214, 0.65);
  line-height: 1.8;
  margin: 0;
}

/* --- Form layout --- */
.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.rsvp__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rsvp__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.rsvp__req {
  color: var(--color-gold);
  opacity: 0.7;
}

.rsvp__optional {
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(249, 240, 214, 0.35);
  font-size: 0.76rem;
  margin-left: 0.25em;
}

/* --- Inputs --- */
.rsvp__input {
  appearance: none;
  background: rgba(249, 240, 214, 0.05);
  border: 1px solid rgba(212, 165, 105, 0.25);
  border-radius: 7px;
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  width: 100%;
}

.rsvp__input::placeholder {
  color: rgba(249, 240, 214, 0.25);
}

.rsvp__input:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(212, 165, 105, 0.08);
  box-shadow: 0 0 0 3px rgba(212, 165, 105, 0.18);
}

.rsvp__input--textarea {
  resize: vertical;
  min-height: 82px;
  line-height: 1.7;
}

.rsvp__input--select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4A569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- Radio toggle --- */
.rsvp__fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.rsvp__legend {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  float: left;
  width: 100%;
}

.rsvp__toggle {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rsvp__toggle-opt {
  flex: 1;
  min-width: 140px;
  position: relative;
  cursor: pointer;
}

.rsvp__toggle-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rsvp__toggle-opt span {
  display: block;
  text-align: center;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(212, 165, 105, 0.25);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(249, 240, 214, 0.55);
  background: rgba(249, 240, 214, 0.04);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  user-select: none;
}

.rsvp__toggle-opt:hover span {
  border-color: rgba(212, 165, 105, 0.55);
  color: var(--color-cream);
}

.rsvp__toggle-opt input:checked + span {
  border-color: var(--color-gold);
  color: var(--color-cream);
  background: rgba(212, 165, 105, 0.12);
}

.rsvp__toggle-opt input:focus-visible + span {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* --- Submit row --- */
.rsvp__submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.rsvp__req-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(249, 240, 214, 0.3);
  margin: 0;
}

.rsvp__submit {
  min-width: 180px;
}

/* --- Success state --- */
.rsvp__success {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.rsvp__success-icon {
  width: 3rem;
  height: 3rem;
  color: var(--color-gold);
  display: block;
  margin: 0 auto 1.5rem;
}

.rsvp__success-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-cream);
  margin: 0 0 0.75rem;
  font-weight: 400;
}

.rsvp__success-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(249, 240, 214, 0.65);
  margin: 0;
  line-height: 1.8;
}

/* --- Scroll-reveal --- */
.rsvp__header.js-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--easing-soft), transform 0.9s var(--easing-soft);
}
.rsvp__header.js-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 500px) {
  .rsvp__row--2col { grid-template-columns: 1fr; }
  .rsvp__submit-row { flex-direction: column; align-items: flex-start; }
  .rsvp__submit { width: 100%; }
}

/* =========================================================== */
/* ENVELOPE RSVP                                                */
/* =========================================================== */

.rsvp__inner--envelope {
  max-width: 620px;
}

/* ---- Scene ---- */
.env-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* reserve space so the letter emergence doesn't cause layout jump */
  padding-bottom: 1rem;
}

/* ---- Letter (form, rises up when envelope opens) ---- */
.env-letter {
  width: min(540px, 92vw);
  margin-bottom: -40px; /* starts lower — deeper "inside" the envelope */
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(90px);
  pointer-events: none;
  transition:
    opacity   0.55s 0.55s ease-out,
    transform 1.0s  0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.env-scene.is-open .env-letter {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .env-letter { transition: opacity 0.01s; transform: none; }
}

/* ---- Letter paper ---- */
.letter-paper {
  background: #FAF8F2;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 23px,
      rgba(82, 56, 40, 0.025) 23px, rgba(82, 56, 40, 0.025) 24px
    );
  border-radius: 3px 3px 2px 2px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 6vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #3A2518;
}

/* ---- Letter header ---- */
.letter-header { margin-bottom: 1.5rem; }

.letter-eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #7A5234;
  margin: 0 0 0.45rem;
}

.letter-names {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: #2F4A36;
  line-height: 1.05;
  margin: 0 0 0.3rem;
}

.letter-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.88rem, 2vw, 1.02rem);
  color: #8B6B4A;
  margin: 0 0 1.2rem;
}

.letter-rule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 200px;
  margin: 0 auto;
  color: #C9A85C;
}

.letter-rule--mid {
  margin: 1.5rem auto;
}

.letter-rule__line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ---- Form inside letter ---- */
.letter-form { text-align: left; }

.letter-guests-set,
.letter-answer-set {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

/* Legend styled like a section label */
.letter-section-label,
.letter-guests-set > legend,
.letter-answer-set > legend {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #2F4A36;
  margin: 0 0 0.9rem;
  text-align: center;
  /* reset fieldset-legend quirks */
  float: none;
  padding: 0;
}

.letter-guests {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.letter-guest-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.letter-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.letter-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #7A5234;
}

.letter-opt {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: rgba(122, 82, 52, 0.5);
  font-style: italic;
}

/* Underline-only inputs */
.letter-input {
  appearance: none;
  border: none;
  border-bottom: 1px solid rgba(122, 82, 52, 0.32);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #3A2518;
  padding: 0.3rem 0.1rem 0.35rem;
  width: 100%;
  transition: border-color 0.2s ease;
}

.letter-input::placeholder { color: rgba(58, 37, 24, 0.28); }

.letter-input:focus {
  outline: none;
  border-bottom-color: #2F4A36;
}

/* Focus ring: brown (#523828) on white → ~7:1 contrast (a11y finding #7) */
.letter-input:focus-visible {
  outline: 2px solid #523828;
  outline-offset: 2px;
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(82, 56, 40, 0.14);
}

.letter-textarea {
  resize: vertical;
  min-height: 58px;
  line-height: 1.6;
  border: 1px solid rgba(122, 82, 52, 0.22);
  border-radius: 4px;
  padding: 0.45rem 0.6rem;
}

.letter-textarea:focus-visible { border-radius: 4px; }

/* Error messages */
.letter-error {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: #8B2020;
  min-height: 1.1em;
}

/* Add-guest button */
.letter-add-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: #2F4A36;
  background: none;
  border: 1px solid rgba(47, 74, 54, 0.32);
  border-radius: 100px;
  padding: 0.38rem 1.1rem;
  cursor: pointer;
  margin: 0.25rem 0 0;
  transition: background 0.2s, border-color 0.2s;
}

.letter-add-btn:hover {
  background: rgba(47, 74, 54, 0.07);
  border-color: rgba(47, 74, 54, 0.55);
}

.letter-add-btn:focus-visible {
  outline: 2px solid #523828;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(82, 56, 40, 0.14);
}

/* Optional extras */
.letter-extras {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* Answer radio buttons */
.letter-answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.letter-answer-opt { cursor: pointer; }

.letter-answer-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.letter-answer-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #2F4A36;
  border: 1.5px solid rgba(47, 74, 54, 0.42);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  user-select: none;
}

.letter-answer-opt:hover .letter-answer-label {
  background: rgba(47, 74, 54, 0.07);
  border-color: rgba(47, 74, 54, 0.65);
}

.letter-answer-opt input:checked + .letter-answer-label {
  background: #2F4A36;
  color: #FAF8F2;
  border-color: #2F4A36;
}

.letter-answer-opt input:focus-visible + .letter-answer-label {
  outline: 2px solid #523828;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(82, 56, 40, 0.14);
  border-radius: 100px;
}

/* Submit button */
.letter-submit-row { text-align: center; margin-top: 1.25rem; }

.letter-submit {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: #FAF8F2;
  background: #2F4A36;
  border: none;
  border-radius: 100px;
  padding: 0.75rem 2.25rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.letter-submit:hover {
  background: #3a5c44;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(47, 74, 54, 0.3);
}

.letter-submit:focus-visible {
  outline: 2px solid #523828;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(82, 56, 40, 0.18);
}

.letter-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- The envelope ---- */
.env-envelope {
  /* near-white sage: barely-there green tint, almost white */
  --env-color:    #F7FAF5;
  --env-fold-l:   #EBF0E9;
  --env-fold-r:   #E9EFE7;
  --env-fold-b:   #E6EDE4;
  --env-flap-col: #F2F6F0;

  position: relative;
  width: min(560px, 92vw);
  aspect-ratio: 7 / 4.4;
  background: var(--env-color);
  border-radius: 4px 4px 6px 6px;
  border: 1px solid rgba(140, 170, 135, 0.25);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.09),
    0 16px 56px rgba(0, 0, 0, 0.14),
    0 1px 3px rgba(0, 0, 0, 0.06);
  perspective: 1400px;
  z-index: 1;
}

/* Fold triangles — barely-there depth shading */
.env-fold--left {
  position: absolute;
  inset: 0;
  clip-path: polygon(0% 0%, 46% 50%, 0% 100%);
  background: var(--env-fold-l);
  opacity: 0.45;
}

.env-fold--right {
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0%, 54% 50%, 100% 100%);
  background: var(--env-fold-r);
  opacity: 0.45;
}

.env-fold--bottom {
  position: absolute;
  inset: 0;
  clip-path: polygon(0% 100%, 50% 52%, 100% 100%);
  background: var(--env-fold-b);
  opacity: 0.5;
}


/* Animated flap */
.env-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 53%;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  background: var(--env-flap-col);
  border-bottom: 1px solid rgba(120, 155, 118, 0.22);
  transform-origin: top center;
  transform: rotateX(0deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 1.1s cubic-bezier(0.34, 1.02, 0.64, 1);
  z-index: 3;
}

/* Flap inner shadow (looks like envelope body peeking through when open) */
.env-flap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.025) 0%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

.env-scene.is-open .env-flap {
  transform: rotateX(-178deg);
}

@media (prefers-reduced-motion: reduce) {
  .env-flap { transition: none; }
}

/* Wax seal button */
.env-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: clamp(68px, 13vw, 86px);
  height: clamp(68px, 13vw, 86px);
  border-radius: 50%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.4s ease;
}

.env-seal:hover {
  transform: translate(-50%, -50%) scale(1.12) rotate(4deg);
}

.env-seal:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 5px;
  box-shadow: 0 0 0 6px rgba(212, 165, 105, 0.28);
  border-radius: 50%;
}

.env-seal__svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.22)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.16));
}

.env-scene.is-open .env-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(-12deg);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .env-seal,
  .env-scene.is-open .env-seal {
    transition: opacity 0.01s;
    transform: translate(-50%, -50%);
  }
}

/* ---- Success popup ---- */
.rsvp-popup {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.rsvp-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 22, 17, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

.rsvp-popup__card {
  position: relative;
  z-index: 1;
  max-width: min(460px, 92vw);
  width: 100%;
  animation: popupIn 0.5s var(--easing-soft) both;
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-popup__card { animation: none; }
}

@keyframes popupIn {
  from { transform: scale(0.88) translateY(18px); opacity: 0; }
  to   { transform: scale(1) translateY(0);        opacity: 1; }
}

.letter-paper--popup {
  padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.5rem, 5vw, 2.25rem);
}

.popup-success { text-align: center; padding-top: 0.25rem; }

.popup-success__heart {
  width: 2.5rem;
  height: 2.5rem;
  color: #2F4A36;
  display: block;
  margin: 0 auto 1rem;
}

.popup-success__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.7rem);
  color: #2F4A36;
  margin: 0 0 0.6rem;
}

.popup-success__text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: #6B4D36;
  line-height: 1.8;
  margin: 0;
}

.rsvp-popup__close {
  position: absolute;
  top: -0.8rem;
  right: -0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #FAF8F2;
  color: #523828;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, color 0.2s;
}

.rsvp-popup__close:hover {
  background: #523828;
  color: #FAF8F2;
}

.rsvp-popup__close:focus-visible {
  outline: 2px solid #523828;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(82, 56, 40, 0.18);
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
  .letter-guest-row { grid-template-columns: 1fr; }
  .letter-answer-row { flex-direction: column; align-items: stretch; }
  .letter-answer-label { display: block; text-align: center; }
}

/* =========================================================== */
/* PLACEHOLDER SECTIONS (sodass nav-anchors valid sind)         */
/* =========================================================== */
.placeholder {
  min-height: 1px;
  scroll-margin-top: 6rem;
}

/* =========================================================== */
/* RESPONSIVE                                                   */
/* =========================================================== */
@media (max-width: 900px) {
  .nav__list { gap: 1rem; }
  .nav__link { font-size: 1.25rem; }
  .nav { padding: 0.45rem 1.1rem; }
}

@media (max-width: 720px) {
  .site-header { top: 1rem; }
  .nav { padding: 0.4rem 0.85rem; }
  .nav__list { gap: 0.65rem; flex-wrap: wrap; justify-content: center; }
  .nav__link { font-size: 1.1rem; padding: 0.3rem 0.15rem; }
  .nav__logo { width: 52px; }
  .hero__content { padding-top: 8rem; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(3.5rem, 18vw, 6rem); }
  .hero__cta { padding: 0.7rem 1.75rem 0.8rem; }
}

/* =========================================================== */
/* LOCATION SECTION                                             */
/* =========================================================== */

.location {
  background: #fff;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  scroll-margin-top: 5rem;
}

.location__inner { max-width: 1040px; margin: 0 auto; }

.location__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.location__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-brown-dark);
  line-height: 1.05;
  margin: 0 0 0.3rem;
}

.location__heading {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.4vw, 0.96rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brown-mid);
  margin: 0;
}

/* --- Weather --- */
.location__weather { margin-bottom: clamp(3rem, 6vw, 5rem); }

.weather__card {
  border: 1px solid rgba(82, 56, 40, 0.18);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.45);
  max-width: 660px;
  margin: 0 auto;
}

.weather__top {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.weather__date { font-family: var(--font-body); font-size: clamp(1rem, 1.8vw, 1.1rem); color: var(--color-brown-dark); margin: 0; }
.weather__season { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-gold); margin: 0; }

.weather__stats {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.weather__stat { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; min-width: 68px; }
.weather__icon { color: var(--color-gold); }
.weather__val { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--color-brown-dark); line-height: 1; }
.weather__label { font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-brown-mid); }
.weather__note { font-family: var(--font-body); font-size: 0.78rem; color: var(--color-brown-mid); text-align: center; font-style: italic; margin: 0; }

/* --- Venue articles --- */
.location__venue {
  border-top: 1px solid rgba(82, 56, 40, 0.18);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.location__venue:last-of-type { margin-bottom: 0; }

.venue__eyebrow { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-gold); margin: 0 0 0.45rem; }
.venue__name { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--color-brown-dark); line-height: 1.1; margin: 0 0 0.35rem; }
.venue__address { font-family: var(--font-body); font-size: 0.88rem; color: var(--color-brown-mid); margin: 0 0 1.5rem; }

/* --- Layouts --- */
.venue__body { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.venue__body--split { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 680px) { .venue__body--split { grid-template-columns: 1fr; } }

/* --- Galleries --- */
.venue__gallery { position: relative; }
.venue__gallery--static { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 5px; border-radius: 8px; overflow: hidden; }
.venue__gallery--shuffle { border-radius: 8px; overflow: hidden; }
.venue__gallery-cell { aspect-ratio: 4 / 3; overflow: hidden; background: rgba(82, 56, 40, 0.2); }
.venue__gallery-cell--tall { aspect-ratio: 3 / 4; }
.venue__gallery-cell img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: opacity 0.5s ease; }
.venue__gallery-cell img.is-fading { opacity: 0; }

/* Pause/play button */
.gallery__pause-btn {
  position: absolute; bottom: 0.6rem; right: 0.6rem;
  width: 2rem; height: 2rem; border-radius: 50%; border: none;
  background: rgba(31, 22, 17, 0.72); color: var(--color-cream);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background 0.2s;
}
.gallery__pause-btn:hover,
.gallery__pause-btn:focus-visible { background: rgba(31, 22, 17, 0.92); outline: 2px solid var(--color-gold); outline-offset: 2px; }
.gallery__icon-play { display: none; }
.gallery__pause-btn[aria-pressed="true"] .gallery__icon-pause { display: none; }
.gallery__pause-btn[aria-pressed="true"] .gallery__icon-play  { display: inline; }

/* --- Map side --- */
.venue__map-side { display: flex; flex-direction: column; gap: 0.65rem; }
.venue__map-wrap { border-radius: 8px; overflow: hidden; }
.venue__map-wrap iframe { display: block; width: 100%; }

/* --- Links --- */
.venue__link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; padding: 0.5rem 1rem; border-radius: 6px;
  transition: background 0.2s, color 0.2s; align-self: flex-start;
}
.venue__link--route { color: var(--color-gold); border: 1px solid rgba(212, 165, 105, 0.32); }
.venue__link--route:hover, .venue__link--route:focus-visible { background: rgba(212, 165, 105, 0.1); outline: 2px solid var(--color-gold); outline-offset: 2px; }
.venue__link--book { color: var(--color-cream); background: var(--color-green); }
.venue__link--book:hover, .venue__link--book:focus-visible { background: var(--color-green-hover); outline: 2px solid var(--color-green-hover); outline-offset: 2px; }

/* --- Shuttle --- */
.venue__shuttle {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(82, 56, 40, 0.18);
  border-radius: 8px; padding: 0.9rem 1rem;
}
.shuttle__icon { color: var(--color-gold); flex-shrink: 0; margin-top: 0.1rem; }
.shuttle__text strong { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 0.3rem; }
.shuttle__text p { font-family: var(--font-body); font-size: 0.85rem; color: var(--color-brown-dark); line-height: 1.72; margin: 0; }

/* --- Scroll reveal --- */
.location__header.js-animate,
.location__weather.js-animate,
.location__venue.js-animate {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.85s var(--easing-soft), transform 0.85s var(--easing-soft);
}
.location__header.js-animate.is-visible,
.location__weather.js-animate.is-visible,
.location__venue.js-animate.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================== */
/* REDUCED MOTION                                               */
/* =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__bg { animation: none; transform: scale(1.02); }
  .hero__particles { display: none; }
  .hero__heart-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .hero__eyebrow,
  .hero__heart,
  .hero__title,
  .hero__date,
  .hero__cta {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================== */
/* RSVP TRIGGER + VIDEO/FORM MODAL                              */
/* =========================================================== */

/* Visually-hidden utility (screen-reader-only) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Trigger button (in RSVP section) ---- */
.rsvp__inner--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
}

.rsvp__cta-wrap {
  margin-top: clamp(1.5rem, 5vw, 2.5rem);
}

.rsvp-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F9F0D6;
  background: #2F4A36;
  border: 1px solid rgba(212, 165, 105, 0.4);
  border-radius: 100px;
  padding: 0.95rem 2.4rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.rsvp-trigger:hover {
  background: #3a5c44;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 165, 105, 0.55);
}

.rsvp-trigger:focus-visible {
  outline: 2px solid #D4A569;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(212, 165, 105, 0.25);
}

.rsvp-trigger__icon {
  color: #D4A569;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-trigger { transition: none; }
  .rsvp-trigger:hover { transform: none; }
}

/* ---- Modal overlay ---- */
.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rsvp-modal[hidden] { display: none; }

.rsvp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 22, 17, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  animation: rsvpModalFade 0.35s ease both;
}

.rsvp-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  animation: rsvpModalIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rsvpModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rsvpModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-modal__backdrop,
  .rsvp-modal__card { animation: none; }
}

/* Close button (always visible top-right) */
.rsvp-modal__close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #FAF8F2;
  color: #523828;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.rsvp-modal__close:hover {
  background: #523828;
  color: #FAF8F2;
  transform: rotate(90deg);
}

.rsvp-modal__close:focus-visible {
  outline: 2px solid #D4A569;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(212, 165, 105, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-modal__close { transition: background 0.01s, color 0.01s; }
  .rsvp-modal__close:hover { transform: none; }
}

/* ---- Stage 1: Video ---- */
.rsvp-modal__video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  border-radius: 14px;
  overflow: hidden;
  background: #1F1611;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.rsvp-modal__video-stage[hidden] { display: none; }

.rsvp-modal__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rsvp-modal__skip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(31, 22, 17, 0.78);
  color: #F9F0D6;
  border: 1px solid rgba(212, 165, 105, 0.45);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}

.rsvp-modal__skip:hover {
  background: rgba(47, 74, 54, 0.92);
  border-color: rgba(212, 165, 105, 0.8);
}

.rsvp-modal__skip:focus-visible {
  outline: 2px solid #D4A569;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(212, 165, 105, 0.3);
}

/* ---- Stage 2: Form ---- */
.rsvp-modal__form-stage {
  width: 100%;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border-radius: 6px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rsvp-modal__form-stage[hidden] { display: none; }

.rsvp-modal__form-stage.is-entering {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-modal__form-stage,
  .rsvp-modal__form-stage.is-entering {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.letter-paper--modal {
  border-radius: 6px;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 520px) {
  .rsvp-modal { padding: 0.5rem; }
  .rsvp-modal__close {
    top: 0.6rem;
    right: 0.6rem;
  }
  .rsvp-trigger {
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
  }
}

/* =========================================================== */
/* RSVP FORM — Mockup-matched design                            */
/* =========================================================== */

/* Color tokens for the form */
:root {
  --rsvp-paper:        #F5EFE0;
  --rsvp-paper-edge:   #E8DFC6;
  --rsvp-green:        #2E5530;    /* dark sage for accents, buttons */
  --rsvp-green-soft:   #4A7C4A;    /* lighter sage */
  --rsvp-green-text:   #1F3A21;    /* high-contrast for input values */
  --rsvp-gold:         #C9A05A;    /* gold accent for dividers, monogram */
  --rsvp-gold-deep:    #A67E3A;    /* deeper gold for "Wir Laden ein" */
  --rsvp-text:         #3A2518;    /* dark brown for body text */
}

/* Override letter-paper background + add subtle paper texture */
.letter-paper--modal {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(0,0,0,0.025), transparent 60%),
    var(--rsvp-paper);
  background-color: var(--rsvp-paper);
  color: var(--rsvp-text);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.75rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 4px;
  box-shadow:
    0 2px 6px rgba(120, 90, 50, 0.10),
    0 12px 40px rgba(80, 60, 30, 0.18),
    inset 0 0 0 1px rgba(201, 160, 90, 0.15);
}

/* Header restyle */
.letter-paper--modal .letter-eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 2.3vw, 1.05rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--rsvp-gold-deep);
  margin: 0 0 0.4rem;
}

.letter-paper--modal .letter-names {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  font-weight: 400;
  color: var(--rsvp-green);
  line-height: 1.05;
  margin: 0 0 0.35rem;
}

.letter-paper--modal .letter-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  color: var(--rsvp-green-soft);
  margin: 0 0 1.4rem;
}

/* Gold divider rules */
.letter-paper--modal .letter-rule {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: min(320px, 80%);
  margin: 1.4rem auto;
  color: var(--rsvp-gold);
}

.letter-paper--modal .letter-rule__line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.letter-paper--modal .letter-rule svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Section headings (Gäste, Eure Antwort, Ernährung & Allergien) */
.letter-paper--modal .letter-section-label,
.letter-paper--modal fieldset > legend {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 1.7rem);
  font-weight: 400;
  color: var(--rsvp-gold-deep);
  text-align: center;
  margin: 0 0 1rem;
  padding: 0;
  float: none;
}

.letter-section-opt {
  display: inline;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.78em;
  color: var(--rsvp-gold);
  margin-left: 0.4rem;
}

/* Fieldsets — borderless containers */
.letter-paper--modal .letter-guests-set,
.letter-paper--modal .letter-answer-set,
.letter-paper--modal .letter-diet-set,
.letter-paper--modal .letter-contact-set {
  border: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.letter-paper--modal .letter-contact-set .letter-field + .letter-field {
  margin-top: 0.9rem;
}

.letter-paper--modal .letter-contact-set .letter-label {
  /* In the contact section we want the labels visible, not visually hidden */
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  font: 500 0.78rem/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rsvp-green-text, #1F3A21);
  margin: 0 0 0.35rem;
}

/* ---- Guest rows (name inputs) ---- */
.letter-paper--modal .letter-guests {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.letter-paper--modal .letter-guest-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: end;
}

.letter-paper--modal .letter-field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Hide the small "Vorname"/"Nachname" labels visually but keep for AT
   (the placeholder is shown visually inside the input) */
.letter-paper--modal .letter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Underline-only inputs in green */
.letter-paper--modal .letter-input {
  appearance: none;
  border: none;
  border-bottom: 1.5px solid var(--rsvp-green-soft);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--rsvp-green-text);
  padding: 0.5rem 0.2rem 0.45rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.letter-paper--modal .letter-input::placeholder {
  color: var(--rsvp-green-soft);
  opacity: 0.8;
  font-style: italic;
}

.letter-paper--modal .letter-input:focus {
  outline: none;
  border-bottom-color: var(--rsvp-green);
  border-bottom-width: 2px;
}

/* Focus indicator — 3:1 contrast required (WCAG 2.4.13) */
.letter-paper--modal .letter-input:focus-visible {
  outline: 2px solid var(--rsvp-green);
  outline-offset: 4px;
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(46, 85, 48, 0.15);
}

/* ---- Add-guest button: outlined green pill ---- */
.letter-add-wrap {
  text-align: center;
  margin-top: 0.5rem;
}

.letter-paper--modal .letter-add-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--rsvp-green);
  background: transparent;
  border: 1.5px solid var(--rsvp-green-soft);
  border-radius: 100px;
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  min-height: 36px;
}

.letter-paper--modal .letter-add-btn:hover {
  background: rgba(46, 85, 48, 0.08);
  border-color: var(--rsvp-green);
  color: var(--rsvp-green);
}

.letter-paper--modal .letter-add-btn:focus-visible {
  outline: 2px solid var(--rsvp-green);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(46, 85, 48, 0.18);
}

/* ---- Answer radio pills ---- */
.letter-paper--modal .letter-answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.letter-paper--modal .letter-answer-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}

.letter-paper--modal .letter-answer-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--rsvp-green);
  background: transparent;
  border: 1.5px solid var(--rsvp-green-soft);
  border-radius: 100px;
  padding: 0.65rem 1.6rem;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.letter-paper--modal .letter-answer-opt:hover .letter-answer-label {
  background: rgba(46, 85, 48, 0.08);
  border-color: var(--rsvp-green);
}

/* Checked state — bold border + fill, NOT colour-only difference */
.letter-paper--modal .letter-answer-opt input:checked + .letter-answer-label {
  background: var(--rsvp-green);
  color: #F5EFE0;
  border-color: var(--rsvp-green);
  font-style: normal;
  font-weight: 500;
}

.letter-paper--modal .letter-answer-opt input:focus-visible + .letter-answer-label {
  outline: 2px solid var(--rsvp-green);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(46, 85, 48, 0.2);
}

/* ---- Ernährung & Allergien per-guest textareas ---- */
.letter-diet-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.letter-diet-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.letter-diet-label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--rsvp-green-soft);
  padding-left: 0.4rem;
}

.letter-paper--modal .letter-textarea {
  border: 1.5px solid var(--rsvp-green-soft);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  font-style: italic;
  min-height: 70px;
  line-height: 1.55;
  resize: vertical;
  background: rgba(255, 255, 255, 0.35);
}

.letter-paper--modal .letter-textarea:focus {
  border-color: var(--rsvp-green);
  border-width: 2px;
  padding: calc(0.7rem - 0.5px) calc(0.9rem - 0.5px);
}

.letter-paper--modal .letter-textarea:focus-visible {
  outline: 2px solid var(--rsvp-green);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(46, 85, 48, 0.15);
}

/* ---- Submit "Teilnehmen" — filled green pill ---- */
.letter-paper--modal .letter-submit-row {
  text-align: center;
  margin-top: 1.8rem;
}

.letter-paper--modal .letter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #F5EFE0;
  background: var(--rsvp-green);
  border: 1.5px solid var(--rsvp-green);
  border-radius: 100px;
  padding: 0.85rem 3rem;
  min-height: 48px;
  min-width: 180px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(46, 85, 48, 0.28);
}

.letter-paper--modal .letter-submit:hover {
  background: #234221;
  transform: translateY(-1px);
  box-shadow: 0 7px 22px rgba(46, 85, 48, 0.38);
}

.letter-paper--modal .letter-submit:focus-visible {
  outline: 2px solid var(--rsvp-green);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(46, 85, 48, 0.22);
}

.letter-paper--modal .letter-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .letter-paper--modal .letter-submit { transition: background 0.01s; }
  .letter-paper--modal .letter-submit:hover { transform: none; }
}

/* ---- Decorative monogram at bottom ---- */
.letter-monogram {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.6rem;
  color: var(--rsvp-gold);
}

.letter-monogram svg {
  width: clamp(64px, 14vw, 84px);
  height: auto;
}

/* ---- Error messages (kept legible on cream) ---- */
.letter-paper--modal .letter-error {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #8B2020;
  min-height: 1.1em;
  padding-top: 0.25rem;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 520px) {
  .letter-paper--modal .letter-guest-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .letter-paper--modal .letter-answer-row {
    flex-direction: column;
    align-items: stretch;
  }
  .letter-paper--modal .letter-answer-label {
    width: 100%;
  }
}

/* =========================================================== */
/* Remove-guest button + logo at bottom                         */
/* =========================================================== */

/* Removable guest rows: name fields + X button at the right */
.letter-paper--modal .letter-guest-row--removable {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  position: relative;
}

.letter-paper--modal .letter-guest-remove {
  appearance: none;
  background: transparent;
  border: 1.5px solid var(--rsvp-green-soft);
  color: var(--rsvp-green);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.45rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.letter-paper--modal .letter-guest-remove:hover {
  background: var(--rsvp-green);
  color: #F5EFE0;
  border-color: var(--rsvp-green);
  transform: rotate(90deg);
}

.letter-paper--modal .letter-guest-remove:focus-visible {
  outline: 2px solid var(--rsvp-green);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(46, 85, 48, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .letter-paper--modal .letter-guest-remove { transition: background 0.01s, color 0.01s; }
  .letter-paper--modal .letter-guest-remove:hover { transform: none; }
}

@media (max-width: 520px) {
  .letter-paper--modal .letter-guest-row--removable {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "vorname  remove"
      "nachname nachname";
    gap: 0.85rem 0.6rem;
  }
  .letter-paper--modal .letter-guest-row--removable > :nth-child(1) { grid-area: vorname; }
  .letter-paper--modal .letter-guest-row--removable > :nth-child(2) { grid-area: nachname; }
  .letter-paper--modal .letter-guest-remove { grid-area: remove; justify-self: end; align-self: center; margin: 0; }
}

/* Logo at the bottom — use the same PNG as the nav */
.letter-monogram {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.6rem;
}

.letter-monogram__img {
  width: clamp(96px, 22vw, 132px);
  height: auto;
  display: block;
  /* The PNG is already gold on transparent; no filter needed */
}

/* ===========================================================
   MOBILE & TABLET PASS — konsolidiert auf 1024 / 768 / 480
   Reihenfolge: vom breitesten zum schmalsten Breakpoint,
   pro Komponente. Diese Sektion überschreibt absichtlich
   weiter oben definierte Werte.
   =========================================================== */

/* ----- Skip-Link über alles legen ---------------------------- */
.skip-link:focus { z-index: 2000; }

/* ----- Sanftere scroll-anchor Offsets auf kleinen Screens ---- */
@media (max-width: 1024px) {
  .dresscode,
  .agenda,
  .location,
  .rsvp,
  .countdown,
  #storyline,
  #images { scroll-margin-top: 3.5rem; }
}

/* ===========================================================
   TABLET — bis 1024px
   =========================================================== */
@media (max-width: 1024px) {

  /* Venue-Body später umbrechen — auf Tablet Portrait
     ist 2-spaltig zu eng (Map+Galerie nebeneinander) */
  .venue__body--split {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  /* Dresscode Bildgrid: 2×4 statt 4×2 — Hochformat-Bilder
     bekommen wieder Atemraum */
  .dresscode__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(180px, 26vw);
  }
}

/* ===========================================================
   PHONE LARGE — bis 768px
   =========================================================== */
@media (max-width: 768px) {

  /* ---- Nav: minimalist — Logo + Teilnehmen CTA ----------- */
  .site-header { top: 0.85rem; }
  .nav {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
  }
  .nav__list {
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  /* Verstecke Text-Links, lasse Logo + CTA stehen.
     Erste 3 Items (Storyline, Dresscode, Agenda) und
     die Items 5+6 (Location, Bilder) ausblenden. */
  .nav__item:not(.nav__item--logo):not(:last-child) {
    display: none;
  }
  /* Logo-Item soll sich strecken und CTA + leerer Raum
     ausbalancieren */
  .nav__item--logo {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .nav__logo { width: 46px; height: auto; }
  .nav__link--cta {
    /* Touch-Target */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
  }

  /* ---- Countdown: kompakter & wrap-fähig ----------------- */
  .countdown__timer {
    gap: 0.6rem;
    flex-wrap: nowrap;
  }
  .countdown__unit {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.9rem 0.4rem 0.7rem;
    border-radius: 10px;
  }
  .countdown__number {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
  .countdown__label {
    font-size: clamp(0.6rem, 1.8vw, 0.72rem);
    letter-spacing: 0.14em;
  }

  /* ---- Dresscode-Palette: größere Kreise, sauberer Wrap -- */
  .dresscode__palette {
    gap: 0.7rem;
    max-width: 100%;
  }
  .dresscode__swatch {
    width: 3rem;
    height: 3rem;
  }

  /* ---- Dresscode-Note lesbarer ---------------------------- */
  .dresscode__note { font-size: 0.95rem; }

  /* ---- Festhalle-Gallery: Pause-Button 44×44 ------------- */
  .gallery__pause-btn {
    width: 44px;
    height: 44px;
    bottom: 0.5rem;
    right: 0.5rem;
  }

  /* ---- Weather-Card: 2×2 statt 4×1 ----------------------- */
  .weather__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.8rem;
    justify-items: center;
  }
  .weather__stat   { min-width: 0; }
  .weather__label  { font-size: 0.78rem; }
  .weather__val    { font-size: clamp(1.2rem, 5vw, 1.5rem); }

  /* ---- Form: Submit immer komfortabel im Viewport -------- */
  .letter-paper--modal {
    padding-bottom: 1.2rem;
  }
  .letter-submit {
    min-height: 48px;
    width: 100%;
    min-width: 0;
  }

  /* ---- Modal-Close: bleibt sichtbar beim Scrollen -------- */
  .rsvp-modal__close {
    position: sticky;
    top: 0.5rem;
    margin-left: auto;
    margin-bottom: -2.2rem; /* überlappt mit Inhalt darunter */
    z-index: 5;
    width: 44px;
    height: 44px;
  }

  /* ---- Modal-Skip im Video: 44×44 ------------------------ */
  .rsvp-modal__skip {
    min-height: 44px;
    padding: 0.6rem 1.2rem;
  }

  /* ---- Gast-Remove-Button: 44×44 ------------------------- */
  .letter-paper--modal .letter-guest-remove {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  /* ---- Welcome-Body min 16px ----------------------------- */
  .welcome__prose p { font-size: 1.05rem; }

  /* ---- Timeline-Items mehr Luft -------------------------- */
  .timeline__item { min-height: 5rem; }
  .timeline__title { font-size: clamp(1.15rem, 4vw, 1.4rem); }

  /* ---- Hofgut Gallery: höher auf Mobile ------------------ */
  .venue__gallery--shuffle,
  .venue__gallery--static {
    min-height: 220px;
  }

  /* ---- Modal-Video bei Tablet-Landscape nicht zu schmal -- */
  .rsvp-modal__video-stage {
    aspect-ratio: auto;
    max-height: 70dvh;
  }
  .rsvp-modal__video {
    height: 100%;
    width: 100%;
    object-fit: contain;
    background: #000;
  }
}

/* ===========================================================
   PHONE — bis 480px
   =========================================================== */
@media (max-width: 480px) {

  /* ---- Nav noch kompakter -------------------------------- */
  .nav { padding: 0.3rem 0.7rem; }
  .nav__logo { width: 40px; }
  .nav__link--cta {
    font-size: 0.82rem;
    padding: 0.5rem 0.9rem;
  }

  /* ---- Container-Padding der Sektionen leicht zurück ----- */
  .dresscode,
  .agenda,
  .location,
  .rsvp {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  /* ---- Hero-CTA Touch-Target ----------------------------- */
  .hero__cta {
    min-height: 48px;
    padding: 0.85rem 1.8rem;
  }

  /* ---- Hero-Heart kleiner -------------------------------- */
  .hero__heart {
    width: clamp(140px, 50vw, 200px) !important;
    height: auto !important;
  }

  /* ---- Countdown: 2×2 statt 4×1 wenn zu schmal ----------- */
  .countdown__timer {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .countdown__unit {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }
  .countdown__number {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  /* ---- Dresscode: Palette Kreise leicht größer ---------- */
  .dresscode__swatch {
    width: 2.8rem;
    height: 2.8rem;
  }
  .dresscode__palette { gap: 0.55rem; }

  /* ---- Dresscode-Bildgrid: 2×4 → wirklich 2-spaltig ----- */
  .dresscode__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(150px, 38vw);
    gap: 0.55rem;
  }

  /* ---- Modal-Card: volle Höhe für Tastatur --------------- */
  .rsvp-modal {
    padding: 0;
  }
  .rsvp-modal__card {
    max-height: 100dvh;
    max-width: 100%;
    border-radius: 0;
  }
  .letter-paper--modal {
    border-radius: 0;
    padding: 1.2rem 1rem 1.5rem;
  }

  /* ---- Modal-Close auf reinem Mobile immer im Sichtfeld - */
  .rsvp-modal__close {
    top: 0.6rem;
    right: 0.6rem;
  }

  /* ---- Schmale Letter-Header --------------------------- */
  .letter-paper--modal .letter-eyebrow { font-size: 0.92rem; }
  .letter-paper--modal .letter-names   { font-size: clamp(2.2rem, 11vw, 3rem); }
  .letter-paper--modal .letter-subtitle{ font-size: 0.85rem; }

  /* ---- Venue-Body Padding ------------------------------- */
  .location__venue { padding-left: 0.25rem; padding-right: 0.25rem; }
  .venue__name { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* ---- Hofgut-Galerie Höhe ------------------------------ */
  .venue__gallery--shuffle,
  .venue__gallery--static { min-height: 200px; }

  /* ---- Footer/Image fallback (Bilder & Storyline Platz) - */
  #storyline, #images { min-height: 0; }
}

/* ===========================================================
   ULTRA SCHMAL — bis 360px (iPhone SE 1st gen etc.)
   =========================================================== */
@media (max-width: 360px) {
  .countdown__number { font-size: 1.6rem; }
  .countdown__label  { font-size: 0.58rem; letter-spacing: 0.1em; }
  .countdown__unit   { padding: 0.7rem 0.3rem 0.55rem; }
  .dresscode__swatch { width: 2.5rem; height: 2.5rem; }
  .nav__link--cta    { font-size: 0.78rem; padding: 0.45rem 0.75rem; }
}

/* ===========================================================
   ALLGEMEINE TOUCH-TARGET-GARANTIE für interaktive Elemente
   (greift nur dort wo Pointer "coarse" ist — Touchscreen)
   =========================================================== */
@media (pointer: coarse) {
  a, button, input[type="checkbox"], input[type="radio"], label.letter-answer-opt {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  }
}

/* ===========================================================
   MOBILE PASS V2 — User-Feedback nach Live-Test auf iPhone
   - Nav komplett ausblenden
   - Countdown kompakter & in einer Reihe
   - Agenda: Titel ÜBER Uhrzeit, sauber gestapelt
   - Dresscode Body in Carattere wie "Hallo ihr Lieben"
   - Dresscode Grid: 2×3 (6 Bilder) statt 2×4
   - Modal-Video reingezoomt + Skip-Button UNTER Video
   =========================================================== */

/* ---- Nav komplett weg auf Mobile + Tablet -------------- */
@media (max-width: 1024px) {
  .site-header { display: none; }
  /* Hero braucht keinen Safe-Zone-Padding mehr für die Nav */
  .hero { padding-top: clamp(3rem, 6vh, 5rem); }
}

/* ---- Dresscode Body: Carattere-Script wie Welcome ----- */
.dresscode__body {
  font-family: var(--font-display);
  color: var(--color-green);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 60ch;
}
@media (max-width: 768px) {
  .dresscode__body {
    font-size: clamp(1.2rem, 4.6vw, 1.55rem);
    line-height: 1.55;
    padding: 0 0.25rem;
  }
}

/* ---- Dresscode-Grid auf Mobile: 2×3 (nur 6 Bilder) ---- */
@media (max-width: 768px) {
  .dresscode__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    /* aspect-ratio:3/4 an den Zellen reicht — keine eigene row-height */
    grid-auto-rows: auto;
    gap: 14px !important;
    margin: 1.25rem auto 0;
    padding: 0 0.1rem;
    background: var(--color-cream, #F9F0D6);
    position: relative;
    z-index: 1;
  }
  /* Nur die ersten 6 Zellen anzeigen */
  .dresscode__cell:nth-child(n+7) { display: none; }
  .dresscode__cell {
    background: var(--color-cream, #F9F0D6);
    border-radius: 10px;
  }
  .dresscode__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
  }
  /* Anmerkung unter dem Grid: auf Mobile weglassen
     (Inhalt steckt schon im Body-Text darüber) */
  .dresscode__note { display: none; }

  /* Sauberer Bottom-Abstand der ganzen Section */
  .dresscode {
    padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
    position: relative;
    z-index: 0;
    background: var(--color-cream, #F9F0D6);
  }
  .dresscode__inner {
    background: transparent;
    position: relative;
    z-index: 1;
  }
}

/* Sehr kleines Handy: Padding zwischen Bildern etwas schmaler */
@media (max-width: 380px) {
  .dresscode__grid {
    gap: 10px !important;
  }
}

/* ---- Countdown: kompakte 4-er-Reihe auf Mobile -------- */
@media (max-width: 768px) {
  .countdown { padding-left: 1rem; padding-right: 1rem; }
  .countdown__timer {
    gap: 0.4rem;
    flex-wrap: nowrap;
    margin-bottom: 1.5rem;
  }
  .countdown__unit {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.7rem 0.25rem 0.6rem;
    border-radius: 8px;
    gap: 0.25rem;
  }
  .countdown__number {
    font-size: clamp(1.4rem, 6.5vw, 2rem);
    line-height: 1;
  }
  .countdown__label {
    font-size: clamp(0.55rem, 2vw, 0.68rem);
    letter-spacing: 0.1em;
  }
  .countdown__date { margin-top: 0.5rem; }
}
/* Sehr schmal: 4er-Reihe bleibt, aber noch kleiner */
@media (max-width: 360px) {
  .countdown__unit { padding: 0.55rem 0.15rem 0.5rem; }
  .countdown__number { font-size: 1.3rem; }
  .countdown__label  { font-size: 0.5rem; letter-spacing: 0.08em; }
}

/* ---- Agenda Timeline auf Mobile: Titel oben, Zeit drunter --- */
@media (max-width: 768px) {
  .timeline__item {
    grid-template-columns: 56px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 1rem;
    row-gap: 0.15rem;
    align-items: start;
    margin-bottom: 0.6rem;
  }
  .timeline__node { grid-column: 1 !important; grid-row: 1 / 3 !important; }
  .timeline__meta { padding-top: 0 !important; }
  /* Titel/Themenblock OBEN */
  .timeline__item .timeline__meta--label {
    grid-column: 2 !important;
    grid-row: 1 !important;
    text-align: left !important;
    padding-top: 0.7rem !important;
  }
  /* Uhrzeit DRUNTER */
  .timeline__item .timeline__meta--time {
    grid-column: 2 !important;
    grid-row: 2 !important;
    text-align: left !important;
    padding-top: 0.05rem !important;
  }
  .timeline__title {
    font-size: clamp(1.15rem, 4.5vw, 1.4rem);
    display: block;
    line-height: 1.2;
  }
  .timeline__meta--time time {
    font-size: 0.75rem;
    color: var(--color-brown-mid);
    opacity: 0.85;
  }
  .timeline__circle { width: 56px; height: 56px; }
  .timeline__circle svg { width: 24px; height: 24px; }
}

/* ---- Modal: Video reingezoomt + Skip UNTER Video ------- */
.rsvp-modal__video-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  aspect-ratio: auto;
  max-height: none;
  border-radius: 0;
  width: 100%;
}
.rsvp-modal__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 75dvh;
  border-radius: 14px;
  overflow: hidden;
  background: #1F1611;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.rsvp-modal__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* leichte Vergrößerung — Inhalt nimmt mehr Frame ein */
  transform: scale(1.18);
  transform-origin: center;
}
.rsvp-modal__skip {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  /* sichtbarer & klarer Sekundär-Button */
  background: rgba(31, 22, 17, 0.92);
  color: #F9F0D6;
  border: 1px solid rgba(212, 165, 105, 0.55);
  border-radius: 100px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  min-height: 44px;
  align-self: center;
}
@media (max-width: 768px) {
  .rsvp-modal__video-frame {
    aspect-ratio: 9 / 14;
    max-height: 68dvh;
  }
  .rsvp-modal__video { transform: scale(1.22); }
  .rsvp-modal__skip {
    width: auto;
    padding: 0.75rem 1.6rem;
    font-size: 0.92rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rsvp-modal__video { transform: none; }
}


