/* ==========================================================================
   KOBIL — Industry Financial Services — Sektion: Hero (Figma 16516:21296)
   Eigenstaendige helle Karte (1360x630): Eyebrow, H1 mit farbigem Akzent,
   Subline, Kerben-CTA "Contact sales" links; rechts Foto (Frau mit Karte +
   Phone) mit ueberlagerter Payment-Karte.
   Desktop: fixe 1360x630-Buehne, proportional auf die Kartenbreite skaliert.
   ========================================================================== */

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

/* Feiner Verlaufs-Rand (Figma "stroke"-Layer) */
.sec-financial-services-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  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 ---- */

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

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

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

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

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

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

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

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

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

.fs-hero__subline {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  color: var(--navy-80);
}

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

.fs-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;
}

.fs-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/financial-services/hero/btn-body.svg"),
    url("/assets/industries/financial-services/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/financial-services/hero/btn-body.svg"),
    url("/assets/industries/financial-services/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);
}

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

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

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

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

/* ---- Visual rechts: Payment-Karte + Foto ---- */

.fs-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Payment-Karte (UI-Mock) */

.fs-hero__payment {
  position: absolute;
  top: 242px;
  left: 685px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 13.75px;
  width: 287.37px;
  height: 173.652px;
  padding: 16.95px 18.39px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 6.35px 6.35px 5.6px rgba(0, 0, 0, 0.07);
  font-family: "Barlow", var(--font-ui), sans-serif;
}

.fs-hero__pay-group {
  display: flex;
  flex-direction: column;
  gap: 15.326px;
}

.fs-hero__pay-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-hero__pay-card {
  flex: none;
  width: 59.399px;
  height: 35.557px;
}

.fs-hero__pay-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fs-hero__pay-title {
  font-weight: 500;
  font-size: 12.261px;
  line-height: 18.392px;
  color: #232935;
}

.fs-hero__pay-balance {
  font-weight: 400;
  font-size: 10.728px;
  line-height: 15.326px;
  color: #747b86;
}

.fs-hero__pay-chevron {
  flex: none;
  color: #b9c1d1;
}

.fs-hero__pay-chevron--right {
  margin-left: auto;
}

.fs-hero__pay-total {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30.653px;
  padding: 0 9.19px;
  background: #f2f4f9;
  border-radius: 5.249px;
}

.fs-hero__pay-total-label {
  font-weight: 500;
  font-size: 13.794px;
  line-height: 21.457px;
  color: #232935;
}

.fs-hero__pay-total-value {
  margin-left: auto;
  font-weight: 500;
  font-size: 13.794px;
  line-height: 21.457px;
  color: #232935;
}

.fs-hero__pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36.784px;
  background: var(--blue);
  border-radius: 5.249px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12.294px;
  line-height: 18.392px;
  color: var(--white);
}

/* Foto (Frau) — im Rahmen zugeschnitten, blutet unten/rechts aus */

.fs-hero__photo {
  position: absolute;
  top: 85px;
  left: 742px;
  z-index: 2;
  width: 582px;
  height: 544px;
  overflow: hidden;
  pointer-events: none;
}

.fs-hero__photo-img {
  position: absolute;
  top: -0.05%;
  left: -13.53%;
  width: 125.07%;
  height: 99.98%;
  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-financial-services-hero {
      --fs-scale: min(1, tan(atan2(100vw - 80px, 1360px)));
      height: calc(630px * var(--fs-scale));
    }

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

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

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

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

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

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

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

  .fs-hero__photo {
    top: auto;
    bottom: 0;
    left: 50%;
    width: 449px;
    height: 420px;
    transform: translateX(-30%);
  }

  .fs-hero__payment {
    top: 96px;
    left: 0;
  }
}

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

  .fs-hero__content {
    gap: 16px;
  }

  .fs-hero__lead {
    gap: 32px;
  }

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

  .fs-hero__subline {
    font-size: 16px;
    line-height: 23px;
  }

  .fs-hero__visual {
    height: 372px;
  }

  .fs-hero__photo {
    width: 398px;
    height: 372px;
    transform: translateX(-34%);
  }

  .fs-hero__payment {
    top: 84px;
    left: -4px;
    transform: scale(0.92);
    transform-origin: top left;
  }
}

@media (max-width: 480px) {
  .sec-financial-services-hero {
    border-radius: var(--radius-sm);
  }

  .fs-hero__canvas {
    padding: 36px 20px 0;
  }

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

  .fs-hero__visual {
    height: 340px;
  }

  .fs-hero__photo {
    width: 340px;
    height: 318px;
    left: 50%;
    transform: translateX(-36%);
  }

  .fs-hero__payment {
    top: 68px;
    left: -8px;
    transform: scale(0.82);
  }
}
