/* Shared CTA polish: buttons are rounded while content cards retain their original shape. */
button,
input[type="button"],
input[type="submit"],
.seo-button,
.seo-button-quiet,
a.inline-flex[class*="rounded-"],
a.font-display.font-bold[class*="rounded-"] {
    border-radius: 9999px !important;
}

/* Shared transparent navigation for all site pages. */
header.fixed {
    top: 0.875rem !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: top .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease !important;
}
/* Once the hero is left behind, keep the navigation clearly readable. */
header.fixed.is-scrolled {
    top: 0 !important;
    border-bottom: 1px solid rgb(255 255 255 / .1) !important;
    background: rgb(5 10 22 / .97) !important;
    box-shadow: 0 12px 32px rgb(0 0 0 / .28) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
}
header.fixed img[alt="S.E.C. Sicherheitsdienst"] {
    filter: brightness(0) invert(1) !important;
}
header.fixed nav a,
header.fixed nav button,
header.fixed > div > div > a:not([href^="tel:"]),
header.fixed > div > div > button {
    color: #fff !important;
}
header.fixed nav a:hover,
header.fixed nav button:hover,
header.fixed > div > div > a:not([href^="tel:"]):hover {
    color: #e9bd66 !important;
}
/* Dropdown and mobile submenu text remains black. */
header.fixed nav > .relative > div.absolute,
header.fixed nav > .relative > div.absolute a,
header.fixed nav > .relative > div.absolute button,
header.fixed nav > .relative > div.absolute span,
[data-sec-mobile-menu] a:not([href^="tel:"]),
[data-sec-mobile-menu] button,
[data-sec-mobile-menu] span {
  color: #111111 !important;
}

/* The complete Einsatzgebiete submenu, including active and hover states, uses black text. */
[data-sec-city-menu],
[data-sec-city-menu] a,
[data-sec-city-menu] button,
[data-sec-city-menu] p,
[data-sec-city-menu] span,
[data-sec-city-menu] svg {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

/* Keep the three hero metrics in one row at every viewport width. */
main > section:first-child .grid.grid-cols-3.gap-4 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
}

main > section:first-child .grid.grid-cols-3.gap-4 > div {
  min-width: 0;
  justify-content: center;
}

@media (max-width: 767px) {
  /* Align the mobile logo and menu button on one compact header row. */
  header[data-local-hero-nav="true"].fixed {
    top: 0 !important;
  }

  header[data-local-hero-nav="true"].fixed > div {
    padding-inline: 1rem !important;
  }

  header[data-local-hero-nav="true"].fixed > div > div {
    height: 4.5rem !important;
    align-items: center !important;
  }

  header[data-local-hero-nav="true"].fixed img[alt="S.E.C. Sicherheitsdienst"] {
    width: auto !important;
    max-width: min(58vw, 13rem);
    height: 2.75rem !important;
    object-fit: contain;
    object-position: left center;
  }

  header[data-local-hero-nav="true"].fixed button.lg\:hidden {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
  }

  header[data-local-hero-nav="true"].fixed a[aria-label="S.E.C. Sicherheitsdienst"],
  header[data-local-hero-nav="true"].fixed button.lg\:hidden {
    transform: translateY(.55rem);
  }

  /* Use the portrait asset without a sideways crop or a shifted focal point. */
  main > section:first-child picture,
  main > section:first-child picture img {
    width: 100%;
    height: 100%;
  }

  main > section:first-child picture img {
    object-fit: cover !important;
    object-position: 50% 35% !important;
  }

  main > section:first-child:has([data-local-hero-title="true"]) {
    min-height: 100svh;
  }

  main > section:first-child:has([data-local-hero-title="true"]) > .relative.z-10 {
    padding-top: 6.75rem !important;
    padding-bottom: 3.25rem !important;
  }

  main > section:first-child .grid.grid-cols-3.gap-4 {
    gap: .4rem !important;
  }

  main > section:first-child .grid.grid-cols-3.gap-4 > div {
    padding: .7rem .25rem !important;
  }

  main > section:first-child .grid.grid-cols-3.gap-4 > div > span:first-child {
    font-size: clamp(1rem, 5vw, 1.35rem) !important;
    line-height: 1.05;
    white-space: nowrap;
  }

  main > section:first-child .grid.grid-cols-3.gap-4 > div > span:last-child {
    font-size: clamp(.57rem, 2.45vw, .7rem) !important;
    line-height: 1.25;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

/* Editorial "Warum S.E.C." layout inspired by the supplied reference. */
.sec-why {
  --why-navy: #071a32;
  --why-blue-1: #0b2f5e;
  --why-blue-2: #124c91;
  --why-blue-3: #1f6fd1;
  position: relative;
  padding: clamp(4.75rem, 8vw, 7rem) 1.25rem !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 5%, rgb(31 111 209 / .12), transparent 23rem),
    linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%) !important;
}

.sec-why::before {
  position: absolute;
  inset: 0;
  opacity: .46;
  background-image:
    linear-gradient(rgb(11 47 94 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(11 47 94 / .035) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  content: "";
}

.sec-why > div {
  position: relative;
  width: min(76rem, 100%);
  padding-inline: 0 !important;
}

.sec-why > div > div:first-child {
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem) !important;
}

.sec-why > div > div:first-child > p {
  margin-bottom: .9rem !important;
  color: var(--why-blue-3) !important;
}

.sec-why > div > div:first-child > h2 {
  max-width: 62rem;
  margin-inline: auto;
  color: var(--why-navy) !important;
  font-size: clamp(2.4rem, 5vw, 4.6rem) !important;
  line-height: .98;
  text-transform: none !important;
  text-wrap: balance;
}

.sec-why > div > div:first-child > h2 span {
  color: var(--why-blue-3);
  background: linear-gradient(100deg, #0b2f5e 0%, #1f6fd1 65%, #57a0f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-why > div > div:first-child > .gold-line {
  width: 5rem !important;
  margin-top: 1.4rem !important;
  background: linear-gradient(90deg, transparent, var(--why-blue-3), transparent);
}

.sec-why-grid {
  display: grid !important;
  grid-template-columns: minmax(0, .72fr) minmax(30rem, 1.28fr) !important;
  grid-template-rows: repeat(3, minmax(9.25rem, auto));
  gap: .9rem clamp(2.5rem, 5vw, 5rem) !important;
  align-items: stretch;
}

.sec-why-grid > div {
  min-width: 0;
  margin: 0;
}

.sec-why-grid > div:first-child {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: flex !important;
  padding: 1rem 0 !important;
  justify-content: center;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sec-why-grid > div:first-child > div:first-child {
  width: 3.75rem !important;
  height: 3.75rem !important;
  border: 1px solid rgb(31 111 209 / .28);
  background: linear-gradient(145deg, var(--why-blue-3), var(--why-blue-1)) !important;
  box-shadow: 0 14px 30px rgb(31 111 209 / .2);
}

.sec-why-grid > div:first-child h3 {
  max-width: 27rem;
  margin-top: .65rem;
  color: var(--why-navy) !important;
  font-size: clamp(2rem, 3.4vw, 3.15rem) !important;
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: none !important;
  text-wrap: balance;
}

.sec-why-grid > div:first-child p {
  max-width: 27rem;
  color: #46566c !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

.sec-why-grid > div:first-child::after {
  display: block;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(11 47 94 / .14);
  color: var(--why-blue-3);
  background: linear-gradient(100deg, #0b2f5e, #1f6fd1 60%, #57a0f4);
  -webkit-background-clip: text;
  background-clip: text;
  content: "Sicher.";
  font: 800 clamp(3.6rem, 7vw, 6.4rem)/.8 "Barlow Condensed", sans-serif;
  letter-spacing: -.055em;
  -webkit-text-fill-color: transparent;
}

.sec-why-grid > div:nth-child(n + 2) {
  position: relative;
  grid-column: 2;
  display: grid !important;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: .35rem 1.25rem !important;
  align-content: center;
  padding: 1.35rem 4.5rem 1.35rem 1.4rem !important;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .17) !important;
  border-radius: 1.35rem !important;
  color: #fff;
  box-shadow: 0 18px 38px rgb(7 26 50 / .16);
  transition: transform .25s ease, box-shadow .25s ease;
}

.sec-why-grid > div:nth-child(2) {
  background:
    radial-gradient(circle at 98% 120%, transparent 0 3rem, rgb(255 255 255 / .1) 3.05rem 4rem, transparent 4.05rem),
    linear-gradient(110deg, #0b2f5e 0%, #124c91 100%) !important;
}

.sec-why-grid > div:nth-child(3) {
  background:
    radial-gradient(circle at 98% 120%, transparent 0 3rem, rgb(255 255 255 / .1) 3.05rem 4rem, transparent 4.05rem),
    linear-gradient(110deg, #124c91 0%, #1b60b4 100%) !important;
}

.sec-why-grid > div:nth-child(4) {
  background:
    radial-gradient(circle at 98% 120%, transparent 0 3rem, rgb(255 255 255 / .1) 3.05rem 4rem, transparent 4.05rem),
    linear-gradient(110deg, #1b60b4 0%, #2f7fe0 100%) !important;
}

.sec-why-grid > div:nth-child(n + 2):hover {
  box-shadow: 0 24px 46px rgb(7 26 50 / .23);
  transform: translateX(.3rem);
}

.sec-why-grid > div:nth-child(n + 2) > div:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 3.6rem !important;
  height: 3.6rem !important;
  align-self: center;
  border: 1px solid rgb(255 255 255 / .35);
  background: rgb(255 255 255 / .1) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12);
}

.sec-why-grid > div:nth-child(n + 2) h3 {
  grid-column: 2;
  margin: 0;
  color: #fff !important;
  font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-transform: none !important;
}

.sec-why-grid > div:nth-child(n + 2) p {
  grid-column: 2;
  margin: 0;
  color: rgb(255 255 255 / .8) !important;
  font-size: .86rem !important;
  line-height: 1.5 !important;
}

.sec-why-grid > div:nth-child(n + 2)::after {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: rgb(255 255 255 / .64);
  font: 800 .72rem/1 "DM Sans", sans-serif;
}

.sec-why-grid > div:nth-child(2)::after { content: "01"; }
.sec-why-grid > div:nth-child(3)::after { content: "02"; }
.sec-why-grid > div:nth-child(4)::after { content: "03"; }

@media (max-width: 900px) {
  .sec-why-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
    gap: .9rem !important;
  }

  .sec-why-grid > div:first-child,
  .sec-why-grid > div:nth-child(n + 2) {
    grid-column: 1;
    grid-row: auto;
  }

  .sec-why-grid > div:first-child {
    min-height: 25rem;
    padding: 0 0 2rem !important;
  }
}

@media (max-width: 600px) {
  .sec-why {
    padding: 4rem 1rem !important;
  }

  .sec-why > div > div:first-child {
    margin-bottom: 2.5rem !important;
    text-align: left;
  }

  .sec-why > div > div:first-child > h2 {
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  .sec-why > div > div:first-child > .gold-line {
    margin-left: 0 !important;
  }

  .sec-why-grid > div:first-child {
    min-height: 21rem;
  }

  .sec-why-grid > div:first-child h3 {
    font-size: clamp(1.75rem, 9vw, 2.35rem) !important;
  }

  .sec-why-grid > div:first-child::after {
    font-size: clamp(3.5rem, 21vw, 5.4rem);
  }

  .sec-why-grid > div:nth-child(n + 2) {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: .35rem .9rem !important;
    padding: 1.1rem 3rem 1.1rem 1rem !important;
    border-radius: 1.1rem !important;
  }

  .sec-why-grid > div:nth-child(n + 2) > div:first-child {
    width: 3rem !important;
    height: 3rem !important;
  }

  .sec-why-grid > div:nth-child(n + 2) h3 {
    font-size: 1.05rem !important;
  }

  .sec-why-grid > div:nth-child(n + 2) p {
    font-size: .8rem !important;
    line-height: 1.42 !important;
  }
}
