:root{
  --bg: #f3f6fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe3ef;
  --accent: #2563eb;
  --accent-2: #22c55e;
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --sidebar-w: 320px;
  --max: 1080px;
  --pad: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(37,99,235,0.12), transparent 55%),
    radial-gradient(900px 520px at 80% 30%, rgba(34,197,94,0.10), transparent 60%),
    var(--bg);
  line-height: 1.65;
}

a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
  border-bottom: 2px solid rgba(37,99,235,0.25);
  transition: all .2s ease;
}
a:hover{
  color: #0b3fbf;
  border-bottom-color: rgba(34,197,94,0.55);
  background: rgba(37,99,235,0.06);
}

.wrapper{
  min-height: 100vh;
  display:flex;
  flex-direction: row;
  gap: 0;
}

/* MAIN */
main{
  flex: 1 1 auto;
  padding: 28px 22px;
  display:flex;
  justify-content:center;
}

.content{
  width: min(100%, var(--max));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 34px);
}

.hero{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.hero-card{
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 18px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.06);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.badge::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-2);
}

h1{
  margin: 14px 0 6px;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
}
.lead{
  color: var(--muted);
  font-size: 1.06rem;
  margin-top: 0;
}

h2{
  margin-top: 34px;
  padding-top: 8px;
  font-size: 1.55rem;
  letter-spacing:-0.01em;
}
h3{
  margin-top: 26px;
  padding-top: 6px;
  font-size: 1.22rem;
  letter-spacing:-0.01em;
}

p{ margin: 0 0 14px 0; }
p + p{ margin-top: 10px; }

hr{
  border:0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.callout{
  border: 1px solid rgba(34,197,94,0.25);
  background: rgba(34,197,94,0.06);
  border-radius: calc(var(--radius) - 6px);
  padding: 14px 16px;
  color: var(--muted);
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card{
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 6px);
  padding: 14px 16px;
  background:#fff;
}
.card h3{ margin-top: 6px; }
.small{ font-size: 0.95rem; color: var(--muted); }

/* Lists */
ul,ol{
  margin: 10px 0 16px 22px;
  padding: 0;
}
li{ margin: 8px 0; }
ul li::marker{ color: var(--accent); }
ol li::marker{ color: var(--accent); font-weight: 800; }

/* SIDEBAR — DESKTOP: NORMAAL IN FLOW (NIET STICKY/FIXED) */
aside{
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  padding: 18px;
  position: relative;     /* belangrijk: niet sticky */
  top: auto;
  height: auto;           /* belangrijk: geen 100vh */
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  border-left: 1px solid var(--line);
}

.brand{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 14px;
}
.brand a{
  border-bottom: none;
  background: none;
}
.brand img{
  width: 300px;
  height: 300px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform .25s ease;
}
.brand img:hover{ transform: translateY(-2px) scale(1.01); }
.brand .tagline{
  text-align:center;
  color: var(--muted);
  font-weight: 650;
  margin: 0;
}

.nav{
  margin-top: 10px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.nav a{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  color: var(--ink);
  font-weight: 750;
  border-bottom: none;
}
.nav a span{
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.nav a:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,0.35);
  box-shadow: 0 14px 30px rgba(37,99,235,0.10);
  background: linear-gradient(180deg, rgba(37,99,235,0.07) 0%, #ffffff 60%);
}
.nav a.active{
  border-color: rgba(34,197,94,0.45);
  box-shadow: 0 16px 34px rgba(34,197,94,0.12);
  background: linear-gradient(180deg, rgba(34,197,94,0.08) 0%, #ffffff 60%);
}
.nav a::after{
  content:"→";
  font-weight: 900;
  color: rgba(37,99,235,0.75);
  transition: transform .2s ease, color .2s ease;
}
.nav a:hover::after{ transform: translateX(2px); color: rgba(34,197,94,0.95); }

/* Mobile topbar + menu button */
.mobile-topbar{
  display:none;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243,246,251,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}
.mobile-topbar .title{
  font-weight: 850;
  letter-spacing:-0.02em;
}

/* Menu-knop weer “normaal” en consistent */
.icon-btn{
  appearance: none;
  border: 1px solid rgba(15,23,42,0.14);
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  cursor:pointer;
  box-shadow: 0 10px 18px rgba(15,23,42,0.06);
  color: var(--ink);
}
.icon-btn:hover{
  border-color: rgba(37,99,235,0.35);
  background: rgba(37,99,235,0.06);
}

/* Overlay helper (JS togglet .show) */
[data-overlay]{
  opacity: 0;
  pointer-events: none;
}
[data-overlay].show{
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 980px){
  :root{ --sidebar-w: 300px; }
  .hero{ grid-template-columns: 1fr; }
}

/* MOBIEL: SIDEBAR TERUG ALS SLIDE-IN (fixed) */
@media (max-width: 860px){
  .wrapper{ flex-direction: column; }

  /* topbar zichtbaar op mobiel */
  .mobile-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
  }

  aside{
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: min(92vw, 340px);
    flex: 0 0 auto;
    transform: translateX(105%);
    transition: transform .25s ease;
    z-index: 40;
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 44px rgba(15,23,42,0.10);
  }
  aside.open{ transform: translateX(0); }

  main{ padding: 16px 14px 26px; }
  .brand img{ width: 220px; height: 220px; }
}

/* Footer */
footer{
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
}
footer .pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.65);
}
