.Leistungen a {
    position: relative;
    display: inline-block;
    opacity: 1; /* Start hidden */
    animation: zoomIn 1s ease-in; /* Initial animation */
    animation: zoomIn 1s ease-in; /* Initial animation */
    transition: transform 0.3s ease-in-out; /* Smooth transition for hover zoom */
}

.Leistungen a:hover {
    transform: scale(1.2); /* Zoom in to 120% of original size */
}

/* Staggered animation effect */
.Leistungen a:nth-child(1) { animation-delay: 0.2s; }
.Leistungen a:nth-child(2) { animation-delay: 0.4s; }
.Leistungen a:nth-child(3) { animation-delay: 0.6s; }
.Leistungen a:nth-child(4) { animation-delay: 0.8s; }
.Leistungen a:nth-child(5) { animation-delay: 1s; }

@keyframes zoomIn {
    0% {
      transform: scale(1);
      opacity: 0;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.Vorteile-Inhalt span {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When the elements are visible, they fade in and move up */
.Vorteile-Inhalt span.show {
    opacity: 1;
    transform: translateY(0);
}


/* Staggered effect */
.Vorteile-Inhalt span:nth-child(1) {
    transition-delay: 0.2s;
}
.Vorteile-Inhalt span:nth-child(2) {
    transition-delay: 0.4s;
}
.Vorteile-Inhalt span:nth-child(3) {
    transition-delay: 0.6s;
}

nav img {
    opacity: 0;
    transform: scale(0.8);
    animation: logoAnimation 1s forwards; /* Apply the animation */  
}

/* Define the animation */
@keyframes logoAnimation {
    0% {
      opacity: 0;
      transform: translateX(0);
    }
    100% {
      opacity: 1;
      transform: translateX(1); /* Scale up a little bit and rotate */
    }
}

.google-maps {
  display: flex;
  justify-content: center;
  margin: 40px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.google-maps.show {
  opacity: 1;
  transform: translateY(0);
}