/* FOLLMANN-BRIDGE-DESIGN-V8-SSR: deterministic server-rendered header, hero & banner */
:root {
  --fb-navy: #24458c;
  --fb-deep-blue: #162b60;
  --fb-beige: #c7a082;
  --fb-brand-text: #162330;
  --fb-font: Lato, 'Segoe UI', Arial, Helvetica, sans-serif;
}

.fb-header {
  position: relative;
  isolation: isolate;
  z-index: 100;
  width: 100%;
  font-family: var(--fb-font);
  color: var(--fb-brand-text);
  background: #fff;
  box-shadow: 0 1px 10px rgba(15, 25, 42, 0.06);
}

.fb-header *,
.fb-header *::before,
.fb-header *::after {
  box-sizing: border-box;
}

.fb-header .fb-phonebar {
  min-height: 39px;
  background: var(--fb-navy);
  color: #fff;
}

.fb-header .fb-phonebar-inner {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fb-header .fb-phonebar a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.4;
}

.fb-header .fb-phonebar a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fb-header .fb-phonebar a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.fb-header .fb-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
}

.fb-header .fb-logobar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 19px;
  background: #fff;
}

.fb-header .fb-brand {
  display: block;
  width: min(100%, 440px);
  aspect-ratio: 1440 / 481;
  text-decoration: none;
  line-height: 0;
}

.fb-header .fb-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fb-header .fb-nav {
  background: var(--fb-beige);
  color: #fff;
}

.fb-header .fb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100% - 24px, 1250px);
  min-height: 56px;
  margin-inline: auto;
}

.fb-header .fb-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.5vw, 28px);
  margin: 0;
  padding: 5px 0;
  list-style: none;
}

.fb-header .fb-nav-links > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fb-header .fb-nav-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 7px 5px;
  font-family: var(--fb-font);
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: border-color 0.16s ease;
}

.fb-header .fb-nav-links a:hover,
.fb-header .fb-nav-links a[aria-current="page"] {
  border-bottom-color: #fff;
}

.fb-header .fb-nav-links a:focus-visible,
.fb-header .fb-nav-toggle:focus-visible {
  outline: 3px solid var(--fb-deep-blue);
  outline-offset: 3px;
}

.fb-header .fb-nav-toggle {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  min-height: 48px;
  color: #fff;
  background: transparent;
  border: 0;
  font: 700 15px/1.3 var(--fb-font);
  cursor: pointer;
}

.fb-header .fb-nav-toggle-icon {
  display: block;
  font-size: 21px;
  line-height: 1;
}

/* Photo Hero (/, /ueber-uns, /dienstleistungen, /referenzen, /kontakt) */
#page-sub-header.fb-hero,
.fb-hero {
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(390px, 36vw, 540px);
  background-color: #243b55;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.fb-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: rgba(18, 52, 122, 0.88) !important;
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%) !important;
}

.fb-hero::after {
  display: none !important;
}

.fb-hero .fb-hero-content {
  position: relative;
  z-index: 1;
  display: flex !important;
  min-height: inherit;
  align-items: center;
  padding: clamp(44px, 5vw, 88px) max(24px, calc((100% - 1120px) / 2)) !important;
}

#page-sub-header.fb-hero h1,
.fb-hero .fb-hero-title {
  width: min(520px, 44vw);
  max-width: 520px;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: 0 2px 8px rgba(8, 18, 38, 0.28);
  font: 700 clamp(30px, 3.1vw, 48px)/1.2 var(--fb-font) !important;
  letter-spacing: -0.02em !important;
  overflow-wrap: break-word;
}

/* Compact Page Banner (/maschinenangebote, /en/machine-offers, /impressum, /datenschutzerklaerung) */
#page-sub-header.fb-page-banner,
.fb-page-banner {
  box-sizing: border-box !important;
  margin: 0 !important;
  background: linear-gradient(105deg, #162b60 0%, #24458c 100%);
  color: #fff;
  border-bottom: 4px solid var(--fb-beige);
  padding: clamp(28px, 3.4vw, 42px) 0 !important;
  min-height: 0 !important;
}

.fb-page-banner-inner {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

#page-sub-header.fb-page-banner h1,
.fb-page-banner-title {
  margin: 0 !important;
  color: #fff !important;
  font: 700 clamp(28px, 2.9vw, 40px)/1.18 var(--fb-font) !important;
  letter-spacing: -0.02em !important;
}

#page-sub-header .fb-page-banner-sub,
.fb-page-banner-sub {
  margin: 8px 0 0 !important;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92) !important;
  font: 400 clamp(15px, 1.15vw, 17px)/1.5 var(--fb-font) !important;
}

@media (max-width: 960px) {
  .fb-hero::before {
    clip-path: polygon(0 0, 68% 0, 50% 100%, 0 100%) !important;
  }

  #page-sub-header.fb-hero h1,
  .fb-hero .fb-hero-title {
    width: min(480px, 56vw);
    max-width: 480px;
  }
}

@media (max-width: 760px) {
  .fb-header .fb-phonebar-inner {
    width: calc(100% - 28px);
  }

  .fb-header .fb-phonebar a {
    font-size: 13px;
  }

  .fb-header .fb-logobar {
    padding: 14px 18px;
  }

  .fb-header .fb-brand {
    width: min(100%, 310px);
  }

  .fb-header .fb-nav {
    position: relative;
  }

  .fb-header .fb-nav-inner {
    display: block;
    width: calc(100% - 24px);
    min-height: 49px;
  }

  .fb-header .fb-nav-toggle {
    display: flex;
  }

  .fb-header.fb-js .fb-nav-links {
    display: none;
  }

  .fb-header.fb-js .fb-nav.fb-menu-open .fb-nav-links {
    display: flex;
    position: absolute;
    z-index: 200;
    left: 0;
    right: 0;
    top: 100%;
    max-height: min(70dvh, 540px);
    overflow-y: auto;
    margin: 0;
    padding: 8px 12px 14px;
    background: var(--fb-beige);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
  }

  .fb-header .fb-nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 12px;
  }

  .fb-header .fb-nav-links a {
    justify-content: flex-start;
    width: 100%;
    padding: 10px 14px;
    min-height: 46px;
    font-size: 15px;
    border-bottom: 0;
  }

  .fb-header .fb-nav-links a[aria-current="page"] {
    border-left: 3px solid var(--fb-navy);
    background: rgba(255, 255, 255, 0.14);
  }

  #page-sub-header.fb-hero,
  .fb-hero {
    min-height: clamp(320px, 78vw, 430px);
    background-position: 54% center !important;
  }

  .fb-hero::before {
    clip-path: none !important;
    background: linear-gradient(95deg, rgba(17, 45, 108, 0.9) 0%, rgba(18, 52, 122, 0.72) 60%, rgba(18, 52, 122, 0.32) 100%) !important;
  }

  .fb-hero .fb-hero-content {
    padding: 36px 20px !important;
  }

  #page-sub-header.fb-hero h1,
  .fb-hero .fb-hero-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(27px, 6.8vw, 38px) !important;
  }

  .fb-page-banner-inner {
    width: calc(100% - 28px);
  }
}

@media (max-width: 390px) {
  .fb-header .fb-brand {
    width: min(100%, 275px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb-header *,
  .fb-header *::before,
  .fb-header *::after {
    transition: none !important;
    animation: none !important;
  }
}
