:root{
  --ink:#19364c;
  --text:#222;
  --accent:#ca7427;
  --brand:#3c73b4;
  --brand-dark:#3c73b4;
  --brand-light:#97bae4;

  --content-max: 1000px;
  --content-pad: 38px 28px;
  --page-top: 32px;

  --footer-bg:#d8ecff;
  --footer-text:#0f2d44;
  --footer-height:120px;
}

*{ box-sizing:border-box; }

html, body{ margin:0; padding:0; }

body{
  font-family:"Open Sans", Arial, sans-serif;
  background:#fff;
  color:var(--text);
}

/* ---- Common content layout (most iframe text pages) ---- */
.mg-content{
  max-width: var(--content-max);
  margin: var(--page-top) auto 0 auto;
  background:#fff;
  padding: var(--content-pad);
}

.mg-content h1{
  font-family:"Rubik", Arial, sans-serif;
  color: var(--ink);
  font-size: 1.8rem;
  margin-top:0;
}

.mg-content h2{
  font-size: 1.3rem;
  margin-top: 38px;
  margin-bottom: 10px;
  color: var(--accent);
}

.mg-content p,
.mg-content ul,
.mg-content ol{
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.mg-content figure{
  margin: 22px 0;
  text-align:center;
}

.mg-content figcaption{
  color: var(--accent);
  font-size: 0.98rem;
}

/* Your custom tag used as intro lead (k1) */
k1{
  display:block;
  font-family:"Rubik", Arial, sans-serif;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.4;
}
.mg-box{
  background: #d8ecff;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

/* ---- Simple grid tile component (used on some pages) ---- */
.mg-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
  width:1000px;
  margin:20px auto;
}

.mg-gridItem{
  display:flex;
  justify-content:center;
  align-items:center;
  height:100%;
  background: rgb(194, 205, 228);
  border-radius:10px;
}

.mg-gridItem:hover{
  box-shadow:0 0 10px rgba(0,0,0,0.5);
}

.mg-gridItem img{
  max-width:25%;
  max-height:100%;
  object-fit:contain;
}

/* ---- Popup component ---- */
.mg-popup{
  display:none;
  position:fixed;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  width:400px;
  padding:10px;
  background:#fff;
  box-shadow:0 0 10px rgba(0,0,0,0.5);
  z-index:100;
  border-radius:10px;
}

.mg-popupContent{ margin-bottom:10px; }

.mg-btn{
  background: var(--brand);
  color:#fff;
  border:none;
  padding:10px;
  cursor:pointer;
  border-radius:10px;
  width:120px;
  transition: background-color .3s;
}

.mg-btn:hover{ background: var(--accent); }

.mg-overlay{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.7);
  z-index:99;
}

/* ---- Footer for iframe pages ---- */
/* Footer die pas verschijnt aan het einde (normale flow) */
.page-with-footer{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Zorg dat je content het “duwtje” geeft zodat footer onderaan blijft
   óók op korte pagina’s */
.page-with-footer .mg-content,
.page-with-footer .container,
.page-with-footer .content{
  flex: 1;
}

.mg-footer{
  position: relative;
  left:auto; right:auto; bottom:auto;
  height: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 1;
}

.mg-footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
}


.mg-footer-inner{
  max-width: 1200px;
  height:100%;
  margin:0 auto;
  padding: 14px 18px;
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
}

.mg-footer-text{
  font-size:14px;
  line-height:1.35;
}

.mg-footer-text a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mg-footer-logos{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.mg-footer-logos img{
  display:block;
  height:42px;
  width:auto;
}

@media (max-width: 700px){
  :root{ --footer-height: 160px; }

  .mg-footer-inner{
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
  }

  .mg-footer-logos{
    width:100%;
    justify-content:flex-start;
  }

  .mg-grid{ width:auto; margin:20px 18px; }
}

/* Utility: images in content should not overflow */
.mg-content img{ max-width:100%; height:auto; }

/* =========================================================
   Shell layout: topnav + iframe (voor /meergeulen/index.html)
   ========================================================= */

body.mg-shell{
  overflow:hidden;
}

.site-shell{
  height:100vh;
  display:flex;
  flex-direction:column;
  background:#fff;
}

.topbar{
  width:100%;
      box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    position: relative;
    z-index: 900;   /* header komt boven de iframe */
}

.nav{
  width:100%;
  text-align:center;
  background-image: linear-gradient(to bottom right, var(--brand-dark), var(--brand-dark) 50%, var(--brand) 50%);
  padding:0;
  margin:0;
  
}

.nav .nav-link{
  display:inline-block;
  text-decoration:none;
  color:#fff;
  padding: 16px 28px;
  margin:0;
  border-radius:1px;
  cursor:pointer;
  transition: color 0.2s ease;
  user-select:none;
}

.nav .nav-link:hover{
  color: var(--accent);
}

.nav .nav-link.active{
  color: var(--accent);
}

.iframe-wrap{
  position:relative;
  flex:1;
  width:100%;
  background:#fff;
}

.iframe-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.mg-shell .cookie-consent-container{
  display:none;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background-color: rgba(0,0,0,0.8);
  color:white;
  padding:15px;
  text-align:center;
  z-index:2000;
}
.mg-shell .cookie-consent-container button{
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-left: 10px;
}

/* ===============================
   Figure: two images side by side
   =============================== */

.mg-content figure.two-images{
  display: flex;
  flex-wrap: wrap;        /* caption eronder */
  justify-content: center;
  gap: 24px;              /* ruimte tussen de beelden */
  margin: 28px 0;
}

.mg-content figure.two-images img{
  width: 100%;
  max-width: 360px;       /* veilige standaard */
  height: auto;
}

.mg-content figure.two-images figcaption{
  flex-basis: 100%;
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.95rem;
  text-align: center;
}

/* ===============================
   Wide figures (break content width)
   =============================== */

.mg-content figure.wide{
  width: 100vw;
  max-width: 2000px;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0 18px;        /* kleine viewport-veiligheid */
}

.mg-content figure.wide.two-images img{
  max-width: 800px;
}
