/* ePortal: statische herbouw. Kleuren, maten en fonts overgenomen van het oude thema. */

@font-face { font-family: "Klavika"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/klavika_light-webfont.woff2") format("woff2"); }
@font-face { font-family: "Klavika"; font-weight: 300; font-style: italic; font-display: swap;
  src: url("../fonts/klavika_light_italic-webfont.woff2") format("woff2"); }
@font-face { font-family: "Klavika"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/klavika_regular-webfont.woff2") format("woff2"); }
@font-face { font-family: "Klavika"; font-weight: 700; font-style: italic; font-display: swap;
  src: url("../fonts/klavika_bold_italic-webfont.woff2") format("woff2"); }

:root {
  --green: #36a834;
  --green-dark: #0b6f0b;
  --lime: #94c120;
  --lime-dark: #7ea51a;
  --grey-bg: #e6e6e6;
  --grey-text: #808080;
  --footer-bg: #333333;
  --footer-text: #999999;
  --text: #000;
  --font: "Klavika", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
  --header-h: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); }
a:hover { color: var(--lime-dark); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.center { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header (vast bovenaan, zoals het origineel) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff; height: var(--header-h);
  display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 503px; max-width: 100%; }
.header-tools { display: flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: -2px; }
main { padding-top: var(--header-h); }

.langs { list-style: none; margin: 0; padding: 0; display: flex; }
.langs a { display: block; padding: 8px 3px; font-size: 12px; color: var(--grey-text); text-decoration: none; }
.langs a:hover { background: #efefef; }
.langs a[aria-current] { color: #333; text-decoration: underline; }

.btn-login {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grey-bg); color: var(--grey-text);
  padding: 8px 15px 8px 12px; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.btn-login:hover { background: #d6d6d6; color: #333; }

/* ---------- Intro (vult het scherm) ---------- */
.intro { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 20px 0 60px; }
.intro-grid { display: grid; grid-template-columns: 348px 1fr; gap: 58px; align-items: center; }
.intro h1 { margin: 0; font-size: 53px; line-height: 1; font-weight: 700; font-style: italic; }
.intro-h2 { margin: 10px 0 0; font-size: 49px; line-height: .9; font-weight: 300; font-style: italic; color: var(--lime); }
.subtitle { margin: 50px 0 60px; font-size: 21px; line-height: 1.3; max-width: 330px; }

.btn-video { display: inline-flex; align-items: stretch; height: 40px; text-decoration: none; color: #fff; font-weight: 400; font-size: 14px; }
.btn-video-icon { display: flex; align-items: center; background: var(--lime); border-radius: 12px 0 0 12px; padding: 0 15px 0 20px; }
.btn-video-label { display: flex; align-items: center; background: var(--lime); border-radius: 0 12px 12px 0; padding: 0 20px 0 15px; border-left: 1px solid rgba(255,255,255,.35); }
.btn-video:hover .btn-video-icon, .btn-video:hover .btn-video-label { background: var(--lime-dark); }
.btn-video:hover { color: #fff; }

.intro-visual { justify-self: end; width: 100%; max-width: 653px; }
.slider { position: relative; aspect-ratio: 653 / 623; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }

/* Zachte fade-in bij het laden, zoals het origineel */
.intro-grid { animation: fadein 1.2s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Over Emaze ---------- */
.about { padding: 20px 0 100px; }
.about-text { max-width: 754px; line-height: 1.5; }
.about-text p { margin: 0 0 1.1em; }

/* ---------- Content pages ---------- */
.content { padding: 40px 0 100px; line-height: 1.5; }
.content h1 { font-size: 40px; line-height: 1.1; font-weight: 700; font-style: italic; margin: 0 0 32px; }
.content h2 { font-size: 21px; font-weight: 400; margin: 2em 0 .5em; }
.content hr { border: 0; border-top: 1px solid #e5e5e5; margin: 40px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 60px 0 160px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 24px; }
.footer-cols p { margin: 0; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.footer-legal a { text-decoration: underline; }
.site-footer a:hover { color: #fff; }

/* ---------- Video dialog ---------- */
.video-dialog { padding: 0; border: 0; background: transparent; width: min(960px, 92vw); overflow: visible; }
.video-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close {
  position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff;
  font-size: 40px; line-height: 1; cursor: pointer; padding: 0 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --header-h: 100px; }
  .logo img { width: 380px; }
  .intro h1 { font-size: 44px; }
  .intro-h2 { font-size: 40px; }
}
@media (max-width: 860px) {
  :root { --header-h: 80px; }
  .logo img { width: 260px; }
  .header-tools { align-self: center; margin-top: 0; }
  .intro { min-height: 0; padding-top: 30px; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-visual { justify-self: center; }
  .subtitle { margin: 30px 0 36px; max-width: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --header-h: 110px; }
  .site-header { align-items: center; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .logo img { width: 200px; }
  .header-tools { align-self: flex-start; }
  .intro h1 { font-size: 36px; }
  .intro-h2 { font-size: 33px; }
  .subtitle { font-size: 19px; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .intro-grid { animation: none; }
}
