/* ==========================================================================
   Layout der Gästeseite, Teona & Thorsten
   Farben, Schriften und Abstände stehen in tokens.css.
   Inhalt: 1 Grundlagen · 2 Navigation · 3 Hero · 4 Abschnitte · 5 Bausteine
           6 Abschnitts-Inhalte · 7 Fuß · 8 Bewegung
   ========================================================================== */

/* ---------- 1 Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-800);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-400); }
a:hover { color: var(--gold-300); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }
main:focus { outline: none; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--gold-500); color: var(--navy-900);
  padding: 0.6em 1.2em; font-family: var(--font-display); font-size: 0.9rem;
  border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Marke für die Navigation: liegt 80px unter der Oberkante, main.js beobachtet sie */
.scroll-sentinel { position: absolute; top: 80px; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* ---------- 2 Navigation ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; }
/* Hintergrund liegt auf einem Pseudo-Element, damit das Vollbild-Menü am Fenster hängt */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(1, 33, 80, 0.9); box-shadow: 0 1px 0 var(--gold-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
/* Klasse wird von main.js gesetzt, sobald der Startbereich nach oben scrollt */
.site-header.is-scrolled::before { opacity: 1; }
.nav {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* Die Namen in der Leiste erscheinen erst nach dem Scrollen, auf dem Hero stehen sie groß in der Mitte */
.nav__logo {
  font-family: var(--font-script); font-size: 1.7rem; line-height: 1;
  color: var(--cream); text-decoration: none; position: relative; z-index: 2;
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.site-header.is-scrolled .nav__logo,
.site-header.menu-open .nav__logo { opacity: 1; visibility: visible; }
.nav__logo:hover { color: var(--gold-400); }
.nav__menu { display: flex; gap: clamp(14px, 2vw, 32px); }
.nav__menu a {
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--cream);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__menu a:hover { color: var(--gold-400); }
.nav__menu a.is-active { color: var(--gold-500); border-bottom-color: var(--gold-500); }
.nav__toggle { display: none; }

@media (max-width: 859px) {
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
    position: relative; z-index: 2;
  }
  .nav__bar {
    display: block; height: 1px; background: var(--gold-500);
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Vollbild-Menü */
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: var(--navy-900);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; }
  .nav__menu a { font-size: 1.1rem; padding: 10px 0; }
}

/* ---------- 3 Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--frame-inset) + 72px) calc(var(--frame-inset) + 16px) calc(var(--frame-inset) + 56px);
  background: radial-gradient(ellipse at 50% 45%, var(--navy-700) 0%, var(--navy-800) 70%);
  overflow: hidden; text-align: center;
}
/* Goldener Rahmen; die Blumen liegen darüber und verdecken die Ecken */
.hero__frame {
  position: absolute; inset: var(--frame-inset);
  border: 1px solid rgba(227, 168, 92, 0.7); pointer-events: none;
}
.hero__floral { position: absolute; width: clamp(120px, 26vw, 320px); pointer-events: none; z-index: 1; }
.hero__floral--tl { top: 0; left: 0; }
.hero__floral--br { bottom: 0; right: 0; }

.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 900px; }
.hero__kicker {
  font-family: var(--font-display); color: var(--gold-500); text-transform: uppercase;
  letter-spacing: 0.3em; font-size: clamp(0.85rem, 2.4vw, 1.15rem);
}
.hero__names {
  font-family: var(--font-script); font-weight: 400; color: var(--cream);
  font-size: clamp(2.9rem, 11vw, 6rem); line-height: 1.15; margin: 0.1em 0 0.05em; text-wrap: nowrap;
}
.rule { display: flex; align-items: center; gap: 14px; width: min(340px, 70vw); margin: 0.4em 0 1.1em; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--gold-500); }
.rule svg { flex: none; }
.hero__date {
  font-family: var(--font-display); color: var(--gold-500); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: clamp(1.3rem, 4vw, 2.2rem); line-height: 1.3;
}
.hero__sub { margin-top: 0.8em; font-size: clamp(1.1rem, 2.6vw, 1.35rem); line-height: 1.5; }
.hero__sub span { white-space: nowrap; }

/* Countdown */
.countdown { display: flex; justify-content: center; margin-top: clamp(28px, 5vw, 48px); }
.countdown[hidden] { display: none; }
.countdown__tile {
  display: flex; flex-direction: column; align-items: center; min-width: clamp(64px, 16vw, 110px);
  padding: 0 clamp(8px, 2vw, 22px);
}
.countdown__tile + .countdown__tile { border-left: 1px solid var(--gold-line); }
.countdown__num {
  font-family: var(--font-display); font-weight: 600; color: var(--gold-500);
  font-size: clamp(1.7rem, 6vw, 3rem); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--cream-70);
}
@media (max-width: 440px) {
  .countdown__tile { min-width: 0; padding: 0 8px; }
  .countdown__label { font-size: 0.72rem; letter-spacing: 0.1em; }
}
.countdown__done { font-family: var(--font-display); color: var(--gold-500); font-size: clamp(1.3rem, 4vw, 2rem); letter-spacing: 0.1em; }

/* ---------- 4 Abschnitte ---------- */
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--navy-800); }
.section--light { background: var(--navy-700); }
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }

.section__head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker { font-style: italic; color: var(--gold-300); font-size: 1.15rem; margin-bottom: 0.3em; }
.section__title {
  font-family: var(--font-display); font-weight: 400; color: var(--gold-500);
  text-align: center; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25;
}
.ornament { display: flex; justify-content: center; margin-top: 18px; }

.prose { max-width: var(--text-max); margin: 0 auto; text-align: center; }
.prose p + p { margin-top: 1em; }

/* Zwischenüberschrift innerhalb eines Abschnitts */
.subhead {
  font-family: var(--font-display); font-weight: 400; color: var(--gold-500);
  letter-spacing: 0.1em; font-size: 1.15rem; line-height: 1.4; margin-bottom: 0.6em;
}

/* ---------- 5 Bausteine ---------- */
.btn {
  display: inline-block; font-family: var(--font-display); font-size: 0.85rem;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; text-align: center;
  white-space: nowrap;
  color: var(--gold-500); background: transparent; border: 1px solid var(--gold-500);
  padding: 0.8em 1.6em; border-radius: 2px; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 150ms var(--ease);
}
.btn:hover { background: var(--gold-500); color: var(--navy-800); }
.btn:active { transform: scale(0.98); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: clamp(28px, 4vw, 44px); }

.card {
  background: rgba(11, 53, 112, 0.35); border: 1px solid var(--gold-line);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 36px);
}
.card--narrow { max-width: 760px; margin: 0 auto; }

/* Platzhalter: gepunktet unterstrichen, damit beim Einpflegen nichts vergessen wird */
.platzhalter {
  color: var(--gold-300); text-decoration: underline dotted var(--gold-500);
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}

.grid { display: grid; gap: clamp(16px, 3vw, 32px); }
.grid--two { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid--two { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 6 Abschnitts-Inhalte ---------- */
/* Foto im goldenen Doppelrahmen */
.photo-frame { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); }
.photo-frame__outer { border: 1px solid var(--gold-500); padding: 10px; }
.photo-frame__outer img { width: 100%; border: 1px solid var(--gold-500); }

/* Trauung: offen gesetzt, ohne Karte, wie auf einer Einladungskarte */
.ceremony { max-width: var(--text-max); margin: 0 auto; text-align: center; }
.ceremony__time {
  font-family: var(--font-display); color: var(--gold-500); letter-spacing: 0.12em;
  font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2;
}
.ceremony__place { font-size: 1.4rem; margin-top: 0.4em; }
.ceremony__address { color: var(--cream-70); margin-top: 0.2em; }
.ceremony .subhead { margin-top: 2em; }

/* Fakten-Listen (Location, Adresse ...) */
.facts { display: grid; gap: 14px; margin-bottom: 1.6em; }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; align-items: baseline; }
.facts dt { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); }
@media (max-width: 559px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

.hints { display: grid; gap: 10px; }
.hints li { position: relative; padding-left: 1.4em; }
.hints li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border: 1px solid var(--gold-500); transform: rotate(45deg); }
.hints--center { max-width: 34em; margin: 0 auto; text-align: left; }

/* Zeitleiste: goldene Linie mit Punkten */
.timeline { position: relative; margin-left: 8px; padding-left: 28px; border-left: 1px solid var(--gold-500); display: grid; gap: 20px; }
.timeline li { position: relative; display: flex; flex-direction: column; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 0.55em; width: 11px; height: 11px;
  border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px var(--navy-800);
}
.timeline__title { font-family: var(--font-display); letter-spacing: 0.08em; color: var(--cream); }

/* Hotels: eine Liste mit feinen Trennlinien statt drei gleicher Karten */
.hotel-list { max-width: 820px; margin: clamp(28px, 4vw, 44px) auto 0; border-top: 1px solid var(--gold-line); }
.hotel {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 3vw, 28px) 4px; border-bottom: 1px solid var(--gold-line);
}
.hotel__name { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.08em; color: var(--cream); }
.hotel__meta { color: var(--cream-70); margin-top: 0.2em; }
@media (max-width: 559px) {
  .hotel { flex-direction: column; align-items: flex-start; gap: 14px; }
}

.icon { margin-bottom: 14px; }

/* Zusage-Formular */
#rsvp-embed { max-width: 760px; margin: clamp(24px, 4vw, 40px) auto 0; }
.rsvp-card { border: 1px solid var(--gold-line); border-radius: var(--radius); background: transparent; padding: 8px; }
.rsvp-card iframe { display: block; width: 100%; height: 1200px; border: 0; background: transparent; }
.rsvp-card--placeholder { text-align: center; padding: clamp(28px, 5vw, 56px); background: rgba(11, 53, 112, 0.35); }
.rsvp-actions { text-align: center; margin-top: 20px; }

/* Kontakt: offen gesetzt */
.contact { text-align: center; max-width: var(--text-max); margin: 0 auto; }
.contact__name { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.08em; color: var(--cream); margin-top: 0.6em; }
.contact__links { margin-top: 0.6em; line-height: 1.9; }
.contact__links a { text-decoration: none; }
.contact__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 7 Fuß ---------- */
.site-footer {
  background: var(--navy-900); border-top: 1px solid var(--gold-500);
  padding: 48px 24px; text-align: center;
}
.site-footer__names { font-family: var(--font-script); font-size: 2.4rem; line-height: 1.2; color: var(--cream); }
.site-footer__date { font-family: var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-500); font-size: 1rem; margin-top: 6px; }
.site-footer__note { color: var(--cream-70); font-size: 1rem; margin-top: 14px; }
.site-footer__legal { color: var(--cream-70); font-size: 0.95rem; margin: 18px auto 0; max-width: 60ch; }

/* ---------- 8 Bewegung ---------- */
/* Versteckter Startzustand nur, wenn JS läuft (Klasse "js" auf <html>) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Kartenlinks unter der Adresse der Trauung */
.ceremony__links { margin-top: 0.6em; font-size: 1.05rem; }
.ceremony__links a { text-decoration: none; }
.ceremony__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hotel__meta a { text-decoration: none; }
.hotel__meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
