/* ---------- FULLSCREEN OVERLAY ---------- */
#promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 99999;
}

#promo-overlay.show {
  opacity: 1;
  pointer-events: auto;
}


/* ---------- POPUP ---------- */
#promo-banner {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(0,0,0,0.55);

  padding: 24px 10px;   /* ↑ 24px oben und unten | → 10px links/rechts */
  position: relative;

  /* NEU – XL POPUP */
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}


#promo-overlay.show #promo-banner {
  opacity: 1;
  transform: translateY(0);
}


/* ---------- Bild korrekt skalieren ---------- */
#promo-banner img {
  width: 100%;
  max-height: 90vh;       /* verhindert Überlappen */
  object-fit: contain;    /* Bild wird nie abgeschnitten */
  display: block;
  border-radius: 10px;
}


/* ---------- Close Button ---------- */
#close-banner {
  position: absolute;
  top: 12px;
  right: 12px;

  background: rgba(0,0,0,0.55);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;

  padding: 4px 11px;
  font-size: 20px;
  cursor: pointer;

  transition: opacity 0.2s ease;
}

#close-banner:hover {
  opacity: 0.7;
}


/* ---------- MOBILE VERSION ---------- */
@media (max-width: 600px) {

  #promo-banner {
    max-width: 94vw;
    max-height: 92vh;
    padding: 20px 10px;
  }

  #promo-banner img {
    max-height: 78vh;
  }

  #close-banner {
    top: 8px;
    right: 8px;
    padding: 3px 9px;
    font-size: 18px;
  }
}
