@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --dunkelblau: #0D1B2A;
    --gold: #B6936A;
    --hellgrau: #F2F2F2;
    --border: #ddd;
    --warn-bg: #fff3cd;
    --crit-bg: #f8d7da;
}
* { box-sizing: border-box; }
body {
    font-family: 'Montserrat', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--hellgrau);
    margin: 0;
    color: #1a1a1a;
}
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--dunkelblau);
    letter-spacing: 0.02em;
}
.site-header {
    background: white;
    border-bottom: 3px solid var(--gold);
    padding: 18px 24px;
    position: relative;
    text-align: center;
    box-shadow: 0 1px 4px rgba(13, 27, 42, 0.08);
}
.site-header .logo img {
    height: 72px;
    width: auto;
}
.site-header .user {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    font-size: 0.85em;
    color: var(--dunkelblau);
}
.site-header .user a { color: var(--gold); text-decoration: none; font-weight: 600; }
.site-header .user a:hover { text-decoration: underline; }

.layout {
    display: flex;
    align-items: flex-start;
    max-width: 1240px;
    margin: 0 auto;
}
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: white;
    min-height: calc(100vh - 78px);
    padding: 20px 0;
    border-right: 1px solid var(--border);
}
.sidebar a {
    display: block;
    padding: 11px 24px;
    color: var(--dunkelblau);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-left: 3px solid transparent;
}
.sidebar a:hover { border-left-color: var(--gold); background: var(--hellgrau); }
@media (max-width: 720px) {
    .layout { flex-direction: column; }
    .sidebar {
        width: 100%;
        min-height: auto;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 4px 0;
    }
    .sidebar a { padding: 10px 14px; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .sidebar a:hover { border-left: none; border-bottom-color: var(--gold); }
}
.content {
    flex: 1;
    max-width: 900px;
    margin: 24px auto;
    padding: 0 24px;
    min-width: 0;
}
h2 { margin-top: 0; }
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(13, 27, 42, 0.08);
}
table th, table td {
    text-align: left;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95em;
}
table th {
    background: white;
    color: var(--dunkelblau);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--gold);
}
.zeile-warnung { background: var(--warn-bg); }
.zeile-kritisch { background: var(--crit-bg); }
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: white;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 3px solid var(--gold);
}
.inline-form input, .inline-form select, .inline-form textarea {
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: inherit;
}
.inline-form textarea { width: 100%; min-height: 60px; }
button {
    background: white;
    color: var(--dunkelblau);
    border: 1.5px solid var(--dunkelblau);
    padding: 8px 18px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}
button:hover { background: var(--gold); color: var(--dunkelblau); border-color: var(--gold); }
a { color: var(--dunkelblau); }
a:hover { color: var(--gold); }
.login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: white;
    margin: 0;
}
.login-logo { margin-bottom: 24px; }
.login-logo img { height: 90px; width: auto; }
.login-box {
    background: white;
    padding: 32px;
    border-radius: 4px;
    width: 320px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    box-shadow: 0 2px 10px rgba(13, 27, 42, 0.08);
}
.login-box h1 {
    font-size: 1.2em;
    margin-top: 0;
    text-align: center;
}
.login-box label { display: block; margin-top: 10px; font-size: 0.9em; font-weight: 500; }
.login-box input {
    width: 100%;
    padding: 9px;
    margin-top: 4px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: inherit;
}
.login-box button { width: 100%; margin-top: 18px; padding: 10px; }
.fehler { color: #a3283a; font-weight: 600; }
.erfolg { color: #1a6b3c; font-weight: 600; }
form select, form input[type=text], form input[type=password],
form input[type=date], form input[type=number], form input[type=file],
form textarea {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: inherit;
}
