:root {
    color-scheme: light;
    --ink: #172b32;
    --muted: #63787e;
    --line: #e4ebe9;
    --accent: #087f6d;
    --surface: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f3f6f5; color: var(--ink); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 5; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; gap: 40px; padding: 0 max(24px, calc((100vw - 1280px) / 2)); min-height: 88px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.5px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: var(--ink); font-size: 14px; letter-spacing: 1px; }
.site-header nav { display: flex; align-self: stretch; gap: 28px; margin: 0 auto; }
.site-header nav a { display: flex; align-items: center; border-bottom: 3px solid transparent; padding: 16px 0; font-size: 14px; color: var(--muted); }
.site-header nav a[aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 650; }
.site-header a:hover { color: var(--accent); }
.logout-button { font-size: 14px; white-space: nowrap; }
.logout-button span { margin-left: 8px; }
.dashboard-container { max-width: 1328px; margin: auto; padding: 48px 24px 24px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.8px; color: var(--muted); margin-bottom: 8px; }
h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -1.8px; }
h1 span { color: var(--accent); }
.subtitle { margin-top: 12px; color: var(--muted); font-size: 15px; }
.status-badge { display: flex; align-items: center; gap: 8px; background: #e3f1eb; color: #24634f; padding: 8px 13px; border-radius: 100px; font-size: 12px; white-space: nowrap; }
.status-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.stats-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; }
.stat-label { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.stat-card strong { display: block; font-size: 30px; letter-spacing: -1px; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat-caption { color: var(--muted); font-size: 12px; margin-top: 10px; }
.featured { background: #163f39; border-color: #163f39; color: #fff; }
.featured .stat-label, .featured .stat-caption { color: #bad4cc; }
.content-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: start; gap: 24px; }
.card-box { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 4px 24px #183d3204; }
.card-heading { padding: 26px 26px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { font-size: 20px; letter-spacing: -.5px; font-weight: 650; }
.small-badge { border: 1px solid var(--line); color: var(--muted); padding: 4px 9px; border-radius: 6px; font-size: 11px; white-space: nowrap; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; color: var(--muted); font-size: 11px; }
@media (max-width: 900px) {
    .site-header { gap: 20px; padding: 16px 24px 0; flex-wrap: wrap; }
    .site-header nav { order: 3; width: 100%; gap: 24px; }
    .logout-button { margin-left: auto; }
    .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .site-header { gap: 12px; padding-inline: 16px; }
    .brand { font-size: 14px; }
    .site-header nav { gap: 20px; }
    .site-header nav a { font-size: 13px; }
    .dashboard-container { padding: 28px 16px 20px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .stats-grid { grid-template-columns: 1fr; gap: 12px; }
    .stat-card { padding: 20px; }
    .stat-card strong { font-size: 26px; }
    .card-heading { padding: 22px 18px; }
    .page-footer { flex-direction: column; gap: 6px; }
}
/* Gemeinsame Formulare und Aktionen */
h1, h2 { overflow-wrap: anywhere; }
.overview-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.overview-grid > * { min-width: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: #066b5c; }
.button-secondary { background: #f3f7f5; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: #e6eeea; }
button:disabled, input:disabled { opacity: .55; cursor: not-allowed; }
.input-group { margin-bottom: 20px; }
.input-group label, .field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
input[type="text"], input[type="password"], input[type="number"] { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #ccd9d2; border-radius: 9px; font: inherit; font-size: 16px; color: var(--ink); background: #fbfcfb; }
input::placeholder { color: #788982; }
input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.error-message { color: #b43535; font-size: 13px; margin: 14px 0; overflow-wrap: anywhere; }
.error-message:empty { display: none; }
@media (max-width: 900px) { .overview-grid { grid-template-columns: 1fr 1fr; } .overview-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .overview-grid { grid-template-columns: 1fr; gap: 12px; } }
.site-header nav { overflow-x: auto; }
.site-header nav a { white-space: nowrap; }
