:root {
  --bg: #fff7ea;
  --bg-2: #f8ecd9;
  --ink: #1b1715;
  --muted: #6f655c;
  --line: rgba(27, 23, 21, 0.18);
  --accent: #8a6a3f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: center; gap: clamp(14px, 4vw, 40px);
  padding: 14px 16px;
  background: rgba(255, 247, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
}
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }

/* ---------- Hero (wie die Save-the-Date-Karte) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
}
.hero-photo { position: relative; overflow: hidden; background: #3a2a1c; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; aspect-ratio: 4 / 5; }
.hero-text {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 56px 24px 64px;
}
.eyebrow {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.05;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin: 0 0 clamp(28px, 5vh, 56px);
}
.title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(54px, 7.4vw, 108px); line-height: 0.98;
  letter-spacing: 0.02em; text-transform: uppercase;
  margin: 0 0 clamp(28px, 5vh, 56px);
}
.date {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: 0.32em; margin: 0 0 28px; padding-left: 0.32em;
}
.rule { width: min(360px, 80%); height: 1.5px; background: var(--ink); border: 0; margin: 0 0 36px; }
.monogram { width: clamp(150px, 16vw, 210px); height: auto; }
.countdown {
  margin-top: 28px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 53fr 47fr; min-height: 100svh; }
  .hero-photo img { aspect-ratio: auto; position: absolute; inset: 0; }
}

/* ---------- Sections ---------- */
section.block {
  max-width: 760px; margin: 0 auto;
  padding: clamp(72px, 12vw, 120px) 16px;
  border-top: 1px solid var(--line);
}
.block h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 5vw, 52px); line-height: 1.05;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-align: center; margin: 0 0 12px;
}
.block .lead { text-align: center; color: var(--muted); margin: 0 auto 48px; max-width: 520px; }
.small-caps { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* Ablauf */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; }
.timeline time { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; }
.timeline h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; line-height: 1.2; }
.timeline p { margin: 4px 0 0; color: var(--muted); }

.venue { text-align: center; margin-top: 48px; }
.venue .name { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 6px 0 2px; }

/* Übernachten */
.stays { display: grid; gap: 16px; }
@media (min-width: 640px) { .stays { grid-template-columns: repeat(3, 1fr); } }
.stay {
  border: 1px solid var(--line); padding: 26px 22px; background: rgba(255, 255, 255, 0.35);
  display: flex; flex-direction: column;
}
.stay h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 4px; line-height: 1.2; }
.stay p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.stay a { margin-top: auto; padding-top: 14px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }

/* Formular */
form.rsvp { display: grid; gap: 18px; max-width: 480px; margin: 0 auto; }
label { display: grid; gap: 6px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=number], textarea {
  font: inherit; font-size: 17px; color: var(--ink); letter-spacing: normal; text-transform: none;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0; border-radius: 0; outline: none;
}
input:focus, textarea:focus { border-bottom-color: var(--ink); }
textarea { resize: vertical; min-height: 72px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: 14px 8px; cursor: pointer;
  border: 1px solid var(--line); font-size: 13px; letter-spacing: 0.16em; color: var(--ink);
  transition: background .2s, color .2s;
}
.choice input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  padding: 16px 28px; cursor: pointer; text-decoration: none; transition: opacity .2s;
}
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); }
.status { min-height: 1.6em; text-align: center; color: var(--muted); margin: 0; }
.status.ok { color: #4d6b45; }
.status.err { color: #9a3b2f; }

/* Fotos */
.photos-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.progress { max-width: 420px; margin: 20px auto 0; height: 2px; background: var(--line); display: none; }
.progress > div { height: 100%; width: 0; background: var(--ink); transition: width .2s; }

/* Galerie */
.gallery { columns: 2 160px; column-gap: 8px; padding: 0 8px 64px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) { .gallery { columns: 4 220px; } }
.gallery a, .gallery video { display: block; margin-bottom: 8px; break-inside: avoid; background: var(--bg-2); }
.gallery img, .gallery video { width: 100%; height: auto; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

.page-head { text-align: center; padding: 56px 16px 32px; }
.page-head .monogram { margin: 0 auto 20px; width: 130px; }

footer { text-align: center; padding: 64px 16px 80px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .monogram { margin: 0 auto 18px; width: 120px; opacity: 0.9; }

.placeholder { background: rgba(138, 106, 63, 0.12); padding: 0 4px; }

@media (max-width: 420px) {
  .nav { gap: 14px; font-size: 11px; letter-spacing: 0.14em; }
}

/* Wir zwei – Fotoreihe */
.us-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 28px; }
.us-grid figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: rgba(0,0,0,.05); }
.us-grid figure:nth-child(even) { transform: translateY(28px); }
.us-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.us-grid figure:hover img { transform: scale(1.035); }
@media (min-width: 800px) {
  .us-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 56px; }
  .us-grid figure:nth-child(even) { transform: translateY(56px); }
}
.block.us { max-width: 1200px; }
