/*
 * Bohrcraft OXID 7.5.1: conservative UI overlay.
 * Mirrors the centered, light Stoeberkiste RS CookieManager dialog without
 * touching consent persistence, category IDs or RS module assets.
 * Loaded after existing Bohrcraft theme styles.
 */
#rs_cookie_manager_popup_shadow {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(20, 28, 39, .66) !important;
  backdrop-filter: none !important;
  z-index: 2147483000 !important;
}

#rs_cookie_manager_popup {
  box-sizing: border-box !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(640px, calc(100vw - 32px)) !important;
  max-width: 640px !important;
  max-height: calc(100dvh - 36px) !important;
  margin: 0 !important;
  padding: 26px 25px 18px !important;
  overflow: auto !important;
  border: 1px solid #dce3e8 !important;
  border-top: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.22) !important;
  z-index: 2147483001 !important;
  color: #42566a !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
#rs_cookie_manager_popup::before {
  display: none !important; /* remove oversized Bohrcraft logo above heading */
  content: none !important;
}
#rs_cookie_manager_popup h1,
#rs_cookie_manager_popup h2,
#rs_cookie_manager_popup h3,
#rs_cookie_manager_popup h4 {
  color: #315778 !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-weight: 500 !important;
}
#rs_cookie_manager_popup h1,
#rs_cookie_manager_popup h2 {
  margin: 0 0 20px !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
}
#rs_cookie_manager_popup p {
  color: #718191 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
#rs_cookie_manager_popup .bc-cookie-actionbar {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
}
#rs_cookie_manager_popup .bc-cookie-actionbar > * {
  min-width: 0 !important;
}
#rs_cookie_manager_popup [data-bc-cookie-action] {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  height: 100% !important;
  padding: 8px 10px !important;
  border: 1px solid #315f82 !important;
  border-radius: 4px !important;
  background: #315f82 !important;
  color: #fff !important;
  box-shadow: none !important;
  font: 500 12px/1.35 'Poppins', Arial, sans-serif !important;
  white-space: normal !important;
  text-align: center !important;
  text-decoration: none !important;
}
#rs_cookie_manager_popup [data-bc-cookie-action="necessary"] {
  background: #fff !important;
  color: #315f82 !important;
}
#rs_cookie_manager_popup [data-bc-cookie-action="all"] {
  background: #a00000 !important;
  border-color: #a00000 !important;
  color: #fff !important;
}
#rs_cookie_manager_popup [data-bc-cookie-action="necessary"]:hover,
#rs_cookie_manager_popup [data-bc-cookie-action="necessary"]:focus-visible {
  background: #ecf3f8 !important;
  color: #254a6a !important;
}
#rs_cookie_manager_popup [data-bc-cookie-action="selection"]:hover,
#rs_cookie_manager_popup [data-bc-cookie-action="selection"]:focus-visible {
  background: #214969 !important;
}
#rs_cookie_manager_popup [data-bc-cookie-action="all"]:hover,
#rs_cookie_manager_popup [data-bc-cookie-action="all"]:focus-visible {
  background: #830000 !important;
}
#rs_cookie_manager_popup [data-bc-cookie-action]:focus-visible {
  outline: 2px solid #365f87 !important;
  outline-offset: 3px !important;
}

/* Exact reopen button only. Removes the isolated pseudo/icon dot from
 * Stoeberkiste too, without interfering with the dialog or its real controls. */
[data-bc-cookie-reopen-clean]::before,
[data-bc-cookie-reopen-clean]::after,
[data-bc-cookie-reopen-clean] *::before,
[data-bc-cookie-reopen-clean] *::after,
[data-bc-cookie-reopen-clean] svg,
[data-bc-cookie-reopen-clean] img,
[data-bc-cookie-reopen-clean] i {
  display: none !important;
  content: none !important;
}

/* Desktop navigation: keep text and down-chevron on one line. Avoid hover
 * pseudo-element jumping underneath the label and keep active menu visible. */
@media (min-width: 768px) {
  #navigation > .nav-item.has-subs {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  #navigation > .nav-item.has-subs > a.nav-link-1 {
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    position: relative !important;
    height: 40px !important;
    padding-right: 31px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    line-height: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  #navigation > .nav-item.has-subs > a.nav-link-1::after {
    position: absolute !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 7px !important;
    height: 7px !important;
    right: 13px !important;
    top: 16px !important;
    margin: 0 !important;
    border: 0 !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    border-radius: 0 !important;
    content: "" !important;
    transform: rotate(45deg) !important;
    vertical-align: initial !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  #navigation > .nav-item.has-subs:hover > a.nav-link-1,
  #navigation > .nav-item.has-subs:focus-within > a.nav-link-1,
  #navigation > .nav-item.has-subs.is-open > a.nav-link-1 {
    color: #fff !important;
    background: rgba(255,255,255,.14) !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    text-decoration: none !important;
  }
}
@media (max-width: 767.98px) {
  #rs_cookie_manager_popup {
    width: calc(100vw - 20px) !important;
    padding: 20px 16px 16px !important;
    max-height: calc(100dvh - 20px) !important;
  }
  #rs_cookie_manager_popup .bc-cookie-actionbar {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}


/*
 * CMS left-edge correction for the three legacy-content pages. Old CMS grid
 * markup still contains Bootstrap negative .row margins. In combination with
 * clipping on parent CMS elements this hides the first character of each
 * line. Keep the original Bootstrap columns, cancel only the negative
 * horizontal row overhang and compensate column padding.
 *
 * Deliberately scoped with a route class from bohrcraft-ui-polish-20261023.js:
 * Karriere & Ausbildung, Anwendungstabellen & Empfehlungen, Videos.
 */
html.bc-cms-left-edge-fix body.cl-content article.cmsContent {
  overflow-x: visible !important;
  clip-path: none !important;
}
html.bc-cms-left-edge-fix body.cl-content article.cmsContent .row {
  --bs-gutter-x: 0px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html.bc-cms-left-edge-fix body.cl-content article.cmsContent .row > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 15px !important;
}
