/* Kanban-Board CSS */

.kanban-task {
    cursor: grab;
    margin-bottom: 10px;
    border-radius: 0.25rem;
    padding: 12px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.kanban-task:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.kanban-task.dragging {
    opacity: 0.7;
    cursor: grabbing;
}

.kanban-task .task-title {
    cursor: pointer;
    display: inline-block;
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 8px;
    text-decoration: none;
}

.kanban-task .task-title:hover {
    text-decoration: underline;
}

.kanban-column.drag-over {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Verbesserte Klick-Bereiche */
.kanban-task a,
.kanban-task button {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* Verhindere Text-Selektion beim Ziehen */
.kanban-task {
    user-select: none;
}

/* Spezifische Stile für Task-Titel-Links */
.kanban-task .task-title {
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
    display: inline-block;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 3px;
}

.kanban-task .task-title:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
    color: var(--bs-primary);
}

/* Verbessere Drag-Bereich vs. Klick-Bereich */
.kanban-task {
    position: relative;
}

.kanban-task::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}
