/* Basis-Styles bleiben gleich */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

/* Titel für das Brautpaar */
.main-title {
  position: relative;
  margin-top: 2vh;
  text-align: center;
  font-family: "Pinyon Script", serif;
  font-size: 3em;
  color: #333;
  z-index: 10;
}

/*------------------------------------SLIDESHOW--------------------------------------------*/

/* Slideshow-Container */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 85vh; /* Passe die Höhe an, um Platz oben zu lassen */
  margin-top: 5vh; /* Abstand von der Oberseite der Seite */
  overflow: hidden;
}
/* Slideshow-Inhalt */
.slideshow {
  display: flex;
  width: 700%;
  animation: infiniteSlide 40s linear infinite;
}

/* Slideshow-Bilder */
.slideshow img {
  width: 100vw; /* Füllt die gesamte Breite des Viewports */
  height: 85vh;
  object-fit: cover;
}

/* Korrekte Positionierung des Titels auf der Slideshow */
.slideshow-container .title {
  position: absolute;
  top: 50%; /* Genau in der Mitte */
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4em;
  font-family: "Pinyon Script", serif; /* Elegante Schrift */
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 10;
}

@keyframes infiniteSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/*-----------------------------------TIMELINE---------------------------------------------*/

/* Timeline */
.timeline-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}
/* Hauptüberschrift für die Timeline */
.timeline-title {
  font-size: 3.5em;
  font-family: "Pinyon Script", cursive; /* Elegante Schrift */
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

/* Unterüberschrift mit Datum */
.timeline-date {
  font-size: 1.5em;
  color: #666;
  margin-bottom: 30px;
  text-align: center;
}

/* Timeline-Events */
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* Events (Standard: Desktop-Ansicht) */
.timeline-event {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

/* Icon-Container */
.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
}

/* Icons skalieren sauber */
.icon-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Beschreibung (Basis) */
.description {
  max-width: 300px;
  padding: 10px;
}

.description-right,
.description-left {
  flex: 1;
}

/*----------------------------------UNSERE HOCHZEITSLOCATION----------------------------------------------*/

/* Titel-Bereich für "Unsere Hochzeitslocation" */
.location-title-container {
  text-align: center;
  padding: 20px 20px;
  background-color: #f5f5f5; /* Hintergrundfarbe für besseren Kontrast */
}

/* Titel für den Abschnitt */
.location-title {
  font-size: 3em; /* Gleiche Größe wie Timeline Event */
  font-family: "Pinyon Script", cursive;
  color: #333;
  margin-bottom: 40px;
  text-align: center;
}

/* Hintergrundbild bleibt wie vorher */
/* Hintergrundbild */
.location-background {
  width: 100%;
  height: 800px;
  background-image: url("pics2/mihrabat2.jpeg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Schriftstile zurücksetzen */
.location-text {
  position: absolute;
  color: rgb(255, 255, 255); /* Wieder helle Schrift */
  font-size: 1.2em;
  line-height: 1.5;
  text-shadow: 4px 4px 30px rgb(0, 0, 0); /* Vorherige Schatten wiederhergestellt */
  z-index: 2;
}

/* Linksbündiger Text */
.left-text {
  width: 50%;
  max-width: 700px;
  top: 5%;
  left: 30%;
  transform: translateX(-30%);
  text-align: left;
}

/* Zentrierter Text */
.center-text {
  width: 50%;
  max-width: 700px;
  top: 75%;
  left: 30%;
  transform: translateX(-30%);
  text-align: center;
}

/* FADE-IN Effekt */
.hidden {
  opacity: 0;
  transform: translateY(30px); /* Startposition leicht nach unten versetzt */
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* Sobald sichtbar, erscheint es sanft */
.show {
  opacity: 1;
  transform: translateY(0);
}

/*---------------------------------GOOGLE MAPS-----------------------------------------------*/

/* Google Maps Container */
.map-container {
  width: 80%;
  max-width: 800px;
  margin: 40px auto; /* Abstand oberhalb und unterhalb */
  border-radius: 10px;
  overflow: hidden; /* Falls Border-Radius genutzt wird */
}

/* Google Maps Iframe */
.map-container iframe {
  width: 100%;
  height: 400px; /* Standardhöhe für Desktop */
  border-radius: 10px;
  border: none;
}

/*-----------------------------------FAQ---------------------------------------------*/

/* Weißer Hintergrund für die FAQ-Überschrift */
.faq-title-container {
  background-color: #f5f5f5; /* Weißer Hintergrund */
  padding: 20px 0; /* Abstand oben & unten */
  text-align: center;
  width: 100%;
}

/* FAQ-Titel */
.faq-title {
  font-size: 2.5em;
  font-family: "Pinyon Script", cursive;
  color: #333;
  margin: 0; /* Kein zusätzlicher Abstand */
}

/* FAQ-Sektion */
.faq-container {
  width: 80%;
  max-width: 800px;
  margin: 50px auto;
  text-align: center; /* Fragen & Antworten bleiben zentriert */
}

/* FAQ Box */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Frage-Button */
.faq-question {
  width: 100%;
  text-align: left;
  background: #f5f5f5;
  border: none;
  padding: 15px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
}

/* Frage-Button Hover Effekt */
.faq-question:hover {
  background: #ddd;
}

/* Antwort-Box */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  background: #fff;
  padding: 0 15px;
  border-left: 3px solid #333;
}

/* Antwort-Text */
.faq-answer p {
  font-size: 1em;
  padding: 10px 0;
  margin: 0;
}

/* Pfeil für die Animation */
.arrow {
  transition: transform 0.3s ease-in-out;
}

/* Pfeil rotiert nach unten, wenn Antwort sichtbar ist */
.faq-item.active .arrow {
  transform: rotate(180deg);
}

/* Links in FAQ-Antworten */
.faq-answer a {
  color: #007bff; /* Blaue Farbe für Links */
  text-decoration: none; /* Kein Unterstrich */
  font-weight: bold; /* Hebt die Links hervor */
  transition: color 0.3s ease-in-out;
}

.faq-answer a:hover {
  color: #0056b3; /* Dunkleres Blau beim Überfahren */
  text-decoration: underline; /* Unterstrich beim Hover */
}

/*---------------------------------LANGUAGE TRANSLATE-----------------------------------------------*/

/* Sprachumschalter */
.language-switcher {
  display: flex;
  justify-content: center; /* Zentriert die Buttons */
  gap: 15px; /* Abstand zwischen den Buttons */
  margin-top: 20px; /* Abstand nach oben */
  margin-bottom: 10px; /* Abstand zur Hauptüberschrift */
}

/* Buttons anpassen */
.language-switcher button {
  background-color: #ffffff;
  border: 2px solid #333;
  padding: 8px 12px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.language-switcher button:hover {
  background-color: #f0f0f0;
}

/*---------------------------------SMARTPHONE-----------------------------------------------*/

/* MEDIA QUERIES: Anpassung für Smartphones */
@media screen and (max-width: 768px) {
  /* Kleinerer Titel */
  .main-title {
    font-size: 2.5em;
  }
  .slideshow-container {
    height: 50vh; /* Weniger Platz auf kleinen Bildschirmen */
  }
  /* Kleinere Titelgröße für Mobile */
  .slideshow-container .title {
    font-size: 2.5em;
  }

  /* Kleinere Slideshow für Mobile */
  .slideshow-container {
    height: 50vh;
  }

  .slideshow img {
    height: 50vh;
  }

  /* Timeline für Mobile */
  .timeline-title {
    font-size: 2.5em;
  }

  .timeline-date {
    font-size: 1.3em;
  }

  /* Events untereinander anordnen */
  .timeline-event {
    flex-direction: column; /* Stapelt die Elemente */
    text-align: center; /* Zentriert die Inhalte */
  }

  .description {
    text-align: center;
    max-width: 90%; /* Mehr Platz auf kleineren Bildschirmen */
  }

  .icon-container {
    order: 1; /* Icon kommt zuerst */
    width: 80px;
    height: 80px;
  }

  .description {
    order: 2; /* Dann die Beschreibung */
    max-width: 90%;
  }

  .description h3 {
    font-size: 1.3em; /* Verringere die Größe für mobile Geräte */
    margin-top: 10px;
  }

  .description .time {
    order: 4; /* Uhrzeit */
    font-size: 1.3em;
    color: #666;
    margin-top: 5px;
  }

  .description .details {
    order: 5; /* Detaillierte Beschreibung */
    font-size: 1em;
    color: #555;
    line-height: 1.4;
    margin-top: 5px;
  }

  .location-background {
    height: 400px; /* Kleinere Höhe für Smartphones */
    background-size: contain; /* Bild weiterhin im Originalformat */
  }

  .location-text {
    width: 90%; /* Mehr Platz für den Text auf kleineren Displays */
    font-size: 0.6em; /* Kleinere Schriftgröße für bessere Lesbarkeit */
  }

  /* Linksbündiger Text rückt weiter nach oben */
  .left-text {
    top: 10%;
    left: 5%;
    text-align: left;
  }

  /* Mittiger Text bleibt in der Mitte */
  .center-text {
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .map-container {
    width: 85%; /* Breiter auf kleineren Bildschirmen */
    max-width: 100%;
    margin: 20px auto;
  }

  .map-container iframe {
    height: 300px; /* Kleinere Höhe für Smartphones */
  }

  .language-switcher button {
    padding: 2px 5px; /* Weniger Innenabstand */
    font-size: 0.8em; /* Kleinere Schriftgröße */
    border: 1.5px solid #333; /* Dünnere Umrandung */
  }

  .language-switcher button {
    padding: 2px 5px;
    font-size: 0.8em;
    border: 1.5px solid #333;
    color: #000; /* Schriftfarbe schwarz */
  }

  /* FAQ-Anpassung für mobile Ansicht */
  .faq-question {
    color: #000; /* Frage in schwarz */
  }

  .faq-answer p,
  .faq-answer {
    color: #000 !important; /* Antworttext in schwarz */
  }

  .faq-answer a {
    color: #000 !important; /* Linkfarbe ebenfalls schwarz */
    text-decoration: underline; /* Optional: nur wenn gewünscht */
  }
}
