/* Huisstijl DenkBot: ink als achtergrond, cobalt als hoofdkleur, oranje alleen
   als waarschuwing. Rechte hoeken, geen schaduwen, Archivo en JetBrains Mono.
   Cobalt #1a2db8 is op ink te donker voor tekst; daarvoor een lichtere tint uit
   dezelfde familie. */
:root {
  --ink: #0f0f1a;
  --ink-2: #16162a;
  --lijn: #262640;
  --cobalt: #1a2db8;
  --cobalt-licht: #7d8dff;
  --oranje: #ff460d;
  --paper: #f5f3ee;
  --grijs: #9a9ab5;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

b { font-weight: 800; color: var(--cobalt-licht); }
a { color: var(--cobalt-licht); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* --- poort --- */

#poort {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.poort-doos {
  border: 1px solid var(--lijn);
  background: var(--ink-2);
  padding: 48px;
  max-width: 420px;
  text-align: left;
}
.poort-doos h1 { font-size: 26px; font-weight: 500; margin: 20px 0 4px; }
.poort-doos p.mono { color: var(--grijs); font-size: 12px; letter-spacing: .06em; margin: 0 0 28px; }
.knop {
  display: inline-block;
  background: var(--cobalt);
  color: #fff;
  padding: 12px 20px;
  font-weight: 500;
}
.knop:hover { background: var(--cobalt-licht); color: var(--ink); text-decoration: none; }
.fout { color: var(--oranje); font-size: 13px; margin: 0 0 16px; }

/* --- kop --- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: var(--ink);
  border-bottom: 1px solid var(--lijn);
  flex-wrap: wrap;
}
.merk { display: flex; align-items: center; gap: 10px; font-weight: 500; }
header nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
header nav a { color: var(--grijs); font-size: 14px; }
header nav a:hover { color: var(--paper); text-decoration: none; }
.wie { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--grijs); }

main { padding: 0 24px 48px; max-width: 1400px; margin: 0 auto; }

section { padding-top: 40px; }
section h2 { font-size: 22px; font-weight: 500; margin: 0 0 16px; }
.kicker { color: var(--cobalt-licht); font-size: 12px; margin-right: 10px; letter-spacing: .1em; }

h3 { font-size: 13px; font-weight: 500; color: var(--grijs); margin: 0 0 14px;
     text-transform: uppercase; letter-spacing: .08em; }

/* --- kaarten en tegels --- */

.kaart { border: 1px solid var(--lijn); background: var(--ink-2); padding: 20px; }
.breed { margin-top: 16px; }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }

.tegel { border: 1px solid var(--lijn); background: var(--ink-2); padding: 18px 20px; }
.tegel .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grijs); }
.tegel .waarde { font-size: 30px; font-weight: 500; line-height: 1.2; margin-top: 6px;
                 font-family: "JetBrains Mono", monospace; }
.tegel .sub { font-size: 12px; color: var(--grijs); margin-top: 4px; }
.tegel.let .waarde { color: var(--oranje); }

/* Een balk met een streepje dat aangeeft waar je zou staan bij gelijkmatig
   verbruik — hetzelfde idee als de tempoband op het Slack-dashboard. */
.balk { position: relative; height: 8px; background: #1f1f38; margin-top: 12px; }
.balk > i { position: absolute; inset: 0 auto 0 0; background: var(--cobalt-licht); }
.balk > i.let { background: var(--oranje); }
.balk > u { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--paper); opacity: .7; }

/* --- tabellen --- */

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-weight: 500; color: var(--grijs); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--lijn); padding: 0 12px 8px 0;
}
td { padding: 8px 12px 8px 0; border-bottom: 1px solid #1c1c30; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: "JetBrains Mono", monospace; }
td .mono { white-space: nowrap; }
table.crons td:first-child { width: 120px; }
table.crons td:nth-child(2) { width: 200px; }
td .stil { color: var(--grijs); }
.vlag { color: var(--oranje); }
.groen { color: var(--cobalt-licht); }
.knip { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.punt { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--cobalt-licht); }
.punt.uit { background: #3a3a55; }
.punt.let { background: var(--oranje); }

/* --- grafieken --- */

svg.grafiek { width: 100%; height: 200px; display: block; }
.legenda { display: flex; gap: 18px; font-size: 12px; color: var(--grijs); margin-top: 10px; }
.legenda i { display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; }

/* --- tekeningen --- */

.galerij { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
           gap: 16px; align-items: start; }
.galerij figure { margin: 0; border: 1px solid var(--lijn); background: var(--ink-2); }
.galerij img { width: 100%; display: block; cursor: zoom-in; }
.galerij figcaption { padding: 12px 16px; font-size: 13px; }
.galerij figcaption span { display: block; color: var(--grijs); font-size: 12px; margin-top: 2px; }

#vergroot {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 15, 26, .95);
  display: grid; place-items: center; padding: 24px; cursor: zoom-out;
}
#vergroot img { max-width: 100%; max-height: 100%; }

footer { border-top: 1px solid var(--lijn); padding: 20px 24px; color: var(--grijs); font-size: 12px; }
footer span { color: var(--cobalt-licht); }

@media (max-width: 900px) {
  .twee { grid-template-columns: 1fr; }
  header nav { order: 3; width: 100%; }
}
