@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Waterfall"; src: url(/fonts/waterfall.ttf) format("truetype"); font-display: swap; size-adjust: 150%; }
@font-face { font-family: "Bellefair"; src: url(/fonts/bellefair.ttf) format("truetype"); font-display: swap; }

:root {
  --paper: #f8f8f8;
  --sage: #dee0d5;
  --sage-2: #c7cdbd;
  --sage-deep: #6f7d67;
  --ink: #2a2a27;
  --muted: #5d5f58;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --script: "Waterfall", cursive;
  --display: "Bellefair", "Cormorant", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.6; font-weight: 400; }
img { display: block; max-width: 100%; }
a { color: var(--sage-deep); }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.script { font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0; }
.caps { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-weight: 400; }
.center { text-align: center; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; padding-top: max(12px, env(safe-area-inset-top)); transition: background .3s, box-shadow .3s; color: #fff; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(248,248,246,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: opacity .3s; pointer-events: none; }
.nav.is-solid { color: var(--ink); }
.nav.is-solid::before { opacity: 1; }
.nav__brand { color: inherit; text-decoration: none; font-size: 22px; letter-spacing: .2em; }
.nav__brand .script { font-size: 30px; letter-spacing: 0; }
.nav__menu { display: flex; gap: 26px; }
.nav__menu a { color: inherit; text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: 15px; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 8px; cursor: pointer; color: inherit; }
.nav__toggle span:not(.sr) { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s; }
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu { position: fixed; inset: 0; background: var(--paper); color: var(--ink); flex-direction: column; align-items: center; justify-content: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav__menu a { font-size: 20px; }
  .nav.is-open .nav__menu { opacity: 1; pointer-events: auto; }
  .nav.is-open { color: var(--ink); }
  .nav.is-open .nav__toggle { position: relative; z-index: 2; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__brand { position: relative; z-index: 2; }
}

/* HERO */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; display: flex; align-items: flex-start; justify-content: center; text-align: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,35,.45) 0%, rgba(20,30,35,.12) 45%, rgba(20,20,15,.35) 100%); }
.hero__content { position: relative; padding-top: max(16vh, 96px); }
.hero__kicker { font-size: clamp(40px, 8vw, 64px); margin: 0 0 .25em; line-height: 1.1; }
.names { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(38px, 9vw, 76px); line-height: 1.05; display: flex; flex-direction: column; align-items: center; }
.names__und { font-size: .8em; line-height: 1; margin: .05em 0 .15em; }
.hero__date { margin-top: 24px; font-family: var(--display); text-transform: uppercase; letter-spacing: .22em; font-size: clamp(21px, 4.4vw, 30px); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; width: 1px; height: 54px; background: rgba(255,255,255,.7); transform: translateX(-50%); }
.hero__scroll::after { content: ""; position: absolute; left: -4px; bottom: 0; width: 9px; height: 9px; border-right: 1px solid #fff; border-bottom: 1px solid #fff; transform: rotate(45deg); }

/* COUNTDOWN */
.countdown { background: var(--sage); padding: 34px 16px; text-align: center; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); justify-content: center; gap: 8px; }
.countdown b { display: block; font-weight: 300; font-size: clamp(36px, 8vw, 56px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted); }
.countdown__done { font-size: 28px; margin: 0; }

/* EINLADUNGSKARTE */
.card { padding: 72px 16px; }
.card__paper { position: relative; max-width: 760px; margin: 0 auto; aspect-ratio: 771 / 813; background: url(/assets/floral.jpg) center / cover no-repeat; background-color: var(--paper); display: grid; grid-template-columns: 1fr auto; padding: 8% 7% 8% 22%; gap: 4%; }
.card__body { align-self: center; text-align: center; font-size: clamp(15px, 2.3vw, 19px); line-height: 1.55; }
.card__body h2 { font-size: clamp(22px, 4.4vw, 38px); font-weight: 400; margin: 0 0 .3em; }
.card__body h2 .script { font-size: 1.6em; line-height: .5; }
.card__greet { font-size: .95em; }
.card__sign { font-size: clamp(30px, 6vw, 46px); margin: .2em 0 0; line-height: 1; }
.card__date { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.card__line { width: 1px; flex: 1; background: var(--ink); min-height: 30px; }
.card__num { font-family: var(--display); font-size: clamp(28px, 5vw, 46px); line-height: 1.1; padding: 6px 0; border-bottom: 1px solid var(--ink); }
.card__num + .script { border: 0; }
.card__month { font-size: clamp(30px, 5.4vw, 50px); line-height: 1.1; writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 0; }
@media (max-width: 640px) {
  .card { padding: 48px 0; }
  .card__paper { aspect-ratio: auto; min-height: 0; padding: 38vw 16px 32px; grid-template-columns: 1fr; gap: 14px; background-size: 125% auto; background-position: 0 0; }
  .card__body { background: rgba(222,224,213,.92); padding: 26px 18px; font-size: 17px; }
  .card__date { flex-direction: row; gap: 12px; order: -1; justify-content: flex-end; }
  .card__line { display: none; }
  .card__num { border: 0; }
  .card__month { writing-mode: horizontal-tb; transform: none; padding: 0; }
}

/* SECTIONS */
.section { padding: 88px 20px; }
.section--tint { background: #eff0ea; }
.wrap { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 680px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; gap: 36px; } .section { padding: 64px 20px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 14px; color: var(--sage-deep); margin: 0 0 6px; }
.h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(27px, 5.2vw, 48px); line-height: 1.2; margin: 0 0 28px; overflow-wrap: break-word; }
.address { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--sage-2); }
.address .caps { font-size: 17px; margin-bottom: .6em; }
.btn { display: inline-block; background: var(--sage-deep); color: #fff; border: 1px solid var(--sage-deep); text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-family: var(--serif); font-size: 15px; padding: 13px 26px; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: #5a6753; }
.btn--ghost { background: transparent; color: var(--sage-deep); }
.btn--ghost:hover { background: var(--sage-deep); color: #fff; }

/* MAP */
.map { position: relative; aspect-ratio: 4 / 3; background: var(--sage); border-radius: 2px; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.map__consent svg { width: 44px; height: 44px; fill: none; stroke: var(--sage-deep); stroke-width: 1.2; margin-bottom: 8px; }
.map__consent small { color: var(--muted); font-size: 15px; }

/* RING-BILD */
.ring { margin: 0 auto; max-width: 560px; padding: 0 16px; }
.ring img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 640px) { .ring { padding: 0; } }

/* FOTOS */
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.photos img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; }
@media (max-width: 640px) { .photos img { height: 260px; } }

/* TIMELINE */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 18px; bottom: 18px; width: 1px; background: var(--ink); }
.timeline li { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 56px; align-items: center; padding: 14px 0; }
.timeline li::before { content: ""; position: absolute; left: 87px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--ink); }
.timeline .ic { grid-row: span 2; width: 56px; height: 56px; }
.timeline svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.timeline b { font-weight: 600; font-size: 22px; line-height: 1.2; }
.timeline li > span:last-child { color: var(--muted); }

/* INFOS */
.infos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 12px; }
.infos article { background: #fff; padding: 36px 34px 20px; border-top: 3px solid var(--sage-2); }
.infos h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: 27px; margin: 0 0 14px; }
@media (max-width: 820px) { .infos { grid-template-columns: 1fr; } .infos article { padding: 28px 24px 12px; } }

/* RSVP */
.rsvp { margin-top: 28px; background: #fff; padding: 34px; display: grid; gap: 20px; }
.rsvp label { display: grid; gap: 6px; font-size: 18px; }
.rsvp small { color: var(--muted); font-size: 15px; }
.rsvp input:not([type=radio]), .rsvp textarea { font: inherit; font-size: 18px; color: var(--ink); background: var(--paper); border: 1px solid #cfd2c7; border-radius: 0; padding: 11px 13px; width: 100%; }
.rsvp input:focus, .rsvp textarea:focus { outline: 2px solid var(--sage-deep); outline-offset: 1px; }
.rsvp fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.rsvp legend { font-size: 18px; margin-bottom: 6px; padding: 0; }
.rsvp .choice { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid #e1e3db; padding: 12px 14px; cursor: pointer; }
.rsvp .choice input { accent-color: var(--sage-deep); width: 20px; height: 20px; margin: 0; flex: none; }
.rsvp .choice:has(input:checked) { border-color: var(--sage-deep); background: #eef0e8; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rsvp.is-absage .rsvp__yes { display: none; }
.hp { position: absolute !important; left: -9999px; }
.rsvp__note { font-size: 15px; color: var(--muted); margin: 0; }
.rsvp__msg { margin: 0; min-height: 1.5em; }
.rsvp__msg.ok { color: var(--sage-deep); font-size: 22px; }
.rsvp__msg.err { color: #9a3b2f; }
@media (max-width: 640px) { .rsvp { padding: 24px 18px; } .row3 { grid-template-columns: 1fr; } }

/* TRAUZEUGEN */
.witnesses { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 760px; margin: 28px auto 0; text-align: center; }
.witnesses > div { padding: 30px 20px; border: 1px solid var(--sage-2); }
.witnesses__role { font-size: 34px; line-height: 1.35; margin-bottom: .3em; color: var(--sage-deep); }
@media (max-width: 640px) { .witnesses { grid-template-columns: 1fr; } }

/* ABSCHLUSS */
.closing { position: relative; max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.closing__floral { width: 100%; }
.closing__text { position: absolute; top: 8%; bottom: 0; left: calc(16px + 40%); right: calc(16px + 4%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.closing__text .caps { font-size: clamp(20px, 3.8vw, 34px); margin: 0; }
.closing__text .script { font-size: clamp(44px, 9.5vw, 88px); line-height: 1.05; margin: .25em 0 0; white-space: nowrap; }
@media (max-width: 640px) { .closing__text .caps { font-size: 17px; letter-spacing: .12em; } .closing__text .script { font-size: 44px; white-space: nowrap; } }
@media (max-width: 380px) { .closing__text { right: 16px; } .closing__text .caps { font-size: 15px; } .closing__text .script { font-size: 37px; } }

.footer { text-align: center; padding: 30px 20px 48px; font-size: 16px; color: var(--muted); border-top: 1px solid #e6e7e1; }
.footer details { max-width: 680px; margin: 0 auto 10px; text-align: left; }
.footer summary { cursor: pointer; text-align: center; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
.footer details p { margin-top: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
