/* /status: zentriert, mit ruhiger Bewegung. Gilt nur auf der Statusseite (Klasse .stat). */
.doc__body.stat { max-width: 760px; margin-inline: auto; text-align: center; }
.stat h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.stat .doc__meta { margin-top: 6px; }
.stat > p { max-width: 54ch; margin-inline: auto; }
.stat h2 { text-align: center; }
.stat .stat__none { text-align: center; }

/* Kopfbereich: großes Zeichen, das den Zustand zeigt */
.stat__all {
  --st: #6b7684; --ring: rgba(107, 118, 132, .35);
  position: relative; display: grid; justify-items: center; gap: 10px; flex-wrap: nowrap;
  margin: 34px 0 40px; padding: 44px 20px 34px; border: 0; background: none; border-radius: 28px; isolation: isolate;
}
.stat__all[data-state="ok"] { --st: #2b6b46; --ring: rgba(43, 107, 70, .38); background: none; border: 0; }
.stat__all[data-state="bad"] { --st: #a3302a; --ring: rgba(163, 48, 42, .38); background: none; border: 0; }
html[data-theme="dark"] .stat__all[data-state="ok"] { --st: #46d39a; --ring: rgba(70, 211, 154, .4); background: none; border: 0; }
html[data-theme="dark"] .stat__all[data-state="bad"] { --st: #ee7b72; --ring: rgba(238, 123, 114, .4); background: none; border: 0; }
.stat__all::before {
  content: ""; position: absolute; left: 50%; top: 82px; width: 230px; height: 230px; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%;
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--st) 14%, transparent), transparent);
}
.stat__all > div { display: grid; gap: 6px; flex: none; justify-items: center; }
.stat__all b { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em; }
.stat__all span { font-size: 1.05rem; color: var(--slate); max-width: 40ch; }
.stat__all[data-state="ok"] span, .stat__all[data-state="bad"] span { color: var(--slate); }
.stat__all .btn { margin-top: 10px; }

.stat__all > .stat__ico {
  position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--st); border: 0; transform: none; margin-bottom: 8px;
  display: grid; place-items: center; box-shadow: 0 0 0 0 var(--ring);
}
.stat__all[data-state="ok"] > .stat__ico::after {
  content: ""; width: 14px; height: 28px; border: solid #fff; border-width: 0 5px 5px 0; transform: translateY(-3px) rotate(45deg); border-radius: 2px;
}
html[data-theme="dark"] .stat__all[data-state="ok"] > .stat__ico::after { border-color: #0d2a22; }
.stat__all[data-state="bad"] > .stat__ico { border-radius: 50%; transform: none; }
.stat__all[data-state="bad"] > .stat__ico::after { content: "!"; color: #fff; font: 700 42px/1 var(--font); }
html[data-theme="dark"] .stat__all[data-state="bad"] > .stat__ico::after { color: #3a1f1d; }
.stat__all[data-state="wait"] > .stat__ico { background: transparent; border: 5px solid color-mix(in srgb, var(--st) 35%, transparent); border-top-color: var(--st); }

@media (prefers-reduced-motion: no-preference) {
  .stat__all[data-state="ok"] > .stat__ico, .stat__all[data-state="bad"] > .stat__ico { animation: statPop .6s cubic-bezier(.2, .9, .3, 1.3) both, statRing 2.6s 0.6s ease-out infinite; }
  .stat__all[data-state="wait"] > .stat__ico { animation: statSpin 1s linear infinite; }
  .stat__all > div, .stat__all > .btn { animation: statUp .6s .12s ease-out both; }
  .stat__all .btn { animation-delay: .24s; }
  .stat__card { animation: statUp .6s ease-out both; }
  .stat__cards .stat__card:nth-child(1) { animation-delay: .1s; }
  .stat__cards .stat__card:nth-child(2) { animation-delay: .2s; }
  .stat__cards .stat__card:nth-child(3) { animation-delay: .3s; }
  .stat__all[data-state="ok"]::before, .stat__all[data-state="bad"]::before { animation: statGlow 5s ease-in-out infinite; }
}
@keyframes statPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes statRing { 0% { box-shadow: 0 0 0 0 var(--ring); } 70%, 100% { box-shadow: 0 0 0 34px transparent; } }
@keyframes statUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes statGlow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* Karten: einspaltig, Inhalt mittig */
.stat__cards { max-width: 620px; margin-inline: auto; }
.stat__card { text-align: center; padding: 24px 24px 12px; }
.stat__card h2 { margin: 0 0 10px; }
.stat__row { flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 0; text-align: center; }
.stat__txt { justify-items: center; }
.stat__hist .stat__card, .stat__notes { max-width: 620px; margin-inline: auto; }
.stat__nh { justify-content: center; text-align: center; }
.stat__note { text-align: center; border-left-width: 1px; border-radius: 14px; border-top: 3px solid var(--brass); }
.stat__note--resolved { border-top-color: #2b6b46; }
