/* Schildwall – gemeinsame Grundlagen.
   Bewusst ohne Framework, ohne Webfonts, ohne Animationsbibliothek.
   Zielgerät ist ein schwaches Android-Gerät: alles bleibt klein und statisch. */

:root {
  --bg: #0e1116;
  --bg-raised: #171c24;
  --bg-sunken: #0a0d12;
  --line: #2a323d;
  --text: #f2f5f8;
  --text-dim: #9aa6b4;

  --work: #2ea44f;
  --work-strong: #34c05c;
  --pause: #d9a400;
  --pause-strong: #f0b800;
  --off: #4a5462;
  --warn: #e07a1f;
  --error: #d64541;

  --accent: #3d7dd8;

  --radius: 14px;
  --gap: 14px;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.4;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

a {
  color: var(--accent);
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Verbindungsanzeige – identisch auf allen Oberflächen */
.conn {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.conn.is-online {
  color: var(--text-dim);
}

.conn.is-offline {
  color: var(--warn);
  font-weight: 600;
}
