/* ════════════════════════════════════════════════════════════
   Nederland voor Gevorderden — gedeelde stijl
   ════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Roadgeek';
  src: url('../files/Roadgeek2005SeriesE.woff2') format('woff2'),
       url('../files/Roadgeek2005SeriesE.woff') format('woff');
  font-display: swap;
}

:root {
  --ink: #1f2d3a;          /* donkerblauw: balk, koppen */
  --ink-2: #2c3e50;
  --bg: #f2f0eb;           /* warm papier */
  --card: #ffffff;
  --line: #e2ddd3;
  --muted: #6d7177;
  --accent: #d9623b;       /* oranje: acties, route */
  --accent-soft: #fbe9e2;
  --blue: #2a77b5;
  --green: #2e9b5f;
  --red: #c0392b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,30,40,.06), 0 2px 8px rgba(20,30,40,.06);
  --shadow-lg: 0 10px 40px rgba(20,30,40,.22);
  --side-w: 400px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sign: 'Roadgeek', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: #222; background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
button { font: inherit; }
[hidden] { display: none !important; }
code { background: #00000010; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.grow { flex: 1; }

/* ── Topbalk ─────────────────────────────────────────────── */
.topbar {
  background: var(--ink); color: #fff;
  display: flex; align-items: center; gap: 14px;
  padding: 0 14px; height: 54px; flex-shrink: 0;
  position: relative; z-index: 1000;
}
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand-mark {
  font-family: var(--font-sign); font-size: 15px; letter-spacing: .02em;
  background: #fff; color: var(--ink); border-radius: 5px; padding: 3px 5px 1px;
}
.brand-txt { font-family: var(--font-sign); font-size: 19px; letter-spacing: .01em; }
.tabs { display: flex; gap: 2px; background: rgba(255,255,255,.08); padding: 3px; border-radius: 9px; }
.tab {
  color: rgba(255,255,255,.78); text-decoration: none; font-size: .88em; font-weight: 600;
  padding: 6px 12px; border-radius: 7px; transition: background .15s, color .15s;
}
.tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.tab.active { background: #fff; color: var(--ink); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-ghost { color: #fff; text-decoration: none; font-size: .88em; padding: 6px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 7px; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.usermenu { position: relative; }
.usermenu summary {
  list-style: none; cursor: pointer; font-size: .88em; padding: 6px 10px;
  border-radius: 7px; background: rgba(255,255,255,.1);
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary::before { content: '●'; color: #7bd389; margin-right: 6px; font-size: .8em; }
.usermenu .menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 9px;
  box-shadow: var(--shadow-lg); min-width: 190px; padding: 6px; display: flex; flex-direction: column;
}
.usermenu .menu a { color: #222; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .9em; }
.usermenu .menu a:hover { background: var(--bg); }

@media (max-width: 760px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 8px 10px; gap: 8px; }
  .brand-txt { display: none; }
  .tabs { order: 3; width: 100%; justify-content: space-between; }
  .tab { flex: 1; text-align: center; padding: 6px 4px; }
}

/* ── Knoppen ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9em;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #c9c2b4; background: #faf9f6; }
.btn.small { padding: 5px 10px; font-size: .82em; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #c4532e; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn {
  border: none; background: transparent; cursor: pointer; font-size: 1.15em; line-height: 1;
  padding: 6px 8px; border-radius: 7px; color: inherit;
}
.icon-btn:hover { background: #00000010; }
.linklike { border: none; background: none; color: var(--blue); cursor: pointer; padding: 0; font-size: inherit; }

/* ════════════════════════════════════════════════════════════
   APP-LAYOUT (Explorer / Kaart / Planner)
   ════════════════════════════════════════════════════════════ */
body.app { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
#layout { flex: 1; display: flex; min-height: 0; position: relative; }
#map-wrap { flex: 1; position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: #e8e4dc; }
/* OSM-kaart iets rustiger, zodat de gekleurde punten en routes eruit springen */
.leaflet-tile-pane { filter: saturate(.55) contrast(.92) brightness(1.04); }
.map-fab {
  position: absolute; right: 12px; bottom: 26px; z-index: 500;
  width: 42px; height: 42px; border-radius: 50%; border: none; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-lg); cursor: pointer; display: grid; place-items: center;
}
.map-fab:hover { color: var(--blue); }

#side {
  width: var(--side-w); flex-shrink: 0; position: relative; overflow: hidden;
  background: var(--bg); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
}
@media (max-width: 760px) {
  #layout { flex-direction: column; }
  #map-wrap { flex: none; height: 42dvh; }
  #side { width: 100%; flex: 1; border-left: none; border-top: 1px solid var(--line); }
  .map-fab { bottom: 12px; }
  .stop-card .ph { width: 84px; }
  .card-loc .thumb { width: 62px; }
  .route-grid { grid-template-columns: 1fr; padding: 10px; }
  .modal { padding: 0; }
  .modal-card.wide { height: 100%; border-radius: 0; }
}

.pane { display: none; flex-direction: column; min-height: 0; flex: 1; }
body.view-explorer [data-pane="explorer"],
body.view-kaart    [data-pane="kaart"],
body.view-planner  [data-pane="planner"] { display: flex; }

.pane-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); background: #faf8f4; flex-shrink: 0; }
.pane-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pane-title h2 { margin: 0; font-family: var(--font-sign); font-weight: normal; font-size: 1.35em; color: var(--ink); line-height: 1.1; }
.pane-title.small { font-size: .8em; color: var(--muted); margin-top: 8px; }
.pane-title .count { font-family: var(--font); font-size: .6em; color: var(--muted); font-weight: 600; }
.pane-tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hint { margin: 8px 0 0; font-size: .76em; color: var(--muted); }
.radius { display: flex; align-items: center; gap: 6px; font-size: .8em; color: var(--muted); flex: 1; min-width: 160px; }
.radius input { flex: 1; accent-color: var(--accent); }
.radius output { min-width: 40px; font-weight: 700; color: var(--ink); }

.list { flex: 1; overflow-y: auto; padding: 10px; overscroll-behavior: contain; }
.empty { color: var(--muted); font-size: .85em; padding: 14px 6px; margin: 0; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state p { margin: 0 0 14px; }

.search input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: .92em; background: #fff;
}
.search input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; max-height: 84px; overflow-y: auto; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 9px 3px 7px;
  font-size: .74em; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: #333;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; }
.chip.off { opacity: .4; }

/* ── Kaartjes (cards) ─────────────────────────────────────── */
.card-loc {
  display: flex; gap: 10px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 8px; cursor: pointer; overflow: hidden;
  border-left: 4px solid var(--c, #bbb); position: relative;
  transition: transform .15s, box-shadow .15s;
}
.card-loc:hover, .card-loc.hl { transform: translateX(3px); box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.card-loc .thumb { width: 74px; flex-shrink: 0; background: #ece8e0 center/cover no-repeat; }
.card-loc .thumb.none { display: grid; place-items: center; color: #c4bdb0; font-size: 1.4em; }
.card-loc .body { padding: 8px 10px 8px 0; min-width: 0; flex: 1; }
.thema-label { display: block; font-size: .66em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c, #999); }
.card-loc strong { display: block; font-size: .9em; line-height: 1.25; margin: 1px 0 2px; color: #1d1d1d; }
.card-loc small { display: block; color: var(--muted); font-size: .76em; }
.card-loc .dist { font-weight: 700; color: var(--blue); }
.card-loc .add {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent);
  color: var(--accent); background: #fff; font-size: 1.1em; font-weight: 700; cursor: pointer; display: none;
}
.building .card-loc .add { display: block; }
.building .card-loc .body { padding-right: 44px; }
.card-loc.in-route .add { background: var(--accent); color: #fff; font-size: .8em; }

/* ── Route in aanbouw (tray) ──────────────────────────────── */
#tray {
  border-top: 2px solid var(--accent); background: #fff; flex-shrink: 0;
  max-height: 48%; display: flex; flex-direction: column;
  box-shadow: 0 -6px 18px rgba(0,0,0,.06);
}
#tray.collapsed .tray-body { display: none; }
#tray.collapsed #tray-toggle { transform: rotate(180deg); }
.tray-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px 7px; cursor: pointer; }
.tray-head strong { color: var(--accent); font-size: .92em; }
.tray-head .muted { font-size: .78em; margin-left: 6px; }
.tray-body { overflow-y: auto; padding: 0 12px 10px; }
#tray-list { list-style: none; margin: 0; padding: 0; counter-reset: halte; }
#tray-list li {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 0; border-bottom: 1px dashed var(--line);
  font-size: .85em; background: #fff; cursor: grab;
}
#tray-list li::before {
  counter-increment: halte; content: counter(halte);
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: .78em; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
#tray-list li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tray-list li button { border: none; background: none; color: #aaa; cursor: pointer; font-size: 1.1em; }
#tray-list li button:hover { color: var(--red); }
#tray-list .sortable-ghost { opacity: .35; }
.tray-actions { display: flex; gap: 6px; margin-top: 9px; align-items: center; }
#tray-saveform { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
#tray-saveform input { flex: 1; min-width: 140px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; }

/* ── Planner ─────────────────────────────────────────────── */
.pl-stats { font-size: .8em; color: var(--muted); margin-top: 4px; }
.pl-stats b { color: var(--ink); }
.pl-progress { height: 4px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.pl-progress div { height: 100%; background: var(--green); transition: width .3s; }

.stop { position: relative; margin-bottom: 10px; }
.leg {
  font-size: .74em; color: var(--muted); padding: 0 0 6px 34px; position: relative;
}
.leg::before { content: ''; position: absolute; left: 15px; top: -10px; bottom: 0; border-left: 2px dotted #c9c2b4; }
.stop-card {
  display: flex; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent;
  transition: border-color .15s, box-shadow .15s, transform .2s, opacity .2s;
  position: relative; touch-action: pan-y;
}
.stop-card.sel { border-color: var(--accent); box-shadow: 0 4px 16px rgba(217,98,59,.22); }
.stop-card .ph { width: 104px; flex-shrink: 0; background: #ece8e0 center/cover no-repeat; position: relative; }
.stop-card .ph.none { display: grid; place-items: center; color: #c4bdb0; font-size: 1.6em; }
.stop-num {
  position: absolute; left: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .8em;
  display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.stop-card.sel .stop-num { background: var(--accent); }
.stop-card .bd { padding: 9px 11px; flex: 1; min-width: 0; }
.stop-card h3 { margin: 1px 0 3px; font-size: .95em; line-height: 1.25; }
.stop-card .meta { font-size: .76em; color: var(--muted); }
.stop-card .eta { font-size: .8em; margin-top: 4px; }
.stop-card .eta b { color: var(--ink); }
.stop-btns { display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.stop-btns button { white-space: nowrap; }
.stop-btns button {
  border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 7px;
  font-size: .72em; cursor: pointer; font-weight: 600; color: #333;
}
.stop-btns button:hover { border-color: #bbb; }
.stop-btns .done { color: var(--green); }
.stop.skipped .stop-card { opacity: .5; }
.stop.skipped h3 { text-decoration: line-through; }
.stop.visited .stop-card { opacity: .62; }
.stop.visited .stop-num { background: var(--green); }
.section-label { font-size: .72em; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 16px 2px 8px; }
.swipe-hint { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 18px; font-weight: 700; color: #fff; border-radius: var(--radius); opacity: 0; }
.swipe-hint.r { background: var(--green); }
.swipe-hint.l { background: #8a8f96; justify-content: flex-end; }

/* ── Kaartmarkers ─────────────────────────────────────────── */
.num-marker {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff;
  border: 2.5px solid #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); font-family: var(--font);
}
.num-marker.accent { background: var(--accent); }
.num-marker.sel { background: var(--accent); width: 36px; height: 36px; font-size: 14px; margin: -4px 0 0 -4px; }
.num-marker.done { background: var(--green); }
.num-marker.skip { background: #9aa0a6; }
.ref-pulse { width: 40px; height: 40px; border-radius: 50%; background: rgba(42,119,181,.18); border: 2px solid rgba(42,119,181,.5); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.leaflet-tooltip.nvg-tip {
  background: #fff; border: none; border-radius: 7px; box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: 12px; color: var(--ink); padding: 5px 9px;
}
.leaflet-tooltip.nvg-tip::before { display: none; }
.cluster {
  background: rgba(31,45,58,.18); border-radius: 50%; display: grid; place-items: center;
}
.cluster div {
  width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 12px; font-family: var(--font); border: 2px solid #fff;
}

/* ── Detailpaneel ─────────────────────────────────────────── */
#detail {
  position: absolute; inset: 0; background: #fff; z-index: 20; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .28s ease; box-shadow: -4px 0 20px rgba(0,0,0,.08);
}
#detail.open { transform: none; }
.detail-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px; background: var(--ink); color: #fff; flex-shrink: 0; }
.detail-head .icon-btn { color: #fff; }
.detail-head .icon-btn:hover { background: rgba(255,255,255,.15); }
.detail-titles { flex: 1; min-width: 0; }
.detail-titles .thema-label { color: rgba(255,255,255,.65); }
.detail-titles h2 { margin: 1px 0 0; font-size: 1.02em; line-height: 1.25; }
.detail-body { flex: 1; overflow-y: auto; padding: 14px 16px 30px; }
.detail-meta { font-size: .82em; color: var(--muted); margin-bottom: 10px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.photos:empty { display: none; }
.photos button {
  border: none; padding: 0; aspect-ratio: 4/3; border-radius: 7px; overflow: hidden; cursor: zoom-in;
  background: #eee center/cover no-repeat; position: relative;
}
.photos button.pending::after { content: 'ter goedkeuring'; position: absolute; left: 0; right: 0; bottom: 0; background: #000a; color: #fff; font-size: 10px; padding: 2px; }
.photos.one { grid-template-columns: 1fr; }
.photos.one button { aspect-ratio: 16/10; }
.detail-text { font-size: .92em; line-height: 1.65; color: #2a2a2a; white-space: pre-line; }
.detail-links h4 { margin: 18px 0 6px; font-size: .85em; color: var(--muted); }
.detail-links a { display: block; font-size: .85em; padding: 3px 0; text-decoration: none; }

/* ── Routekiezer ─────────────────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(20,28,36,.55); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: var(--bg); border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.modal-card.wide { max-width: 1060px; height: min(820px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.modal-head h2 { margin: 0; font-family: var(--font-sign); font-weight: normal; font-size: 1.5em; color: var(--ink); }
.modal-head input { flex: 1; min-width: 140px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.route-grid { padding: 16px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-content: start; flex: 1; }
.route-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.route-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.route-card .visual { display: grid; grid-template-columns: 1.4fr 1fr; height: 150px; background: #e8e4dc; }
.route-card .mini { height: 150px; }
.route-card .rphoto { background: #ddd8cc center/cover no-repeat; }
.route-card .rphoto.none { display: grid; place-items: center; color: #b7af9f; font-size: 2em; }
.route-card .info { padding: 10px 12px 12px; }
.route-card h3 { margin: 0 0 3px; font-size: 1em; }
.route-card .rmeta { font-size: .78em; color: var(--muted); }
.route-card .rprog { height: 3px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.route-card .rprog div { height: 100%; background: var(--green); }
.route-card .racts { display: flex; gap: 4px; margin-top: 8px; }
.route-card .racts button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 8px; font-size: .74em; cursor: pointer; }
.route-card .leaflet-container { background: #e8e4dc; }

/* ── Lichtbak ───────────────────────────────────────────── */
#lightbox { position: fixed; inset: 0; background: rgba(10,12,14,.92); z-index: 4000; display: flex; align-items: center; justify-content: center; }
#lightbox figure { margin: 0; text-align: center; }
#lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 6px; box-shadow: 0 8px 40px #000a; }
#lightbox figcaption { color: #ddd; font-size: .85em; padding-top: 10px; min-height: 1.4em; }
.lb-btn { position: fixed; background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.7em; line-height: 1; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 9px; font-size: .88em; z-index: 5000;
  transition: opacity .2s, transform .2s; box-shadow: var(--shadow-lg); max-width: 90vw;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.spinner { width: 16px; height: 16px; border: 2px solid #0002; border-top-color: var(--ink); border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════
   GEWONE PAGINA'S (artikelen, login, beheer)
   ════════════════════════════════════════════════════════════ */
body.page { min-height: 100vh; }
.narrow { max-width: 460px; margin: 40px auto; padding: 0 16px; }
.wide-main { max-width: 1240px; margin: 0 auto; padding: 20px 16px 60px; }
.panel { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 22px 24px; }
.panel h1 { margin: 0 0 6px; font-family: var(--font-sign); font-weight: normal; color: var(--ink); font-size: 1.8em; }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: .85em; font-weight: 600; color: #444; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: normal; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #222;
}
.form textarea { min-height: 260px; line-height: 1.55; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.form legend { font-weight: 700; font-size: .85em; padding: 0 6px; color: var(--ink); }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.alert { padding: 11px 14px; border-radius: 9px; font-size: .9em; margin: 10px 0; }
.alert.ok { background: #e3f4ea; color: #1d5e39; }
.alert.err { background: #fbe3e1; color: #8a2219; }
.alert.info { background: #e6f0f8; color: #1f4f78; }

table.tabel { width: 100%; border-collapse: collapse; font-size: .88em; }
.tabel th, .tabel td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabel th { font-size: .78em; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.badge { display: inline-block; font-size: .72em; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eee; color: #555; }
.badge.beheerder { background: var(--accent-soft); color: #a8401f; }
.badge.concept { background: #fff3cd; color: #7a5c00; }

/* ── Artikelen (index.php) ───────────────────────────────── */
.hero { text-align: center; padding: 30px 16px 10px; }
.hero h1 { font-family: var(--font-sign); font-weight: normal; font-size: clamp(2.2em, 6vw, 3.6em); color: var(--ink); margin: 0; line-height: 1; }
.hero h1 small { display: block; font-size: .42em; color: var(--accent); letter-spacing: .04em; margin-top: 6px; }
.zoekbalk { max-width: 760px; margin: 18px auto 0; position: relative; }
.zoekbalk form { display: flex; gap: 6px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.zoekbalk input[type=search] { flex: 1; border: none; font-size: 1em; padding: 8px 10px; min-width: 0; background: transparent; }
.zoekbalk input[type=search]:focus { outline: none; }
.zoekbalk .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 8px; }
.zoekbalk select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: .9em; }
.suggesties { position: absolute; left: 0; right: 0; top: 54px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 50; overflow: hidden; }
.suggesties a { display: block; padding: 9px 14px; color: #222; text-decoration: none; font-size: .92em; border-bottom: 1px solid #f0ede7; }
.suggesties a:hover, .suggesties a.act { background: var(--bg); }
.suggesties small { color: var(--muted); margin-left: 6px; }
.artikelen { max-width: 860px; margin: 26px auto 0; display: flex; flex-direction: column; gap: 18px; }
.artikel { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 20px 24px; border-top: 4px solid var(--c, #bbb); }
.artikel .kopregel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78em; color: var(--muted); }
.artikel .kopregel .thema-label { font-size: 1em; }
.artikel .kopregel a { color: var(--muted); }
.artikel h2 { margin: 6px 0 10px; font-size: 1.45em; line-height: 1.2; color: var(--ink); }
.artikel .tekst { line-height: 1.7; white-space: pre-line; }
.artikel .acties { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.artikel .photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 14px 0 0; }
.welkom p { line-height: 1.65; }
