/* status.umbrella-co.de — öffentliche Statusseite (body.stat), nur von
   layout_status.html geladen, nach base.css. Nüchterner Werkzeug-Look:
   graue Fläche, weiße Tafeln, Ampelpunkte. Bewegung über die Tokens aus base.css. */

:root {
  --ink: #16191d;
  --muted: #5d6670;
  --line: #dde1e5;
  --bg: #f3f4f5;
  --panel: #ffffff;
  --ok: #1d8a4a;
  --ok-soft: #e3f3e9;
  --info: #b07a00;
  --info-soft: #fbf1d6;
  --warn: #c98b00;
  --red: #d0021b;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
html { background: var(--panel); overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; } /* kein Nachfedern: sonst blitzt unter der Fußzeile kurz Fremdfarbe auf */
body { min-height: 100vh; font: 400 15px/1.55 var(--sans); color: var(--ink); background: var(--bg); }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.skip:focus { background: #fff; padding: 8px 12px; }
.st-wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }

/* Kopf */
.st-head { position: sticky; top: 0; z-index: 10; background: var(--panel); border-bottom: 1px solid var(--line); }
.st-head .st-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 60px; }
.st-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; color: var(--muted); }
.st-brand img { width: 28px; height: 28px; }
.st-brand b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.st-nav { display: flex; gap: 4px; font-size: 14px; }
.st-nav a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-radius: 4px; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.st-nav a:hover { background: var(--bg); color: var(--ink); }
.st-nav a[aria-current] { color: var(--ink); background: var(--bg); font-weight: 500; }

/* Gesamtstatus */
main.st-wrap { padding-top: 32px; padding-bottom: 48px; }
.st-banner { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--ok); color: #fff; border-radius: 6px; margin-bottom: 32px; }
.st-banner h1 { font-size: clamp(20px, 2.4vw, 26px); }
.st-banner p { margin: 2px 0 0; font-size: 14px; opacity: .9; }
.st-banner.plain { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.st-banner.plain p { color: var(--muted); opacity: 1; }
.st-big-dot { flex: none; position: relative; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.st-big-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .st-big-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: uc-ping var(--dur-ambient) var(--ease-out) infinite; }
}

/* Tafeln */
.st-block { margin-bottom: 28px; }
.st-bh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.st-bh h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.st-bh a { font-size: 14px; }
.st-legend { margin: 0; font: 400 11.5px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.st-legend i { display: inline-block; width: 8px; height: 14px; border-radius: 2px; margin-left: 6px; }
.st-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 24px; align-items: center; padding: 14px 18px; }
.st-row + .st-row { border-top: 1px solid var(--line); }
.st-name b { display: block; font-weight: 500; }
.st-name span { font-size: 13px; color: var(--muted); }
.st-days { display: flex; gap: 2px; }
.st-days i, .st-legend i { width: 5px; height: 22px; border-radius: 1px; background: var(--ok); opacity: .85; }
.st-days .d-warn, .st-legend .d-warn { background: var(--warn); }
.st-legend .d-ok { background: var(--ok); }
.st-state { min-width: 180px; display: grid; grid-template-columns: 10px auto; gap: 0 8px; align-items: center; font-size: 14px; font-weight: 500; color: var(--ok); }
.st-state i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.st-state small { grid-column: 2; font: 400 11.5px var(--mono); color: var(--muted); }
.s-info .st-state { color: var(--info); }

/* Meldungen */
.st-incs { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.st-inc { padding: 18px 20px; }
.st-inc + .st-inc { border-top: 1px solid var(--line); }
.st-inc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 6px; font: 400 12px var(--mono); color: var(--muted); }
.st-tag { padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.t-open { background: var(--info-soft); color: #6b4a00; }
.t-done { background: var(--ok-soft); color: #145f33; }
.st-inc h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.st-inc p { margin: 0; color: #2f353c; max-width: 46em; }
.st-inc ul { margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); list-style: none; font-size: 13.5px; color: var(--muted); }
.st-inc ul li + li { margin-top: 4px; }

/* Fuß */
.st-foot { border-top: 1px solid var(--line); background: var(--panel); padding: 24px 0 32px; font-size: 13px; color: var(--muted); }
.st-foot p { margin: 0 0 8px; max-width: 60em; }
.st-foot .fan { font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .st-banner, .st-block { animation: uc-rise-up var(--dur-reveal) var(--ease-out) both; }
  .st-block:nth-of-type(2) { animation-delay: var(--stagger); }
  .st-block:nth-of-type(3) { animation-delay: calc(var(--stagger) * 2); }
}

@media (max-width: 760px) {
  .st-row { grid-template-columns: minmax(0, 1fr) auto; }
  .st-days { grid-column: 1 / -1; grid-row: 2; }
  .st-days i { flex: 1; width: auto; }
  .st-state { min-width: 0; }
}
@media (max-width: 480px) {
  .st-head .st-wrap { padding-top: 10px; padding-bottom: 6px; }
  .st-nav { width: 100%; margin-left: -12px; }
  .st-banner { padding: 18px; gap: 14px; }
  .st-row { padding: 12px 14px; }
  .st-state small { display: none; }
}
@media print { .st-head { position: static; } }
