/* =========================================================
   DEUTSCH GO — PHONE COLLECTIONS OVERLAY
   Tuned for frame_0040 (720 × 1280)
   Fade in: frame 35 → frame 40
   Mobile only
========================================================= */

#deutschgoPhoneCollectionsOverlay,
#deutschgoPhoneCollectionsAura {
  display: none !important;
}

@media screen and (max-width: 768px) {

  #deutschgoHero .deutschgo-hero__sticky {
    position: sticky !important;
    top: 0 !important;
    overflow: hidden !important;
    isolation: isolate !important;
  }

  #deutschgoPhoneCollectionsAura {
    position: absolute !important;
    inset: 0 !important;
    z-index: 13 !important;

    display: block !important;

    pointer-events: none !important;
    overflow: hidden !important;

    opacity: 0;
    visibility: hidden;

    will-change: opacity;
  }

  #deutschgoPhoneCollectionsAura::before {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -10%;

    width: 120%;
    height: 44%;

    transform: translateX(-50%);

    background:
      radial-gradient(
        ellipse at center,
        rgba(244, 197, 66, .10) 0%,
        rgba(28, 93, 112, .08) 32%,
        rgba(18, 59, 74, .05) 52%,
        transparent 76%
      );

    filter: blur(24px);
  }

  #deutschgoPhoneCollectionsOverlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 16 !important;

    display: block !important;

    pointer-events: none !important;

    opacity: 0;
    visibility: hidden;

    will-change: opacity, transform;
  }

  .deutschgo-phone-collections__header {
    position: absolute;

    top: 3.2%;
    left: 50%;

    width: calc(100% - 52px);

    transform: translateX(-50%);

    text-align: center;
    direction: ltr !important;
  }

  .deutschgo-phone-collections__heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 6px 13px;

    border: 1px solid rgba(255, 248, 241, .16);
    border-radius: 999px;

    background: rgba(8, 31, 43, .62);

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    color: #FFF8F1;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;

    box-shadow:
      0 10px 24px rgba(8, 31, 43, .24),
      inset 0 1px 0 rgba(255, 255, 255, .08);
  }

  .deutschgo-phone-collections__heading span {
    color: #F4C542;
  }

  .deutschgo-phone-collections__subheading {
    margin: 5px 0 0;

    color: rgba(255, 248, 241, .72);

    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.25;
    direction: ltr !important;
  }

  /*
    Coordinates are tuned to the exact 720 × 1280 frame:

    Top-left book:     Netzwerk neu
    Top-right book:    Aspekte neu
    Bottom-left book:  Grammatik aktiv
    Bottom-right book: Spektrum Deutsch
  */
  .deutschgo-phone-collections__item {
    position: absolute;

    width: 42%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(.98);

    will-change: opacity, transform;
  }

  .deutschgo-phone-collections__item--netzwerk {
    left: 3.4%;
    top: 42.1%;
  }

  .deutschgo-phone-collections__item--netzwerk
  .deutschgo-phone-collections__description,
  .deutschgo-phone-collections__item--netzwerk
  .deutschgo-phone-collections__name,
  .deutschgo-phone-collections__item--netzwerk
  .deutschgo-phone-collections__button {
    transform: translateX(-5px);
  }

  .deutschgo-phone-collections__item--aspekte {
    right: 4.8%;
    top: 42.1%;
  }

  .deutschgo-phone-collections__item--grammatik {
    left: 4.8%;
    top: 86.9%;
  }

  .deutschgo-phone-collections__item--spektrum {
    right: 4.8%;
    top: 86.9%;
  }

  .deutschgo-phone-collections__description {
    width: 100%;
    min-height: 30px;

    margin: 0 0 5px;

    color: rgba(255, 248, 241, .70);

    font-size: 9.2px;
    line-height: 1.35;
    font-weight: 500;

    text-shadow: 0 3px 10px rgba(8, 31, 43, .55);
  }

  .deutschgo-phone-collections__name {
    width: 100%;

    margin: 0 0 7px;

    color: #FFF8F1;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;

    text-shadow:
      0 4px 12px rgba(8, 31, 43, .56),
      0 0 14px rgba(244, 197, 66, .04);
  }

  .deutschgo-phone-collections__button {
    pointer-events: auto !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-width: 104px;
    padding: 9px 13px;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;

    background: #F4C542;
    color: #081F2B;

    text-decoration: none;
    text-transform: uppercase;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;

    box-shadow:
      0 9px 22px rgba(8, 31, 43, .26),
      inset 0 1px 0 rgba(255, 255, 255, .38);
  }

  .deutschgo-phone-collections__button svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
  }

  .deutschgo-phone-collections__button:active {
    transform: scale(.95);
    background: #081F2B;
    color: #FFF8F1;
  }
}