/* Reset & Grundlayout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Design-Variablen */
:root {
  --white: #ffffff;
  --navbg: rgba(255, 255, 255, 0.85);
  --mainbg: rgba(255, 255, 255, 0.85);
  --text-dark: #333;
  --dgruen: #041300;
  --radius: 6px;
}

/* Layout-Grundgerüst */
@media screen and (min-width: 1024px) {
  html, body {
    font-family: 'Playfair Display', serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('/assets/landing-bg2.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-dark);
  }
}

html {
  overflow-x: auto;
}

/* Schriftart und Grundstruktur */
body {
  font-family: 'Playfair Display', serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: url('/assets/landing-bg2.PNG') no-repeat center center fixed;
  background-size: cover;
  background-position: center;
  color: var(--text-dark);
}

/* Header */
header {
  background-color: transparent;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem;
  text-align: center;
  z-index: 10;
}

.banner {
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner img {
  max-height: 210px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
}

/* Hamburger-Menü */
.hamburger {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  background: rgb(56, 52, 52);
  margin: 5px 0;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Navigation */
nav {
  background-color: var(--navbg);
  margin-top: 1rem;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  transition: max-height 0.4s ease;
}

nav li {
  margin: 0.5rem;
}

nav a {
  color: #000;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background-color: #000000;
  color: #fff;
}

/* Hauptinhalt */
main {
  flex: 1;
  padding: 1.5rem;
  background-color: var(--mainbg);
  color: #000;
  max-width: 900px;
  margin: 1rem auto;
  border-radius: var(--radius);
}

/* Content-Box */
.content-box {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 1.5rem auto;
  width: 95%;
  text-align: left;
}

/* Image-Wrapping */
.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.image-wrapper img,
.content-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: rgba(255, 255, 255, 0.85);
  color: #333;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px 6px 0 0;
}

/* Buttons */
.button-container {
  text-align: center;
}

.button,
.login-button,
.export-button,
.button-container button,
.button-container a {
  background-color: #fff;
  color: #000000;
  border: 2px solid #000;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  font-family: 'Playfair Display', serif;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.login-button:hover,
.export-button:hover,
.button-container button:hover,
.button-container a:hover {
  background-color: #000000;
  color: #fff;
}

/* Formular */
.rsvp-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 1.5rem;
  text-align: left;
}

.form-group {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  background-color: #fff;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 180px;
}

.status-msg {
  text-align: center;
  font-size: 1.1rem;
  color: green;
}

/* Galerie */
/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.25rem;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0;
  box-sizing: border-box;
}

.gallery-grid a {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}


/* Galerie-Pagination */
#pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-number {
  font-size: 1.1rem;
  color: #000;
  padding: 0.25rem 0.5rem;
  user-select: none;
  transition: background 0.2s ease;
}

.page-number:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.page-number.active {
  font-weight: bold;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  nav ul.show {
    display: flex;
  }

  nav a {
    padding: 1rem;
  }

  body {
    padding-left: 30px;
    padding-right: 30px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 480px) {
  body {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* FAQ Style */
#faq h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.faq-question {
  background-color: var(--white);
  color: #000;
  border: 0.5px solid #000;
  padding: 0.8rem 2rem 0.8rem 2.5rem; /* Platz für + Symbol */
  font-size: 1.3rem;
  font-style: italic;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  /*position: relative;*/
  list-style: none; /* entfernt Standard-Dreieck */
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Hover-Effekt wie Buttons */
.faq-question:hover {
  background-color: #000000;
  color: #fff;
}

/* + Symbol */
.faq-question::before {
  content: "+";
  position: absolute;
  left: 1rem;
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: #555;
  line-height: 1;
  transition: transform 0.2s ease, content 0.2s ease;
}

/* Wenn geöffnet -> Minus */
details[open] .faq-question::before {
  content: "–";
}

/* Antwort-Text */
details p,
details ul {
  padding: 1rem 1rem 1rem 2.5rem;
  margin: 0;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.85);
}
/* Ablauf Liste */
.ablauf-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.ablauf-list li {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  font-family: 'Playfair Display', serif; /* oder 'The Seasons' */
  font-size: 1.25rem;
  transition: background-color 0.3s ease, color 0.3s ease;

  display: grid;
  grid-template-columns: 150px 1fr; /* Desktop: links Uhrzeit fix, rechts flexibel */
  gap: 1rem;
  align-items: center;
}

.ablauf-list li:hover {
  background-color: #000000;
  color: #ffffff;
}

.ablauf-list .time {
  font-weight: 700;
  text-align: right;
   font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: #000000;
}

.ablauf-list .event {
  font-weight: 400;
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: #555;
}

/* --- Responsive Fix für Mobil --- */
@media (max-width: 600px) {
  .ablauf-list li {
    grid-template-columns: 1fr; /* nur eine Spalte */
    text-align: center;        /* Inhalte zentrieren */
  }

  .ablauf-list .time {
    text-align: center;        /* Uhrzeit mittig */
    margin-bottom: 0.3rem;
  }
}

/* Intro / Startseite */
.intro-section {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.intro-section h1 {
  font-family: 'Playfair Display', serif; /* oder deine Hauptschrift */
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #000;
}

.intro-hline {
  font-family: 'Playfair Display', serif; /* oder deine Hauptschrift */
  font-size: 1.4rem;
  font-style: italic;
  color: #000;
}

.intro-subline {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: #555;
}

.intro-section p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* =========================
   TIMELINE – stabil auf Android
   ========================= */

/* Container */
.timeline{
  position:relative;
  list-style:none;
  margin:0;
  padding:0;
}
.timeline *{ box-sizing:border-box; }

/* Mittellinie (hinter allem) */
.timeline::before{
  content:"";
  position:absolute;
  inset:0 auto 0 50%;
  width:1px;                /* volle Pixelbreite gegen Subpixel-Flimmern */
  transform:translateX(-50%);
  background:#000;
  z-index:0;
}

/* Zeilenlayout */
.timeline li{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;                 /* Abstand zur Mittellinie */
  margin:2.5rem 0;
  position:relative;
  align-items:center;       /* Icon/Text vertikal ausrichten */
}

/* kurze Querlinien von der Mitte */
.timeline li::before,
.timeline li::after{
  content:"";
  position:absolute;
  top:25px;                 /* Mitte des 50px-Icons */
  width:20px;
  height:1px;
  background:#000;
  z-index:0;                /* hinter dem Inhalt */
}
.timeline li::before{ right:50%; margin-right:1px; }
.timeline li::after{  left:50%;  margin-left:1px;  }

/* Spalteninhalte */
.timeline-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  position:relative;
  z-index:1;                /* über Linien */
  min-width:0;              /* erlaubt Schrumpfen innerhalb der Grid-Spalte */
}
.timeline-content.left{  padding-right:1.25rem; }
.timeline-content.right{ padding-left:1.25rem;  }

/* Icon (fixe Größe hält Linienhöhe stabil) */
.timeline .icon{
  width:50px; height:50px;
  border:1px solid #000; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:20px;
  background:#fff;
  margin-bottom:0.75rem;
  z-index:1;
}

/* Textkapsel über der Mittellinie mit weißem Hintergrund */
.timeline .text{
  background:#fff;
  border-radius:4px;
  padding:0.1rem 0.35rem;
  max-width:28ch;           /* in Zeichen statt Pixel, flexibler */
  width:100%;
  overflow:hidden;          /* schützt vor Überlauf */
}

/* Typografie */
.timeline .time{
  font-weight:700;
  font-size:1.2rem;
  font-style:italic;
  margin-bottom:0.25rem;
}
.timeline .event{
  font-size:1.05rem;
  font-style:italic;
  color:#555;
  margin:0 auto;
  word-break:normal;        /* keine harten Wortbrüche */
}

/* ========= Mobile ≤768px ========= */
/* ===== Timeline Mobile: mehrzeilig, keine Worttrennung ===== */
@media (max-width: 768px) {
  .timeline li{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 0.75rem;
    margin: 1.6rem 0;
  }
  .timeline-content{ min-width: 0; }
  .timeline-content.left{  padding-right: 0.6rem; }
  .timeline-content.right{ padding-left:  0.6rem; }

  .timeline .icon{
    width: 40px; height: 40px; font-size: 18px; margin-bottom: 0.5rem;
  }
  .timeline li::before, .timeline li::after{ top: 20px; width: 14px; height: 1px; }

  .timeline .text{
    max-width: 100%;
    padding: 0.08rem 0.3rem;
    border-radius: 4px;
    background: #fff;
    overflow: visible;                /* nichts abschneiden */
  }

  /* Mehrzeilig, ohne Worttrennung */
  .timeline .time,
  .timeline .event{
    white-space: normal;              /* Zeilenumbruch an Leerzeichen */
    word-break: normal;               /* keine Trennung innerhalb von Wörtern */
    overflow-wrap: normal;            /* keine erzwungene Trennung */
    hyphens: none;                    /* keine Silbentrennung */
    line-height: 1.25;
    margin: 0 auto 0.1rem;
    overflow: visible;                /* sicherheit */
  }

  .timeline .time{
    font-size: clamp(0.9rem, 3.2vw, 1.05rem);
    font-weight: 700;
    font-style: italic;
  }
  .timeline .event{
    font-size: clamp(0.9rem, 3.3vw, 1rem);
    color: #555;
    font-style: italic;
  }
}


#anfahrt {
  text-align: center;
}

#anfahrt h2 {
  margin-bottom: 1.5rem;
}

#anfahrt .anfahrt-section {
  margin-bottom: 1rem;
}

#anfahrt h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: var(--dgruen);
}

.map-link {
  font-size: 1.3rem;
  color: #555;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-style: italic;


}

.map-link:hover {
  color: #000;
}

.stay-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stay-list li {
  margin: 0.8rem 0;
  font-size: 1.05rem;
}

.stay-list i {
  margin-right: 0.5rem;
  color: #776a41; /* dezente Hochzeitsfarbe */
}
/* Kreis um Icon (unabhängig vom Rest) */
.icon-circle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:50px;           /* Kreisgröße */
  height:50px;
  border:1px solid #000;
  border-radius:50%;
  margin:0 auto 1rem;   /* zentriert in der content-box */
}
.icon-circle i{ line-height:1; }

/* Optional: Farbe an dein Schema anpassen */
.icon-circle{ border-color:#000; }
.icon-circle i{ color:#000; }
/* Mobil: Text kleiner, kein Umbruch */
.gallery-video-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 30px auto;
}

.gallery-video-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border: none;
    border-radius: 12px;
}
