:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-muted: #eef2f7;
    --text: #172033;
    --muted: #637083;
    --line: #dce3ec;
    --accent: #2457d6;
    --accent-dark: #183d9a;
    --ok: #18794e;
    --warning: #9a6700;
    --error: #b42318;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.home-shell { display: grid; gap: 24px; }
.hero, .page-header { display: flex; align-items: center; gap: 20px; }
.brand-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--text); color: #fff; font-weight: 800; letter-spacing: .04em; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin-bottom: 8px; font-size: 1rem; }
.lede { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.status-panel, .action-panel, .info-grid article, .summary-card, .check-item { border: 1px solid var(--line); background: var(--surface); box-shadow: 0 14px 40px rgba(36, 48, 78, .06); }
.status-panel { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 18px; overflow: hidden; }
.status-panel > div { padding: 22px; }
.status-panel > div + div { border-left: 1px solid var(--line); }
.label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.action-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; border-radius: 18px; }
.action-panel p, .info-grid p, .check-detail { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 12px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 750; white-space: nowrap; }
.button:hover { background: var(--accent-dark); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-grid article { padding: 24px; border-radius: 16px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); text-decoration: none; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.summary-card { padding: 22px; border-radius: 16px; }
.summary-card strong { display: block; font-size: 2rem; }
.summary-card span { color: var(--muted); }
.check-list { display: grid; gap: 12px; }
.check-item { display: grid; grid-template-columns: 14px 1fr; gap: 16px; padding: 20px; border-radius: 16px; }
.status-dot { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--muted); }
.check-ok .status-dot { background: var(--ok); }
.check-warning .status-dot { background: var(--warning); }
.check-error .status-dot { background: var(--error); }
.check-title-row { display: flex; justify-content: space-between; gap: 16px; }
.check-title-row h2 { margin-bottom: 4px; }
.status-badge { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.check-value { margin-bottom: 4px; font-weight: 700; }
@media (max-width: 760px) {
    .shell { width: min(100% - 24px, 1120px); padding-top: 28px; }
    .status-panel, .info-grid, .summary-grid { grid-template-columns: 1fr; }
    .status-panel > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .action-panel { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .hero { align-items: flex-start; }
    .brand-mark { width: 52px; height: 52px; border-radius: 14px; }
}

.narrow-shell { width: min(680px, calc(100% - 32px)); }
.auth-panel {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(36, 48, 78, .06);
}
.auth-panel label { font-weight: 750; }
.auth-panel input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
}
.auth-panel input:focus {
    outline: 3px solid rgba(36, 87, 214, .18);
    border-color: var(--accent);
}
.auth-panel .button { border: 0; cursor: pointer; }
.form-error {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff1f0;
    color: var(--error);
    font-weight: 700;
}

/* V01.2 – Login und Anwendungsschutz */
.auth-shell { display: grid; gap: 24px; min-height: 100vh; align-content: center; }
.auth-brand { display: flex; align-items: center; gap: 20px; }
.auth-panel h2 { margin-bottom: 0; }
.field-group { display: grid; gap: 8px; }
.form-success {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(24, 121, 78, .2);
    border-radius: 10px;
    background: #edf9f2;
    color: var(--ok);
    font-weight: 700;
}
.error-detail { display: block; margin-top: 4px; font-size: .86rem; font-weight: 600; }
.muted-copy, .auth-footnote { color: var(--muted); line-height: 1.6; }
.auth-footnote { margin: 0; text-align: center; font-size: .84rem; }
.auth-panel code { padding: 2px 5px; border-radius: 5px; background: var(--surface-muted); }
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.compact-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.account-area { display: flex; align-items: center; gap: 14px; }
.account-name { color: var(--muted); font-weight: 750; }
.account-area form { margin: 0; }
.button-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.button-secondary:hover { background: var(--surface-muted); }
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #edf9f2;
    color: var(--ok);
    font-weight: 800;
    white-space: nowrap;
}
@media (max-width: 760px) {
    .auth-brand, .app-header { align-items: flex-start; }
    .app-header { flex-direction: column; }
    .account-area { width: 100%; justify-content: space-between; }
}
