/* ===== Aufgaben-Board ===== */
.task-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.task-column {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-alt);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-column-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.task-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 80px;
    transition: background 0.2s ease;
    border-radius: 12px;
}

.task-list.drag-over {
    background: rgba(15, 76, 129, 0.06);
    outline: 2px dashed var(--primary);
}

.task-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.task-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.task-card.is-dragging {
    opacity: 0.5;
    transform: scale(0.98);
    box-shadow: none;
}

.task-card-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.task-priority {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 5px;
}

.task-priority-low {
    background: #22c55e;
}

.task-priority-medium {
    background: #f59e0b;
}

.task-priority-high {
    background: #ef4444;
}

.task-title {
    flex: 1;
    word-break: break-word;
}

.task-actions {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
}

.task-actions button {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.task-actions button:hover {
    background: var(--surface-alt);
    color: var(--text-primary);
}

.task-description {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    word-break: break-word;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Team-Auswahl-Grid */
.TaskTeamGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.TaskTeamLink {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.TaskTeamLink:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.TaskTeamName {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.TaskTeamDepartment {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .task-board {
        grid-template-columns: 1fr;
    }
}