:root {
  --cream: #faf6f0;
  --paper: #fffdf9;
  --ink: #3d3a35;
  --muted: #7a746b;
  --sage: #7d8f76;
  --sage-dark: #5f7059;
  --rose: #c9a39a;
  --line: #e6ded2;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Lato", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 300 17px/1.7 var(--sans); }
a { color: var(--sage-dark); }
img { max-width: 100%; display: block; }
.script { font-family: var(--script); font-weight: 400; }

[hidden] { display: none !important; }

/* Passwort-Abfrage */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; color: #fff;
  background: radial-gradient(ellipse at 30% 20%, #a9b8a2 0%, transparent 60%), radial-gradient(ellipse at 80% 90%, #c9a39a 0%, transparent 55%), #6d7f67; }
.gate form { width: 100%; max-width: 380px; text-align: center; display: grid; gap: 14px; }
.gate h1 { font-size: clamp(56px, 14vw, 88px); margin: 0; line-height: 1; text-shadow: 0 2px 16px rgba(0,0,0,.2); }
.gate p { margin: 0; }
.gate-names { font-size: 13px; letter-spacing: .35em; text-transform: uppercase; }
.gate input { text-align: center; border: 0; }
.gate .btn { background: #fff; color: var(--sage-dark); }
.gate .btn:hover { background: var(--cream); }
.gate-err { min-height: 1.7em; font-weight: 700; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; padding: 24px 16px;
  background: radial-gradient(ellipse at 30% 20%, #a9b8a2 0%, transparent 60%), radial-gradient(ellipse at 80% 90%, #c9a39a 0%, transparent 55%), #6d7f67;
  background-size: cover; background-position: center; }
.hero.has-image { background-image: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.35)), var(--hero-image); }
.hero h1 { font-size: clamp(64px, 14vw, 140px); margin: 0; line-height: 1; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero .sub { font-size: clamp(28px, 5.5vw, 48px); margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero .names { font: 400 15px var(--sans); letter-spacing: .35em; text-transform: uppercase; margin-top: 28px; }
.divider { display: flex; align-items: center; gap: 14px; justify-content: center; font-size: 22px; margin: 10px 0; }
.divider span { width: 90px; height: 1px; background: currentColor; opacity: .7; }
.scroll-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 36px; text-decoration: none; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,253,249,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; padding: 12px 16px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a:hover { color: var(--sage-dark); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle { display: block; background: none; border: 0; font-size: 26px; padding: 8px 16px; color: var(--ink); cursor: pointer; }
  .nav-links { display: none; flex-direction: column; align-items: center; gap: 10px; padding-top: 0; }
  .nav.open .nav-links { display: flex; }
}

/* Sections */
section { padding: 80px 16px; scroll-margin-top: 50px; }
section:nth-of-type(even) { background: var(--paper); }
.wrap { max-width: 900px; margin: 0 auto; }
.narrow { max-width: 680px; margin: 0 auto; }
h2 { font: 400 clamp(44px, 8vw, 64px)/1.1 var(--script); text-align: center; margin: 0 0 12px; color: var(--sage-dark); }
h3 { font: 600 26px/1.3 var(--serif); margin: 0 0 6px; }
.intro { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.prose { white-space: pre-line; font-family: var(--serif); font-size: 21px; line-height: 1.6; text-align: center; }
.signature { font: 400 40px var(--script); text-align: center; color: var(--sage-dark); margin-top: 24px; }
.quote { font: italic 400 28px/1.4 var(--serif); text-align: center; color: var(--sage-dark); max-width: 640px; margin: 56px auto 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 28px; text-align: center; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: -28px -28px 20px; width: calc(100% + 56px); max-width: none; border-radius: 4px 4px 0 0; }
.card .meta { color: var(--rose); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.card .addr { font-size: 14px; color: var(--muted); margin-top: 14px; }
.card p { margin: 8px 0; }

/* Wünsche */
.cards.single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.card.wish { border: 0; border-top: 3px solid var(--rose); box-shadow: 0 10px 30px rgba(61,58,53,.07); padding: 36px 32px; }
.wish-icon { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--rose); }
.card.wish h3 { font-size: 30px; color: var(--sage-dark); }
.card.wish p { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink); }

/* Countdown */
.countdown { display: flex; justify-content: center; gap: clamp(12px, 4vw, 40px); }
.countdown div { text-align: center; min-width: 80px; }
.countdown b { display: block; font: 400 clamp(48px, 10vw, 80px)/1 var(--serif); color: var(--sage-dark); }
.countdown span { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Timeline */
.timeline { position: relative; max-width: 640px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 84px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 70px 1fr; gap: 30px; margin-bottom: 32px; position: relative; }
.tl-item::after { content: ""; position: absolute; left: 80px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }
.tl-time { font: 600 22px var(--serif); text-align: right; color: var(--sage-dark); }
.tl-day { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tl-item p { margin: 4px 0 0; }

/* Formulare */
form { display: grid; gap: 16px; }
label { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
input[type=text], input[type=email], input[type=number], input[type=password], select, textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { flex-direction: row; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 30px; cursor: pointer; background: #fff; color: var(--ink); }
.choice input { accent-color: var(--sage); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 5px; accent-color: var(--sage); }
.btn { font: 400 14px var(--sans); letter-spacing: .15em; text-transform: uppercase; background: var(--sage); color: #fff; border: 0; padding: 14px 28px; border-radius: 30px; cursor: pointer; justify-self: center; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--sage-dark); }
.btn:disabled { opacity: .5; cursor: default; }
.notice { text-align: center; padding: 14px; border-radius: 4px; background: #eef2eb; color: var(--sage-dark); }
.notice.err { background: #f7e9e6; color: #9a4b3d; }

/* Fotos */
.dropzone { border: 2px dashed var(--line); border-radius: 6px; padding: 40px 16px; text-align: center; cursor: pointer; background: #fff; transition: .2s; }
.dropzone.over { border-color: var(--sage); background: #f3f6f1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 32px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-height: 90vh; }
.lightbox button { position: fixed; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }

/* ABC */
.abc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 36px; }
.abc div { display: flex; gap: 16px; align-items: baseline; }
.abc b { font: 400 44px/1 var(--script); color: var(--rose); min-width: 36px; text-align: center; }

/* Hochzeitstisch */
.gift { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px; margin-bottom: 12px; }
.gift .ph { width: 80px; height: 80px; border-radius: 3px; background: var(--cream); object-fit: cover; display: grid; place-items: center; color: var(--rose); font-size: 30px; }
.gift small { color: var(--muted); display: block; }
.gift .bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.gift .bar i { display: block; height: 100%; background: var(--sage); }
.gift select { width: auto; }
.gift-total { text-align: center; font: 600 22px var(--serif); margin: 16px 0; }
@media (max-width: 560px) { .gift { grid-template-columns: 56px 1fr; } .gift .ph { width: 56px; height: 56px; } .gift select { grid-column: 1 / -1; } }

/* Paar */
.person img, .person .avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.person .avatar { background: var(--cream); display: grid; place-items: center; font: 400 64px var(--script); color: var(--rose); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font: 600 21px var(--serif); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--rose); font-size: 26px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { white-space: pre-line; margin: 10px 0 0; }

.footer { text-align: center; padding: 60px 16px 40px; background: var(--sage-dark); color: #fff; }
.footer .script { font-size: 36px; margin: 0 0 10px; }
.footer a { color: #fff; opacity: .8; }
.small { font-size: 13px; }
dialog { border: 1px solid var(--line); border-radius: 6px; max-width: 560px; padding: 28px; }
dialog::backdrop { background: rgba(0,0,0,.4); }
#privacyDialog { max-height: 85vh; overflow-y: auto; }
#privacyBody { white-space: pre-line; font-size: 15px; }
