/* ==========================================================================
   KOBIL — Produktseite SuperApp Platform — Sektion: Showcase / Scenarios
   (Figma 16621:26839 "mpower" — Design. Launch. Scale. All From One Portal.)
   ========================================================================== */

.sec-superapp-showcase {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 80px 40px 42px;
}

/* ---- Kopfbereich ---- */

.sec-superapp-showcase__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 848px;
}

.sec-superapp-showcase__head-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.sec-superapp-showcase__eyebrow {
  gap: 10px;
  letter-spacing: 0.48px;
  color: var(--navy-70);
}

.sec-superapp-showcase__eyebrow::before {
  width: 12px;
  height: 12px;
}

.sec-superapp-showcase__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  color: var(--navy);
}

.sec-superapp-showcase__title-accent {
  display: block;
  color: var(--blue);
}

.sec-superapp-showcase__lede {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  color: var(--navy-80);
}

/* ---- Karten-Raster ---- */

.sec-superapp-showcase__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

/* Karte: 416x510 bei 1440px, Ecken 8px + diagonale Kerbe unten rechts.
   container-type erlaubt cqw-Einheiten, damit die Visuals exakt mit der
   Kartenbreite skalieren (1cqw = Kartenbreite/100; 416px-Referenzraster). */

.sec-superapp-showcase__card {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  aspect-ratio: 416 / 510;
  background: url("/assets/products/superapp/showcase/card-bg.svg") 0 0 / 100% 100% no-repeat;
}

/* Gradient-Rahmen (liegt ueber den Visuals, wie in Figma bei Karte 2+3).
   In Figma liegt der Stroke-Vektor pro Karte ZWEIMAL uebereinander —
   deshalb hier zwei identische Background-Layer (kraeftigere Kante oben). */
.sec-superapp-showcase__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    url("/assets/products/superapp/showcase/card-stroke.svg") 0 0 / 100% 100% no-repeat,
    url("/assets/products/superapp/showcase/card-stroke.svg") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.sec-superapp-showcase__card-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 32px 0;
}

.sec-superapp-showcase__card-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  line-height: 42px;
  color: var(--navy);
}

.sec-superapp-showcase__card-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  color: var(--navy-70);
}

/* Platzhalter reserviert die Visual-Zone im Fluss — Text und Visual
   koennen bei schmalen Karten nie kollidieren (Karte waechst stattdessen). */
.sec-superapp-showcase__card-reserve {
  flex: 0 0 auto;
}

.sec-superapp-showcase__card--miniapp .sec-superapp-showcase__card-reserve {
  height: 63.401cqw; /* 263.75/416 */
}

.sec-superapp-showcase__card--home .sec-superapp-showcase__card-reserve {
  height: 66.346cqw; /* 276/416 */
}

.sec-superapp-showcase__card--store .sec-superapp-showcase__card-reserve {
  height: 59.856cqw; /* 249/416 */
}

/* Visual-Ebene: an Kartenform (Ecken + Kerbe) maskiert */

.sec-superapp-showcase__card-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: url("/assets/products/superapp/showcase/card-mask.svg");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("/assets/products/superapp/showcase/card-mask.svg");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.sec-superapp-showcase__card-visual img {
  position: absolute;
  height: auto;
}

/* Karte 1 — MiniApp management: Admin-Desktop + Add-Service-Modal */

.sec-superapp-showcase__img-desktop {
  left: 7.327cqw; /* 30.48/416 */
  bottom: -3.993cqw; /* -16.61/416 */
  width: 84.019cqw; /* 349.52/416 */
}

.sec-superapp-showcase__img-modal {
  left: 20.553cqw; /* 85.5/416 (inkl. 20px Schatten-Rand) */
  bottom: -1.923cqw; /* -8/416 */
  width: 64.663cqw; /* 269/416 */
}

/* Karte 2 — Home screen design: Builder-Panel + Phone */

.sec-superapp-showcase__img-builder {
  left: 0;
  bottom: 0;
  width: 99.519cqw; /* 414/416 */
}

/* Karte 3 — Direct app store submission: Production-Stores-Panel */

.sec-superapp-showcase__img-store {
  left: 11.538cqw; /* 48/416 (inkl. 22px Schatten-Rand) */
  bottom: 3.178cqw; /* 13.22/416 */
  width: 76.923cqw; /* 320/416 */
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Schmale 3-Spalten-Zone: Typo in den Karten reduzieren */
@media (max-width: 1280px) and (min-width: 1025px) {
  .sec-superapp-showcase__card-text {
    padding: 24px 24px 0;
  }

  .sec-superapp-showcase__card-title {
    font-size: 26px;
    line-height: 34px;
  }

  .sec-superapp-showcase__card-body {
    font-size: 16px;
    line-height: 23px;
  }
}

@media (max-width: 1024px) {
  .sec-superapp-showcase {
    padding: 64px 40px 40px;
  }

  .sec-superapp-showcase__cards {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }

  .sec-superapp-showcase__card {
    width: 100%;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .sec-superapp-showcase {
    padding: 56px 24px 32px;
  }

  .sec-superapp-showcase__title {
    font-size: 28px;
    line-height: 36px;
  }

  .sec-superapp-showcase__card-title {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (max-width: 480px) {
  .sec-superapp-showcase {
    padding: 48px 20px 28px;
  }

  .sec-superapp-showcase__head-top {
    gap: 16px;
  }

  .sec-superapp-showcase__lede {
    font-size: 16px;
    line-height: 23px;
  }

  .sec-superapp-showcase__card-text {
    padding: 24px 24px 0;
  }

  .sec-superapp-showcase__card-title {
    font-size: 24px;
    line-height: 32px;
  }

  .sec-superapp-showcase__card-body {
    font-size: 16px;
    line-height: 23px;
  }
}
