/* ─── NAVIGATIE · zijbalk (≥1280), ingeklapt (768–1279), telefoon (<768) ───
   Gedeeld door de Toolbox en Inmeten; het menu zelf komt uit /lib/nav.js. */
.bn {
  --bn-w: 256px;
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--bn-w); z-index: 60;
  background: #171A21; color: #E0E1DD; display: flex; flex-direction: column;
  font-family: 'TT Hoves Pro', 'Helvetica Neue', Arial, sans-serif; font-weight: 400;
  box-sizing: border-box;
}
.bn *, .bn *::before, .bn *::after { box-sizing: border-box; }
.bn .bn-top, .bn .bn-tabs, .bn .bn-sluit, .bn .bn-alleen-tel, .bn .bn-logo-klein, .bn .bn-uitklap { display: none; }
.bn-zij { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 20px 12px 12px; overflow-y: auto; scrollbar-width: thin; }
.bn-kop { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 18px; }
.bn-logo { display: flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 3px; }
.bn-logo img { display: block; }
.bn-logo-vol { height: 22px; }
.bn-logo-klein { height: 24px; }
.bn-lijst { display: flex; flex-direction: column; }
.bn-groep { display: flex; flex-direction: column; }
.bn-groepkop { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #A99F96; padding: 20px 12px 6px; }
.bn-item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 3px;
  background: none; color: #E0E1DD; text-decoration: none; font: inherit; font-size: 15px; text-align: left; cursor: pointer; width: 100%;
}
.bn-item svg { flex-shrink: 0; }
.bn-item:hover { background: #22262F; color: #FFFFFF; }
.bn-item.actief { background: #2B2F39; color: #FFFFFF; }
.bn-item:focus-visible, .bn-ikknop:focus-visible, .bn-logo:focus-visible, .bn-knop:focus-visible, .bn-tab:focus-visible, .bn-top-merk:focus-visible { outline: 2px solid #A99F96; outline-offset: 2px; }
.bn-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-voet { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 2px; }
.bn-uitklap { color: #A99F96; }
.bn-ik { position: relative; margin-top: 8px; border-top: 1px solid #3A3E47; padding-top: 8px; }
.bn-ikknop { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 12px; border: 0; border-radius: 3px; background: none; color: #E0E1DD; font: inherit; text-align: left; cursor: pointer; }
.bn-ikknop:hover { background: #22262F; }
.bn-av { width: 32px; height: 32px; border-radius: 50%; background: #A99F96; color: #171A21; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.bn-av img { width: 100%; height: 100%; object-fit: cover; }
.bn-ik-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bn-ik-t span { font-size: 14px; color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-ik-t small { font-size: 12px; color: #A99F96; }
.bn-ikmenu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: #FFFFFF; color: #171A21; border-radius: 3px; box-shadow: 0 8px 28px rgba(0,0,0,.28); overflow: hidden; min-width: 200px; }
.bn-ikmenu[hidden] { display: none; }
.bn-ikmail { padding: 12px 14px; font-size: 12px; color: #6B625A; border-bottom: 1px solid #ECECE8; word-break: break-all; }
.bn-ikmenu button { display: block; width: 100%; min-height: 44px; padding: 0 14px; border: 0; background: none; text-align: left; font: inherit; font-size: 14px; color: #A6402F; cursor: pointer; }
.bn-ikmenu button:hover { background: #F0F1EF; }
.bn-knop { width: 44px; height: 44px; border: 0; border-radius: 3px; background: none; color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ── ingeklapt: alleen iconen (laptop, tablet) ── */
@media (min-width: 768px) and (max-width: 1279px) {
  .bn { --bn-w: 64px; transition: width .15s ease; }
  .bn .bn-uitklap { display: flex; }
  .bn:not(.breed) .bn-zij { padding: 16px 10px 12px; align-items: center; }
  .bn:not(.breed) .bn-kop { margin-bottom: 8px; }
  .bn:not(.breed) .bn-logo { padding: 0; width: 44px; justify-content: center; }
  .bn:not(.breed) .bn-logo-vol, .bn:not(.breed) .bn-t, .bn:not(.breed) .bn-groepkop, .bn:not(.breed) .bn-ik-t, .bn:not(.breed) .bn-ikknop > svg { display: none; }
  .bn:not(.breed) .bn-logo-klein { display: block; }
  .bn:not(.breed) .bn-lijst, .bn:not(.breed) .bn-voet { align-items: center; width: 100%; }
  .bn:not(.breed) .bn-groep { align-items: center; width: 100%; border-top: 1px solid #3A3E47; margin-top: 8px; padding-top: 8px; }
  .bn:not(.breed) .bn-item { width: 44px; padding: 0; justify-content: center; }
  .bn:not(.breed) .bn-ik { width: 100%; display: flex; justify-content: center; }
  .bn:not(.breed) .bn-ikknop { width: 44px; padding: 6px; justify-content: center; }
  .bn:not(.breed) .bn-ikmenu { left: 0; right: auto; }
  .bn.breed { width: 256px; box-shadow: 8px 0 32px rgba(23,26,33,.28); }
  .bn.breed .bn-uitklap svg { transform: scaleX(-1); }
}

/* ── telefoon: balk bovenin, tabs onderin, volledig menu als lade ── */
@media (max-width: 767px) {
  .bn { position: sticky; top: 0; bottom: auto; width: auto; height: calc(56px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); flex-shrink: 0; }
  .bn .bn-top { display: flex; align-items: center; height: 56px; padding: 0 16px; }
  .bn-top-merk { display: flex; align-items: center; gap: 12px; min-height: 44px; color: #FFFFFF; text-decoration: none; font-size: 17px; }
  .bn-top-merk img { height: 22px; display: block; }
  .bn-zij { display: none; position: fixed; inset: 0; z-index: 80; background: #171A21; padding: calc(12px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
  .bn.open .bn-zij { display: flex; }
  .bn .bn-sluit { display: flex; }
  .bn .bn-alleen-tel { display: flex; color: #A99F96; }
  .bn-item { min-height: 48px; font-size: 16px; }
  .bn-ikmenu { position: static; margin-top: 8px; box-shadow: none; }
  .bn .bn-tabs {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #FFFFFF; border-top: 1px solid #DCDDD8;
  }
  .bn-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-top: 2px solid transparent; background: none; color: #6B625A; text-decoration: none; font: inherit; font-size: 11px; cursor: pointer; padding: 0; }
  .bn-tab.actief { color: #171A21; border-top-color: #171A21; }
  .bn.open .bn-tabs { display: none; }
  .bn .bn-zij .bn-logo-klein { display: none; }
}
