:root{
  color-scheme: light dark;

  --bg: #ffffff;
  --panel: #ffffff;
  --text: #111318;
  --muted: #6b7280;
  --border: rgba(17,19,24,0.12);
  --shadow: rgba(0,0,0,0.06);

  --ok: #16a34a;
  --bad: #dc2626;
  --warn: #f59e0b; /* oranje voor "In gesprek" */
  --neutral: #9ca3af;

  --radius: 14px;
  --pad: 16px;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0b0d12;
    --panel: #0f121a;
    --text: #e7eaf0;
    --muted: #9aa3b2;
    --border: rgba(231,234,240,0.12);
    --shadow: rgba(0,0,0,0.25);
  }
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px; /* overal net wat groter */
}

.wrap{
  max-width: 700px;
  margin: 0 auto;
  padding: 18px 14px 26px;
}

.head{
  display: grid;
  gap: 20px;        /* was 14px → meer ademruimte */
  margin: 16px 0 22px;
}


h1{
  font-size: 18px;      /* iets kleiner */
  font-weight: 700;    /* niet dikgedrukt */
  line-height: 1.3;
  margin: 0;
  text-align: center;  /* gecentreerd */
  letter-spacing: 0;
}



.search input{
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
  box-shadow: 0 6px 18px var(--shadow);
  font-size: 16px;
}

.search input::placeholder{ color: var(--muted); }
.search input:focus{
  border-color: rgba(59,130,246,0.45);
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow);
  overflow: hidden;
}

.tablewrap{
  overflow-x: auto;
}

.table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table thead th{
  text-align: left;
  font-size: 14px;         /* groter dan eerder */
  font-weight: 650;
  color: var(--muted);
  background: color-mix(in oklab, var(--panel), var(--bg) 12%);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--pad);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table tbody td{
  text-align: left;
  padding: 12px var(--pad);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 16px; /* 14 -> 16 */
}

.table tbody tr:last-child td{
  border-bottom: none;
}

.col-icon{ width: 44px; padding-right: 0; }
.col-naam{ width: 46%; } /* namen dikgedrukt font-weight: 700; */
.col-type{ width: 26%; }
.col-nummer{ width: 28%; }

.thbtn{
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.thbtn:focus-visible{
  outline: 2px solid color-mix(in oklab, var(--text), transparent 70%);
  outline-offset: 2px;
  border-radius: 8px;
}

.sortmark{
  font-size: 12px;
  color: var(--muted);
}

.icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--neutral);
}

.icon svg{
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}

.tone-ok{ color: var(--ok); }
.tone-bad{ color: var(--bad); }
.tone-warn{ color: var(--warn); }
.tone-muted{ color: var(--neutral); }

.footerbar{
  padding: 20px var(--pad);
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--panel), var(--bg) 8%);
}

.footerleft{
  font-size: 14px;
  color: var(--muted);
}

.links{
  margin: 32px;              /* iets meer afstand vanaf de tabel/card */
  display: flex;
  gap: 18px;
  justify-content: center;       /* midden van de pagina */
  flex-wrap: wrap;
}

.links a{
  color: color-mix(in oklab, var(--text), transparent 40%);
  text-decoration: none;
  font-size: 14px;               /* kleiner */
}

.links a:hover{
  text-decoration: underline;
}


/* Slightly tighter on very small screens */
@media (max-width: 420px){
  .wrap{ padding: 14px 12px 22px; }
  .col-type{ width: 30%; }
  .col-naam{ width: 44%; }
  .col-nummer{ width: 26%; }
}
