/* ========================================================= */
/*  KLEUREN / FONTS                                          */
/* ========================================================= */

:root {
  --primary: #FF6A00;
  --primary-dark: #f68b28;
  --background: #f3f4f6;
  --text-dark: #0072ac;
  --text-light: #FFFFFF;

  --font-main: "Poppins", sans-serif;
  --font-heading: "Poppins", sans-serif;

  --steun-panel-width: 320px;
  --steun-tab-width: 52px;

}

/* ========================================================= */
/*  ALGEMENE LAYOUT                                          */
/* ========================================================= */

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;   /* was 400 */
  color: var(--text-dark);

  /* ruimte voor sticky header */
  padding-top: 280px;

  /* achtergrond wordt via ::before geregeld */
  position: relative;
  background: none;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  scroll-margin-top: 160px;
}


h2 {
  color: var(--primary);
  font-family: var(--font-heading);
}

/* Oranje accenten in content */
.container p strong {
  color: var(--primary);
  font-weight: 700; /* blijft duidelijk vet */
}


/* ========================================================= */
/*  HEADER + SHRINK                                          */
/* ========================================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 280px;
  border-bottom: 5px solid #FF6A00;
  background: url('assets/images/header.jpg') center/cover no-repeat;
  background-size: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  z-index: 1000;
  transition: height 0.45s ease, background-size 0.45s ease;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(255, 255, 255);
  z-index: 1;
  pointer-events: none; /* 🔑 DIT */
}



header.shrink { 
  height: 120px;            /* banner wordt echt kleiner */
  background-size: 160%;   /* zoomt iets in zodat het klein lijkt */
}

/* ============================= */
/* HEADER LOGO LINKS (ALLE STATES)
/* ============================= */

.header-logo.left {
  left: 20px;
  top: 20px;
  transition:
    left 1.8s ease,
    top 1.8s ease,
    transform 1.8s ease;
}

/* Intro: groot in het midden */
.header-logo.left.intro {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.9);
  z-index: 9999;
}

/* Extra overlay state (optioneel) */
.header-logo.left.intro-overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.35);
  z-index: 9999;
}



/* ========================================================= */
/*  LOGO'S HEADER (MET INTRO ANIMATIE)                        */
/* ========================================================= */

.header-logo {
  position: absolute;
  top: 20px;
  z-index: 3;
}

/* LOGO AFMETING */
.header-logo img {
  width: 270px;
  height: auto;
  transition: width 0.35s ease, top 0.35s ease;
}

/* RECHTS LOGO */
.header-logo.right {
  right: 20px;
}

/* SHRINK EFFECT */
header.shrink .header-logo img {
  width: 90px;
  top: -10px;
}


/* MOBIEL LOGO (standaard verborgen) */
.mobile-logo {
  display: none;
  text-align: center;
}

.mobile-logo img {
  width: 160px;
  height: auto;
}


/* ========================================================= */
/*  HEADER TEKST                                             */
/* ========================================================= */

.header-text {
  position: relative;
  z-index: 5;
}

header h1 {
  font-size: 3rem;
  margin: 0;
  color: #006AA7;
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: font-size 0.35s ease;
}



header.shrink h1 {
  font-size: 1.6rem;
}

.slogan {
  font-size: 1.6rem;
  margin-top: 10px;
  color: #ED6E00;
  text-shadow: 0 4px 10px rgba(255, 255, 255, 0.4);
  transition: font-size 0.35s ease;
}

header.shrink .slogan {
  font-size: 0.9rem;
}

/* Tekstkleur bij scrollen (shrink mode) */
header.shrink h1,
header.shrink .slogan {
  color: #006AA7;   
  text-shadow: 0 4px 10px rgba(255, 255, 255, 0.4);
}

header.shrink .header-logo img {
  width: 90px;
  top: -10px; /* hoger */
}



/* ========================================================= */
/*  NAVIGATIE                                                */
/* ========================================================= */

nav {
  background: var(--primary);
  padding: 15px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;    /* <<< DIT FIXT ALLES */
  gap: 25px;
  position: relative;
  z-index: 999;
  transition: margin-top 0.45s ease;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;   /* <<< voorkomt lelijke woordafbreking */
}

nav a:hover {
  color: #d0e5ff;
}

/* NAV mee laten schuiven met shrink header */
header.shrink + nav {
  margin-top: 80px;
}


/* ========================================================= */
/*  BUTTONS                                                   */
/* ========================================================= */

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;

  /* Mooie moderne schaduw */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: 
      background 0.25s ease,
      transform 0.2s ease,
      box-shadow 0.25s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(255, 106, 0, 0.3);
}


/* ========================================================= */
/* 3D TILES                                                  */
/* ========================================================= */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.tile {
  text-decoration: none;
  perspective: 800px;
}

.tile-inner {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.40);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.tile:hover .tile-inner {
  transform: translateY(-10px) rotateX(8deg) rotateY(5deg);
  box-shadow: 0 25px 45px rgba(255,106,0,0.40);
}

/* ========================================================= */
/* TEAM CARDS                                                */
/* ========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.team-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.40);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(255,106,0,0.40);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

/* ========================================================= */
/* TEAM MODAL                                                */
/* ========================================================= */

.team-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.team-modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow:
      0 0 15px rgba(255, 106, 0, 0.35),
      0 0 30px rgba(255, 106, 0, 0.20),
      0 15px 40px rgba(0,0,0,0.25); /* bestaande schaduw versterkt */
}

.team-modal-content img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  color: #444;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
}

/* ========================================================= */
/* LID MODAL                                                     */
/* ========================================================= */

#lidModal input,
#lidModal textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

#lidModal label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

#lidModal button {
    background: #2196f3;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
}

#lidModal button:hover {
    background: #1976d2;
}

/* ========================================================= */
/* FOOTER                                                     */
/* ========================================================= */

footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer-socials {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center; /* of left als je dat liever hebt */
  gap: 8px;
}

.footer-socials a {
  color: #ccc;
  font-size: 22px;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials .cookie-link {
  font-size: 0.85rem;
  color: inherit;
  text-decoration: underline;
}

.footer-socials a:hover {
  color: #FF4500; /* accentkleur */
  transform: scale(1.2);
}


/* ============================= */
/*      MOBIEL WEERGAVE          */
/* ============================= */
@media (max-width: 768px) {

  /* Header kleiner op mobiel */
  header {
    height: 160px;
    background-size: cover;
    justify-content: center;
    position: fixed;       /* header vastzetten */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }

  body {
    padding-top: 160px; /* perfect gelijk aan header-hoogte */
  }

  /* Desktop logo’s verbergen */
  .header-logo.left,
  .header-logo.right {
    display: none !important;
  }

  /* Mobiel logo tonen en IN de header plaatsen */
  .mobile-logo {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: absolute;   /* niet meer onder de header */
    top: 30px;            /* mooi in de oranje balk */
    left: 0;
    width: 100%;
    z-index: 1000;
    margin: 0 !important; /* dit verwijdert jouw fout */
  }

  .mobile-logo img {
    width: 200px;
    height: auto;
  }

  /* Header-tekst verbergen op mobiel */
  .header-text {
    display: none !important;
  }

  /* Shrink effect op mobiel */
  header.shrink {
    height: 80px;
  }

  header.shrink .mobile-logo {
    top: 10px;     /* logo blijft in de header */
  }

  header.shrink .mobile-logo img {
    width: 120px;  /* iets kleiner, maar duidelijk zichtbaar */
  }

}

/* ========================================================= */
/* CONTACT FORMULIER (mooie uitlijning)                      */
/* ========================================================= */

  form .form-group {
      display: flex;
      flex-direction: column;
      margin-bottom: 18px;
  }

  form label {
      font-weight: bold;
      margin-bottom: 6px;
  }

  form input,
  form textarea,
  form select {
      width: 100%;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid #ccc;
      font-size: 1rem;
      box-sizing: border-box;
  }

  form textarea {
      resize: vertical;
  }

  form button {
      margin-top: 10px;
  }


/* ========================================================= */
/* LID-WORDEN POPUP SCROLL                                   */
/* ========================================================= */

  #lidModal .team-modal-content {
      max-height: 80vh;
      overflow-y: auto;
      padding-right: 15px; 
      box-shadow:
          0 0 15px rgba(255, 106, 0, 0.35),
          0 0 30px rgba(255, 106, 0, 0.20),
          0 15px 40px rgba(0,0,0,0.25); /* bestaande schaduw versterkt */
  }

  body.popup-open {
      overflow: hidden; /* voorkomt dubbele scrollbars */
  }

/* ========================================================= */
/* FORCEER FONT IN MODALS & FORMULIEREN                      */
/* ========================================================= */

.team-modal,
.team-modal * {
  font-family: var(--font-main) !important;
}


/* ========================================================= */
/* STEUN ONS SLIDER                                          */
/* ========================================================= */

#steunSlider {
  position: fixed;
  top: 30%;
  right: 0;
  z-index: 9998;
  font-family: var(--font-main);
}

/* Tab (zichtbare knop) */
#steunTab {
  width: var(--steun-tab-width);
  background: #ff6a00;
  color: #fff;
  font-weight: 700;
  padding: 16px 8px;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: center;
  box-shadow: -4px 0 10px rgba(0,0,0,0.2);
}


/* Uitklapbaar paneel */
#steunPanel {
  position: absolute;
  top: 0;
  right: calc(-1 * (var(--steun-panel-width) + var(--steun-tab-width)));
  width: var(--steun-panel-width);
  background: #fff;
  padding: 25px;
  border-radius: 12px 0 0 12px;
  box-shadow: -6px 0 20px rgba(0,0,0,0.25);
  transition: right 0.35s ease;
}


/* Actieve staat */
#steunSlider.open #steunPanel {
  right: var(--steun-tab-width);
}


#steunPanel h3 {
  color: var(--primary);
  margin-top: 0;
}

#steunPanel a {
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
}

#steunPanel a:hover {
  text-decoration: underline;
}



/* Mobiel iets lager */
@media (max-width: 768px) {
  #steunSlider {
    top: 35%;
  }
}


/* ========================================================= */
/*  ACHTERGROND FOTO MET INSTELBARE OPACITY                  */
/* ========================================================= */


/* Semi-transparante achtergrondlaag */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url('images/achtergrond.jpg'); /* <-- jouw foto */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-position: center 120px; /* <<< HIER NAAR BENEDEN SCHUIVEN */

  opacity: 0.25; /* <-- PAS HIER DE ZICHTBAARHEID AAN (0.0 - 1.0) */
  z-index: -1;

  /* voorkomt scroll bouncing en zorgt dat hij blijft staan */
  pointer-events: none;
}

/* ========================================================= */
/* NIEUWS CARDS (gebruiken bestaande team-card styling)     */
/* ========================================================= */

.news-card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0;
  color: inherit;   /* neemt body-kleur over */
}


/* "Meer weergeven" knopje */
.news-card .meer {
  margin-top: 10px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-card .meer:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

/* Nieuws-afbeeldingen rechthoekig i.p.v. rond */
.news-card img {
  width: 100%;
  height: 180px;
  border-radius: 12px;      /* geen rond paspoort-effect */
  object-position: top; /* ⬅️ toont bovenkant van de foto */
  object-fit: cover;
  margin-bottom: 12px;
}

.news-card img {
  width: 100%;
  height: 180px;        /* vaste hoogte blijft */
  object-fit: cover;   /* vult het vlak */
  object-position: top; /* ⬅️ toont bovenkant van de foto */
  border-radius: 12px;
  margin-bottom: 12px;
}


/* Modal afbeelding voor nieuws ook rechthoekig */
#nieuws1 img,
#nieuws2 img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Klikbare items in verkiezingsprogramma */
#verkiezingsprogramma ul li.programma-item {
    cursor: pointer;
    color: #0077cc;           /* blauwe klikbare kleur */
    font-weight: 600;
    padding: 5px 0;
    transition: 0.2s ease;
}

/* Hover effect zoals links */
#verkiezingsprogramma ul li.programma-item:hover {
    color: #005fa3;
    text-decoration: underline;
    transform: translateX(3px);
}

/* Tekst links uitlijnen in verkiezingsprogramma-popups */
#themas .team-modal-content,
#speerpunten .team-modal-content,
#programma .team-modal-content {
    text-align: left !important;
    font-size: 20px;   /* pas dit aan naar wens */
    line-height: 1.5;
}

/* ========================================================= */
/* GROTERE NIEUWSPOPUPS + LINKS UITLIJNEN                    */
/* ========================================================= */

#nieuws1 .team-modal-content,
#nieuws2 .team-modal-content {
    max-width: 900px !important;  /* popup flink groter */
    width: 90% !important;        /* schaalt goed op mobiel */
    text-align: left !important;  /* tekst links uitlijnen */
    font-size: 18px;              /* iets grotere leestekst (optioneel) */
    line-height: 1.6;
}

/* Nieuwsafbeelding binnen de popup netjes breder */
#nieuws1 .team-modal-content img,
#nieuws2 .team-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ========================================================= */
/* NIEUWSPOPUP LATEN SCROLLEN                                */
/* ========================================================= */

#nieuws1 .team-modal-content,
#nieuws2 .team-modal-content {
    max-height: 80vh;       /* popup hoogte beperkt tot viewport */
    overflow-y: auto;       /* inhoud binnen popup scrollt */
}

/* ============================= */
/* LOGO INTRO OVERLAY            */
/* ============================= */

/* Achtergrond iets vervagen */
body.intro-active > *:not(header) {
  filter: blur(5.5px);
  opacity: 0.75;
  transition: filter 1.2s ease, opacity 1.2s ease;
}

body.intro-active header {
  opacity: 0.85;
  transition: opacity 1.2s ease;
}

/* ============================= */
/* SOCIAL                        */
/* ============================= */
#social {
  margin: 60px auto;
  text-align: center;
}

.social-block {
  margin-top: 20px;
}

.facebook-embed {
  max-width: 340px;
  margin: 0 auto;
}

/* ==========================
   SUBTIELE SNEEUW (VERBETERD)
========================== */

.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 20px; /* fallback */
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(110vh) translateX(20px);
  }
}

/* ❄ SNEEUW AAN / UIT */
.snow.hidden {
  display: none;
}
