.leistungen-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.650); 
    z-index: 9999;
}

.leistungen-modal-container.leistungen-modal-visible {
    display: flex;
}

.leistungen-modal-container .modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.692);
    transform: scale(1); 
    opacity: 1;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }

@keyframes modal-fade-zoom-in {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  @keyframes modal-fade-zoom-out {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    100% {
      transform: scale(0.8);
      opacity: 0;
    }
  }
  
  .modal-opening {
    animation: modal-fade-zoom-in 0.3s ease-out forwards;
  }
  
  .modal-closing {
    animation: modal-fade-zoom-out 0.3s ease-out forwards;
  }
  

.leistungen-modal-container .close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.leistungen-modal-container .close-modal:hover {
    color: #333;
}


.modal-scroll-area {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 1rem;
    margin-top: 1rem;
}


.modal-scroll-area h3 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #333;
}


.modal-scroll-area ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}


.cta-section {
    margin-top: 2rem;
    text-align: center;
}

.termin-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2c2c2c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.termin-btn:hover {
    background-color: #616161;
}
