/* CI von polizei.brandenburg.de angelehnt */
:root {
    --primary-blue: #005293;
    --secondary-blue: #0070c0;
    --light-blue: #e6f2ff;
    --dark-gray: #333;
    --medium-gray: #666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border-color: #ddd;
    --error-color: #d00;
    --warning-color: #f90;
    --success-color: #090;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    line-height: 1.6;
}

/* Header */
.header {
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.header .user-info {
    font-size: 0.9rem;
}

.header a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    background-color: var(--secondary-blue);
    padding: 0.7rem 2rem;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    transition: background 0.2s;
}

.navbar a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Dashboard Kacheln */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.card a {
    display: inline-block;
    background-color: var(--secondary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.card a:hover {
    background-color: var(--primary-blue);
}

/* Tabellen */
.table-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: auto;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--light-blue);
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--primary-blue);
}

tr:hover {
    background-color: #f9f9f9;
}

/* Formulare */
.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--dark-gray);
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 2px rgba(0, 112, 192, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: var(--secondary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn:hover {
    background-color: var(--primary-blue);
}

.btn-primary {
    background-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #003d6b;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #e7f7e7;
    color: var(--success-color);
    border: 1px solid #a3d9a3;
}

.alert-warning {
    background-color: #fff4e6;
    color: var(--warning-color);
    border: 1px solid #ffd699;
}

.alert-error {
    background-color: #ffe6e6;
    color: var(--error-color);
    border: 1px solid #ff9999;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .header, .navbar {
        padding: 1rem;
    }
}