/* ==========================================================================
   Hochzeitsseite · gedeckte, herbstliche Hellgrün- und Hellblautöne
   ========================================================================== */

:root {
  --paper: #F5F2EA;
  --paper-2: #ECE8DC;
  --paper-3: #E3DECF;
  --card: #FBF9F4;

  --sage: #B9C6AA;
  --sage-2: #9DAE8C;
  --sage-3: #7B8E6C;
  --sage-deep: #4F6147;

  --mist: #C5D4D9;
  --mist-2: #A9BFC8;
  --lake: #7A98A6;
  --lake-deep: #4E6B78;

  --ink: #2B3630;
  --ink-2: #55635B;
  --ink-3: #7E8A83;

  --rust: #B9764E;
  --error: #A3382B;

  --line: rgba(43, 54, 48, .14);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --radius: 20px;
  --tl-col: 7rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; height: 100dvh; }

/* feines Papierkorn über der ganzen Seite */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .22 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; }
a { color: var(--sage-deep); }

.container {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 144;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 1rem; }
h2 em { font-style: italic; color: var(--sage-deep); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 400; }
h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

.eyebrow {
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 .9rem;
}
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 58ch; margin-bottom: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .92rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font: 600 .95rem/1.2 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--sage-deep); color: #F7F5EE;
  box-shadow: 0 12px 26px -14px rgba(79, 97, 71, .8);
}
.btn-primary:hover { transform: translateY(-2px); background: #435339; box-shadow: 0 16px 30px -14px rgba(79, 97, 71, .9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(43, 54, 48, .28); }
.btn-ghost:hover { background: rgba(43, 54, 48, .06); }
.btn-sm { padding: .6rem 1.1rem; font-size: .86rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible { outline: 3px solid rgba(79, 97, 71, .4); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Briefumschlag: Fotoebenen, Lasche klappt in 3D auf, Karte steigt aus der Tasche
   Alle Ebenen nutzen dasselbe Bildformat (1080 x 1935) mit "cover", dadurch liegen
   Foto und Masken exakt übereinander. Die Drehachse der Lasche setzt main.js.
   -------------------------------------------------------------------------- */

.envelope-stage {
  position: fixed; inset: 0; z-index: 100;
  background: #E9E2D3;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.envelope-stage.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.js) .envelope-stage { display: none; }

.env-scene {
  position: absolute; inset: 0; overflow: hidden;
  perspective: 1100px; perspective-origin: 50% 45%;
  cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
}
.env-scene:focus-visible { box-shadow: inset 0 0 0 4px rgba(79, 97, 71, .35); }

.env-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;
}
.env-open { background-image: url(../img/umschlag-offen.jpg); z-index: 1; }
.env-pocket {
  background-image: url(../img/umschlag-offen.jpg); z-index: 3;
  -webkit-mask: url(../img/maske-tasche.png) 50% 50% / cover no-repeat;
  mask: url(../img/maske-tasche.png) 50% 50% / cover no-repeat;
}

/* Lasche mit Siegel als 3D-Ebene */
.env-flap {
  position: absolute; inset: 0; z-index: 4;
  transform-style: preserve-3d;
  transform-origin: 50% 11.5%;
  transform: rotateX(0deg);
  transition: transform 1.2s cubic-bezier(.5, .02, .22, 1);
  will-change: transform;
}
.flap-front-wrap {
  position: absolute; inset: 0;
  filter: drop-shadow(0 7px 9px rgba(35, 20, 14, .28));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flap-front {
  background-image: url(../img/umschlag-zu.jpg);
  -webkit-mask: url(../img/maske-lasche.png) 50% 50% / cover no-repeat;
  mask: url(../img/maske-lasche.png) 50% 50% / cover no-repeat;
}
.flap-back {
  background: #EDE6D7 url(../img/papier.jpg) 50% 0 / 100% auto repeat-y;
  -webkit-mask: url(../img/maske-lasche-rueck-flip.png) 50% 50% / cover no-repeat;
  mask: url(../img/maske-lasche-rueck-flip.png) 50% 50% / cover no-repeat;
  transform: rotateX(180deg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}

/* Einladungskarte (freigestelltes Foto) */
.letter {
  position: absolute; left: 50%; top: 100%; z-index: 2;
  width: min(78vw, 360px);
  transform: translate(-50%, 0);
  transition: transform 1s cubic-bezier(.22, .8, .25, 1) .45s, opacity .6s ease;
  will-change: transform;
}
.letter img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 26px 34px rgba(20, 26, 22, .42)) drop-shadow(0 2px 4px rgba(20, 26, 22, .25));
}

.envelope-hint {
  position: absolute; left: 0; right: 0; bottom: max(6vh, env(safe-area-inset-bottom, 0px) + 2rem); z-index: 6; margin: 0;
  text-align: center; font-size: .92rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(43, 54, 48, .62);
  animation: hint-pulse 2.4s ease-in-out infinite;
  transition: opacity .3s ease;
}

/* Öffnen: 1. Lasche klappt auf, 2. Karte rutscht aus der Tasche, 3. Karte wird nach vorn gehoben */
.env-scene.is-open .env-flap { transform: rotateX(178deg); }
.env-scene.is-open .letter { transform: translate(-50%, var(--card-rise, -60vh)); }
.env-scene.is-open .envelope-hint { opacity: 0; animation: none; }
.envelope-stage.is-lifted .letter {
  z-index: 5;
  transform: translate(-50%, calc(-50vh - 50%)) scale(1.1);
  transition: transform .85s cubic-bezier(.22, .8, .25, 1), opacity .6s ease;
}
.envelope-stage.is-lifted .letter img { filter: drop-shadow(0 40px 50px rgba(20, 26, 22, .5)) drop-shadow(0 3px 5px rgba(20, 26, 22, .25)); transition: filter .85s ease; }
.envelope-stage.is-leaving .letter { transform: translate(-50%, calc(-50vh - 50%)) scale(1.16); opacity: 0; transition: transform .55s ease, opacity .55s ease; }

@keyframes hint-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem max(16px, calc((100% - 1120px) / 2));
  transition: background .3s ease, box-shadow .3s ease, opacity .6s ease;
}
.site-nav.is-solid {
  background: rgba(245, 242, 234, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
body.has-envelope:not(.is-revealed) .site-nav { opacity: 0; pointer-events: none; }
.nav-brand {
  font-family: var(--font-display); font-style: italic; font-size: 1.4rem;
  color: var(--ink); text-decoration: none; white-space: nowrap; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .12rem;
}
.brand-leaf { width: .62em; height: .62em; color: var(--sage-3); transform: translateY(-.06em); }
.nav-links {
  display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: .15rem;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  white-space: nowrap; padding: .45rem .85rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a.is-active { background: rgba(79, 97, 71, .12); color: var(--ink); }
.nav-links a.nav-cta { background: var(--sage-deep); color: #F7F5EE; }
.nav-links a.nav-cta:hover, .nav-links a.nav-cta.is-active { background: #435339; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: 6.5rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 45% at 10% 15%, rgba(185, 198, 170, .6), transparent 70%),
    radial-gradient(45% 40% at 90% 75%, rgba(197, 212, 217, .8), transparent 70%),
    radial-gradient(30% 30% at 65% 5%, rgba(234, 223, 200, .7), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-names {
  font-size: clamp(3.2rem, 8.5vw, 7.2rem);
  font-style: italic; font-weight: 300; line-height: .95;
  display: flex; flex-direction: column;
}
.hero-names .und {
  font-size: .22em; font-weight: 400; color: var(--sage-3); letter-spacing: .12em;
  display: flex; align-items: center; gap: .9em; margin: .5em 0 .45em .12em;
}
.hero-names .und::after { content: ""; width: 3.2em; height: 1px; background: var(--sage-2); }
.hero-date {
  margin: 1.8rem 0 0; font-size: .98rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-2); line-height: 1.7;
}
.hero-place {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0; font-size: 1.45rem; color: var(--lake-deep);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

.hero-photo { margin: 0; position: relative; max-width: 460px; justify-self: end; width: 100%; }
.hero-photo img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 50% 50% 26px 26px / 33.33% 33.33% 26px 26px;
  box-shadow: 0 50px 90px -40px rgba(43, 54, 48, .5);
}
.hero-photo::before {
  content: ""; position: absolute; inset: -16px; z-index: -1;
  border: 1px solid var(--sage-2);
  border-radius: 50% 50% 34px 34px / 33.33% 33.33% 34px 34px;
  transform: rotate(-2.5deg);
}
.hero-photo::after {
  content: ""; position: absolute; right: -8%; bottom: 8%; width: 42%; aspect-ratio: 1; z-index: -2;
  background: radial-gradient(circle, rgba(169, 191, 200, .8), transparent 70%);
}

.countdown { display: flex; gap: 1.6rem; margin-top: 1.6rem; min-height: 3.4rem; }
.cd-item { display: grid; gap: .1rem; }
.cd-num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.cd-today { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; margin: 0; color: var(--sage-deep); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(43, 54, 48, .3); border-radius: 999px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: var(--sage-deep); animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Fotoreihe
   -------------------------------------------------------------------------- */

.photo-band { padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(1.5rem, 4vw, 3rem); overflow: hidden; }
.polaroids {
  list-style: none; margin: 0 auto; padding: 1rem 0 1.5rem;
  width: min(100% - 2rem, 1120px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2.2rem); align-items: start;
}
.polaroids li:nth-child(1) { margin-top: 1.6rem; }
.polaroids li:nth-child(3) { margin-top: 2.8rem; }
.polaroids li:nth-child(4) { margin-top: .6rem; }
.polaroid {
  margin: 0; background: var(--card); padding: 10px 10px 16px; border-radius: 6px;
  box-shadow: 0 24px 44px -26px rgba(43, 54, 48, .55), 0 2px 6px rgba(43, 54, 48, .08);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
.polaroids li:nth-child(1) .polaroid { --tilt: -2.4deg; }
.polaroids li:nth-child(2) .polaroid { --tilt: 1.6deg; }
.polaroids li:nth-child(3) .polaroid { --tilt: -1.2deg; }
.polaroids li:nth-child(4) .polaroid { --tilt: 2.3deg; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.polaroid:hover { transform: rotate(0deg) translateY(-8px) scale(1.03); box-shadow: 0 34px 54px -26px rgba(43, 54, 48, .6), 0 2px 6px rgba(43, 54, 48, .1); }

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 66ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Ablauf */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.timeline::before {
  content: ""; position: absolute; left: calc(var(--tl-col) + 1.25rem + 11px); top: 12px; bottom: 30px; width: 1px;
  background: linear-gradient(var(--sage-2), var(--mist-2));
}
.tl-item {
  display: grid; grid-template-columns: var(--tl-col) 24px 1fr; column-gap: 1.25rem;
  padding-bottom: 2.8rem;
}
.tl-item::before {
  content: ""; grid-column: 2; grid-row: 1;
  width: 12px; height: 12px; border-radius: 50%; margin: .6rem auto 0;
  background: var(--paper); border: 2px solid var(--sage-3);
  box-shadow: 0 0 0 5px var(--paper);
}
.section-alt .tl-item::before { background: var(--paper-2); box-shadow: 0 0 0 5px var(--paper-2); }
.tl-time { grid-column: 1; text-align: right; }
.tl-clock { font-family: var(--font-display); font-size: 2rem; font-weight: 300; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.tl-until { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tl-body { grid-column: 3; padding-top: .35rem; }
.tl-body p { margin: .45rem 0 0; color: var(--ink-2); }
.note, .tip {
  background: rgba(185, 198, 170, .3); border-left: 3px solid var(--sage-3);
  padding: .75rem 1rem; border-radius: 0 12px 12px 0; font-size: .95rem; margin-top: .9rem !important;
  color: var(--ink) !important;
}
.tip { background: rgba(197, 212, 217, .45); border-left-color: var(--lake); margin-bottom: 0; }

/* Orte */
.venue {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  padding: clamp(1.1rem, 3vw, 2.25rem);
  background: var(--card); border-radius: 28px;
  border: 1px solid rgba(43, 54, 48, .07);
  box-shadow: 0 40px 70px -50px rgba(43, 54, 48, .45);
}
.venue + .venue { margin-top: 2.5rem; }
.venue-media { margin: 0; position: relative; }
.venue-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.venue-media.wide img:first-child { aspect-ratio: 4 / 3; }
.venue-media-small {
  position: absolute; right: -6%; bottom: -8%; width: 38% !important; aspect-ratio: 3 / 4 !important;
  border: 6px solid var(--card); box-shadow: 0 20px 40px -20px rgba(43, 54, 48, .5); border-radius: 16px !important;
}
.venue.is-flipped .venue-media { order: 2; }
.venue-sub { display: block; font-size: .62em; font-style: italic; color: var(--sage-deep); margin-top: .25em; }
.venue-address { font-size: 1.05rem; margin: .8rem 0 1.1rem; line-height: 1.5; }
.venue-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.parking-title { margin: 1.4rem 0 .6rem; }
.parking { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.parking li {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start;
  padding: .7rem .9rem; background: rgba(197, 212, 217, .32); border-radius: 12px; font-size: .95rem; line-height: 1.45;
}
.p-badge {
  width: 30px; height: 30px; border-radius: 8px; background: var(--lake-deep); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; margin-top: .1rem;
}
.venue-body .small { margin: .8rem 0 0; }

.map {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 1rem;
  background-color: var(--mist);
  background-image:
    linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px),
    radial-gradient(60% 80% at 70% 60%, rgba(122, 152, 166, .55), transparent 70%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}
.map.is-loaded { padding: 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { display: grid; gap: .4rem; justify-items: center; max-width: 34ch; font-size: .88rem; color: var(--ink-2); }
.map-consent strong { color: var(--ink); font-size: 1rem; }
.map-consent .btn { margin-top: .3rem; background: rgba(251, 249, 244, .85); }

/* Dresscode */
.dress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 2rem; }
.palette-group h3 { font-size: 1.2rem; margin-bottom: 1rem; font-style: italic; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 1rem .6rem; }
.swatch { display: grid; justify-items: center; gap: .3rem; text-align: center; }
.swatch-color {
  width: 72px; height: 72px; border-radius: 50%; position: relative;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 10px 18px -12px rgba(43, 54, 48, .5);
  transition: transform .25s ease;
}
.swatch:hover .swatch-color { transform: translateY(-3px) scale(1.04); }
.swatch-name { font-size: .86rem; font-weight: 700; }
.swatch-hex { font-size: .7rem; color: var(--ink-3); letter-spacing: .06em; }
.palette-no { grid-column: 1 / -1; padding-top: 1.6rem; border-top: 1px dashed var(--line); }
.palette-no .palette { grid-template-columns: repeat(auto-fill, minmax(96px, 120px)); }
.palette-no h3 { color: var(--error); }
.swatch.is-no .swatch-color::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 118%; height: 2px;
  background: var(--error); transform: translate(-50%, -50%) rotate(-45deg);
}
.swatch.is-no .swatch-color::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--error);
}

/* Menü und Rückmeldung */
.menu-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.menu-card {
  background: var(--card); border-radius: 24px; padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.2rem, 3vw, 2rem);
  text-align: center; position: relative; border: 1px solid rgba(43, 54, 48, .08);
  box-shadow: 0 40px 70px -50px rgba(43, 54, 48, .45);
}
.menu-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(79, 97, 71, .28); border-radius: 18px; pointer-events: none; }
.menu-kicker { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--sage-deep); margin: 0 0 .5rem; }
.menu-course { padding: 1.1rem 0; }
.menu-course + .menu-course { border-top: 1px dashed rgba(43, 54, 48, .2); }
.course-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); margin: 0 0 .35rem; }
.dish { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; margin: 0; line-height: 1.2; }
.dish-note { color: var(--ink-2); font-size: .93rem; margin: .2rem 0 0; }
.menu-options { display: grid; gap: .9rem; margin-top: .6rem; }
.menu-option { padding: .7rem .5rem; border-radius: 14px; background: rgba(185, 198, 170, .18); }
.option-tag {
  display: inline-block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--sage-deep); background: rgba(79, 97, 71, .12); padding: .2rem .6rem; border-radius: 999px; margin-bottom: .35rem;
}
.menu-kids .dish-note { max-width: 32ch; margin-inline: auto; }

.rsvp-card {
  background: var(--card); border-radius: 24px; padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgba(43, 54, 48, .08); box-shadow: 0 40px 70px -50px rgba(43, 54, 48, .45);
}
.rsvp-title { margin-bottom: .4rem; }
.rsvp-intro { color: var(--ink-2); margin-bottom: 1.6rem; }

.field-group { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.field-group legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: .6rem; }
.help { font-size: .88rem; color: var(--ink-3); margin: -.3rem 0 .8rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
.field label { font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; font-size: 1rem; padding: .75rem .9rem; border-radius: 12px;
  border: 1px solid rgba(43, 54, 48, .22); background: #fff; color: var(--ink); width: 100%; min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%2355635B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .7rem center / 18px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--sage-3); box-shadow: 0 0 0 3px rgba(79, 97, 71, .2); }
textarea { resize: vertical; }

.choice-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.choice { position: relative; flex: 1 1 200px; }
.choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: block; padding: .9rem 1rem; border-radius: 14px; text-align: center; font-weight: 700;
  border: 1px solid rgba(43, 54, 48, .22); background: #fff; transition: all .2s ease;
}
.choice input:checked + span { background: var(--sage-deep); color: #F7F5EE; border-color: var(--sage-deep); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(79, 97, 71, .3); }

.guest-list { display: grid; gap: .7rem; margin-bottom: .9rem; }
.guest-row {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.25fr) auto; gap: .7rem; align-items: end;
  grid-template-areas: "name name remove" "type menu menu";
  padding: .9rem; border-radius: 16px; background: rgba(185, 198, 170, .2);
}
.guest-row .field { margin: 0; }
.guest-row .field:first-child { grid-area: name; }
.guest-row .field-type { grid-area: type; }
.guest-row .field-menu { grid-area: menu; }
.guest-row .guest-remove { grid-area: remove; }
.guest-remove {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(43, 54, 48, .22); background: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-2); transition: background .2s ease;
}
.guest-remove:hover { background: rgba(163, 56, 43, .1); color: var(--error); }
.rsvp-form.is-declined .field-menu, .rsvp-form.is-declined .field-type { display: none; }
.rsvp-form.is-declined .guest-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name remove"; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }
.form-status { margin: 0; font-size: .92rem; color: var(--ink-2); }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--sage-deep); }
.form-success { text-align: center; padding: 1.5rem 0 .5rem; }
.success-icon { width: 56px; height: 56px; color: var(--sage-deep); margin: 0 auto .8rem; }
.form-success h3 { margin-bottom: .6rem; }
.form-success ul { list-style: none; padding: 0; margin: 0 0 1.2rem; color: var(--ink-2); }
.form-success li { padding: .2rem 0; }

/* Geschenke */
.gift-card {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background: var(--card); border-radius: 28px; padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(43, 54, 48, .07); box-shadow: 0 40px 70px -50px rgba(43, 54, 48, .45);
}
.gift-art { margin: 0 0 1.2rem; position: relative; }
.gift-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.gift-small {
  position: absolute; right: -9%; bottom: -9%; width: 46%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 14px; border: 6px solid var(--card); box-shadow: 0 20px 40px -20px rgba(43, 54, 48, .5);
  transform: rotate(3deg);
}
.gift-text h2 { margin-bottom: .8rem; }
.gift-text .lead { max-width: 60ch; margin-bottom: 1.1rem; }
.gift-note { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--sage-deep); margin: 0; }

/* Upload */
.upload-card {
  background: var(--card); border-radius: 24px; padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgba(43, 54, 48, .08); box-shadow: 0 40px 70px -50px rgba(43, 54, 48, .45);
}
.dropzone {
  position: relative; display: grid; justify-items: center; gap: .3rem;
  padding: 2.4rem 1rem; margin-bottom: 1.2rem;
  border: 2px dashed rgba(79, 97, 71, .45); border-radius: 20px;
  background: rgba(185, 198, 170, .16); cursor: pointer; text-align: center;
  transition: background .2s ease, border-color .2s ease;
}
.dropzone:hover, .dropzone.is-over { background: rgba(185, 198, 170, .36); border-color: var(--sage-deep); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { box-shadow: 0 0 0 3px rgba(79, 97, 71, .25); }
.dz-icon { width: 40px; height: 40px; color: var(--sage-deep); margin-bottom: .3rem; }
.dz-title { font-family: var(--font-display); font-size: 1.4rem; }
.dz-help { font-size: .86rem; color: var(--ink-3); }
.upload-list { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; }
.upload-list:empty { display: none; }
.upload-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper-3); }
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-item.is-video::before { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: 1.4rem; }
.upload-item .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--sage-deep); transition: width .2s linear; }
.upload-item.is-done::after, .upload-item.is-error::after {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; font-weight: 700;
}
.upload-item.is-done::after { content: "✓"; background: rgba(79, 97, 71, .6); }
.upload-item.is-error::after { content: "!"; background: rgba(163, 56, 43, .65); }
.upload-item .remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: rgba(43, 54, 48, .7); color: #fff; font-size: .9rem; line-height: 1; cursor: pointer;
}
.upload-item.is-done .remove { display: none; }

/* Footer */
.site-footer { padding: 4rem 0 3rem; text-align: center; background: var(--ink); color: rgba(247, 245, 238, .78); }
.footer-leaf { width: 34px; height: 34px; color: var(--sage); margin: 0 auto; }
.footer-names { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: #F7F5EE; margin: .6rem 0 .1rem; }
.footer-names .und { font-size: .5em; color: var(--sage); margin: 0 .2em; }
.footer-date { letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.site-footer a { color: var(--sage); }
.privacy { max-width: 62ch; margin: 1.8rem auto 0; font-size: .85rem; text-align: left; color: rgba(247, 245, 238, .62); }
.privacy summary { cursor: pointer; text-align: center; color: rgba(247, 245, 238, .78); }
.privacy p { margin-top: .8rem; }

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .dress-grid { grid-template-columns: 1fr 1fr; }
  .menu-layout { grid-template-columns: 1fr; }
  .menu-options { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .hero { padding-top: 5.5rem; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 300px; justify-self: center; }
  .hero-text { text-align: center; }
  .hero-names { align-items: center; }
  .hero-names .und { margin-left: 0; }
  .hero-names .und::before { content: ""; width: 3.2em; height: 1px; background: var(--sage-2); }
  .countdown, .hero-actions { justify-content: center; }
  .scroll-cue { display: none; }
  .venue { grid-template-columns: 1fr; }
  .venue.is-flipped .venue-media { order: 0; }
  .venue-media img, .venue-media.wide img:first-child { aspect-ratio: 16 / 10; }
  .venue-media-small { right: 4%; bottom: -10%; width: 30% !important; }
  .venue-body { padding-top: .8rem; }
  .venue.is-flipped .venue-body { padding-top: 2rem; }
  .gift-card { grid-template-columns: 1fr; }
  .gift-art { max-width: 250px; margin: 0 auto 2rem; }
  .gift-text { text-align: center; }
  .gift-text .lead { margin-inline: auto; }
  .polaroids {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.1rem;
    width: 100%; padding: 1rem 1.5rem 1.6rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .polaroids::-webkit-scrollbar { display: none; }
  .polaroids li { flex: 0 0 min(66vw, 300px); scroll-snap-align: center; margin-top: 0 !important; }
  .polaroids li:nth-child(even) { margin-top: 1.2rem !important; }
}

@media (max-width: 700px) {
  .menu-options { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .guest-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name remove" "type type" "menu menu"; }
  .rsvp-form.is-declined .guest-row { grid-template-areas: "name remove"; }
}

@media (max-width: 640px) {
  :root { --tl-col: 4.4rem; }
  .tl-item { column-gap: .9rem; }
  .tl-clock { font-size: 1.5rem; }
  .timeline::before { left: calc(var(--tl-col) + .9rem + 11px); }
  .dress-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .palette { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .swatch-color { width: 60px; height: 60px; }
  .site-nav { padding-left: 12px; padding-right: 0; }
  .nav-links { padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .envelope-hint, .scroll-cue span { animation: none; }
  .js .reveal { transition: none; transform: none; }
  .env-flap, .letter, .envelope-stage { transition-duration: .01s; }
}
