:root {
    --primaer: #1f6fb2;
    --primaer-dunkel: #185a91;
    --hintergrund: #f3f6f9;
    --karte: #ffffff;
    --text: #1f2933;
    --leise: #616e7c;
    --rand: #d9e2ec;
    --fehler: #c0392b;
    --ok: #2e7d32;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--hintergrund);
    color: var(--text);
    line-height: 1.5;
}

a { color: var(--primaer); }

.kopf {
    background: var(--primaer);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kopf .marke { color: #fff; font-weight: 600; text-decoration: none; }
.kopf form { margin: 0; }
.kopf .link {
    background: none; border: none; color: #fff;
    cursor: pointer; font: inherit; text-decoration: underline;
}

.inhalt { max-width: 960px; margin: 24px auto; padding: 0 16px; }

.karte {
    background: var(--karte);
    border: 1px solid var(--rand);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.15rem; margin-top: 0; }

progress { width: 100%; height: 14px; }
.leise { color: var(--leise); }
.ok { color: var(--ok); font-weight: 600; }

.btn {
    display: inline-block;
    background: var(--primaer);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--primaer-dunkel); }
.btn-gefahr { background: var(--fehler); }
.btn-gefahr:hover { background: #a93226; }

.tabelle-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rand); }
th { font-size: 0.85rem; color: var(--leise); }
td.zahl, th.zahl { text-align: right; }

form p { margin: 0 0 14px; }
form label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=date], input[type=number], textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--rand);
    border-radius: 6px;
    font: inherit;
}
textarea { min-height: 90px; }
.errorlist { color: var(--fehler); margin: 4px 0; padding-left: 18px; }
.kopf .menue { display: flex; gap: 16px; align-items: center; }
.kopf .menue a { color: #fff; }
.etikett {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
    white-space: nowrap;
}
.etikett-offen { background: #fff3e0; color: #b45309; border: 1px solid #f5c48a; }
.etikett-eingereicht { background: #e8f5e9; color: var(--ok); border: 1px solid #a5d6a7; }
.meldung {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: var(--ok);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}