/* --- BASIS VARIABLEN --- */
:root {
    --primary: #27ae60;
    --primary-dark: #219150;
    --secondary: #2c3e50;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --danger: #e74c3c;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 12px;
}

/* --- RESET & BODY --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--secondary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 90px auto 40px;
    padding: 0 20px;
}

/* --- DESKTOP NAVBAR --- */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    background: #f0fdf4;
    color: var(--primary);
}

.nav-live { color: #e67e22 !important; }

.notification-wrapper { position: relative; }
.notification-badge {
    position: absolute;
    top: -5px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    border: 2px solid white;
}

.btn-logout {
    background: #fee2e2;
    color: var(--danger) !important;
}

/* --- MOBILE NAVIGATION --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    padding: 10px 20px;
    box-shadow: var(--shadow);
    z-index: 1100;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.mobile-nav-toggle {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.mobile-nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1099;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.mobile-nav-menu.open { display: flex; }

.mobile-nav-menu a, .mobile-submenu span {
    padding: 15px 25px;
    text-decoration: none;
    color: var(--secondary);
    border-bottom: 1px solid #eee;
    display: block;
}

.mobile-submenu div {
    display: none;
    background: #f8fafc;
}

.mobile-submenu div.open {
    display: block;
}

.mobile-submenu div a {
    padding-left: 45px;
}

/* --- GRID & CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    height: 100%;
}

/* --- TABELLEN --- */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius);
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th { background: #f8fafc; font-weight: 600; color: #64748b; }

/* --- FORMULARE --- */
input[type="text"], input[type="password"], input[type="number"], 
input[type="email"], select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover { background: var(--primary-dark); }

/* --- RESPONSIVITÄT --- */
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .mobile-nav { display: flex; }
}