/* === Popup Startseite: Animation === */
.site-popup__content {
  text-align: center;
}
.site-popup__image,
.site-popup__content { text-align: center; }


.site-popup__image {
  padding: 24px 0;        /* gleicher Abstand oben & unten */
  text-align: center;
}

.site-popup__image img {
  display: inline-block;
  max-width: 60%;
  height: auto;
}


.site-popup { display: block; } /* wichtig: wir animieren, daher nicht display:none */
.site-popup { pointer-events: none; opacity: 0; }

.site-popup__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;

  opacity: 0;
  transition: opacity 220ms ease;
}

.site-popup__modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100% - 32px));
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  z-index: 9999;

  transform: translate(-50%, -48%) scale(0.98);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

/* OPEN */
.site-popup.is-open { pointer-events: auto; opacity: 1; }
.site-popup.is-open .site-popup__overlay { opacity: 1; }
.site-popup.is-open .site-popup__modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* CLOSE (optional nicer feel) */
.site-popup.is-closing .site-popup__overlay { opacity: 0; }
.site-popup.is-closing .site-popup__modal {
  opacity: 0;
  transform: translate(-50%, -52%) scale(0.98);
}

/* Button */
.site-popup__close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Accessibility: keine Animation, wenn Nutzer es deaktiviert */
@media (prefers-reduced-motion: reduce) {
  .site-popup__overlay,
  .site-popup__modal {
    transition: none;
  }
}
