/* -------------------------------------- */
/* ZENTRALISIERTES MODAL CSS & BUTTON STYLES */
/* -------------------------------------- */

/* Button Styles */
a.btn, a.btn:link, a.btn:visited {
    display: inline-block !important; 
    width: auto !important; 
    padding: 12px 15px !important; 
    background-color: #ffcc00; 
    color: #333333; 
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    
    text-align: center !important;
    border: 1px solid #333;
    
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
a.btn:hover {
    background-color: #E6B800; 
    cursor: pointer;
    border-color: #000;
}

/* Zentrierung und Breiten-Konsistenz */
.hero a.btn {
    margin-top: 20px; 
    display: block; 
    max-width: 280px; 
    margin-left: auto;
    margin-right: auto;
}
.cta a.btn {
    margin-top: 15px;
    display: block; 
    max-width: 280px; 
    margin-left: auto;
    margin-right: auto;
}

/* Modal Animation */
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Modal Overlay und Content */
.modal-overlay {
  display: none !important;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: white;
  max-width: 480px;
  width: 90%;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif;
  position: relative;
  animation: fadeInModal 0.3s ease-out;
}
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  color: #333;
}
.modal-close {
  margin-top: 25px;
  padding: 10px 20px;
  border: none;
  background: #ff3300;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

/* Wichtig für die JS-Steuerung */
.hidden {
  display: none !important;
  visibility: hidden !important;
}
.modal-overlay:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
}