/* Modul Projekte (übernommen aus Version 2, nur auf projekt.html eingebunden) */

/* Seitenleiste "Meine offenen Aufgaben" */
.seitenleiste-kopf {
  height: 66px;
  flex-shrink: 0;
}

.seitenleiste-karte {
  height: calc(100dvh - var(--app-header-height) - 64px);
}

@supports not (height: 100dvh) {
  .seitenleiste-karte {
    height: calc(100vh - var(--app-header-height) - 64px);
  }
}

/* Filter: ausgeklappte Filter dürfen die Liste nicht verdrängen */
.filter-suche {
  max-width: 220px;
}

@media (max-width: 991.98px) {
  #filterCollapse {
    max-height: 35dvh;
    overflow-y: auto;
  }
}

@media (max-width: 575.98px) {
  .filter-suche {
    max-width: none;
  }
}

/* Meldungen (ui.js) */
.app-meldungen .toast {
  width: 100%;
}

/* Ladebalken (ui.js) */
.app-ladebalken {
  position: fixed;
  top: var(--app-header-height, 0px);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1035;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.app-ladebalken::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background-color: #D6001C;
  animation: app-ladebalken 1.1s ease-in-out infinite;
}

[data-bs-theme="dark"] .app-ladebalken::before {
  background-color: #f2f2f2;
}

.app-ladebalken.aktiv {
  opacity: 1;
}

@keyframes app-ladebalken {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  .app-ladebalken::before {
    animation: none;
    width: 100%;
    opacity: .6;
  }
}

/* ⋮-Menü: Icon-Buttons mobil ins Menü (ui.js) */
@media (max-width: 767.98px) {
  .mobil-im-menue {
    display: none !important;
  }
}

/* Leere Listen (ui.js) */
.leer-zustand > .bi {
  font-size: 2.5rem;
  opacity: .5;
}
