@charset "UTF-8";
:root {
  --cq-app-btn-color: #23272f;
  --cq-badge-bg: #f3f4fd;
  --cq-badge-color: #7879a2;
  --cq-list-hover: #f5f6ff;
}

/* =========================================================
   KANBAN-BOARD & KARTEN
   ========================================================= */
.kanban-board {
  display: grid;
  gap: 1.45rem;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 0;
  box-sizing: border-box;
}

.card-kanban {
  background: '#fff';
  border-radius: 1.08rem;
  box-shadow: var(--cq-card-shadow);
  border: 1px solid var(--cq-card-border);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, background 0.14s;
}

.card-kanban:hover {
  box-shadow: var(--cq-card-shadow-hover);
}

.card-kanban .card-header {
  background: var(--cq-header-bg);
  border: none;
  border-bottom: 1px solid var(--cq-card-border);
  border-radius: 1.08rem 1.08rem 0 0;
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--cq-header-color);
  padding: 0.92rem 1.23rem 0.87rem 1.23rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  cursor: pointer;
  user-select: none;
  touch-action: auto;
}

.card-kanban .card-header .rotate-icon {
  margin-right: 0.53rem;
  transition: transform 0.17s;
}

.card-kanban .card-header.collapsed .rotate-icon,
.card-kanban .card-header[aria-expanded="false"] .rotate-icon {
  transform: rotate(-90deg);
}

.card-kanban .badge {
  margin-left: 0.37rem;
  font-size: 0.93rem;
  font-weight: 500;
  background: var(--cq-badge-bg);
  color: var(--cq-badge-color);
  padding: 0.35em 0.8em;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.card-kanban .card-header .ti-x {
  font-size: 1.19em;
  opacity: 0.65;
  transition: opacity 0.13s;
}
.card-kanban .card-header .ti-x:hover {
  opacity: 1;
}

.card-kanban .card-body {
  padding: 1.1rem 1.32rem 1.12rem 1.32rem;
  max-height: 1800px;
  overflow: visible;
  background: transparent;
  border-radius: 0 0 1.08rem 1.08rem;
  box-sizing: border-box;
  transition: max-height 0.19s cubic-bezier(.4,0,.2,1), padding 0.16s;
}

.card-kanban .card-body.collapse:not(.show) {
  max-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.card-kanban .list-group-item {
  background: transparent;
  border: 0;
  color: var(--cq-header-color);
  font-size: 1.03rem;
  padding: 0.39rem 0.22rem 0.39rem 0.67rem;
  border-radius: 0.29rem;
  margin-bottom: 2px;
  transition: background 0.13s;
}

.card-kanban .list-group-item:hover {
  background: var(--cq-list-hover);
  color: #686cff;
}

.card-kanban .ti-file {
  color: #6489d0;
  opacity: 0.78;
  margin-right: 0.23em;
  font-size: 1.11em;
}

/* =========================================================
   FAVORITEN-KARTE (#card-favorites)
   ========================================================= */
#card-favorites .list-group {
  max-height: 45vh;
  overflow-y: auto;
}

#card-favorites .list-group .list-group-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: none;
}

/* Link-Spalte: Icon + Text */
#card-favorites .list-group .list-group-item > a {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.5rem;
  text-decoration: none;
  overflow: hidden;
}

/* Sternsymbol links */
#card-favorites .list-group .list-group-item > a > i {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
}

/* Text im Link */
#card-favorites .list-group .list-group-item > a > *:last-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Action-Buttons (rechts, vertikal gestapelt, nur bei Hover sichtbar) */
#card-favorites .list-group .list-group-item > div {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity .16s ease;
}

/* Sichtbar auf Hover oder Fokus */
#card-favorites .list-group .list-group-item:hover > div,
#card-favorites .list-group .list-group-item:focus-within > div {
  opacity: 1;
}

/* Einzelne Buttons */
#card-favorites .list-group .list-group-item > div .btn {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Optische Details */
#card-favorites .list-group-item-action.waves-effect:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
#card-favorites i.tabler-star {
  color: var(--bs-primary, #7367f0);
}
#card-favorites .btn-text-secondary i,
#card-favorites .btn-text-danger i {
  font-size: 1rem;
}

/* =========================================================
   APPS-BOXEN
   ========================================================= */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 1.1rem 1.05rem;
  margin-top: 0.72rem;
}
.app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 15px;
  background: var(--cq-bg-app);
  transition: box-shadow 0.16s, transform 0.14s, background 0.14s;
  min-height: 94px;
  min-width: 94px;
  font-size: 1.07rem;
  font-weight: 500;
  color: var(--cq-app-btn-color);
  box-shadow: 0 2px 8px 0 rgba(52,68,170,0.05);
  cursor: pointer;
  position: relative;
  z-index: 0;
}
.app-btn:hover, .app-btn:focus {
  background: #e3e6fa;
  color: var(--cq-app-btn-color);
  box-shadow: 0 5px 17px 0 rgba(80,120,200,0.16);
  transform: translateY(-2px) scale(1.035);
}
html[data-theme='dark'] .app-btn,
body.dark-mode .app-btn {
  background: var(--cq-bg-app,#282c42);
  color: #e5e6fb;
}
html[data-theme='dark'] .app-btn:hover,
body.dark-mode .app-btn:hover {
  background: #232745;
  color: #e5e6fb;
}
.app-btn i {
  margin-bottom: 0.21rem;
  font-size: 2.16rem;
}
.app-btn span {
  margin-top: 0.24rem;
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* =========================================================
   DRAG & DROP BOX
   ========================================================= */
.dragndrop-box {
  min-height: 220px;
  padding: 2.5rem 2rem;
  border: 2.5px dashed var(--vz-border, #d3dce6);
  border-radius: 1rem;
  color: var(--vz-dragndrop-text, #425079);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 rgba(52,68,170,0.04);
  user-select: none;
  touch-action: manipulation;
}

.dragndrop-box:hover,
.dragndrop-box:focus,
.dragndrop-box.dragover {
  background: var(--vz-bg-dragndrop-hover, #f0f5ff);
  border-color: var(--vz-primary, #7367f0);
  box-shadow: 0 0 0 4px rgba(115,103,240,0.06);
}

.dragndrop-content {
  width: 100%;
  text-align: center;
}

.dragndrop-box i {
  font-size: 2.7rem;
  color: var(--vz-primary, #7367f0) !important;
  margin-bottom: 1rem;
}

.dragndrop-box h5 {
  font-weight: 700;
  color: inherit;
  font-size: 1.09rem;
  margin-bottom: 0.6rem;
}

.dragndrop-box .btn-outline-primary {
  border-radius: 0.7rem;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.45rem 1.3rem;
}

.dragndrop-box .btn-outline-primary:active,
.dragndrop-box .btn-outline-primary:focus,
.dragndrop-box .btn-outline-primary:hover {
  background: var(--vz-primary, #7367f0);
  border-color: var(--vz-primary, #7367f0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 700px) {
  .kanban-board {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.16rem 0;
  }
  .card-kanban {
    max-width: 99vw;
    width: 100vw;
    border-radius: 1.1rem;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0.8rem;
  }
  .card-kanban .card-header {
    font-size: 1.01rem;
    padding: 0.6rem 0.68rem;
    min-height: 36px;
  }
  .card-kanban .card-body {
    padding: 0.65rem 0.63rem 0.61rem 0.63rem;
    max-height: 1400px;
  }
}
