/* ==========================================================================
   KOBIL — Sektion: Gartner
   Weiße Karte (Radius 18px) auf navy-20-Fläche; die abgeschrägte Ecke
   unten rechts gibt den navy-20-Grund frei. Links Eyebrow + H2
   "A Consistent Global Leader at [Gartner-Wortmarke]", rechts
   Fließtext mit Hype-Cycle-Aufzählung (5px-Punkte als Trenner).
   ========================================================================== */

.sec-gartner {
  position: relative;
  isolation: isolate;
  min-height: 271px;
  padding: 40px;
  display: flex;
  align-items: stretch;
  gap: 15px;
}

/* navy-20-Fläche hinter der Karte — scheint durch den Diagonalschnitt
   unten rechts (wie beim Hero-Keil, Figma: System/20%) */
.sec-gartner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--navy-20);
  border-radius: 18px;
}

/* Weiße Karte mit abgeschrägter Ecke unten rechts */
.sec-gartner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  border-radius: 18px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 94px),
    calc(100% - 85px) 100%,
    0 100%
  );
}

/* ---- Linke Spalte: Eyebrow + H2 mit Gartner-Wortmarke ------------------ */

.sec-gartner .gartner-left {
  flex: 0 0 532px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

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

.sec-gartner .eyebrow::before {
  width: 12px;
  height: 12px;
}

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

.sec-gartner .gartner-title__logo {
  display: inline-block;
  width: 164px;
  height: auto;
  margin-left: 4px;
  vertical-align: -4px;
}

/* ---- Rechte Spalte: Intro + Hype-Cycle-Aufzählung ---------------------- */

.sec-gartner .gartner-right {
  flex: 0 1 598px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.sec-gartner .gartner-intro {
  font-size: 18px;
  line-height: 26px;
  color: var(--navy-70);
}

.sec-gartner .gartner-intro strong {
  font-weight: 600;
}

.sec-gartner .gartner-domains {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  font-size: 18px;
  line-height: 26px;
  color: var(--navy-70);
}

.sec-gartner .gartner-domains__item--grow {
  flex: 1 0 0;
  min-width: 1px;
}

.sec-gartner .gartner-dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
}

/* Mobile-Copy (eine durchgehende Copy, M-Homepage) — nur ≤480px sichtbar */
.sec-gartner .gartner-copy-mobile {
  display: none;
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 1024px) {
  .sec-gartner {
    min-height: 0;
    flex-direction: column;
    gap: 24px;
  }

  .sec-gartner .gartner-left {
    flex: none;
  }

  .sec-gartner .gartner-title br {
    display: none;
  }

  .sec-gartner .gartner-right {
    flex: none;
    max-width: 640px;
  }

  .sec-gartner .gartner-domains__item--grow {
    flex: 0 0 auto;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .sec-gartner {
    padding: 32px;
  }

  .sec-gartner .gartner-title {
    font-size: 32px;
    line-height: 40px;
  }

  .sec-gartner .gartner-title__logo {
    width: 132px;
    vertical-align: -4px;
  }
}

/* Mobile ≤480px — pixelgenau nach M-Homepage (Figma 3577:34382):
   Karte 24px Padding, Radius 6px, Keil 73×65px; Eyebrow-Punkt 8px;
   H2 28/36 mit 131px-Wortmarke; eine durchgehende Copy Inter 14/22. */
@media (max-width: 480px) {
  .sec-gartner {
    min-height: 327px;
    padding: 24px;
    gap: 16px;
  }

  .sec-gartner::before,
  .sec-gartner::after {
    border-radius: 6px;
  }

  .sec-gartner::after {
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - 65px),
      calc(100% - 73px) 100%,
      0 100%
    );
  }

  .sec-gartner .gartner-left {
    gap: 12px;
  }

  .sec-gartner .eyebrow {
    gap: 8px;
  }

  .sec-gartner .eyebrow::before {
    width: 8px;
    height: 8px;
  }

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

  /* Expliziter Umbruch wie im M-Design: "A Consistent Global" / "Leader at …" */
  .sec-gartner .gartner-title br {
    display: inline;
  }

  .sec-gartner .gartner-title__logo {
    width: 131px;
    vertical-align: -1px;
  }

  /* Desktop-Zweiteiler (Intro + Flex-Aufzählung) durch die eine Copy ersetzen */
  .sec-gartner .gartner-intro,
  .sec-gartner .gartner-domains {
    display: none;
  }

  .sec-gartner .gartner-copy-mobile {
    display: block;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 22px;
    color: var(--navy-70);
  }

  .sec-gartner .gartner-copy-mobile strong {
    font-weight: 700;
  }
}
