/* ==========================================================================
   KOBIL — Industry Healthcare — Sektion: Hero (Figma 16516:25407)
   Eigenstaendige helle Karte (1360x630): Eyebrow, H1 mit farbigem Akzent,
   Subline, Kerben-CTA "Contact sales" links; rechts Foto (Aerztin am Laptop)
   mit dahinterliegender Consultation-Chat-Karte.
   Desktop: fixe 1360x630-Buehne, proportional auf die Kartenbreite skaliert.
   ========================================================================== */

.sec-healthcare-hero {
  position: relative;
  isolation: isolate;
  height: 630px;
  overflow: clip;
  border-radius: var(--radius-sm);
  background: var(--navy-20);
}

/* Feiner Verlaufs-Rand (Figma "stroke"-Layer) — unter Karte/Foto, ueber dem BG */
.sec-healthcare-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: var(--radius-sm);
  padding: 1px;
  background: linear-gradient(200deg, #ffffff 0%, rgba(111, 151, 255, 0.66) 100%),
    linear-gradient(35deg, rgba(0, 71, 255, 0.4) 0%, rgba(255, 255, 255, 0) 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* ---- Fixe Design-Buehne 1360x630, per Transform auf die Breite skaliert ---- */

.hc-hero__canvas {
  position: relative;
  width: 1360px;
  height: 630px;
  transform-origin: top left;
}

.hc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hc-hero__content {
  position: absolute;
  top: 50%;
  left: 50px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 560px;
  transform: translateY(-50%);
}

.hc-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
  color: var(--blue);
}

.hc-hero__lead {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hc-hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hc-hero__title {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0;
  color: var(--navy);
}

.hc-hero__title-accent {
  color: var(--blue);
}

.hc-hero__subline {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  color: var(--navy-80);
}

/* CTA: weisser Button mit gekerbter Ecke unten rechts (Figma-Shapes als Maske) */

.hc-hero__cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  height: 48px;
  padding: 8px 32px 8px 24px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--navy);
  white-space: nowrap;
}

.hc-hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  filter: drop-shadow(0 6px 14px rgba(17, 36, 74, 0.1));
  -webkit-mask-image: url("/assets/industries/healthcare/hero/btn-body.svg"),
    url("/assets/industries/healthcare/hero/btn-end.svg");
  -webkit-mask-position: left center, right center;
  -webkit-mask-size: calc(100% - 40px) 100%, 79.5px 100%;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-image: url("/assets/industries/healthcare/hero/btn-body.svg"),
    url("/assets/industries/healthcare/hero/btn-end.svg");
  mask-position: left center, right center;
  mask-size: calc(100% - 40px) 100%, 79.5px 100%;
  mask-repeat: no-repeat, no-repeat;
  transition: background-color var(--dur) var(--ease);
}

.hc-hero__cta:hover::before {
  background: var(--navy-30);
}

.hc-hero__cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.hc-hero__cta:active {
  transform: translateY(1px);
}

.hc-hero__cta-icon {
  flex: none;
  transition: transform var(--dur) var(--ease);
}

.hc-hero__cta:hover .hc-hero__cta-icon {
  transform: translateX(3px);
}

/* ---- Visual rechts: Consultation-Chat-Karte + Foto ---- */

.hc-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Chat-Karte (UI-Mock) — liegt in Figma HINTER dem Foto */

.hc-hero__card {
  position: absolute;
  top: 211.5px;
  left: 765.5px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 278.4px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 16px rgba(17, 36, 74, 0.12);
  font-family: var(--font-ui);
  font-size: 12.97px;
  line-height: 19.456px;
}

.hc-hero__chat-topic {
  display: flex;
  align-items: center;
  gap: 9.728px;
  height: 39.813px;
  padding: 0 11.349px;
  background: var(--navy-30);
  border: 0.811px solid var(--blue);
  border-radius: 7.583px;
}

.hc-hero__chat-icon {
  flex: none;
  width: 19.456px;
  height: 19.456px;
}

.hc-hero__chat-topic-label {
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.hc-hero__chat-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hc-hero__chat-question {
  font-weight: 400;
  color: var(--navy);
}

.hc-hero__chat-options {
  display: flex;
  flex-direction: column;
  gap: 9.479px;
}

.hc-hero__chat-option {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 37.917px;
  background: var(--navy-30);
  border-radius: 7.583px;
  box-shadow: 0 0.811px 1.621px rgba(5, 26, 48, 0.04);
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

/* Foto (Aerztin, horizontal gespiegelt vor-gebacken) — im Rahmen zugeschnitten */

.hc-hero__photo {
  position: absolute;
  top: 77.41px;
  left: 592.78px;
  z-index: 2;
  width: 700.455px;
  height: 552px;
  overflow: hidden;
  pointer-events: none;
}

.hc-hero__photo-img {
  position: absolute;
  top: -0.07%;
  left: -3.52%;
  width: 114.92%;
  height: 109.37%;
  max-width: none;
  object-fit: cover;
}

/* ---- Proportionale Skalierung der Buehne (Desktop/Tablet >1024) ---- */

@supports (transform: scale(tan(atan2(1px, 1px)))) {
  @media (min-width: 1025px) {
    .sec-healthcare-hero {
      --hc-scale: min(1, tan(atan2(100vw - 80px, 1360px)));
      height: calc(630px * var(--hc-scale));
    }

    .hc-hero__canvas {
      transform: scale(var(--hc-scale));
    }
  }
}

/* ---- Responsive: gestapeltes Layout <=1024 ---- */

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

  .hc-hero__canvas {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    height: auto;
    padding: 56px 40px 0;
    transform: none;
  }

  .hc-hero__content {
    position: static;
    width: 100%;
    max-width: 560px;
    transform: none;
  }

  .hc-hero__title {
    font-size: 36px;
    line-height: 46px;
  }

  .hc-hero__visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: 420px;
  }

  .hc-hero__photo {
    top: auto;
    bottom: 0;
    left: 50%;
    width: 533px;
    height: 420px;
    transform: translateX(-32%);
  }

  .hc-hero__card {
    top: 88px;
    left: 0;
  }
}

@media (max-width: 768px) {
  .hc-hero__canvas {
    gap: 24px;
    padding: 44px 28px 0;
  }

  .hc-hero__content {
    gap: 16px;
  }

  .hc-hero__lead {
    gap: 32px;
  }

  .hc-hero__title {
    font-size: 32px;
    line-height: 42px;
  }

  .hc-hero__visual {
    height: 372px;
  }

  .hc-hero__photo {
    width: 472px;
    height: 372px;
    transform: translateX(-36%);
  }

  .hc-hero__card {
    top: 76px;
    left: -4px;
    transform: scale(0.92);
    transform-origin: top left;
  }
}

@media (max-width: 480px) {
  .hc-hero__canvas {
    padding: 36px 20px 0;
  }

  .hc-hero__title {
    font-size: 28px;
    line-height: 36px;
  }

  .hc-hero__visual {
    height: 336px;
  }

  .hc-hero__photo {
    width: 426px;
    height: 336px;
    transform: translateX(-33%);
  }

  .hc-hero__card {
    top: 56px;
    left: -8px;
    transform: scale(0.85);
  }
}
