html, body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
}

.content {
    max-width: 60rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1:focus {
    outline: none;
}

/* Quillarum-Logo: Startseite (Kopfleiste siehe nav.css) */
.hero-logo {
    display: block;
    width: 160px;
    height: 160px;
    margin-bottom: 1rem;
}

/* SuperAdmin: KI-Kosten */
.admin-nav { color: #555; }
.periods a { margin-right: 0.75rem; text-decoration: none; padding: 0.15rem 0.5rem; border-radius: 0.25rem; }
.periods a.active { background: #1f3a5f; color: #fff; }
.range { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 0.5rem 0 1rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.tile { border: 1px solid #d5dbe3; border-radius: 0.4rem; padding: 0.6rem 0.8rem; display: flex; flex-direction: column; }
.tile span { color: #555; font-size: 0.85rem; }
.tile strong { font-size: 1.35rem; }
.tile small { color: #777; }
.tile.bad strong, td.bad { color: #b00020; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
th, td { text-align: left; padding: 0.3rem 0.5rem; border-bottom: 1px solid #e3e7ed; }
th.n, td.n { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: #666; }
.warn { color: #8a4b00; background: #fff4e0; padding: 0.4rem 0.6rem; border-radius: 0.3rem; }
.ok { color: #1b5e20; background: #e8f5e9; padding: 0.4rem 0.6rem; border-radius: 0.3rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1rem; }
tr.past td { color: #888; }

/* ---------- Anmeldung, Formulare, Tabellen (Thread 3) ---------- */
:root { --accent: #2b4c7e; --danger: #a12a2a; --muted: #666; --line: #ddd; }
a { color: var(--accent); }
.form { display: flex; flex-direction: column; gap: .8rem; max-width: 28rem; }
.form label { display: flex; flex-direction: column; gap: .25rem; font-size: .95rem; }
.form label.check { display: block; }
.form label.check input { margin-right: .4rem; }
.form input:not([type=checkbox]), .form select { padding: .5rem; border: 1px solid #bbb; border-radius: 4px; font-size: 1rem; }
form.inline { display: inline-flex; gap: .5rem; align-items: center; margin: 0 .5rem .5rem 0; }
button { padding: .5rem 1rem; border: 0; border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; font-size: 1rem; }
button.danger { background: var(--danger); }
button.link { background: none; color: var(--accent); padding: 0; text-decoration: underline; font-size: inherit; }
.alert { padding: .7rem 1rem; border-radius: 4px; margin: 0 0 1rem; }
.alert-error { background: #fdeaea; color: #7a1c1c; border: 1px solid #f3c2c2; }
.alert-ok { background: #e9f6ec; color: #1d5a2c; border: 1px solid #bfe3c7; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.links, .hint { color: var(--muted); font-size: .9rem; }
.grid { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
.grid th, .grid td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.grid tr.inactive td { color: #999; }
code.key { font-size: 1.05rem; letter-spacing: .05rem; }

.auth-logo { display: block; width: 96px; height: 96px; margin-bottom: 0.5rem; }
.rule-row { display:flex; gap:.4rem; align-items:center; margin:.3rem 0; flex-wrap:wrap }
.rule-row input:not([type=checkbox]) { flex:1; min-width:10rem }
ul.plain { list-style:none; padding:0 } ul.plain li { margin:.4rem 0 }
.row-actions button + button { margin-left:.6rem }
