/**
 * ============================================================================
 * DATEI: css/toolbox_style.css
 * ZWECK: Zentrale Design-DNA (Header, Badges, Mobil-Optimierung)
 * STAND: 04.05.2026 - 16:40 Uhr
 * ============================================================================
 */

:root {
    --drk-red: #e30613;
    --drk-blue: #0056b3;
    --drk-green: #28a745;
    --bg-light: #f4f7f6;
    --lvl-1: #94a3b8; 
    --lvl-p: #475569; 
    --lvl-t: #94a3b8; 
    --lvl-f: #6f42c1;
    --lvl-2: #28a745; 
    --lvl-2-s: #1b5e20; 
    --lvl-3: #ffc107; 
    --lvl-4: #fd7e14; 
    --lvl-5: #1e293b; 
}

/* Basis & Schrift (Segoe UI Fix) */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg-light); 
    margin: 0; 
    color: #333;
    font-size: 13px;
}

/* Layout Container */
.container { 
    max-width: 1200px; 
    margin: 20px auto; 
    padding: 0 20px 50px 20px; 
}

/* HEADER-STRUKTUR (SYNC MIT USER_ADMIN) */
.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: white; 
    padding: 15px 25px; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-bottom: 4px solid var(--drk-red); 
    margin-bottom: 25px; 
}

.header-branding { display: flex; flex-direction: column; }
.branding-title { display: flex; align-items: center; gap: 10px; color: var(--drk-red); font-size: 20px; font-weight: bold; margin: 0; }
.branding-sub { font-weight: bold; color: #666; font-size: 13px; margin-top: 2px; }
.header-right-block { display: flex; align-items: center; gap: 20px; }

/* NUTZER-BOX */
.user-meta-group { text-align: right; line-height: 1.2; min-width: 100px; }
.user-name-top { font-weight: 800; font-size: 15px; color: #333; display: block; margin-bottom: 3px; }
.user-meta-sub { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.badge-level { background: #f0f0f0; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: bold; color: #666; }
.logout-link { color: var(--drk-red) !important; text-decoration: none !important; font-weight: 800; font-size: 14px; margin-left: 5px; }
.logout-link:hover { text-decoration: underline !important; }

/* BUTTONS */
.btn-zentrale { background: var(--drk-blue); color: white; text-decoration: none; padding: 12px 22px; border-radius: 12px; font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.btn-header-tool { background: white; color: #333; text-decoration: none; padding: 8px 15px; border-radius: 10px; font-weight: bold; font-size: 13px; border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 6px; }

/* ROLLEN-TAGS (RESTAURIERT) */
.role-tag { font-size: 10px; padding: 3px 10px; border-radius: 12px; font-weight: 900; color: white; text-transform: uppercase; display: inline-block; min-width: 85px; text-align: center; border: 1px solid transparent; }
.role-1 { background: var(--lvl-1); }
.role-token { background: var(--lvl-1); border: 1px solid var(--drk-red); } 
.role-P { background: var(--lvl-p); }
.role-T { background: var(--lvl-t); }
.role-F { background: var(--lvl-f); }
.role-2 { background: var(--lvl-2); }
.role-2-S { background: var(--lvl-2-s); } 
.role-3 { background: var(--lvl-3); color: #333; }
.role-4 { background: var(--lvl-4); }
.role-5 { background: var(--lvl-5); }

/* STATUS-PILLEN */
.status-pill { padding: 3px 10px; border-radius: 12px; font-size: 9px; font-weight: 900; color: white; text-transform: uppercase; display: inline-block; min-width: 75px; text-align: center; }
.pill-ok { background: #28a745; }
.pill-fail { background: #c0392b; }

/* PAGINIERUNG */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pagination a { padding: 8px 14px; background: white; border: 1px solid #e2e8f0; text-decoration: none; color: #333; border-radius: 8px; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.pagination a.active { background: var(--drk-blue); color: white; border-color: var(--drk-blue); }

/* MOBILE OPTIMIERUNG (WICHTIG!) */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; gap: 15px; }
    .header-right-block { flex-direction: column; width: 100%; gap: 10px; }
    .user-meta-group { text-align: center; }
    .user-meta-sub { justify-content: center; }
}

@media print { .no-print { display: none !important; } }
