/**
 * WebApp phone mockup (Infobox mit Bild, greyBG / webappPromo)
 * — no scroll parallax on device, full shadow visible, install CTA on screen
 */

.cont > .frame.frame-type-pxteny_infoboxwithimage .infoboxwithimage--webapp,
.cont > .frame.frame-type-pxteny_infoboxwithimage:has(.infoboxwithimage--webapp),
.cont > .frame.frame-type-pxteny_infoboxwithimage:has(.infoboxwithimage--webapp) > .inner,
.infoboxwithimage--webapp,
.infoboxwithimage--webapp > .inner,
.infoboxwithimage--webapp .imagebox.webapp-phone-promo {
  overflow: visible !important;
}

.infoboxwithimage--webapp {
  overflow: visible;
  padding-bottom: 28px;
}

.infoboxwithimage--webapp > .inner {
  overflow: visible;
}

.infoboxwithimage--webapp .imagebox.webapp-phone-promo {
  position: relative;
  z-index: 20;
  overflow: visible !important;
  padding-bottom: clamp(28px, 4vw, 56px);
  margin-bottom: 0;
  transform: none !important;
  animation: none !important;
  opacity: 1 !important;
}

.infoboxwithimage--webapp .imagebox.webapp-phone-promo.go {
  transform: none !important;
}

.webapp-phone-promo__device {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.webapp-phone-promo__device img {
  display: block;
  width: 100%;
  max-width: min(920px, 100%);
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center bottom;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

/* Screen overlay — aligned to typical device mockup safe area */
.webapp-phone-promo__screen {
  position: absolute;
  left: 11.5%;
  right: 11.5%;
  top: 7.5%;
  bottom: 10.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.webapp-phone-promo.is-armed .webapp-phone-promo__screen {
  pointer-events: auto;
}

.webapp-phone-promo__install-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #cc0607;
  color: #fff;
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 10px 28px rgba(204, 6, 7, 0.42);
  cursor: pointer;
  transform: scale(0.96);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.webapp-phone-promo.is-armed .webapp-phone-promo__install-btn {
  display: inline-flex;
  opacity: 1;
  transform: scale(1);
}

.webapp-phone-promo__install-btn:hover,
.webapp-phone-promo__install-btn:focus {
  background: #a80506;
  box-shadow: 0 14px 32px rgba(204, 6, 7, 0.48);
}

.webapp-phone-promo__install-btn::before {
  content: "↓";
  font-size: 1.05em;
  line-height: 1;
}

@media screen and (max-width: 470px) {
  .infoboxwithimage--webapp .webapp-phone-promo__device img {
    min-height: 0 !important;
    object-fit: contain !important;
  }
}

@media screen and (max-width: 768px) {
  .infoboxwithimage--webapp {
    padding-bottom: 20px;
  }

  .infoboxwithimage--webapp .imagebox.webapp-phone-promo {
    padding-bottom: 36px;
  }

  .webapp-phone-promo__device img {
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .webapp-phone-promo__install-btn {
    transition: none;
  }
}
