:root {
  --bg: #f4f5f7; --card: #ffffff; --text: #1a1d21; --muted: #6b7280;
  --line: #e2e4e8; --chip: #eef0f3;
  --accent: #4338ca; --accent-soft: #e0e7ff; --accent-contrast: #ffffff;
  --ok: #15803d; --err: #b91c1c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --card: #1a1f26; --text: #e8eaed; --muted: #9aa2ad;
    --line: #2a313a; --chip: #242b34;
    --accent: #a5b4fc; --accent-soft: #1e2250; --accent-contrast: #14183a;
    --ok: #4ade80; --err: #f87171;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }

header { margin-bottom: 16px; }
header > div { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.terug { color: var(--muted); text-decoration: none; font-size: 13px; }
.terug:hover { color: var(--accent); }
h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.sub { margin: 0; color: var(--muted); font-size: 13px; flex-basis: 100%; }
.muted { color: var(--muted); font-size: 13px; }

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

button {
  border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-contrast);
  padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: default; transform: none; filter: none; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; padding: 6px 11px; font-size: 13px; }
button.ghost:hover { color: var(--text); border-color: var(--muted); filter: none; }

/* tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
  background: var(--chip); color: var(--muted); border: 0; border-radius: 6px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
}
.tabs button:hover { color: var(--text); filter: none; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-contrast); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.chips button {
  background: var(--chip); color: var(--text); border: 0; border-radius: 6px;
  padding: 7px 12px; font-size: 13px; font-weight: 600;
}
.chips button:hover { filter: none; background: var(--accent-soft); }

/* tijd */
.wijzerplaat { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 4px auto 0; }
.wijzerplaat svg { display: block; width: 100%; height: 100%; }
.wijzerplaat .plaat { fill: var(--bg); stroke: var(--line); stroke-width: 2; }
.wijzerplaat .rest { fill: #dc2626; }
.wijzerplaat .streep { stroke: var(--muted); stroke-width: 1.5; }
.wijzerplaat .streep.dik { stroke: var(--text); stroke-width: 2.5; }
.tijd {
  margin: 10px 0 4px; text-align: center; font-size: clamp(48px, 13vw, 84px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums;
}
.tijd.klein { font-size: clamp(36px, 10vw, 64px); }
.tijd.op { color: #dc2626; animation: knipper 1s steps(2, start) infinite; }
@keyframes knipper { to { visibility: hidden; } }
.status { text-align: center; margin: 0 0 12px; min-height: 20px; }

.knoppen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; margin: 12px 0; }
.knoppen .groot { font-size: 16px; padding: 10px 26px; min-width: 120px; }

.instellen { display: flex; gap: 8px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
label, .veldlabel { display: block; font-size: 13px; color: var(--muted); }
.instellen label { width: 84px; }
input[type=number] {
  display: block; width: 100%; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  color: var(--text); padding: 7px 9px; font: inherit; font-size: 16px; text-align: center;
}
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vinkje { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; color: var(--text); font-size: 13px; cursor: pointer; }
.vinkje input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }

.rondes { max-width: 360px; margin: 8px auto 0; padding: 0; list-style: none; counter-reset: ronde; }
.rondes li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rondes li span:first-child { color: var(--muted); flex: 1; }
.rondes li span:last-child { color: var(--muted); }

footer { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* volledig scherm: alleen de tijd, groot */
.paneel:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 4vmin; overflow: auto; }
.paneel:fullscreen .tabs, .paneel:fullscreen .instellen, .paneel:fullscreen .chips, .paneel:fullscreen .vinkje { display: none; }
.paneel:fullscreen .tijd { font-size: min(22vw, 40vh); }
.paneel:fullscreen .tijd.klein { font-size: min(15vw, 30vh); }
.paneel:fullscreen .wijzerplaat { width: min(45vh, 70vw); }

@media (prefers-reduced-motion: reduce) {
  .tijd.op { animation: none; }
}
/* BurgMedia-schil: woordmerk in de header + uitleg/CTA-sectie onder de tool.
   Identiek blok voor elke tool (tokens komen uit de stijlgids en bestaan
   in elke style.css); ongewijzigd achteraan style.css plakken. */
.merk { color: var(--text); text-decoration: none; font-size: 14px; letter-spacing: -.01em; padding-right: 10px; border-right: 1px solid var(--line); }
.merk b { font-weight: 800; }
.merk:hover { color: var(--accent); }

.over { border-top: 1px solid var(--line); background: var(--card); }
.over__inner { max-width: 760px; margin: 0 auto; padding: 40px 16px 48px; }
.over h2 { font-size: 16px; margin: 26px 0 8px; letter-spacing: -.01em; }
.over h2:first-child { margin-top: 0; }
.over p { margin: 0 0 12px; color: var(--muted); line-height: 1.65; }
.over a { color: var(--accent); }
.over__cta { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.over__cta p:first-child { color: var(--text); }
.over a.knop {
  display: inline-block; background: var(--accent); color: var(--accent-contrast);
  padding: 9px 16px; border-radius: 8px; font-weight: 600;
  text-decoration: none; margin: 6px 8px 0 0;
}
.over a.knop:hover { filter: brightness(1.08); }
.over a.ghostknop { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.over a.ghostknop:hover { border-color: var(--muted); filter: none; }
