/* Grundlegendes Styling */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
}

html, body {
  overflow-x: hidden;
}

header {
  width: 100%;
  height: 60px;
  background-color: #8ebe90;
  color: white;
  text-align: center;
  padding: 75px 20px;
  font-family: 'Arial', sans-serif;
  margin-bottom: 3%;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}


header a {
  display:flex;
  margin-left: 80px;
  margin-top: -92px; 
}

footer {
  width: 100%;
  height: 60px;
  background-color: #8ebe9079;
  color: white;
  text-align: center;
  padding: 75px 20px;
  font-family: 'Arial', sans-serif;
  margin-top: 5%;
}

footer h1 {
  margin: 0;
  font-size: 2.5em;
}

footer p {
  margin: 10px 0 0 0;
  font-size: 1.2em;
  font-weight: 300;
}

/* Container für alle Urlaube */
#reisen {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 = Anzahl des Elements, 1fr = wie groß der Anteil der einzelnen Elemente im angegebenen Bereich */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Einzelner Urlaubskasten */
#reisen article {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 320px; /* feste Höhe, Bild + Text proportional */
  transition: transform 0.3s;
}

#reisen article:hover {
  transform: scale(1.03);
}

/* Bild oben */
#reisen article img {
  width: 100%;
  height: 66%; /* obere 2/3 */
  object-fit: cover;
}

/* Textbereich unten */
#reisen article .info {
  height: 34%; /* unteres 1/3 */
  background-color: white;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

#reisen article h2 {
  margin: 10px 0 5px 0;
  font-size: 1.2em;
}

#reisen article p {
  margin: 0;
  color: #666;
  font-size: 0.95em;
}

/* Responsive für Handy */
@media (max-width: 600px) {
  #reisen {
    grid-template-columns: 1fr;
  }
}

main a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ========== TIMELINE ========== */
.timeline-container {
  display: flex;
  justify-content: center;
  padding: 0px 0;
}

.timeline {
    position: relative;
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0 20px 40px;     /* (20px = Verlängerung der Line) */
    box-sizing: border-box;
  
    /* 👉 DAS ist der wichtige Teil */
    display: flex;
    flex-direction: column; /* alles untereinander anordnen */
}

/* vertikale Linie */
.timeline::before {
  content: "";
  position: absolute;
  left: 50px;        /* Linie etwas weiter in die Mitte */
  top: 0;
  bottom: 0;
  width: 3px;
  background: #4CAF50;
}

.start-tick {
  position: absolute;
  top: 0;
  left: 45.5px;   /* horizontal verschieben */
  width: 12px;
  height: 2px;
  background-color: #4CAF50;
}

/* einzelne Timeline-Elemente */
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
  gap: 20px;
  width: 100%;
}

/* runde Punkte mit Bild */
.timeline-dot {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 3px solid #4CAF50;
  border-radius: 50%;
  background-color: white;
  overflow: hidden;
  margin-right: 20px;
  margin-left: -20px; /* statt -60px, rückt sie näher an die Linie */
}

.timeline-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;

}

/* Textbereich */
.timeline-content {
  background-color: white;
  border-radius: 12px;
  padding: 12px 16px; /* 15px 20px */
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);  /* 0,0,0,0.1 */
  flex: 1;
}

.timeline::after {
  content: '';
  position: absolute;
  bottom: 0;               /* Ende der Linie */
  left: 45.5px;              /* horizontal verschieben */
  width: 12px;
  height: 2px;
  background-color: #4CAF50;
}

.timeline a.timeline-link {
  display: block;         /* macht den ganzen Bereich klickbar */
  text-decoration: none;
  color: inherit;
}

.timeline a.timeline-link .timeline-item { /* optional */
  cursor: pointer;
}

.timeline-content h3 {
  margin: 0 0 5px;
  color: #4CAF50;
}

.timeline-content p {
  margin: 0;
  color: #333;
  line-height: 1.4em;
}

#reisen a {
  text-decoration: none; /* keine Unterstreichung */
  color: inherit; /* übernimmt Textfarbe des Kastens */
  display: block; /* macht den ganzen Kasten klickbar */
  height: 100%; /* dehnt sich über gesamten Kasten */
}

.Logo {
  width: 150px;
  display:flex;
  margin-left: 0px;
  margin-top: 0px;
}

/* Mobile Ansicht */
@media (max-width: 600px) {
  .timeline::before {
    left: 15px;
  }

  .timeline-dot {
    width: 45px;
    height: 45px;
    margin-right: 15px;
  }

  .timeline-content {
    padding: 10px 15px;
  }
}

.bilder h2 {
  text-align: center;
}


.image-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* genau 3 gleich große Spalten */
  gap: 30px;                             /* gleichmäßiger Abstand */
  padding: 20px;                         /* Abstand zum Rand */
  max-width: 1200px;                     /* Gesamtbreite begrenzen */
  margin: 0 auto;                        /* mittig auf der Seite */
}

.image-row {
  display: flex;
  flex-direction: column;    /* Text unter das Bild */
  align-items: center;       /* Text mittig ausrichten */
  max-width: 300px;          /* optional: maximale Breite pro Block */
  box-sizing: border-box;
  margin: 0 auto;
}

.image-row img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}

.image-row p {
  margin-top: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.button-container {
  display: flex;                 /* Buttons nebeneinander */
  justify-content: center;       /* horizontal in der Mitte */
  align-items: center;           /* vertikal (wenn Container Höhe hat) */
  gap: 20px;                     /* Abstand zwischen Buttons */
  margin-top: 40px;           /* Abstand zur Umgebung */
  margin-bottom: 50px;
}

.button-container button {
  background-color: (115, 134, 115);  
  color: white;
  border: none;                  /* Entfernt Standardrand */
  border-radius: 12px;           /* Runde Ecken */
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* leichter Schatten */
}

.button-container button:hover {
  background-color: #45a049;
  transform: scale(1.05);        /* leichtes Vergrößern beim Hover */
}

.button-container button:focus {
  outline: none;                 /* entfernt blauen Rahmen beim Fokus */
}
