/* Popup overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

/* Popup box - mobile first */
.popup-content {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
  background: url('https://rohrcleaner.de/wp-content/uploads/2025/09/Gunstige-Rohrreinigung-Dusseldorf-mobile.jpg') no-repeat center center;
  background-size: contain;
  width: 100%;
  aspect-ratio: 4 / 5;  
  max-width: 100vw;
  max-height: 100vh;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  padding:20px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.popup-close:hover {
  background: #000;
  color: #fff;
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* Larger screens - desktop image */
@media (min-width: 769px) {
  .popup-content {
    background: url('https://rohrcleaner.de/wp-content/uploads/2025/06/Gunstige-Rohrreinigung-Dusseldorf.jpg.webp') no-repeat center center;
    background-size: contain;
    width: 1080px;
    height: 1350px;
  }
  .popup-close{
      top: 20px;
      right: 20px;
  }
}