/* Startup Agenda – huisstijl
   Kleuren en typografie volgen het bestaande logo: teal naar paars. */

:root {
  --teal:   #7DD3C0;
  --purple: #A5B4FC;
  --grad:   linear-gradient(135deg, #7DD3C0, #A5B4FC);
  --dark:   #1E293B;
  --mid:    #64748B;
  --light:  #94A3B8;
  --bg:     #F8FAFC;
  --card:   #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06);
  --radius: 10px;
  --max:    900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { height: 44px; width: auto; }
.brand-region {
  font-size: 13px; color: var(--mid); border-left: 1px solid var(--border);
  padding-left: 12px; line-height: 1.3;
}
.brand-region strong { display: block; color: var(--dark); font-size: 15px; font-weight: 600; }

nav.main { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.main a {
  font-size: 14.5px; color: var(--mid); text-decoration: none;
  padding: 6px 10px; border-radius: 6px; transition: background .15s, color .15s;
}
nav.main a:hover, nav.main a:focus-visible { background: var(--bg); color: var(--dark); }
nav.main a.active { color: var(--dark); font-weight: 600; }

.lang-switch {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border: 1.5px solid var(--border); border-radius: 99px; padding: 4px 11px;
  color: var(--mid); text-decoration: none; margin-left: 6px;
}
.lang-switch:hover { border-color: var(--teal); color: var(--dark); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 34px 0 20px; }
.hero h1 { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.hero p { color: var(--mid); margin-top: 8px; font-size: 16px; max-width: 620px; }

/* ── Filters ─────────────────────────────────────────────────────────────── */
.filters { background: var(--card); border-bottom: 1px solid var(--border); }
.filters-inner { max-width: var(--max); margin: 0 auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 9px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label {
  font-size: 11px; font-weight: 700; color: var(--light);
  text-transform: uppercase; letter-spacing: .07em; min-width: 46px;
}
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 99px; border: 1.5px solid var(--border);
  font-size: 12.5px; color: var(--mid); background: transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.pill:hover { border-color: var(--teal); color: var(--dark); }
.pill.active { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }
.pill .n { opacity: .6; font-size: 11px; }
.pill.active .n { opacity: .85; }

.search-box { display: flex; gap: 8px; width: 100%; }
.search-box input[type=search] {
  flex: 1; font: inherit; font-size: 15px; padding: 9px 14px;
  border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--dark);
}
.search-box input[type=search]:focus { outline: none; border-color: var(--teal); background: var(--card); }
.btn {
  font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px;
  border: none; border-radius: 8px; background: var(--grad); color: #fff;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { opacity: .9; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--mid); }
.btn-ghost:hover { border-color: var(--teal); color: var(--dark); opacity: 1; }

/* ── Eventlijst ──────────────────────────────────────────────────────────── */
main { padding: 8px 0 70px; }
.result-count { font-size: 13px; color: var(--light); padding: 14px 0 0; }

.month-heading {
  font-size: 13px; font-weight: 700; color: var(--light);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 30px 0 10px; border-bottom: 1.5px solid var(--border); margin-bottom: 4px;
}

.event-card {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.date-badge { flex-shrink: 0; width: 56px; text-align: center; padding-top: 3px; }
.date-day   { font-size: 33px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.date-month { font-size: 12px; font-weight: 600; color: var(--mid); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.date-time  { font-size: 11px; color: var(--light); margin-top: 4px; }

.event-body { flex: 1; min-width: 0; }
.event-source {
  display: inline-block; padding: 2px 9px; border-radius: 4px;
  font-size: 11px; font-weight: 500; background: #F1F5F9; color: var(--mid); margin-bottom: 6px;
}
.event-title {
  font-size: 19px; font-weight: 600; line-height: 1.35; text-decoration: none;
  display: block; margin-bottom: 5px;
}
.event-title:hover { color: #4B9E8C; }
.event-meta { font-size: 14px; color: var(--mid); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 7px; }
.event-meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-desc { font-size: 15px; color: var(--mid); line-height: 1.6; }
.event-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.tag { font-size: 11px; padding: 2px 9px; border-radius: 4px; background: #F1F5F9; color: var(--mid); }
.tag.type { background: linear-gradient(135deg, rgba(125,211,192,.18), rgba(165,180,252,.2)); color: #4A7C8C; font-weight: 600; }

.event-thumb {
  flex-shrink: 0; width: 210px; height: 140px; object-fit: cover;
  border-radius: var(--radius); background: var(--border); align-self: center;
}
.event-thumb.placeholder { background: linear-gradient(135deg, rgba(125,211,192,.22), rgba(165,180,252,.28)); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--light); }
.empty-state h3 { font-size: 19px; font-weight: 500; color: var(--mid); margin-bottom: 6px; }

/* ── Detailpagina ────────────────────────────────────────────────────────── */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mid); text-decoration: none; padding: 26px 0 14px; }
.back-link:hover { color: var(--dark); }
.detail-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; max-height: 340px; }
.detail-hero img { width: 100%; height: 340px; object-fit: cover; }
.detail h1 { font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; margin-bottom: 14px; }
.detail-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px; padding: 18px 20px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); margin: 20px 0;
}
.fact-label { font-size: 11px; font-weight: 700; color: var(--light); text-transform: uppercase; letter-spacing: .07em; }
.fact-value { font-size: 15px; margin-top: 3px; }
.detail-body { font-size: 16.5px; line-height: 1.75; color: #334155; }
.detail-body p { margin-bottom: 14px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 10px; }
.detail-source { font-size: 13px; color: var(--light); margin-top: 18px; }

/* ── Pagina's & formulieren ──────────────────────────────────────────────── */
.page { padding: 30px 0 60px; max-width: 680px; }
.page h1 { font-size: 30px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 16px; }
.page h2 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.page p { margin-bottom: 14px; color: #334155; }
.page ul { margin: 0 0 16px 20px; color: #334155; }
.page li { margin-bottom: 6px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15px; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: 8px; background: var(--card); color: var(--dark);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--light); margin-top: 4px; }

.notice { padding: 13px 16px; border-radius: 8px; font-size: 14.5px; margin-bottom: 20px; }
.notice.ok   { background: rgba(125,211,192,.16); color: #2F6B5C; }
.notice.err  { background: #FEF2F2; color: #B91C1C; }

/* ── Regio-overzicht ─────────────────────────────────────────────────────── */
.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 26px; }
.region-card {
  display: block; padding: 22px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s;
}
.region-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.region-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.region-card p { font-size: 14px; color: var(--mid); }
.region-card .count { font-size: 12.5px; color: var(--light); margin-top: 10px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.newsletter { background: var(--card); border-top: 1px solid var(--border); padding: 34px 0; }
.newsletter h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.newsletter p { font-size: 14.5px; color: var(--mid); margin-bottom: 14px; }
.newsletter form { display: flex; gap: 8px; max-width: 440px; flex-wrap: wrap; }
.newsletter input[type=email] {
  flex: 1; min-width: 200px; font: inherit; font-size: 15px; padding: 9px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
}
.newsletter input[type=email]:focus { outline: none; border-color: var(--teal); }

footer.site {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 24px 0; font-size: 12.5px; color: var(--light);
}
footer.site .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--mid); text-decoration: none; }
footer.site a:hover { color: var(--dark); }
.source-list { max-width: 560px; line-height: 1.8; }

/* ── Mobiel ──────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 16px; }
  .brand svg { height: 36px; }
  .brand-region { border-left: none; padding-left: 0; font-size: 12px; }
  nav.main { gap: 0; margin-left: -10px; }
  .hero { padding: 22px 0 14px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 15px; }

  /* Filterpillen horizontaal laten scrollen in plaats van doorlopen over
     meerdere regels: anders staat de eerste event pas ver onder de vouw. */
  .filter-row {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -20px; padding: 0 20px 2px;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-label { position: sticky; left: 0; background: var(--card); padding-right: 4px; z-index: 1; }
  .event-card { gap: 13px; }
  .event-thumb { width: 96px; height: 74px; }

  /* De datumbadge verdwijnt; de volledige datum staat toch al in de metaregel
     eronder. Dat scheelt ~60px breedte, waardoor de titel niet meer over vijf
     regels afbreekt. */
  .date-badge { display: none; }
  .event-title { font-size: 16.5px; }
  .event-desc { display: none; }
  .event-meta { font-size: 13px; gap: 10px; }
  .month-heading { padding-top: 22px; }
  .detail h1 { font-size: 24px; }
  .detail-hero img { height: 200px; }
}

/* Lijniconen in de eventmeta */
.ico {
  width: 14px; height: 14px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .65;
}
