body { font-family: 'Inter', sans-serif; background-color: #f8fafc; color: #334155; overflow-x: hidden; margin: 0; }
h1, h2, h3, h4, h5 { font-weight: 600; color: #0f172a; }

/* PC SIDEBAR (MIT LOGO) */
.sidebar { height: 100dvh !important; width: 260px; position: fixed; top: 0; left: 0; background-color: #0f172a !important; color: #f8fafc; padding-top: 20px; display: flex; flex-direction: column; z-index: 1045; box-shadow: 4px 0 24px rgba(0,0,0,0.05); transition: 0.3s; }
.sidebar-menu { flex-grow: 1; overflow-y: auto; padding-bottom: 20px; }
.sidebar-menu::-webkit-scrollbar { display: none; }
.sidebar-menu { -ms-overflow-style: none; scrollbar-width: none; }
.sidebar a.nav-link { color: #94a3b8; border-radius: 8px; margin: 4px 16px; padding: 12px 16px; font-weight: 500; transition: all 0.2s; text-decoration: none; display: flex; justify-content: space-between; align-items: center; }
.sidebar a.nav-link:hover, .sidebar a.nav-link.active { background: #1e293b; color: #f8fafc; }
.sidebar i.menu-icon { font-size: 1.1rem; width: 24px; display: inline-block; }
.logo-area { text-align: center; margin-bottom: 30px; }
/* Invertiert das schwarze Logo für den dunklen Hintergrund */
.logo-area img { width: 160px; height: auto; filter: brightness(0) invert(1); }

/* MAIN CONTENT */
.main-content { margin-left: 260px; padding: 40px; transition: 0.3s; }
.card { border: none; border-radius: 16px; box-shadow: 0 4px 20px -2px rgba(0,0,0,0.03); background: #ffffff; }
.table th { border-bottom: 2px solid #f1f5f9; color: #64748b; font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; padding: 1rem 1.25rem; }
.table td { vertical-align: middle; padding: 1rem 1.25rem; border-bottom: 1px solid #f8fafc; }

/* FORMS & BUTTONS */
.form-control, .form-select { border-radius: 10px; border: 1px solid #e2e8f0; padding: 0.7rem 1rem; }
.form-control:focus, .form-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
.btn { border-radius: 10px; padding: 0.6rem 1.2rem; font-weight: 500; transition: all 0.2s; }
.btn-primary { background-color: #2563eb; border: none; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.btn-primary:hover { background-color: #1d4ed8; transform: translateY(-1px); }
.badge { padding: 0.5em 0.8em; border-radius: 6px; font-weight: 500; }

/* HANDY ANPASSUNGEN V2.1 */
.mobile-topbar { display: none; background-color: #0f172a; padding: 10px 15px; color: white; position: sticky; top: 0; z-index: 1000; align-items: center; justify-content: space-between; }
.mobile-logo { height: 30px; filter: brightness(0) invert(1); }

@media (max-width: 991.98px) {
    /* DIESE ZEILE HAT GEFEHLT: */
    .mobile-topbar { display: flex !important; } 
    
    .sidebar { transform: translateX(-100%); width: 280px; }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 15px 10px; }
    
    h2, h3 { font-size: 1.3rem; }
    .btn { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
    .card { border-radius: 12px; }
    
    .mobile-cards thead { display: none; }
    .mobile-cards tbody tr { display: block; margin-bottom: 0.8rem; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
    .mobile-cards tbody td { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f8fafc; padding: 8px 4px; text-align: right; font-size: 0.9rem; }
    .mobile-cards tbody td::before { content: attr(data-label); font-weight: 600; color: #64748b; text-align: left; flex: 1; font-size: 0.85rem; }
    .mobile-cards tbody td:last-child { border-bottom: none; }
}