* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), #a78bfa);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6d28d9, var(--accent));
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

:root {
    --bg: hsl(240 5% 96%);
    --card-bg: hsl(0 0% 100%);
    --text: hsl(240 10% 8%);
    --text-secondary: hsl(240 5% 46%);
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-light: rgba(124, 58, 237, 0.1);
    --border: hsl(240 6% 85%);
    --border-strong: hsl(240 6% 78%);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
    --todo: #06b6d4;
    --doing: #7c3aed;
    --done: #10b981;
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --glow-color: rgba(124, 58, 237, 0.15);
    --glow-color-strong: rgba(124, 58, 237, 0.25);
    --sidebar-bg: #1a1625;
    --sidebar-border: rgba(255, 255, 255, 0.08);
}

/* Dark Mode */
:root.dark {
    --bg: hsl(240 10% 6%);
    --card-bg: hsl(240 8% 10%);
    --text: hsl(0 0% 95%);
    --text-secondary: hsl(240 5% 55%);
    --accent: #7c3aed;
    --accent-hover: #a78bfa;
    --accent-light: rgba(124, 58, 237, 0.15);
    --border: hsl(240 6% 20%);
    --border-strong: hsl(240 6% 28%);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
    --todo: #22d3ee;
    --doing: #a78bfa;
    --done: #34d399;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --glow-color: rgba(124, 58, 237, 0.2);
    --glow-color-strong: rgba(124, 58, 237, 0.35);
    --sidebar-bg: #0c0a14;
    --sidebar-border: rgba(255, 255, 255, 0.06);
}

:root.dark .sidebar {
    background: var(--sidebar-bg);
    border-right-color: var(--sidebar-border);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

:root.dark .kpi-card-large {
    background: var(--gradient-primary);
}

:root.dark .kanban-column[data-status="todo"] {
    background: rgba(6, 182, 212, 0.08);
}

:root.dark .kanban-column[data-status="doing"] {
    background: rgba(124, 58, 237, 0.08);
}

:root.dark .kanban-column[data-status="done"] {
    background: rgba(16, 185, 129, 0.08);
}

:root.dark .modal-content {
    background: hsl(240 8% 12%);
    border: 1px solid hsl(240 6% 20%);
}

:root.dark .modal-task-name {
    background: var(--accent-light);
}

body {
    font-family: "Outfit", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Layout mit Sidebar */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    padding: 0;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    transition: width 0.3s ease;
    z-index: 100;
}

.main-wrapper {
    margin-left: 240px;
    transition: margin-left 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px 12px;
    margin-bottom: 0;
    border-bottom: none;
    position: relative;
}

.sidebar-divider {
    margin: 0 16px 12px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.sidebar-toggle-wrap {
    padding: 12px 12px;
    margin-top: 8px;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-toggle svg {
    transition: transform 0.3s ease;
}

/* Collapsed Sidebar */
.sidebar.collapsed {
    width: 72px;
}

.sidebar.collapsed .sidebar-header {
    padding: 16px 8px 12px;
}

.sidebar.collapsed .logo-img {
    width: 36px;
}

.sidebar.collapsed .sidebar-nav {
    padding: 0 8px;
}

.sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-text {
    display: none;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 10px;
}

.sidebar.collapsed .sidebar-section {
    display: none;
}

.sidebar.collapsed .sidebar-divider {
    margin: 0 8px 12px;
}

.sidebar.collapsed .sidebar-toggle-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 8px;
}

.app-layout.sidebar-collapsed .main-wrapper {
    margin-left: 72px;
}

.sidebar .logo-img {
    width: 96px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sidebar .logo:hover .logo-img {
    transform: scale(1.05);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.sidebar-icon {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}

.sidebar-text {
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-link.active {
    background: rgba(124, 58, 237, 0.15);
    color: #ffffff;
    font-weight: 600;
    border-left: 2px solid var(--accent);
}

.sidebar-link.active .sidebar-icon {
    color: var(--accent);
}

.sidebar-section {
    margin-top: 28px;
}

.sidebar-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.25);
    padding: 8px 12px;
    margin-bottom: 4px;
}

.sidebar-dropdown {
    margin-bottom: 2px;
}

.sidebar-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.sidebar-dropdown summary::-webkit-details-marker {
    display: none;
}

.sidebar-dropdown summary::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
    transform: rotate(-45deg);
    margin-right: 10px;
    transition: transform 0.2s ease;
}

.sidebar-dropdown[open] summary::before {
    transform: rotate(45deg);
}

.sidebar-dropdown summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-projects {
    list-style: none;
    padding-left: 20px;
    margin-top: 4px;
}

.sidebar-project {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.sidebar-project:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-project.active {
    background: rgba(124, 58, 237, 0.15);
    color: #ffffff;
    font-weight: 500;
}

.main-wrapper {
    flex: 1;
    min-width: 0;
}

main {
    max-width: 100%;
    margin: 0;
    padding: 48px 56px;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.mobile-menu-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-logo img {
    height: 40px;
    width: auto;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
}

@media (max-width: 900px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        left: -240px;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.open {
        pointer-events: auto;
    }

    .main-wrapper {
        margin-left: 0;
        padding-top: 60px;
    }

    main {
        padding: 32px 20px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    color: var(--text);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.breadcrumb {
    margin-bottom: 8px;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Filter & Create Bars */
.filter-bar,
.create-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(124, 58, 237, 0.02) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.filter-bar::before,
.create-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

@media (max-width: 700px) {
    .filter-bar,
    .create-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="month"],
.filter-group input[type="datetime-local"] {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    min-width: 160px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.filter-btn {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
}

.filter-btn:active {
    transform: scale(0.97) translateY(-1px);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

/* KPIs */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .kpi-row {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 70%);
    pointer-events: none;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-color);
    border-color: rgba(124, 58, 237, 0.3);
}

.kpi-value {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.kpi-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    color: var(--text);
}

/* Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px var(--glow-color);
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.3);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-client {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.card-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 16px;
}

.card-time {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.card-progress-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.progress-bar {
    margin-top: 12px;
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.empty-state {
    color: var(--text-secondary);
    text-align: center;
    padding: 48px;
    font-size: 15px;
}

/* Kanban */
.kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    min-height: 400px;
}

@media (max-width: 1200px) {
    .kanban {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .kanban {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    min-height: 300px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid transparent;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.kanban-column::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--card-bg) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kanban-column:hover::after {
    opacity: 0.5;
}

/* Spalten-Farben - weiß mit farbigem Border-Top */
.kanban-column[data-status="todo"] {
    background: var(--card-bg);
    border-top-color: var(--todo);
}

.kanban-column[data-status="doing"] {
    background: var(--card-bg);
    border-top-color: var(--doing);
}

.kanban-column[data-status="done"] {
    background: var(--card-bg);
    border-top-color: var(--done);
}

.kanban-column.drag-over {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.kanban-column[data-status="todo"].drag-over {
    background: rgba(6, 182, 212, 0.15);
}

.kanban-column[data-status="doing"].drag-over {
    background: rgba(124, 58, 237, 0.15);
}

.kanban-column[data-status="done"].drag-over {
    background: rgba(16, 185, 129, 0.08);
}

.kanban-column h2 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.kanban-column[data-status="todo"] h2 {
    color: var(--todo);
}

.kanban-column[data-status="doing"] h2 {
    color: var(--doing);
}

.kanban-column[data-status="done"] h2 {
    color: var(--done);
}

.task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    padding: 14px 16px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Task-Items mit farbigem Status-Rahmen */
.kanban-column[data-status="todo"] .task-item {
    border-color: var(--todo);
}

.kanban-column[data-status="doing"] .task-item {
    border-color: var(--accent);
}

.kanban-column[data-status="done"] .task-item {
    border-color: var(--done);
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--border-strong);
}

.task-item:active {
    cursor: grabbing;
}

.task-item.dragging {
    opacity: 0.4;
    transform: scale(0.98);
    background: var(--accent-light);
}

.task-item.done {
    opacity: 0.7;
}

.task-item.done .task-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

/* Task Card Header: Status-Badge + Assignees */
.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* Status Badge */
.task-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.task-status-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Task Title */
.task-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.task-title .task-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.task-title .task-image {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Project Info (Subline) */
.task-project-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: -4px;
}

/* Task Meta: Dates + Priority */
.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.task-dates {
    color: var(--text-secondary);
}

.task-priority {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.task-priority.low {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.task-priority.high {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

.task-priority.urgent {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Task Footer: Progress + Checklist */
.task-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

/* Task Assignees */
.task-assignees {
    display: flex;
    gap: -4px;
}

.task-assignees .member-avatar.tiny {
    width: 24px;
    height: 24px;
    font-size: 10px;
    margin-left: -6px;
    border: 2px solid var(--card-bg);
}

.task-assignees .member-avatar.tiny:first-child {
    margin-left: 0;
}

/* Checklist Progress */
.task-checklist-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.task-checklist-progress .checklist-icon {
    color: var(--done);
}

/* Budget Mini Bar */
.task-budget-mini {
    flex: 1;
    min-width: 120px;
}

.task-budget-mini-bar {
    height: 4px;
    background: var(--bg);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.task-budget-mini-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.task-budget-mini-fill.warning {
    background: #f59e0b;
}

.task-budget-mini-fill.over {
    background: #ef4444;
}

.task-budget-mini-text {
    font-size: 11px;
    color: var(--text-secondary);
}

.drop-indicator {
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 4px 0;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.empty-column {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 24px;
}

/* Zeiterfassung - Kompakt Tabelle */
.time-entries-compact {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.time-entries-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #a78bfa, var(--done));
}

.time-entries-compact table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.time-entries-compact th {
    text-align: left;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    background: linear-gradient(to bottom, var(--bg), var(--card-bg));
}

/* Feste Spaltenbreiten für symmetrisches Layout */
.time-entries-compact th:nth-child(1) { width: 90px; }  /* Datum */
.time-entries-compact th:nth-child(2) { width: 14%; }   /* Aufgabe */
.time-entries-compact th:nth-child(3) { width: 110px; } /* Zeit */
.time-entries-compact th:nth-child(4) { width: 60px; }  /* Dauer */
.time-entries-compact th:nth-child(5) { width: 110px; } /* Art */
.time-entries-compact th:nth-child(6) { width: 150px; } /* Status */
.time-entries-compact th:nth-child(7) { width: auto; }  /* Notiz */
.time-entries-compact th:nth-child(8) { width: 70px; }  /* Actions */

.time-entries-compact td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.time-entries-compact tr:last-child td {
    border-bottom: none;
}

.time-entries-compact tbody tr {
    transition: all 0.2s ease;
}

.time-entries-compact tbody tr:hover {
    background: linear-gradient(90deg, var(--accent-light), transparent);
}

.te-date {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}

.te-task {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.te-time {
    color: var(--text-secondary);
    white-space: nowrap;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
}

.te-duration {
    font-weight: 700;
    font-size: 14px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.te-note {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

/* Leere Notiz Platzhalter */
.te-note:empty::after {
    content: "—";
    color: var(--border);
}

td.te-status {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

td.te-status span {
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
}

span.te-status-billable {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
    color: var(--accent);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

span.te-status-billed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--done);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

span.te-status-not_billable {
    background: linear-gradient(135deg, rgba(134, 134, 139, 0.15), rgba(134, 134, 139, 0.05));
    color: var(--text-secondary);
    border: 1px solid rgba(134, 134, 139, 0.2);
}

.te-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.time-entries-compact tbody tr:hover .te-actions {
    opacity: 1;
}

.entry-btn-sm {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: transparent;
    color: var(--text-secondary);
}

.entry-btn-sm:hover {
    background: var(--accent);
    color: white;
}

.entry-btn-sm.delete:hover {
    background: #ff453a;
    color: white;
}

@media (max-width: 700px) {
    .time-entries-compact {
        overflow-x: auto;
    }

    .te-actions {
        opacity: 1;
    }
}

/* Task klickbar & draggable */
.task-clickable {
    cursor: grab;
    user-select: none;
}

.task-clickable:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.task-clickable:active {
    cursor: grabbing;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    margin: 20px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(124, 58, 237, 0.1);
    overflow: hidden;
    border: 1px solid var(--border);
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-content::before {
    display: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text);
}

.modal-content form {
    padding: 24px 28px 28px;
}

.modal-task-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
    padding: 14px 18px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: var(--radius-sm);
}

.modal-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-row .modal-field {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.modal-field {
    margin-bottom: 16px;
}

.modal-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-field input:focus,
.modal-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.modal-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.modal-btn-cancel {
    padding: 12px 24px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-btn-cancel:hover {
    background: var(--card-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.modal-btn-submit {
    padding: 12px 24px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.modal-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
}

.modal-btn-submit:hover::before {
    left: 100%;
}

/* Dashboard Filters */
.dashboard-filters {
    margin-bottom: 32px;
}

.dashboard-filters .filter-bar.compact {
    margin-bottom: 0;
    padding: 16px 20px;
}

/* Dashboard 2-Column Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 280px 1fr;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-right {
    min-width: 0;
}

/* KPI Stack (Left Column) */
.kpi-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kpi-card-large {
    background: var(--gradient-primary);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.25);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card-large::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

.kpi-card-large::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.kpi-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 56px rgba(124, 58, 237, 0.35);
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(10%, 10%) scale(1.1); opacity: 1; }
}

.kpi-card-large .kpi-value-large {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: block;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kpi-card-large .kpi-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Section Labels */
.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Quick Add Section */
.quick-add-section {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(124, 58, 237, 0.03) 100%);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quick-add-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.quick-add-section:hover {
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.15);
}

.quick-add-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-add-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.quick-add-form input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quick-add-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.quick-add-form .filter-btn {
    margin-top: 4px;
}

.filter-btn.small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Team Section */
.team-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #10b981);
    opacity: 0.7;
}

.team-section:hover {
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.08);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--card-bg);
}

.member-avatar:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.member-avatar.small {
    width: 24px;
    height: 24px;
    font-size: 10px;
    margin-left: -6px;
}

.member-avatar.small:first-child {
    margin-left: 0;
}

.member-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.project-members {
    display: flex;
    margin-top: 8px;
}

/* Project Team Header */
.project-team {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}

/* Task Assignees */
.task-assignees {
    display: flex;
    gap: 2px;
    margin-top: 10px;
}

.member-avatar.tiny {
    width: 20px;
    height: 20px;
    font-size: 8px;
    margin-left: -4px;
}

.member-avatar.tiny:first-child {
    margin-left: 0;
}

/* Project Members Section */
.project-members-section {
    margin-top: 2.5rem;
}

.members-management {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}

.current-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.member-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border-radius: 980px;
    padding: 6px 12px 6px 6px;
    font-size: 13px;
}

.member-chip-name {
    font-weight: 500;
    color: var(--text);
}

.member-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.member-remove:hover {
    color: #ff453a;
    background: rgba(255, 69, 58, 0.1);
}

.add-member-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-member-form select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    min-width: 200px;
}

.add-member-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Activity Sections (Dashboard Left) */
.activity-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--done));
    opacity: 0.7;
}

.activity-section:hover {
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
}

.activity-section .section-label {
    margin-bottom: 16px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 0 -12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: height 0.25s ease;
}

.activity-item:hover {
    background: linear-gradient(90deg, var(--accent-light), transparent);
    padding-left: 16px;
}

.activity-item:hover::before {
    height: 60%;
}

.activity-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-indicator.doing {
    background: var(--doing);
}

.activity-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-checklist {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.activity-assignees {
    display: flex;
    flex-shrink: 0;
}

.activity-hours {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

/* Team Avatars Row */
.team-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Settings Page */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

@media (max-width: 500px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.settings-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.settings-tab:hover {
    color: var(--accent);
    background: var(--accent-light);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.settings-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
    background: var(--accent-light);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.settings-content {
    max-width: 100%;
}

/* Standard-Breite für normale Tabs */
.settings-card {
    max-width: 600px;
}

/* Volle Breite für Kunden, Projekte, Archiv Tabs */
#tab-kunden .settings-card,
#tab-projekte .settings-card,
#tab-archiv .settings-card {
    max-width: 100%;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    position: relative;
    overflow: hidden;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
}

.add-btn:hover::before {
    opacity: 1;
}

/* Client List in Settings */
.client-list-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Volle Breite Settings Card für Kunden */
.settings-card-wide {
    max-width: 100%;
}

/* Alphabet Filter */
.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.alphabet-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.alphabet-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.alphabet-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.alphabet-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Dreispaltiges Grid für Kunden */
.client-grid-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Card Header Actions */
.card-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Restore Button für archivierte Projekte */
.restore-btn {
    padding: 6px 10px;
    font-size: 14px;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.restore-btn:hover {
    background: var(--accent);
    color: white;
}

.archived-project-item {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1200px) {
    .client-grid-three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .client-grid-three-col {
        grid-template-columns: 1fr;
    }

    .alphabet-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

.client-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s ease;
}

.client-list-item:hover {
    background: var(--border);
}

.client-list-item .client-logo-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.client-list-item .client-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.client-list-item .client-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.client-list-item .client-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.client-list-item .client-name {
    font-weight: 600;
    font-size: 15px;
}

.client-list-item .client-industry {
    font-size: 13px;
    color: var(--text-secondary);
}

.client-list-item .client-arrow {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* Template Management */
.template-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.template-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.template-header:hover {
    background: var(--border);
}

.template-name {
    font-weight: 600;
    flex: 1;
}

.template-header .btn-edit-small {
    opacity: 0;
    margin-right: 12px;
    font-size: 16px;
    transition: opacity 0.15s ease;
}

.template-header:hover .btn-edit-small {
    opacity: 1;
}

.template-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-right: 8px;
}

.template-expand {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.template-details.open + .template-header .template-expand,
.template-details.open ~ .template-header .template-expand {
    transform: rotate(180deg);
}

.template-details {
    display: none;
    padding: 0 16px 16px;
}

.template-details.open {
    display: block;
}

.template-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.template-task {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.template-task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-task-title {
    font-weight: 500;
}

.delete-btn-small {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.delete-btn-small:hover {
    background: #ff3b30;
    color: white;
}

.template-checklist {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
}

.template-checklist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    font-size: 14px;
    color: var(--text-secondary);
    border-left: 2px solid var(--border);
    margin-left: 8px;
}

.delete-btn-tiny {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.template-checklist li:hover .delete-btn-tiny {
    opacity: 1;
}

.delete-btn-tiny:hover {
    background: #ff3b30;
    color: white;
}

.template-add-task,
.template-add-checklist {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.template-add-task input,
.template-add-checklist input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text);
}

.template-add-task input:focus,
.template-add-checklist input:focus {
    outline: none;
    border-color: var(--accent);
}

.template-add-task button,
.template-add-checklist button {
    padding: 8px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.template-add-checklist {
    margin-left: 8px;
}

.template-add-checklist input {
    font-size: 13px;
    padding: 6px 10px;
}

.template-add-checklist button {
    padding: 6px 10px;
    font-size: 13px;
}

.template-actions {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.btn-danger-small {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #ff3b30;
    color: #ff3b30;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-danger-small:hover {
    background: #ff3b30;
    color: white;
}

/* Radio Options for Template Choice */
.template-choice {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
}

.radio-option:hover {
    background: var(--border);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.radio-option span {
    font-size: 14px;
}

.radio-option small {
    color: var(--text-secondary);
    font-weight: normal;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.settings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.settings-card:hover {
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.settings-card:hover::before {
    transform: scaleX(1);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-field input {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
    background: var(--card-bg);
}

.settings-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.subsection-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.team-list-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-member-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-email {
    font-size: 13px;
    color: var(--text-secondary);
}

/* File Input */
.file-input {
    padding: 10px 14px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.file-input:hover {
    border-color: var(--accent);
}

.file-input::file-selector-button {
    padding: 6px 12px;
    margin-right: 12px;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* Settings Select */
.settings-form select {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    width: 100%;
    cursor: pointer;
}

.settings-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Existing Items List */
.existing-items {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.existing-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.item-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
}

.item-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #5856d6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Settings Row */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.setting-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.setting-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9e9eb;
    border-radius: 31px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

:root.dark .toggle-slider {
    background-color: #39393d;
}

/* Export Page */
.export-container {
    max-width: 700px;
}

.export-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.export-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .export-filters {
        grid-template-columns: 1fr;
    }
}

.export-form select,
.export-form input[type="date"] {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.export-form select:focus,
.export-form input[type="date"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.export-actions {
    display: flex;
    justify-content: flex-end;
}

.export-btn {
    padding: 12px 28px;
    font-size: 15px;
}

.export-preview {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.preview-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.preview-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-col {
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

/* Project List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(124, 58, 237, 0.02) 100%);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.project-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-row:hover {
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.3);
}

.project-row:hover::before {
    opacity: 1;
}

.project-logo-wrap {
    flex-shrink: 0;
}

.project-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg);
}

.project-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #5856d6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 180px;
}

.project-client {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.project-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.project-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.progress-bar-large {
    height: 10px;
    background: var(--bg);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

.progress-fill-colored {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #a78bfa 50%, var(--done) 100%);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.progress-fill-colored::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.progress-percent {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.progress-tasks {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.project-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
}

.time-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.time-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 950px) {
    .project-row {
        flex-wrap: wrap;
    }

    .project-info {
        min-width: 140px;
        flex: 1;
    }

    .project-progress {
        flex-basis: 100%;
        order: 3;
    }

    .project-time {
        min-width: auto;
    }
}

@media (max-width: 700px) {
    .project-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .project-info {
        min-width: unset;
    }

    .project-time {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: unset;
    }
}

/* Task Checklist Progress auf Kanban-Card */
.task-checklist-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.checklist-icon {
    font-size: 11px;
}

.checklist-count {
    font-weight: 500;
}

/* Modal Large */
.modal-large {
    max-width: 560px;
}

/* Modal Wide (Task-Detail: Breitformat) */
.modal-wide {
    max-width: 860px;
}

.modal-wide .modal-body {
    padding: 24px 28px;
}

.task-modal-columns {
    display: flex;
    gap: 28px;
    min-height: 0;
}

.task-modal-left {
    flex: 0 0 320px;
    min-width: 0;
}

.task-modal-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.task-modal-right .checklist-section {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.checklist-scroll {
    max-height: 340px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 4px;
}

.checklist-scroll::-webkit-scrollbar {
    width: 4px;
}

.checklist-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.checklist-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.checklist-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.modal-wide .task-details-section {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-wide .task-details-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .modal-wide {
        max-width: 100%;
    }

    .task-modal-columns {
        flex-direction: column;
        gap: 20px;
    }

    .task-modal-left {
        flex: none;
    }

    .checklist-scroll {
        max-height: 250px;
    }

    .task-detail-actions {
        flex-wrap: wrap;
    }

    .task-actions-right {
        flex-wrap: wrap;
    }
}

.modal-body {
    padding: 28px;
}

/* Checklist Section */
.checklist-section {
    margin-bottom: 24px;
}

.checklist-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.checklist-item:hover {
    background: rgba(124, 58, 237, 0.06);
}

.checklist-item.completed {
    opacity: 0.6;
}

.checklist-item.completed .checklist-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.checklist-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--accent);
}

.checklist-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.checklist-assignees {
    display: flex;
    align-items: center;
    gap: 4px;
}

.checklist-assignees .member-avatar.tiny {
    cursor: pointer;
    transition: transform 0.15s ease;
}

.checklist-assignees .member-avatar.tiny:hover {
    transform: scale(1.1);
}

.checklist-assign-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px dashed var(--text-secondary);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.checklist-assign-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(124, 58, 237, 0.08);
}

.checklist-delete-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checklist-item:hover .checklist-delete-btn {
    opacity: 1;
}

.checklist-delete-btn:hover {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
}

/* Checklist Add Form */
.checklist-add {
    display: flex;
    gap: 10px;
}

.checklist-add input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checklist-add input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Assignee Dropdown */
.assignee-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    z-index: 100;
    min-width: 180px;
    overflow: hidden;
}

.assignee-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.assignee-option:hover {
    background: var(--bg);
}

/* Task Detail Actions */
/* Task Title Edit Section */
.task-title-section {
    margin-bottom: 20px;
}

.task-title-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.task-title-edit {
    display: flex;
    gap: 8px;
}

.task-title-input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
}

.task-title-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.btn-save-title {
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-save-title:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Task Icon Button */
.task-icon-btn {
    width: 44px;
    height: 44px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.task-icon-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.task-icon-btn.has-icon {
    border-style: solid;
    border-color: var(--accent);
}

.task-icon-btn span {
    line-height: 1;
}

/* Task Icon in Lists */
.task-icon {
    margin-right: 6px;
    font-size: 1em;
}

/* Icon Picker Modal */
.modal-small .modal-content {
    max-width: 400px;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.icon-picker-item {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.icon-picker-item:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: scale(1.1);
}

.icon-picker-item.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 2px var(--accent);
}

.btn-remove-icon {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-remove-icon:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Icon/Image Tabs */
.icon-picker-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.icon-tab {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.icon-tab:hover {
    border-color: var(--accent);
    color: var(--text);
}

.icon-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Image Upload */
.image-upload-area {
    margin-bottom: 16px;
}

.image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.image-upload-placeholder:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.upload-icon {
    font-size: 32px;
}

.upload-hint {
    font-size: 12px;
    opacity: 0.7;
}

.current-task-image {
    text-align: center;
}

.current-task-image img {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    object-fit: cover;
}

.btn-remove-image {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-remove-image:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Task Image in List/Kanban */
.task-image {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
}

.icon-btn-image {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.task-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.task-actions-right {
    display: flex;
    gap: 12px;
}

.btn-danger {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
}

.btn-timer {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-timer:hover {
    background: var(--accent);
    color: white;
}

/* Relative positioning für Assignee Dropdown */
.checklist-assignees {
    position: relative;
}

/* Sidebar Client Link */
.sidebar-client-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sidebar-client-link:hover {
    color: var(--accent);
}

/* Client Detail Page */
.client-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-header h1 {
    margin-bottom: 0;
}

.client-industry-header {
    font-size: 15px;
    color: var(--accent);
    font-weight: 500;
    margin: 4px 0 0 0;
}

.client-header .filter-btn {
    margin-left: auto;
}

.client-logo-large {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    background: var(--bg);
}

.client-logo-placeholder-large {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #5856d6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
}

.client-details {
    margin-top: 32px;
}

.client-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.client-info-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.client-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.06), transparent 70%);
    pointer-events: none;
}

.client-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(124, 58, 237, 0.15);
}

.client-info-card h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.info-link {
    color: var(--accent);
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

.info-highlight {
    color: var(--accent);
    font-size: 18px;
    font-weight: 600;
}

.empty-state-small {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.address-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.client-notes {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.client-notes h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.client-notes p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

/* Modal Textarea */
.modal-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Settings Form Row */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-field {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Settings Textarea */
.settings-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.settings-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Item Row Link */
.item-row-link {
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin: 0 -12px;
}

.item-row-link:hover {
    background: var(--bg);
}

.item-arrow {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Section Header mit Button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header .section-title {
    margin-bottom: 0;
    margin-top: 2.5rem;
}

/* Project Header Row */
.project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.project-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-header-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
}

.project-header-row h1 {
    margin-bottom: 4px;
}

.project-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-header-actions .btn-secondary,
.project-header-actions .btn-danger {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.project-header-actions .filter-btn {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* Project Row Wrapper for Duplicate Button */
.project-row-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.project-row-wrapper .project-row {
    flex: 1;
}

.project-duplicate-form {
    display: flex;
    align-items: center;
}

.btn-duplicate {
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-duplicate:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

/* Project Info 3-Spalten Layout */
.project-info-three-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.project-info-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-info-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.info-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.info-tags .info-value {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.priority-badge.priority-low {
    background: #e0f2fe;
    color: #0369a1;
}

.priority-badge.priority-medium {
    background: #fef3c7;
    color: #b45309;
}

.priority-badge.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.priority-badge.priority-urgent {
    background: #dc2626;
    color: white;
}

.budget-widget {
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.budget-widget .budget-header {
    margin-bottom: 8px;
}

.budget-widget .budget-label {
    font-size: 11px;
}

.budget-widget .budget-values {
    font-size: 14px;
}

.budget-widget .budget-footer {
    font-size: 11px;
}

.project-description-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}

.empty-hint {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

@media (max-width: 1024px) {
    .project-info-three-cols {
        grid-template-columns: 1fr 1fr;
    }

    .project-info-three-cols > .project-info-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .project-info-three-cols {
        grid-template-columns: 1fr;
    }

    .project-info-three-cols > .project-info-card:last-child {
        grid-column: 1;
    }
}

/* Legacy: Project Info Bar */
.project-info-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.budget-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    min-width: 280px;
    flex: 1;
    max-width: 400px;
}

.budget-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.budget-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.budget-values {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.budget-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.budget-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.budget-fill.warning {
    background: var(--doing);
}

.budget-fill.over {
    background: #ff453a;
}

.budget-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.budget-percent {
    color: var(--text-secondary);
    font-weight: 500;
}

.budget-remaining {
    color: var(--done);
    font-weight: 600;
}

/* Task-Details-Section im Task-Modal */
.task-details-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.task-details-section .modal-row {
    margin-bottom: 12px;
}

.task-detail-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.15s ease;
}

.task-detail-input:focus {
    border-color: var(--accent);
    outline: none;
}

.task-budget-widget {
    margin: 12px 0;
}

.btn-save-details {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-save-details:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Mini-Budget-Balken auf Kanban-Karten */
.task-budget-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.task-budget-mini-bar {
    flex: 1;
    height: 4px;
    background: var(--bg);
    border-radius: 2px;
    overflow: hidden;
}

.task-budget-mini-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.task-budget-mini-fill.warning {
    background: var(--doing);
}

.task-budget-mini-fill.over {
    background: #ff453a;
}

.task-budget-mini-text {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Budget in Listenansicht */
.task-budget-list-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.task-budget-list-hours {
    white-space: nowrap;
    color: var(--text);
    font-weight: 500;
}

.task-budget-mini-bar.list {
    width: 40px;
    flex-shrink: 0;
}

.task-budget-list-percent {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.task-budget-cell {
    overflow: hidden;
}

.project-description {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    flex: 2;
    min-width: 300px;
}

.project-description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

/* Project Meta Bar */
.project-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 16px;
    border-right: 1px solid var(--border);
}

.meta-item:last-child {
    border-right: none;
    padding-right: 0;
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.meta-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.meta-value.priority-low {
    color: #6b7280;
}

.meta-value.priority-medium {
    color: #3b82f6;
}

.meta-value.priority-high {
    color: #f59e0b;
}

.meta-value.priority-urgent {
    color: #ef4444;
    font-weight: 600;
}

.meta-tags {
    flex: 1;
    min-width: 150px;
}

.meta-tags .meta-value {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Modal Number Input */
.modal-field input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-field input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Project Budget Mini (Dashboard) */
.project-budget-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 80px;
}

.budget-bar-mini {
    width: 60px;
    height: 4px;
    background: var(--bg);
    border-radius: 2px;
    overflow: hidden;
}

.budget-text {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast::before {
    font-size: 18px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast-success {
    background: linear-gradient(135deg, var(--done), #34d399);
    color: white;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
}

.toast-success::before {
    content: "✓";
}

.toast-error {
    background: linear-gradient(135deg, #ff453a, #ff6b5b);
    color: white;
    box-shadow: 0 8px 32px rgba(255, 69, 58, 0.35);
}

.toast-error::before {
    content: "✕";
}

.toast-info {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

.toast-info::before {
    content: "ℹ";
}

/* Edit Button Small */
.btn-edit-small {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.btn-edit-small:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Client Header Actions */
.client-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

/* Login Page */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0c0a14;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: hsl(240 8% 10%);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 58, 237, 0.1);
    text-align: center;
    border: 1px solid hsl(240 6% 20%);
}

.login-logo {
    width: 150px;
    height: auto;
    margin-bottom: 32px;
}

.login-error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form input {
    padding: 14px 16px;
    border: 1px solid hsl(240 6% 20%);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: "Outfit", system-ui, sans-serif;
    background: hsl(240 10% 6%);
    color: hsl(0 0% 95%);
    text-align: center;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.login-form button {
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: "Outfit", system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-form button:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}
/* (alter Timer-Widget Block entfernt - ersetzt durch neues Dashboard Timer-Widget) */

@media (max-width: 900px) {
    .timer-widget {
        top: auto;
        bottom: 90px;
        right: 16px;
        left: auto;
        padding: 12px 16px;
        gap: 12px;
    }

    .timer-time {
        font-size: 22px;
    }

    .timer-task-name {
        display: none;
    }
}

/* ============ Project Toolbar ============ */
.project-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.task-create-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 500px;
}

.task-input-inline {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.15s ease;
}

.task-input-inline:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.task-status-inline {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    min-width: 120px;
}

.task-status-inline:focus {
    outline: none;
    border-color: var(--accent);
}

.task-add-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.task-add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

@media (max-width: 640px) {
    .project-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .task-create-inline {
        max-width: none;
    }

    .view-toggle {
        justify-content: center;
    }
}

/* Legacy: View Toggle Bar */
.view-toggle-bar {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--bg) 0%, rgba(124, 58, 237, 0.03) 100%);
    padding: 5px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-btn:hover {
    color: var(--accent);
    background: rgba(124, 58, 237, 0.1);
}

.view-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

:root.dark .view-btn.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.view-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* ============ List View ============ */
.list-view {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}

.list-view::before {
    display: none;
}

/* ========== GANTT VIEW (Jahreskalender) ========== */
.gantt-view {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.gantt-calendar {
    width: 100%;
    border-collapse: collapse;
}

.gantt-calendar thead th {
    padding: 12px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
}

.gantt-calendar .gantt-task-col {
    width: 280px;
    min-width: 280px;
    text-align: left !important;
    padding-left: 16px;
}

.gantt-calendar tbody tr {
    border-bottom: 1px solid var(--border);
}

.gantt-calendar tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.gantt-task-name {
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--border);
    min-width: 280px;
    width: 280px;
}

.gantt-task-name:hover {
    color: var(--accent);
}

.gantt-task-name .task-icon {
    font-size: 16px;
}

.gantt-bar-cell {
    position: relative;
    height: 44px;
    padding: 0;
}

.gantt-bar-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

.gantt-bar {
    position: absolute;
    height: 8px;
    border-radius: 4px;
    min-width: 4px;
    cursor: pointer;
    transition: height 0.15s, opacity 0.15s;
}

.gantt-bar:hover {
    height: 12px;
    opacity: 1 !important;
}

.gantt-no-dates {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    padding: 0 12px;
}

/* Heute-Marker (vertikale Linie) */
.gantt-today-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    z-index: 10;
    pointer-events: none;
    display: none;
}

.gantt-today-marker::before {
    content: 'Heute';
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 10px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

/* Dark Mode Anpassungen */
:root.dark .gantt-calendar tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Feste Spaltenbreiten für Listenansicht (ohne Budget) */
.task-table .col-drag      { width: 30px; }
.task-table .col-task      { width: 30%; }
.task-table .col-status    { width: 13%; }
.task-table .col-dates     { width: 14%; }
.task-table .col-checklist { width: 10%; }
.task-table .col-assigned  { width: 14%; }
.task-table .col-actions   { width: 13%; }

/* Spaltenbreiten mit Budget-Spalte */
.task-table.has-budget .col-task      { width: 24%; }
.task-table.has-budget .col-status    { width: 11%; }
.task-table.has-budget .col-dates     { width: 12%; }
.task-table.has-budget .col-budget    { width: 14%; }
.task-table.has-budget .col-checklist { width: 8%; }
.task-table.has-budget .col-assigned  { width: 12%; }
.task-table.has-budget .col-actions   { width: 12%; }

.task-dates-cell {
    font-size: 12px;
    color: var(--text-secondary);
}

.task-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: var(--accent);
    border-bottom: none;
}

.task-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.task-row {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-row:hover {
    background: var(--accent-light);
}

/* Listenansicht Drag & Drop */
.drag-handle {
    cursor: grab;
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 1px;
    user-select: none;
    opacity: 0.4;
    transition: opacity 0.2s ease, color 0.2s ease;
    text-align: center;
}

.drag-handle:hover {
    opacity: 1;
    color: var(--accent);
}

.drag-handle:active {
    cursor: grabbing;
}

.task-row.dragging {
    opacity: 0.4;
    background: var(--accent-light);
}

.list-drop-indicator td {
    padding: 0 !important;
    border: none !important;
}

.drop-indicator-line {
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    animation: pulse 1s ease-in-out infinite;
}

.task-row.task-done .task-title-cell {
    text-decoration: line-through;
    opacity: 0.6;
}

.task-title-cell {
    font-weight: 500;
}

.task-checklist-cell {
    color: var(--text-secondary);
    font-size: 13px;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.status-todo {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    color: var(--todo);
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.1);
}

.status-doing {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
    color: var(--doing);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.status-done {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--done);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.status-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
}

.status-select:focus {
    outline: none;
    border-color: var(--accent);
}

@media (max-width: 700px) {
    .task-table .col-status,
    .task-table td:nth-child(3) {
        display: none;
    }

    .task-table.has-budget .col-budget,
    .task-table.has-budget td.task-budget-cell {
        display: none;
    }

    .view-toggle-bar {
        margin-bottom: 16px;
    }

    .view-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ============ Status-Verwaltung (Settings) ============ */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.status-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.status-drag-handle {
    color: var(--text-secondary);
    cursor: grab;
    font-size: 14px;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.status-item:hover .status-drag-handle {
    opacity: 1;
}

.status-color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-name {
    font-weight: 500;
    color: var(--text);
}

.status-key {
    font-size: 12px;
    color: var(--text-secondary);
}

.status-done-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--done);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-actions {
    display: flex;
    gap: 4px;
}

.btn-edit-small {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-edit-small:hover {
    background: var(--accent);
    color: white;
}

.settings-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 0;
}

.input-readonly {
    background: var(--bg) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed;
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.checkbox-label .checkbox-text {
    font-size: 14px;
    color: var(--text);
}

.modal-field .checkbox-label {
    padding: 28px 0 0 0;
}

/* Archivierte Projekte */
.archived-projects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.archived-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color 0.15s ease;
}

.archived-project-item:hover {
    border-color: var(--accent);
}

.archived-project-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.archived-project-client {
    font-size: 12px;
    color: var(--text-secondary);
}

.archived-project-name {
    font-weight: 500;
    color: var(--text);
}

.archived-project-actions {
    display: flex;
    gap: 8px;
}

.loading-state {
    color: var(--text-secondary);
    font-style: italic;
}

/* =====================
   Dashboard New Layout
   ===================== */

/* Header 3-Spalten (25% / 25% / 50%) */
.dashboard-header-three-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-template-areas: "kpi timer widgets";
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

.dashboard-header-three-cols > .kpi-overview {
    grid-area: kpi;
}

.dashboard-header-three-cols > .timer-widget {
    grid-area: timer;
}

.dashboard-header-three-cols > .widget-tabs-card,
.dashboard-header-three-cols > .widget-split-card {
    grid-area: widgets;
}

.dashboard-header-three-cols > .dashboard-header-card {
    height: 100%;
}

/* KPI Grid vertikal für schmale Spalte */
.kpi-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

/* KPI Wochenstunden-Bereich */
.kpi-week-section {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
}

.kpi-week-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.kpi-week-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.kpi-week-nav {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 4px;
}

.kpi-week-nav .cal-nav {
    width: 22px;
    height: 22px;
    font-size: 10px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kpi-week-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    min-width: 44px;
    text-align: center;
    display: inline-block;
}

.kpi-week-dates {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 4px;
}

.kpi-week-values {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.kpi-week-item {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    text-align: center;
}

.kpi-week-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.03));
    border-color: rgba(124, 58, 237, 0.2);
}

.kpi-week-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.kpi-week-item.active .kpi-week-value {
    color: var(--accent);
}

.kpi-week-sublabel {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

/* Legacy: Header Split - 2 Hälften (50/50) */
.dashboard-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-header-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-header-right {
    display: flex;
    flex-direction: column;
}

/* Legacy: Header Grid - 3 Spalten */
.dashboard-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-header-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-header-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.dashboard-header-card.full-height {
    flex: 1;
    min-height: 340px;
}


.card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title-row .card-title {
    margin-bottom: 0;
}

/* Mini Sections (Auswertung) */
.mini-section {
    margin-bottom: 16px;
}

.mini-section:last-child {
    margin-bottom: 0;
}

.mini-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.mini-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}

.mini-item:hover {
    background: var(--accent-light);
}

.mini-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mini-indicator.doing {
    background: var(--doing);
}

.mini-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-meta {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.mini-hours {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.empty-state-small {
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
    padding: 16px;
}

/* Compact Timetracker */
.timetracker-compact {
    display: flex;
    flex-direction: column;
}

.timetracker-mode-toggle.small {
    display: flex;
    gap: 2px;
    background: var(--bg);
    padding: 3px;
    border-radius: 6px;
}

.timetracker-mode-toggle.small .mode-btn {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 4px;
}

.tt-compact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.tt-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tt-select,
.tt-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all 0.15s ease;
}

.tt-select.full,
.tt-input.full {
    flex: 1;
    width: 100%;
}

.tt-select:focus,
.tt-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.tt-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tt-separator {
    color: var(--text-secondary);
    font-size: 14px;
}

.timer-display-compact {
    flex: 1;
    font-size: 24px;
    font-weight: 700;
    font-family: "SF Mono", monospace;
    color: var(--accent);
    text-align: center;
    padding: 6px;
}

.tt-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.tt-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tt-btn.primary {
    background: var(--gradient-primary);
    color: white;
}

.tt-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.tt-btn.primary.running {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.tt-btn.secondary {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.tt-btn.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Input Mode Toggle (Von-Bis / Dauer) */
.tt-input-mode-toggle,
.input-mode-toggle {
    display: flex;
    gap: 2px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px;
    margin-bottom: 8px;
    width: fit-content;
}

.tt-mode-btn,
.input-mode-toggle .mode-btn {
    padding: 4px 12px;
    border: none;
    border-radius: calc(var(--radius-sm) - 2px);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tt-mode-btn.active,
.input-mode-toggle .mode-btn.active {
    background: var(--accent);
    color: white;
}

.tt-mode-btn:hover:not(.active),
.input-mode-toggle .mode-btn:hover:not(.active) {
    color: var(--text);
    background: rgba(124, 58, 237, 0.1);
}

.tt-input.small {
    width: 60px;
    text-align: center;
}

#manual-fields-wrap {
    flex-direction: column;
    gap: 0;
}

/* Activity Type in Time Entries Table */
td.te-activity-type {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Section Count Badge */
.section-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Time Entry Pagination */
.te-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding: 12px 0;
}

.te-page-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.te-page-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.te-page-info {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Timer Widget (Dashboard) */
.dashboard-header-card.timer-widget {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 16px !important;
    min-height: 180px;
}

.timer-widget-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.timer-side-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.timer-side-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.timer-ring-wrap {
    flex-shrink: 0;
}

.timer-ring-outer {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(124, 58, 237, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.timer-ring-inner {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.timer-ring-icon {
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-ring-time {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    font-family: "SF Mono", "Fira Code", monospace;
    line-height: 1;
}

.timer-ring-date {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.timer-ring-inner.running .timer-ring-icon {
    color: #10b981;
}

.timer-ring-inner.running .timer-ring-time {
    color: #10b981;
}

/* Button-Container unter dem Ring */
.timer-quick-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px auto 0;
}

/* Play/Pause-Button */
.timer-quick-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.timer-quick-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.timer-quick-btn.running {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: timer-pulse 2s ease-in-out infinite;
}

.timer-quick-btn.paused {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: timer-pause-pulse 1.5s ease-in-out infinite;
}

/* Stop-Button */
.timer-stop-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.timer-stop-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

@keyframes timer-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 2px 16px rgba(239, 68, 68, 0.5); }
}

@keyframes timer-pause-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 2px 16px rgba(16, 185, 129, 0.5); }
}

/* Paused-Zustand im Ring */
.timer-ring-inner.paused .timer-ring-icon {
    color: #f59e0b;
}

.timer-ring-inner.paused .timer-ring-time {
    color: #f59e0b;
    animation: timer-text-blink 1.5s ease-in-out infinite;
}

@keyframes timer-text-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Mini Icon-Button im Modal */
.tt-btn-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.tt-btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tt-btn-icon.primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.tt-btn-icon.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* Zeiterfassungs-Modal */
.tt-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.tt-modal-overlay.active {
    display: flex;
}

.tt-modal {
    background: var(--card-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.tt-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.tt-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.tt-modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

.tt-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tt-modal-body .timetracker-mode-toggle.small {
    align-self: flex-start;
    margin-bottom: 4px;
}

/* KPI Overview */
.kpi-overview {
    display: flex;
    flex-direction: column;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.kpi-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--border);
}

.kpi-item.large {
    background: var(--gradient-primary);
    padding: 14px 12px;
    border: none;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.kpi-item.large .kpi-value {
    font-size: 26px;
    color: white;
}

.kpi-item.large .kpi-label {
    color: rgba(255, 255, 255, 0.85);
}

.kpi-item .kpi-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.kpi-item .kpi-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.team-mini {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.team-avatars-row {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.member-avatar.more {
    background: var(--text-secondary) !important;
    font-size: 10px;
}

/* Main Grid - ausgerichtet am 3-Spalten Header (1fr 1fr 2fr) */
.dashboard-main-grid-aligned {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 16px;
}

.dashboard-main-grid-aligned > .dashboard-main-card:first-child {
    grid-column: 1 / 3; /* Projektübersicht nimmt Spalte 1+2 */
}

/* Legacy: Main Grid - 2 Spalten */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dashboard-main-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    max-height: 600px;
    overflow-y: auto;
    transition: box-shadow 0.2s ease;
}

.dashboard-main-card:hover {
    box-shadow: var(--shadow-card-hover);
}

/* =====================
   Dashboard 4+3 Grid Layout
   ===================== */

/* Reihe 1: 4 gleiche Spalten */
.dash-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

.dash-row-4 > .dashboard-header-card {
    height: 100%;
    min-height: 320px;
}

/* Reihe 2: 3 gleiche Spalten (Legacy) */
.dash-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dash-row-3 > .dashboard-main-card {
    min-height: 380px;
}

/* Reihe 2: Favoriten links, Todos rechts */
.dash-row-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.dash-right-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dash-right-col > .dashboard-main-card {
    min-height: 500px;
}

/* ============ Dashboard Kunden/Projekte Tabs ============ */
.dash-tab-content {
    display: none;
}

.dash-tab-content.active {
    display: block;
}

/* ============ Todo Widget ============ */
.todo-ics-link {
    text-decoration: none;
    font-size: 16px;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.todo-ics-link:hover {
    opacity: 1;
}

.todo-add-form {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.todo-add-input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text);
}

.todo-add-date {
    padding: 7px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    background: var(--card-bg);
    color: var(--text);
    width: 130px;
}

.todo-add-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.todo-add-btn:hover {
    opacity: 0.85;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}

.todo-item:hover {
    background: var(--bg);
}

.todo-checkbox {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.todo-deadline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #d1d5db;
}

.todo-deadline-dot.deadline-green {
    background: #10b981;
}

.todo-deadline-dot.deadline-orange {
    background: #f59e0b;
}

.todo-deadline-dot.deadline-red {
    background: #ef4444;
}

.todo-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.todo-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    line-height: 1.3;
    word-break: break-word;
}

.todo-title:hover {
    color: var(--accent);
}

.todo-done .todo-title {
    text-decoration: line-through;
    opacity: 0.5;
}

.todo-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.todo-done .todo-date {
    opacity: 0.4;
}

.todo-meta {
    font-size: 11px;
    color: var(--accent);
    opacity: 0.7;
}

.todo-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.todo-item:hover .todo-delete-btn {
    opacity: 0.6;
}

.todo-delete-btn:hover {
    opacity: 1 !important;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.todo-inline-edit {
    width: 100%;
    padding: 3px 6px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    background: var(--card-bg);
    color: var(--text);
    outline: none;
}

.favorites-card {
    min-height: 500px;
}

/* Dashboard Titel im Übersicht-Block */
.dashboard-title {
    font-weight: 700;
    color: var(--accent);
}

.dashboard-date {
    font-weight: 700;
    color: var(--accent);
    margin-left: 8px;
}

/* Favoriten als zweispaltige Liste */
.favorites-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 8px;
    padding: 4px 0;
    overflow-y: auto;
    max-height: 500px;
}

.fav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 16px;
    min-height: 56px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-sizing: border-box;
}

.fav-item:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.fav-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: normal;
    word-break: break-word;
    flex: 1;
    line-height: 1.4;
    padding-right: 12px;
}

.fav-item:hover .fav-item-name {
    color: var(--accent);
}

.fav-item-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Favoriten als kompakte Badges (Legacy) */
.favorites-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.fav-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fav-badge:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.fav-badge-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-badge-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}

/* Compact Chart Card (Donut in 25%-Spalte) */
.chart-card-compact .card-title-row {
    margin-bottom: 4px;
}

.chart-card-compact .donut-chart-wrap {
    flex: 1;
    overflow: hidden;
}

/* Chart-Card füllt volle Höhe */
.chart-card-compact {
    display: flex;
    flex-direction: column;
}

.chart-card-compact .week-chart {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Donut Chart im kompakten Modus: vertikal gestapelt */
.donut-chart-wrap.compact {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.donut-chart-wrap.compact .donut-chart {
    width: 150px;
    height: 150px;
}

.donut-chart-wrap.compact .donut-total {
    font-size: 18px;
}


/* Week Chart kompakt in Reihe 1 */
.chart-card-compact .week-bars {
    flex: 1;
    height: auto;
    min-height: 220px;
}

.chart-card-compact .week-bar-track {
    max-width: 32px;
}

/* ========== Dashboard Gantt Timeline ========== */
.dash-gantt-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-top: 16px;
    overflow: hidden;
    position: relative;
}

.dash-gantt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
}

.dash-gantt-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-gantt-year {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    min-width: 48px;
    text-align: center;
}

.dash-gantt-body {
    position: relative;
    overflow-x: auto;
}

.dash-gantt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.dash-gantt-table thead th {
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
    text-transform: uppercase;
}

.dash-gantt-name-col {
    width: 200px;
    min-width: 200px;
    text-align: left !important;
    padding-left: 20px !important;
}

.dash-gantt-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.dash-gantt-table tbody tr:hover {
    background: rgba(124, 58, 237, 0.03);
}

.dash-gantt-name {
    padding: 10px 16px 10px 20px;
    font-size: 13px;
    border-right: 1px solid var(--border);
    min-width: 200px;
    width: 200px;
}

.dash-gantt-name a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    display: block;
    line-height: 1.3;
}

.dash-gantt-name a:hover {
    color: var(--accent);
}

.dash-gantt-client {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
}

.dash-gantt-bar-cell {
    position: relative;
    height: 40px;
    padding: 0;
}

.dash-gantt-bar-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

.dash-gantt-bar {
    position: absolute;
    height: 8px;
    border-radius: 4px;
    min-width: 4px;
    cursor: pointer;
    transition: height 0.15s, opacity 0.15s;
    opacity: 0.85;
}

.dash-gantt-bar:hover {
    height: 12px;
    opacity: 1;
}

.dash-gantt-today {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    z-index: 10;
    pointer-events: none;
    display: none;
}

.dash-gantt-today::before {
    content: 'Heute';
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 9px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.dash-gantt-empty {
    padding: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Responsive: 4+3 Spalten Layout */
@media (max-width: 1400px) {
    .dash-row-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-row-3 {
        grid-template-columns: 1fr 1fr;
    }

    .dash-row-bottom {
        grid-template-columns: 1fr 1fr;
    }

    .dash-right-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dash-row-bottom {
        grid-template-columns: 1fr;
    }

    .dash-right-col {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .dash-row-4 {
        grid-template-columns: 1fr;
    }

    .dash-row-3 {
        grid-template-columns: 1fr;
    }

    .dash-row-bottom {
        grid-template-columns: 1fr;
    }

    .dash-right-col {
        grid-template-columns: 1fr;
    }

    .donut-chart-wrap.compact .donut-chart {
        width: 140px;
        height: 140px;
    }
}

/* Dashboard Charts Row */
.dashboard-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.card-title-row .card-title {
    margin-bottom: 0;
}

/* Chart-Cards behalten kleineren Abstand */
.chart-card-compact .card-title-row {
    margin-bottom: 4px;
}

.chart-with-nav {
    display: flex;
    align-items: stretch;
    gap: 4px;
    flex: 1;
}

.chart-with-nav .week-chart {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chart-with-nav .week-bars {
    flex: 1;
    gap: 4px;
}

.chart-nav-btn {
    background: none;
    border: none;
    width: 24px;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    color: var(--accent);
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.chart-nav-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.chart-period-toggle {
    display: flex;
    background: #e8ebf0;
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}

.chart-toggle-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chart-toggle-btn:hover {
    color: #374151;
}

.chart-toggle-btn.active {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dark .chart-period-toggle {
    background: #374151;
}

.dark .chart-toggle-btn {
    color: #9ca3af;
}

.dark .chart-toggle-btn:hover {
    color: #d1d5db;
}

.dark .chart-toggle-btn.active {
    background: #4b5563;
    color: #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Mini Toggle für Monat/Gesamt */
.mini-toggle {
    display: flex;
    background: #e8ebf0;
    border-radius: 4px;
    padding: 2px;
    gap: 1px;
}

.mini-toggle-btn {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 500;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mini-toggle-btn:hover {
    color: #374151;
}

.mini-toggle-btn.active {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.dark .mini-toggle {
    background: #374151;
}

.dark .mini-toggle-btn {
    color: #9ca3af;
}

.dark .mini-toggle-btn:hover {
    color: #d1d5db;
}

.dark .mini-toggle-btn.active {
    background: #4b5563;
    color: #f3f4f6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.chart-card {
    max-height: none;
    overflow: visible;
}

/* Donut Chart */
.donut-chart-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
}

.donut-chart {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.donut-svg {
    width: 100%;
    height: 100%;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.donut-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.donut-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.donut-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.donut-legend-name {
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donut-legend-value {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

/* Week Bar Chart */
.week-bars {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 8px 0;
    height: 200px;
}

.week-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.week-bar-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    min-height: 16px;
}

.week-bar-track {
    flex: 1;
    width: 100%;
    max-width: 40px;
    background: var(--bg);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border);
}

.week-bar-fill {
    width: 100%;
    background: transparent;
    border-radius: 5px;
    min-height: 0;
    transition: height 0.5s ease;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    overflow: hidden;
}

.week-bar-segment {
    width: 100%;
    flex-shrink: 0;
    transition: height 0.5s ease;
}

.week-bar-segment:first-child {
    border-radius: 0 0 5px 5px;
}

.week-bar-segment:last-child {
    border-radius: 5px 5px 0 0;
}

.week-bar-segment:only-child {
    border-radius: 5px;
}

.week-bar-col.today .week-bar-fill {
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.week-bar-col.today .week-bar-track {
    border-color: var(--accent);
}

.week-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.week-bar-col.today .week-bar-label {
    color: var(--accent);
}

.week-bar-date {
    font-size: 10px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .dashboard-charts-row {
        grid-template-columns: 1fr;
    }

    .donut-chart-wrap {
        flex-direction: column;
        align-items: center;
    }

    .donut-chart {
        width: 140px;
        height: 140px;
    }

    .donut-legend {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
}

/* Compact Project List */
.project-list.compact,
.client-list.compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-row.compact,
.client-row.compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.project-row.compact:hover,
.client-row.compact:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.project-logo-wrap.small,
.client-logo-wrap.small {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.project-logo-wrap.small img,
.client-logo-wrap.small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.project-logo-placeholder,
.client-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
}

.project-info,
.client-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-row.compact .project-name,
.client-row.compact .client-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-row.compact .project-client,
.client-row.compact .client-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.project-stats,
.client-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 9px;
    color: var(--text-secondary);
}

.progress-mini {
    width: 60px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-mini .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .dashboard-header-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-header-card:last-child {
        grid-column: span 2;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .kpi-item.large {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .dashboard-header-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header-card:last-child {
        grid-column: span 1;
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kpi-item.large {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .dashboard-header-card {
        min-height: auto;
        padding: 16px;
    }

    .tt-row {
        flex-wrap: wrap;
    }

    .tt-select,
    .tt-input {
        min-width: calc(50% - 4px);
    }
}

/* =====================
   Timetracker Widget (Legacy)
   ===================== */
.timetracker-widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.timetracker-widget:hover {
    box-shadow: var(--shadow-hover);
}

.timetracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.timetracker-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.timetracker-mode-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.mode-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    color: var(--text);
}

.mode-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.timetracker-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timetracker-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.timetracker-field {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timetracker-field.full-width {
    flex: 100%;
    min-width: 100%;
}

.timetracker-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.timetracker-field select,
.timetracker-field input[type="date"],
.timetracker-field input[type="time"],
.timetracker-field input[type="text"] {
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
    width: 100%;
}

.timetracker-field select:focus,
.timetracker-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
    background: var(--card-bg);
}

.timetracker-field select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--border);
}

.timer-display-value {
    font-size: 32px;
    font-weight: 700;
    font-family: "SF Mono", "Monaco", "Menlo", monospace;
    color: var(--accent);
    padding: 8px 0;
    letter-spacing: 0.02em;
}

.timetracker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.timetracker-actions .btn-secondary {
    padding: 12px 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.timetracker-actions .btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.timetracker-actions .filter-btn {
    padding: 12px 24px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.timetracker-actions .filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.timetracker-actions .filter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Timer running state */
.timer-running .timer-display-value {
    animation: pulse-timer 1.5s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Timetracker */
@media (max-width: 768px) {
    .timetracker-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .timetracker-row {
        flex-direction: column;
    }

    .timetracker-field {
        min-width: 100%;
    }

    .timetracker-actions {
        flex-direction: column;
    }

    .timetracker-actions button {
        width: 100%;
    }
}

/* =====================
   Widget Tabs System
   ===================== */
.widget-tabs-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.widget-tabs {
    display: flex !important;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.widget-tab {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.widget-tab:hover {
    color: var(--text);
    background: rgba(124, 58, 237, 0.08);
}

.widget-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.widget-tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.widget-tab-content.active {
    display: flex !important;
}

/* =====================
   Mini Calendar Widget
   ===================== */
.mini-calendar {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cal-month {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.cal-nav {
    width: 26px;
    height: 26px;
    border: none;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.cal-nav:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px;
    margin-bottom: 6px;
}

.calendar-weekdays span {
    display: block;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: 4px 0;
}

.calendar-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    border-radius: 4px;
    cursor: default;
    transition: all 0.15s ease;
    min-width: 24px;
    min-height: 24px;
}

.cal-day.empty {
    visibility: hidden;
}

.cal-day.today {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
}

.cal-day.has-work {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.cal-day.has-work.today {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 0 2px var(--accent-light);
}

/* =====================
   Timeline Widget
   ===================== */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}

.timeline-item:hover {
    background: var(--accent-light);
    transform: translateX(2px);
}

.timeline-dot {
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.timeline-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-meta {
    font-size: 10px;
    color: var(--text-secondary);
}

.timeline-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

/* =====================
   Quick Actions Widget
   ===================== */
.quick-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    margin-bottom: 12px;
}

.quick-action-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quick-action-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.qa-icon {
    font-size: 18px;
    line-height: 1;
}

.qa-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.quick-section {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* =====================
   Favorites Widget (Legacy - überschrieben durch Grid-Layout oben)
   ===================== */

.favorite-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.favorite-item:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: translateX(2px);
}

.favorite-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
}

.favorite-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-logo-placeholder {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.favorite-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.favorite-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-client {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-hours {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

/* =====================
   Widget Split Layout (Favoriten + Notizen)
   ===================== */
.widget-split-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.widget-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1;
    min-height: 0;
}

.widget-split-left {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-right: 16px;
    border-right: 1px solid var(--border);
}

.widget-split-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-left: 16px;
}

.widget-split-left .card-title,
.widget-split-right .card-title {
    font-size: 12px;
    margin-bottom: 8px;
}

.favorites-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-y: auto;
    align-content: flex-start;
}

.favorite-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-badge:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.widget-split-right .notes-editor {
    flex: 1;
    min-height: 0;
}

.widget-split-right .notes-content {
    flex: 1;
    min-height: 80px;
}

@media (max-width: 768px) {
    .widget-split {
        grid-template-columns: 1fr;
    }
    .widget-split-left {
        padding-right: 0;
        border-right: none;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }
    .widget-split-right {
        padding-left: 0;
        padding-top: 12px;
    }
}

/* =====================
   Notes Editor Widget
   ===================== */
.notes-editor {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.notes-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.notes-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-family: inherit;
}

.notes-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.notes-btn.save {
    margin-left: auto;
}

.notes-separator {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.notes-content {
    flex: 1;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    overflow-y: auto;
    min-height: 150px;
    outline: none;
    border: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.notes-content:focus {
    border-color: var(--accent);
}

.notes-content:empty::before {
    content: attr(placeholder);
    color: var(--text-secondary);
    pointer-events: none;
}

.notes-content ul,
.notes-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.notes-content li {
    margin: 4px 0;
}

.quick-tasks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.quick-task {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}

.quick-task:hover {
    background: var(--accent-light);
}

.qt-indicator {
    width: 5px;
    height: 5px;
    background: var(--doing);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.qt-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =====================
   Auswertung Page (Dreispaltiges Layout)
   ===================== */
.auswertung-container {
    max-width: 1400px;
}

.auswertung-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.auswertung-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

.auswertung-full {
    width: 100%;
}

.auswertung-card:hover {
    box-shadow: var(--shadow-card-hover);
}

/* Responsive: Bei kleinen Bildschirmen untereinander */
@media (max-width: 1200px) {
    .auswertung-top-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .auswertung-top-row {
        grid-template-columns: 1fr;
    }
}

.auswertung-card .card-title {
    font-size: 13px;
    margin-bottom: 16px;
}

.auswertung-filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auswertung-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auswertung-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auswertung-field select,
.auswertung-field input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all 0.15s ease;
}

.auswertung-field select:focus,
.auswertung-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.auswertung-field-row {
    display: flex;
    gap: 12px;
}

.auswertung-field.half {
    flex: 1;
}

.auswertung-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.auswertung-actions .filter-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
}

.auswertung-actions .btn-secondary {
    padding: 10px 16px;
    font-size: 13px;
}

/* KPI Grid */
.auswertung-kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.auswertung-kpi-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auswertung-kpi-item.large {
    background: var(--gradient-primary);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.auswertung-kpi-item.large .kpi-value {
    font-size: 32px;
    color: white;
}

.auswertung-kpi-item.large .kpi-label {
    color: rgba(255, 255, 255, 0.85);
}

.auswertung-kpi-item .kpi-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.auswertung-kpi-item .kpi-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Breakdown Rows */
.auswertung-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.breakdown-row:hover {
    background: var(--accent-light);
}

.breakdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.breakdown-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breakdown-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.breakdown-value {
    display: flex;
    align-items: center;
}

.breakdown-hours {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.breakdown-bar-wrap {
    grid-column: 1 / -1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Entries List */
.auswertung-entries {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.auswertung-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}

.auswertung-entry:hover {
    background: var(--accent-light);
    transform: translateX(4px);
}

.entry-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 70px;
}

.entry-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.entry-time {
    font-size: 10px;
    color: var(--text-secondary);
}

.entry-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.entry-task {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-project {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.entry-duration {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.entry-activity-type {
    font-size: 10px;
    color: var(--text-secondary);
}

.entry-status {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 10px;
}

/* =====================
   Responsive Dashboard 3-Spalten Layout
   ===================== */
@media (max-width: 1200px) {
    .dashboard-header-three-cols {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "kpi timer"
            "widgets widgets";
    }

    .dashboard-main-grid-aligned {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-main-grid-aligned > .dashboard-main-card:first-child {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-header-three-cols {
        grid-template-columns: 1fr;
        grid-template-areas:
            "timer"
            "kpi"
            "widgets";
    }

    .dashboard-main-grid-aligned {
        grid-template-columns: 1fr;
    }

    .dashboard-main-grid-aligned > .dashboard-main-card:first-child {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .dashboard-header-three-cols {
        gap: 12px;
    }

    .widget-tabs {
        flex-wrap: wrap;
    }

    .widget-tab {
        flex: 1 1 45%;
        min-width: 0;
    }
}

/* Legacy: Responsive Dashboard Split Layout */
@media (max-width: 1024px) {
    .dashboard-header-split {
        grid-template-columns: 1fr;
    }

    .dashboard-header-right {
        order: -1;
    }

    .dashboard-header-card.full-height {
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .dashboard-header-split {
        gap: 12px;
    }

    .dashboard-header-left {
        gap: 12px;
    }

    .dashboard-header-card.full-height {
        min-height: 260px;
    }
}

/* =====================
   Mobile: Dashboard & Kundendetail
   ===================== */
@media (max-width: 768px) {
    /* Favoriten auf 1 Spalte */
    .favorites-list {
        grid-template-columns: 1fr;
    }

    /* Dashboard: Stunden und Progress in Projektübersicht ausblenden */
    .project-row.compact .project-stats,
    .client-row.compact .client-stats {
        display: none;
    }

    /* Kundendetail: Header responsiv stapeln */
    .client-header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .client-header > div:first-of-type {
        flex: 1;
        min-width: 0;
    }

    .client-header h1 {
        font-size: 22px;
        word-break: break-word;
    }

    .client-logo-large,
    .client-logo-placeholder-large {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        font-size: 18px;
    }

    .client-header-actions {
        flex-basis: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .client-header-actions .btn-danger,
    .client-header-actions .filter-btn {
        font-size: 13px;
        padding: 8px 14px;
    }

    /* Kundendetail: Projektkarten besser auf mobil */
    .project-row-wrapper {
        align-items: center;
    }

    .project-row {
        padding: 16px;
        gap: 12px;
    }

    .project-progress {
        min-width: 0;
    }

    .progress-stats {
        font-size: 12px;
        gap: 4px;
    }

    .progress-percent,
    .progress-tasks {
        white-space: nowrap;
    }

    .btn-duplicate {
        padding: 8px;
    }

    .btn-duplicate svg {
        width: 14px;
        height: 14px;
    }

    /* Client Info Grid responsiv */
    .client-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ Projektarten ============ */
.project-type-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

h1 .project-type-dot {
    width: 14px;
    height: 14px;
}

.fav-item .project-type-dot {
    margin-right: 6px;
}

.project-type-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.project-dates {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
    display: block;
}

/* Projektarten-Liste in Settings */
.project-type-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-type-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.project-type-item:hover {
    background: var(--accent-light);
}

.project-type-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-type-info {
    flex: 1;
    min-width: 0;
}

.project-type-name {
    display: block;
    font-weight: 500;
    color: var(--text);
}

.project-type-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.project-type-actions {
    display: flex;
    gap: 8px;
}

/* Dark Mode für Projektarten */
.dark .project-type-item {
    background: rgba(255, 255, 255, 0.05);
}

.dark .project-type-item:hover {
    background: var(--accent-light);
}

/* ============ Projektart-Filter ============ */
.proj-type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.proj-type-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.proj-type-btn:hover {
    color: var(--text);
    background: var(--border);
}

.proj-type-btn.active {
    background: var(--accent-light);
    color: var(--accent);
}

.proj-type-btn .proj-type-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dark .proj-type-btn {
    background: #2d3748;
    color: #9ca3af;
}

.dark .proj-type-btn:hover {
    color: #d1d5db;
    background: #374151;
}

.dark .proj-type-btn.active {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent);
}

/* ============ Donut Legend Compact ============ */
.donut-chart-wrap.compact .donut-legend {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1px !important;
    width: 100%;
    max-height: none;
    overflow-y: auto;
}

.donut-chart-wrap.compact .donut-legend-item {
    display: flex !important;
    align-items: center !important;
    font-size: 12px !important;
    gap: 6px !important;
    line-height: 1.2 !important;
    padding: 2px 0 !important;
    margin: 0 !important;
}

.donut-chart-wrap.compact .donut-legend-color {
    width: 8px !important;
    height: 8px !important;
}

.donut-chart-wrap.compact .donut-legend-value {
    font-size: 12px !important;
}

.donut-legend-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

.donut-legend-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.donut-legend-nav-btn:hover {
    background: var(--border);
    color: var(--text);
}

.donut-legend-nav-info {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.dark .donut-legend-nav {
    border-top-color: #374151;
}

.dark .donut-legend-nav-btn {
    background: #2d3748;
    color: #9ca3af;
}

.dark .donut-legend-nav-btn:hover {
    background: #374151;
    color: #d1d5db;
}

/* ============ Sammelerfassung ============ */
.batch-form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.batch-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.batch-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.batch-duration input {
    width: 70px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    text-align: center;
}

.batch-form-card select,
.batch-form-card input[type="date"],
.batch-form-card input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.batch-form-card select:focus,
.batch-form-card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.batch-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.batch-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.batch-project-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.batch-project-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    background: var(--bg);
}

.batch-project-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.batch-project-header strong {
    font-size: 14px;
    color: var(--text);
}

.batch-client-name {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: auto;
}

.batch-toggle-btn {
    font-size: 12px;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 8px;
}

.batch-toggle-btn:hover {
    text-decoration: underline;
}

.batch-task-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.batch-task-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    padding: 4px 0;
}

.batch-task-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.batch-submit-area {
    margin-top: 8px;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .batch-fields {
        grid-template-columns: 1fr;
    }
    .batch-selection-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .batch-client-name {
        margin-left: 0;
    }
}

.dark .batch-project-item {
    background: #2d3748;
    border-color: #374151;
}

/* ============ Projektsuche Autocomplete ============ */
.project-search-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.project-search-box {
    position: relative;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}

.project-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.875rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.project-search-input::placeholder {
    color: var(--text-secondary);
}

.project-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.project-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    cursor: pointer;
    gap: 0.75rem;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: var(--accent-light);
}

.search-result-name {
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-name strong {
    color: var(--accent);
    font-weight: 700;
}

.search-result-client {
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    white-space: nowrap;
}

.search-no-results {
    padding: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .project-search-wrapper {
        justify-content: stretch;
    }
    .project-search-box {
        width: 100%;
    }
}
