/* Hochzeit Johanna & Nico — Maison-Dorée-inspirierter Papier-Look */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond-Var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Pinyon Script';
  src: url('assets/fonts/PinyonScript-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ivory: #F7F4EC;
  --paper: #EFEAE0;
  --card: #FBF9F3;
  --ink: #2E2C26;
  --ink-soft: #6B675C;
  --gold: #B5A47C;
  --hairline: rgba(46, 44, 38, 0.22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Pinyon Script', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

/* Desktop: Einladung liegt wie eine Karte in der Mitte */
.page {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(181, 164, 124, 0.08), transparent 60%),
    var(--paper);
}

.canvas {
  width: 100%;
  max-width: 460px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.17 0 0 0 0 0.15 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--ivory);
  box-shadow: 0 0 60px rgba(46, 44, 38, 0.14);
  overflow: hidden;
}

/* ---------- Typo-Bausteine ---------- */

.script { font-family: var(--script); font-weight: 400; }

.caps {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  font-weight: 500;
}

.kicker { color: var(--ink-soft); margin-bottom: 14px; }

.section-title {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* ---------- Intro / Envelope ---------- */

#intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  transition: opacity 1.1s ease, visibility 1.1s;
}
#intro.open { opacity: 0; visibility: hidden; }

.intro-inner { text-align: center; padding: 24px; max-width: 100%; overflow: hidden; }

.intro-rule {
  width: 72px;
  height: 1px;
  background: var(--hairline);
  margin: 22px auto;
}

.intro-monogram { font-size: 60px; line-height: 1.15; padding: 0 12px; }

.intro-names { margin-top: 10px; color: var(--ink-soft); }

.btn-open {
  margin-top: 8px;
  padding: 15px 34px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.4s, color 0.4s;
}
.btn-open:hover { background: var(--ink); color: var(--ivory); }

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

.section {
  padding: 64px 30px;
  text-align: center;
  border-bottom: 1px solid rgba(46, 44, 38, 0.07);
}
.section:last-child { border-bottom: 0; }

.hero { padding-top: 84px; }

.hero-monogram { font-size: 58px; margin-bottom: 18px; }

.hero-names { font-size: 62px; line-height: 1.15; margin: 6px 0 22px; }
.hero-names .amp { font-size: 44px; }

.hero-invite {
  color: var(--ink-soft);
  line-height: 2.1;
  max-width: 320px;
  margin: 0 auto 30px;
}

/* Datums-Badge wie im Original: MONAT | TAG | JAHR */
.date-badge {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 8px;
  margin-bottom: 14px;
}
.date-badge .db-side {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0 12px;
}
.date-badge .db-side.left { border-right: 1px solid var(--hairline); padding-right: 22px; }
.date-badge .db-side.right { border-left: 1px solid var(--hairline); padding-left: 22px; }
.date-badge .db-day { font-size: 46px; font-weight: 400; line-height: 1; }
.date-badge .db-single { font-size: 30px; letter-spacing: 0.26em; padding: 0 10px; }

.hero-zeitraum { color: var(--ink-soft); margin-bottom: 8px; }

.illo { margin: 26px auto 0; }
.illo img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply; /* Aquarell verschmilzt mit dem Papierton */
}
.illo-hero { max-width: 360px; }
.illo-small { max-width: 250px; }
.illo-roses { margin-top: 34px; }

.venue-name { font-size: 46px; margin-top: 26px; }
.venue-sub { color: var(--ink-soft); margin: 8px 0 16px; }
.venue-desc { max-width: 320px; margin: 0 auto 22px; color: var(--ink-soft); font-size: 17px; }

.maplink {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 6px;
  transition: border-color 0.3s;
}
.maplink:hover { border-color: var(--ink); }

/* ---------- Countdown ---------- */

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}
.count-cell { border: 1px solid var(--hairline); border-radius: 10px; padding: 14px 4px; }
.count-cell b { display: block; font-size: 30px; font-weight: 500; }
.count-cell span { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Itinerary + Events ---------- */

.rule-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin: 26px auto 0;
  position: relative;
}
.rule-dot::before, .rule-dot::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 56px; height: 1px;
  background: var(--hairline);
}
.rule-dot::before { right: 14px; }
.rule-dot::after { left: 14px; }

.itinerary { padding-bottom: 30px; }

.events { padding: 20px 22px 56px; }

.event-card {
  background: var(--card);
  border: 1px solid rgba(46, 44, 38, 0.14);
  border-radius: 18px;
  padding: 34px 26px 38px;
  margin: 26px 0;
  box-shadow: inset 0 0 0 5px var(--ivory), inset 0 0 0 6px rgba(46, 44, 38, 0.08);
}
.event-card .illo { margin-top: 0; margin-bottom: 8px; max-width: 240px; }
.event-card .ev-kicker { color: var(--gold); letter-spacing: 0.4em; }
.event-card h3 { font-family: var(--script); font-size: 40px; font-weight: 400; margin: 10px 0 4px; }
.event-card .ev-ort { font-size: 20px; margin-bottom: 4px; }
.event-card .ev-zeit { color: var(--ink-soft); font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }
.event-card .ev-text { color: var(--ink-soft); font-size: 17px; max-width: 280px; margin: 0 auto 20px; }

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  max-width: 260px;
  margin: 30px auto 0;
  text-align: left;
  position: relative;
  padding-left: 26px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 3px; top: 10px; bottom: 10px;
  border-left: 1px dashed var(--hairline);
}
.timeline li { position: relative; padding: 13px 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -26px; top: 21px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--ink-soft);
}
.timeline .tl-zeit { display: block; font-size: 13px; letter-spacing: 0.26em; color: var(--ink-soft); }
.timeline .tl-titel { font-family: var(--script); font-size: 27px; line-height: 1.25; }

/* ---------- Dress Code / Hotels ---------- */

.dc-card, .hotel-card {
  background: var(--card);
  border: 1px solid rgba(46, 44, 38, 0.14);
  border-radius: 16px;
  padding: 26px 22px;
  margin: 20px auto 0;
  max-width: 330px;
}
.dc-card .script { font-size: 32px; }
.dc-card .dc-code { letter-spacing: 0.26em; text-transform: uppercase; font-size: 13px; margin-top: 8px; }
.dc-card .dc-code.tbd { color: var(--ink-soft); }

.hotel-card .illo { margin: 0 auto 12px; max-width: 230px; }
.hotel-card h3 { font-family: var(--script); font-size: 32px; font-weight: 400; }
.hotel-card .ho-hinweis { color: var(--ink-soft); font-size: 16px; margin: 6px 0 16px; }

/* ---------- RSVP ---------- */

.rsvp form { max-width: 330px; margin: 26px auto 0; text-align: left; }

.field { display: block; margin-bottom: 20px; }
.field > span { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 8px; }

input[type="text"], input[type="number"], textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 2px 10px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  border-radius: 0;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
textarea { resize: vertical; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.choice-opt {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 15px 6px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.choice-opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice-opt span { font-size: 11px; }
.choice-opt.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.days { border: 0; margin: 4px 0 22px; }
.days legend { font-size: 11px; color: var(--ink-soft); margin-bottom: 10px; }
.days label {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  font-size: 18px;
  cursor: pointer;
}
.days input { width: 17px; height: 17px; accent-color: var(--ink); }

#rsvp-details.hidden { display: none; }

.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 17px;
  background: var(--ink);
  color: var(--ivory);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.3s;
}
.btn-submit:hover { opacity: 0.88; }
.btn-submit[disabled] { opacity: 0.5; cursor: default; }

.form-error { margin-top: 14px; color: #8a3b2e; text-align: center; font-size: 16px; }

.rsvp-done { padding: 10px 0 4px; }
.rsvp-done-text { font-size: 34px; line-height: 1.4; max-width: 300px; margin: 18px auto; }

/* ---------- Footer ---------- */

.footer { padding-bottom: 84px; }
.footer-line { color: var(--ink-soft); margin-top: 24px; }
.footer-names { font-size: 44px; margin-top: 10px; }
.footer-kontakt { color: var(--ink-soft); font-size: 16px; margin-top: 16px; }

/* ---------- Reveals ---------- */

.reveal, .event-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in, .event-card.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .event-card { opacity: 1; transform: none; transition: none; }
  #intro { transition: none; }
}

@media (max-width: 380px) {
  .hero-names { font-size: 52px; }
  .section-title { font-size: 38px; }
  .section { padding-left: 22px; padding-right: 22px; }
}
