/* ==========================================================================
   KOBIL — Industry Public Administration — Sektion: Hero (Figma 16516:22153)
   Eigenstaendige helle Karte (1360x630): Eyebrow, H1, Subline, Kerben-CTA
   "Contact sales" links; rechts Foto (Mann mit Smartphone) mit ueberlagerter
   "Public Parking Payment"-Karte (UI-Mock).
   Desktop: fixe 1360x630-Buehne, proportional auf die Kartenbreite skaliert.
   ========================================================================== */

/* Barlow Medium (Subset nur fuer die Karten-Texte, 2.7 KB) — die Seite laedt
   sonst nur Instrument Sans/Inter, der Fallback (Inter) laeuft sichtbar
   breiter als Barlow und verschiebt die Glyphen der UI-Mock-Karte */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/industries/public-administration/hero/barlow-card.woff2") format("woff2");
  unicode-range: U+20, U+44, U+52-53, U+56, U+59, U+61-65, U+68-69, U+6C-70, U+72-75, U+77, U+79;
}

.sec-public-administration-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-public-administration-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  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 ---- */

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

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

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

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

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

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

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

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

.pa-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) */

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

.pa-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/public-administration/hero/btn-body.svg"),
    url("/assets/industries/public-administration/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/public-administration/hero/btn-body.svg"),
    url("/assets/industries/public-administration/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);
}

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

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

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

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

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

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

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

/* "Public Parking Payment"-Karte (UI-Mock), liegt UNTER dem Foto */

.pa-hero__card {
  position: absolute;
  top: 201px;
  left: 732px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17.667px;
  width: 265px;
  height: 255px;
  padding: 21.2px;
  background: var(--white);
  border-radius: 14.133px;
  box-shadow: 2.438px 2.438px 5.83px rgba(0, 0, 0, 0.07);
}

.pa-hero__card-title {
  font-family: var(--font-ui);
  font-size: 12.367px;
  font-weight: 600;
  line-height: 15px;
  color: var(--navy);
  white-space: nowrap;
}

@supports (text-box: trim-both cap alphabetic) {
  .pa-hero__card-title {
    line-height: 35.333px;
    text-box: trim-both cap alphabetic;
  }
}

.pa-hero__card-badge {
  flex: none;
  width: 58.998px;
  height: 58.998px;
}

.pa-hero__card-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10.6px;
  width: 100%;
}

.pa-hero__card-msg {
  width: 100%;
  font-family: "Barlow", var(--font-ui), sans-serif;
  font-size: 10.6px;
  font-weight: 500;
  line-height: 16.323px;
  text-align: center;
  color: #232935;
}

.pa-hero__card-actions {
  display: flex;
  gap: 7.067px;
  width: 100%;
}

.pa-hero__card-chip {
  display: flex;
  flex: 1 0 0;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 3.533px;
  padding: 3.533px 7.067px 3.533px 5.3px;
  background: var(--navy-20);
  border-radius: 3.533px;
}

.pa-hero__chip-icon {
  flex: none;
  width: 12.242px;
  height: 12.242px;
  transform: rotate(180deg);
}

.pa-hero__chip-label {
  font-family: "Barlow", var(--font-ui), sans-serif;
  font-size: 10.6px;
  font-weight: 500;
  line-height: 19.044px;
  color: #232935;
  white-space: nowrap;
}

.pa-hero__card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8.162px 0;
  background: var(--blue);
  border-radius: 4.658px;
  font-family: "Barlow", var(--font-ui), sans-serif;
  font-size: 10.88px;
  font-weight: 500;
  line-height: 16.323px;
  text-align: center;
  color: var(--white);
}

/* Foto (Mann mit Smartphone) — freigestellt, liegt ueber der Karte */

.pa-hero__photo {
  position: absolute;
  top: 57px;
  left: 727.5px;
  z-index: 2;
  width: 610.943px;
  height: 572.415px;
  pointer-events: none;
}

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

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

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

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

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

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

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

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

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

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

  .pa-hero__card {
    top: 96px;
    left: 0;
  }
}

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

  .pa-hero__content {
    gap: 16px;
  }

  .pa-hero__lead {
    gap: 32px;
  }

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

  .pa-hero__visual {
    height: 420px;
  }

  .pa-hero__photo {
    width: 440px;
    transform: translateX(-34%);
  }

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

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

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

  .pa-hero__visual {
    height: 360px;
  }

  .pa-hero__photo {
    width: 360px;
    transform: translateX(-38%);
  }

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