/* Statusseite – nutzt die Tokens aus ls-design.css */
.st-main { padding-bottom: 56px; }
.st-hero { padding: clamp(40px, 7vw, 76px) 0 28px; text-align: center; }
.st-overall {
    display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
    font: 700 14px/1 var(--font-body); color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line-strong);
}
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); position: relative; }
.st-overall[data-state="up"] { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); }
.st-overall[data-state="up"] .st-dot { background: #22c55e; box-shadow: 0 0 10px #22c55e99; }
.st-overall[data-state="degraded"] { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.1); }
.st-overall[data-state="degraded"] .st-dot { background: #fbbf24; box-shadow: 0 0 10px #fbbf2499; }
.st-overall[data-state="down"] { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.1); }
.st-overall[data-state="down"] .st-dot { background: #ef4444; box-shadow: 0 0 10px #ef444499; }
.st-title { margin: 22px 0 0; font: 800 clamp(38px, 7vw, 64px)/1 var(--font-display); letter-spacing: -.04em; }
.st-title em { font-style: normal; color: var(--accent); }
.st-sub { margin: 16px auto 0; max-width: 56ch; color: var(--ink-2); font-size: clamp(15px, 2vw, 17px); }
.st-updated { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }

.st-wrap { max-width: 920px; }
.st-stale { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--r-md); font-size: 14px; color: #fde68a; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35); }
.st-block { margin-top: 30px; }
.st-h2 { margin: 0 0 12px; font: 700 18px/1.2 var(--font-display); letter-spacing: -.01em; }
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.st-row { padding: 18px 20px 14px; }
.st-row + .st-row { border-top: 1px solid var(--line); }
.st-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.st-row-name { min-width: 0; }
.st-row-name b { display: block; font-size: 15.5px; font-weight: 700; }
.st-row-name span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.st-row-state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.st-row-state small { font-size: 12px; color: var(--ink-3); }
.st-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pill.is-up { color: #86efac; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.32); }
.st-pill.is-degraded { color: #fde68a; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); }
.st-pill.is-down { color: #fca5a5; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.4); }

.st-bars { display: flex; gap: 2px; margin-top: 16px; height: 38px; align-items: center; }
.st-bar { flex: 1 1 0; min-width: 0; height: 100%; border-radius: 3px; background: rgba(255,255,255,.08); cursor: pointer; transition: transform .07s ease-out, filter .07s, box-shadow .07s; }
.st-bar.is-up { background: #22c55e; }
.st-bar.is-warn { background: #fbbf24; }
.st-bar.is-down { background: #ef4444; }
.st-bar.is-none { background: rgba(255,255,255,.07); }
.st-bar:hover { transform: scale(1.9, 1.3); position: relative; z-index: 2; filter: brightness(1.25); box-shadow: 0 0 14px currentColor; }
.st-bar.is-up { color: #22c55e; } .st-bar.is-warn { color: #fbbf24; } .st-bar.is-down { color: #ef4444; } .st-bar.is-none { color: rgba(255,255,255,.3); }
.st-row-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.st-row-foot span:nth-child(2) { color: var(--ink-2); font-weight: 600; }

.st-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.st-meter { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.st-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.st-meter-top b { font-size: 18px; color: var(--ink); }
.st-track { margin-top: 10px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.st-track i { display: block; height: 100%; border-radius: 999px; }
.st-track i.is-up { background: #22c55e; } .st-track i.is-warn { background: #fbbf24; } .st-track i.is-down { background: #ef4444; }

.st-events { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.st-events li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 13.5px; color: var(--ink-2); }
.st-events li + li { border-top: 1px solid var(--line); }
.st-events li i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.st-events li.is-up i { background: #22c55e; } .st-events li.is-degraded i { background: #fbbf24; } .st-events li.is-down i { background: #ef4444; }
.st-events li b { color: var(--ink); }
.st-events li time { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.st-foot { margin: 28px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 640px) {
    .st-row { padding: 16px 14px 12px; }
    .st-row-state { align-items: flex-start; text-align: left; }
    .st-bars { height: 24px; gap: 1px; }
}

/* Wartung */
.st-overall[data-state="maintenance"] { border-color: rgba(59,130,246,.45); background: rgba(59,130,246,.12); }
.st-overall[data-state="maintenance"] .st-dot { background: #3b82f6; box-shadow: 0 0 10px #3b82f699; }
.st-pill.is-maintenance { color: #93c5fd; background: rgba(59,130,246,.16); border: 1px solid rgba(59,130,246,.42); }
.st-pill.is-planned { color: var(--ink-2); background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); }
.st-row.is-maintenance .st-bars { opacity: .55; }
.st-maint { display: grid; gap: 12px; }
.st-mt { display: grid; gap: 8px; justify-items: start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.st-mt.is-active { border-color: rgba(59,130,246,.45); box-shadow: 0 0 0 1px rgba(59,130,246,.1); }
.st-mt b { font-size: 15.5px; }
.st-mt p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.st-mt small { font-size: 12.5px; color: var(--ink-3); }
.st-live-dot { display: inline-block; }

/* Eigener Tooltip für die Tagesbalken */
.st-tip {
    position: fixed; z-index: 2000; pointer-events: none; min-width: 190px; max-width: 260px;
    display: grid; gap: 3px; padding: 11px 14px; border-radius: 12px;
    background: #151923; border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(0,0,0,.55);
    font-family: var(--font-body); animation: st-tip-in .08s ease-out;
}
.st-tip[hidden] { display: none; }
.st-tip small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.st-tip b { font-size: 14px; font-weight: 700; color: var(--ink); }
.st-tip span { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 13px; font-weight: 600; }
.st-tip span i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.st-tip span.is-up { color: #86efac; } .st-tip span.is-warn { color: #fde68a; } .st-tip span.is-down { color: #fca5a5; } .st-tip span.is-none { color: var(--ink-3); }
.st-tip::after {
    content: ''; position: absolute; left: var(--arrow, 50%); bottom: -6px; width: 10px; height: 10px; margin-left: -5px;
    background: #151923; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transform: rotate(45deg);
}
@keyframes st-tip-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-bar, .st-tip { transition: none; animation: none; } }
