:root {
  --c-bg: #ffffff;
  --c-ink: #1c1c1c;
  --c-muted: #666;
  --c-blue: #0d3f7a;
  --c-blue-dark: #092c57;
  --c-hover: #efbe45;
  --c-line: #d8d8d8;
  --c-panel: #f4f1ea;
  --c-panel-2: #eae4d7;
  --max: 1160px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.55;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-hover); text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Sticky top (header + nav) ---------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ---------- Header (full blue) ---------- */
.site-header {
  background: var(--c-blue);
  color: #fff;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
}
.brand:hover { text-decoration: none; }
.brand img {
  height: 90px;
  width: auto;
  display: block;
}

/* ---------- Header right (contact button + language) ---------- */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-btn {
  display: inline-block;
  height: 34px;
  line-height: 32px;
  padding: 0 18px;
  background: #fff;
  color: var(--c-blue);
  border: 1px solid #fff;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  margin-top: 2px;
}
.contact-btn:hover,
.contact-btn:focus {
  background: var(--c-hover);
  color: var(--c-blue);
  border-color: var(--c-hover);
  text-decoration: none;
}
.contact-btn.active {
  background: var(--c-hover);
  border-color: var(--c-hover);
}

/* ---------- Language dropdown (zoals /auto) ---------- */
.lang-switch {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: #555;
  height: 34px;
  line-height: 34px;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  margin-top: 2px;
}
.lang-switch a,
.lang-switch a:link,
.lang-switch a:visited {
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  padding: 0 14px;
  line-height: 32px;
  text-decoration: none;
  background: #fff;
  border: 0;
  border-radius: 3px;
}
.lang-switch a.active {
  color: var(--c-blue);
  font-weight: 700;
  padding-right: 26px;
  position: relative;
}
.lang-switch a.active::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--c-blue);
  transform: translateY(-50%);
}
.lang-switch span { display: none; }

.lang-switch a:not(.active) {
  display: none;
  position: absolute;
  left: -1px;
  right: -1px;
  top: 36px;
  background: #fff;
  border-top: 0;
  border-right: 1px solid var(--c-blue);
  border-bottom: 0;
  border-left: 1px solid var(--c-blue);
  line-height: 32px;
  padding: 0 14px;
  z-index: 20;
}
.lang-switch a:not(.active) { border-radius: 3px 3px 0 0; }
.lang-switch a:not(.active) ~ a:not(.active) {
  border-radius: 0;
  top: 68px;
  box-shadow: inset 0 1px 0 #dcdcdc;
}
.lang-switch a:not(.active) ~ a:not(.active) ~ a:not(.active) {
  border-radius: 0 0 3px 3px;
  border-bottom: 1px solid var(--c-blue);
  top: 100px;
  box-shadow: inset 0 1px 0 #dcdcdc;
}
.lang-switch.open a:not(.active),
.lang-switch:hover a:not(.active),
.lang-switch:focus-within a:not(.active) { display: block; }

.lang-switch.open,
.lang-switch:hover,
.lang-switch:focus-within {
  border-color: var(--c-hover);
  background: var(--c-hover);
}
.lang-switch.open a.active,
.lang-switch:hover a.active,
.lang-switch:focus-within a.active {
  background: var(--c-hover);
}

.lang-switch a:not(.active):hover { background: #f0f0f3; text-decoration: none; color: #555; }

/* ---------- Nav ---------- */
.site-nav {
  background: var(--c-blue-dark);
  color: #fff;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 3px;
  margin: 10px 0;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.nav-list a {
  display: block;
  color: #fff;
  padding: 14px 14px;
  font-size: 14px;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover {
  color: var(--c-hover);
  background: rgba(0,0,0,0.15);
  border-bottom-color: var(--c-hover);
  text-decoration: none;
}
.nav-list a.active {
  background: var(--c-blue);
  border-bottom-color: var(--c-hover);
}
.nav-list a.active:hover { color: var(--c-hover); }

/* ---------- Main ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 48px;
  width: 100%;
  flex: 1 0 auto;
}
.page-title {
  color: var(--c-blue);
  font-size: 28px;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-blue);
}
.content p { margin: 0 0 14px; }
.content h2 {
  color: var(--c-blue);
  font-size: 20px;
  margin: 28px 0 10px;
}
.content h3 {
  color: var(--c-blue);
  font-size: 17px;
  margin: 20px 0 8px;
}
.content ul { padding-left: 22px; margin: 0 0 14px; }
.content ul li { margin-bottom: 6px; }

/* Two-column layout for text + image */
.split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.split .media { display: flex; flex-direction: column; gap: 12px; }
.split .media img { border: 1px solid var(--c-line); cursor: zoom-in; }

/* Feature/gallery grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.grid figure {
  margin: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.grid figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .3s ease;
}
.grid figure:hover img { transform: scale(1.03); }

/* Passief comparison table */
.passief-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}
.passief-table th {
  background: var(--c-blue);
  color: #fff;
  padding: 10px 12px;
  font-size: 15px;
  text-align: center;
  border: 1px solid var(--c-blue-dark);
}
.passief-table th:first-child {
  background: transparent;
  border: none;
}
.passief-table td {
  background: var(--c-panel);
  padding: 12px;
  border: 1px solid var(--c-line);
  vertical-align: middle;
  text-align: center;
  width: 40%;
}
.passief-table td.row-label {
  background: var(--c-blue);
  color: #fff;
  width: 18%;
  font-weight: 600;
  font-size: 17px;
  text-align: center;
  letter-spacing: .3px;
}
.passief-table td img {
  max-width: 120px;
  max-height: 90px;
  margin: 0 auto 8px;
  cursor: zoom-in;
  border: 1px solid var(--c-line);
  background: #fff;
}
.passief-table td p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Compare (passief — legacy) */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.compare .col {
  background: var(--c-panel);
  padding: 14px;
  border: 1px solid var(--c-line);
}
.compare .col h3 {
  margin-top: 0;
  text-align: center;
  background: var(--c-blue);
  color: #fff;
  padding: 8px;
}
.compare .col img { margin: 8px auto; cursor: zoom-in; }

/* Plannen list */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.plan-card {
  border: 1px solid var(--c-line);
  background: var(--c-panel);
  padding: 16px;
}
.plan-card h3 {
  margin: 0 0 6px;
  color: var(--c-blue);
  font-size: 17px;
}
.plan-card p { margin: 0 0 10px; font-size: 14px; color: var(--c-muted); }
.plan-card .downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-card .downloads a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 6px 10px;
  font-size: 13px;
}
.plan-card .downloads a:hover {
  color: var(--c-blue);
  background: var(--c-hover);
  border-color: var(--c-hover);
  text-decoration: none;
}
.plan-card .downloads a img { height: 16px; width: auto; }

/* Contact box */
.contact-box {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  padding: 24px;
  max-width: 520px;
}
.contact-box p { margin: 6px 0; }
.contact-box strong { color: var(--c-blue); }

/* ---------- Footer (sticks to bottom) ---------- */
.site-footer {
  background: var(--c-blue-dark);
  color: #cdd8e9;
  padding: 22px 20px;
  font-size: 14px;
  flex-shrink: 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--c-hover); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lb.open { display: flex; }
.lb-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  user-select: none;
}
.lb-caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: #eee;
  font-size: 14px;
  padding: 0 20px;
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  width: 48px;
  height: 48px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.lb-btn:hover {
  background: var(--c-hover);
  color: var(--c-blue);
  border-color: var(--c-hover);
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .passief-table { font-size: 13px; }
  .passief-table td, .passief-table th { padding: 8px 6px; }
  .passief-table td img { max-width: 90px; max-height: 70px; }
  .passief-table td.row-label { font-size: 14px; }
}
@media (max-width: 720px) {
  .header-inner { padding: 10px 16px; }
  .brand img { height: 64px; }

  .nav-inner { flex-direction: column; align-items: stretch; padding: 0 16px; }
  .nav-toggle { display: block; align-self: flex-start; }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 8px;
  }
  .nav-list.open { display: flex; }
  .nav-list a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .nav-list a:hover,
  .nav-list a.active { border-bottom-color: rgba(255,255,255,0.15); background: rgba(0,0,0,0.15); }

  main { padding: 20px 16px 32px; }
  .page-title { font-size: 22px; }

  .lb-btn { width: 40px; height: 40px; font-size: 18px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 10px; right: 10px; }
}
