body {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  transition: background 0.3s ease, background-image 0.3s ease;
}

/* Auto: System entscheidet */
@media (prefers-color-scheme: dark) {
  body {
    background-image: url("/assets/img/bgInvert4k.png");
  }
}

@media (prefers-color-scheme: light) {
  body {
    background-image: url("/assets/img/bg.png");
  }
}

@media (prefers-reduced-motion: reduce) {

  html,
  body {
    transition: none !important;
  }
}

/* Manuelle Auswahl überschreibt das System */
html[data-coreui-theme="dark"] body {
  background-image: url("/assets/img/bgInvert4k.png") !important;
}

html[data-coreui-theme="light"] body {
  background-image: url("/assets/img/bg.png") !important;
}

.bg-jongen {
  background-color: #0075bf !important;
  color: #fff !important;
}

.bg-impersonation {
  background-color: #800000 !important;
}

.card-header-custom-collapse[aria-expanded="false"] {
  border-bottom-left-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
}

.card-header-custom-collapse>.show {
  border-bottom-left-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
  padding-bottom: 6px !important;
}

.fa-placeholder,
.fa-placeholder::placeholder {
  font-family: Arial, FontAwesome;
}

/* Allows external visible dropdown in cards */
.hasInnerDropdown,
.hasInnerDropdown .card-header,
.hasInnerDropdown .table-responsive {
  overflow: visible !important;
}

.hasInnerDropdown .dropdown-menu {
  position: absolute !important;
  z-index: 9999 !important;
}

/* Remove Space between Table Bottom and Card Bottom */
.card .table {
  margin-bottom: 0 !important;
}

.card .table-responsive {
  padding: 0 !important;
  overflow: visible !important;
}

.table-sm-button {
  margin-top: -0.8em;
  margin-bottom: -0.6em;
  text-decoration: none;
}

 /* Ausblenden per Klasse */
  .is-hidden { display: none !important; }

  
/* Wenn Suche aktiv, Trenner im Offcanvas verstecken */
  #offcanvasMenu.search-active hr {
    display: none !important;
  }

