/* Definiere eine Klasse für das Element, das animiert werden soll */
.zoom-effect {
  /* Definiere eine Übergangsanimation für die Größe und Farbe */
  transition: transform 0.3s, background 0.3s;
  border-radius:2.55rem;
  transform: scale(1)
}

/* Definiere einen Pseudoselektor für den Zustand, wenn die Maus auf das Element fährt */
.zoom-effect:hover {
  /* Vergrößere das Element um 20% */
  transform: scale(1.2);
}

.serverbg {
  line-height: 0.5;
  background: linear-gradient(to right, rgba(172, 29, 137, 0), rgba(53, 42, 220, 0)), url(/files/history.webp);
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative; /* Damit das Pseudo-Element positioniert werden kann */
}

/* Definiere einen Pseudoselektor für den Zustand, wenn die Maus auf das Element fährt */
.serverbg:hover::after {
  opacity: 1; /* Die Deckkraft des Pseudo-Elements wird auf 1 gesetzt */
}

/* Definiere ein Pseudo-Element, das den gleichen Gradienten wie der Hover-Zustand hat */
.serverbg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(172,29,137,0.9) 0%, rgba(115,35,177,0.6) 30%, rgba(53,42,220,0.1) 100%), url(/files/history.webp);
  background-size: cover;
  opacity: 0; /* Die Deckkraft des Pseudo-Elements wird auf 0 gesetzt */
  transition: opacity 0.3s; /* Die Deckkraft des Pseudo-Elements wird überblendet */
  transform: scale(1);
  border-radius: 2.55rem;
}

.serverbg img {
  position: relative; /* Das Bild muss positioniert sein, damit z-index wirkt */
  z-index: 1; /* Das Bild wird vor dem Pseudo-Element angezeigt */
  filter: drop-shadow(0px 0px 20px black);
  max-width: 80%;
  transform: scale(1.2);
}



.downloadbg {
  line-height: 0.5;
  background: linear-gradient(to right, rgba(172, 29, 137, 0), rgba(53, 42, 220, 0)), url(/files/discord-stock.png);
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative; /* Damit das Pseudo-Element positioniert werden kann */
}

/* Definiere einen Pseudoselektor für den Zustand, wenn die Maus auf das Element fährt */
.downloadbg:hover::after {
  opacity: 1; /* Die Deckkraft des Pseudo-Elements wird auf 1 gesetzt */
}

/* Definiere ein Pseudo-Element, das den gleichen Gradienten wie der Hover-Zustand hat */
.downloadbg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(172,29,137,0.9) 0%, rgba(115,35,177,0.6) 30%, rgba(53,42,220,0.1) 100%), url(/files/discord-stock.png);
  background-size: cover;
  opacity: 0; /* Die Deckkraft des Pseudo-Elements wird auf 0 gesetzt */
  transition: opacity 0.3s; /* Die Deckkraft des Pseudo-Elements wird überblendet */
  transform: scale(1);
  border-radius: 2.55rem;
}

.downloadbg img {
  position: relative; /* Das Bild muss positioniert sein, damit z-index wirkt */
  z-index: 1; /* Das Bild wird vor dem Pseudo-Element angezeigt */
  filter: drop-shadow(0px 0px 20px black);
  max-width: 80%;
  transform: scale(1.2);
}

	/* Stil für den Scroll-Pfeil */
.scroll-down-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  animation: bounce 2s infinite;
  transition: color 0.15s;
  font-size: 1.5rem;
}

.scroll-down-arrow:hover {
  color: rgba(180, 180, 180, 1);
}

/* Bouncing-Animation für den Pfeil */
@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* Stil für den Inhalt-Start-Punkt (z.B. Start-Buttons) */
#content-start {
  display: block;
  position: relative;
  top: -100px; /* Anpassung je nach Layout */
}

.btn4 {
  font-family: "Montserrat";
  font-weight: 600;
  border-radius: 2.55rem;
  background-color: White;
  background-image: url("https://i.ibb.co/wsx6yxj/bl1.png");
  background-position: center center;
  background-repeat: repeat;
  border: none;
  color: white;
  padding: 30px 30px;
  cursor: pointer;
  font-size: 30px;
  margin: 0 auto;
  margin-bottom: 40px;
  transition: 0.3s;
}

/* Darker background on mouse-over */
.btn4:hover {
  filter: grayscale(1) drop-shadow(0px 0px 6px #0d0d0d);
  background-color: Purple;
  color: white;
  transform: scale(1.1);

    
}

.btn5 {
  font-family: "Montserrat";
  font-weight: 600;
  border-radius: 2.55rem;
  background-color: White;
  background-image: url("https://i.ibb.co/WGLVsKJ/bl2.png");
  background-position: center center;
  background-repeat: repeat;
  border: none;
  color: white;
  padding: 30px 30px;
  cursor: pointer;
  font-size: 30px;
  margin: 0 auto;
  margin-bottom: 40px;
  transition: 0.3s;
}

/* Darker background on mouse-over */
.btn5:hover {
  filter: grayscale(1) drop-shadow(0px 0px 6px #0d0d0d);
  background-color: Purple;
  color: white;
  transform: scale(1.1);
    
}

.btn6 {
  font-family: "Montserrat";
  font-weight: 600;
  border-radius: 2.55rem;
  background-color: White;
  background-image: url("https://i.ibb.co/jgRdCDy/bl3.png");
  background-position: center center;
  background-repeat: repeat;
  border: none;
  color: white;
  padding: 30px 30px;
  cursor: pointer;
  font-size: 30px;
  margin-bottom: 40px;
  transition: 0.3s;
}

/* Darker background on mouse-over */
.btn6:hover {
  filter: grayscale(1) drop-shadow(0px 0px 6px #0d0d0d);
  background-color: Purple;
  color: white;
  transform: scale(1.1);
    
}

.start-buttons {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Mobile-first Ansatz: Grid bei kleineren Geräten */
@media (max-width: 768px) {
  .start-buttons {
    display: grid;
    justify-content: center;
    gap: 1rem; /* Abstand zwischen den Buttons */
  }
}

.news {
    justify-content: center;
    display: flex;
}

.news iframe {
  	max-width: 1100px;
}

.applet {
    width: 90%;
    max-width: 1100px;
	position: relative;
	left: 50%;
	transform: translate(-50%, -50%);
    margin-top: 8rem;
	margin-bottom: -5.5rem;
}

footer #myIframe {
    border-top: 1.5px solid rgba(255, 255, 255, 0.2);
}

  .applet-container {
    display: flex;
    padding: 20px;
    max-width: 1100px;
    width: 90%;
    margin: 20px auto;
    color: white;
    flex-direction: row; /* Standard horizontal layout */
  }
  
  .applet-container a {
	text-decoration: none;
	color: #fff;
  }

  .applet-logo img {
    width: 30rem;
    border-radius: 2.55rem;
    filter: drop-shadow(0px 0px 1rem black);
    transition: transform 0.3s; /* Smooth transition for hover effect */
  }
  
  .applet-logo:hover img {
    transform: scale(1.1); /* Enlarge image on hover */
  }

  .applet-text-content {
    margin-left: 3rem;
    font-weight: 300;
    font-size: 14pt;
  }
  
  .applet-title {
    font-size: 36.0pt;
    font-weight: 500;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  /* Mobile Anpassungen */
  @media (max-width: 768px) {
    .applet-container {
      flex-direction: column; /* Wechselt zu vertikalem Layout auf kleinen Bildschirmen */
      text-align: center;
    }

    .applet-logo img {
      width: 100%; /* Passt die Bildbreite auf die Bildschirmbreite an */
      max-width: 20rem; /* Maximale Breite des Logos, damit es auf kleinen Geräten nicht zu groß wird */
      margin-bottom: 1rem; /* Abstand zum Textbereich */
    }

    .applet-text-content {
      margin-left: 0; /* Entfernt linken Abstand auf kleinen Bildschirmen */
    }

    .applet-title {
      font-size: 1.5rem; /* Reduziert die Schriftgröße des Titels auf kleineren Bildschirmen */
    }

    .applet-description {
      font-size: 0.9rem; /* Reduziert die Schriftgröße der Beschreibung für bessere Lesbarkeit */
    }
  }
  
/* Container for images in new row, aligned with top row */
.applet-container.align-with-top {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  max-width: 1100px;
  width: 90%;
  margin: 20px auto;
  align-items: center;
}

/* Individual image items with fixed width */
.applet-container.align-with-top .image-item {
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  flex-shrink: 0; /* Prevents the items from shrinking */
}

.applet-container.align-with-top img {
  border-radius: 2.55rem;
  width: 30rem;
  max-width: 100%;
  transition: transform 0.3s; /* Smooth transition for hover effect on image only */
}

/* Enlarge only the image on hover */
.applet-container.align-with-top .image-item img:hover {
  transform: scale(1.1); /* Enlarge image on hover */
}

.applet-container.align-with-top .image-title {
  font-size: 2rem;
  font-weight: 500;
  margin-top: 10px;
  color: white;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .applet-container.align-with-top {
    flex-direction: column; /* Stack images vertically on mobile */
  }
  
  .applet-container.align-with-top .image-item {
    width: 100%; /* Full width on mobile */
    max-width: 20rem; /* Limit max width for readability on smaller screens */
    padding: 0px;
  }
  
  .applet-container.align-with-top .image-title {
    font-size: 1.2rem; /* Adjust title size for mobile */
  }
}