:root {
  --bg: #0d1013;
  --panel: #151a1f;
  --line: #242b33;
  --text: #eef2f5;
  --muted: #94a0ad;
  --accent: #c6f432;
  --vrij: #22c55e;
  --bezet: #3b82f6;
  --defect: #ef4444;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2 { line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 1.35rem; }
.muted { color: var(--muted); margin: 0 0 14px; }
.small { font-size: .85rem; }
code { background: #1e252c; padding: 1px 6px; border-radius: 4px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(13,16,19,.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-weight: 600; font-size: 1.05rem; }
.logo b { color: var(--accent); }
.live-tag { margin-left: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--defect); border: 1px solid var(--defect); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--defect); margin-right: 5px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.clock { font-variant-numeric: tabular-nums; color: var(--muted); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 48px 0 28px; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.hero h1 span { color: var(--accent); }
.lead { color: var(--muted); max-width: 560px; margin: 0; }
.gauge-card { text-align: center; }
.gauge { --pct: 0; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gcol, var(--vrij)) calc(var(--pct) * 1%), #222a31 0); transition: background .6s; }
.gauge-inner { width: 128px; height: 128px; border-radius: 50%; background: var(--bg); display: grid; place-content: center; }
.gauge-inner strong { font-size: 2.2rem; font-variant-numeric: tabular-nums; }
.gauge-inner small { color: var(--muted); }
.gauge-label { margin: 10px 0 0; font-weight: 600; }

/* summary */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--line); }
.stat strong { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.vrij { border-left-color: var(--vrij); }
.stat.bezet { border-left-color: var(--bezet); }
.stat.defect { border-left-color: var(--defect); }
.stat.bron strong { font-size: 1.1rem; padding: 6px 0 5px; }

/* toestellen */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .88rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }
.legend { list-style: none; display: flex; gap: 18px; padding: 0; margin: 12px 0 18px; color: var(--muted); font-size: .88rem; flex-wrap: wrap; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw.vrij { background: var(--vrij); } .sw.bezet { background: var(--bezet); } .sw.defect { background: var(--defect); }
.zone { margin-bottom: 22px; }
.zone h3 { font-size: 1rem; margin: 0 0 10px; display: flex; gap: 10px; align-items: baseline; }
.zone h3 small { color: var(--muted); font-weight: 400; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; border-top: 4px solid; transition: border-color .4s, transform .2s; }
.tile.vrij { border-top-color: var(--vrij); }
.tile.bezet { border-top-color: var(--bezet); }
.tile.defect { border-top-color: var(--defect); }
.tile.changed { transform: scale(1.03); }
.tile b { display: block; font-size: .95rem; }
.tile .st { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.tile.vrij .st { color: var(--vrij); } .tile.bezet .st { color: var(--bezet); } .tile.defect .st { color: var(--defect); }
.tile .rgb { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
.updated { color: var(--muted); font-size: .85rem; margin: 4px 0 40px; }

/* panelen */
.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-bottom: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 8px; }
.bar { flex: 1; background: #2a333c; border-radius: 4px 4px 0 0; position: relative; min-height: 4px; }
.bar.now { background: var(--accent); }
.bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--muted); }
.tip { margin: 30px 0 0; }
.light { display: flex; gap: 22px; align-items: center; }
.lux strong { font-size: 2.6rem; font-variant-numeric: tabular-nums; }
.lux span { color: var(--muted); margin-left: 4px; }
.light-meta p { margin: 0 0 4px; display: flex; gap: 10px; }
.light-meta .muted { margin: 0; min-width: 52px; }
.luxbar { height: 8px; background: #222a31; border-radius: 99px; margin: 16px 0 10px; overflow: hidden; }
.luxbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6b7280, #facc15); transition: width .6s; }
.how { margin-bottom: 40px; }
.how ol { padding-left: 20px; margin: 10px 0 14px; }
.how li { margin-bottom: 6px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .88rem; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot p { margin: 0; }
.hosting::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #555; margin-right: 8px; }
.hosting.up::before { background: var(--vrij); }
.disclaimer { font-size: .78rem; margin: 14px 0 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 28px; }
  .gauge-card { justify-self: center; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .bar span { display: none; }
  .bar:nth-child(3n+1) span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .tile, .gauge, .luxbar i { transition: none; }
}
