/* ProDig Ticket-Alarm — app-spezifische Styles.
   Basistokens kommen aus /css/teka-base.css; hier Fallbacks + Layout. */
:root{
  --navy:#1B3A6B; --teka-blue:#2B448F;
  --card:#ffffff; --border:#e5e7eb; --text:#0f1f3a; --muted:#5b6b86;
  --ok:#10b981; --warn:#f59e0b; --red:#ef4444; --bg:#e6edf4;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  min-height:100vh;display:flex;flex-direction:column}

.app-header{background:var(--header-bg,var(--navy));color:#fff;display:flex;align-items:center;gap:14px;
  padding:14px 22px;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.app-header img{height:30px;filter:brightness(0) invert(1)}
.app-header .title{font-weight:800;font-size:1.05rem}
.app-header .env{font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  background:rgba(255,255,255,.14);padding:4px 10px;border-radius:999px}
.app-header .who{margin-left:auto;font-size:.85rem;opacity:.85}

.screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  text-align:center;padding:40px 20px}
.screen .big{font-size:1.3rem;font-weight:800}
.muted{color:var(--muted);font-size:.88rem;line-height:1.6}
.err{color:var(--red,#ef4444);font-weight:600}

main{flex:1;width:100%;max-width:760px;margin:0 auto;padding:24px 20px;display:flex;flex-direction:column;gap:16px}
.card{background:var(--card-bg,var(--card));border:1px solid var(--card-border,var(--border));border-radius:14px;
  padding:18px 20px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.card h2{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}

.pills{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.pill{display:inline-flex;align-items:center;gap:.45em;font-weight:700;font-size:.78rem;padding:5px 12px;border-radius:999px}
.pill .led{width:.6em;height:.6em;border-radius:50%}
.pill.ok{background:#d1fae5;color:#065f46}.pill.ok .led{background:var(--ok)}
.pill.warn{background:#fef3c7;color:#92400e}.pill.warn .led{background:var(--warn)}
.pill.off{background:#f1f5f9;color:#475569}.pill.off .led{background:#94a3b8}

.kv{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--card-border,var(--border));font-size:.92rem}
.kv:last-child{border-bottom:0}
.kv .k{color:var(--muted)} .kv .v{font-weight:600}

button{font-family:inherit;font-weight:700;border:0;border-radius:10px;padding:11px 18px;cursor:pointer;font-size:.92rem}
.btn-primary{background:var(--teka-blue);color:#fff}.btn-primary:hover{filter:brightness(1.08)}
.btn-ghost{background:#eef2f8;color:var(--navy)}.btn-ghost:hover{background:#e2e9f3}
.btn-row{display:flex;gap:10px;flex-wrap:wrap}

.help{font-size:.86rem;color:var(--muted);line-height:1.6}
.help code{background:#eef2f8;padding:1px 6px;border-radius:5px}
.help ol{margin:8px 0 0 18px;display:flex;flex-direction:column;gap:6px}

#alarm{position:fixed;inset:0;z-index:1000;display:none;flex-direction:column;align-items:center;justify-content:center;
  gap:18px;color:#fff;text-align:center;padding:24px;background:var(--red);animation:flash 1s steps(1,end) infinite}
#alarm.show{display:flex}
@keyframes flash{50%{background:#b91c1c}}
#alarm .big{font-size:clamp(1.6rem,5vw,3rem);font-weight:900}
#alarm .tid{font-size:clamp(2.4rem,9vw,5rem);font-weight:900;font-variant-numeric:tabular-nums}
#alarm .desc{font-size:clamp(.95rem,2.5vw,1.3rem);max-width:640px;opacity:.95}
#alarm button{background:#fff;color:var(--red);font-size:1.1rem;padding:14px 30px}
