/*
Theme Name: JRK Theme
Theme URI: https://jeugdrodekruisherckenrode.be
Author: Wout Vanlommel
Author URI: https://jeugdrodekruisherckenrode.be
Description: Custom WordPress theme voor Jeugd Rode Kruis Herckenrode
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jrk-theme
*/

/* === JRK Design tokens & fonts === */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap");

:root{
  /* Brand colors in HSL */
  --brand-red-h: 358;   /* #ec2127 */
  --brand-red-s: 84%;
  --brand-red-l: 53%;

  --brand-red:        hsl(var(--brand-red-h) var(--brand-red-s) var(--brand-red-l));
  --brand-red-hover:  hsl(var(--brand-red-h) var(--brand-red-s) calc(var(--brand-red-l) - 7%)); /* donkerder on hover */
  --brand-red-active: hsl(var(--brand-red-h) var(--brand-red-s) calc(var(--brand-red-l) + 6%)); /* lichter on active */

  --grey-dark:  hsl(185 28% 18%); /* #223A3C */
  --grey-light: hsl(210 21% 95%); /* #EEF1F4 */

  --white: #fff;
  --black: #000;
}

*{box-sizing: border-box;}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Ubuntu", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--grey-dark);
  background: var(--white);
}

h1{
  font-family: "Ubuntu", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  text-align: center;
}

a {
  text-decoration: none;
  text-decoration: underline;
  color: var(--brand-red);
}
a:hover {
  text-decoration: none;
  color: var(--brand-red-hover);
}

/* === Buttons === */
.primarybutton {
  font-size: clamp(0.6rem, 3vw, 1rem);
  padding: clamp(0.4rem, 1vw, 0.6rem) clamp(0.8rem, 2vw, 1rem);
  background-color: var(--brand-red);
  border-radius: 10px;
  border: none;
  margin: 0px auto;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: background-color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.primarybutton:hover {
  background-color: var(--brand-red-hover);
  color: var(--white);
  box-shadow: 1px 1px 5px rgba(0,0,0,.25);
  text-decoration: none;
}
.primarybutton:active {
  background-color: var(--brand-red-active);
  transform: translateY(1px);
}

.secondarybutton {
  font-size: clamp(0.6rem, 3vw, 1rem);
  padding: clamp(0.4rem, 1vw, 0.6rem) clamp(0.8rem, 2vw, 1rem);
  background-color: var(--grey-light);
  border-radius: 10px;
  border: none;
  margin: 0px auto;
  color: var(--grey-dark);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: 0.3s;
}
.secondarybutton:hover {
  background-color: var(--grey-light);
  color: var(--grey-dark);
  transform: scale(1.05);
  text-decoration: none;
}

/* === Header (home) === */
.headerhome {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.header-content{ 
  position: relative; z-index: 2; 
  gap: 1rem;
}
header h1 {
  font-size: clamp(1rem, 5vw, 2.5rem);
  margin: 0;
  color: var(--white);
}

/* --- PAGINA-BANNER (alle niet-home pagina’s) --- */
.page-banner {
  position: relative;
  width: 100%;
  min-height: clamp(4rem, 33vh, 15rem);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background: var(--banner-color, var(--brand-red)); /* fallback = brand rood */
  background-image: var(--banner-image, none);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-banner::before{
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
}
.page-banner .banner-inner{
  position: relative; z-index: 1;
  padding: clamp(1rem, 3vw, 2rem);
}
.page-banner h1{
  margin: 0 0 .25rem 0;
  font-size: clamp(1.5rem, 4vw, 3rem);
}
.page-banner p{
  margin: 0; opacity: .95;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

main{
  width: 100%;
}
.maincontainer{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Footer === */
footer{
  width:100%;
  background-color:var(--brand-red);
  color:var(--white);
  padding:5vh 0;
}
.footer{
  max-width:1100px;
  margin:0 auto;
  padding:0 50px;
}
.footer a{ color:var(--white); }

/* bovenste rij met 2 kolommen */
.footertop{
  display:flex;
  justify-content:space-between;
  gap:24px;
}

/* kolommen */
.footerlogo{ 
  flex:1 1 50%;
  text-align:left;
  display:flex;
  flex-direction:column;
  justify-content:flex-start; /* inhoud bovenaan */
}
.logosocials{ 
  flex:1 1 50%;
  text-align:right;
  display:flex;
  flex-direction:column;
  justify-content:space-between; /* socials boven, logo’s onder */
  align-items:flex-end;
}

/* crest-logo links (mag wit invert krijgen en kleine negatieve marge) */
.footer > .footertop .footerlogo img{
  width: clamp(7rem, 7vw, 10rem);
  height:auto;
  filter: brightness(0) invert(1);
  margin-left:-20px;
}

/* socials */
.footersocial{ margin-bottom:12px; }
.footersocial h3{ margin:0 0 8px 0; }
.icons a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  margin-left:12px;
}
.icons a:first-child{ margin-left:0; }

/* 2 logo’s onder de socials (eigen img-styling zodat ze niet geinverteerd worden) */
.logork{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:16px;
}
.logork img{
  width: clamp(6rem, 7vw, 9rem);
  height:auto;
  margin:0;
  filter:none; /* niet inverteren */
}

/* scheidingslijn tussen bovenste en onderste footer */
.footer hr{
  display:block;
  width:100%;
  height:1px;
  border:0;
  background:rgba(255,255,255,.4);
  margin:24px 0;
  opacity:1;
}

/* onderste rij met links */
.footerbottom{ display:flex; justify-content:center; }
.footerbottom ul{
  width:100%;
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:space-between;
}
.footerbottom a{
  color:var(--white);
  text-decoration:none;
  display:block;
}

/* mobiel: stapelen + centreren */
@media (max-width:800px){
  .footertop{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .footerlogo, .logosocials{
    flex:1 1 100%;
    text-align:center;
    align-items:center;
  }
  .footersocial{ text-align:center; }
  .logork{ justify-content:center; }
}
.fa-brands.fa-facebook.fa-2x{ color: var(--white); }
.fa-brands.fa-facebook.fa-2x:hover{ color: var(--grey-light); }
.fa-brands.fa-instagram.fa-2x{ color: var(--white); }
.fa-brands.fa-instagram.fa-2x:hover{ color: var(--grey-light); }
.fa-brands.fa-tiktok.fa-2x{ color: var(--white); }
.fa-brands.fa-tiktok.fa-2x:hover{ color: var(--white); }

/* === Navbar === */
.navbarjrk {
  position: relative;
  top: 0;
  width: 100vw;
  height: 80px;
  background-color: hsla(0, 0%, 100%, 0.6);
  z-index: 1000;
  transition: all 0.3s ease;
}
.navmenujrk a.active {
  color: var(--brand-red);
  font-weight: bold;
}
.navbarjrk.scrolled {
  position: sticky;
  height: 60px;
  background-color: hsla(0, 0%, 40%, 0.6);
}
.navcontainerjrk {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navlogojrk {
  height: 90%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1002;
}
.navlogojrk a { display: block; height: 100%; }
.navlogojrk img {
  height: 100%;
  width: auto;
  display: block;
  filter: none;
}
.navbarjrk.scrolled .navlogojrk img { filter: brightness(0) invert(1); }

.navmenujrk {
  font-family: "Ubuntu", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.navmenujrk li a {
  color: var(--black);
  text-decoration: none;
  padding: 10px 15px;
  transition: background-color 0.3s ease, padding 0.3s ease, color 0.3s ease;
}
.navbarjrk.scrolled .navmenujrk li a { color: var(--white); }
.navmenujrk li a:hover {
  background-color: var(--grey-dark);
  color: var(--brand-red);
  border-radius: 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 2rem;
  color: var(--black);
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1002;
  position: relative;
}

/* MOBIEL */
@media screen and (max-width: 1000px) {
  .hamburger { display: block; }
  .navcontainerjrk { padding: 0 2rem; }

  .navmenujrk {
    display: none;
    position: fixed;
    top: 0; left: 0;
    height: 100vh; width: 100vw;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: var(--white);
    padding: 7.5rem 1rem;
    gap: 20px;
    z-index: 1001;
  }
  .navmenujrk.show { display: block; padding: 7.5rem 1rem; }

  /* Altijd ZWART in hamburger-menu (open of niet) */
  .navmenujrk li a,
  .navmenujrk li a:visited,
  .navmenujrk li a:hover,
  .navmenujrk li a:focus,
  .navmenujrk li a:active,
  .navbarjrk.scrolled .navmenujrk li a,
  body.menu-open .navmenujrk li a {
    color: var(--grey-dark);
  }

  /* ACTIEVE pagina in hamburger-menu: ROOD + bold */
  .navmenujrk li.current-menu-item > a,
  .navmenujrk li.current_page_item > a,
  .navmenujrk li a[aria-current="page"],
  .navmenujrk li a.active {
    color: var(--brand-red) !important;
    border-bottom-color: var(--brand-red);
    font-weight: 700;
  }

  /* Zachte hover-achtergrond; tekst blijft zwart (actief blijft rood) */
  .navmenujrk li a:hover,
  .navmenujrk li a:focus {
    background-color: var(--light-grey);
    border-radius: 0;
  }

  .navmenujrk li a {
    font-size: 1.5rem;
    padding: 0.8rem 0;
    text-align: left;
    border-bottom: 1px solid #CCC;
    display: block;
    width: 90%;
    justify-self: center;
  }

  .navlogojrk { transform: translateX(-1.7rem); }
  .hamburger  { transform: translateX(1rem); }

  /* Niet gescrolled → zwart */
  .navbarjrk .navlogojrk img { filter: none; }
  .navbarjrk .hamburger     { color: var(--black); }

  /* Gescrolld → wit (maar NIET wanneer menu open is) */
  body:not(.menu-open) .navbarjrk.scrolled .navlogojrk img { filter: brightness(0) invert(1); }
  body:not(.menu-open) .navbarjrk.scrolled .hamburger     { color: var(--white); }

  /* Menu open → altijd zwart logo/kruis */
  body.menu-open .navbarjrk .navlogojrk img { filter: none; }
  body.menu-open .navbarjrk .hamburger     { color: var(--black); }
}

/* DESKTOP: witte tekst na scrollen blijft voor desktop */
@media (min-width: 1001px) {
  .navbarjrk.scrolled .navmenujrk li a { color: white; }
}





/* === JRK met wisselwoord === */
.wisselwoordcontent {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  margin: 4rem 0;
}
.jrkwisselwoord, .jrkwisselwoordtxt{
  flex: 1 1 50%;
  min-width: 0;
}
.jrkwisselwoord h2{
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin: 0px;
}
.jrkwisselwoordtxt p{
  font-size: clamp(0.8rem, 2vw, 1rem);
  margin: 0px;
}
.jrkwisselwoord .wisselwoord{
  text-transform: uppercase;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--brand-red);
  font-weight: bold;
  transition: opacity 0.3s ease;
  display: inline-block;
}
@media (max-width:700px){
  .wisselwoordcontent{ flex-direction: column; }
}

/* === Intro blokken === */
.introjrk {
  display: block;
  width: 100%;
  margin: 4rem 0;
}
.uitlegjrk {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2vw;
  margin-bottom: 3rem;
}
.uitlegjrk.reverse { flex-direction: row-reverse; align-items: flex-start; }
.uitlegimg, .uitlegtxt { width: 50%; }
.uitlegimg img {
  object-fit: cover;
  width: 100%;
  height: auto;
  border-radius: 5px;
  aspect-ratio: 16/9;
}
.uitlegtxt { display: flex; flex-direction: column; align-items: flex-start; }
.uitlegtxt h3, .uitlegtxt p { font-size: clamp(0.8rem, 3vw, 1rem); }
.uitlegtxt p { font-weight: lighter; }
.uitlegtxt-content { line-height: 1.6; }
.uitlegtxt-content strong { font-weight: bold; }
.uitlegtxt-content em { font-style: italic; }
.uitlegtxt-content u { text-decoration: underline; }
.uitlegtxt-content ul, 
.uitlegtxt-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* 📱 Mobiel: geen verticale marges */
@media (max-width: 800px) {
  .uitlegjrk:not(:first-of-type) .uitlegimg { display: none; }

  /* alle top/bottom-marges weg */
  .introjrk { margin: 0; }                 /* top/bottom 0, links/rechts blijven zoals ze zijn */
  .uitlegjrk {
    flex-direction: column;
    gap: 1rem;
    margin: 0.2rem;                             /* geen extra ruimte tussen blokken via margin */
  }
  .uitlegjrk.reverse {
    flex-direction: column;
  }
  .uitlegimg, .uitlegtxt { width: 100%; }

  /* ook element-marges binnen het blok weghalen */
  .uitlegtxt h3,
  .uitlegtxt p { margin: 0.5rem; }
}

/* === Automatische sectie speciale activiteien === */
#speciale-activiteiten {
  text-align: left;
  margin: 4rem 0;
  width: 100%;
}
#speciale-activiteiten-container {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}
.activiteitkaart {
  background: #f2f2f1;
  padding: 1rem;
  border-radius: 5px;
  flex: 1 1 30%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.activiteitkaart:hover{
  transform: scale(1.02);
  cursor: pointer;
}
.activiteitkaart h4 {
  color: var(--brand-red);
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.activiteitkaart p {
  margin: 0.5rem 0;
  font-size: clamp(0.8rem, 2vw, 1rem);
  text-transform: none;
}

.activiteitkaart p#eventday {
  text-transform: lowercase;
}

.activiteitkaart  p#eventday::first-letter {
  text-transform: uppercase;
}
.activiteitkaart em{
  color: var(--grey-dark);
  font-style: italic;
  font-size: clamp(0.6rem, 2vw, 0.8rem);
}
.highlight {
  outline: 1px solid var(--brand-red);
  box-shadow: 2px 2px 10px #ccc;
  border-radius: 6px;
}
@media (max-width: 900px) {
  #speciale-activiteiten-container { flex-direction: column; align-items: stretch; }
  .activiteitkaart { max-width: 100%; }
}

/* === Hoofdleiding === */
.contactleiding { width: 100%; margin: 4rem 0; }
.hoofdleiding {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0px;
  width: 100%;
}
.persoon {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem;
  max-width: 50%;
  flex: 1 1 20%;
}
.persoon img {
  width: clamp(5rem, 10vw, 8rem);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
}
.persooninfo {
  display: flex;
  flex-direction: column;
  justify-content: left;
  gap: 0.4rem;
}
.persooninfo h4 {
  margin: 0;
  color: var(--brand-red);
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.persooninfo a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.7rem, 2vw, 1rem);
}
@media screen and (max-width: 900px) {
  .hoofdleiding { flex-direction: column; align-items: flex-start; justify-content: left; }
  .persoon { flex: 1 1 100%; max-width: 100%; justify-content: flex-start; }
}

/* === Groepen Grid === */
.groepen-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 0px;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}
.groep {
  flex: 0 1 clamp(150px, 30vw, 280px);
  max-width: 280px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  background-color: #ccc;
  background-size: cover;
  background-position: center;
}
.groep:hover { transform: scale(1.03); }
.groep-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.3rem 0.3rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  text-align: center;
}
.groep-overlay h3 { margin: 0; font-size: clamp(0.8rem, 2vw, 1.3rem) }
.groep-overlay p { margin: 0; font-size: clamp(0.6rem, 2vw, 1rem); }
@media (max-width: 500px) {
  .groepen-grid { display: flex; flex-direction: column; gap: 1rem; }
  .groep { flex: 1 1 100%; max-width: 100%; }
}

/* === Modal === */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 1000px;
  position: relative;
}
.modal-content h2 {
  text-align: center;
  margin-top: 0;
  font-size: clamp(1.3rem, 4vw, 2rem);
}
.modal-content-body {
  display: grid;
  flex-wrap: wrap;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
  margin: 0 auto;
  width: 100%;
}
.leidingkaart {
  flex: 1 1 250px;
  max-width: 100%;
  background-color: #f5f5f5;
  border-radius: 0.5rem;
  padding: clamp(0.5rem, 1vw, 1rem);
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.leidingkaart img {
  width: clamp(8rem, 10vw, 12rem);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.leidinginfo{ width: 100%; word-wrap: break-word; overflow-wrap: break-word; text-align: left; }
.leidinginfo h4{ text-align: center; font-size: clamp(1rem, 5vw, 1.2rem); }
.leidinginfo a {
  display: block;
  color: var(--grey-dark);
  text-decoration: none;
  margin: 0.2rem 0;
  font-size: clamp(0.6rem, 2vw, 0.7rem);
}
.leidinginfo p { margin: 0.3rem 0; font-size: clamp(0.6rem, 2vw, 0.7rem); }
.close-modal {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--grey-dark);
  background: var(--grey-light);
  border: 0.5px solid var(--grey-dark);
  border-radius: 0.5rem;
}
.close-modal:hover { color: var(--brand-red); }

button#closeModalBtn {
  padding: 0.2rem 1.6rem;
  background: var(--brand-red);
  border: none;
  color: white;
  border-radius: 0.4rem;
}

button#closeModalBtn:hover {
  background-color: var(--brand-red-hover);
  cursor: pointer;
}

/* === Kalender === */
.calendar {
  max-width: 1200px;
  width: 100%;
  margin: 40px auto;
  font-size: 1rem;
  padding: 0px 1rem;
}
.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: clamp(1.2rem, 2vw, 2rem);
  gap: 5vw;
  margin-bottom: 32px;
  margin-top: 16px;
  cursor: pointer;
}
.calendar-header button {
  background: var(--grey-light);
  color: var(--grey-dark);
  border: none;
  border-radius: 3px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color .2s ease;
}
.calendar-header button:hover{
  background-color: var(--brand-red);
  color: var(--white);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  /*gap: 5px;*/
}
.calendar-grid{ grid-auto-rows: auto; }
#calendarDays{ min-width: 15%; }
.calendar-weekdays {
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  margin-bottom: 10px;
}
.calendar-grid .day {
  background: #f2f2f2;
  border-radius: 6px;
  padding: 10px;
  min-height: unset;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 1rem;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.activity-range{
  font-size: 1rem !important;
  padding: 2px 5px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.date-number { font-weight: bold; margin-bottom: 5px; }
.day.today { border-bottom: 4px solid var(--brand-red-hover); }
.day.selected { background-color: var(--brand-red); color: var(--white); }

/* ⬇︎ Hernoemd van #todayBtn naar .todayBtn */
.todayBtn {
  margin: 0;
  display: block;
  padding: 0.8rem 1.2rem;
  background: var(--brand-red);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  cursor: pointer;
  transition: background-color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.todayBtn:hover{ background-color: var(--brand-red-hover); }
.todayBtn:active{ background-color: var(--brand-red-active); }

/* (optioneel) Zorg dat .hidden niets toont */
.hidden { display: none !important; }

/* Month popup */
.monthYearWrapper { position: relative; display: inline-block; z-index: 399;}
.monthPicker.hidden {
  display: none;
}

.monthPicker {
  position: absolute;
  top: 100%;
  left: 50%; 
  transform: translateX(-50%);
  background: white;
  border: 2px solid red;
  padding: 20px;
  z-index: 400;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  /*text-align: right;*/
  display: flex;
  flex-direction: column;
  /*justify-content: space-between;*/
  gap: 0.5rem;
  min-width: 200px;
}

.monthPicker label {font-size: 1.5rem;}
.monthPicker select,
.monthPicker input {
  padding: 0.2rem 0.4rem;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}
.monthPicker button {
  /*margin-top: 10px;*/
  padding: 8px 15px;
  background: var(--brand-red);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.monthPicker button:hover{ background-color: var(--brand-red-hover); }
.monthPicker button:active{ background-color: var(--brand-red-active); }

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100vw;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
}
.event-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 10px;
  z-index: 101;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  max-width: 90%;
  width: 400px;
  z-index: 500;
}
.event-modal-content p { margin: 0.5rem 0; text-transform: capitalize;}

#button{
  padding: 4px 10px;
  background-color: var(--brand-red);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .2s ease;
}
#button:hover{
  box-shadow: 1px 1px #CCC;
  background-color: var(--brand-red-hover);
}
#button:active{
  background-color: var(--brand-red-active);
}

.hidden { display: none; }
#loading {
  text-align: center;
  padding: 2rem;
  font-weight: bold;
  height: 50vh;
}

/* ===== Kalender: Today + Subscribe naast elkaar en uniform ===== */
.calendar-actions{
  margin: 16px 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  gap: 1rem;
  flex-wrap: nowrap;
}
.calendar-actions #todayBtn,
.calendar-actions a.secondarybutton{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Ubuntu", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(0.7rem, 2.2vw, 1rem);
  padding: 0.6rem 1.2rem;
  line-height: 1;
  /*height: 44px;*/
  border-radius: 10px;
  text-decoration: none;
}
.calendar-actions #todayBtn{ margin: 0; }
.calendar-actions a.secondarybutton{
  background-color: var(--grey-light);
  color: var(--grey-dark);
  border: 1px solid hsl(210 15% 88%);
}
.calendar-actions a.secondarybutton:hover{ transform: translateY(-1px); }

@media screen and (max-width: 1000px) {
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 12vw;
    gap: 1vw;
    width: 100%;
  }
  .calendar-grid .day {
    padding: 4px;
    font-size: 0.5rem;
    height: auto;
    min-height: unset;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.8rem;
    margin: 10px 0 5px;
    padding: 0 5px;
  }
  .calendar {
    width: 100%;
    padding: 0 1rem;
    font-size: 0.7rem;
  }
  .activity-range {
    font-size: 0.3rem !important;
    padding: 1px 3px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
  .calendar-header {
    gap: 3rem;
    font-size: 1.5rem;
  }
  .calendar-header button {
    padding: 5px 10px;
    font-size: 1.2rem;
    background-color: var(--brand-red);
  }
  #todayBtn {
    font-size: 0.8rem;
    margin-top: 10px;
  }
}

/* === Contactcontainer === */
input,
textarea {
  font-family: "Ubuntu", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.contactcontainer {
  position: relative;
  width: 100%;
  padding: 2rem;
  background-color: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form {
  width: 100%;
  max-width: 1000px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  z-index: 12;
}
.contact-form {
  background-color: var(--brand-red);
  position: relative;
}

/* === Phonecontainer === */
.phone-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: center; /* vertically center dropdown/input */
}

.phone-container .country-code {
  flex: 0 0 auto;
  padding: 0.5rem;
  font-size: 1rem;
  background-color: var(--brand-red);
  color: var(--white);
  border: 2px solid #fafafa;
  border-radius: 25px;
  appearance: none;
}
.country-code:hover,
.country-code:focus {
  background-color: #c1272d;       /* slightly darker red on hover/focus */
  border-color: #fff;
}
.country-code:focus,
.country-code:active {
  border-color: #fff;
  outline: none;
  box-shadow: none;             /* remove default focus shadow */
}
.phone-container .input {
  flex: 1;
}

/* Rode diamant links */
.contact-form:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: var(--brand-red);
  transform: rotate(45deg);
  top: 50px;
  left: -13px;
}
form {
  padding: 2.3rem 2.2rem;
  overflow: hidden;
  position: relative;
}
.title {
  color: var(--white);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}
/* Inputs */
.input-container {
  position: relative;
  margin: 1rem 0;
  z-index: 1;
}
.input {
  width: 100%;
  outline: none;
  border: 2px solid #fafafa;
  background: none;
  padding: 0.6rem 1.2rem;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 25px;
  transition: 0.3s;
}
.input::placeholder {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}
textarea.input {
  padding: 0.8rem 1.2rem;
  min-height: 150px;
  border-radius: 22px;
  resize: none;
  overflow-y: auto;
}
/* === Validation messages === */
.field-msg {
  color: #000; /* red for errors */
  font-size: 0.85rem;
  margin-top: 0.3rem; /* spacing under the input */
  display: block;
  line-height: 1.2;
}

/* Optional: visual feedback on borders */
.input.is-invalid {
  border-color: #fdecea;
}

.input.is-valid {
  border-color: #e6f4ea;
}

/* Ensure phone-container messages are under the input, not beside the dropdown */
.phone-container .field-msg {
  margin-top: 0.3rem;
}

/* Contact info blok */
.contact-info {
  padding: 2.3rem 2.2rem;
  position: relative;
}
.contact-info .title { color: var(--brand-red); }
.text {
  color: var(--grey-dark);
  margin: 1.5rem 0 2rem 0;
}
.info{
  display: flex;
  flex-direction: column;
  justify-content: left;
  gap: 0.5rem;
}
.information {
  display: flex;
  gap: 0.5rem;
  color: var(--grey-dark);
  align-items: center;
  font-size: 0.95rem;
}
.information p { margin: 0; }
.icon { width: 28px; margin-right: 0.7rem; }

/* Socials */
.social-media { padding: 2rem 0 0 0; }
.social-media p { color: var(--grey-dark); }
.social-icons {
  display: flex;
  margin-top: 0.5rem;
}
.social-icons a {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: linear-gradient(45deg, var(--brand-red), var(--brand-red-hover));
  color: var(--white);
  text-align: center;
  line-height: 35px;
  margin-right: 0.5rem;
  transition: 0.3s;
}
.social-icons a:hover { transform: scale(1.05); }

/* Responsiveness contact */
@media (max-width: 900px) {
  .form { grid-template-columns: 1fr; }
  .text { margin: 1rem 0 1.5rem 0; }
  .social-media { padding: 1.5rem 0 0 0; }
}

/* Formulier response messages */
#formResponse {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
}
#formResponse.loading {
  background-color: #f0f0f0;
  color: #666;
  border: 1px solid #ccc;
}
#formResponse.success {
  background-color: #e6f4ea;
  color: #312783; /* kan blijven of naar grey-dark als je wil */
  border: 1px solid #312783;
}
#formResponse.error {
  background-color: #fdecea;
  color: #750000;
  border: 1px solid #750000;
}

/* === Inschrijfblokken === */
/* Sectie spacing */
.inschrijfblok-section {
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem);
}
.inschrijfblok-div{
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.inschrijfblok-intro p { margin: 0 0 1rem; }

/* Grid */
.inschrijfblok-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.8rem, 2vw, 1.2rem);
}

/* Card basis — wit, afgerond, inner shadow */
.inschrijf-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--white);
  color: var(--grey-dark);
  text-decoration: none;
  box-shadow: inset 1px -1px 8px rgba(0, 0, 0, 0.25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, padding .15s ease;
}
.inschrijf-card:hover {
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.25);
}
.inschrijf-card:active {
  background: #f3f3f3;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.25);
}

/* Icon “chip” links */
.inschrijf-card__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #f3f3f5;
  font-size: 18px;
}

/* Titel */
.inschrijf-card__title {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 1.2;
  color: var(--brand-red);
  font-weight: 700;
}

/* Toegankelijkheid */
.inschrijf-card:focus-visible {
  outline: 3px solid #312783;
  outline-offset: 2px;
}

/* Kleine schermen */
@media (max-width: 520px) {
  .inschrijf-card { grid-template-columns: auto 1fr; }
  .inschrijf-card__cta { display: none; }
}
