:root {
    --text: #1d2330;
    --grau: #5b6475;
    --linie: #d5dae3;
    --flaeche: #f5f7fa;
    --akzent: #1f5fbf;
    --akzent-dunkel: #174a96;
    --fehler: #a4161a;
    --warn: #8a5a00;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--flaeche);
}

body { margin: 0; }

.band-test {
    background: #ffd84d;
    color: #3d2b00;
    font-weight: 700;
    text-align: center;
    padding: .4rem 1rem;
    letter-spacing: .05em;
}

.kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--linie);
}

.marke { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.15rem; }
.kopf-nav { display: flex; gap: 1rem; align-items: center; }
.angemeldet { color: var(--grau); }

.inhalt { padding: 1.5rem; max-width: 80rem; margin: 0 auto; }

.karte {
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: 8px;
    padding: 1.5rem;
}
.karte.schmal { max-width: 26rem; margin: 2rem auto; }

label { display: block; margin: .9rem 0 .3rem; font-weight: 600; }
input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
    width: 100%;
    box-sizing: border-box;
    padding: .55rem .65rem;
    border: 1px solid #8f98a8;
    border-radius: 6px;
    font: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid var(--akzent);
    outline-offset: 2px;
}

button {
    margin-top: 1.1rem;
    min-height: 44px;
    padding: .55rem 1.2rem;
    border: 0;
    border-radius: 6px;
    background: var(--akzent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
button:hover { background: var(--akzent-dunkel); }

a { color: var(--akzent); }
a:hover { color: var(--akzent-dunkel); }

.meldung { padding: .6rem .8rem; border-radius: 6px; }
.meldung.fehler { background: #fde8e8; color: var(--fehler); border: 1px solid #f2b8b8; }
.meldung.hinweis { background: #fff6e0; color: var(--warn); border: 1px solid #f0d58a; }

.meldung-erfolg { background: #e6f4ea; color: #1e5e2f; border: 1px solid #a9d8b6; }
.meldung-fehler { background: #fde8e8; color: var(--fehler); border: 1px solid #f2b8b8; }

input[type=email], input[type=search] {
    width: 100%;
    box-sizing: border-box;
    padding: .55rem .65rem;
    border: 1px solid #8f98a8;
    border-radius: 6px;
    font: inherit;
}
input:not([type]) {
    width: 100%;
    box-sizing: border-box;
    padding: .55rem .65rem;
    border: 1px solid #8f98a8;
    border-radius: 6px;
    font: inherit;
}

section { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 1rem 1.5rem; margin-bottom: 1.5rem; }
table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { color: var(--grau); font-weight: 600; }
details { margin: .5rem 0; }
summary { cursor: pointer; font-weight: 600; color: var(--akzent); min-height: 44px; display: flex; align-items: center; }
.formular { max-width: 40rem; }
.zeile { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.zeile input, .zeile select { width: auto; min-width: 12rem; }
.zeile label { margin: 0; }
.zeile button { margin-top: 0; }
.hinweis { color: var(--grau); }
fieldset.einstellungen { border: 1px solid var(--linie); border-radius: 6px; margin-top: 1rem; }
dl.kompakt { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; }
dl.kompakt dd { margin: 0; }
input[type=checkbox] { width: 1.2rem; height: 1.2rem; vertical-align: middle; margin-right: .4rem; }

/* Vorgaenge (E2) */
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1rem; }
table.erfassung td { padding: .2rem .25rem; }
table.erfassung input:not([type=checkbox]), table.erfassung select { width: 100%; min-width: 4rem; margin: 0; }
table.erfassung .zahl, table.ergebnis .zahl { text-align: right; }
table.erfassung .kurz { max-width: 5rem; }
table.erfassung td.nr { color: var(--grau); text-align: right; vertical-align: middle; }
table.schmal { max-width: 40rem; }
dl.regel, dl.summen { display: grid; grid-template-columns: auto auto; gap: .15rem 1rem; justify-content: start; }
dl.regel dd, dl.summen dd { margin: 0; }
dl.summen dd { text-align: right; font-variant-numeric: tabular-nums; }
td.zahl, dd.rundung { font-variant-numeric: tabular-nums; }

.qr { display: block; margin: 1rem auto; }
code { background: var(--flaeche); padding: .1rem .3rem; border-radius: 4px; word-break: break-all; }
