

/* Popup-Grundlayout ausblenden */
.popup {
  /* Anstelle von display: none */
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;

  /* Startzustand: durchsichtig und nicht anklickbar */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease; /* Kannst du nach Geschmack anpassen */

  --bs-secondary: #f5f5f5;
}

.popup.show {
  /* Zielzustand: sichtbar und anklickbar */
  opacity: 1;
  pointer-events: auto;
}

/* Inhalt in der Mitte platzieren und stylen */
.popup-content {
  padding: 0;
  max-width: 950px;
  width: 100%;
  border-radius: 5px;
  position: relative;
  text-align: left;
  max-height: 80vh;
  overflow: auto;
  margin: 0 30px;
}

/* Button zum Schließen */
.popup-close-btn {
  background: #ffffffab;
  border: none;
  cursor: pointer;
  padding: 6px 15px;
  margin-top: 1rem;
  font-size: 0.89em;
  position: absolute;
  right: 20px;
  top: 0;
}

.popup-content .img img {
  height: 100%;
  width: auto;
}
.popup-content .img {
  overflow: hidden;
  height: 100%;
}
.popup-content a {
}
.popup-content a.btn {
  margin: 1em 0 0 0;
}

.popup-content h2 {
  font-weight: 700;
  font-family: inherit;
  color: #ea5801;
}
.popup-content .col-md-6:first-child {
  padding: 30px 20px;
  background-color: var(--bs-secondary);
}

.popup-content .col-md-6:last-child {
  padding: 0;
}
.popup-content .row {
  margin-right: 0;
  margin-left: 0;
}

.popup-content .col-md-6 {
  position: unset;
}

.popup-content .col-md-12 {
  padding: 30px;
  background-color: var(--bs-secondary);
}

@media screen and (max-width: 768px) {
  .popup-content h2 {
    margin-top: 30px;
  }
  .popup-content {
    margin: 0 20px;
  }
}
