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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #f5f7fa;
            padding: 20px;
        }

        .icon-svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            vertical-align: middle;
        }

        .icon-btn {
            width: 16px;
            height: 16px;
        }

        .icon-inline {
            width: 14px;
            height: 14px;
        }

        .icon-nav {
            width: 18px;
            height: 18px;
        }

        .icon-heading {
            width: 22px;
            height: 22px;
        }

        .icon-project-avatar {
            width: 28px;
            height: 28px;
        }

        .btn-with-icon {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .header {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        /* Modern Header */
        .modern-header {
            background: white;
            margin-bottom: 30px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 32px;
            border-bottom: 1px solid #f0f0f0;
        }

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

     /*   .project-icon {
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        } */

        .project-icon {
display:none;
        }
        .project-avatar {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .project-info {
            display: flex;
            flex-direction: column;
        }

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

        .project-color-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: 1px solid rgba(0,0,0,0.08);
            flex-shrink: 0;
        }

        .project-select {
            font-size: 16px;
            font-weight: 300;
            color: #1a202c;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background-color: #ffffff;
            cursor: pointer;
            padding: 8px 36px 8px 12px;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231a202c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }

        .project-select:hover {
            color: #667eea;
            border-color: #cbd5e1;
        }

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

        /* View Switcher */
        .view-switcher {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 32px;
            background: #fafafa;
        }

        .view-tabs {
            display: flex;
            gap: 8px;
            background: white;
            padding: 4px;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }

        .view-tab {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border: none;
            background: transparent;
            color: #6b7280;
            font-size: 14px;
            font-weight: 500;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .view-tab:hover {
            background: #f3f4f6;
            color: #374151;
        }

        .view-tab:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            pointer-events: none;
            box-shadow: none;
        }

        .view-tab.active {
            background: #4b5563;
            color: white;
            box-shadow: 0 2px 8px rgba(75, 85, 99, 0.35);
        }

        .view-tab:hover .icon-nav,
        .view-tab.active .icon-nav {
            filter: brightness(0) invert(1);
        }

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

        .view-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        #adminActions .action-btn.btn-with-icon {
            gap: 10px;
            padding-left: 14px;
            padding-right: 16px;
        }

        #adminActions .action-btn .icon-btn {
            width: 18px;
            height: 18px;
        }

        #adminActions .action-btn .icon-admin-right-gap {
            margin-right: 8px;
        }

        .action-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border: 1px solid #e5e7eb;
            background: white;
            color: #6b7280;
            font-size: 13px;
            font-weight: 500;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .action-btn:hover {
            border-color: #667eea;
            color: #667eea;
            background: #f5f7ff;
        }

        .action-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            pointer-events: none;
        }

        .action-btn-icon-only {
            min-height: 38px;
            padding: 8px 14px;
        }

        .header h1 {
            margin-bottom: 15px;
            color: #2c3e50;
        }

        .project-selector {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            align-items: center;
        }

        .project-selector select {
            flex: 1;
            max-width: 300px;
            padding: 10px;
            border: 1px solid #bdc3c7;
            border-radius: 4px;
            font-size: 14px;
        }

        .controls {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn-primary {
            background: #3498db;
            color: white;
        }

        .btn-primary:hover {
            background: #2980b9;
        }

        .btn-secondary {
            background: #95a5a6;
            color: white;
        }

        .btn-secondary:hover {
            background: #7f8c8d;
        }

        .board-container {
            padding-bottom: 20px;
        }

        .home-container {
            padding-bottom: 20px;
        }

        .home-columns {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }

        .home-panel {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            padding: 14px;
            min-height: 220px;
        }

        .home-panel h3 {
            margin-bottom: 12px;
            color: #2c3e50;
            font-size: 16px;
            font-weight: 600;
        }

        .home-welcome-text {
            margin-bottom: 12px;
            color: #4b5563;
            font-size: 14px;
        }

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

        .home-item {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 8px 10px;
        }

        .home-item-clickable {
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s;
        }

        .home-item-clickable:hover {
            background: #eef2ff;
            border-color: #c7d2fe;
        }

        .home-item-title {
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 400;
            color: #1f2937;
            font-size: 19px;
            margin-bottom: 2px;
        }

        .home-item-meta {
            color: #6b7280;
            font-size: 12px;
        }

        .home-item-meta .home-project-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            margin-right: 6px;
            vertical-align: middle;
        }

        .home-item-sub {
            color: #6b7280;
            font-size: 12px;
            margin-top: 3px;
            line-height: 1.35;
        }

        .home-project-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            border: 1px solid rgba(0,0,0,0.1);
            flex-shrink: 0;
        }

        .home-empty {
            color: #94a3b8;
            font-size: 13px;
            padding: 10px 0;
        }

        .swimlane {
            background: white;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .swimlane-header {
           /* background: #34495e; */
           background: #ffffff;
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .swimlane-title {
            font-size: 28px;
            font-weight: 200;
            color:black;
        }

        .swimlane-actions {
            display: flex;
            gap: 10px;
        }

        .btn-small {
            padding: 5px 12px;
            font-size: 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            background: rgba(255,255,255,0.2);
            color: black;
            transition: all 0.2s;
        }

        .btn-small:hover {
            background: rgba(255,255,255,0.3);
        }

        .btn-small-gray {
            background: #ffffff;
            color: #374151;
            border: 1px solid #d1d5db;
        }

        .btn-small-gray:hover {
            background: #f9fafb;
            color: #1f2937;
        }

        .columns-container {
            display: grid;
            gap: 15px;
            padding: 15px;
        }

        /* Responsive Grid - wird dynamisch gesetzt */
        .columns-container.cols-1 { grid-template-columns: repeat(1, 1fr); }
        .columns-container.cols-2 { grid-template-columns: repeat(2, 1fr); }
        .columns-container.cols-3 { grid-template-columns: repeat(3, 1fr); }
        .columns-container.cols-4 { grid-template-columns: repeat(4, 1fr); }
        .columns-container.cols-5 { grid-template-columns: repeat(5, 1fr); }
        .columns-container.cols-6 { grid-template-columns: repeat(6, 1fr); }

        @media (max-width: 1400px) {
            .columns-container.cols-6 { grid-template-columns: repeat(5, 1fr); }
        }

        @media (max-width: 1200px) {
            .columns-container.cols-5,
            .columns-container.cols-6 { grid-template-columns: repeat(4, 1fr); }
        }

        @media (max-width: 992px) {
            .columns-container.cols-4,
            .columns-container.cols-5,
            .columns-container.cols-6 { grid-template-columns: repeat(3, 1fr); }
        }

        @media (max-width: 768px) {
            .columns-container.cols-3,
            .columns-container.cols-4,
            .columns-container.cols-5,
            .columns-container.cols-6 { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 576px) {
            .columns-container { grid-template-columns: 1fr !important; }
            .home-columns { grid-template-columns: 1fr; }
        }

        .column {
            background: #f7f7f7;
            padding: 15px;
            border-radius: 6px;
            min-height: 200px;
            transition: background 0.2s, box-shadow 0.2s;
        }

        .column.drop-highlight {
            background: #d5e8f7;
            box-shadow: inset 0 0 0 2px #3498db;
        }

        .column-header {
            display: flex;
            flex-direction: column;
            gap: 8px;
            font-weight: 600;
            margin-bottom: 31px;
            color: #2c3e50;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .column-color-bar {
            height: 4px;
            border-radius: 4px;
            margin-bottom: 0;
        }

        .cards {
            min-height: 100px;
            position: relative;
        }

        .cards.drop-at-top::before {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: -6px;
            border-top: 3px solid #3b82f6;
            border-radius: 2px;
            pointer-events: none;
        }

    /*    .card {
            background: white;
            border-radius: 6px;
            padding: 12px;
            margin-bottom: 10px;
            cursor: move;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12);
            transition: all 0.2s;
        }*/

        .card {
    background: white;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: move;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.2s;
}

        .card:hover {
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        }

        .card.dragging {
            opacity: 0.5;
        }

        .card-drag-placeholder {
            height: 84px;
            border: 2px dashed #60a5fa;
            border-radius: 6px;
            background: rgba(96, 165, 250, 0.08);
            margin-bottom: 20px;
        }

        .card.drop-before {
            box-shadow: inset 0 3px 0 #3b82f6;
        }

        .card.drop-after {
            box-shadow: inset 0 -3px 0 #3b82f6;
        }

        .card.home-card-focus {
            box-shadow: 0 0 0 2px #60a5fa, 0 4px 10px rgba(59, 130, 246, 0.25);
        }

        .card.done {
            opacity: 0.5;
            background: #ecf0f1;
        }

        .card.done .card-title {
            text-decoration: line-through;
        }

        .card.card-soon {
            box-shadow: 0px 0px 7px rgb(250 0 0 / 40%);
        }

        .card.card-overdue {
            box-shadow: 0px 0px 7px rgb(200 0 0 / 70%);
        }

        .card-title {
            font-weight: 500;
            margin-bottom: 8px;
            color: #2c3e50;
        }

        .card-description {
            font-size: 13px;
            color: #7f8c8d;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .card-footer {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #ecf0f1;
        }

        .card-person {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #3498db;
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .card-person-icon {
            width: 18px;
            height: 18px;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
        }

        .card-actions {
            display: flex;
            gap: 5px;
        }

        .card-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            color: #95a5a6;
            font-size: 12px;
            transition: color 0.2s;
        }

        .card-btn:hover {
            color: #3498db;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 8px;
            padding: 30px 40px 30px 20px;
            max-width: 700px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
        }

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

        .modal-header h2 {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #2c3e50;
            margin-bottom: 5px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #2c3e50;
            font-weight: 500;
            font-size: 14px;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 10px;
            border: 1px solid #bdc3c7;
            border-radius: 4px;
            font-size: 14px;
            font-family: inherit;
        }

        .form-group input[type="color"] {
            width: 64px;
            height: 40px;
            padding: 3px;
            border-radius: 8px;
            cursor: pointer;
            border: 1px solid #bdc3c7;
            background: #fff;
        }

        .form-group input[type="color"]::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        .form-group input[type="color"]::-webkit-color-swatch {
            border: none;
            border-radius: 6px;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 80px;
        }

        .modal-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 20px;
        }

        .column-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 15px;
        }

        .column-item {
            display: flex;
            gap: 10px;
            align-items: center;
            padding: 6px 0;
            transition: opacity 0.2s;
        }

        .column-item.dragging {
            opacity: 0.4;
        }

        .column-item.drag-over {
            border-top: 2px solid #3498db;
        }

        .column-drag-handle {
            cursor: grab;
            font-size: 11px;
            letter-spacing: 0.3px;
            font-weight: 600;
            color: #95a5a6;
            user-select: none;
            padding: 0 4px;
            text-transform: uppercase;
        }

        .column-drag-handle:hover {
            color: #2c3e50;
        }

        .column-item input[type="text"] {
            flex: 1;
        }

        .column-done-label {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: #7f8c8d;
            white-space: nowrap;
            cursor: pointer;
            user-select: none;
        }

        .column-done-label:hover {
            color: #2c3e50;
        }

        .column-done-checkbox {
            width: auto;
            cursor: pointer;
        }

        .btn-remove {
            background: #e74c3c;
            color: white;
            padding: 8px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .btn-remove:hover {
            background: #c0392b;
        }

        .btn-add {
            background: #2ecc71;
            color: white;
        }

        .btn-add:hover {
            background: #27ae60;
        }

        /* Login Screen */
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .login-box {
            background: white;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            width: 100%;
            max-width: 400px;
        }

        .login-box h1 {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-align: center;
            margin-bottom: 30px;
            color: #2c3e50;
        }

        .app-container {
            display: none;
        }

        .app-container.active {
            display: block;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 10px 15px;
            background: #ecf0f1;
            border-radius: 6px;
            margin-bottom: 15px;
        }


        .user-info-clickable {
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s;
        }

        .user-info-clickable:hover {
            background: #e2e8f0;
        }



        .user-avatar {
            width: 40px;
            height: 40px;
            background: #3498db;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 18px;
        }

        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            display: block;
        }

        .user-details {
            flex: 1;
        }

        .user-name {
            font-weight: 600;
            color: #2c3e50;
        }

        .user-role {
            font-size: 12px;
            color: #7f8c8d;
        }

        .user-role.admin {
            color: #e74c3c;
            font-weight: 500;
        }

        .profile-upload-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .profile-current {
            margin-top: 10px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .profile-current img {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid #d1d5db;
            display: block;
        }

        .profile-image-remove {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 1px solid #d1d5db;
            background: #ffffff;
            color: #6b7280;
            cursor: pointer;
            font-size: 16px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .profile-image-remove:hover {
            color: #e11d48;
            border-color: #fda4af;
            background: #fff1f2;
        }

        .profile-upload-filename {
            font-size: 12px;
            color: #6b7280;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 240px;
        }

        .profile-upload-hint {
            display: block;
            margin-top: 6px;
            font-size: 11px;
            color: #7f8c8d;
        }

        #passwordModal .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .modal-close-btn {
            width: 30px;
            height: 30px;
            border: 1px solid #e5e7eb;
            background: #fff;
            border-radius: 999px;
            color: #6b7280;
            cursor: pointer;
            font-size: 20px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .modal-close-btn:hover {
            color: #111827;
            border-color: #cbd5e1;
            background: #f8fafc;
        }

        .btn-logout {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #e74c3c;
            color: white;
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }

        .btn-logout:hover {
            background: #c0392b;
        }

        .btn-logout .icon-btn {
            filter: brightness(0) invert(1);
        }

        .users-list {
            margin-top: 20px;
        }

        .user-item {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 6px;
            margin-bottom: 10px;
        }

        .user-item-info {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

        .user-item-avatar {
            width: 35px;
            height: 35px;
            background: #95a5a6;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }

        .user-item-avatar.admin {
            background: #e74c3c;
        }

        .user-item-details {
            flex: 1;
        }

        .user-item-name {
            font-weight: 500;
            color: #2c3e50;
        }

        .user-item-role {
            font-size: 12px;
            color: #7f8c8d;
        }

        .user-item-projects {
            font-size: 12px;
            color: #3498db;
            margin-top: 2px;
        }

        .user-item-projects-section {
            margin-top: 6px;
        }

        .user-projects-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
        }

        .user-project-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #e8f4fd;
            color: #2980b9;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
            border: 1px solid #bee5f7;
            white-space: nowrap;
        }

        .user-project-chip-remove {
            background: rgba(41, 128, 185, 0.2);
            border: none;
            color: #2980b9;
            cursor: pointer;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            padding: 0;
            line-height: 1;
            transition: background 0.15s;
        }

        .user-project-chip-remove:hover {
            background: #e74c3c;
            color: white;
        }

        .no-projects-hint {
            font-size: 11px;
            color: #95a5a6;
            font-style: italic;
        }

        .user-project-add-wrapper {
            position: relative;
            display: inline-block;
        }

        .user-project-add-btn {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            background: white;
            color: #43a047;
            border: 1px dashed #43a047;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
        }

        .user-project-add-btn:hover {
            background: #43a047;
            color: white;
            border-style: solid;
        }

        .user-project-dropdown {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            z-index: 1000;
            min-width: 240px;
            max-height: 260px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .user-project-search {
            padding: 8px 12px;
            border: none;
            border-bottom: 1px solid #eee;
            font-size: 13px;
            outline: none;
            width: 100%;
            box-sizing: border-box;
        }

        .user-project-search:focus {
            background: #fafffe;
        }

        .user-project-dropdown-list {
            overflow-y: auto;
            max-height: 200px;
        }

        .user-project-dropdown-item {
            padding: 8px 12px;
            cursor: pointer;
            font-size: 13px;
            border-bottom: 1px solid #f5f5f5;
            transition: background 0.1s;
        }

        .user-project-dropdown-item:hover {
            background: #e8f5e9;
        }

        .user-project-dropdown-item:last-child {
            border-bottom: none;
        }

        .user-project-dropdown-empty {
            padding: 12px;
            font-size: 12px;
            color: #95a5a6;
            text-align: center;
            font-style: italic;
        }

        .user-item-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
            align-self: flex-start;
            margin-top: 4px;
        }

        .checkbox-group {
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid #bdc3c7;
            border-radius: 4px;
            padding: 10px;
        }

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

        .checkbox-item:hover {
            background: #f8f9fa;
            border-radius: 4px;
        }

        .checkbox-item input[type="checkbox"] {
            width: auto;
        }

        .error-message {
            background: #fee;
            color: #c00;
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 15px;
            font-size: 14px;
        }

        .success-message {
            background: #efe;
            color: #060;
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 15px;
            font-size: 14px;
        }

        .permission-denied {
            text-align: center;
            padding: 40px;
            color: #7f8c8d;
        }

        /* Thread & Comments */
        .card-thread-btn {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 14px;
            padding: 2px 4px;
        }

        .card-thread-btn:hover {
            opacity: 0.7;
        }

        .thread-container {
            border-top: 1px solid #ecf0f1;
            margin-top: 15px;
            padding-top: 15px;
            max-height: 400px;
            overflow-y: auto;
        }

        .comment {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 10px;
            margin-bottom: 10px;
        }

        .comment-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .comment-author {
            font-weight: 600;
            color: #2c3e50;
            font-size: 13px;
        }

        .comment-time {
            font-size: 11px;
            color: #95a5a6;
        }

        .comment-body {
            font-size: 13px;
            color: #2c3e50;
            line-height: 1.5;
            word-wrap: break-word;
        }

        .mention {
            background: #e3f2fd;
            color: #1976d2;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: 500;
            cursor: pointer;
        }

        .mention:hover {
            background: #bbdefb;
        }

        .comment-input-container {
            margin-top: 10px;
            position: relative;
        }

        .comment-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #bdc3c7;
            border-radius: 4px;
            font-size: 13px;
            font-family: inherit;
            resize: vertical;
            min-height: 60px;
        }

        .comment-actions {
            display: flex;
            gap: 8px;
            margin-top: 8px;
            align-items: center;
        }

        .mention-dropdown {
            position: absolute;
            background: white;
            border: 1px solid #bdc3c7;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            max-height: 200px;
            overflow-y: auto;
            z-index: 1000;
            min-width: 200px;
        }

        .mention-item {
            padding: 8px 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .mention-item:hover {
            background: #f8f9fa;
        }

        .mention-avatar {
            width: 24px;
            height: 24px;
            background: #3498db;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 600;
        }

        .media-upload-btn {
            background: #95a5a6;
            color: white;
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .media-upload-btn:hover {
            background: #7f8c8d;
        }

        .media-preview {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
        }

        .media-item {
            position: relative;
            width: 80px;
            height: 80px;
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid #ecf0f1;
        }

        .media-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .media-item-remove {
            position: absolute;
            top: 2px;
            right: 2px;
            background: rgba(231, 76, 60, 0.9);
            color: white;
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .comment-media {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
        }

        .comment-media img {
            max-width: 200px;
            max-height: 150px;
            border-radius: 4px;
            cursor: pointer;
            border: 1px solid #ecf0f1;
        }

        .comment-media img:hover {
            opacity: 0.9;
        }

        /* Inbox */
        .inbox-btn {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #4b5563;
            color: white;
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            margin-left: 0;
        }

        .inbox-btn:hover {
            background: #374151;
        }

        .inbox-btn .icon-btn {
            filter: brightness(0) invert(1);
        }

        .inbox-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #e74c3c;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 600;
        }

        .notification-item {
            padding: 12px;
            border-bottom: 1px solid #ecf0f1;
            cursor: pointer;
            transition: background 0.2s;
        }

        .notification-item:hover {
            background: #f8f9fa;
        }

        .notification-item.unread {
            background: #e3f2fd;
        }

        .notification-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 5px;
        }

        .notification-author {
            font-weight: 600;
            color: #2c3e50;
            font-size: 13px;
        }

        .notification-time {
            font-size: 11px;
            color: #95a5a6;
        }

        .notification-body {
            font-size: 13px;
            color: #555;
        }

        .notification-context {
            font-size: 11px;
            color: #7f8c8d;
            margin-top: 5px;
        }

        .project-users-section {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #ecf0f1;
        }

        .project-users-section h3 {
            font-size: 14px;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .modal-large {
            max-width: 800px;
        }

        .thread-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #ecf0f1;
        }

        .thread-title {
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
        }

        /* Multiple Assignees */
        .card-assignees {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
            margin-top: 8px;
        }

        .assignee-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #3498db;
            color: white;
            padding: 5px 6px;
            border-radius: 18px;
            font-size: 11px;
            font-weight: 500;
        }

        .assignee-tag-icon {
            width: 20px;
            height: 20px;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
        }

        .assignee-tag-icon img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            display: block;
        }

        /* Autocomplete */
        .autocomplete-container {
            position: relative;
        }

        .autocomplete-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #bdc3c7;
            border-radius: 4px;
            font-size: 14px;
        }

        .autocomplete-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #bdc3c7;
            border-top: none;
            border-radius: 0 0 4px 4px;
            max-height: 200px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .autocomplete-item {
            padding: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid #ecf0f1;
        }

        .autocomplete-item:hover {
            background: #f8f9fa;
        }

        .autocomplete-item:last-child {
            border-bottom: none;
        }

        .selected-assignees {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
            min-height: 30px;
            padding: 5px;
            border: 1px solid #ecf0f1;
            border-radius: 4px;
            background: #f8f9fa;
        }

        .selected-assignee {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: #3498db;
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
        }

        .selected-assignee-remove {
            background: rgba(255,255,255,0.3);
            border: none;
            color: white;
            cursor: pointer;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            padding: 0;
        }

        .selected-assignee-remove:hover {
            background: rgba(255,255,255,0.5);
        }

        /* Card Dates */
        .card-dates {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-top: 8px;
            font-size: 11px;
            color: #7f8c8d;
        }

        .card-date-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .card-deadline {
            color: #e67e22;
            font-weight: 500;
        }

        .card-deadline.overdue {
            color: #e74c3c;
            font-weight: 600;
        }

        .card-deadline.soon {
            color: #f39c12;
            font-weight: 600;
        }

        .date-input-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .date-input-group input[type="date"] {
            flex: 1;
        }

        .clear-date-btn {
            padding: 8px 12px;
            background: #95a5a6;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }

        .clear-date-btn:hover {
            background: #7f8c8d;
        }

        /* Filter */
        .filter-container {
            display: flex;
            gap: 10px;
            align-items: center;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 6px;
            margin-bottom: 15px;
        }

        .filter-label {
            font-weight: 500;
            color: #2c3e50;
        }

        .filter-toggle {
            display: flex;
            gap: 5px;
        }

        .filter-btn {
            padding: 8px 16px;
            border: 1px solid #bdc3c7;
            background: white;
            color: #2c3e50;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }

        .filter-btn:hover {
            background: #ecf0f1;
        }

        .filter-btn.active {
            background: #3498db;
            color: white;
            border-color: #3498db;
        }

        /* Inbox Tabs */
        .inbox-tabs {
            display: flex;
            border-bottom: 2px solid #ecf0f1;
            margin-bottom: 15px;
        }

        .inbox-tab {
            padding: 12px 20px;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            color: #7f8c8d;
            font-weight: 500;
            transition: all 0.2s;
            position: relative;
        }

        .inbox-tab:hover {
            color: #2c3e50;
            background: #f8f9fa;
        }

        .inbox-tab.active {
            color: #3498db;
            border-bottom-color: #3498db;
        }

        .tab-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background: #e74c3c;
            color: white;
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 10px;
            font-weight: 600;
        }

        /* Gantt Diagram (Frappe Gantt) */
        .gantt-inline-container {
            padding: 20px;
        }

        .gantt-wrapper {
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .gantt-header-bar {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 12px 20px;
            border-bottom: 1px solid #ecf0f1;
            background: #f8f9fa;
            flex-wrap: wrap;
            gap: 10px;
        }

        .gantt-controls-row {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .gantt-view-modes {
            display: flex;
            gap: 4px;
        }

        .gantt-filter-modes {
            display: flex;
            gap: 4px;
        }

        .gantt-filter-btn {
            padding: 6px 14px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            color: #555;
        }

        .gantt-filter-btn:hover {
            background: #e8f5e9;
            border-color: #a5d6a7;
        }

        .gantt-filter-btn.active {
            background: #43a047;
            color: white;
            border-color: #43a047;
        }

        .gantt-date-range {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #555;
        }

        .gantt-date-range label {
            font-weight: 500;
        }

        .gantt-date-range input[type="date"] {
            padding: 4px 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 12px;
            color: #333;
            background: white;
        }

        .gantt-view-btn {
            padding: 6px 14px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            color: #555;
        }

        .gantt-view-btn:hover {
            background: #e3f2fd;
            border-color: #90caf9;
        }

        .gantt-view-btn.active {
            background: #1976d2;
            color: white;
            border-color: #1976d2;
        }

        #ganttContainer {
            padding-bottom: 20px;
        }

        /* Frappe Gantt creates its own .gantt-container with scroll */
        #ganttContainer .gantt-container {
            overflow-x: auto;
            overscroll-behavior-x: contain;
            width: 100%;
        }

        /* Frappe Gantt custom bar colors */
        .gantt-bar-overdue .bar {
            fill: #c0392b !important;
        }
        .gantt-bar-overdue .bar-progress {
            fill: #c0392b !important;
        }

        .gantt-bar-soon .bar {
            fill: #f39c12 !important;
        }
        .gantt-bar-soon .bar-progress {
            fill: #e67e22 !important;
        }

        .gantt-bar-hidden {
            display: none !important;
        }

        /* Frappe Gantt overrides for cleaner look */
        #ganttContainer .gantt .grid-header {
            fill: #f8f9fa;
        }

        #ganttContainer .gantt .bar-wrapper:hover .bar {
            filter: brightness(0.9);
        }

        #ganttContainer .gantt .bar-wrapper {
            cursor: pointer;
        }

        .gantt-empty {
            text-align: center;
            padding: 60px 20px;
            color: #7f8c8d;
        }

        .gantt-legend {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .gantt-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: #7f8c8d;
        }

        .gantt-legend-color {
            width: 20px;
            height: 12px;
            border-radius: 2px;
        }
        /* Papierkorb */
        .trash-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 6px;
            margin-bottom: 10px;
            border-left: 4px solid #e74c3c;
        }

        .trash-item-info {
            flex: 1;
            margin-right: 12px;
        }

        .trash-item-title {
            font-weight: 500;
            color: #2c3e50;
            margin-bottom: 4px;
        }

        .trash-item-meta {
            font-size: 11px;
            color: #7f8c8d;
        }

        .trash-item-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }

        /* Meilensteine */
        .milestone-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 6px;
            margin-bottom: 8px;
        }

        .milestone-color-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .milestone-item-info {
            flex: 1;
        }

        .milestone-item-name {
            font-weight: 500;
            color: #2c3e50;
        }

        .milestone-item-date {
            font-size: 12px;
            color: #7f8c8d;
        }

        /* Milestone info bar below Gantt */
        .gantt-milestones-bar {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            padding: 10px 20px;
            background: #fafafa;
            border-top: 1px solid #ecf0f1;
            font-size: 13px;
            color: #555;
        }

        .gantt-ms-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: white;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            color: #333;
            box-shadow: 0 1px 2px rgba(0,0,0,0.08);
        }

        .gantt-ms-chip small {
            color: #888;
        }

        /* Lightbox */
        .lightbox-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            cursor: pointer;
            align-items: center;
            justify-content: center;
        }

        .lightbox-overlay.active {
            display: flex;
        }

        .lightbox-overlay img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            object-fit: contain;
        }
    </style>
