@font-face {
  font-family: 'GreatVibes';
  src: url('assets/fonts/GreatVibes.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Jura';
  src: url('assets/fonts/Jura.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Monplesir';
  src: url('assets/fonts/Monplesir.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Symbols';
  src: url('assets/fonts/Symbols.otf') format('opentype');
  font-display: swap;
}

:root {
  --wine: #481C28;
  --cream: #F5ECE3;
  --rose-gold: #D2A995;
  --dark-red: #920A00;
  --section-py: 65px;
  --side-desktop: 20%;
  --side-mobile: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Jura', sans-serif;
  color: var(--wine);
  background: var(--cream);
  /* scroll-behavior: smooth entfernt — ruckelt auf iOS bei Anchor-/JS-Scrolls */
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

/* ---------- Cover ---------- */
#cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  transition: opacity 0.8s ease;
}

#cover.closing {
  opacity: 0;
  pointer-events: none;
}

#cover .cover-inner {
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#cover-names {
  font-family: 'GreatVibes', cursive;
  font-size: 56px;
  color: var(--rose-gold);
  margin: 0;
}

#cover-open {
  font-family: 'Jura', sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  background: #000;
  color: var(--rose-gold);
  border: none;
  border-radius: 999px;
  padding: 14px 40px;
  cursor: pointer;
}

#cover-open:hover {
  opacity: 0.85;
}

/* ---------- Music button ---------- */
#music-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--rose-gold);
  background: rgba(72, 28, 40, 0.65);
  color: var(--rose-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  backdrop-filter: blur(2px);
}

#music-toggle:hover {
  background: rgba(72, 28, 40, 0.85);
}

/* ---------- Section base ---------- */
.section {
  padding: var(--section-py) var(--side-mobile);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-py) var(--side-desktop);
  }
}

.section--wine {
  background: var(--wine);
  color: var(--cream);
}

.section--cream {
  background: var(--cream);
  color: var(--wine);
}

/* ---------- Hero / Header ---------- */
#hero {
  position: relative;
  background: var(--wine);
  color: var(--rose-gold);
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  overflow: hidden;
}

#hero .hero-photo-wrap {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

#hero .hero-photo-wrap img {
  width: 100%;
}

#hero .hero-names {
  font-family: 'GreatVibes', cursive;
  font-size: 96px;
  line-height: 1.05;
  margin: 24px 0 0;
}

#hero .hero-names .amp {
  font-size: 60px;
  display: block;
}

#hero .hero-date {
  font-family: 'Jura', sans-serif;
  font-size: 48px;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  #hero {
    padding-left: 0;
    padding-right: 0;
  }
  #hero .hero-photo-wrap {
    max-width: 100%;
    margin: 0;
  }
  #hero .hero-names {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    font-size: 56px;
    z-index: 2;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
  }
  #hero .hero-date {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    font-size: 28px;
    z-index: 2;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
  }
}

/* ---------- Appeal ---------- */
#appeal h2 {
  font-family: 'Jura', sans-serif;
  font-weight: 600;
  font-size: 41px;
  margin: 0 0 24px;
}

#appeal p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Location ---------- */
#location h2 {
  font-family: 'GreatVibes', cursive;
  font-size: 41px;
  margin: 0 0 32px;
  color: var(--cream);
}

#location img {
  max-width: 560px;
  margin: 0 auto 32px;
  filter: grayscale(1);
}

#location .btn-anfahrt {
  display: inline-block;
  font-family: 'Jura', sans-serif;
  font-size: 15px;
  background: var(--cream);
  color: var(--wine);
  border-radius: 999px;
  padding: 14px 40px;
  text-decoration: none;
}

#location .btn-anfahrt:hover {
  opacity: 0.85;
}

/* ---------- Events / Programm ---------- */
#events {
  position: relative;
  color: var(--dark-red);
  background-color: var(--cream);
  background-size: cover;
  background-position: center;
  /* Großes Hintergrundbild: keine eigene opacity/transform-Transition
     (repaintet sonst bei jedem Frame den ganzen Section-Hintergrund).
     Der Fade läuft stattdessen nur auf .events-inner, siehe unten. */
  opacity: 1;
  transform: none;
  transition: none;
}

#events .events-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

#events.visible .events-inner {
  opacity: 1;
  transform: translateY(0);
}

#events::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 236, 227, 0.82);
}

#events .events-inner {
  position: relative;
  z-index: 1;
}

#events h2 {
  font-family: 'GreatVibes', cursive;
  font-size: 41px;
  margin: 0 0 40px;
}

.event-item {
  margin-bottom: 28px;
}

.event-item .event-time {
  font-size: 24px;
  font-weight: 500;
}

.event-item .event-title {
  font-size: 18px;
  font-weight: 500;
}

.event-item .event-desc {
  font-size: 18px;
  font-weight: 400;
}

/* ---------- FAQ / Dresscode ---------- */
#faq h2 {
  font-family: 'GreatVibes', cursive;
  font-size: 34px;
  margin: 0 0 20px;
}

#faq p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 18px;
}

.faq-swatches {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.faq-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(72,28,40,0.25);
}

/* ---------- Questions / RSVP ---------- */
#questions h2 {
  font-family: 'Jura', sans-serif;
  font-weight: 600;
  font-size: 41px;
  margin: 0 0 8px;
}

#questions .questions-subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  opacity: 0.9;
}

.rsvp-guest-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  margin-bottom: 16px;
}

.rsvp-guest-row .icon-branch {
  font-family: 'Symbols', sans-serif;
  font-size: 34px;
  line-height: 1;
}

.rsvp-guest-row button {
  color: var(--cream);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 18px;
}

/* ---------- Footer ---------- */
#footer .footer-heart {
  width: 90px;
  margin: 0 auto 16px;
}

#footer p {
  font-family: 'Monplesir', cursive;
  font-size: 44px;
  margin: 0;
}

@media (min-width: 768px) {
  #footer p {
    font-size: 61px;
  }
}

/* ---------- Modal ---------- */
#rsvp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#rsvp-modal {
  background: #fff;
  color: #222;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  font-family: 'Inter', 'Jura', sans-serif;
}

#rsvp-modal h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

#rsvp-modal .rsvp-question {
  margin: 0 0 16px;
  font-size: 15px;
}

#rsvp-modal label.rsvp-name-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

#rsvp-modal input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 15px;
}

.rsvp-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

.rsvp-option.disabled {
  opacity: 0.45;
}

#rsvp-modal .rsvp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

#rsvp-modal button.rsvp-save {
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  cursor: pointer;
  font-size: 14px;
}

#rsvp-modal button.rsvp-cancel {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 14px;
}

#rsvp-status {
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}
