/* WFSC 2026 — LIVEPULS Operator-Style (Spec §12.1). Gilt für alle Bedien-Oberflächen
   (Admin, Jury, Head Judge, Zeitnehmer, MC, DJ, Einlass, Regie). Broadcast-Grafiken
   behalten den eigenen Zine-Look (§12.2) und binden dieses Sheet NICHT ein. */

:root {
  --bg: #0A0D10;
  --bg-glow-teal: rgba(14, 48, 48, 0.55);
  --bg-glow-magenta: rgba(42, 10, 34, 0.6);
  --surface: #12171c;
  --surface-2: #171d23;
  --border: rgba(255, 255, 255, 0.08);

  --ink: #FFFFFF;
  --muted: #9AA4AD;

  --g-magenta: #EC3B93;
  --g-violet: #9B6DD6;
  --g-cyan: #29B8E6;
  --pulse: linear-gradient(90deg, var(--g-magenta), var(--g-violet), var(--g-cyan));

  --ok: #4CD44C;
  --warn: #F5A623;
  --danger: #FF4D6D;

  --radius: 10px;
  --font: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-condensed: "Saira Condensed", var(--font);
}

* { box-sizing: border-box; }

/* Any app-defined "display: flex/grid" class on an element that also toggles the
   hidden attribute (e.g. view switching) would otherwise silently override the
   browser's default [hidden]{display:none} — author CSS always wins over the UA
   stylesheet regardless of selector specificity. Keep this rule authoritative. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 90% at 8% 0%, var(--bg-glow-teal), transparent 60%),
    radial-gradient(55% 90% at 100% 100%, var(--bg-glow-magenta), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
}

h1, h2, h3, h4 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

a { color: var(--g-cyan); }

button, .btn {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.15s ease;
}
button:hover, .btn:hover { border-color: var(--g-violet); }
button:active, .btn:active { transform: scale(0.98); }
button:disabled, .btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background-image: var(--pulse);
  border: none;
  color: #0A0D10;
  font-weight: 800;
}

.btn-danger { border-color: var(--danger); color: var(--danger); }

input, select, textarea {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--g-cyan);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.muted { color: var(--muted); }

.pulse-line {
  height: 2px;
  background-image: var(--pulse);
  border: none;
}

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 0.8em; letter-spacing: 0.04em; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-ok { background: rgba(76, 212, 76, 0.15); color: var(--ok); }
.badge-warn { background: rgba(245, 166, 35, 0.15); color: var(--warn); }
.badge-danger { background: rgba(255, 77, 109, 0.15); color: var(--danger); }
.badge-muted { background: rgba(154, 164, 173, 0.15); color: var(--muted); }

.flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}

/* ---------- Co-Branding-Kopfleiste (§12) — siehe cobrand-fragment.html ---------- */
.cobrand {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cobrand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--pulse);
  opacity: 0.9;
}
.cobrand .brand { display: flex; align-items: center; height: 42px; }
.cobrand .brand img { height: 100%; width: auto; display: block; }
.cobrand .livepuls img { height: 30px; }
.cobrand .divider {
  width: 2px;
  height: 34px;
  border-radius: 2px;
  background: var(--pulse);
  box-shadow: 0 0 14px rgba(155, 109, 214, 0.6);
}
.cobrand .wfsc {
  height: 44px;
  padding: 4px;
  border-radius: 10px;
  background: #dfeaec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.cobrand .wfsc img { height: 100%; border-radius: 6px; }
.cobrand .context { margin-left: auto; text-align: right; line-height: 1.05; }
.cobrand .context .role {
  font-family: var(--font-condensed);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 20px;
}
.cobrand .context .sub {
  font-family: var(--font-condensed);
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
@media (max-width: 560px) {
  .cobrand { gap: 14px; padding: 12px 16px; }
  .cobrand .context .role { font-size: 16px; }
  .cobrand .wfsc { height: 38px; }
}
