/* Freigabedienst -- bewusst ohne Framework und ohne Skripte (CSP: default-src 'none'). */
:root {
    --text: #1f2933;
    --muted: #616e7c;
    --line: #d9dee3;
    --bg: #f4f5f7;
    --card: #ffffff;
    --accent: #e8730c;   /* IBS-Orange */
    --ok: #1e7b34;
    --query: #b54708;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--card); border-bottom: 3px solid var(--accent); margin-bottom: 24px; }
.top .wrap { padding-top: 12px; padding-bottom: 12px; }
.logo { height: 48px; width: auto; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 10px; }

.label { text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge.open { background: #fff4e5; color: var(--query); }
.badge.ok { background: #e6f4ea; color: var(--ok); }
.badge.query { background: #fdecea; color: #b42318; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 16px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.notes { white-space: pre-line; background: var(--bg); padding: 10px 12px; border-radius: 6px; }

.table-wrap { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
thead th { background: #eceff2; font-weight: 600; }
tfoot td { background: #eceff2; font-weight: 700; }
.num { text-align: right; white-space: nowrap; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.text { white-space: pre-line; min-width: 240px; }

.link { color: var(--accent); font-weight: 600; }

form label { display: block; margin: 12px 0 4px; font-weight: 600; }
form input[type=text], form input:not([type]), form textarea {
    width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
form label.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; }
form label.check input { margin-top: 4px; }

.buttons { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
button { font: inherit; padding: 10px 18px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
button.primary { background: var(--accent); color: #fff; font-weight: 600; }
button.secondary { background: #fff; color: var(--text); border-color: var(--line); }

.errors { background: #fdecea; color: #b42318; padding: 10px 12px; border-radius: 6px; margin: 10px 0; }

.result h2 { color: var(--ok); }

.foot { color: var(--muted); font-size: 12px; padding-bottom: 32px; }

@media (max-width: 600px) {
    .card { padding: 16px; }
    .facts { grid-template-columns: 1fr; }
    .facts dt { margin-top: 6px; }
}
