* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* Anmelde-Seite Styles */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.login-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.login-form {
    text-align: left;
}

.login-form .login-input {
    padding: 15px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label { 
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: -2px;
    left: 2px;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
}

/* ============================================
   UNIFIED BUTTON SYSTEM
   ============================================ 
   
   Ein einheitliches Design-System für alle Buttons in der Anwendung.
   
   VERWENDUNG:
   -----------
   Alle Buttons erben automatisch die Base-Styles. Für Varianten 
   verwenden Sie die entsprechenden Modifier-Klassen:
   
   - .btn-primary / .login-btn / .add-project-btn / .add-user-btn
     Hauptaktionen (Erstellen, Hinzufügen, Login) - Lila (#667eea)
   
   - .btn-danger / .logout-btn / .delete-btn
     Gefährliche Aktionen (Löschen, Abmelden) - Rot (#dc3545)
   
   - .btn-success / .save-btn / .add-document-btn
     Erfolgsaktionen (Speichern, Bestätigen) - Grün (#28a745)
   
   - .btn-secondary / .cancel-btn / .close-editor-btn
     Sekundäre Aktionen (Abbrechen, Schließen) - Grau (#6c757d)
   
   - .btn-info / .refresh-btn / .download-btn
     Info-Aktionen (Aktualisieren, Herunterladen) - Türkis (#17a2b8)
   
   - .btn-warning
     Warnungen (Entsperren, Warnen) - Gelb (#ffc107)
   
   FEATURES:
   ---------
   - Einheitliches Padding (12px 20px)
   - Konsistenter Border-Radius (8px)
   - Smooth Transitions (0.3s)
   - Hover-Effekte (translateY + box-shadow)
   - Flex-Layout mit Icon-Gap (8px)
   - Responsive und barrierefrei
*/

/* Base Button Styles */
.btn, 
button:not([class*="close"]):not([class*="edit-project"]) {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}

/* Primary Button (Main Actions) */
.btn-primary,
.login-btn,
.add-project-btn,
.add-user-btn {
    background: #667eea;
    color: white;
}

.btn-primary:hover,
.login-btn:hover,
.add-project-btn:hover,
.add-user-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Danger Button (Delete, Logout) */
.btn-danger,
.logout-btn,
.delete-btn {
    background: #dc3545;
    color: white;
}

.btn-danger:hover,
.logout-btn:hover,
.delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Success Button (Save, Submit) */
.btn-success,
.save-btn,
.add-document-btn {
    background: #28a745;
    color: white;
}

.btn-success:hover,
.save-btn:hover,
.add-document-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Secondary Button (Cancel, Back) */
.btn-secondary,
.cancel-btn,
.close-editor-btn {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover,
.cancel-btn:hover,
.close-editor-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Info Button (Refresh, View) */
.btn-info,
.refresh-btn {
    background: #17a2b8;
    color: white;
}

.btn-info:hover,
.refresh-btn:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Warning Button */
.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Special: Login Button (Gradient) */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Special: Full Width Buttons in Sidebars */
.add-project-btn,
.add-user-btn {
    width: calc(100% - 40px);
    margin: 15px 20px;
}

/* Special: Download Button */
.download-btn {
    background: #17a2b8;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.download-btn:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

/* Special: Icon-Only Buttons */
.refresh-btn {
    padding: 10px 16px;
}

.refresh-btn.spinning i {
    animation: spin 1s linear infinite;
}

.demo-info {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.demo-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.demo-info code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Dashboard Styles */
#dashboardContainer {
    background: #f5f7fa;
    padding: 0;
    align-items: flex-start;
}

.dashboard-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
}

.dashboard-content {
    width: 100%;
    display: flex;
    flex: 1;
    min-height: calc(100vh - 80px);
}

/* Seitenleiste Styles */
.sidebar {
    width: 380px; /* Vergrößert von 300px für breitere Status-Labels */
    background: white;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px 20px 15px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h3 i {
    color: #667eea;
}

.projects-list {
    flex: 1;
    padding: 10px 0;
}

/* Projekt-Gruppen nach Benutzern */
.project-group {
    margin-bottom: 15px;
}

.project-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8b9aee 0%, #9b7ab8 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-group-header.unassigned {
    background: linear-gradient(135deg, #e66b76 0%, #d45562 100%);
}

.project-group-header:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-group-header.unassigned:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.project-group-header i {
    font-size: 0.85rem;
}

.project-group-header .project-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.project-group-items {
    background: #f8f9fa;
}

.project-group-items .project-item {
    border-left: 4px solid transparent;
}

.project-group-items .project-item:hover {
    background: #e9ecef;
}

.project-group-items .project-item.active {
    background: #f0f4ff;
    border-left-color: #667eea;
}

.project-item {
    padding: 12px 8px 12px 12px; /* Links weniger Padding für Handle */
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-item:hover {
    background: #f8f9fa;
}

.project-item.active {
    background: #f0f4ff;
    border-left-color: #667eea;
}

/* Drag Handle Styles */
.drag-handle {
    width: 24px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: #ccc;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.5;
    position: relative;
}

.drag-handle:hover {
    color: #667eea;
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle i {
    font-size: 1rem;
    pointer-events: none;
}

/* Prioritäts-Nummerierung */
.project-priority {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    font-weight: 600;
    color: #999;
    background: #f8f9fa;
    border-radius: 3px;
    padding: 2px 4px;
    min-width: 18px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.project-item:hover .project-priority {
    opacity: 1;
    color: #667eea;
}

/* Prioritäts-Anzeige */
.priority-display,
.priority-display-draggable {
    width: 32px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.priority-display-draggable {
    cursor: grab;
}

.priority-display-draggable:hover {
    cursor: grab;
}

.priority-display-draggable:active {
    cursor: grabbing;
}

.project-priority-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 3px 6px;
    min-width: 24px;
    text-align: center;
    pointer-events: none;
    transition: all 0.2s ease;
}

.project-priority-number.updating {
    transform: scale(1.4);
    color: #667eea;
    background: #e0e7ff;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}

.project-item:hover .project-priority-number {
    color: #667eea;
}

.priority-display-draggable:hover .project-priority-number {
    background: #e9ecef;
}

/* Drag States */
.project-item.dragging {
    opacity: 0.5;
    background: #e9ecef;
    cursor: grabbing;
}

/* Für alle User: Einheitliches Padding mit Platz für Prioritätsnummer */
.project-item {
    padding: 12px 8px 12px 12px;
}

.project-item.drag-over {
    background: #f0f4ff;
}

.project-item.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
    z-index: 10;
}

.project-item.drag-over-bottom {
    background: #f0f4ff;
}

.project-item.drag-over-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
    z-index: 10;
}

/* Projekt Content Wrapper */
.project-content {
    flex: 1;
    min-width: 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    width: 100%;
}

.project-info h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.project-info p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.project-status {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.project-status.planning {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.project-status.active {
    background: rgba(255, 193, 7, 0.15);
    color: #b8860b;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.project-status.on-hold {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Workflow-spezifische Farbklassen für Sidebar-Labels */
.project-status.upcoming {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.4);
}

.project-status.current {
    background: rgba(255, 193, 7, 0.15);
    color: #b8860b;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.project-status.completed {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

/* Benutzer-Badges (Zuweisungen) */
.assigned-users-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.user-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.65rem;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.user-badge:hover {
    transform: scale(1.15);
    z-index: 10;
}

/* Entfernt: project-stats (nicht mehr verwendet)
.project-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
}
*/

.project-progress {
    margin-top: 8px;
}

.project-progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.project-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

.header-content {
    width: 100%;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.dashboard-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

#welcomeUser {
    color: #666;
    font-weight: 500;
}

.dashboard-main {
    flex: 1;
    padding: 30px 20px;
    background: #f5f7fa;
}

/* Status-Leiste (neue horizontale Darstellung) */
.status-bar {
    display: flex;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    overflow: hidden;
}

.status-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.status-item:last-child {
    border-right: none;
}

.status-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.status-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.status-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.status-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

/* Status-Leiste Icons Farben */
.status-item.pending .status-icon {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
}

.status-item.running .status-icon {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.status-item.completed .status-icon {
    background: linear-gradient(135deg, #00cec9, #00b894);
}

.status-item.total .status-icon {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

/* Hover-Effekt für Status-Items */
.status-item.pending:hover {
    background-color: rgba(253, 203, 110, 0.1);
}

.status-item.running:hover {
    background-color: rgba(116, 185, 255, 0.1);
}

.status-item.completed:hover {
    background-color: rgba(0, 206, 201, 0.1);
}

.status-item.total:hover {
    background-color: rgba(162, 155, 254, 0.1);
}

/* Legacy stats-grid ausblenden (falls noch verwendet) */
.stats-grid {
    display: none; /* Ausgeblendet, da durch status-bar ersetzt */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.running {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-icon.completed {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-icon.failed {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.stat-content h3 {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

/* Aufgaben-Sektion */
.tasks-section {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.tasks-container {
    padding: 0;
}

/* Aufgaben-Items */
.task-item {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.task-item:hover {
    background: #f8f9fa;
}

.task-item:last-child {
    border-bottom: none;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.task-info h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.task-info p {
    color: #666;
    font-size: 0.9rem;
}

.task-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.task-status.running {
    background: #d4edda;
    color: #155724;
}

.task-status.completed {
    background: #d1ecf1;
    color: #0c5460;
}

.task-status.pending {
    background: #fff3cd;
    color: #856404;
}

.task-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.task-progress {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Workflow Styles */
.workflow-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.workflow-header {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workflow-header h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.workflow-header h3 i {
    color: #667eea;
}

.workflow-status {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.workflow-steps {
    padding: 30px;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 30px;
}

.workflow-step:last-child {
    margin-bottom: 0;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 20px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.workflow-step.completed .step-icon {
    background: #28a745 !important;
}

.workflow-step.current .step-icon {
    background: #ffc107 !important;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.3);
}

.workflow-step.upcoming .step-icon {
    background: #6c757d !important;
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-content h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.step-timestamp {
    color: #666;
    font-size: 0.85rem;
}

.step-dates {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.step-dates small {
    color: #666;
    font-size: 0.85rem;
}

.step-progress {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-progress .progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.step-progress .progress-fill-1 {
    height: 100%;
    background: linear-gradient(90deg, #75ff91, #027110);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.step-progress .progress-fill-2 {
    height: 100%;
    background: linear-gradient(90deg, #86bff4, #031cd9);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    min-width: 40px;
}

.step-connector {
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: calc(100% + 30px);
    background: #6c757d;
    opacity: 0.3;
    z-index: 1;
}

/* Dokumente-Sektion */
.documents-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 30px;
}

.documents-header {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.documents-header h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.documents-header h3 i {
    color: #667eea;
}

.documents-count {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.documents-list {
    padding: 0;
}

.document-item {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.document-item:hover {
    background: #f8f9fa;
}

.document-item:last-child {
    border-bottom: none;
}

.document-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.document-icon.pdf {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.document-icon.docx {
    background: rgba(43, 87, 154, 0.15);
    color: #2b579a;
}

.document-icon.xlsx {
    background: rgba(33, 115, 70, 0.15);
    color: #217346;
}

.document-icon.ppt {
    background: rgba(210, 71, 38, 0.15);
    color: #d24726;
}

.document-icon.image {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.document-icon.archive {
    background: rgba(253, 126, 20, 0.15);
    color: #fd7e14;
}

.document-icon.text {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.document-icon.dwg {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.document-icon.default {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.document-content {
    flex: 1;
    min-width: 0;
}

.document-content h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.document-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #999;
}

.document-meta i {
    margin-right: 5px;
}

.document-actions {
    display: flex;
    gap: 10px;
}

.download-btn {
    text-decoration: none;
}

.download-btn:hover {
    color: white;
    text-decoration: none;
}

.documents-empty {
    padding: 40px 25px;
    text-align: center;
    color: #666;
}

.documents-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.documents-empty h4 {
    margin-bottom: 10px;
    color: #999;
}

/* Editor-Modal */
.editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.editor-modal.hidden {
    display: none;
}

.editor-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideInScale 0.3s ease-out;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.editor-content {
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 140px); /* Abzüglich Header und Footer */
}

/* Editor-Sektion Anpassungen */
.editor-section {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin-top: 0;
}

.editor-header {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-header h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-header h3 i {
    color: #667eea;
}

.editor-form {
    padding: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}


.workflow-editor {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.workflow-editor h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.workflow-editor h4 i {
    color: #667eea;
}

.workflow-step-editor {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #e9ecef;
}

.workflow-step-editor.completed {
    border-left-color: #28a745;
    background: #f8fff9;
}

.workflow-step-editor.current {
    border-left-color: #ffc107;
    background: #fffef8;
}

.workflow-step-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.workflow-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.workflow-step-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.step-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.progress-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.progress-input {
    width: 80px !important;
    text-align: center;
}

.progress-slider {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    outline: none;
    appearance: none;
}

.progress-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.progress-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.documents-editor {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.documents-editor h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.documents-editor h4 i {
    color: #667eea;
}

.document-editor-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.document-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.document-editor-title {
    font-weight: 600;
    color: #333;
}

.remove-document-btn {
    padding: 4px 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-document-btn:hover {
    background: #c82333;
}

.add-document-btn {
    margin-top: 15px;
}

.editor-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.editor-actions-left {
    display: flex;
    gap: 10px;
}

.editor-actions-right {
    display: flex;
    gap: 10px;
}

/* Editor-specific button styles */
.close-editor-btn {
    padding: 8px 16px;
    gap: 6px;
}

.delete-btn,
.save-btn,
.cancel-btn {
    padding: 12px 24px;
    font-weight: 600;
}

/* Upload-Bereich */
.upload-area {
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.upload-area.drag-over {
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-content i {
    font-size: 2.5rem;
    color: rgba(102, 126, 234, 0.6);
}

.upload-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.upload-link:hover {
    color: #5a67d8;
}

/* Upload-Fortschritt */
.upload-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    margin-top: 10px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Dokument-Karten */
.document-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.document-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.document-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.document-icon {
    width: 40px;
    height: 40px;
    background: rgba(220, 53, 69, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-icon i {
    color: #dc3545;
    font-size: 1.2rem;
}

.document-details strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.document-details p {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #666;
}

.document-details small {
    color: #999;
    font-size: 0.8rem;
}

.document-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small i {
    font-size: 0.9rem;
}

/* Nachrichten */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message.show {
    transform: translateX(0);
}

.message-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.message-error {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.message-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

@media (max-width: 768px) {
    .login-card {
        padding: 30px 25px;
        margin: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Status-Leiste responsive */
    .status-bar {
        flex-direction: column;
        gap: 0;
    }
    
    .status-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        justify-content: center;
        text-align: center;
        padding: 15px;
    }
    
    .status-item:last-child {
        border-bottom: none;
    }
    
    .status-info {
        align-items: center;
    }
    
    .status-label {
        font-size: 0.8rem;
        text-align: center;
        white-space: normal;
    }
    
    .status-count {
        font-size: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .task-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .dashboard-content {
        flex-direction: column;
    }
    
    .dashboard-wrapper {
        min-height: initial;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .dashboard-main {
        padding: 20px 15px;
    }
    
    /* Editor-Modal Responsive */
    .editor-modal {
        padding: 10px;
        align-items: flex-start;
    }
    
    .editor-container {
        max-height: 95vh;
        margin-top: 10px;
    }
    
    .editor-form {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .editor-actions {
        padding: 15px 20px;
    }
    
    .editor-actions-left,
    .editor-actions-right {
        flex-direction: column;
        gap: 10px;
    }
    
    .workflow-step-editor {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 20px 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .section-header {
        padding: 20px;
    }
    
    .task-item {
        padding: 20px;
    }
}

/* ===== EDITOR-SPEZIFISCHE STYLES ===== */

.editor-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-id {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: auto;
}

.editor-form {
    padding: 0;
}

.form-section {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 6px 10px 6px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Workflow Steps Editor */
.workflow-steps-editor {
    display: grid;
    gap: 20px;
}

.step-editor-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.step-editor-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.step-editor-header {
    background: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e9ecef;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.step-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.step-number {
    color: #666;
    font-size: 0.85rem;
}

.step-editor-content {
    padding: 20px;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    position: relative;
    padding-left: 35px;
    -webkit-user-select: none;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.checkbox-label:hover::before {
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + ::before {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg) scale(0);
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transition: transform 0.2s ease;
}

.checkbox-label:has(input[type="checkbox"]:checked)::before {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-label:has(input[type="checkbox"]:checked)::after {
    transform: translateY(-60%) rotate(45deg) scale(1);
}

.checkbox-label:has(input[type="checkbox"]:focus)::before {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Benutzer-Zuweisungs-Gruppe */
.user-assignment-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.user-assignment-group .checkbox-label {
    margin: 0;
    padding: 8px 12px;
    padding-left: 40px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    transition: all 0.2s ease;
}

.user-assignment-group .checkbox-label:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.user-assignment-group .checkbox-label::before {
    left: 12px;
}

.user-assignment-group .checkbox-label::after {
    left: 19px;
}

.progress-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-input-group input[type="range"] {
    flex: 1;
}

.progress-value {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

/* Dokumente Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.document-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.document-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.document-icon {
    width: 40px;
    height: 40px;
    background: #dc3545;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.document-details strong {
    display: block;
    color: #333;
    margin-bottom: 4px;
}

.document-details p {
    margin: 0 0 4px 0;
    color: #666;
    font-size: 0.9rem;
}

.document-details small {
    color: #888;
    font-size: 0.8rem;
}

/* Form Actions */
.form-actions {
    padding: 25px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e9ecef;
}

.action-buttons-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Button Styles - Konsistent mit Status-Buttons */
.btn-primary {
    padding: 12px 24px;
    background: rgba(0, 123, 255, 0.2);
    color: #0056b3;
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
    color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.3);
    border-color: rgba(108, 117, 125, 0.5);
    color: #495057;
    transform: translateY(-1px);
}

.btn-success {
    padding: 12px 24px;
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-success:hover {
    background: rgba(40, 167, 69, 0.25);
    border-color: rgba(40, 167, 69, 0.6);
    color: #155724;
    transform: translateY(-1px);
}

.btn-danger {
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.15);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 0.25);
    border-color: rgba(220, 53, 69, 0.6);
    color: #721c24;
    transform: translateY(-1px);
}

.btn-small {
    padding: 8px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-small:hover {
    background: #5a6fd8;
    color: white;
}

/* Upload-Bereich */
.upload-area {
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.upload-area.drag-over {
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-content i {
    font-size: 2.5rem;
    color: rgba(102, 126, 234, 0.6);
}

.upload-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.upload-link:hover {
    color: #5a67d8;
}

/* Upload-Fortschritt */
.upload-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    margin-top: 10px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Dokumente-Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.no-documents {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 20px;
}

/* Dokument-Karten */
.document-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.document-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.document-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.document-icon {
    width: 40px;
    height: 40px;
    background: rgba(220, 53, 69, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-icon i {
    color: #dc3545;
    font-size: 1.2rem;
}

.document-details strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.document-details p {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #666;
}

.document-details small {
    color: #999;
    font-size: 0.8rem;
}

.document-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small i {
    font-size: 0.9rem;
}

/* Nachrichten */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message.show {
    transform: translateX(0);
}

.message-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.message-error {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.message-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

/* Responsive Design für Dokumente */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .document-actions {
        align-self: flex-end;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .section-header {
        padding: 15px 20px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Drag-Handle auf Mobile sichtbarer */
    .drag-handle {
        opacity: 1;
        width: 32px;
    }
    
    .project-item {
        padding: 12px 6px 12px 8px;
    }
}

/* Editor Header Anpassungen */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.project-id-header {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Editor Back Button - Dashboard Style */
.editor-back-btn {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.editor-back-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    color: white;
}

/* Editor Save Button - Dashboard Style */
.editor-save-section {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editor-save-btn {
    width: 100%;
    padding: 15px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.editor-save-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.editor-delete-btn {
    width: 100%;
    padding: 15px 25px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.editor-delete-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Editor Layout Anpassungen */
.editor-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.editor-section .section-header {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    padding-right: 350px;
    margin: 20px 0;
}

.editor-section .section-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
}

.editor-section .section-header h2 i {
    color: #667eea;
}

.editor-form .section-header-actions {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.editor-form .section-header-actions button {
    white-space: nowrap;
    margin: 0;
    padding: 12px 40px;
}

.editor-form {
    padding: 30px;
}

/* Form Section Styling */
.form-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #444;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.form-section h3 i {
    color: #667eea;
}

/* Status-Leiste für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .status-bar {
        margin-bottom: 20px;
    }
    
    .status-item {
        padding: 12px;
    }
    
    .status-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .status-label {
        font-size: 0.75rem;
    }
    
    .status-count {
        font-size: 1.3rem;
    }
}

/* Avatar Color Picker Styles */
.avatar-color-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.avatar-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.avatar-preview-small {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
}

.avatar-color-controls {
    flex: 1;
}

.avatar-color-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.avatar-color-label {
    margin: 0;
    min-width: 70px;
}

.avatar-color-picker {
    width: 80px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
}

.avatar-gradient-select {
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 40px;
}

/* Responsive Editor Header */
@media (max-width: 768px) {
    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .project-id-header {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    .editor-back-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .editor-save-section {
        bottom: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
    }
    
    .editor-save-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
