/* Rankcomet: rustig, groot, voor een leek te snappen. Geen externe bronnen; systeemletters, dus niets om te hosten.
   Werkt van 390 px (telefoon) tot 1440 px en breder. */
:root {
  --inkt: #1c2430;
  --grijs: #5b6673;
  --lijn: #e3e7ec;
  --vlak: #f5f7f9;
  --wit: #ffffff;
  --accent: #0b6e4f;
  --accent-donker: #08573e;
  --accent-licht: #e6f3ee;
  --waarschuwing: #fff4e0;
  --waarschuwing-rand: #e0a84a;
  --fout: #b42318;
  --fout-licht: #fdecea;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--inkt);
  background: var(--vlak);
  line-height: 1.55;
}
header.kop {
  background: var(--wit);
  border-bottom: 1px solid var(--lijn);
}
header.kop .binnen {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
header.kop .merk { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--inkt); margin-right: auto; }
header.kop nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
header.kop nav a { color: var(--inkt); text-decoration: none; padding: 6px 2px; }
header.kop nav a:hover { text-decoration: underline; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 48px; }
footer { max-width: 1100px; margin: 0 auto; padding: 16px 20px 40px; color: var(--grijs); font-size: 0.9rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 8px 0 20px; }
h2 { font-size: 1.35rem; margin: 32px 0 12px; }
h3 { font-size: 1.05rem; margin: 18px 0 6px; }
p, li { max-width: 70ch; }
a { color: var(--accent-donker); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
pre { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
small { color: var(--grijs); }

/* Kaarten */
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; }
.kaart h2:first-child, .kaart h3:first-child { margin-top: 0; }
.kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 0 0 16px; }
.cijfer { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.cijfer small { display: block; font-size: 0.95rem; font-weight: 400; margin-top: 4px; }

/* Wacht op jou */
.wacht { border-left: 6px solid var(--accent); }
.voorstel { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--lijn); }
.voorstel:first-of-type { border-top: 0; padding-top: 4px; }
.voorstel .wat { font-size: 1.05rem; }
.voorstel .wat strong { display: block; }
.voorstel .acties { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.voorstel .acties form { display: inline; margin: 0; }
@media (min-width: 900px) {
  .voorstel { grid-template-columns: 1fr auto; align-items: center; }
}

/* Meldingen */
[role="alert"] { background: var(--fout-licht); border: 1px solid var(--fout); color: var(--fout); border-radius: var(--radius); padding: 12px 16px; }
[role="status"] { background: var(--waarschuwing); border: 1px solid var(--waarschuwing-rand); border-radius: var(--radius); padding: 12px 16px; }
section[role="status"] p:first-child { margin-top: 0; }
section[role="status"] p:last-child, section[role="status"] form:last-child { margin-bottom: 0; }

/* Formulieren en knoppen */
form { margin: 12px 0; }
label { display: block; margin: 0 0 14px; max-width: 70ch; }
label small { display: block; margin-top: 2px; }
input, select, textarea {
  display: block; width: 100%; max-width: 520px; font: inherit; color: inherit;
  padding: 10px 12px; margin-top: 4px; border: 1px solid #b9c2cc; border-radius: 8px; background: var(--wit);
}
input[type="radio"], input[type="checkbox"] { display: inline-block; width: auto; margin: 0 8px 0 0; vertical-align: middle; }
textarea { min-height: 90px; }
button {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--wit);
  min-height: 48px;
}
button:hover { background: var(--accent-donker); }
button.rustig { background: var(--wit); color: var(--inkt); border-color: #b9c2cc; }
button.rustig:hover { background: var(--vlak); }
header.kop nav button { min-height: 0; padding: 6px 12px; font-weight: 500; }

/* Lijsten */
ul.lijst { list-style: none; padding: 0; margin: 0; }
ul.lijst li { padding: 10px 0; border-top: 1px solid var(--lijn); }
ul.lijst li:first-child { border-top: 0; }
.sitenaam { font-weight: 600; }
.stil { color: var(--grijs); }
.links a { margin-right: 12px; }

@media (max-width: 480px) {
  html { font-size: 17px; }
  h1 { font-size: 1.6rem; }
  main { padding: 16px 16px 40px; }
  header.kop .binnen, footer { padding-left: 16px; padding-right: 16px; }
  .cijfer { font-size: 1.7rem; }
  button { width: 100%; }
  header.kop nav button, .voorstel .acties button { width: auto; }
}
