:root{
  --bg:#f6f7fb;
  --card:#fff;
  --text:#14161a;
  --muted:#5b6472;
  --border:#e6eaf0;
  --accent:#d61f26;
  --shadow:0 10px 30px rgba(20,22,26,.08);
  --radius:16px;
  --maxw:1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(214,31,38,0.08), transparent 60%),
    radial-gradient(900px 450px at 90% 10%, rgba(0,0,0,0.06), transparent 55%),
    var(--bg);
}

a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible{
  outline:3px solid rgba(214,31,38,.45);
  outline-offset:3px;
  border-radius:10px;
}

.container{width:min(var(--maxw),calc(100% - 32px));margin:0 auto}

/* ===== Header ===== */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:16px}
.brand{display:flex;align-items:center;gap:14px;min-width:240px}
.brand img{
  width:56px;height:56px;object-fit:contain;
  border-radius:12px;background:#fff;border:1px solid var(--border);
  padding:8px
}
.brand-text{display:grid;gap:2px;line-height:1.2}
.brand-text strong{font-size:15px;letter-spacing:.2px}
.brand-text span{font-size:12.5px;color:var(--muted)}

nav{display:flex;align-items:center;gap:10px}
.nav-links{display:flex;align-items:center;gap:8px}
.nav-links a{
  padding:10px 12px;border-radius:12px;border:1px solid transparent;
  font-weight:800;font-size:14px
}
.nav-links a:hover{border-color:var(--border);background:#fff}
.nav-links a.active{
  border-color:rgba(214,31,38,.25);
  box-shadow:0 8px 18px rgba(20,22,26,.06);
}
.nav-links a.cta{
  background:var(--accent);color:#fff;border-color:rgba(0,0,0,.03);
  box-shadow:0 8px 18px rgba(214,31,38,.20)
}
.nav-links a.cta:hover{filter:brightness(.96)}

.lang{display:flex;gap:6px;margin-right:4px}
.lang a{
  font-weight:900;font-size:12px;color:var(--muted);
  padding:8px 10px;border-radius:12px;border:1px solid var(--border);
  background:#fff
}
.lang a.active{
  color:var(--text);
  border-color:rgba(214,31,38,.25);
  box-shadow:0 8px 18px rgba(20,22,26,.06)
}

/* Hamburger / mobile drawer */
.hamburger{
  display:none;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:14px;border:1px solid var(--border);
  background:#fff;cursor:pointer
}
.hamburger svg{width:22px;height:22px}
.mobile-drawer{display:none;border-top:1px solid var(--border);background:rgba(255,255,255,.95);backdrop-filter:blur(10px)}
.mobile-drawer.open{display:block}
.mobile-drawer .links{display:grid;gap:8px;padding:12px 0 16px}
.mobile-drawer .links a{
  padding:12px;border-radius:14px;border:1px solid var(--border);
  background:#fff;font-weight:900;font-size:14px
}
.mobile-drawer .links a.cta{background:var(--accent);color:#fff;border-color:rgba(0,0,0,.03)}
.mobile-lang{display:flex;gap:8px;padding:8px 0 0}
.mobile-lang a{
  flex:1;text-align:center;padding:10px;border-radius:14px;border:1px solid var(--border);
  background:#fff;font-weight:900;font-size:13px;color:var(--muted)
}
.mobile-lang a.active{color:var(--text);border-color:rgba(214,31,38,.25)}

@media (max-width:780px){
  .nav-links{display:none}
  .hamburger{display:inline-flex}
  .brand{min-width:0}
  .brand-text span{display:none}
  .lang{display:none}
}

/* ===== Hero ===== */
.page-hero{padding:26px 0 10px}
.hero-card{
  background:linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.80));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
  display:grid;
  gap:10px;
}
.hero-card h1{margin:0;font-size:clamp(22px,3.2vw,34px);letter-spacing:-.3px}
.hero-card p{margin:0;color:var(--muted);font-size:15px;line-height:1.55;max-width:78ch}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 14px;border-radius:14px;border:1px solid var(--border);
  background:#fff;font-weight:900;font-size:14px;cursor:pointer
}
.btn.primary{background:var(--accent);color:#fff;border-color:rgba(0,0,0,.03);box-shadow:0 8px 18px rgba(214,31,38,.20)}
.btn.ghost:hover{border-color:rgba(214,31,38,.25)}

/* ===== Tiles (home) ===== */
main{padding:10px 0 30px}
.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:18px 0 12px}
.section-title h2{margin:0;font-size:18px;letter-spacing:-.2px}
.section-title span{color:var(--muted);font-size:13px}

.tiles{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.tile{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 8px 18px rgba(20,22,26,.04);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height:120px;
  display:grid;
  gap:8px;
  align-content:start;
}
.tile:hover{
  transform:translateY(-2px);
  border-color:rgba(214,31,38,.25);
  box-shadow:0 14px 34px rgba(20,22,26,.10);
}
.tile .icon{
  width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  border:1px solid var(--border);background:#fff;font-size:18px
}
.tile h3{margin:0;font-size:15px;letter-spacing:-.2px}
.tile p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.45}
.tile .more{margin-top:2px;font-weight:900;font-size:13px;color:var(--accent)}
@media (min-width:900px){.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ===== Content cards / grids ===== */
.grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
@media (min-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 8px 18px rgba(20,22,26,.04);
  display:grid;gap:8px
}
.card h2{margin:0;font-size:16px;letter-spacing:-.2px}
.card p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.list{margin:6px 0 0;padding-left:18px;color:var(--muted);font-size:14px;line-height:1.6}

/* ===== Gallery (deployments) ===== */
.gallery{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px}
@media (min-width:900px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
.photo{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;box-shadow:0 10px 24px rgba(20,22,26,.06);
}
.photo .thumb{aspect-ratio: 16/10; background: linear-gradient(135deg, rgba(214,31,38,.10), rgba(0,0,0,.03));}
.photo .body{padding:14px;display:grid;gap:6px}
.photo .body strong{font-size:14px}
.photo .body span{font-size:13px;color:var(--muted)}

/* ===== Forms ===== */
.form{
  display:grid;gap:10px;margin-top:14px;
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  padding:16px;box-shadow:0 10px 24px rgba(20,22,26,.06);
}
.field{display:grid;gap:6px}
label{font-weight:900;font-size:13px}
input,textarea{
  width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--border);
  font:inherit;background:#fff;
}
textarea{min-height:120px;resize:vertical}

/* ===== Footer (clean) ===== */
footer{border-top:1px solid var(--border);background:#fff;padding:28px 0 16px;margin-top:40px}
.footer-clean{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;flex-wrap:wrap;font-size:14px}
.footer-left{max-width:320px;color:var(--muted);line-height:1.6}
.footer-left strong{display:block;color:var(--text);margin-bottom:6px}
.footer-middle{display:flex;flex-direction:column;gap:6px;color:var(--muted)}
.footer-middle strong{color:var(--text)}
.footer-right{display:flex;flex-direction:column;gap:6px}
.footer-right a{color:var(--muted);text-decoration:none;font-weight:700}
.footer-right a:hover{color:var(--accent)}
.footer-bottom{margin-top:20px;padding-top:14px;border-top:1px solid var(--border);text-align:center;font-size:13px;color:var(--muted)}
@media (max-width:900px){
  .footer-clean{flex-direction:column;gap:24px}
  .footer-right{flex-direction:row;gap:20px}
}

/* ===== Agenda ===== */
.agenda-filters{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  align-items:end;
}
.agenda-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.agenda-meta{
  margin:10px 0 0;
  color:var(--muted);
  font-size:13px;
}
@media (min-width:900px){
  .agenda-filters{
    grid-template-columns: 1.4fr 0.6fr auto;
  }
}

.agenda-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top:14px;
}
@media (min-width:900px){
  .agenda-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.agenda-item{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 8px 18px rgba(20,22,26,.04);
  display:grid;
  gap:10px;
}

.agenda-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.agenda-top h2{
  margin:0;
  font-size:16px;
  letter-spacing:-.2px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
.badge-brand{ color: var(--text); border-color: rgba(214,31,38,.25); }
.badge-info{ color: var(--text); border-color: rgba(20,22,26,.15); }
.badge-neutral{ color: var(--muted); }

.agenda-lines{
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  display:grid;
  gap:4px;
}
.agenda-lines strong{ color: var(--text); }

.agenda-remarks{
  border-top:1px solid var(--border);
  padding-top:10px;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

/* tooltip (fix: niet afbreken / niet buiten viewport) */
.badge { overflow: visible; }      /* belangrijk */
.agenda-top { overflow: visible; } /* belangrijk */
.agenda-item { overflow: visible; }/* belangrijk */

.info{
  display:inline-grid;
  place-items:center;
  width:16px;
  height:16px;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:11px;
  line-height:1;
  color:var(--text);
  position:relative;
  cursor:pointer;
  user-select:none;
  background:#fff;
}

.info .tooltip{
  visibility:hidden;
  opacity:0;
  position:fixed;                 /* key change: fixed => nooit meer “clipping” */
  max-width:min(320px, calc(100vw - 24px));
  background:#14161a;
  color:#fff;
  padding:10px;
  border-radius:10px;
  font-weight:600;
  font-size:12.5px;
  line-height:1.45;
  box-shadow:0 14px 34px rgba(20,22,26,.25);
  transition:opacity .15s ease;
  pointer-events:none;
  z-index:9999;
  white-space:normal;
}

/* zichtbaar bij hover/focus */
.info:hover .tooltip,
.info:focus .tooltip{
  visibility:visible;
  opacity:1;
}

/* gebruiker kiest kolommen */
.agenda-grid.view-1 { grid-template-columns: 1fr; }

@media (min-width: 700px){
  .agenda-grid.view-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (min-width: 900px){
  .agenda-grid.view-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* op mobiel altijd 1 kolom (ook als iemand 3 kiest) */
@media (max-width: 699px){
  .agenda-grid.view-2,
  .agenda-grid.view-3 { grid-template-columns: 1fr; }
}

/* ===== Donate page ===== */
.donate-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  margin-top:14px;
}
@media (min-width: 900px){
  .donate-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.donate-card h2{ margin:0 0 6px; }
.donate-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.donate-kv{
  margin-top:12px;
  display:grid;
  gap:6px;
  color: var(--muted);
  font-size:14px;
  line-height:1.55;
}
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.note{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.55);
  color: var(--muted);
  font-size:13.5px;
  line-height:1.5;
}

.donate-list{
  margin:10px 0 0;
  padding-left:18px;
  color: var(--muted);
  line-height:1.55;
}

.pill-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.pill{
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color: var(--muted);
}

.donate-split{
  display:grid;
  gap:14px;
  margin-top:10px;
}
@media (min-width: 900px){
  .donate-split{ grid-template-columns: 1fr 1fr; }
}

.fineprint{
  margin-top:10px;
  color: var(--muted);
  font-size:12.5px;
  line-height:1.45;
}
.muted{ color: var(--muted); }