/* CSS Document */

/* Hintergrund-Overlay */
.popup-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 99999; /* Sehr hoch ansetzen, damit es über allem liegt */
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Aktiv-Zustand */
.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Die Info-Box */
.popup-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  max-width: 750px; /* Etwas breiter für den längeren Text */
  width: 90%;
  max-height: 85vh; /* Verhindert, dass die Box auf kleinen Handys aus dem Bildschirm ragt */
  overflow-y: auto; /* Macht die Box scrollbar, falls das Display zu klein ist */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: left; /* Linksbündig für bessere Lesbarkeit des Fließtextes */
  font-family: sans-serif;
  color: #333333;
  font-size; 17px;
  line-height: 1.6;
}

/* Überschriften */
.popup-content h2 {
  color: #c0392b; /* Ein dezentes Rot für die Wichtigkeit */
  margin-top: 0;
  font-size: 22px;
  padding-right: 20px;
}

/* Hervorhebungsbox für die zwei Punkte */
.popup-highlight-box {
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}
.popup-highlight-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}
.popup-highlight-box ul {
  margin: 0;
  padding-left: 20px;
}
.popup-highlight-box li {
  margin-bottom: 8px;
}

/* Schließkreuz oben rechts */
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.popup-close:hover {
  color: #000;
}

/* Grußformel */
.popup-signature {
  margin-top: 20px;
  font-style: italic;
}

/* Button unten zentrieren */
.popup-btn {
  display: block;
  width: 200px;
  margin: 25px auto 0 auto;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}
.popup-btn:hover {
  background-color: #0056b3;
}

.popup-content p, 
.popup-content li {
  font-size: 17px !important;
}