/* Dunkelt die eigentliche Startseite im Hintergrund leicht ab */
.overlay-hintergrund {
  position: fixed;
  top: 20%;
  left: 10%;
  width: 70%;
  height: 80%;
  background-color: rgba(0, 0, 0, 0.65); /* Halbtransparentes Schwarz */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Sorgt dafür, dass die Box über allen anderen Elementen liegt */
  padding: 15px;
  box-sizing: border-box;
}

/* Die eigentliche Text-Box */
.overlay-box {
  position: relative;
  background-color: #ffffff;
  color: #333333;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;      /* Verhindert, dass die Box auf kleinen Handys oben/unten abgeschnitten wird */
  overflow-y: auto;      /* Macht den Text innerhalb der Box scrollbar, falls er sehr lang ist */
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-family: sans-serif;
  line-height: 1.6;
}

/* Das "X" oben rechts */
.schliessen-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #666666;
  cursor: pointer;
}

.schliessen-btn:hover {
  color: #000000;
}

/* Buttons unten in der Box */
.overlay-aktionen {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.info-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e74c3c;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.info-button:hover {
  background-color: #c0392b;
}

.text-schliessen {
  background: none;
  border: 1px solid #cccccc;
  padding: 9px 15px;
  border-radius: 5px;
  cursor: pointer;
  color: #555555;
}

.text-schliessen:hover {
  background-color: #f0f0f0;
}
