/* --- Grund-Setup & Moderne Schriftart --- */
:root {
    --primary-color: #2563eb; /* Modernes Blau */
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc; /* Sehr helles Grau-Blau für den Hintergrund */
    --text-color: #334155;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- Der Header (Kopfzeile) --- */
header {
    background: linear-gradient(135deg, #1e293b, #0f172a); /* Edler dunkler Verlauf */
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

header a {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

header a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Hauptbereich & Boxen --- */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* --- Moderne Buttons --- */
button {
    padding: 10px 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px; /* Schön abgerundet */
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px); /* Knopf "schwebt" leicht beim rübergehen */
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.actions {
    margin-bottom: 2rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Spezifische Button-Farben */
.btn-archiv { background-color: #64748b; box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2); }
.btn-archiv:hover { background-color: #475569; }
.btn-benutzer { background-color: #0ea5e9; box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2); }
.btn-benutzer:hover { background-color: #0284c7; }

/* --- Tabellen im Dashboard-Look --- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); /* Sanfter Schatten für die Tabelle */
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f1f5f9; /* Zeile leuchtet leicht auf beim rübergehen */
}

/* --- Status Badges (Die bunten Pillen) --- */
.status {
    padding: 6px 12px;
    border-radius: 9999px; /* Macht es zu einer ovalen "Pille" */
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status.offen {
    background-color: #fef3c7;
    color: #b45309;
}

.status.werkstatt_fertig {
    background-color: #d1fae5;
    color: #047857;
}

.status.archiviert {
    background-color: #f1f5f9;
    color: #475569;
}

/* --- Formulare & Inputs --- */
input[type="text"], 
input[type="password"], 
select, 
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
    margin-bottom: 15px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); /* Moderner blauer Ring beim reinklicken */
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #475569;
}