﻿/* ========================================
   Tasks / Aufgaben Page
   angepasst an Portfolio / Objekte Design
   ======================================== */

.tasks-page {
    position: relative;
    padding-bottom: 48px;
}

.tasks-header {
    align-items: flex-start;
    gap: 16px;
}

.tasks-title {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--rr-text-strong);
    margin-bottom: 2px;
}

.obj-muted,
.pd-muted {
    color: var(--rr-text-secondary);
    line-height: 1.4;
}

.tasks-header-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tasks-chip {
    border-radius: var(--rr-radius-pill);
    font-weight: 700;
}

.tasks-state-card,
.tasks-empty-card,
.tasks-kanban-shell {
    border-radius: var(--rr-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: var(--rr-surface);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.tasks-state-card {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tasks-empty-card {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.78));
}

.tasks-empty-title {
    font-weight: 800;
    color: var(--rr-text-strong);
}

.tasks-empty-text {
    max-width: 520px;
    text-align: center;
}

.tasks-kanban-shell {
    padding: 14px;
}

/* ---------- Child component polish ---------- */

.tasks-page ::deep .pd-card,
.tasks-page ::deep .task-card,
.tasks-page ::deep .kanban-column,
.tasks-page ::deep .mud-paper {
    border-radius: var(--rr-radius-lg);
}

.tasks-page ::deep .mud-input-root {
    border-radius: var(--rr-radius-md);
}

.tasks-page ::deep .mud-button-root {
    text-transform: none;
    font-weight: 600;
}

.tasks-page ::deep .mud-chip-root {
    font-weight: 700;
}

@media (max-width: 960px) {
    .tasks-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tasks-header-stats {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .tasks-page {
        padding-bottom: 32px;
    }

    .tasks-kanban-shell {
        padding: 10px;
    }
}
