/*
 Theme Name: Divi Lightbox Zoom Child (mit sanfter Pan-Trägheit)
 Template: Divi
 Version: 1.2
*/
.mfp-content .mfp-img {
  touch-action: pinch-zoom;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
  user-select: none;
  transition: transform 0.3s ease;
}
/* Hyperlink-Styles im Body mit sanfter Animation */
body a:link {
  color: #C13A11;
  text-decoration: none;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

body a:visited {
  color: orange; /*#6dabbf*/
  text-decoration: none;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

body a:hover,
body a:active {
  color: #C13A11;
  font-weight: bold;
  text-decoration: none;
}

/* Scroll-to-top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999; /* über Divi-Elementen */
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn svg {
  width: 24px;
  height: 24px;
  margin-top: 12px;
}
/* Elegante Einblend-Animation für Scroll-to-top Button */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wenn der Button sichtbar wird */
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  animation: fadeSlideUp 0.4s ease-out forwards;
}


#scrollTopBtn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}
