/* === Typografie & Kleuren === */
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #2e2e2e;
  background: #faf9f6;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #2a799e;
  margin-top: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.4rem; color: #4a4a4a; }

p { margin-bottom: 1.4em; }

/* === Navigatie === */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topnav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topnav .logo img {
  height: 32px;
  width: auto;
}

.topnav .logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #2a799e;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #45698e;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #b89b72;
}

.nav-links a.active {
  color: #b89b72;
  font-weight: bold;
  border-bottom: 2px solid #b89b72;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #2a799e;
}

/* === Banner === */
.banner {
  position: relative;
  width: 100%;
  height: 400px;
  background: url('../afbeeldingen/bannerwiskunde.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner .slogan,
.banner-ouders .slogan {
  font-size: 1.8rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-style: italic;
  margin: 0 auto;
  text-align: center;
  max-width: 90%;
  word-break: break-word;
}

.banner-ouders {
  background: url('/afbeeldingen/banner_voorouders.png') center center / cover no-repeat;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Layout en Content === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.intro-foto {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.intro-foto img {
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  flex-shrink: 0;
}

.intro-foto .tekst {
  flex: 1;
  min-width: 280px;
}

.grid-blokken {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 2rem;
}
.blog-artikel {
  margin-bottom: 2rem;
}
.blog-artikel img.artikel-foto {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.blok {
  flex: 1 1 22%;
  max-width: 22%;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  box-sizing: border-box;
}

.blok img {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-knop {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: #2a799e;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.contact-knop:hover {
  background-color: #b89b72;
}
.contact-knop {
  color: #fff !important;
}
aside .categorieen-lijst {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
aside .categorieen-lijst li {
  list-style-type: none !important;
  margin-left: 0 !important;
}

/* === Footer === */
footer {
  background: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
  font-size: 14px;
  color: #777;
  border-top: 1px solid #e0e0e0;
  margin-top: 4rem;
}

footer a {
  color: #b89b72;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  margin: 0 0.5rem;
  color: #45698e;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #b89b72;
}

/* === Media === */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pers-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.media-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.media-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.media-card h3 {
  color: #2a799e;
  margin: 0.5rem 0;
}

.media-card a {
  color: #2a799e;
  font-weight: bold;
  text-decoration: none;
}

.media-card a:hover {
  text-decoration: underline;
}
.event-card {border:1px solid #e6e6e6; padding:1.25rem; border-radius:12px; background:#fff; margin-bottom:2rem}
.event-card .event-sub {margin-top:-.5rem; color:#666}
.event-card .event-meta {list-style:none; padding:0; margin:.5rem 0 1rem 0}
.event-card .event-meta li {margin:.25rem 0}
.event-card i {margin-right:.5rem}
.lezing-aankondiging {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}
.lezing-aankondiging h2 {
  color: #006699; /* Pas aan naar jouw accentkleur */
  margin-top: 0;
}
.lezing-aankondiging p {
  margin-bottom: 1rem;
}
.lezing-teaser {
  background-color: #fff5f5; /* zacht roodachtig */
  border: 1px solid #e0b4b4;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}
.lezing-teaser h2 {
  margin-top: 0;
}

/* === Responsive Design === */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding: 1rem 2rem;
    position: absolute;
    top: 60px;
    left: 0;
    border-top: 1px solid #eee;
    justify-content: center;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .intro-foto {
    flex-direction: column;
  }

  .blok {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .banner .slogan,
  .banner-ouders .slogan {
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
  }
}
@media screen and (max-width: 768px) {
  .blog-layout {
    flex-direction: column;
  }
}
/* === Variaties op blokkenlayout (per pagina) === */

/* 2 blokken per rij */
.grid-2 {
  justify-content: center; /* i.p.v. space-between */
}

.grid-2 .blok {
  flex: 1 1 48%;
  max-width: 48%;
}

/* 1 blok (breed, maar leesbaar) */
.grid-1 {
  justify-content: center;
}

.grid-1 .blok {
  flex: 1 1 100%;
  max-width: 900px; /* pas aan: 800-1000 is meestal mooi */
}
/* Mobile fix: overrides voor grid-1 en grid-2 ook 100% op gsm */
@media screen and (max-width: 768px) {
  .grid-2 .blok,
  .grid-1 .blok {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

