* {
    margin:  0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background:  #f3f4f6;
    min-height: 100vh;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.login-box {
    background:  white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align:  center;
    margin-bottom: 1. 5rem;
    color: #1e40af;
}

.form-group {
    margin-bottom: 1rem;
}

. form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

. form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size:  1rem;
    transition: all 0.2s;
}

.btn-primary {
    width: 100%;
    background: #1e40af;
    color: white;
}

.btn-primary:hover {
    background: #1e3a8a;
}

.btn-small {
    padding:  0.5rem 1rem;
    font-size:  0.875rem;
    background: #ef4444;
    color: white;
}

.error {
    color:  #ef4444;
    margin-top: 1rem;
    text-align: center;
}

. demo-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e40af;
    color: white;
    padding: 0 2rem;
    height: 60px;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
}

. nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color:  rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

. nav-links a: hover,
.nav-links a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

. nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Container & Cards */
.container {
    max-width: 1200px;
    margin:  2rem auto;
    padding: 0 1rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color:  #374151;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #1e40af;
}

.full-width {
    grid-column: 1 / -1;
}

/* Tabellen */
table {
    width:  100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    font-weight:  600;
}

/* Status */
.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight:  500;
}

.status-aktiv, .status-bestätigt { background: #dcfce7; color: #166534; }
. status-pause, . status-offen { background: #fef3c7; color: #92400e; }
. status-offline, .status-krank { background: #fee2e2; color: #991b1b; }

/* Map Layout */
.map-container {
    display: flex;
    height: calc(100vh - 60px);
}

.device-sidebar {
    width: 300px;
    background: white;
    padding: 1rem;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
}

.device-sidebar h3 {
    margin-bottom:  1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

#deviceList {
    list-style: none;
}

. device-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.device-item:hover {
    background: #f3f4f6;
}

. status-dot {
    width: 12px;
    height:  12px;
    border-radius:  50%;
}

.status-dot.status-aktiv { background:  #22c55e; }
.status-dot.status-pause { background: #f59e0b; }
.status-dot.status-offline { background: #ef4444; }

.device-info strong {
    display: block;
}

.device-info small {
    color:  #6b7280;
}

#map {
    flex: 1;
}

/* Notices */
.notice {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.notice-info {
    background: #dbeafe;
    color: #1e40af;
}