/* Overlay */
#popup-iframe-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  overflow: hidden;
}

/* Container für iframe */
.popup-iframe-container {
  position: relative;
  width: 100%;
  height: calc(100dvh - 70px); /* Höhe des Buttons abziehen */
  overflow: hidden;
}

/* Dieser Wrapper killt das horizontale Ziehen in iOS */
.iframe-scroll-wrapper {
  width: 100%;
  height: 100%;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateZ(0); /* ✅ der Trick */
  will-change: transform;
}

/* iFrame selbst */
.iframe-scroll-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}

/* Footer-Button */
.popup-footer-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  line-height: 70px;
  background: #00ffba;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  z-index: 100000;
  box-sizing: border-box;
}

.popup-footer-btn {
  text-decoration: none;
  color: #000;
}