/* ========== Fonts & Base ========== */

/* La Belle Aurore */
@font-face {
  font-family: 'La Belle Aurore';
  src: url('../fonts/LaBelleAurore.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
}

/* Besom */
@font-face {
  font-family: 'Besom';
  src: url('../fonts/Besom.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
}

/* More Sugar - Regular */
@font-face {
  font-family: 'More Sugar';
  src: url('../fonts/MoreSugar-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
}

/* More Sugar - Thin */
@font-face {
  font-family: 'More Sugar Thin';
  src: url('../fonts/MoreSugar-Thin.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
}

/* More Sugar - Extras (für Symbole, falls gewünscht) */
@font-face {
  font-family: 'More Sugar Extras';
  src: url('../fonts/MoreSugar-Extras.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
}

/* ========== Hero Section ========== */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: #fef9f2;
  overflow: hidden;
  padding: 6rem 4rem 2rem; /* top padding for frame */
  height: 100vh;
}

.hero-frame-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.hero-topline {
  position: absolute;
  top: clamp(2rem, 6vw, 5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 10;
}

.hero-topline p {
  font-family: 'Besom', cursive;
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 1px;
  color: #ca2e2c;
  margin: 0;
}

.hero-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left h1 {
  font-family: 'La Belle Aurore', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  color: #111;
  text-align: center;
  line-height: 1.2;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.hero-navbar a {
  font-family: 'More Sugar Thin', cursive;
  text-decoration: none;
  font-size: 1.25rem;
  color: #111;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  transition: all 0.3s ease-in-out;
}

.hero-navbar a:hover {
  color: #a38f85;
  border-color: #a38f85;
}

.hero-right {
  text-align: center;
  align-items: center;
}

.icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-icon {
  width: 40px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.hero-icon:hover {
  transform: scale(1.1) rotate(-2deg);
}

.wedding-date,
.wedding-location {
  font-family: 'La Belle Aurore', serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  color: #111;
  line-height: 1.2;
}

/* ========== Navbar im Wellenrahmen ========== */

.navbar-wrapper {
  position: relative;
  width: 320px;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.hero-navbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.hero-navbar a {
  font-family: 'More Sugar Thin', cursive;
  text-decoration: none;
  font-size: 1.25rem;
  color: #111;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  transition: all 0.3s ease-in-out;
}

.hero-navbar a:hover {
  color: #a38f85;
  border-color: #a38f85;
}

/* ========== Zentrierung innerhalb Hero-Section ========== */

.hero-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== Zeitplan Sections ========== */
body {
  background-color: #fef9f2;
}

.timeline-wrapper {
  display: flex;
  justify-content: center;
  padding: 0;
}

/* Basis-Bildregeln (für beide Varianten) */
.timeline-wrapper img {
  width: 100%;
  max-width: 1400px; /* Desktop-Standard */
  height: auto;
  display: block;
  margin: 0;
}

/* Sichtbarkeit steuern – spezifischer als die Basisregel */
.timeline-wrapper img.timeline-desktop { display: block; }
.timeline-wrapper img.timeline-mobile  { display: none; }

/* Optional: Abstand zum nächsten Abschnitt */
#details + .editorial-section {
  margin-top: 0;
}

.editorial-section h2 {
  font-family: 'Besom', serif;
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 400;
  color: #111;
}

.editorial-section p {
  font-family: 'More Sugar Thin', serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #222;
  text-align: center;
  margin-bottom: 0;
}

/* ========== Übernachtung========== */

/* Übernachtung – Wrapper */
#hotel .hotel-wrap{
  max-width: 900px;      /* Breite begrenzen */
  margin: 0 auto 40px auto; /* zentrieren */
  padding: 0 16px;       /* Seitenabstand */
  text-align: center;    /* mittig wie im Rest der Seite */
  line-height: 1.6;
}

#hotel .hotel-wrap a{
  text-decoration: none;
  border-bottom: 1px dotted currentColor; /* dezent klickbar */
}

/* ========== Footer ========== */

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  color: #666;
  border-top: 1px solid #ddd;
  background-color: #fef9f2;
}
/* ========== Gifts Section (Desktop) ========== */
.section-note {
  text-align: center;
  opacity: 0.85;
  margin-top: 12px;
  font-family: 'More Sugar Thin', serif;
  font-size: 1rem;
  color: #333;
}

/* Alle 5 Karten in EINEM Grid – 6 Spalten für das versetzte Layout */
#gift .gift-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 40px 28px;              /* row-gap 40, column-gap 28 (nach Geschmack) */
  margin: 2rem auto;
  max-width: 1000px;
  justify-items: center;
}

/* Obere drei Karten nehmen je 2 Spalten */
#gift .gift-grid .gift-card:nth-child(1) { grid-column: 1 / span 2; } /* Ferien */
#gift .gift-grid .gift-card:nth-child(2) { grid-column: 3 / span 2; } /* Abendessen */
#gift .gift-grid .gift-card:nth-child(3) { grid-column: 5 / span 2; } /* Katzenfutter */

/* Untere zwei Karten „zwischen“ den oberen */
#gift .gift-grid .gift-card:nth-child(4) { grid-column: 2 / span 2; } /* Hochzeits Kässeli */
#gift .gift-grid .gift-card:nth-child(5) { grid-column: 4 / span 2; } /* Lieblingsstücke */

#gift .gift-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 16px;
  padding: 8px 6px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

#gift .gift-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(202, 46, 44, 0.25);
}

#gift .gift-icon {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  background: transparent;
}

#gift .gift-icon img {
  width: 62px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto 12px;
}

#gift .gift-title {
  font-family: 'Besom', serif;
  font-size: 1.5rem;
  margin: 4px 0 2px;
  color: #111;
}
#gift .gift-desc {
  font-family: 'More Sugar Thin', serif;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #333;
}

/* Buttons */
#gift .btn-reveal,
#gift .btn-copy,
#rsvp .btn-primary,
#gift .btn-primary {
  border-radius: 10px;
  border-width: 1px;
}

#gift .btn-reveal {
  background: transparent;
  border-color: none;
  color: #111;
  padding: 10px 14px;
  margin-top: 6px;
  border-radius: 10px;
  font-family: 'More Sugar', serif;
  transition: all 0.3s ease;
}

#gift .btn-reveal:hover {
  background: #ca2e2c;
  border-color: #ca2e2c;
  color: #111;
}

#gift .btn-copy {
  white-space: nowrap;
  background: #fff;
  border: 1px solid #ddd;
  color: #111;
  padding: 8px 12px;
}
#gift .btn-copy:hover { border-color: #bbb; }

#gift .btn-primary,
#rsvp .btn-primary {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

/* Extra-Abstand nur bei Katzenfutter-Icon */
#gift .gift-card[data-gift="Katzenfutter"] .gift-icon img {
  margin-bottom: 20px !important;
}

/* ========== Modal (Desktop) ========== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}
.modal[aria-hidden="false"] { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.modal-content {
  position: relative;
  z-index: 1;
  margin: 6vh auto;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #eee;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

.modal-title {
  font-family: 'Besom', serif;
  font-size: 1.6rem;
  margin: 0 0 12px;
}

.iban-box {
  border: 1px dashed #cfcfcf;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  background: #fefefe;
}
.iban-label {
  font-family: 'More Sugar Thin', serif;
  display: block;
  margin-bottom: 6px;
  color: #111;
}
.iban-row {
  display: flex;
  gap: 8px;
}
.iban-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
}

/* ========== Dresscode ========== */
#dresscode {
  text-align: center;
  margin: 60px auto;      /* Abstand oben & unten */
  padding: 20px 0;
  max-width: 800px;
}

#dresscode .dresscode-wrap {
  position: relative;   /* Bezugspunkt für das Bild */
  display: inline-block; /* sorgt dafür, dass das Bild relativ zum Textblock sitzt */
  text-align: center;
  margin: 0 auto;
}

#dresscode .dresscode-fig {
  position: absolute;
  right: -140px;   /* Abstand vom Text nach rechts (negativ = weiter raus) */
  top: 60px;       /* Höhe relativ zum Text */
  width: 200px;
  height: auto;
  transform: rotate(10deg);  /* Drehung im Uhrzeigersinn */
}

/* ========== RSVP (Desktop) ========== */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.stack > * + * { margin-top: 14px; }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="number"],
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  font-family: 'More Sugar Thin', serif;
  color: #111;
}

.checkbox.consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'More Sugar Thin', serif;
  color: #111;
}

.form-feedback {
  min-height: 18px;
  font-size: 0.95rem;
  font-family: 'More Sugar Thin', serif;
}
.form-feedback.success { color: #0a7a32; }
.form-feedback.error   { color: #a11212; }

#rsvp .rsvp-form {
  max-width: 680px;
  margin: 0 auto;
}

/* Fix: Bootstrap-Modal-Konflikt für unser eigenes Modal */
.modal { pointer-events: auto !important; }
.modal .modal-content { position: relative; z-index: 1001; pointer-events: auto !important; }
.modal .modal-backdrop { position: absolute; inset: 0; z-index: 1000; }

/* ========== RSVP (Mehrpersonen) ========== */
.rsvp-lead {
  margin-bottom: 0.75rem;
  font-family: 'More Sugar Thin', serif;
  color: #444;
}

.rsvp-people {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.rsvp-person {
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.rsvp-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.rsvp-line-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

.rsvp-label {
  font-weight: 600;
  font-family: 'More Sugar', serif;
  margin: 6px 0;
}

.rsvp-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
}

.rsvp-input:focus {
  outline: none;
  border-color: #ca2e2c;
  box-shadow: 0 0 0 3px rgba(255,77,172,0.15);
}

.rsvp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rsvp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 0.95rem;
  font-family: 'More Sugar Thin', serif;
  color: #333;
}

.rsvp-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rsvp-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  background: #ca2e2c;
  color: #fff;
  font-family: 'More Sugar', serif;
  transition: all 0.2s ease;
}

.rsvp-btn:hover { filter: brightness(0.95); }

.rsvp-ghost {
  background: transparent;
  color: #ca2e2c;
  border: 1px solid #ca2e2c;
}

.rsvp-small {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.rsvp-dark {
  background: #111827;
  color: #fff;
}

.rsvp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.rsvp-muted { color: #666; font-size: 0.85rem; }

.rsvp-error {
  color: #a11212;
  font-size: 0.85rem;
  display: none;
  font-family: 'More Sugar Thin', serif;
}

.rsvp-hint {
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
}

/* ========== Media Query/ Responsive ========== */

.burger-menu {
  display: none;
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 24px;
  background: none;
  border: none;
  z-index: 1100;
  cursor: pointer;
  color: #111;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  right: 0;
  width: 100%;
  background-color: #fef9f2;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mobile-menu a {
  font-family: 'More Sugar Thin', serif;
  text-decoration: none;
  color: #111;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.mobile-menu.active {
  display: flex;
}

/* ========== Hero ========== */
@media (max-width: 768px) {
  .hero-left {
    margin-top: 2rem; /* schiebt Namen etwas nach unten */
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-column {
    align-items: center;
    margin-bottom: 2rem;
  }

  .hero-right {
    align-items: center;
  }

  .hero-center {
    display: none;
  }

  .burger-menu {
    display: block;
  }
}

/* ========== Gifts & Modal (Mobile) ========== */
@media (max-width: 600px) {
  /* Geschenke auf 1 Spalte */
  #gift .gift-grid { 
    grid-template-columns: 1fr; 
  }
  #gift .gift-grid .gift-card { 
    grid-column: auto !important;    /* überschreibt die Desktop-Positionierung */
  }

  /* Modal-Fenster (Popup) enger machen auf Handy */
  .modal-content { margin: 8vh 14px; }

  /* Schriften etwas kleiner */
  #gift .gift-title { font-size: 1.35rem; }
  #gift .gift-desc  { font-size: 1rem; }
}

/* ========== Zeitplan========== */
@media (max-width: 768px) {
  .timeline-wrapper img.timeline-desktop { display: none; }
  .timeline-wrapper img.timeline-mobile  { display: block; }

  /* Etwas schmaler, damit die Mobile-Grafik nicht zu wuchtig wirkt */
  .timeline-wrapper img { max-width: 520px; }

  #details h2 { font-size: 2.6rem; }
  #details p  { font-size: 1.05rem; }
}

/* ========== Dresscode========== */
#dresscode h2{
  display: flex;                 /* Text + Icons in einer Zeile */
  align-items: center;
  justify-content: center;
  gap: 0.5em;                    /* Abstand skaliert mit der Schrift */
  font-size: clamp(1.2rem, 1rem + 4.5vw, 6rem);
  line-height: 1.1;
  flex-wrap: nowrap;             /* nicht umbrechen */
  text-align: center;
}

#dresscode h2 img{
  width: clamp(28px, 1rem + 4vw, 80px); /* Icons skalieren flüssig mit */
  height: auto;
}

/* Deine bestehende Regel für die Figur unter dem Text – gern so lassen */
@media (max-width: 700px) {
  #dresscode .dresscode-fig {
    position: static;
    display: block;
    margin: 16px auto 0;
    width: 100px;
  }
}

/* ========== Hotel========== */
@media (max-width: 600px){
  #hotel .hotel-wrap{ padding: 0 18px; }
}


/* Ende Media Query */
