@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

        :root {
            --primary: #ef4444;
            --primary-dark: #dc2626;
            --accent: #f97316;
            --dark-bg: #0c0c14;
            --card-bg: #14141f;
            --card-hover: #1c1c2d;
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --border: #1e1e30;
            --border-light: #2a2a40;
            --success: #10b981;
            --warning: #f59e0b;
            --error: #ef4444;
            --gradient-start: #ef4444;
            --gradient-end: #f97316;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            background: var(--dark-bg);
            color: var(--text-primary);
            overflow-x: hidden;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        body::-webkit-scrollbar {
            display: none;
        }

        .page-transition {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark-bg);
            z-index: 10000;
            display: none;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .page-transition.active {
            display: block;
            opacity: 1;
        }

        .matrix-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark-bg);
        }

        .hacker-terminal {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            max-width: 800px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 24px;
            font-family: 'Courier New', monospace;
            color: var(--text-secondary);
        }

        .terminal-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
        }

        .terminal-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .terminal-dot:nth-child(1) {
            background: #ef4444;
        }

        .terminal-dot:nth-child(2) {
            background: #f59e0b;
        }

        .terminal-dot:nth-child(3) {
            background: #10b981;
        }

        .terminal-title {
            font-size: 13px;
            letter-spacing: 0.5px;
            color: var(--text-muted);
            margin-left: auto;
        }

        .terminal-content {
            font-size: 14px;
            line-height: 1.6;
        }

        .terminal-line {
            margin: 6px 0;
            opacity: 0;
            animation: fadeInLine 0.3s forwards;
        }

        @keyframes fadeInLine {
            to {
                opacity: 1;
            }
        }

        .cursor {
            display: inline-block;
            width: 8px;
            height: 14px;
            background: var(--primary);
            animation: blink 0.8s infinite;
        }

        @keyframes blink {

            0%,
            50% {
                opacity: 1;
            }

            51%,
            100% {
                opacity: 0;
            }
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: var(--border);
            border-radius: 4px;
            margin: 12px 0;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
            width: 0%;
            animation: fillProgress 3s forwards;
        }

        @keyframes fillProgress {
            to {
                width: 100%;
            }
        }

        #login-page {
            display: block;
        }

        #admin-page {
            display: none;
        }

        .background {
            position: fixed;
            inset: 0;
            z-index: -1;
            background: var(--dark-bg);
        }

        .gradient-orb {
            display: none;
        }

        .grid-overlay {
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(rgba(239, 68, 68, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(239, 68, 68, 0.02) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none;
            z-index: -1;
        }

        .container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .content-wrapper {
            width: 100%;
            max-width: 1300px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 5rem;
            align-items: center;
        }

        .guild-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            margin-bottom: 2rem;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .guild-badge::before {
            content: '';
            width: 6px;
            height: 6px;
            background: var(--primary);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        h1 {
            font-size: clamp(3rem, 7vw, 5rem);
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .tagline {
            font-size: clamp(1rem, 1.5vw, 1.125rem);
            color: var(--text-muted);
            margin-bottom: 2.5rem;
            font-weight: 400;
        }

        /* RANG VERWALTUNG OVERLAY */
        .rang-verwaltung-overlay {
            position: fixed;
            inset: 0;
            background: rgba(12, 12, 20, 0.98);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 2rem;
            backdrop-filter: blur(8px);
        }

        .rang-verwaltung-overlay.active {
            display: flex;
        }

        .rang-verwaltung-container {
            width: 95%;
            max-width: 1400px;
            height: 90vh;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
        }

        .rang-verwaltung-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent);
        }

        .rang-verwaltung-title {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .close-rang-verwaltung-btn {
            width: 44px;
            height: 44px;
            background: var(--card-hover);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .close-rang-verwaltung-btn:hover {
            background: var(--error);
            border-color: var(--error);
            transform: rotate(90deg);
        }

        .rang-verwaltung-content {
            flex: 1;
            padding: 2rem;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .rang-verwaltung-content::-webkit-scrollbar {
            display: none;
        }

        .rang-list {
            display: grid;
            gap: 1rem;
        }

        .rang-item {
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.5rem;
            display: grid;
            grid-template-columns: 100px 1fr auto;
            gap: 1.5rem;
            align-items: center;
            transition: all 0.2s;
        }

        .rang-item:hover {
            border-color: var(--primary);
        }

        .rang-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-align: center;
        }

        .rang-name-input {
            width: 100%;
            padding: 0.75rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 0.875rem;
            outline: none;
            transition: all 0.2s;
        }

        .rang-name-input:focus {
            border-color: var(--primary);
        }

        .rang-actions {
            display: flex;
            gap: 0.75rem;
        }

        .rang-permissions-btn,
        .rang-delete-btn {
            padding: 0.75rem 1.25rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .rang-permissions-btn {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
        }

        .rang-permissions-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
        }

        .rang-delete-btn {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: var(--error);
        }

        .rang-delete-btn:hover {
            background: rgba(239, 68, 68, 0.2);
        }

        .add-rang-btn {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border: none;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
            transition: all 0.2s;
        }

        .add-rang-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
        }

        /* PERMISSIONS MODAL */
        .permissions-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: 2rem;
        }

        .permissions-modal-overlay.active {
            display: flex;
        }

        .permissions-modal {
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
        }

        .permissions-modal-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .permissions-modal-title {
            font-size: 1.25rem;
            font-weight: 700;
        }

        .permissions-modal-close {
            width: 32px;
            height: 32px;
            background: var(--error);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 1.25rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .permissions-modal-close:hover {
            background: #dc2626;
        }

        .permissions-modal-body {
            padding: 2rem;
            overflow-y: auto;
            max-height: calc(80vh - 180px);
        }

        .permissions-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        .permission-item {
            background: var(--dark-bg);
            border: 1px solid var(--border);
            padding: 0.75rem 1rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
            user-select: none;
        }

        .permission-item:hover {
            background: var(--card-hover);
            border-color: var(--primary);
        }

        .permission-item.active {
            background: rgba(16, 185, 129, 0.1);
            border-color: var(--success);
        }

        .permission-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s;
        }

        .permission-item.active .permission-checkbox {
            background: var(--success);
            border-color: var(--success);
        }

        .permission-checkbox::after {
            content: '✓';
            color: white;
            font-size: 14px;
            font-weight: 700;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .permission-item.active .permission-checkbox::after {
            opacity: 1;
        }

        .permission-label {
            font-size: 0.875rem;
            color: var(--text-primary);
        }

        .permissions-modal-footer {
            padding: 1.5rem 2rem;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 1rem;
        }

        .permissions-save-btn {
            flex: 1;
            padding: 0.875rem;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .permissions-save-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
        }

        /* ADMIN LEVEL VERWALTUNG */
        .admin-level-verwaltung-overlay {
            position: fixed;
            inset: 0;
            background: rgba(12, 12, 20, 0.98);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 2rem;
            backdrop-filter: blur(8px);
        }

        .admin-level-verwaltung-overlay.active {
            display: flex;
        }

        .admin-level-container {
            width: 95%;
            max-width: 1200px;
            height: 90vh;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
        }

        .admin-level-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent);
        }

        .admin-level-title {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .close-admin-level-btn {
            width: 44px;
            height: 44px;
            background: var(--card-hover);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .close-admin-level-btn:hover {
            background: var(--error);
            border-color: var(--error);
            transform: rotate(90deg);
        }

        .admin-level-content {
            flex: 1;
            padding: 2rem;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .admin-level-content::-webkit-scrollbar {
            display: none;
        }

        .admin-level-list {
            display: grid;
            gap: 1.5rem;
        }

        .admin-level-item {
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 2rem;
            transition: all 0.2s;
        }

        .admin-level-item:hover {
            border-color: var(--primary);
        }

        .admin-level-number {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .admin-level-permissions {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        .admin-level-permission-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .admin-level-permission-list {
            list-style: none;
            display: grid;
            gap: 0.5rem;
        }

        .admin-level-permission-list li {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .admin-level-permission-list li::before {
            content: '✓';
            color: var(--success);
            font-weight: 700;
            font-size: 1rem;
        }

        .auth-section {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            max-width: 400px;
        }

        .auth-btn {
            position: relative;
            padding: 1rem 1.5rem;
            border-radius: 10px;
            border: none;
            font-weight: 600;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .auth-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
        }

        .btn-discord {
            background: #5865f2;
            color: #fff;
        }

        .btn-discord:hover {
            background: #4752c4;
        }

        .auth-icon {
            width: 20px;
            height: 20px;
        }

        .content-right {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .guild-showcase {
            position: relative;
            width: 100%;
            max-width: 500px;
        }

        .showcase-card {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: 0 20px 60px rgba(239, 68, 68, 0.15);
        }

        .guild-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .flag-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('images/SAHPM.jpg') center/cover no-repeat;
            opacity: 0.05;
            z-index: -1;
            display: none;
        }

        .admin-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark-bg);
            z-index: -2;
            display: none;
        }

        header {
            background: var(--card-bg);
            border-bottom: 1px solid var(--border);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 18px;
            color: white;
        }

        .logo-text {
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        nav {
            display: flex;
            gap: 0.5rem;
        }

        nav a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.2s;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-weight: 500;
        }

        nav a:hover {
            color: var(--text-primary);
            background: var(--card-hover);
        }

        .user-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-avatar {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border-radius: 50%;
            border: 2px solid var(--border);
            background-size: cover;
            background-position: center;
        }

        .user-info {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .user-name {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .logout {
            color: var(--error);
            font-size: 0.75rem;
            cursor: pointer;
            text-decoration: none;
            transition: opacity 0.2s;
            font-weight: 500;
        }

        .logout:hover {
            opacity: 0.8;
        }

        .main-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 80px);
            padding: 3rem 2rem;
        }

        .profile-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .profile-title {
            font-size: 2.5rem;
            font-weight: 600;
            letter-spacing: 1px;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .level-badge {
            display: inline-block;
            background: var(--card-bg);
            border: 1px solid var(--border);
            padding: 0.5rem 1.5rem;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            color: var(--text-secondary);
        }

        .time-display {
            position: absolute;
            top: 120px;
            right: 80px;
            font-size: 2.5rem;
            font-weight: 300;
            letter-spacing: 2px;
            font-variant-numeric: tabular-nums;
            color: var(--text-secondary);
        }

        .search-bar {
            width: 100%;
            max-width: 500px;
            margin-bottom: 3rem;
        }

        .search-input {
            width: 100%;
            padding: 0.875rem 1.25rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 0.9375rem;
            outline: none;
            transition: all 0.2s;
        }

        .search-input::placeholder {
            color: var(--text-muted);
        }

        .search-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        .menu-section {
            width: 100%;
            max-width: 1000px;
        }

        .menu-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            letter-spacing: 0.25px;
        }

        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .menu-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.5rem 1.25rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 1rem;
            position: relative;
            overflow: hidden;
        }

        .menu-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .menu-card:hover {
            background: var(--card-hover);
            border-color: var(--border-light);
            transform: translateY(-4px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .menu-card:hover::before {
            opacity: 1;
        }

        .menu-icon {
            font-size: 1.75rem;
            opacity: 0.9;
        }

        .menu-text {
            font-size: 0.9375rem;
            font-weight: 500;
            line-height: 1.4;
            color: var(--text-secondary);
        }

        .employee-overlay {
            position: fixed;
            inset: 0;
            background: rgba(12, 12, 20, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 2rem;
            backdrop-filter: blur(4px);
        }

        .employee-overlay.active {
            display: flex;
        }

        .employee-list-card {
            width: 95%;
            max-width: 1600px;
            height: 90vh;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            display: grid;
            grid-template-columns: 350px 1fr;
            overflow: hidden;
        }

        .list-sidebar {
            background: rgba(12, 12, 20, 0.5);
            padding: 2rem;
            overflow-y: auto;
            border-right: 1px solid var(--border);
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .list-sidebar::-webkit-scrollbar {
            display: none;
        }

        .sidebar-header h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            letter-spacing: 1px;
        }

        .employee-count {
            color: var(--text-muted);
            font-size: 0.875rem;
            margin-bottom: 1.5rem;
        }

        .filter-section,
        .search-section,
        .sort-section {
            margin-bottom: 1.5rem;
        }

        .filter-section label,
        .search-section label,
        .sort-section label {
            display: block;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .filter-select,
        .search-list-input {
            width: 100%;
            padding: 0.75rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 0.875rem;
            outline: none;
            transition: all 0.2s;
        }

        .filter-select:focus,
        .search-list-input:focus {
            border-color: var(--primary);
        }

        .reset-filter-btn {
            width: 100%;
            padding: 0.75rem;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
            transition: all 0.2s;
        }

        .reset-filter-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
        }

        .list-content {
            position: relative;
            padding: 2rem;
            overflow-y: auto;
            background: var(--dark-bg);
        }

        .list-content::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.03), transparent);
            pointer-events: none;
        }

        .close-list-btn {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 40px;
            height: 40px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            transition: all 0.2s;
        }

        .close-list-btn:hover {
            background: var(--error);
            border-color: var(--error);
        }

        .employee-cards-container {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .employee-list-item {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.5rem;
            display: grid;
            grid-template-columns: auto auto 1fr auto auto;
            gap: 1.5rem;
            align-items: center;
            transition: all 0.2s;
            cursor: pointer;
        }

        .employee-list-item:hover {
            transform: translateX(5px);
            border-color: var(--primary);
            box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
        }

        .employee-rank-badge {
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.875rem;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .rank-director {
            background: linear-gradient(135deg, #991b1b, #b91c1c);
            color: white;
        }

        .rank-deputy {
            background: linear-gradient(135deg, #7c2d12, #9a3412);
            color: white;
        }

        .rank-assistant {
            background: linear-gradient(135deg, #1e3a8a, #1e40af);
            color: white;
        }

        .rank-default {
            background: var(--card-hover);
            color: var(--text-secondary);
        }

        .employee-info {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .employee-name {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .employee-passid {
            font-size: 0.875rem;
            color: var(--text-muted);
        }

        .employee-level-badge {
            padding: 0.5rem 1rem;
            background: var(--card-hover);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .employee-status-badge {
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
        }

        .status-badge-onboarding {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }

        .status-badge-angestellt {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
        }

        .status-badge-suspended {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
        }

        .status-badge-gekuendigt {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .employee-avatar {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.125rem;
            color: white;
        }

        .add-employee-modal,
        .edit-employee-modal,
        .orga-modal {
            width: 90%;
            max-width: 900px;
            max-height: 85vh;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
        }

        .add-employee-modal {
            max-width: 720px;
            border: 1px solid rgba(239, 68, 68, 0.2);
            border-radius: 20px;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(239, 68, 68, 0.05);
        }

        .add-employee-modal .modal-header {
            padding: 2rem 2.5rem;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(249, 115, 22, 0.04));
            border-bottom: 1px solid rgba(239, 68, 68, 0.15);
        }

        .add-employee-modal .modal-title {
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .add-employee-modal .modal-body {
            padding: 2rem 2.5rem;
        }

        .add-employee-modal .form-section {
            background: rgba(12, 12, 20, 0.4);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .add-employee-modal .form-section-title {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--primary);
            margin-bottom: 1.25rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
        }

        .add-employee-modal .form-input,
        .add-employee-modal .form-select {
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 0.85rem 1rem;
            transition: all 0.25s ease;
        }

        .add-employee-modal .form-input:focus,
        .add-employee-modal .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
            transform: translateY(-1px);
        }

        .add-employee-modal .form-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-secondary);
            letter-spacing: 0.3px;
        }

        .add-employee-modal .modal-actions {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
            gap: 0.75rem;
        }

        .add-employee-modal .btn {
            border-radius: 10px;
            padding: 0.9rem 1.25rem;
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .add-employee-modal .btn-primary {
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
        }

        .add-employee-modal .btn-primary:hover {
            box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
        }

        .add-employee-modal .btn-copy {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.3);
            color: #60a5fa;
        }

        .add-employee-modal .btn-copy:hover {
            background: rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.5);
        }

        /* Rang Change Copy Button */
        .rang-change-row {
            display: flex;
            align-items: flex-end;
            gap: 0.5rem;
        }

        .rang-change-row .form-group {
            flex: 1;
        }

        .btn-rang-copy {
            height: 42px;
            min-width: 42px;
            padding: 0 0.75rem;
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.3);
            border-radius: 10px;
            color: #60a5fa;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            transition: all 0.25s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .btn-rang-copy:hover {
            background: rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.5);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        }

        .btn-rang-copy svg {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
        }

        .edit-employee-modal {
            width: 100%;
            max-width: none;
            height: 100vh;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 0;
            display: grid;
            grid-template-columns: 1fr 450px;
            overflow: hidden;
        }

        .modal-content-main {
            padding: 2rem;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .modal-content-main::-webkit-scrollbar {
            display: none;
        }

        .modal-header-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 2rem;
        }

        .employee-header-info {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .employee-header-avatar {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.5rem;
            color: white;
        }

        .employee-header-details h2 {
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }

        .employee-header-meta {
            font-size: 0.875rem;
            color: var(--text-muted);
        }

        .employee-header-meta span {
            margin-right: 1rem;
        }

        .close-modal-btn {
            width: 40px;
            height: 40px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .close-modal-btn:hover {
            background: var(--error);
            border-color: var(--error);
        }

        .info-grid {
            margin-bottom: 1.5rem;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
        }

        .info-box {
            padding: 1rem;
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
        }

        .info-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 0.25rem;
        }

        .info-value {
            font-size: 1rem;
            font-weight: 600;
        }

        .form-section {
            margin-bottom: 2rem;
        }

        .form-section-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .form-group.full-width {
            grid-column: span 2;
        }

        .form-label {
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .form-input,
        .form-select,
        .form-textarea {
            padding: 0.75rem;
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 0.875rem;
            outline: none;
            transition: all 0.2s;
            font-family: inherit;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        .form-textarea {
            resize: vertical;
            min-height: 100px;
        }

        .modal-actions {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
        }

        .btn {
            flex: 1;
            padding: 0.875rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-secondary {
            background: var(--card-bg);
            border: 1px solid var(--border);
            color: var(--text-secondary);
        }

        .btn-secondary:hover {
            background: var(--card-hover);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
        }

        .btn-copy {
            background: var(--card-hover);
            border: 1px solid var(--border);
            color: var(--text-primary);
        }

        .btn-copy:hover {
            background: var(--border-light);
        }

        .btn-danger {
            background: var(--error);
            color: white;
        }

        .btn-danger:hover {
            background: #dc2626;
        }

        .modal-header {
            padding: 2rem;
            border-bottom: 1px solid var(--border);
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .modal-body {
            padding: 2rem;
            overflow-y: auto;
            max-height: calc(85vh - 200px);
        }

        .status-dropdown {
            padding: 0.75rem;
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 0.875rem;
            font-weight: 600;
            outline: none;
            transition: all 0.2s;
        }

        .status-dropdown.status-onboarding {
            border-color: #3b82f6;
            background: rgba(59, 130, 246, 0.1);
        }

        .status-dropdown.status-angestellt {
            border-color: #10b981;
            background: rgba(16, 185, 129, 0.1);
        }

        .status-dropdown.status-suspended {
            border-color: #f59e0b;
            background: rgba(245, 158, 11, 0.1);
        }

        .status-dropdown.status-gekuendigt {
            border-color: #ef4444;
            background: rgba(239, 68, 68, 0.1);
        }

        .notification {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            padding: 1rem 1.5rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
            z-index: 10000;
            font-weight: 500;
            animation: slideIn 0.3s ease;
        }

        .notification.success {
            border-color: var(--success);
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
        }

        .notification.error {
            border-color: var(--error);
            background: rgba(239, 68, 68, 0.1);
            color: var(--error);
        }

        .notification.warning {
            border-color: var(--warning);
            background: rgba(245, 158, 11, 0.1);
            color: var(--warning);
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }

            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        #notificationContainer {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .edit-sidebar {
            background: var(--dark-bg);
            border-left: 1px solid var(--border);
            padding: 2rem;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .edit-sidebar::-webkit-scrollbar {
            display: none;
        }

        .sidebar-section {
            margin-bottom: 2rem;
        }

        .sidebar-section-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .action-btn {
            width: 100%;
            padding: 0.875rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-secondary);
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            transition: all 0.2s;
            font-size: 0.875rem;
        }

        .action-btn:hover {
            background: var(--card-hover);
            border-color: var(--border-light);
        }

        .action-btn.primary {
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border-color: transparent;
            color: white;
        }

        .action-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
        }

        .action-btn.danger {
            background: var(--error);
            border-color: var(--error);
            color: white;
        }

        .action-btn.danger:hover {
            background: #dc2626;
        }

        .profile-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.5rem;
        }

        .profile-avatar-large {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 2rem;
            color: white;
            margin: 0 auto 1rem;
        }

        .profile-name-large {
            text-align: center;
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .profile-meta {
            text-align: center;
            font-size: 0.875rem;
            color: var(--text-muted);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .stat-box {
            background: var(--dark-bg);
            padding: 0.75rem;
            border-radius: 8px;
            text-align: center;
        }

        .stat-value {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.25rem;
        }

        .stat-label {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .eintraege-section {
            margin-top: 1.5rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1rem;
        }

        .eintraege-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .eintraege-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .eintraege-count {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            color: white;
            border-radius: 4px;
            font-weight: 600;
        }

        .eintraege-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            max-height: 300px;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .eintraege-list::-webkit-scrollbar {
            display: none;
        }

        .eintraege-item {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 0.875rem;
            transition: all 0.2s;
            margin-bottom: 0.5rem;
        }

        .eintraege-item:hover {
            background: var(--card-hover);
            transform: translateX(3px);
        }

        .eintraege-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .eintraege-kategorie {
            font-weight: 600;
            color: var(--primary);
            font-size: 0.875rem;
        }

        .eintraege-date {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .eintraege-date.success {
            color: var(--success);
            font-weight: 600;
        }

        .eintraege-date.error {
            color: var(--error);
            font-weight: 600;
        }

        .eintraege-notiz {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .eintraege-ersteller {
            margin-top: 0.5rem;
            font-size: 0.75rem;
            color: var(--text-muted);
            font-style: italic;
        }

        .orga-entry-overlay {
            position: fixed;
            inset: 0;
            background: rgba(12, 12, 20, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 2rem;
        }

        .orga-entry-overlay.active {
            display: flex;
        }

        .orga-entry-modal {
            width: 90%;
            max-width: 600px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
        }

        .ausbildung-overlay {
            position: fixed;
            inset: 0;
            background: rgba(12, 12, 20, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 2rem;
        }

        .ausbildung-overlay.active {
            display: flex;
        }

        .ausbildung-modal {
            width: 90%;
            max-width: 700px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
        }

        .ausbildung-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .ausbildung-buttons button {
            flex: 1;
            padding: 0.875rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-cancel {
            background: var(--card-bg);
            border: 1px solid var(--border);
            color: var(--text-secondary);
        }

        .btn-cancel:hover {
            background: var(--card-hover);
        }

        .btn-save {
            background: var(--success);
            color: white;
        }

        .btn-save:hover {
            background: #059669;
        }

        .employee-summary-overlay {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10000;
            padding: 2rem;
            pointer-events: none;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: flex-start;
            justify-content: center;
        }

        .employee-summary-popup {
            background: var(--card-bg);
            border: 2px solid var(--primary);
            border-radius: 16px;
            padding: 2rem;
            min-width: 600px;
            max-width: 800px;
            box-shadow: 0 20px 60px rgba(239, 68, 68, 0.3);
            opacity: 0;
            transform: translateY(-20px);
            animation: slideInSummary 0.4s ease forwards;
            pointer-events: all;
        }

        @keyframes slideInSummary {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideOutSummary {
            from {
                opacity: 1;
                transform: translateY(0);
            }

            to {
                opacity: 0;
                transform: translateY(-20px);
            }
        }

        .summary-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }

        .summary-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: 0.5px;
        }

        .summary-close-btn {
            width: 32px;
            height: 32px;
            background: var(--error);
            border: none;
            border-radius: 6px;
            color: white;
            font-size: 1.25rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .summary-close-btn:hover {
            background: #dc2626;
        }

        .summary-content {
            font-family: 'Courier New', monospace;
            background: var(--dark-bg);
            padding: 1.5rem;
            border-radius: 8px;
            border: 1px solid var(--border);
            margin-bottom: 1rem;
            line-height: 1.8;
            color: var(--text-primary);
            font-size: 0.9rem;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .summary-actions {
            display: flex;
            gap: 1rem;
        }

        .summary-copy-btn {
            flex: 1;
            padding: 0.875rem;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.2s;
        }

        .summary-copy-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
        }

        .summary-copy-btn.copied {
            background: var(--success);
        }

        .termination-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            max-width: 700px;
            background: var(--card-bg);
            border: 2px solid var(--error);
            border-radius: 16px;
            padding: 2rem;
            z-index: 10001;
            display: none;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(239, 68, 68, 0.3);
        }

        .termination-popup.active {
            display: block;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translate(-50%, -60%);
            }

            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        .termination-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--error);
        }

        .termination-header h3 {
            font-size: 1.5rem;
            color: var(--error);
            font-weight: 700;
        }

        .termination-close-btn {
            width: 32px;
            height: 32px;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--text-primary);
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .termination-close-btn:hover {
            background: var(--error);
            border-color: var(--error);
        }

        .termination-content {
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .termination-field {
            margin-bottom: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .termination-field:last-child {
            margin-bottom: 0;
        }

        .termination-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-secondary);
        }

        /* ===== CUSTOM DROPDOWN STYLING ===== */
        .custom-dropdown {
            position: relative;
            width: 100%;
            user-select: none;
        }

        .custom-dropdown-selected {
            width: 100%;
            padding: 0.75rem 1rem;
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .custom-dropdown-selected:hover {
            border-color: var(--primary);
            background: var(--card-hover);
        }

        .custom-dropdown.active .custom-dropdown-selected {
            border-color: var(--primary);
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        .dropdown-value {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .dropdown-arrow {
            transition: transform 0.3s ease;
            color: var(--text-secondary);
            flex-shrink: 0;
        }

        .custom-dropdown.active .dropdown-arrow {
            transform: rotate(180deg);
            color: var(--primary);
        }

        .custom-dropdown-options {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--dark-bg);
            border: 1px solid var(--primary);
            border-top: none;
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .custom-dropdown.active .custom-dropdown-options {
            max-height: 300px;
            opacity: 1;
        }

        .custom-dropdown-option {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border-bottom: 1px solid var(--border);
        }

        .custom-dropdown-option:last-child {
            border-bottom: none;
        }

        .custom-dropdown-option:hover {
            background: var(--card-hover);
        }

        .custom-dropdown-option.selected {
            background: rgba(239, 68, 68, 0.1);
        }

        .option-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            font-weight: 700;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .nein-icon {
            background: rgba(239, 68, 68, 0.2);
            color: var(--error);
            border: 2px solid var(--error);
        }

        .ja-icon {
            background: rgba(16, 185, 129, 0.2);
            color: var(--success);
            border: 2px solid var(--success);
        }

        .custom-dropdown-option:hover .option-icon {
            transform: scale(1.1);
        }

        .option-content {
            flex: 1;
        }

        .option-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.25rem;
        }

        .option-description {
            font-size: 0.75rem;
            color: var(--text-muted);
            line-height: 1.4;
        }

        /* Status-abhängiges Styling für das Selected-Element */
        .custom-dropdown[data-value="Ja"] .custom-dropdown-selected {
            border-color: var(--success);
            background: rgba(16, 185, 129, 0.05);
        }

        .custom-dropdown[data-value="Ja"] .dropdown-value {
            color: var(--success);
        }

        .custom-dropdown[data-value="Nein"] .custom-dropdown-selected {
            border-color: var(--error);
            background: rgba(239, 68, 68, 0.05);
        }

        .custom-dropdown[data-value="Nein"] .dropdown-value {
            color: var(--error);
        }

        /* Animation für Optionen */
        .custom-dropdown-option {
            transform: translateY(-10px);
            opacity: 0;
            animation: slideInOption 0.3s ease forwards;
        }

        .custom-dropdown-option:nth-child(1) {
            animation-delay: 0.05s;
        }

        .custom-dropdown-option:nth-child(2) {
            animation-delay: 0.1s;
        }

        @keyframes slideInOption {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .termination-value {
            font-size: 1rem;
            color: var(--text-primary);
            padding: 0.75rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-family: 'Courier New', monospace;
        }

        .termination-input,
        .termination-select,
        .termination-textarea {
            padding: 0.75rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 0.875rem;
            outline: none;
            transition: all 0.2s;
            font-family: inherit;
        }

        .termination-input:focus,
        .termination-select:focus,
        .termination-textarea:focus {
            border-color: var(--primary);
        }

        .termination-textarea {
            resize: vertical;
            min-height: 100px;
        }

        .termination-actions {
            display: flex;
            gap: 1rem;
        }

        .termination-copy-btn {
            flex: 1;
            padding: 0.875rem;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .termination-copy-btn:hover {
            transform: translateY(-2px);
        }

        .termination-confirm-btn {
            flex: 1;
            padding: 0.875rem;
            background: var(--error);
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .termination-confirm-btn:hover {
            background: #dc2626;
        }

        .termination-overlay {
            position: fixed;
            inset: 0;
            background: rgba(12, 12, 20, 0.95);
            z-index: 10000;
            display: none;
        }

        .termination-overlay.active {
            display: block;
        }

        .discord-mention {
            color: var(--primary);
            background: rgba(239, 68, 68, 0.1);
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-weight: 600;
        }

        /* ===== DIENSTNUMMERN ÜBERSICHT - ULTRA MODERN & ELEGANT ===== */

        :root {
            --primary-red: #ef4444;
            --primary-orange: #f97316;
            --success-green: #10b981;
            --dark-bg: #0a0a12;
            --card-bg: rgba(20, 20, 31, 0.7);
            --glass-border: rgba(255, 255, 255, 0.1);
            --shadow-color: rgba(239, 68, 68, 0.15);
        }

        .dienstnummern-overlay {
            position: fixed;
            inset: 0;
            background: rgba(10, 10, 18, 0.98);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 2rem;
        }

        .dienstnummern-overlay.active {
            display: flex;
        }

        .dienstnummern-container {
            width: 96%;
            max-width: 1800px;
            height: 94vh;
            background: rgba(15, 15, 25, 0.95);
            border: 1.5px solid rgba(255, 255, 255, 0.08);
            border-radius: 32px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
            position: relative;
        }

        .dienstnummern-body {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        .dienstnummern-sidebar {
            width: 280px;
            min-width: 280px;
            border-right: 1px solid rgba(255, 255, 255, 0.06);
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            background: rgba(10, 10, 18, 0.5);
        }

        .dienstnummern-search-label {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
        }

        .dienstnummern-search-input {
            width: 100%;
            padding: 0.75rem 1rem;
            background: rgba(22, 22, 38, 0.85);
            border: 1.5px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 0.875rem;
            font-family: 'Inter', sans-serif;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .dienstnummern-search-input::placeholder {
            color: var(--text-muted);
        }

        .dienstnummern-search-input:focus {
            border-color: rgba(239, 68, 68, 0.5);
        }

        .dienstnummern-search-stats {
            margin-top: auto;
            padding: 1rem;
            background: rgba(22, 22, 38, 0.6);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .dienstnummern-stat-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.35rem 0;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .dienstnummern-stat-row .stat-value {
            font-weight: 700;
            color: var(--text-primary);
        }

        .dienstnummern-stat-row .stat-value.occupied-val {
            color: #10b981;
        }

        .dienstnummern-stat-row .stat-value.free-val {
            color: var(--text-muted);
        }

        @keyframes gradientShift {

            0%,
            100% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px) scale(0.95);
                filter: blur(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0px);
            }
        }

        /* ===== HEADER ===== */
        .dienstnummern-header {
            padding: 2rem 3rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(239, 68, 68, 0.04);
            position: relative;
            z-index: 10;
        }

        .dienstnummern-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 1px;
            background: linear-gradient(90deg,
                    transparent,
                    rgba(239, 68, 68, 0.5),
                    rgba(249, 115, 22, 0.5),
                    transparent);
        }

        .dienstnummern-title {
            font-size: 2rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            background: linear-gradient(135deg, #ef4444, #f97316);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
        }

        .close-dienstnummern-btn {
            width: 52px;
            height: 52px;
            background: rgba(15, 15, 25, 0.8);
            border: 1.5px solid rgba(239, 68, 68, 0.25);
            border-radius: 16px;
            color: #fff;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        }

        .close-dienstnummern-btn:hover {
            background: #ef4444;
            border-color: #ef4444;
            transform: rotate(90deg) scale(1.05);
        }

        .close-dienstnummern-btn:active {
            transform: rotate(90deg) scale(0.95);
        }

        /* ===== GRID ===== */
        .dienstnummern-grid {
            flex: 1;
            padding: 2rem;
            overflow-y: auto;
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 1rem;
            align-content: start;
            scrollbar-width: thin;
            scrollbar-color: rgba(239, 68, 68, 0.4) rgba(255, 255, 255, 0.02);
        }

        .dienstnummern-grid::-webkit-scrollbar {
            width: 10px;
        }

        .dienstnummern-grid::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 10px;
            margin: 10px;
        }

        .dienstnummern-grid::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg,
                    rgba(239, 68, 68, 0.5),
                    rgba(249, 115, 22, 0.5));
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        .dienstnummern-grid::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg,
                    rgba(239, 68, 68, 0.7),
                    rgba(249, 115, 22, 0.7));
            background-clip: padding-box;
        }

        /* ===== CARDS (Performance-optimiert) ===== */
        .dienstnummer-card {
            background: rgba(22, 22, 38, 0.85);
            border: 1.5px solid rgba(255, 255, 255, 0.08);
            border-radius: 18px;
            padding: 1.25rem 0.75rem;
            text-align: center;
            cursor: pointer;
            transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
            font-weight: 700;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.6);
            position: relative;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.4rem;
        }

        .dienstnummer-card .dn-number {
            font-weight: 700;
            font-size: 0.9rem;
        }

        .dienstnummer-card .dn-name {
            font-size: 0.7rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.35);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .dienstnummer-card.occupied .dn-name {
            color: rgba(16, 185, 129, 0.7);
        }

        /* Top accent line - nur auf hover sichtbar, keine Endlos-Animation */
        .dienstnummer-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .dienstnummer-card:hover {
            background: rgba(30, 30, 50, 0.95);
            border-color: rgba(239, 68, 68, 0.4);
            color: #fff;
            transform: translateY(-4px) scale(1.02);
            box-shadow:
                0 12px 30px rgba(239, 68, 68, 0.2),
                0 0 0 1px rgba(239, 68, 68, 0.15) inset;
        }

        .dienstnummer-card:hover::after {
            opacity: 1;
        }

        .dienstnummer-card:active {
            transform: translateY(-2px) scale(1.01);
        }

        /* ===== OCCUPIED STATE (ohne Endlos-Animation) ===== */
        .dienstnummer-card.occupied {
            background: rgba(16, 185, 129, 0.15);
            border-color: rgba(16, 185, 129, 0.5);
            color: #10b981;
            box-shadow:
                0 2px 10px rgba(16, 185, 129, 0.12),
                0 0 0 1px rgba(16, 185, 129, 0.1) inset;
        }

        .dienstnummer-card.occupied::after {
            background: linear-gradient(90deg, #10b981, #34d399);
            opacity: 1;
        }

        .dienstnummer-card.occupied:hover {
            background: rgba(16, 185, 129, 0.25);
            border-color: #10b981;
            color: #34d399;
            box-shadow:
                0 12px 30px rgba(16, 185, 129, 0.25),
                0 0 0 1px rgba(16, 185, 129, 0.2) inset;
        }

        /* ===== INFO POPUP ===== */
        .dienstnummer-info-popup {
            position: fixed;
            top: 120px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(18, 18, 30, 0.98);
            border: 2px solid rgba(239, 68, 68, 0.5);
            border-radius: 24px;
            padding: 2.25rem 3rem;
            min-width: 450px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
            z-index: 10001;
            display: none;
        }

        .dienstnummer-info-popup.active {
            display: block;
        }

        .dienstnummer-info-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            position: relative;
        }

        .dienstnummer-info-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 1px;
            background: linear-gradient(90deg,
                    transparent,
                    rgba(239, 68, 68, 0.6),
                    rgba(249, 115, 22, 0.6),
                    transparent);
        }

        .dienstnummer-info-title {
            font-size: 1.5rem;
            font-weight: 800;
            background: linear-gradient(135deg,
                    #ef4444,
                    #f97316,
                    #fbbf24);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.3px;
        }

        .dienstnummer-info-close {
            width: 42px;
            height: 42px;
            background: rgba(239, 68, 68, 0.12);
            border: 1.5px solid rgba(239, 68, 68, 0.35);
            border-radius: 12px;
            color: white;
            font-size: 1.25rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
        }

        .dienstnummer-info-close::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            opacity: 0;
            transition: opacity 0.4s;
        }

        .dienstnummer-info-close span {
            position: relative;
            z-index: 1;
        }

        .dienstnummer-info-close:hover {
            background: transparent;
            border-color: #ef4444;
            transform: scale(1.1) rotate(90deg);
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
        }

        .dienstnummer-info-close:hover::before {
            opacity: 1;
        }

        .dienstnummer-info-close:active {
            transform: scale(1.05) rotate(90deg);
        }

        .dienstnummer-info-content {
            text-align: center;
        }

        .dienstnummer-info-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 1rem;
            text-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
            letter-spacing: -0.3px;
        }

        .dienstnummer-info-details {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.7);
            background: linear-gradient(135deg,
                    rgba(239, 68, 68, 0.08),
                    rgba(249, 115, 22, 0.06));
            padding: 1rem 1.5rem;
            border-radius: 12px;
            border: 1px solid rgba(239, 68, 68, 0.15);
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* ===== RESPONSIVE DESIGN ===== */
        @media (max-width: 1400px) {
            .dienstnummern-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 0.875rem;
            }
        }

        @media (max-width: 1000px) {
            .dienstnummern-sidebar {
                width: 220px;
                min-width: 220px;
            }

            .dienstnummern-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 768px) {
            .dienstnummern-container {
                border-radius: 24px;
                height: 96vh;
            }

            .dienstnummern-body {
                flex-direction: column;
            }

            .dienstnummern-sidebar {
                width: 100%;
                min-width: unset;
                border-right: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.06);
                padding: 1rem;
                flex-direction: row;
                flex-wrap: wrap;
            }

            .dienstnummern-search-stats {
                margin-top: 0;
            }

            .dienstnummern-header {
                padding: 1.5rem 2rem;
            }

            .dienstnummern-title {
                font-size: 1.5rem;
            }

            .dienstnummern-grid {
                grid-template-columns: repeat(3, 1fr);
                padding: 1rem;
                gap: 0.75rem;
            }

            .dienstnummer-card {
                padding: 1rem 0.5rem;
                font-size: 0.8rem;
            }

            .dienstnummer-info-popup {
                min-width: 90%;
                padding: 1.75rem 2rem;
            }
        }

        /* ===== ACCESSIBILITY ===== */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Dark mode enhancements */
        @media (prefers-color-scheme: dark) {
            .dienstnummer-card {
                background: linear-gradient(145deg,
                        rgba(30, 30, 45, 0.75),
                        rgba(25, 25, 40, 0.85));
            }
        }

        /* ===== Admin Level Badge ===== */
        .admin-level-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: linear-gradient(135deg, #fbbf24, #a78bfa);
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.875rem;
            color: white;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
            transition: all 0.3s ease;
        }

        .admin-level-badge::before {
            content: '👨‍💼';
            font-size: 1rem;
        }

        .admin-level-badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
        }

        /* ===== Admin Level Select Dropdown ===== */
        .admin-level-select {
            padding: 0.75rem;
            background: var(--dark-bg);
            border: 2px solid #fbbf24;
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 0.875rem;
            font-weight: 600;
            outline: none;
            transition: all 0.2s;
            cursor: pointer;
        }

        .admin-level-select:hover {
            border-color: #f59e0b;
        }

        .admin-level-select:focus {
            border-color: #a78bfa;
            box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
        }

        /* ===== Admin Info Box (in der Personalakte) ===== */
        .admin-info-box {
            padding: 1rem;
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
        }


        /* ===== Admin Info Label ===== */
        .admin-info-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 0.25rem;
        }

        /* ===== Admin Info Value ===== */
        .admin-info-value {
            font-size: 1rem;
            font-weight: 600;
        }

        .admin-info-value::before {
            content: '⭐';
            font-size: 1.5rem;
        }

        /* ===== Berechtigungen Preview ===== */
        .admin-permissions-preview {
            display: none;
        }

        .admin-permissions-preview-title {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .admin-permissions-preview-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        /* ===== Permission Tags ===== */
        .admin-permission-tag {
            padding: 0.375rem 0.875rem;
            background: rgba(167, 139, 250, 0.15);
            border: 1px solid rgba(167, 139, 250, 0.4);
            border-radius: 6px;
            font-size: 0.75rem;
            color: #a78bfa;
            font-weight: 500;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .admin-permission-tag:hover {
            background: rgba(167, 139, 250, 0.25);
            border-color: #a78bfa;
            transform: translateY(-1px);
        }

        /* ===== Kompakt Badge für Listen ===== */
        .admin-level-badge-compact {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.25rem 0.5rem;
            background: linear-gradient(135deg, #fbbf24, #a78bfa);
            border-radius: 4px;
            font-weight: 600;
            font-size: 0.75rem;
            color: white;
        }

        .admin-level-badge-compact::before {
            content: '⭐';
            font-size: 0.75rem;
        }

        /* ===== Responsive Anpassungen ===== */
        @media (max-width: 768px) {
            .admin-info-box {
                grid-column: span 1;
            }

            .admin-permissions-preview-list {
                flex-direction: column;
            }

            .admin-permission-tag {
                width: 100%;
                text-align: center;
            }
        }

        @keyframes adminLevelUpdate {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1);
            }
        }

        .admin-info-box.updated {
            animation: adminLevelUpdate 0.5s ease;
        }

        /* ===== Spezielle Farben für verschiedene Admin Levels ===== */
        .admin-level-badge[data-level="10"],
        .admin-info-value[data-level="10"] {
            background: linear-gradient(135deg, #dc2626, #991b1b);
        }

        .admin-level-badge[data-level="9"],
        .admin-info-value[data-level="9"] {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }

        .admin-level-badge[data-level="7"],
        .admin-level-badge[data-level="8"],
        .admin-info-value[data-level="7"],
        .admin-info-value[data-level="8"] {
            background: linear-gradient(135deg, #3b82f6, #1e40af);
        }

        .admin-level-badge[data-level="4"],
        .admin-level-badge[data-level="5"],
        .admin-level-badge[data-level="6"],
        .admin-info-value[data-level="4"],
        .admin-info-value[data-level="5"],
        .admin-info-value[data-level="6"] {
            background: linear-gradient(135deg, #10b981, #047857);
        }

        .admin-level-badge[data-level="1"],
        .admin-level-badge[data-level="2"],
        .admin-level-badge[data-level="3"],
        .admin-info-value[data-level="1"],
        .admin-info-value[data-level="2"],
        .admin-info-value[data-level="3"] {
            background: linear-gradient(135deg, #64748b, #475569);
        }

        /* ===== Dark Mode Support (falls benötigt) ===== */
        @media (prefers-color-scheme: dark) {
            .admin-level-select {
                background: #1a1a2e;
            }

            .admin-permission-tag {
                background: rgba(167, 139, 250, 0.2);
            }
        }

        /* ===== WAFFENSCHEIN ÜBERSICHT - PROFESSIONELL & CLEAN ===== */
        .lizenzen-overlay {
            position: fixed;
            inset: 0;
            background: rgba(12, 12, 20, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 2rem;
            backdrop-filter: blur(8px);
        }

        .lizenzen-overlay.active {
            display: flex;
        }

        .lizenzen-container {
            width: 95%;
            max-width: 1600px;
            height: 92vh;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        }

        /* Header */
        .lizenzen-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent);
        }

        .lizenzen-title {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--text-primary);
        }

        /* Stats */
        .lizenzen-stats {
            display: flex;
            gap: 1.5rem;
            align-items: center;
        }

        .lizenzen-stat-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
            padding: 0.75rem 1.25rem;
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
        }

        .lizenzen-stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--success);
        }

        .lizenzen-stat-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .close-lizenzen-btn {
            width: 44px;
            height: 44px;
            background: var(--card-hover);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .close-lizenzen-btn:hover {
            background: var(--error);
            border-color: var(--error);
        }

        /* Content */
        .lizenzen-list {
            flex: 1;
            padding: 2rem;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--border) transparent;
        }

        .lizenzen-list::-webkit-scrollbar {
            width: 6px;
        }

        .lizenzen-list::-webkit-scrollbar-track {
            background: transparent;
        }

        .lizenzen-list::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 3px;
        }

        /* Cards */
        .lizenzen-item {
            display: grid;
            grid-template-columns: 100px auto 1fr 180px;
            gap: 1.5rem;
            align-items: center;
            padding: 1.25rem 1.5rem;
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            margin-bottom: 0.75rem;
            transition: all 0.2s;
        }

        .lizenzen-item:hover {
            border-color: var(--primary);
            transform: translateX(4px);
        }

        /* Dienstnummer */
        .lizenzen-dn {
            font-weight: 700;
            font-size: 1rem;
            color: var(--primary);
            letter-spacing: 0.5px;
            padding: 0.5rem 0.75rem;
            background: rgba(239, 68, 68, 0.1);
            border-radius: 6px;
            text-align: center;
        }

        /* Avatar */
        .lizenzen-avatar {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1rem;
            color: white;
        }

        /* Info */
        .lizenzen-info-section {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .lizenzen-name {
            font-weight: 600;
            font-size: 1rem;
            color: var(--text-primary);
        }

        .lizenzen-id {
            color: var(--text-muted);
            font-size: 0.875rem;
        }

        /* Waffenschein Badge */
        .lizenzen-waffenschein {
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.875rem;
            text-align: center;
            transition: all 0.2s;
        }

        .lizenzen-waffenschein span {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        /* JA Badge */
        .lizenzen-waffenschein.ja {
            background: rgba(16, 185, 129, 0.15);
            border: 1px solid var(--success);
            color: var(--success);
        }

        .lizenzen-item:hover .lizenzen-waffenschein.ja {
            background: rgba(16, 185, 129, 0.25);
        }

        /* NEIN Badge */
        .lizenzen-waffenschein.nein {
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid var(--error);
            color: var(--error);
        }

        .lizenzen-item:hover .lizenzen-waffenschein.nein {
            background: rgba(239, 68, 68, 0.25);
        }

        /* Empty State */
        .lizenzen-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4rem 2rem;
            text-align: center;
        }

        .lizenzen-empty-state-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.3;
        }

        .lizenzen-empty-state h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }

        .lizenzen-empty-state p {
            color: var(--text-muted);
            font-size: 0.875rem;
        }

        /* ===== EDIT EMPLOYEE MODAL - VERBESSERTE VERSION ===== */

.employee-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 20, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.employee-overlay.active {
    display: flex;
}

.edit-employee-modal {
    width: 100%;
    max-width: none;
    height: 100vh;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    display: grid;
    grid-template-columns: 1fr 450px;
    overflow: hidden;
}

/* ===== HAUPTBEREICH ===== */
.modal-content-main {
    padding: 2rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content-main::-webkit-scrollbar {
    display: none;
}

.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.employee-header-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.employee-header-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.employee-header-details h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.employee-header-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.employee-header-meta span {
    margin-right: 1rem;
}

.close-modal-btn {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: var(--error);
    border-color: var(--error);
}

/* ===== INFO GRID ===== */
.info-grid {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-box {
    padding: 1rem;
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== STATUS DROPDOWN ===== */
.status-dropdown {
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
}

.status-dropdown.status-onboarding { 
    border-color: #3b82f6; 
    background: rgba(59, 130, 246, 0.1); 
}

.status-dropdown.status-angestellt { 
    border-color: #10b981; 
    background: rgba(16, 185, 129, 0.1); 
}

.status-dropdown.status-suspended { 
    border-color: #f59e0b; 
    background: rgba(245, 158, 11, 0.1); 
}

.status-dropdown.status-gekuendigt { 
    border-color: #ef4444; 
    background: rgba(239, 68, 68, 0.1); 
}

/* ===== ADMIN LEVEL SELECT ===== */
.admin-level-select {
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 2px solid #fbbf24;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
}

.admin-level-select:hover {
    border-color: #f59e0b;
}

.admin-level-select:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

/* ===== EINTRÄGE SECTION ===== */
.eintraege-section {
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.eintraege-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.eintraege-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eintraege-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

.eintraege-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.eintraege-list::-webkit-scrollbar {
    display: none;
}

.eintraege-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.875rem;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.eintraege-item:hover {
    background: var(--card-hover);
    transform: translateX(3px);
}

.eintraege-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.eintraege-kategorie {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
}

.eintraege-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.eintraege-notiz {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.eintraege-ersteller {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== SIDEBAR ===== */
.edit-sidebar {
    background: var(--dark-bg);
    border-left: 1px solid var(--border);
    padding: 2rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edit-sidebar::-webkit-scrollbar {
    display: none;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.profile-name-large {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-meta {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.stat-box {
    background: var(--dark-bg);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== HAUPT-AKTIONSBUTTONS (NEU!) ===== */
.sidebar-main-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.action-btn-large {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.action-btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.action-btn-large:hover::before {
    left: 100%;
}

.action-btn-large svg {
    flex-shrink: 0;
}

.btn-save-large {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-save-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-save-large:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-close-large {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-close-large:hover {
    background: var(--card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-close-large:active {
    transform: translateY(0);
}

/* ===== WEITERE AKTIONEN ===== */
.sidebar-section {
    margin-bottom: 0;
}

.sidebar-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.action-btn:hover {
    background: var(--card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.action-btn svg {
    flex-shrink: 0;
}

.action-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-color: transparent;
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .edit-employee-modal {
        grid-template-columns: 1fr 400px;
    }
}

@media (max-width: 1024px) {
    .edit-employee-modal {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .edit-sidebar {
        border-left: none;
        border-top: 1px solid var(--border);
        max-height: 300px;
    }
    
    .profile-card {
        display: none;
    }
}

        /* LEITSTELLE OVERLAY */
        .leitstelle-overlay {
            position: fixed;
            inset: 0;
            background: rgba(12, 12, 20, 0.98);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 2rem;
            backdrop-filter: blur(8px);
        }

        .leitstelle-overlay.active {
            display: flex;
        }

        .leitstelle-container {
            width: 95%;
            max-width: 1400px;
            height: 90vh;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
        }

        .leitstelle-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent);
        }

        .leitstelle-title {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .close-leitstelle-btn {
            width: 44px;
            height: 44px;
            background: var(--card-hover);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .close-leitstelle-btn:hover {
            background: var(--error);
            border-color: var(--error);
            transform: rotate(90deg);
        }

        .leitstelle-content {
            flex: 1;
            padding: 2rem;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .leitstelle-content::-webkit-scrollbar {
            display: none;
        }

        .leitstelle-status-bar {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .leitstelle-status-item {
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex: 1;
            min-width: 200px;
        }

        .leitstelle-status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .leitstelle-status-dot.online {
            background: var(--success);
        }

        .leitstelle-status-dot.offline {
            background: var(--error);
        }

        .leitstelle-status-dot.busy {
            background: var(--warning);
        }

        .leitstelle-status-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .leitstelle-status-value {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .leitstelle-section-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .leitstelle-units {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .leitstelle-unit-card {
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.25rem;
            transition: all 0.2s;
        }

        .leitstelle-unit-card:hover {
            border-color: var(--primary);
        }

        .leitstelle-unit-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }

        .leitstelle-unit-name {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .leitstelle-unit-status {
            padding: 0.25rem 0.75rem;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .unit-status-available {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
        }

        .unit-status-busy {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
        }

        .unit-status-offline {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .leitstelle-unit-info {
            font-size: 0.8rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        .leitstelle-log {
            background: var(--dark-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.5rem;
            max-height: 300px;
            overflow-y: auto;
            scrollbar-width: none;
        }

        .leitstelle-log::-webkit-scrollbar {
            display: none;
        }

        .leitstelle-log-entry {
            display: flex;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border);
            font-size: 0.85rem;
        }

        .leitstelle-log-entry:last-child {
            border-bottom: none;
        }

        .leitstelle-log-time {
            color: var(--text-muted);
            font-family: 'Courier New', monospace;
            white-space: nowrap;
        }

        .leitstelle-log-msg {
            color: var(--text-secondary);
        }