/* P2000 Apeldoorn – shared tokens, fonts and components */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(../fonts/Poppins-Regular.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(../fonts/Poppins-Medium.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(../fonts/Poppins-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(../fonts/Poppins-Bold.woff2) format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 800; font-display: swap; src: url(../fonts/overpass-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 900; font-display: swap; src: url(../fonts/overpass-latin-900-normal.woff2) format("woff2"); }

:root {
  --red: #DC2626;
  --red-hot: #ef1530;
  --red-deep: #9b0016;
  --brand-blue: #1F4FA8;
  --brandweer: #E30613;
  --ambulance: #F4C400;
  --politie: #15428B;
  --traumaheli: #9333EA;
  --online: #22C55E;

  --bg: #f3f3f6;
  --surface: #ffffff;
  --surface-2: #f6f6f9;
  --line: rgba(17, 17, 24, .09);
  --text: #111118;
  --muted: #6b6b78;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(15,15,30,.06);
  --radius: 18px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Overpass", "Poppins", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0f; --surface: #16161c; --surface-2: #1d1d25; --line: rgba(255,255,255,.08);
    --text: #f4f4f7; --muted: #9a9aa8; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0f; --surface: #16161c; --surface-2: #1d1d25; --line: rgba(255,255,255,.08);
  --text: #f4f4f7; --muted: #9a9aa8; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 70%, white); outline-offset: 2px; border-radius: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.35em; border-radius: 999px; border: 0;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(220,38,38,.35); }
.btn-red:hover { box-shadow: 0 14px 40px rgba(220,38,38,.5); }
.btn-white { background: #fff; color: #111; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn-dark { background: #111; color: #fff; }

.live-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--online); position: relative; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
.live-dot.is-red { background: #fff; }
.live-dot.is-off { background: #f59e0b; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.shield { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(180deg, #ef1530, #b0001a); box-shadow: 0 6px 16px rgba(220,38,38,.35); flex: none; }
.shield svg { width: 62%; height: 62%; }

.prio { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1em .5em; border-radius: 6px; color: #fff; background: var(--muted); }
.prio.A0, .prio.A1, .prio.P1 { background: var(--red); }
.prio.A2, .prio.P2 { background: #ea580c; }
.prio.B1, .prio.B2, .prio.P3 { background: #2563eb; }

.mk-marker { width: 38px; height: 38px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); transition: transform .2s; cursor: pointer; }
.mk-marker img { width: 100%; height: 100%; object-fit: contain; }
.mk-marker:hover { transform: scale(1.15) translateY(-3px); }
.mk-marker.is-live::before { content: ""; position: absolute; left: 50%; bottom: -4px; width: 16px; height: 6px; margin-left: -8px; border-radius: 50%; background: rgba(220,38,38,.6); animation: ping 1.6s infinite; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}
