/* ==========================================================================
   KOBIL — Sektion: KOBIL Ventures
   Weiße Karte (Radius 18px) mit abgeschrägter Ecke unten rechts,
   dezentem blauem Glow, Text links + SuperApp-Phone-Cluster rechts.
   ========================================================================== */

.sec-kobil-ventures {
  position: relative;
  height: 495px;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  /* Abgeschrägte Ecke unten rechts (wie Figma-Shape, auflösungsunabhängig) */
  -webkit-mask-image: linear-gradient(315deg, transparent 67px, #000 68.5px);
  mask-image: linear-gradient(315deg, transparent 67px, #000 68.5px);
}

/* ---- Dezenter blauer Glow (Figma: geblurrter Verlauf, #2962F6 4–10 %) ---- */

.sec-kobil-ventures__glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

/* Mobile-only Elemente (Glow-Variante + Mobil-Copy) — auf Desktop versteckt */

.sec-kobil-ventures__glow-m,
.sec-kobil-ventures__desc--m {
  display: none;
}

/* ---- Text-Spalte links ---- */

.sec-kobil-ventures__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 401px;
  max-width: 100%;
  padding: 41px 0 0 40px;
}

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

.sec-kobil-ventures__eyebrow::before {
  width: 12px;
  height: 12px;
}

.sec-kobil-ventures__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-kobil-ventures__title {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  color: var(--navy);
}

.sec-kobil-ventures__desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  color: var(--navy-70);
  max-width: 346px;
}

.sec-kobil-ventures__desc strong {
  font-weight: 600;
}

/* ---- Learn-More-Link ---- */

.sec-kobil-ventures__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--navy);
  transition: color var(--dur) var(--ease);
}

.sec-kobil-ventures__link-icon {
  flex: 0 0 auto;
  transition: transform var(--dur) var(--ease);
}

.sec-kobil-ventures__link:hover,
.sec-kobil-ventures__link:focus-visible {
  color: var(--blue);
}

.sec-kobil-ventures__link:hover .sec-kobil-ventures__link-icon,
.sec-kobil-ventures__link:focus-visible .sec-kobil-ventures__link-icon {
  transform: translateX(4px);
}

/* ---- SuperApp-Phone-Cluster rechts ---- */

.sec-kobil-ventures__media {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  /* Figma: Bildrahmen beginnt bei x = 360px und läuft bis zur rechten Kante */
  width: calc(100% - 360px);
  max-width: 1000px;
}

.sec-kobil-ventures__media img {
  display: block;
  width: 100%;
  height: auto;
}

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

@media (max-width: 1024px) {
  .sec-kobil-ventures {
    height: auto;
  }

  .sec-kobil-ventures__content {
    width: 100%;
    max-width: 560px;
    padding: 40px 32px 0;
  }

  .sec-kobil-ventures__desc {
    max-width: 460px;
  }

  .sec-kobil-ventures__media {
    position: static;
    width: 100%;
    max-width: 760px;
    margin: 16px 0 0 auto;
  }
}

@media (max-width: 768px) {
  /* Figma M-Homepage (3577:34310): Karte 369×563, Radius 6px, KEINE
     abgeschrägte Ecke, Glow als bodenständige Fläche, 3-Phone-Cluster. */
  .sec-kobil-ventures {
    border-radius: 6px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .sec-kobil-ventures__glow {
    display: none;
  }

  .sec-kobil-ventures__glow-m {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
  }

  /* Content: 24px Rand, Eyebrow→Titel 12px, Titel→Text 16px, Text→Link 16px */
  .sec-kobil-ventures__content {
    gap: 12px;
    max-width: none;
    padding: 24px 24px 0;
  }

  .sec-kobil-ventures__eyebrow {
    gap: 8px;
  }

  .sec-kobil-ventures__eyebrow::before {
    width: 8px;
    height: 8px;
  }

  .sec-kobil-ventures__text {
    gap: 16px;
  }

  .sec-kobil-ventures__title {
    font-size: 28px;
    line-height: 36px;
  }

  .sec-kobil-ventures__desc--d {
    display: none;
  }

  .sec-kobil-ventures__desc--m {
    display: block;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 22px;
    color: var(--navy-80);
    max-width: 303px;
  }

  /* Zeilenfall wie im Figma-Design: Umbruch nach "…infrastructure to" */
  .sec-kobil-ventures__nowrap {
    white-space: nowrap;
  }

  .sec-kobil-ventures__link {
    margin-top: 4px;
  }

  /* 3-Phone-Cluster: 351×286, zentriert, bündig an der Kartenunterkante */
  .sec-kobil-ventures__media {
    position: relative;
    z-index: 1;
    width: min(351px, 100%);
    max-width: none;
    margin: 69px auto 0;
  }

  .sec-kobil-ventures__media img {
    aspect-ratio: 351 / 286;
  }
}
