.site-header {
  position: sticky;
  top: 0;
  z-index: var(--bh-z-header);
  background: color-mix(in srgb, var(--bh-color-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bh-color-border);
  transition: box-shadow var(--bh-transition);
}

.site-header.is-scrolled {
  box-shadow: var(--bh-shadow-sm);
}

.bh-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--bh-header-h);
}

.bh-header__cta {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  margin-right: 100px;
  min-width: 0;
}

/* “Jetzt Termin buchen” — same shortcode as live site */
.jetzt-bewerben-btn,
.jetzt-bewerben-btn.jbs-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bh-color-brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  min-height: 2.75rem;
  font-family: var(--bh-font-sans);
  font-size: var(--bh-fs-sm);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background var(--bh-transition);
}

.jetzt-bewerben-btn:hover,
.jetzt-bewerben-btn:focus,
.jetzt-bewerben-btn:focus-visible,
.jetzt-bewerben-btn:visited {
  background-color: var(--bh-color-brand-hover);
  color: #fff;
}

.bh-branding {
  flex: 0 0 auto;
}

.bh-branding a {
  display: block;
  text-decoration: none;
}

.bh-branding .logo {
  width: auto;
  height: clamp(2.5rem, 6vw, 3.25rem);
}

.bh-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
  flex: 0 0 auto;
}

.bh-header__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  color: var(--bh-color-brand);
  text-decoration: none;
  border-radius: var(--bh-radius-sm);
  transition: background var(--bh-transition), color var(--bh-transition);
}

.bh-header__action:hover {
  background: rgba(227, 30, 36, 0.08);
  color: var(--bh-color-brand-hover);
}

.bh-header__action img,
.bh-header__action svg {
  width: 1.35rem;
  height: 1.35rem;
}

.bh-header__action span {
  font-size: var(--bh-fs-sm);
  font-weight: 500;
  font-family: var(--bh-font-sans);
  color: var(--bh-color-title);
}

.bh-header__search {
  min-width: 0;
  flex: 0 0 auto;
}

.bh-header__search .dgwt-wcas-search-wrapp,
.bh-header__search .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon {
  max-width: none;
  width: auto;
  margin: 0;
}
.bh-header__search.search {
  width: 70px;
}

.bh-header__search .dgwt-wcas-search-icon {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  color: var(--bh-color-brand);
  border-radius: var(--bh-radius-sm);
  text-decoration: none;
  transition: background var(--bh-transition), color var(--bh-transition);
}

.bh-header__search .dgwt-wcas-search-icon:hover {
  background: rgba(227, 30, 36, 0.08);
}

.bh-header__search .dgwt-wcas-search-icon::after {
  content: "Suche";
  font-family: var(--bh-font-sans);
  font-size: var(--bh-fs-sm);
  font-weight: 500;
  line-height: 1.2;
  color: var(--bh-color-title);
}

.bh-header__search .dgwt-wcas-search-icon:hover::after {
  color: var(--bh-color-brand-hover);
}

.bh-header__search .dgwt-wcas-ico-magnifier-handler,
.bh-header__search .dgwt-wcas-search-icon img {
  width: 1.35rem;
  height: 1.35rem;
}

.bh-header__search .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
  border-radius: 999px;
  border-color: var(--bh-color-border-strong);
  min-height: 2.5rem;
}

.bh-menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--bh-radius);
  background: transparent;
  color: var(--bh-color-brand);
  cursor: pointer;
}

.bh-menu-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.35rem;
  margin: 0 auto;
}

.bh-menu-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--bh-transition), opacity var(--bh-transition);
}

.bh-menu-toggle[aria-expanded="true"] .bh-menu-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bh-menu-toggle[aria-expanded="true"] .bh-menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.bh-menu-toggle[aria-expanded="true"] .bh-menu-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.bh-header__nav {
  border-top: 1px solid var(--bh-color-border);
}

.bh-header__nav-inner {
  min-height: var(--bh-header-nav-h);
  display: flex;
  align-items: center;
}

#fibosearch-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

#fibosearch-loader.show {
  display: flex;
}

#fibosearch-loader img {
  width: min(12rem, 50vw);
  animation: bh-pulse 1.2s ease-in-out infinite;
}

@keyframes bh-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1100px) {
  .bh-header__action span,
  .bh-header__search .dgwt-wcas-search-icon::after {
    display: none;
  }

  .bh-header__cta {
    margin-right: 1.5rem;
  }
}

@media (max-width: 900px) {
  .bh-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bh-header__search {
    display: none;
  }

  .bh-header__nav {
    display: none;
  }

  .bh-header__cta {
    display: none;
  }
}
