/* includes/custom.css */

/* Kopfbereich */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1040;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    width: 120px;
    height: auto;
}

.header-user img {
    max-height: 50px;
    width: auto;
}

.header-title {
    flex-grow: 1;
    text-align: center;
}

.header-title h1 {
    color: white;
    font-size: 2rem;
    margin: 0;
}

/* Navigation */
nav.navbar.fixed-menu {
    position: fixed;
    top: 150px;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

nav.navbar.fixed-menu .container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

body {
    padding-top: 200px;
}

/* Main Content Bereich */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #fff;
    min-height: 400px;
}

/* Footer */
.footer-wrapper {
    width: 100%;
    color: #000;
    padding: 0.67rem 1rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.67rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.footer-content > div {
    flex: 1 1 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .header-title {
        flex: 1;
        text-align: center;
    }

    .footer-content > div {
        flex: 1;
    }
}

/* Vorschau-Icon in den Eingabefeldern */
.icon-preview {
  width: 1.5rem;
  display: inline-block;
  text-align: center;
}

/* Einrückung für Sub-Items im Menü */
.indent td:first-child + td {
  padding-left: 2rem;
}

/* Drag-Handle: Cursor ändern */
tbody tr.drag-handle {
  cursor: move;
}

/* Kleinere Anpassung: Icon-Inputs links binden */
.input-group .icon-input {
  flex: 1 1 auto;
}

/* Zeilen beim Hover hervorheben */
#menu-root tr:hover {
  background-color: #f8f9fa;
}

/* Unterpunkte initial verstecken */
[class^="child-of-"] {
  display: none;
}

/* Verhindert Zeilenumbruch in allen Zellen */
#menu-root td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flex-Container nicht umbrechen */
#menu-root td > .d-flex,
#menu-root td input.form-control {
  min-width: 0;
  flex-wrap: nowrap;
}

/* Responsive-Anpassung für Mobilgeräte */
@media (max-width: 576px) {
  #menu-root td {
    font-size: 0.85rem;
  }
  #menu-root .btn-sm {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
  }
}

/* Anpassungen für Admin Menü zweispaltig */

/* Hauptmenüpunkte hellgrau hinterlegen */
.menu-list > .menu-item {
  background-color: #f8f9fa;
}

/* Hover-Effekt für Menüeinträge */
.menu-item:hover {
  background-color: #e9ecef;
  color: #000;
}

/* Hover-Effekt für Untermenüeinträge */
.submenu .menu-item:hover {
  background-color: #f1f3f5;
  color: #000;
}
.menu-item:hover {
  background-color: #e9ecef;
  color: #000;
}

/* Untermenüpunkte eingerückt und transparent */
.submenu {
  padding-left: 1.5rem;
  list-style: none;
}
.submenu .menu-item {
  background-color: transparent;
}

/* Rahmen entfernen */
.menu-list .list-group-item {
  border: none;
}

/* Aktiven Eintrag hervorheben */
.menu-item.active {
  background-color: #adb5bd;
  color: #000;
}
.invisible-entry {
    opacity: 0.5;
    /* oder andere Style, um unsichtbare Einträge kenntlich zu machen */
}

/* custom.css - Admin Menü Styles (scoped) */

/* Container für die Admin-Baumansicht */
#adminMenuList.admin-menu-list {
  list-style: none;
  padding-left: 0;
}

/* Einzelne Listeneinträge */
.admin-menu-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  margin-bottom: -1px;
  background-color: #fff;
}

/* Geziegelter Eintrag beim Hover */
.admin-menu-item:hover {
  background-color: #f1f5f9;
}

/* Ausgegraute Darstellung unsichtbarer Einträge */
.invisible-entry {
  opacity: 0.5;
}

/* Toggle-Button (Chevron) */
.toggle-btn {
  width: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.toggle-btn i {
  font-size: 0.9rem;
}

/* Sub-Listen: eingerückt */
.admin-submenu {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0;
}

/* Drag-Handle Cursor */
.drag-handle {
  cursor: move;
}

/* Linke Spalte scrollbar, falls sehr lang */
.admin-menu-list {
  max-height: 70vh;
  overflow-y: auto;
}

/* Detail-Form Elemente */
#detailForm .form-label {
  font-weight: 500;
}

#detailForm .row.g-3 > .col {
  display: flex;
  flex-direction: column;
}

/* Abbrechen-Button optisch absetzen */
#cancelBtn {
  background-color: #6c757d;
  border-color: #6c757d;
}

/* Verhindert Umbrüche in Drop-downs und sorgt für automatische Breite */
.dropdown-menu {
  min-width: max-content;   /* Nimmt so viel Breite ein wie nötig */
}

.dropdown-menu .dropdown-item {
  white-space: nowrap;      /* Kein Zeilenumbruch in den Einträgen */
}

/* Zwei-Spalten-Layout im Admin */
.main-content .row > [class*="col-"] {
  margin-bottom: 1rem;
}

/* Liste links */
.list-group-item .btn-group { font-size: 0.85rem; }

/* Dual-List */
.form-select.assigned, .form-select.available {
  height: 200px;
  user-select: none;
}

/* Verhindert Umbrüche in Dropdowns */
.dropdown-menu { min-width: max-content; }
.dropdown-menu .dropdown-item { white-space: nowrap; }

/* Default-Farbe der Tabs beibehalten */
.nav-tabs .nav-link {
  transition: background-color .2s, color .2s;
}

/* Hover-Effekt: Hintergrund und Textfarbe */
.nav-tabs .nav-link:hover {
  background-color: #ffff;  /* Bootstrap “danger”-Rot */
  color: #dc3545;
border-color: #bd2130 #bd2130 #fff;	
}

/* Active-Tab styling */
.nav-tabs .nav-link.active {
  background-color: #ffffff;  /* etwas dunkleres Rot */
  color: #c82333;
  border-color: #bd2130 #bd2130 #fff; /* obere Ränder rot, unten Weiß (um nahtlos zur Pane zu schließen) */
}



  .dual-list {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  /* beide Spalten gleich breit */
  .dual-list > div:not(.dual-btns) {
    flex: 1;
  }
  /* Buttons-Spalte nur so breit wie nötig und mittig ausrichten */
  .dual-list .dual-btns {
    flex: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;     /* <-- wieder mittig! */
    gap: .5rem;
  }
  /* select füllt seinen Container */
  .dual-list select {
    width: 100%;
  }

/* Optional: die Ränder beim Hover angleichen */
.nav-tabs .nav-link:hover {
  border-color: #dc3545 #dc3545 #fff;
}
.transfer-buttons .btn {
  font-size: 0.9rem;
  line-height: 1;
}

.dual-list {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
/* beide Spalten gleich breit */
.dual-list > div:not(.dual-btns) {
  flex: 1;
}
/* Buttons-Spalte nur so breit wie ihr Inhalt */
.dual-list .dual-btns {
  flex: 0;
}
/* select füllt den Container aus */
.dual-list select {
  width: 100%;
}

/* Profil-Avatar einheitlich */
.avatar-lg{
  width:128px;
  height:128px;
  border-radius:50%;
  object-fit:cover;
  background:#eee;
}