/* Körper und HTML auf volle Höhe setzen */
html,
a {
  color: black;
}
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Container auf flexiblen Layout setzen */
.Page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh; /* Sicherstellen, dass der Container immer die gesamte Höhe einnimmt */
}

.Page-Welcome {
  flex: 1;
  margin: 0 5%;
  overflow-y: auto;
  box-sizing: border-box;
}

.Page-Welcome h1 {
  font-family: 'Algerian', serif;
  font-size: 36px;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.Page-Welcome h1 span {
  display: inline-block;
  opacity: 0;
  margin: 0 5px;
}

/* Animation für den ersten Teil (Willkommen) */
.Welcome-word1 {
  animation: moveFromLeft 1.5s forwards;
}

/* Animation für den zweiten Teil (Enduroteam Schwarzenburg) */
.Welcome-word2 {
  animation: moveFromRight 1.5s forwards;
}

/* Container für den Text unter Willkommen */
.info-box {
  background: radial-gradient(circle, #ffffffd2, #858585);
  border: 2px solid #ffffff;
  padding: 5px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  color: #000000;
  line-height: 1.6;
}

.info-text-1 {
  font-family: 'Castellar', serif;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin: 0 0;
  text-decoration: underline;
  border-radius: 4px;
  border: 2px solid white;
  padding: 10px;
  display: inline-block;
}

.info-text-2 {
  font-family: 'Sitka Text Semibold', serif;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: bold;
  text-align: center;
  margin: 0px 0;
}
.info-text-3 {
  font-family: 'Sitka Text Semibold', serif;
  font-size: 16px;
  text-align: center;
  margin: 10px 0;
}
.info-text-10 {
  font-family: 'Castellar', serif;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: white;
  margin: 0 0;
  border-radius: 4px;
  border: 2px solid white;
  padding: 2px 3%;
}
.info-text-11 {
  font-family: 'Sitka Text Semibold', serif;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: white;
  margin: 10px 5%;
}
.info-text-12 {
  font-family: 'Eras Medium ITC', serif;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  color: white;
  display: block;
  margin-top: 2px; /* reduziert den Abstand */
  line-height: 1.2; /* optional: verringert vertikalen Abstand */
} 

.Page-Body1 {
  flex: 1;
  margin: 0 5%;
  padding-top: 0px;
  overflow-y: auto;
  box-sizing: border-box;
  overflow-x: hidden; /* verhindert das Mitscrollen des Sliders */
}

.Page-Body2 {
  flex: 1;
  margin: 0 5%;
  padding-top: 0px;
  overflow-y: auto;
  box-sizing: border-box;
  
  opacity: 0; /* Startwert: unsichtbar */
  transform: translateY(50px); /* Startwert: nach unten verschoben */
  transition: opacity 1s, transform 1s; /* Übergang für die Animation */
}

/* Zustand, wenn sichtbar: sichtbar und in normale Position verschoben */
.Page-Body2.visible {
  opacity: 1; /* Endwert: sichtbar */
  transform: translateY(0); /* Endwert: normale Position */
}

.Page-Body3 {
  flex: 1;
  margin: 0 5%;
  padding-top: 15px;
  overflow-y: auto;
  box-sizing: border-box;
  
  opacity: 0; /* Startwert: unsichtbar */
  transform: translateY(50px); /* Startwert: nach unten verschoben */
  transition: opacity 1.8s ease, transform 1.8s ease; /* Sanfte Übergänge */
}

.Page-Body3.visible {
  opacity: 1; /* Endwert: sichtbar */
  transform: translateY(0); /* Endwert: normale Position */
}

.Page-Body5 {
  flex: 1;
  margin: 60px 9% 0 0;
  padding: 0 0%;
  overflow-y: auto;
  box-sizing: border-box;
  
  opacity: 1; /* Startwert: unsichtbar */
  transform: translateY(-50px) translateX(5%); /* Startwert: nach unten verschoben */
  transition: opacity 1.8s ease, transform 1.8s ease; /* Sanfte Übergänge */

  background-color: #383737;
  border: 2px solid #737373; /* Schwarze Umrahmung */
  border-radius: 5px; /* Optional: abgerundete Ecken für die Umrahmung */
}

.Page-Body10 {
  flex: 1;
  margin: 0 5%;
  padding-top: 15px;
  overflow-y: auto;
  box-sizing: border-box;
  overflow-x: hidden; /* verhindert das Mitscrollen des Sliders */
}

h1 {
  font-size: 1.5em;
}

/* Container für die Buttons */
.button-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px;
  flex-wrap: wrap;
}

/* Container für jedes einzelne Button */
.button-box {
  flex: 1;
  max-width: 45%;
  min-width: 250px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Container für beide button-box */
.button-container-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.button-box-with-link1, .button-box-with-link2, .button-box-with-gallerylink1{
  flex: 1; /* Sorgt dafür, dass der Container den verfügbaren Platz einnimmt */
  background: radial-gradient(circle, #a3a3a3d2, #2c2c2c);
  border: 2px solid #ffffff;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;  /* Stellt sicher, dass die Inhalte in einer Spalte angeordnet sind */
  justify-content: space-between; /* Verwendet den verfügbaren Platz zwischen den Inhalten */
}
.button-box-with-link2{  /* Bild ganz unten in container */
  width: 100%;
}

.button-box-with-gallerylink1{
  padding: 10px 10px 0px 10px;
  min-width: 300px;
}

.button-container-Gallery{
  padding: 1% 5%;
}

.image-container { /* Anpassungen für das Bild im Container */
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.button-container-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Sorgt dafür, dass die Buttons am unteren Rand ausgerichtet werden */
  margin-top: auto; /* Verschiebt die Container nach unten */
}

.responsive-image {
  width: 100%;
  height: 100%;
  max-width: 500px;
  max-height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.responsive-image:hover {
  transform: scale(1.05);
}

/* Stil für die Buttons */
.link1-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: black;
  background: radial-gradient(circle, #00ff26ef, #147322ef);
  padding: 12px;
  border: 3px solid #000000;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  min-width: 250px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.link1-button:hover { 
  background: radial-gradient( #5d5d5d, #000000);
  color: rgb(255, 255, 255);
  border: 3px solid #00ff26ef;
}
.link10-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: black;
  background-color: #ff5900;
  padding: 8px;
  border: 3px solid #000000;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  min-width: 250px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.link10-button:hover {
  background-color: black;
  color: #ff5900;
  border: 3px solid #25cff1d7;
}

/* Stil für das Bild im Button */
.button-image {
  width: 40%;
  height: 40%;
  margin-bottom: 10px;
  border: 3px solid white;
  object-fit: cover;
}

/* Footer */
footer {
  background-image: url('../Pics/WebAllg/bgfooter.jpg'); /* Pfad zum Hintergrundbild */
  background-size: cover; /* Das Bild wird auf die gesamte Fläche des Footers skaliert */
  background-position: center; /* Das Bild wird zentriert angezeigt */
  height: 200px; /* Höhe des Footers auf 250px setzen */
  color: white;
  text-align: center;
  margin-top: 5px;
  padding: 20px;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-nav a, .footer-legal a {
  color: #00ff26ef;
  text-decoration: none;
  margin: 0 10px;
}
.footer-nav{
  margin-top: 30px;
}

.footer-nav a:hover,
.footer-legal a:hover {
  text-decoration: underline;
}

#footer-cookie {
  margin-top: auto;
  background-color: #333;
  color: white;
  padding: 20px;
  text-align: center;
}

.slider {
  display: flex;
  animation: slide 60s linear infinite;
}

.slider img {
  width: auto;
  height: 200px;
  margin: 0 0%;
}

@keyframes slide {
  100% {
    transform: translateX(-800%);
  }
}

.swiper {
  display: flex;
  transition: transform 2s ease-in-out;
}

.logo {
  margin: 0 ;
  width: 348px;
  height: auto;
  border: 1px solid black;
}

.logo-wrapper {
  display: flex;
  justify-content: space-between;
}

/* Animation für den ersten Teil (links) */
@keyframes moveFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animation für den zweiten Teil (rechts) */
@keyframes moveFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  .info-box {
    font-size: 14px;
    padding: 15px;
  }

  .Page-Welcome h1 {
    flex-direction: column;
    font-size: 28px;
  }

  .Page-Body3, .Page-Body10 {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .first-line,
  .second-line {
    margin: 5px 0;
  }

  .button-container {
    flex-direction: column;
    gap: 5px;
  } 

  .button-container-wrapper {
    flex-direction: column;
    gap: 5px;
  }

  .button-box-with-link1 {
    max-width: 100%;
    width: 100%;
  }
}
