/* ==========================================================================
   KOBIL — Company: Locations (Figma 16578:18711 "LOCATION", 1280x796)
   Zentrierter Titel (Tagline + H3 32/42), 4 Adress-Spalten (216px, Gap 80),
   Kerben-Button "Contact us", Globus-Foto unten (Export mit gebackenem
   Weiß-Verlauf) + geblurrte blaue Vektoren als WebP gebacken (Layer über
   dem Globus, wie im Figma). Mobile: M-Company 16578:18936 (345x872).
   ========================================================================== */

.sec-company-locations {
  position: relative;
  background: var(--white);
  overflow: clip;
}

/* ---- Hintergrund: Globus unten + blauer Glow-Layer darüber ---- */

.sec-company-locations__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Figma: x0 y47, 1283x749 im 1280er-Frame — unten bündig, zentriert,
   randlos über die volle Frame-Breite (kein weißer Seitenstreifen).
   In Flächen breiter als 1283px daher auf 100% mitwachsen lassen. */
.sec-company-locations__globe {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(100%, 1283px);
  max-width: none;
  height: auto;
}

/* Gebackene feGaussianBlur-Vektoren (Figma "blue", auf Frame 1280x796
   geclippt gerendert) — max. Alpha ~8%, daher verlustbehaftet skalierbar */
.sec-company-locations__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/company/locations/blue-glow.webp") center / 100% 100% no-repeat;
}

/* ---- Inhalt (Figma-Frame 1280 breit, zentriert in der 1360er-Fläche) ---- */

.sec-company-locations__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 40px 207px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Titel: Tagline + zentrierte H3 (845px-Spalte) ---- */

.sec-company-locations__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 845px;
  text-align: center;
}

/* Figma Tagline/desktop: 12px-Dot, Gap 10, #586680, Tracking 0.48 */
.sec-company-locations__eyebrow {
  gap: 10px;
  color: var(--navy-70);
  letter-spacing: 0.48px;
}

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

/* Header/Desktop/H3: 32/42 Bold */
.sec-company-locations__heading {
  font-family: var(--font-sans);
  font-size: 32px;
  line-height: 42px;
  font-weight: 700;
  color: var(--navy);
}

.sec-company-locations__heading-accent {
  color: var(--blue);
}

/* ---- Adressen: 4 Spalten à 216px, Gap 80 (Figma y306, 64 unter Titel) ---- */

.sec-company-locations__grid {
  display: grid;
  grid-template-columns: repeat(4, 216px);
  gap: 40px 80px;
  margin-top: 64px;
}

.sec-company-locations__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Title/Desktop/Title 3: 18/24 SemiBold */
.sec-company-locations__card-title {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--navy);
}

/* Body/Small: 14/20 Regular, Figma System/70% = #4D586E */
.sec-company-locations__card-addr {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #4d586e;
}

/* ---- CTA: Kerben-Button (Figma "Button Variant" 167x48, y541 —
   103 unter den Adressen; Form = zwei SVG-Masken wie Pre-Footer-CTA) ---- */

.sec-company-locations__cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin-top: 103px;
  padding: 8px 32px 8px 24px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--white);
  white-space: nowrap;
}

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

.sec-company-locations__cta:hover::before {
  background: #1e4fd6;
}

.sec-company-locations__cta-icon {
  transition: transform var(--dur) var(--ease);
}

.sec-company-locations__cta:hover .sec-company-locations__cta-icon {
  transform: translateX(3px);
}

/* ---- Tablet ---- */

@media (max-width: 1024px) {
  .sec-company-locations__inner {
    padding: 80px 32px 170px;
  }

  /* 2x2-Raster, Spaltenbreite bleibt 216 */
  .sec-company-locations__grid {
    grid-template-columns: repeat(2, 216px);
    gap: 40px 80px;
    margin-top: 56px;
  }

  .sec-company-locations__cta {
    margin-top: 72px;
  }
}

/* ---- Mobile (M-Company 16578:18936: 60/16/90-Padding, 1 Spalte) ---- */

@media (max-width: 768px) {
  .sec-company-locations__inner {
    padding: 60px 16px 90px;
  }

  .sec-company-locations__title {
    gap: 24px;
  }

  /* Tagline/mobile: 8px-Dot, Gap 8 */
  .sec-company-locations__eyebrow {
    gap: 8px;
  }

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

  /* Header/Mobile/H3: 26/32 Bold */
  .sec-company-locations__heading {
    font-size: 26px;
    line-height: 32px;
  }

  /* 2 Spalten à max. 216px, schrumpfen unter 512px Containerbreite */
  .sec-company-locations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 472px;
  }

  /* Title/Mobile/Title 3: 16/23 SemiBold */
  .sec-company-locations__card-title {
    font-size: 16px;
    line-height: 23px;
  }

  /* Button Small: 40 hoch, 14/18 (Figma-Maske: Körper -40, Ende 67) */
  .sec-company-locations__cta {
    height: 40px;
    margin-top: 56px;
    padding: 4px 20px 4px 16px;
    font-size: 14px;
    line-height: 18px;
  }

  .sec-company-locations__cta::before {
    -webkit-mask-size: calc(100% - 40px) 100%, 67px 100%;
    mask-size: calc(100% - 40px) 100%, 67px 100%;
  }
}

@media (max-width: 480px) {
  .sec-company-locations__grid {
    grid-template-columns: 100%;
    width: 100%;
    max-width: 313px;
  }

  /* Mobile-Export (345x266) füllt die volle Breite, unten bündig */
  .sec-company-locations__globe {
    left: 0;
    transform: none;
    width: 100%;
  }
}
