/* ==============================================
   WEDDING WEBSITE — STYLESHEET
   ==============================================
   Color Palette:
     --bg-main:      #F9F7F2  (Off-White)
     --bg-alt:       #F1EDE5  (Warm Linen)
     --color-dark:   #3B2F2A  (Deep Earth / Walnut)
     --color-mid:    #6B5B50  (Soft Sepia)
     --color-light:  #A89888  (Muted Tan)
     --color-accent: #8C7565  (Warm Brown)
     --color-border: #D4C9BC  (Light Border)

   Typography:
     Hero:     'Bastliga One' — custom display font for names & date
     Headings: 'Cormorant Garamond', serif — elegant, timeless
     Body:     'Montserrat', sans-serif — clean, modern
   ============================================== */

/* --- CUSTOM FONTS --- */
@font-face {
  font-family: 'Amsterdam Handwriting';
  src: url('fonts/Amsterdam Handwriting.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* SECURITY: Cormorant Garamond – self-hosted, kein externer Request zu fonts.gstatic.com.
   Gewichte 300–600 normal und 300–400 italic teilen sich je zwei WOFF2-Dateien
   (latin-ext + latin), identisch zu den Dateien, die Google Fonts zuvor auslieferte. */

/* Cormorant Garamond – normal – latin-ext (Ä, Ö, Ü, ß etc. abgedeckt durch latin) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Cormorant Garamond – normal – latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Cormorant Garamond – italic – latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Cormorant Garamond – italic – latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* SECURITY: Montserrat – self-hosted, kein externer Request zu fonts.gstatic.com.
   Gewichte 300–500 teilen sich zwei WOFF2-Dateien (latin-ext + latin). */

/* Montserrat – normal – latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/montserrat-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat – normal – latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/montserrat-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bastliga One';
  src: url('fonts/Bastliga One.ttf') format('truetype'),
       url('fonts/Bastliga One.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  --bg-main: #F9F7F2;
  --bg-alt: #F1EDE5;
  --bg-header: rgba(249, 247, 242, 0.92);
  --color-dark: #3B2F2A;
  --color-mid: #5B4C42;
  --color-light: #8F7F71;
  --color-accent: #8C7565;
  --color-heading-brown: #5F4638;
  --color-border: #D4C9BC;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1100px;
  --header-height: 70px;
  --bottom-image-url: url('hero.jpg');
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --bg-main: #332A24;
  --bg-alt: #3D322C;
  --bg-header: rgba(51, 42, 36, 0.9);
  --color-dark: #F7EFE4;
  --color-mid: #D8C9BC;
  --color-light: #B6A698;
  --color-accent: #D1A87A;
  --color-heading-brown: #D3A074;
  --color-border: #5C4B41;
  color-scheme: dark;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 19px;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-dark);
  background-color: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

@supports not (scrollbar-gutter: stable) {
  body {
    overflow-y: scroll;
  }
}

/* --- SELECTION STYLE --- */
::selection {
  background-color: var(--color-accent);
  color: var(--bg-main);
}

/* ==============================================
   PASSWORD GATE OVERLAY
   ============================================== */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
  overflow: hidden;
  /* Hidden by default: JS zeigt Gate nur wenn keine gültige PHP-Session vorhanden */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Transition für Einblenden (is-active) und Ausblenden (is-hidden) */
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Gate wird sichtbar, sobald JS festgestellt hat, dass keine Session vorliegt */
.password-gate.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.password-gate::before {
  content: '';
  position: absolute;
  inset: -24px;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center center;
  filter: blur(6px) saturate(0.95);
  transform: scale(1.06);
  opacity: 0.55;
}

.password-gate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(249, 247, 242, 0.84) 0%,
    rgba(249, 247, 242, 0.9) 100%
  );
}

/* State: hidden after correct password */
.password-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
}

/* Small lock icon above the welcome title */
.gate-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background-color: color-mix(in srgb, var(--bg-main) 92%, var(--color-accent) 8%);
}

.gate-icon svg {
  width: 24px;
  height: 24px;
}

.gate-title {
  font-family: 'Amsterdam Handwriting', var(--font-heading);
  font-weight: normal;
  font-size: 3.1rem;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.gate-subtitle {
  font-size: 0.85rem;
  color: var(--color-mid);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
  line-height: 1.65;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Password input field */
.gate-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-dark);
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 0;
  outline: none;
  text-align: center;
  letter-spacing: 0.15em;
  transition: border-color 0.3s ease;
}

.gate-input:focus {
  border-color: var(--color-accent);
}

.gate-input::placeholder {
  color: var(--color-light);
  letter-spacing: 0.1em;
}

/* Submit button */
.gate-button {
  width: 100%;
  padding: 0.8rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-main);
  background-color: var(--color-dark);
  border: 1px solid var(--color-dark);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.gate-button:hover {
  background-color: transparent;
  color: var(--color-dark);
}

/* Error message below the form */
.gate-error {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #9E5A5A; /* Subtle muted red, fits the palette */
  min-height: 1.2em;
  letter-spacing: 0.03em;
}

.noscript-notice {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-mid);
  line-height: 1.6;
}

/* ==============================================
   MAIN SITE — initially hidden, fades in
   ============================================== */
.main-site {
  opacity: 0;
  transition: opacity 0.75s ease;
}

.main-site.is-visible {
  opacity: 1;
}

/* ==============================================
   HEADER / NAVIGATION
   ============================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-height);
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

/* Subtle shadow when scrolled */
.header.is-scrolled {
  box-shadow: 0 1px 20px rgba(59, 47, 42, 0.06);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

/* Logo / couple initials */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: 0.15em;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-mid);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-dark);
}

.nav-links a[aria-current="location"] {
  color: var(--color-dark);
}

/* Underline animation on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-dark);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a[aria-current="location"]::after {
  width: 100%;
}

.section-indicator {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 980;
}

.section-indicator__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
}

.section-indicator__item {
  width: 8.5rem;
}

.section-indicator__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  position: relative;
  color: var(--color-mid);
  text-decoration: none;
}

.section-indicator__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-border) 85%, transparent);
  background-color: transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.section-indicator__label {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mid);
  background-color: color-mix(in srgb, var(--bg-header) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-border) 45%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  pointer-events: none;
}

.section-indicator__link:hover .section-indicator__label,
.section-indicator__link:focus-visible .section-indicator__label,
.section-indicator__link.is-active .section-indicator__label {
  opacity: 1;
  transform: translate(0, -50%);
}

.section-indicator__link.is-active .section-indicator__dot {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  transform: scale(1.12);
}

/* --- MOBILE MENU TOGGLE (hamburger) --- */
.menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- DARK MODE TOGGLE BUTTON --- */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-dark);
}

.theme-icon {
  width: 17px;
  height: 17px;
  display: none;
}

/* Show moon in light mode (to switch to dark) */
html:not([data-theme="dark"]) .theme-icon--moon {
  display: block;
}

/* Show sun in dark mode (to switch to light) */
[data-theme="dark"] .theme-icon--sun {
  display: block;
}

/* Hamburger → X animation */
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 10rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20px 0;
  /* Hero background image — replace the URL with your own photo */
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--hero-parallax-offset, 0px), 0);
  will-change: transform;
}

/* Dark overlay to ensure text readability over the image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(59, 47, 42, 0.35) 0%,
    rgba(59, 47, 42, 0.50) 50%,
    rgba(59, 47, 42, 0.60) 100%
  );
}

.hero-content {
  position: relative; /* sit above the overlay */
  z-index: 1;
  margin-top: 16vh;
  /* Fade-up animation on load */
  animation: fadeUp 1.2s ease both;
  animation-delay: 1s; /* waits for gate to finish */
}


/* Date text — light color for contrast on dark overlay */
.hero-date {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(249, 247, 242, 0.75);
  margin-bottom: 2rem;
}

/* Names — Amsterdam Handwriting display font */
.hero-names {
  font-family: 'Amsterdam Handwriting', var(--font-heading);
  font-weight: normal;
  font-size: 5.5rem;
  line-height: 1.3;
  color: #F9F4EC;
  letter-spacing: 0.02em;
}

.hero-ampersand {
  font-family: 'Amsterdam Handwriting', var(--font-heading);
  font-weight: normal;
  font-style: normal;
  color: rgba(249, 247, 242, 0.7);
  font-size: 4rem;
}

/* Fade-up keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Confetti animation used by the "wedding" easter egg */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1500;
}

.confetti-piece {
  position: absolute;
  top: -12vh;
  animation-name: confettiFall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}

@keyframes confettiFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--confetti-x, 0px), 120vh, 0) rotate(var(--confetti-rotate, 360deg));
    opacity: 0;
  }
}

/* ==============================================
   CONTENT SECTIONS — shared styles
   ============================================== */
.section {
  min-height: 100vh;
  padding: 5rem 2rem;
}

/* Alternate background for visual rhythm */
.section--alt {
  position: relative;
  background-color: var(--bg-alt);
}

.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--color-border) 36%, transparent) 1px, transparent 0);
  background-size: 6px 6px;
}

.section--alt > * {
  position: relative;
  z-index: 1;
}

.section--invitation {
  min-height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.invitation {
  max-width: 760px;
  text-align: center;
}

.invitation-text {
  position: relative;
  z-index: 0;
  font-size: 1rem;
  color: var(--color-mid);
  line-height: 2;
  margin-bottom: 1.8rem;
}

.invitation-text::before,
.invitation-text::after {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 8rem;
  line-height: 1;
  color: color-mix(in srgb, var(--color-accent) 18%, transparent);
  pointer-events: none;
  z-index: -1;
}

.invitation-text::before {
  content: '\201C';
  top: -1.5rem;
  left: -1.2rem;
}

.invitation-text::after {
  content: '\201D';
  right: -0.8rem;
  bottom: -3.6rem;
}

.invitation-signature {
  font-family: 'Amsterdam Handwriting', var(--font-heading);
  font-size: 3rem;
  line-height: 1.1;
  color: var(--color-dark);
}

/* Section number label (01, 02, etc.) */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-light);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Section title */
.section-title {
  font-family: 'Amsterdam Handwriting', var(--font-heading);
  font-weight: normal;
  font-size: 2.8rem;
  color: var(--color-heading-brown);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Thin divider line below the title */
.section-divider {
  width: 22px;
  height: 1px;
  background-color: color-mix(in srgb, var(--color-border) 65%, transparent);
  margin-bottom: 2.4rem;
  opacity: 0;
  transform: translateY(8px) scaleX(0.9);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section-label.is-visible,
.section-title.is-visible,
.section-divider.is-visible,
.location-map.is-visible,
.section-note.is-visible,
.rsvp-card.is-visible,
.faq-item.is-visible,
.footer.is-visible {
  opacity: 1;
  transform: translateY(0) scaleX(1);
}

/* ==============================================
   INFO CARDS — used for details in each section
   ============================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.info-card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  background-color: var(--bg-main);
  /* Subtle reveal animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
  .info-card {
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .info-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
    box-shadow: 0 8px 22px rgba(59, 47, 42, 0.05);
  }
}

/* Cards become visible when scrolled into view (JS adds this class) */
.info-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card__heading {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-heading-brown);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.info-card__text {
  font-size: 0.95rem;
  color: var(--color-mid);
  margin-bottom: 0.3rem;
  line-height: 1.8;
}

.info-card__text strong {
  font-weight: 500;
  color: var(--color-dark);
}

.info-card__text a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--color-accent) 60%, transparent);
  text-underline-offset: 2px;
}

.info-card__text a:hover {
  color: var(--color-accent);
}

.hotel-contact-divider {
  margin: 1rem 0 0.95rem;
  height: 1px;
  width: 100%;
  background-color: color-mix(in srgb, var(--color-border) 70%, transparent);
}

/* Timeline style for Ablauf card in Freie Trauung */
.event-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-left: 1.05rem;
  position: relative;
}

.event-timeline__item:not(:last-child) {
  padding-bottom: 0.65rem;
}

.event-timeline__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: var(--color-accent);
}

.event-timeline__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.95rem;
  bottom: 0;
  width: 1px;
  background-color: color-mix(in srgb, var(--color-border) 70%, transparent);
}

.event-timeline__time {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-dark);
  letter-spacing: 0.02em;
}

.event-timeline__text {
  font-size: 0.95rem;
  color: var(--color-mid);
  line-height: 1.65;
}

/* Embedded maps for location routing */
.location-map {
  margin-top: 2.5rem;
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  background-color: var(--bg-main);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.location-map__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.location-map__toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-dark);
  background-color: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.location-map__toggle::after {
  content: '▾';
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.location-map__toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: color-mix(in srgb, var(--color-accent) 8%, transparent);
}

.location-map__toggle:focus-visible,
.map-route-link:focus-visible,
.whatsapp-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.location-map__content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.location-map.is-open .location-map__toggle::after {
  transform: rotate(180deg);
}

.location-map.is-open .location-map__content {
  max-height: 520px;
  opacity: 1;
  margin-top: 1rem;
  pointer-events: auto;
}

.location-map__frame-wrap {
  border: 1px solid var(--color-border);
  overflow: hidden;
  background-color: var(--bg-alt);
}

.location-map__frame-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.map-route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.72rem 1.6rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-dark);
  border: 1px solid var(--color-border);
  background-color: transparent;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.map-route-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: color-mix(in srgb, var(--color-accent) 8%, transparent);
}

/* Note box below info cards (e.g., dresscode) */
.section-note {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--color-accent);
  background-color: var(--bg-alt);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-note p {
  font-size: 0.85rem;
  color: var(--color-mid);
  font-style: italic;
}

/* ==============================================
   CONTACT SECTION
   ============================================== */
.rsvp-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--color-border);
  background-color: var(--bg-main);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rsvp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.rsvp-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--color-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.rsvp-text {
  flex: 1;
  font-size: 1.04rem;
  color: var(--color-mid);
  margin-bottom: 1.5rem;
  line-height: 1.9;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.rsvp-text strong {
  color: var(--color-dark);
  font-weight: 500;
}

.rsvp-card .whatsapp-link {
  margin-top: auto;
}

/* ==============================================
   FAQ SECTION
   ============================================== */
.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  background-color: var(--bg-main);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--color-dark);
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::after {
  content: '▾';
  color: var(--color-accent);
  font-size: 0.9rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.faq-answer p {
  color: var(--color-mid);
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 0;
  padding: 0 1.3rem;
  overflow-wrap: anywhere;
}

.faq-answer p + p {
  margin-top: 0.75rem;
}

.faq-answer p:last-child {
  padding-bottom: 1.1rem;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(180deg);
}

.faq-item.is-open .faq-answer {
  max-height: 1000px;
  opacity: 1;
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  text-align: center;
  padding: 5rem 2rem;
  border-top: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Replace --bottom-image-url later with another image */
.bottom-image {
  position: relative;
  min-height: calc(55vh + 100px);
  background-image: var(--bottom-image-url);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.bottom-image__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(59, 47, 42, 0.22) 0%,
    rgba(59, 47, 42, 0.46) 100%
  );
}

.footer-ornament {
  font-family: var(--font-heading);
  color: var(--color-border);
  letter-spacing: 0.5em;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.footer-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-dark);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--color-light);
  font-style: italic;
}

/* WhatsApp link in footer */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-main);
  background-color: var(--color-dark);
  border: 1px solid var(--color-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.whatsapp-link:hover {
  background-color: transparent;
  color: var(--color-dark);
}

[data-theme="dark"] .whatsapp-link,
[data-theme="dark"] .gate-button {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #1A1512;
}

[data-theme="dark"] .whatsapp-link:hover,
[data-theme="dark"] .gate-button:hover {
  background-color: transparent;
  color: var(--color-accent);
}

/* WhatsApp icon sizing */
.whatsapp-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==============================================
   RESPONSIVE — TABLET (max-width: 900px)
   ============================================== */
@media (max-width: 900px) {
  /* Stack info cards to 2 columns */
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rsvp-grid {
    grid-template-columns: 1fr;
  }

  .section-indicator {
    display: none;
  }
}

/* ==============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* Show hamburger menu — fixed so it sits above the nav overlay */
  .menu-toggle {
    display: flex;
    position: fixed;
    top: calc((var(--header-height) - 32px) / 2);
    right: 1.5rem;
    z-index: 1100;
  }

  /* Theme toggle: fixed next to the hamburger on mobile */
  .theme-toggle {
    position: fixed;
    top: calc((var(--header-height) - 32px) / 2);
    right: calc(1.5rem + 32px + 0.6rem);
    z-index: 1100;
  }

  /* Hide nav links entirely by default on mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-main);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    z-index: 1050;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Show the overlay when JS adds .is-open */
  .nav-links.is-open {
    display: flex;
    animation: navFadeIn 0.3s ease both;
  }

  @keyframes navFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .nav-links li {
    display: block;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.3rem;
    letter-spacing: 0.25em;
    color: var(--color-dark);
  }

  .nav-links a::after {
    display: none;
  }

  /* Hero: smaller text */
  .hero-names {
    font-size: 3.5rem;
  }

  .hero-ampersand {
    font-size: 2.8rem;
  }


  /* Sections: less padding */
  .section {
    padding: 4rem 1.5rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .invitation-text {
    font-size: 0.93rem;
    line-height: 1.9;
  }

  .invitation-text::before,
  .invitation-text::after {
    font-size: 6rem;
  }

  .invitation-signature {
    font-size: 2.4rem;
  }

  /* Stack info cards to single column */
  .info-grid {
    grid-template-columns: 1fr;
  }

  .location-map {
    margin-top: 2rem;
    padding: 1.2rem;
  }

  .location-map.is-open .location-map__content {
    max-height: 440px;
  }

  .location-map__frame-wrap iframe {
    height: 260px;
  }

  .rsvp-card {
    padding: 1.6rem 1.3rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1rem 1.1rem;
  }

  .faq-answer p {
    font-size: 0.93rem;
    padding: 0 1.1rem;
  }

  .faq-answer p:last-child {
    padding-bottom: 1rem;
  }

  .bottom-image {
    min-height: calc(42vh + 80px);
  }

  /* Gate: smaller title */
  .gate-title {
    font-size: 2.2rem;
  }

}

@keyframes shake {
  0%,  100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-8px); }
  40%, 80%  { transform: translateX(8px); }
}

/* ==============================================
   UK CONFETTI — emoji pieces
   ============================================== */
.uk-confetti-piece {
  position: absolute;
  top: -5vh;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  animation-name: confettiFall;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  line-height: 1;
}

/* ==============================================
   RETRO 80s OVERLAY — "This is for you, Steven!"
   ============================================== */
.retro-overlay {
  position: fixed;
  inset: 0;
  background: #000810;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: retro-fadein 0.25s ease forwards;
}

.retro-overlay--hiding {
  animation: retro-fadeout 0.35s ease forwards;
}

.retro-overlay__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
}

.retro-overlay__box {
  position: relative;
  z-index: 2;
  border: 2px solid #00ff41;
  padding: clamp(1.8rem, 5vw, 3.5rem) clamp(2rem, 7vw, 6rem);
  text-align: center;
  box-shadow:
    0 0 10px #00ff41,
    0 0 30px rgba(0, 255, 65, 0.4),
    inset 0 0 15px rgba(0, 255, 65, 0.05);
  max-width: min(90vw, 700px);
}

.retro-overlay__header {
  color: #00cc33;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.65rem, 1.8vw, 0.95rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}

.retro-overlay__flags {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: 0.4em;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.retro-overlay__main {
  color: #00ff41;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.3rem, 4.5vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1rem 0;
  text-shadow: 0 0 8px #00ff41, 0 0 20px rgba(0, 255, 65, 0.5);
  animation: retro-blink 0.85s step-end infinite;
}

.retro-overlay__sub {
  color: #00aa28;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.6rem, 1.6vw, 0.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 1.6rem 0 0.4rem;
}

.retro-overlay__hint {
  color: #00ff41;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.6rem, 1.5vw, 0.82rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  animation: retro-blink 1.3s step-end infinite;
}

@keyframes retro-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes retro-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes retro-fadeout {
  from { opacity: 1; }
  to   { opacity: 0; }
}
