/* Statusseite learncoach: gleiche Farben und Rundungen wie die Webseite
   (css/base/variables.css), ohne externe Schriften. */
:root {
    --bg: #fdfdfc;
    --surface: #ffffff;
    --surface-alt: #f0f4f1;
    --primary-light: #e6f2e8;
    --primary-dark: #4ca350;
    --text: #2d3436;
    --text-2: #636e72;
    --line: #e3e8e4;
    --ok: #5ab55e;
    --degraded: #e0a030;
    --outage: #d64545;
    --none: #d5dbd7;
    --radius: 16px;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14181a;
        --surface: #1d2326;
        --surface-alt: #232b2e;
        --primary-light: #1f3524;
        --text: #eef2f0;
        --text-2: #a4b0ac;
        --line: #2e3739;
        --none: #3a4548;
    }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.top {
    max-width: 760px; margin: 0 auto; padding: 20px 16px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 10px; }
.back { color: var(--text-2); font-size: .9rem; }
.back:hover { color: var(--primary-dark); }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 1.8rem; letter-spacing: -.02em; margin-bottom: 18px; }
h2 { font-size: 1.05rem; margin-bottom: 14px; }

.banner {
    display: flex; align-items: center; gap: 14px;
    border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
    background: var(--primary-light); border: 1px solid var(--line);
}
.banner__title { font-weight: 700; font-size: 1.1rem; }
.banner__sub { color: var(--text-2); font-size: .9rem; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--none); }
.state-ok .dot { background: var(--ok); }
.state-degraded { background: #fbf1dc; }
.state-degraded .dot { background: var(--degraded); }
.state-outage { background: #f9e3e3; }
.state-outage .dot { background: var(--outage); }
.state-unreachable, .state-loading { background: var(--surface-alt); }
.state-unreachable .dot, .state-loading .dot { background: var(--none); }
@media (prefers-color-scheme: dark) {
    .state-degraded { background: #3a2f17; }
    .state-outage { background: #3d2222; }
}

.notice {
    border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px;
    background: #fbf1dc; color: #5b4310; border: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) { .notice { background: #3a2f17; color: #f0dcae; } }
.notice[hidden] { display: none; }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px;
}
.comp { padding: 12px 0; border-top: 1px solid var(--line); }
.comp:first-child { border-top: 0; padding-top: 0; }
.comp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.comp__name { font-weight: 600; }
.comp__state { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.comp__state.ok { color: var(--primary-dark); }
.comp__state.degraded { color: #b07612; }
.comp__state.outage { color: var(--outage); }
.bar { display: flex; gap: 2px; height: 28px; }
.bar i { flex: 1; border-radius: 2px; background: var(--none); min-width: 0; }
.bar i.ok { background: var(--ok); }
.bar i.degraded { background: var(--degraded); }
.bar i.outage { background: var(--outage); }
.comp__meta { display: flex; justify-content: space-between; color: var(--text-2); font-size: .78rem; margin-top: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: .78rem; color: var(--text-2); }
.legend__range { margin-left: auto; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; background: var(--none); }
.sw.ok { background: var(--ok); }
.sw.degraded { background: var(--degraded); }
.sw.outage { background: var(--outage); }

.inc { padding: 12px 0; border-top: 1px solid var(--line); }
.inc:first-child { border-top: 0; padding-top: 0; }
.inc__title { font-weight: 600; }
.inc__meta { color: var(--text-2); font-size: .8rem; margin: 2px 0 6px; }
.inc__body { white-space: pre-line; font-size: .92rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-right: 6px; background: var(--surface-alt); color: var(--text-2); }
.tag.open { background: #f9e3e3; color: #a12c2c; }
.tag.done { background: var(--primary-light); color: var(--primary-dark); }
.muted { color: var(--text-2); font-size: .92rem; }
.foot { color: var(--text-2); font-size: .8rem; text-align: center; margin-top: 8px; }
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    .banner { padding: 14px 16px; }
    .card { padding: 16px; }
    .bar { height: 24px; }
}
