/* 
---------------------------------------------
Modal Style
--------------------------------------------- 
*/

#lean_overlay {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); /* dunklerer transparenter schwarzer Hintergrund */
  display: none !important;
  z-index: 10000 !important;
}

/* Modal Container */
#myModal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%); /* perfekt zentriert */
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); /* weichere Schatten */
  z-index: 11000;
  display: none;
  font-family: 'Poppins', sans-serif;
  animation: fadeIn 0.3s; /* sanfte Einblendung */
}

/* Schließen-Button */
#myModal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #ff4d4d;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s; /* Hinzufügen von Transformationsübergang */
}

#myModal .close:hover {
  color: #ff0000;
  transform: scale(1.1); /* Vergrößerungseffekt beim Hover */
}

/* Text im Modal */
#myModal p {
  margin-top: 20px;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  text-align: center;
}

/* Animation für das Modal */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
