/* ====== BASIS ====== */
html {
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  background-color: rgb(240, 240, 240);
  color: #333;
  overflow-x: hidden;
}

body {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: underline;
}

/* ====== HEADER ====== */
header {
  background: white;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  font-size: 0.9rem;
}

.topbar-links {
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
}

.topbar .logo {
  height: 100px;
}

.topbar a {
  color: #004080;
  text-decoration: none;
}

/* ====== MENU ====== */
nav {
  background-color: white;
  border-top: 1px solid #eee;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: #004080;
}

/* ====== SUBMENU STIJLEN ====== */
nav ul li {
  position: relative;
}

nav ul li ul.submenu {
  display: none;
  position: absolute;
  top: 100%; /* direct onder hoofdmenu */
  left: 0;
  background: white;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  z-index: 2000;
  border-radius: 6px;
}

nav ul li ul.submenu li a {
  display: block;
  padding: 0.8rem 1rem;
  color: #333;
  font-weight: 400;
  border-bottom: 1px solid #f2f2f2;
}

nav ul li ul.submenu li:last-child a {
  border-bottom: none;
}

nav ul li ul.submenu li a:hover {
  background: #f5f7fa;
  color: #004080;
}

/* Toon submenu bij hover */
nav ul li.has-submenu:hover > ul.submenu {
  display: block;
}

/* Pijltje iets dichter bij tekst */
.has-submenu > a {
  padding-right: 1.5rem;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(80%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  padding: 0 1rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ====== MAIN ====== */
main {
  padding: 0;
}

.main-layout {
  display: grid;
  grid-template-columns: 300px 1fr 1fr;
  gap: 2rem;
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
  width: 100%;
}

.main-layout > * {
  min-width: 0;
}

.content-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  font-size: clamp(0.75rem, 2.5vw, 1rem);
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

h2 {
  color: #004080;
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  margin-block: 0px;
}

h3 {
  color: #004080;
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-block: 0px;
}

h4 {
  color: #004080;
  font-size: clamp(0.8rem, 2.5vw, 1.25rem);
  margin-block: 0px;
}

.indent {
  margin-left: 2rem;
}

.next {
  color: #004080;
  font-size: clamp(1rem, 3vw, 1.5rem);
  background: white;
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  padding: 1rem;
  background: #f3f3f3;
  font-size: 0.9rem;
}

/* ====== HAMBURGER-MENU MET ANIMATIE ====== */
.menu-toggle {
  display: none;
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.menu-toggle svg {
  stroke: #004080;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

.menu-toggle .line {
  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
  transform-origin: 50% 50%;
}

/* ✕ animatie bij openen */
.menu-toggle.open .top {
  transform: translateY(15px) rotate(45deg);
}
.menu-toggle.open .middle {
  opacity: 0;
}
.menu-toggle.open .bottom {
  transform: translateY(-15px) rotate(-45deg);
}

/* ====== LAYOUT MET KALENDER (HOMEPAGE) ====== */

/* linkerkolom */
.kalender {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
}

.kalender h2 {
  color: #004080;
  margin-top: 0;
  border-bottom: 2px solid #004080;
  padding-bottom: 0.3rem;
  flex-shrink: 0;
}

/* rechterkolom */
.main-layout .content-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ====== KALENDERSTIJL ====== */
.activiteiten-container {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
  overflow-y: auto;
  max-height: 400px;
}

.activiteit {
  border-bottom: 1px solid #b0c4d8;
  padding: 0.8rem 0;
}

.activiteit-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.activiteit-link .titel {
  color: #004080;
  text-decoration: underline;
  text-decoration-color: #a0b8d0;
}

.activiteit-link:hover .titel {
  text-decoration-color: #004080;
}

.datum {
  font-weight: bold;
  color: #2c3e50;
}

.titel {
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  margin-top: 0.3rem;
}

.plaats {
  color: #7f8c8d;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.omschrijving {
  font-size: clamp(0.75rem, 2.5vw, 1rem);
}

.foutmelding {
  text-align: center;
  color: #c0392b;
  font-weight: bold;
}

.meerlink {
  display: inline-block;
  margin-top: 0.5rem;
  color: #004080;
  font-weight: 600;
  text-decoration: none;
}
.meerlink:hover {
  text-decoration: underline;
}

/* ====== ACTIVITEITENPAGINA ====== */
body.activiteiten main {
  padding: 2rem 1rem;
}

body.activiteiten .activiteiten-container {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  overflow-y: auto;
  max-height: none;
}

body.activiteiten .activiteit {
  border-bottom: 1px solid #b0c4d8;
  padding: 1rem 0;
}

/* ====== CONTACTFORMULIER ====== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1rem;
}

/* Naam + e-mail naast elkaar */
.contact-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-row label {
  flex: 1;
}

/* ====== LABELS EN INVOERVELDEN ====== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1rem;
  .contact-form {
    padding: 0 0.2rem;
  }
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box; /* voorkomt dat padding of border de breedte overschrijdt */
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #004080;
  box-shadow: 0 0 0 2px rgba(0, 64, 128, 0.15);
  background-color: #fdfdfd;
}

/* ====== TEXTAREA ====== */
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ====== FIELDSETS ====== */
.contact-form fieldset {
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem 1.2rem;
}

.contact-form legend {
  font-weight: 600;
  color: #004080;
  margin-bottom: 0.5rem;
}

.contact-form label input[type="checkbox"],
.contact-form label input[type="radio"] {
  margin-right: 0.6rem;
  accent-color: #004080;
}

/* ====== KNOP ====== */
.contact-form button {
  align-self: flex-start;
  background: #004080;
  color: white;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #002f5f;
}

/* ====== FEEDBACK ====== */
.ok,
.fout {
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}
.ok {
  background: #e9f8ee;
  color: #1e824c;
}
.fout {
  background: #fdecea;
  color: #c0392b;
}

.g-recaptcha {
  margin-top: 1rem;
  margin-bottom: 1rem;
  transform: scale(1);
  transform-origin: left;
}

/* ====== GDPR ====== */
.gdpr-nota {
  background: #eef4fb;
  border-left: 4px solid #004080;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

.gdpr-nota a {
  color: #004080;
}

.gdpr-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.gdpr-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #004080;
  width: 16px;
  height: 16px;
}

.gdpr-label a {
  color: #004080;
}

.verplicht-nota {
  font-size: 0.82rem;
  color: #888;
  margin: -0.8rem 0 0;
}

/* ====== RESPONSIVE ====== */

/* ====== RESPONSIVE AANPASSINGEN ====== */
@media (max-width: 1100px) {
  .hero {
    height: 400px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 3rem;
  }
  .main-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
    width: 100%;
  }
  .kalender {
    order: -1;
    min-height: auto;
    height: auto;
  }
  nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  nav.open ul {
    display: flex;
  }
  nav a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
  }
  .menu-toggle {
    display: block;
  }
  body.activiteiten .activiteiten-container {
    max-width: 95%;
    padding: 1.2rem;
  }
  nav ul li ul.submenu {
    position: static;
    box-shadow: none;
    border: none;
  }
  nav ul li.has-submenu.submenu-open > ul.submenu {
    display: block;
  }
  nav ul li ul.submenu li a {
    padding-left: 2rem;
    border-bottom: 1px solid #eee;
  }
}

/* ====== TABLET: 2-kolomslayout (kalender + inhoud naast elkaar) ====== */
@media (min-width: 768px) and (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto auto;
  }
  /* Kalender: linkerkolom, strekt zich over beide rijen */
  .main-layout > .kalender {
    grid-column: 1;
    grid-row: 1 / span 2;
    order: 0;
  }
  /* Actueel-sectie: rechterkolom, rij 1 */
  .main-layout > section:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
  }
  /* BPF-sectie: rechterkolom, rij 2 */
  .main-layout > section:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ====== MOBIEL: sectiekoppen als visuele dividers ====== */
@media (max-width: 767px) {
  .main-layout > .content-grid > h2 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7a90a8;
    border-bottom: 1.5px solid #d0dce8;
    padding-bottom: 0.4rem;
    margin-bottom: 0;
  }
}

@media (max-width: 700px) {
  .contact-row {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  nav a {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
  }
  .hero {
    height: 300px;
  }
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .topbar .logo {
    height: 50px;
  }
  .card {
    padding: 1rem;
  }
  .main-layout {
    gap: 1rem;
    padding: 0.75rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0.5rem 1rem;
  }
  .topbar-links {
    font-size: 0.8rem;
  }
  .topbar .logo {
    height: 35px;
  }
  .hero {
    height: 180px;
  }
  .hero-text h1 {
    font-size: 1.2rem;
  }
  .card {
    padding: 0.75rem;
  }
  .main-layout {
    gap: 0.75rem;
    padding: 0.5rem;
  }
}

/* ====== EINDE ====== */
