/* Schweizer Baupraxis KI: verbindlicher globaler Header, Version 1.3.99m */
:root{
  --sbp-header-height:76px;
  --sbp-header-pad-x:28px;
  --sbp-header-logo-height:25px;
}
header.sbp-global-header,
.sbp-global-header,
.team-topbar.sbp-global-header,
.chat-brandbar.sbp-global-header{
  position:relative!important;
  height:var(--sbp-header-height)!important;
  min-height:var(--sbp-header-height)!important;
  width:100%!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  padding:0 var(--sbp-header-pad-x)!important;
  margin:0!important;
  background:#fff;
}
header.sbp-global-header>.wrap,
header.sbp-global-header>.head,
.sbp-global-header>.wrap,
.sbp-global-header>.head{
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
}
.sbp-global-header .sbp-global-brand,
.sbp-global-header .sbp-brand-lockup,
.sbp-global-header a.brand,
.sbp-global-header a:has(>img.logo),
.sbp-global-header a:has(>img.sbp-unified-logo),
.sbp-global-header a:has(>img.sbp-public-logo){
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  text-decoration:none!important;
}
.sbp-global-header img.sbp-global-logo,
.sbp-global-header .sbp-brand-lockup img,
.sbp-global-header img.login-brand-logo,
.sbp-global-header img.sbp-language-logo,
.sbp-global-header img.sbp-public-logo,
.sbp-global-header img.sbp-unified-logo,
.sbp-global-header img.logo,
.sbp-global-header img.brand-logo{
  display:block!important;
  height:auto!important;
  width:auto!important;
  max-width:220px!important;
  max-height:38px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:left center!important;
  flex:0 0 auto!important;
}
/* Alte zusätzliche Wortmarken/Plus-Zeichen neben dem echten Logo nie parallel anzeigen. */
.sbp-global-header .sbp-brand-lockup>.sbp-brand-ki,
.sbp-global-header .sbp-language-logo-host~.plus,
.sbp-global-header>.plus{display:none!important}

/* Login: exakt eine sichtbare Sprachauswahl. */
body.sbp-login-page #sbp-localization-switch,
body.sbp-login-page #sbp-public-language,
body.sbp-login-page .sbp-public-language,
body.sbp-login-page #language-picker,
body.sbp-login-page .language-picker,
body.sbp-login-page .sbp-language-picker,
body.sbp-login-page select[aria-label="Language"]{display:none!important}
body.sbp-login-page #loginLanguagePicker{
  display:block!important;
  position:relative!important;
  z-index:10000!important;
  margin:0!important;
}

/* Falls eine Seite ohne eigene Topbar geladen wird, wird diese von unified-header.js ergänzt. */
body.sbp-has-injected-header{padding-top:0!important}
.sbp-injected-header{border-bottom:1px solid #e4e4e4!important}

@media(max-width:700px){
  :root{--sbp-header-height:62px;--sbp-header-pad-x:14px;--sbp-header-logo-height:32px}
}

/* 1.3.99n: Sprachwahl ist ohne Dropdown-Pfeil. */
.sbp-global-header .language-picker-chevron,
.sbp-global-header .chev,
body.sbp-login-page #loginLanguageBtn > span:last-child:not(.label):not(.flag){display:none!important}
