/* Waghond — Aardvark-palet: #081F30 + groen/blou/rooi/oranje/geel. Een kolom, foon eerste. */
:root {
  --grond: #081F30; --paneel: #0E2A40; --paneel2: #123450; --lyn: #1D4463; --ink: #EAF2F8; --sag: #9DB4C6;
  --groen: #37B34A; --rooi: #EF4444; --oranje: #F97316; --geel: #F4B400; --blou: #0EA5E9;
  --r: 10px; --gaping: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grond); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg.lucide { width: 20px; height: 20px; flex: none; }

#kop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 56px;
  padding: 6px max(14px, env(safe-area-inset-right)) 6px max(14px, env(safe-area-inset-left)); padding-top: max(6px, env(safe-area-inset-top));
  background: var(--grond); border-bottom: 1px solid var(--lyn); }
#kop h1 { font-size: 18px; font-weight: 650; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#kopMerk { flex: none; }
.lewe { display: inline-flex; align-items: center; gap: 6px; color: var(--sag); font-size: 12.5px; white-space: nowrap; }
.lewe i { width: 9px; height: 9px; border-radius: 50%; background: var(--sag); }
.lewe.reg i { background: var(--groen); } .lewe.oud i { background: var(--oranje); } .lewe.af i { background: var(--rooi); }
.lewe b { font-weight: 500; }

.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--lyn); background: var(--paneel); color: var(--ink); font: inherit; font-weight: 550; cursor: pointer; text-decoration: none; }
.knop:hover { background: var(--paneel2); }
.knop.vol { background: var(--blou); border-color: var(--blou); color: #081F30; }
.knop.vol:hover { filter: brightness(1.08); background: var(--blou); }
.knop.kaal { border-color: transparent; background: none; padding: 0 8px 0 2px; }
.knop.gevaar { color: #FCA5A5; }
.knop[disabled] { opacity: .5; cursor: default; }

#tabs { position: sticky; top: 56px; z-index: 19; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--grond); border-bottom: 1px solid var(--lyn); }
#tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 6px; color: var(--sag); text-decoration: none; font-weight: 550;
  border-bottom: 2px solid transparent; white-space: nowrap; }
#tabs a.aan { color: var(--ink); border-bottom-color: var(--blou); }
.tel { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rooi); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

#skerm { max-width: 900px; margin: 0 auto; padding: var(--gaping) max(14px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
section > * + * { margin-top: var(--gaping); }

.strook { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--lyn); border-left: 3px solid var(--geel); border-radius: var(--r); background: var(--paneel); }
.strook p { flex: 1; min-width: 0; }
.strook svg { color: var(--geel); }

.opsom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.teel { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--lyn);
  background: var(--paneel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-top: 3px solid var(--lyn); }
.teel b { font-size: 24px; line-height: 1.1; font-weight: 700; }
.teel span { color: var(--sag); font-size: 12.5px; }
.teel.aan { background: var(--paneel2); border-color: var(--ink); }
.teel.rooi { border-top-color: var(--rooi); } .teel.stil { border-top-color: var(--oranje); } .teel.gedemp { border-top-color: var(--geel); } .teel.groen { border-top-color: var(--groen); }
.teel.rooi.het b { color: #FCA5A5; } .teel.stil.het b { color: #FDBA74; }

.soekry { display: flex; flex-wrap: wrap; gap: 8px; }
.soek { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--lyn); border-radius: var(--r); background: var(--paneel); color: var(--sag); }
.soek input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; }
.soek:focus-within { border-color: var(--blou); }

.groep { border: 1px solid var(--lyn); border-radius: var(--r); background: var(--paneel); overflow: hidden; }
.groepkop { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.groepkop .naam { flex: 1; min-width: 0; }
.groepkop .getal { color: var(--sag); font-weight: 500; font-size: 13px; white-space: nowrap; }
.groepkop .getal em { font-style: normal; color: #FCA5A5; font-weight: 650; }
.groepkop svg.pyl { transition: transform .15s; color: var(--sag); }
.groep.toe svg.pyl { transform: rotate(-90deg); }
.groep.toe .rye { display: none; }
.ry { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 12px; border: 0; border-top: 1px solid var(--lyn); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ry:hover { background: var(--paneel2); }
.ry .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.ry .naam, .ry .wat { display: block; max-width: 100%; }
.ry .naam { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ry .wat { color: var(--sag); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ry .wat.fout { color: #FCA5A5; }
.ry .regs { flex: none; text-align: right; color: var(--sag); font-size: 12.5px; line-height: 1.35; }
.ry .regs b { display: block; font-weight: 500; }
.t-groen { color: var(--groen); } .t-rooi { color: var(--rooi); } .t-wankel { color: var(--geel); } .t-stil { color: var(--oranje); } .t-af, .t-nuut { color: var(--sag); }
.leeg { padding: 28px 12px; text-align: center; color: var(--sag); }

.kaart { border: 1px solid var(--lyn); border-radius: var(--r); background: var(--paneel); padding: 14px; }
.kaart h2 { font-size: 17px; } .kaart h3 { font-size: 14px; color: var(--sag); font-weight: 600; text-transform: none; margin-bottom: 8px; }
.hondkop { display: flex; align-items: flex-start; gap: 12px; }
.hondkop svg.lucide { width: 30px; height: 30px; margin-top: 2px; }
.hondkop .mid { flex: 1; min-width: 0; }
.wapen { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; border: 1px solid currentColor; margin-top: 6px; }
dl.feite { display: grid; grid-template-columns: minmax(96px, 150px) 1fr; gap: 8px 12px; margin: 0; }
dl.feite dt { color: var(--sag); } dl.feite dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dl.feite dd.fout { color: #FCA5A5; }
pre.blok { margin: 0; padding: 12px; border-radius: 8px; background: #06182A; border: 1px solid var(--lyn); color: #D6E4EE; font: 12.5px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow: auto; }
.knoppies { display: flex; flex-wrap: wrap; gap: 8px; }
.knoppies .knop { flex: 1 1 140px; }
.gebeur { display: flex; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--lyn); }
.gebeur:first-child { border-top: 0; }
.gebeur .mid { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.gebeur .tyd { color: var(--sag); font-size: 12.5px; white-space: nowrap; flex: none; text-align: right; }
.gebeur small { display: block; color: var(--sag); }
.gebeur button.skakel { border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; padding: 0; cursor: pointer; text-align: left; }
.veld { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-top: 1px solid var(--lyn); padding: 6px 0; }
.veld:first-of-type { border-top: 0; }
.veld select { min-height: 44px; max-width: 55%; border-radius: 8px; border: 1px solid var(--lyn); background: var(--grond); color: var(--ink); font: inherit; font-size: 16px; padding: 0 8px; }
.kol { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--sag); }
.kol.reg { background: var(--groen); } .kol.sleg { background: var(--rooi); }

#geenToegang { text-align: center; padding: 60px 16px; color: var(--sag); }
#geenToegang svg { width: 40px; height: 40px; } #geenToegang h2 { color: var(--ink); margin: 12px 0 6px; }
#heildronk { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; max-width: min(92vw, 520px);
  padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--grond); font-weight: 600; text-align: center; }

@media (max-width: 560px) {
  .opsom { grid-template-columns: repeat(2, 1fr); }
  #tabs a span { font-size: 13.5px; }
  .ry .regs { max-width: 86px; }
  .soekry .knop { flex: 1 1 100%; }
  dl.feite { grid-template-columns: 1fr; gap: 2px 0; } dl.feite dd { margin-bottom: 8px; }
  #leweTeks { display: none; }
}
