/* tekenencefalitis.be — gedeelde stylesheet */

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --text: #1f2a24;
  --muted: #5b6a61;
  --line: #e2e4dc;
  --primary: #2f6b4f;
  --primary-dark: #214d39;
  --primary-soft: #e8f1ec;
  --accent: #b5542d;
  --warn-bg: #fdf1e9;
  --warn-line: #e8b596;
  --info-bg: #eef4f8;
  --info-line: #a9c4d6;
  --radius: 10px;
  --maxw: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }

img, svg { max-width: 100%; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; }

/* ---------- Header & navigatie ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: .9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
}

.logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.1rem;
  color: var(--text); text-decoration: none;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.logo-text span { color: var(--primary); }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .2rem;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  padding: .35rem .65rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
}
.main-nav a:hover { background: var(--primary-soft); }
.main-nav a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--primary-soft), var(--bg) 70%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1rem 2.5rem;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 700; color: var(--primary);
  margin: 0 0 .5rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero p.lead { font-size: 1.12rem; color: var(--muted); margin: 0; }

/* ---------- Content ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.page-title {
  font-size: clamp(1.7rem, 4.5vw, 2.2rem);
  line-height: 1.2;
  margin: .3rem 0 .75rem;
}
.page-intro { font-size: 1.1rem; color: var(--muted); margin-top: 0; }

h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2.4rem 0 .6rem;
}
h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .35rem; }

/* ---------- Componenten ---------- */

.callout {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; display: block; margin-bottom: .3rem; }

.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout.warn .callout-title { color: var(--accent); }
.callout.info { background: var(--info-bg); border-color: var(--info-line); }
.callout.key  { background: var(--primary-soft); border-color: #bcd5c7; }
.callout.key .callout-title { color: var(--primary-dark); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.card strong { display: block; color: var(--primary-dark); margin-bottom: .25rem; font-size: 1.05rem; }
.card span { font-size: .93rem; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .8rem;
  margin: 1.5rem 0;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
}
.fact b { display: block; font-size: 1.35rem; color: var(--primary); line-height: 1.2; margin-bottom: .2rem; }
.fact small { color: var(--muted); font-size: .88rem; display: block; line-height: 1.45; }

/* Tijdlijn voor het ziekteverloop */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.3rem 1.8rem;
  border-left: 2px solid var(--line);
  margin: 0 0 0 .5rem;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute; left: -8px; top: .35rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--primary);
}
.timeline li.danger::before { border-color: var(--accent); }
.timeline strong { display: block; }

/* Genummerde stappen */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}

/* Tabel */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .95rem;
  min-width: 520px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
}
thead th { background: var(--primary-soft); }
tbody th { font-weight: 600; width: 26%; }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: .7rem 0;
  padding: 0 1.1rem;
}
details[open] { padding-bottom: .9rem; }
summary {
  cursor: pointer;
  font-weight: 600;
  padding: .9rem 0;
}
summary:hover { color: var(--primary); }
details p:first-of-type { margin-top: 0; }
details > :last-child { margin-bottom: 0; }

.sources li { margin-bottom: .7rem; }
.sources small { color: var(--muted); }

.updated { font-size: .88rem; color: var(--muted); margin-top: 2.5rem; }

.next-page {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.next-page a { font-weight: 600; text-decoration: none; }
.next-page a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: #1f2a24;
  color: #cfd8d2;
  font-size: .9rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1rem;
}
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 .6rem; }

@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero-inner { padding: 2.2rem 1rem 2rem; }
  .main-nav a { padding: .3rem .55rem; font-size: .86rem; }
}

@media print {
  .main-nav, .site-footer, .next-page, .skip-link { display: none; }
  body { background: #fff; }
  details { border: none; padding: 0; }
}
