/* ============================================
   Design Tokens & Reset
   ============================================ */
:root {
  --bg-primary: #1A0E12;
  --bg-secondary: #2A1A1F;
  --bg-tertiary: #34232A;
  --text-headline: #F8ECD8;
  --text-body: rgba(245, 232, 214, 0.95);
  --text-muted: rgba(245, 232, 214, 0.78);
  --accent: #DEBF6A;
  --accent-light: #ECCF85;
  --bordeaux: #A52A40;
  --bordeaux-dark: #7A1B2D;
  --surface-subtle: rgba(245, 232, 214, 0.06);
  --surface-hover: rgba(245, 232, 214, 0.11);
  --border-subtle: rgba(222, 191, 106, 0.22);
  --border-medium: rgba(222, 191, 106, 0.4);
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --section-padding: clamp(80px, 12vw, 140px);
  --content-max: 700px;
  --split-max: 1100px;
  --gap-split: clamp(40px, 5vw, 80px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 17px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--bg-primary);
}
body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.75;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

/* ============================================
   Typography & Utility Classes
   ============================================ */
.section-label {
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  text-align: center;
  color: var(--text-headline);
  margin-bottom: 6px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 40px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.diamond {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.4;
  flex-shrink: 0;
}

.content-narrow {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: transparent;
}

.nav--scrolled {
  background: rgba(26, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav__monogram {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--bordeaux);
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-headline);
  opacity: 0.7;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav__link:hover {
  color: var(--text-headline);
  opacity: 1;
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }

  .nav__links {
    gap: 16px;
  }

  .nav__link {
    font-size: 0.5rem;
    letter-spacing: 3px;
  }

  .nav__monogram {
    font-size: 1.2rem;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image: url('../images/IMG_4426.png');
  background-size: cover;
  background-position: center 80%;
  background-color: var(--bg-secondary);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 20%,
    rgba(26, 14, 18, 0.4) 45%,
    rgba(26, 14, 18, 0.85) 68%,
    var(--bg-primary) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__label {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero__names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
}

.hero__name {
  font-family: var(--font-script);
  font-size: clamp(3rem, 9vw, 5rem);
  color: var(--text-headline);
  line-height: 1.15;
}

.hero__medaillon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
}

.hero__content .section-divider {
  margin: 12px auto;
}

.hero__date {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.countdown__item {
  text-align: center;
}

.countdown__num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.countdown__label {
  font-family: var(--font-display);
  font-size: 0.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.hero__scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.hero__scroll-text {
  font-family: var(--font-display);
  font-size: 0.45rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.4;
}

@media (max-width: 768px) {
  .hero {
    padding-bottom: 50px;
  }

  .hero__names {
    gap: 12px;
  }

  .hero__medaillon {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .hero__label {
    font-size: 0.5rem;
    letter-spacing: 4px;
  }

  .countdown {
    gap: 16px;
  }

  .countdown__num {
    font-size: 1.1rem;
  }
}

/* ============================================
   Section Base
   ============================================ */
.section {
  padding: var(--section-padding) 24px;
}

.section--centered {
  text-align: center;
}

/* ============================================
   Bible Verse (Trauvers) — RSVP Section Header
   ============================================ */
.bible-verse {
  max-width: 760px;
  margin: 0 auto 56px;
  padding: 48px 32px;
  position: relative;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(222, 191, 106, 0.06) 0%,
    rgba(222, 191, 106, 0.02) 100%
  );
  border-top: 1px solid rgba(222, 191, 106, 0.35);
  border-bottom: 1px solid rgba(222, 191, 106, 0.35);
}

.bible-verse__ornament {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 22px;
  letter-spacing: 0.3em;
  opacity: 0.85;
}

.bible-verse__text {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.55;
  color: var(--text-headline);
  letter-spacing: 0.01em;
  quotes: none;
}

.bible-verse__ref {
  display: inline-block;
  margin-top: 26px;
  padding-top: 18px;
  position: relative;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.bible-verse__ref::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

@media (max-width: 640px) {
  .bible-verse {
    padding: 36px 22px;
    margin-bottom: 40px;
  }
  .bible-verse__text {
    font-size: 1.25rem;
  }
  .bible-verse__ref {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
  }
}

/* ============================================
   Split Layout
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-split);
  max-width: var(--split-max);
  margin: 0 auto;
  align-items: center;
  padding: var(--section-padding) 24px;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__text {
  max-width: 460px;
}

.split__text .section-label {
  text-align: left;
}

.split__text .section-title {
  text-align: left;
}

.split__text .section-divider {
  justify-content: flex-start;
}

.split__text p {
  margin-top: 0;
}

.split__image {
  aspect-ratio: 3 / 4;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.split__image--landscape {
  aspect-ratio: 16 / 9;
}

/* ============================================
   Image Gallery (scrollable)
   ============================================ */
.split__gallery {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-medium);
}

.gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.gallery__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.gallery__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(240, 224, 204, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.gallery__dot--active {
  background: var(--accent);
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: var(--section-padding) 20px;
  }

  .split--reverse {
    direction: ltr;
  }

  .split__image {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  .split__image--landscape {
    aspect-ratio: 16 / 9;
  }

  .split__gallery {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  /* Story-Slides: Hochformat-Fotos in 4:3 Landscape-Frame —
     pro Bild den sichtbaren Ausschnitt nachjustieren */
  .story-slide--1 {
    background-position: center 15% !important;
  }
  .story-slide--2 {
    background-position: center 70% !important;
  }

  .split__text {
    max-width: 100%;
  }

  .split__text .section-label,
  .split__text .section-title {
    text-align: center;
  }

  .split__text .section-divider {
    justify-content: center;
  }
}

/* ============================================
   Image Breaks
   ============================================ */
.image-break {
  width: 100%;
  height: 50vh;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
}

.image-break__inner {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.parallax {
  will-change: transform;
}

@media (max-width: 768px) {
  .image-break {
    height: 40vh;
  }

  /* Tighter side padding on phones so larger fonts get room */
  .section {
    padding: var(--section-padding) 18px;
  }
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
  position: relative;
  max-width: var(--content-max);
  margin: 40px auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), var(--accent), transparent);
  opacity: 0.25;
  transform: translateX(-50%);
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 44px;
  position: relative;
}

.timeline__item:nth-child(odd) .timeline__time {
  text-align: right;
}

.timeline__item:nth-child(odd) .timeline__content {
  text-align: left;
}

.timeline__item:nth-child(even) .timeline__time {
  order: 3;
  text-align: left;
}

.timeline__item:nth-child(even) .timeline__dot {
  order: 2;
}

.timeline__item:nth-child(even) .timeline__content {
  order: 1;
  text-align: right;
}

.timeline__time {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--bordeaux);
  letter-spacing: 2px;
  padding-top: 2px;
}

.timeline__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.timeline__content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-headline);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.timeline__content p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 5px;
  }

  .timeline__item {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .timeline__item .timeline__time {
    order: 0 !important;
    text-align: left !important;
    grid-column: 2;
  }

  .timeline__item .timeline__dot {
    order: 0 !important;
    grid-row: 1 / 3;
    align-self: center;
  }

  .timeline__item .timeline__content {
    order: 0 !important;
    text-align: left !important;
    grid-column: 2;
  }
}


/* ============================================
   Info Cards
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 620px;
  margin: 40px auto 0;
}

.card {
  background: var(--surface-subtle);
  border: 1px solid var(--border-medium);
  padding: 36px 28px;
  text-align: center;
  transition: background 0.3s ease;
}

.card:hover {
  background: var(--surface-hover);
}

.card__icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  display: block;
  opacity: 0.65;
}

.card__title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-headline);
  margin-bottom: 12px;
}

.card__text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-body);
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 28px 24px;
  }
}

/* ============================================
   RSVP Multi-Step Form
   ============================================ */
.rsvp {
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.rsvp__live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rsvp__progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.rsvp__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-medium);
  transition: background 0.3s ease;
}

.rsvp__dot--active {
  background: var(--accent);
}

.rsvp__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
}

.rsvp__step--active {
  position: relative;
  inset: auto;
  pointer-events: auto;
}

.rsvp__step-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-headline);
  margin-bottom: 6px;
}

.rsvp__step-subtitle {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 28px;
}

.rsvp__error {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: rgba(216, 122, 108, 0.1);
  border-left: 2px solid #d87a6c;
  color: #e69b8c;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
}

.rsvp__greeting {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--accent);
  margin: 0 0 8px;
  text-align: center;
}

.rsvp__existing {
  margin: 0 0 20px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-left: 2px solid var(--accent);
  color: var(--text-headline);
  font-size: 0.9rem;
  text-align: left;
}

.rsvp__matches {
  margin: 16px 0 0;
  text-align: left;
}

.rsvp__matches-title {
  font-size: 0.95rem;
  color: var(--text-headline);
  margin: 0 0 12px;
}

.rsvp__matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rsvp__match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-headline);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1rem;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rsvp__match-card:hover {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.rsvp__match-card-name {
  font-weight: 500;
}

.rsvp__match-card-note {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.rsvp__field {
  width: 100%;
  margin-bottom: 16px;
}

.rsvp__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 6px;
}

.rsvp__input,
.rsvp__select,
.rsvp__textarea {
  width: 100%;
  background: var(--surface-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-headline);
  padding: 13px 14px;
  font-family: var(--font-serif);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
}

.rsvp__input:focus,
.rsvp__select:focus,
.rsvp__textarea:focus {
  border-color: var(--accent);
}

.rsvp__input::placeholder,
.rsvp__textarea::placeholder {
  color: var(--text-muted);
}

.rsvp__select option {
  background: var(--bg-primary);
}

.rsvp__textarea {
  resize: vertical;
  min-height: 100px;
}

.rsvp__choices {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.rsvp__choice {
  flex: 1;
  padding: 18px;
  border: 1px solid var(--border-medium);
  background: var(--surface-subtle);
  color: var(--text-body);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.rsvp__choice:hover {
  border-color: var(--accent);
}

.rsvp__choice--selected {
  border-color: var(--accent);
  background: rgba(201, 168, 76, 0.06);
  color: var(--text-headline);
}

.rsvp__nav {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.rsvp__btn {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.rsvp__btn--back {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-body);
}

.rsvp__btn--back:hover {
  border-color: var(--text-headline);
  color: var(--text-headline);
}

.rsvp__btn--next {
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-dark));
  color: var(--text-headline);
}

.rsvp__btn--next:hover {
  background: linear-gradient(135deg, #8a2237, #6a1828);
}

.rsvp__confirmation {
  text-align: center;
  padding: 40px 0;
}

.rsvp__confirmation-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  opacity: 0.7;
}

.rsvp__confirmation-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-headline);
  margin-bottom: 12px;
}

.rsvp__confirmation-text {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .rsvp__choices {
    flex-direction: column;
  }

  .rsvp__btn {
    padding: 12px 24px;
    font-size: 0.55rem;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border-medium);
  padding: 50px 24px 36px;
  text-align: center;
}

.footer__names {
  font-family: var(--font-script);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-headline);
  margin-bottom: 6px;
}

.footer__date {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer .section-divider {
  margin: 16px auto;
}

.footer__message {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0.6;
}

/* ============================================
   Mobile Optimization
   ============================================ */
@media (max-width: 480px) {
  :root {
    --section-padding: clamp(50px, 10vw, 80px);
  }

  body {
    font-size: 1rem;
  }

  /* Nav: center links */
  .nav {
    justify-content: center;
  }

  .nav__links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .nav__link {
    font-size: 0.45rem;
    letter-spacing: 2px;
  }

  /* Hero */
  .hero {
    padding-bottom: 36px;
    min-height: 100svh;
  }

  .hero__names {
    gap: 8px;
  }

  .hero__name {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero__medaillon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .hero__label {
    font-size: 0.45rem;
    letter-spacing: 4px;
  }

  .hero__date {
    font-size: 0.48rem;
    letter-spacing: 3px;
    margin-bottom: 18px;
  }

  .countdown {
    gap: 12px;
  }

  .countdown__num {
    font-size: 0.95rem;
  }

  .countdown__label {
    font-size: 0.32rem;
    letter-spacing: 1px;
  }

  .hero__scroll-line {
    height: 24px;
  }

  /* Split */
  .split {
    gap: 20px;
    padding: var(--section-padding) 16px;
  }

  .split__image {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  .split__gallery {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  .split__text {
    max-width: 100%;
  }

  .split__text p {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  /* Section typography */
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .section-label {
    font-size: 0.45rem;
    letter-spacing: 4px;
  }

  .section-divider {
    margin: 10px auto 24px;
  }

  .section-divider::before,
  .section-divider::after {
    width: 24px;
  }

  /* Timeline */
  .timeline {
    margin-top: 20px;
  }

  .timeline__item {
    margin-bottom: 28px;
    gap: 10px;
  }

  .timeline__time {
    font-size: 0.7rem;
  }

  .timeline__content h3 {
    font-size: 1rem;
  }

  .timeline__content p {
    font-size: 0.82rem;
  }

  /* Cards */
  .card {
    padding: 22px 16px;
  }

  .card__icon {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .card__title {
    font-size: 0.55rem;
    margin-bottom: 8px;
  }

  .card__text {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  /* RSVP */
  .rsvp__step-title {
    font-size: 1.2rem;
  }

  .rsvp__step-subtitle {
    font-size: 0.82rem;
    margin-bottom: 18px;
  }

  .rsvp__choice {
    padding: 14px;
    font-size: 0.95rem;
  }

  .rsvp__nav {
    width: 100%;
    justify-content: center;
  }

  .rsvp__btn {
    padding: 12px 20px;
    font-size: 0.5rem;
    letter-spacing: 3px;
    flex: 1;
    text-align: center;
  }

  .rsvp__input,
  .rsvp__select,
  .rsvp__textarea {
    font-size: 16px;
    padding: 12px;
  }

  .rsvp__confirmation-title {
    font-size: 1.4rem;
  }

  .rsvp__confirmation-text {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 36px 16px 24px;
  }

  .footer__names {
    font-size: 1.6rem;
  }

  .footer__date {
    font-size: 0.5rem;
    letter-spacing: 3px;
  }
}

/* ============================================
   Contribute CTA box
   ============================================ */
.contribute-cta {
  position: relative;
  margin: 64px auto 0;
  padding: 36px 32px;
  max-width: 580px;
  background:
    linear-gradient(135deg, rgba(222, 191, 106, 0.12), rgba(222, 191, 106, 0.04)),
    var(--bg-secondary);
  border: 1px solid rgba(222, 191, 106, 0.45);
  border-radius: 4px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(222, 191, 106, 0.08);
  text-align: center;
}

.contribute-cta::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.contribute-cta__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 14px;
}

.contribute-cta__text {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
}

.contribute-cta__btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent);
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.contribute-cta__btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(222, 191, 106, 0.25);
}

@media (max-width: 600px) {
  .contribute-cta {
    padding: 28px 22px;
    margin-top: 48px;
  }
  .contribute-cta__btn {
    padding: 14px 24px;
    width: 100%;
  }
}

/* ============================================
   Card Link
   ============================================ */
.card__link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border-medium);
  transition: color 0.3s ease;
}

.card__link:hover {
  color: var(--accent-light);
}

/* ============================================
   Footer minor links (subtle)
   ============================================ */
.footer__links {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer__minor {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-body);
  opacity: 0.35;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer__minor:hover {
  opacity: 1;
  color: var(--accent);
}

/* ============================================
   Gifts (public list)
   ============================================ */
.gifts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.gifts__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-body);
  font-style: italic;
}

.gift {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 28px 24px;
  text-align: left;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.gift:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.gift--claimed {
  opacity: 0.55;
}

.gift__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-headline);
  margin: 0 0 8px;
}

.gift__price {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.gift__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 20px;
  flex: 1;
}

.gift__action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.gift__link {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border-medium);
  transition: color 0.3s ease;
}

.gift__link:hover {
  color: var(--accent-light);
}

.gift__reserve {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-headline);
  border: 1px solid var(--border-medium);
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.gift__reserve:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.gift__reserve:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gift__claimed {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-body);
  font-style: italic;
}

/* ============================================
   Photo Upload
   ============================================ */
.upload {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.upload__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 16px 0 8px;
}

.upload__input {
  width: 100%;
  background: var(--bg-secondary);
  color: var(--text-headline);
  border: 1px solid var(--border-medium);
  padding: 14px 16px;
  font-family: var(--font-serif);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.upload__input:focus {
  outline: none;
  border-color: var(--accent);
}

.upload__input--textarea {
  min-height: 80px;
  resize: vertical;
  font-family: var(--font-serif);
}

.upload__file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 48px 24px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-medium);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
  text-align: center;
}

.upload__dropzone:hover,
.upload__dropzone--active {
  border-color: var(--accent);
  background: var(--bg-tertiary);
}

.upload__icon {
  font-size: 2rem;
  filter: grayscale(0.3);
}

.upload__title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-headline);
}

.upload__hint {
  font-size: 0.85rem;
  color: var(--text-body);
}

.upload__preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.upload__camera-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(222, 191, 106, 0.45);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.upload__camera-btn:hover {
  background: rgba(222, 191, 106, 0.1);
  border-color: var(--accent);
}

.upload__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.upload__thumb--no-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.upload__thumb-label {
  font-size: 0.7rem;
  color: var(--text-body);
  text-align: center;
  word-break: break-all;
  line-height: 1.3;
  opacity: 0.9;
}

.upload__thumb--no-preview::before {
  content: '🖼';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  opacity: 0.18;
  pointer-events: none;
}

.upload__thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 14, 18, 0.85);
  color: var(--text-headline);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.upload__thumb-remove:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.upload__btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.upload__btn:hover:not(:disabled) {
  background: var(--accent-light);
}

.upload__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.upload__status {
  margin-top: 16px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-body);
  min-height: 24px;
}

.upload__status--success {
  color: var(--accent);
}

.upload__status--warn {
  color: #d68b6c;
}

@media (max-width: 600px) {
  .upload__dropzone {
    padding: 36px 16px;
  }
  .gift {
    padding: 24px 20px;
  }
}

/* ============================================
   Invite Popup (öffnet sich bei ?i=<token>)
   ============================================ */
.invite-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.invite-popup[hidden] {
  display: none;
}

.invite-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 8, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: invite-fade-in 0.25s ease;
}

.invite-popup__card {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid rgba(222, 191, 106, 0.4);
  border-radius: 6px;
  padding: 44px 36px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: invite-pop-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
}

.invite-popup__card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

@keyframes invite-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes invite-pop-in {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.invite-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.invite-popup__close:hover {
  background: var(--bg-tertiary);
  color: var(--text-headline);
}

.invite-popup__eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 12px;
}

.invite-popup__title {
  font-family: var(--font-script);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--text-headline);
  margin: 0 0 14px;
  line-height: 1.15;
}

.invite-popup__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  width: 70%;
}

.invite-popup__divider::before,
.invite-popup__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-medium);
}

.invite-popup__divider::before { margin-right: 14px; }
.invite-popup__divider::after { margin-left: 14px; }

.invite-popup__divider .diamond {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

.invite-popup__existing {
  margin: 0 0 18px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-left: 2px solid var(--accent);
  color: var(--text-headline);
  font-size: 0.95rem;
  text-align: left;
  border-radius: 2px;
}

.invite-popup__sub {
  margin: 0 0 28px;
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.55;
}

.invite-popup__sub strong {
  color: var(--text-headline);
}

.invite-popup__choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.invite-popup__choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-headline);
  border: 1px solid var(--border-medium);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.invite-popup__choice:hover {
  border-color: var(--accent);
}

.invite-popup__choice--selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.invite-popup__choice--yes.invite-popup__choice--selected {
  background: var(--accent);
  border-color: var(--accent);
}

.invite-popup__choice--no.invite-popup__choice--selected {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--text-headline);
}

.invite-popup__choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.invite-popup__choice--selected .invite-popup__choice-icon {
  background: rgba(0, 0, 0, 0.2);
}

.invite-popup__details {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
}

.invite-popup__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 14px 0 8px;
}

.invite-popup__label:first-child {
  margin-top: 0;
}

.invite-popup__input {
  width: 100%;
  background: var(--bg-tertiary);
  color: var(--text-headline);
  border: 1px solid var(--border-medium);
  border-radius: 3px;
  padding: 14px 16px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.invite-popup__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(222, 191, 106, 0.18);
}

.invite-popup__input--textarea {
  min-height: 80px;
  resize: vertical;
}

.invite-popup__hint {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.invite-popup__error {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: rgba(216, 122, 108, 0.12);
  border-left: 2px solid #d87a6c;
  color: #e8b0a4;
  font-size: 0.95rem;
  text-align: left;
  border-radius: 2px;
}

.invite-popup__submit {
  width: 100%;
  margin-top: 24px;
  padding: 18px 28px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.invite-popup__submit:hover:not(:disabled) {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(222, 191, 106, 0.28);
}

.invite-popup__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.invite-popup__success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(222, 191, 106, 0.15);
  border: 1px solid rgba(222, 191, 106, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--accent);
}

.invite-popup__success-text {
  margin: 0 0 28px;
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.55;
}

.invite-popup__secondary {
  margin: 0;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-headline);
  border: 1px solid var(--border-medium);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.invite-popup__secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .invite-popup {
    padding: 12px;
  }
  .invite-popup__card {
    padding: 42px 22px 28px;
  }
  .invite-popup__title {
    font-size: 2rem;
  }
  .invite-popup__sub {
    font-size: 1rem;
  }
  .invite-popup__choice {
    padding: 16px 18px;
    font-size: 0.72rem;
  }
}
