/* ==========================================================================
   KOBIL — Sektion: Hero (Figma 2527:44085)
   ========================================================================== */

.sec-hero {
  position: relative;
  isolation: isolate;
}

/* ---- Karten-Flächen: navy-20-Keil hinter weißer Karte mit Diagonalschnitt ---- */

.sec-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--navy-20);
  border-radius: 18px;
}

.sec-hero__surface {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  border-radius: 18px;
  -webkit-mask: url("../../assets/hero/deco-back.svg") center / 100% 100% no-repeat;
  mask: url("../../assets/hero/deco-back.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---- Main: Bildbereich (674px) ---- */

.sec-hero__main {
  position: relative;
  height: 674px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.sec-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.sec-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.sec-hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    89.007deg,
    rgba(255, 255, 255, 0.9) 10.464%,
    rgba(255, 255, 255, 0.713) 28.222%,
    rgba(255, 255, 255, 0.527) 37.832%,
    rgba(255, 255, 255, 0) 45.553%
  );
}

/* ---- Linker Textblock ---- */

.sec-hero__content {
  position: absolute;
  left: 64px;
  top: 173px;
  width: 503px;
}

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

.sec-hero__title-line {
  display: block;
}

.sec-hero__title-line--second {
  margin-top: 4px;
  white-space: nowrap;
}

.sec-hero__word {
  color: var(--blue);
  display: inline-block;
}

.sec-hero__word-inner {
  display: inline-block;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  will-change: opacity, transform;
}

.sec-hero__word-inner.is-out {
  opacity: 0;
  transform: translateY(-20px);
}

.sec-hero__word-inner.is-in {
  transition: none;
  opacity: 0;
  transform: translateY(20px);
}

.sec-hero__sub {
  margin-top: 12px;
  font-size: 16px;
  line-height: 23px;
  font-weight: 400;
  color: var(--navy-80);
}

/* ---- CTAs: Buttons mit diagonaler Kerbe unten rechts ---- */

.sec-hero__ctas {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sec-hero__btn {
  position: relative;
  isolation: isolate;
  height: 48px;
  padding: 14px 32px 14px 24px;
  gap: 8px;
  border-radius: 8px;
}

.sec-hero__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask:
    url("../../assets/hero/btn-primary-body.svg") left top / calc(100% - 35.84px) 100% no-repeat,
    url("../../assets/hero/btn-primary-end.svg") right top / 79.5px 100% no-repeat;
  mask:
    url("../../assets/hero/btn-primary-body.svg") left top / calc(100% - 35.84px) 100% no-repeat,
    url("../../assets/hero/btn-primary-end.svg") right top / 79.5px 100% no-repeat;
  transition: background-color var(--dur) var(--ease);
}

.sec-hero__btn--primary {
  color: var(--white);
}

.sec-hero__btn--primary::before {
  background: var(--blue);
}

.sec-hero__btn--primary:hover::before {
  background: #1e4fd6;
}

.sec-hero__btn--ghost {
  color: var(--navy);
}

.sec-hero__btn--ghost::before {
  background: var(--white);
}

.sec-hero__btn--ghost:hover::before {
  background: var(--navy-30);
}

.sec-hero__btn img {
  transition: transform var(--dur) var(--ease);
}

.sec-hero__btn:hover img {
  transform: translateX(3px);
}

/* ---- Schwebende Info-Cards (mPower / Gartner) ---- */

.sec-hero__cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sec-hero__infocard {
  pointer-events: auto;
  position: absolute;
  bottom: 0;
  width: 258px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--white);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(
    214.179deg,
    rgba(184, 232, 255, 0.9) 8.8626%,
    rgba(139, 135, 254, 0.9) 22.429%,
    rgba(41, 98, 246, 0.9) 49.085%
  );
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  box-shadow: 0 12px 21px rgba(46, 85, 205, 0.4);
  transition: box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.sec-hero__infocard:hover {
  filter: brightness(1.07);
  box-shadow: 0 14px 26px rgba(46, 85, 205, 0.5);
}

.sec-hero__infocard--mpower {
  right: 384px;
}

.sec-hero__infocard--gartner {
  right: 104px;
}

.sec-hero__infocard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.sec-hero__infocard-top--center {
  align-items: center;
}

.sec-hero__infocard-logo {
  position: relative;
  display: block;
  width: 74px;
  height: 22px;
}

.sec-hero__infocard-logo--mpower img {
  position: absolute;
  top: -3px;
  left: 0;
  width: 80px;
  height: 25px;
  max-width: none;
}

.sec-hero__infocard-logo--gartner {
  height: 23px;
}

.sec-hero__infocard-logo--gartner img {
  position: absolute;
  top: 6px;
  left: 0;
  width: 65px;
  height: 15px;
  max-width: none;
}

.sec-hero__infocard-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  border: 0.5px solid #deeeff;
  -webkit-backdrop-filter: blur(1.6px);
  backdrop-filter: blur(1.6px);
  transition: background-color var(--dur) var(--ease);
}

.sec-hero__infocard-chip img {
  width: 11.25px;
  height: 11.25px;
}

.sec-hero__infocard:hover .sec-hero__infocard-chip {
  background: rgba(255, 255, 255, 0.35);
}

.sec-hero__infocard-text {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--white);
  max-width: 208px;
}

/* ---- References: Eyebrow + Logostreifen ---- */

.sec-hero__refs {
  padding: 32px 40px 73px;
}

.sec-hero__eyebrow {
  display: flex; /* block-level: verhindert 24px-Zeilenbox um das inline-flex p (Figma: 18px) */
  gap: 10px;
  letter-spacing: 0.48px;
  color: var(--navy-70);
}

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

.sec-hero__logos {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sec-hero__logos::-webkit-scrollbar {
  display: none;
}

.sec-hero__logos li {
  flex: 0 0 auto;
}

.sec-hero__logos img {
  height: 64px;
  width: auto;
}

/* ---- Mobile-only Elemente (Default: aus) ---- */

.sec-hero__logo--m {
  display: none;
}

.sec-hero__sheet {
  display: none;
}

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

@media (max-width: 1024px) {
  .sec-hero__content {
    left: 48px;
    top: 120px;
    width: 480px;
  }

  .sec-hero__title {
    font-size: 44px;
    line-height: 54px;
  }

  .sec-hero__infocard--gartner {
    right: 32px;
  }

  .sec-hero__infocard--mpower {
    right: 312px;
  }

  .sec-hero__refs {
    padding: 28px 32px 56px;
  }
}

/* ==========================================================================
   Mobile (Figma 3577:34207 — 369px-Karte im 393px-Frame)
   ========================================================================== */

@media (max-width: 768px) {
  /* Weiße Karte: 12px-Radius, Diagonalschnitt unten rechts */
  .sec-hero::before {
    border-radius: 12px;
  }

  .sec-hero__surface {
    border-radius: 12px;
    -webkit-mask: url("../../assets/hero/deco-back-mobile.svg") center / 100% 100% no-repeat;
    mask: url("../../assets/hero/deco-back-mobile.svg") center / 100% 100% no-repeat;
  }

  .sec-hero__main {
    height: auto;
    overflow: visible;
    border-radius: 0;
    padding: 16px 16px 0;
  }

  /* Bild: 1:1-Quadrat im Fluss, Cards am unteren Bildrand */
  .sec-hero__media {
    position: relative;
    inset: auto;
    aspect-ratio: 1 / 1;
    border-radius: 8px 8px 0 0;
  }

  .sec-hero__photo--front {
    display: none;
  }

  .sec-hero__wash {
    background: linear-gradient(88.874deg, rgba(255, 255, 255, 0.2) 5.1037%, rgba(255, 255, 255, 0) 36.947%);
  }

  .sec-hero__cards {
    top: auto;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    gap: 5px;
  }

  .sec-hero__infocard {
    position: relative;
    right: auto;
    bottom: auto;
    flex: 1 1 0;
    min-width: 1px;
    width: auto;
    gap: 8px;
    padding: 8px;
    border-width: 0.5px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(
      216.408deg,
      rgba(184, 232, 255, 0.9) 8.8626%,
      rgba(139, 135, 254, 0.9) 22.429%,
      rgba(41, 98, 246, 0.9) 49.085%
    );
    -webkit-backdrop-filter: blur(1.072px);
    backdrop-filter: blur(1.072px);
    box-shadow: 0 5.145px 9.004px rgba(46, 85, 205, 0.4);
  }

  .sec-hero__infocard--mpower,
  .sec-hero__infocard--gartner {
    right: auto;
  }

  .sec-hero__infocard-logo {
    width: 55px;
    height: 19px;
  }

  .sec-hero__infocard-logo--mpower img {
    top: 0;
    width: 60.45px;
    height: 19px;
  }

  .sec-hero__infocard-logo--gartner {
    width: 53px;
    height: 14px;
  }

  .sec-hero__infocard-logo--gartner img {
    top: auto;
    bottom: 0.65px;
    left: 0.4px;
    width: 46.7px;
    height: 10.8px;
  }

  .sec-hero__infocard-text {
    font-size: 12px;
    line-height: 16px;
    max-width: none;
  }

  /* Textblock unter dem Bild */
  .sec-hero__content {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    padding: 24px 0 0;
  }

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

  .sec-hero__title-line--second {
    margin-top: 0;
    white-space: normal;
  }

  .sec-hero__word {
    display: block;
  }

  .sec-hero__sub {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 22px;
    max-width: none;
  }

  .sec-hero__word-inner.is-out {
    transform: translateY(-14px);
  }

  .sec-hero__word-inner.is-in {
    transform: translateY(14px);
  }

  /* CTAs: volle Breite, gestapelt, Label zentriert */
  .sec-hero__ctas {
    margin-top: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .sec-hero__btn {
    width: 100%;
    justify-content: center;
  }

  .sec-hero__btn--ghost::before {
    background: var(--navy-30);
  }

  .sec-hero__btn--ghost:hover::before {
    background: var(--navy-40);
  }

  /* References: Divider + Presse-/Kundenlogos (Mobile-Set) */
  .sec-hero__refs {
    margin: 40px 16px 0;
    padding: 0 0 26px;
  }

  .sec-hero__refs::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 24px;
    background: #d5d9e3;
  }

  .sec-hero__eyebrow {
    gap: 8px;
  }

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

  .sec-hero__logos {
    margin-top: 0;
    gap: 12px;
  }

  .sec-hero__logos li:not(.sec-hero__logo--m) {
    display: none;
  }

  .sec-hero__logo--m {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
  }

  .sec-hero__logo--m img {
    width: auto;
    height: auto;
  }

  .sec-hero__logo--m-forbes {
    width: 144px;
  }

  .sec-hero__logo--m-forbes img {
    width: 144px;
    height: 64px;
  }

  .sec-hero__logo--m-tsystems {
    width: 144px;
  }

  .sec-hero__logo--m-tsystems img {
    width: 102px;
  }

  .sec-hero__logo--m-allianz {
    width: 144px;
  }

  .sec-hero__logo--m-allianz img {
    width: 99px;
  }

  .sec-hero__logo--m-db {
    width: 176px;
  }

  .sec-hero__logo--m-db img {
    width: 162px;
  }

  .sec-hero__logo--m-cb {
    width: 140px;
  }

  .sec-hero__logo--m-cb img {
    width: 66px;
  }

  .sec-hero__logo--m-wiwo {
    width: 174px;
  }

  .sec-hero__logo--m-wiwo img {
    width: 138px;
  }

  /* ---- Bottom-Sheets (mPower 3472:13565 / Gartner 3480:17108) ---- */

  .sec-hero__sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1200;
  }

  .sec-hero__sheet[hidden] {
    display: none;
  }

  .sec-hero__sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 36, 74, 0.3);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }

  .sec-hero__sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 322px;
    padding: 95px 23px 0;
    border: 1px solid var(--white);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(
      231deg,
      rgba(184, 232, 255, 0.9) 8.8626%,
      rgba(139, 135, 254, 0.9) 22.429%,
      rgba(41, 98, 246, 0.9) 49.085%
    );
    -webkit-backdrop-filter: blur(2.5px);
    backdrop-filter: blur(2.5px);
    box-shadow: 0 12px 21px rgba(46, 85, 205, 0.4);
    transform: translateY(100%);
    transition: transform 0.35s var(--ease);
  }

  .sec-hero__sheet.is-open .sec-hero__sheet-backdrop {
    opacity: 1;
  }

  .sec-hero__sheet.is-open .sec-hero__sheet-panel {
    transform: none;
  }

  .sec-hero__sheet-panel--gartner {
    min-height: 314px;
    padding-top: 86px;
  }

  .sec-hero__sheet-logo {
    position: absolute;
    top: 28px;
    left: 23px;
  }

  .sec-hero__sheet-panel--gartner .sec-hero__sheet-logo {
    top: 37px;
    left: 24px;
  }

  .sec-hero__sheet-close {
    position: absolute;
    top: 19px;
    right: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .sec-hero__sheet-close-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    border: 0.5px solid #deeeff;
    -webkit-backdrop-filter: blur(1.6px);
    backdrop-filter: blur(1.6px);
    transition: background-color var(--dur) var(--ease);
  }

  .sec-hero__sheet-close:hover .sec-hero__sheet-close-chip {
    background: rgba(255, 255, 255, 0.35);
  }

  .sec-hero__sheet-title {
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    color: var(--white);
  }

  .sec-hero__sheet-text {
    margin-top: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--white);
  }

  .sec-hero__sheet-btn {
    position: relative;
    isolation: isolate;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin: 22px 0 20px;
    padding: 4px 20px 4px 16px;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: var(--navy);
  }

  .sec-hero__sheet-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--white);
    -webkit-mask:
      url("../../assets/hero/btn-sheet-body.svg") left top / calc(100% - 40px) 100% no-repeat,
      url("../../assets/hero/btn-sheet-end.svg") right top / 67px 100% no-repeat;
    mask:
      url("../../assets/hero/btn-sheet-body.svg") left top / calc(100% - 40px) 100% no-repeat,
      url("../../assets/hero/btn-sheet-end.svg") right top / 67px 100% no-repeat;
  }

  .sec-hero__sheet-btn img {
    transition: transform var(--dur) var(--ease);
  }

  .sec-hero__sheet-btn:hover img {
    transform: translateX(3px);
  }

  .sec-hero__sheet-footer {
    margin: auto -23px 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
  }
}
