/* ============================================================
   ALBERGERBOS — Stijlblad (style.css)
   ------------------------------------------------------------
   Hier staan de kleuren, lettertypes en opmaak van de hele site.
   Je hoeft dit bestand zelden aan te raken. Wil je de kleuren
   aanpassen? Verander dan de waarden onder ":root" hieronder.
   ============================================================ */

/* ---- 1. Kleuren & basisinstellingen (pas hier kleuren aan) ---- */
:root {
  --groen-donker: #2f5d3a;   /* koppen, menu */
  --groen:        #3f7d4e;   /* accenten, links */
  --groen-licht:  #e8f1e9;   /* lichte achtergrondvlakken */
  --accent:       #c8772e;   /* knoppen / opvallende oproepen */
  --accent-donker:#a85f1e;
  --tekst:        #1f2a23;   /* gewone tekst */
  --grijs:        #5c6b60;   /* bijschriften, minder belangrijk */
  --lijn:         #d7e0d8;   /* randen / scheidingslijnen */
  --wit:          #ffffff;
  --radius:       12px;      /* afronding van hoeken */
  --max-breedte:  1100px;    /* maximale breedte van de inhoud */
}

/* ---- 2. Algemene reset & typografie ---- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;           /* groot en goed leesbaar */
  line-height: 1.65;
  color: var(--tekst);
  background: var(--wit);
}

h1, h2, h3 { color: var(--groen-donker); line-height: 1.25; }
h1 { font-size: 2.1rem; margin: 0 0 .4em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.2em 0 .4em; }

a { color: var(--groen); }
a:hover { color: var(--groen-donker); }

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

/* Toegankelijkheid: duidelijke focusrand voor toetsenbordgebruikers */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* "Naar inhoud"-link voor schermlezers, verborgen tot focus */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- 3. Layout-hulpmiddel ---- */
.container {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- 4. Bovenbalk met logo en menu ---- */
.site-header {
  background: var(--wit);
  border-bottom: 3px solid var(--groen-licht);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: var(--max-breedte); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { flex: none; }
.logo-tekst { font-size: 1.4rem; font-weight: 700; color: var(--groen-donker); }
.logo-sub { display: block; font-size: .75rem; font-weight: 400; color: var(--grijs); margin-top: -4px; }
/* Logo-afbeelding (vervangt het oude tekstlogo) */
.logo-img { height: 96px; width: auto; display: block; }

/* Het menu */
.hoofdmenu ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0;
}
.hoofdmenu a {
  display: block; padding: 8px 14px; border-radius: 8px;
  text-decoration: none; color: var(--groen-donker); font-weight: 600;
}
.hoofdmenu a:hover { background: var(--groen-licht); }
/* De pagina waar je nu bent, krijgt een gevulde achtergrond */
.hoofdmenu a[aria-current="page"] { background: var(--groen-donker); color: #fff; }

/* Menu-knop voor mobiel (klein scherm) */
.menu-toggle {
  display: none; background: var(--groen-donker); color: #fff; border: 0;
  padding: 8px 12px; border-radius: 8px; font-size: 1rem; cursor: pointer;
}

/* ---- 5. Hero (welkomstvlak bovenaan) ---- */
.hero {
  background: linear-gradient(135deg, var(--groen-donker), var(--groen));
  color: #fff; padding: 56px 0;
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: .4em 0 0; }

/* ---- 6. Knoppen ---- */
.knop {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 700; padding: 12px 22px;
  border-radius: var(--radius); border: 0; cursor: pointer; font-size: 1rem;
}
.knop:hover { background: var(--accent-donker); color: #fff; }
.knop-licht { background: #fff; color: var(--groen-donker); }
.knop-licht:hover { background: var(--groen-licht); color: var(--groen-donker); }
.knop-rood { background: #c0392b; }
.knop-rood:hover { background: #97271b; color: #fff; }

/* Extra ruimte bovenin op de gewone pagina's (niet op Home, daar zit
   het groene hero-vlak al tussen menu en inhoud). */
.inhoud-pagina { padding-top: 36px; }

/* ---- 7. Algemene "kaart" (blok met rand) ---- */
.kaart {
  background: var(--wit); border: 1px solid var(--lijn);
  border-radius: var(--radius); padding: 22px;
}
.kaart h3 { margin-top: 0; }

/* ---- 8. Home: hoofdindeling met zijbalk ---- */
.home-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin: 36px 0;
}
@media (max-width: 800px) {
  .home-grid { grid-template-columns: 1fr; }
}

/* Uitgelichte bijeenkomst */
.uitgelicht {
  background: var(--groen-licht); border-left: 6px solid var(--groen);
  border-radius: var(--radius); padding: 22px; margin-bottom: 24px;
}
.uitgelicht .datum {
  display: inline-block; background: var(--groen-donker); color: #fff;
  padding: 4px 12px; border-radius: 20px; font-size: .9rem; font-weight: 700;
}

/* Nieuwsblokken naast elkaar */
.nieuws-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}

/* Oproepblok "doe mee" */
.doe-mee {
  background: linear-gradient(135deg, #fbf1e6, #f4e2cf);
  border: 1px solid #e7cba6; border-radius: var(--radius);
  padding: 26px; text-align: center; margin: 32px 0;
}
.doe-mee h2 { margin-top: 0; }

/* Zijbalk */
.zijbalk .kaart { margin-bottom: 20px; }
.zijbalk ul { padding-left: 1.1em; margin: .4em 0; }
.zijbalk li { margin: .3em 0; }

/* ---- 9. Bijeenkomsten- en nieuwslijst ---- */
.item-lijst { list-style: none; padding: 0; margin: 0; }
.item-lijst > li {
  border: 1px solid var(--lijn); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 16px;
}
.item-meta { color: var(--grijs); font-size: .95rem; margin: 0 0 .4em; }

/* ---- 10. Formulierpagina ---- */
.form-placeholder {
  background: var(--groen-licht); border: 2px dashed var(--groen);
  border-radius: var(--radius); padding: 30px; text-align: center;
}
.iframe-wrap { margin: 24px 0; }
.iframe-wrap iframe { width: 100%; border: 1px solid var(--lijn); border-radius: var(--radius); }

/* ---- 11. Voettekst ---- */
.site-footer {
  background: var(--groen-donker); color: #dce8df; margin-top: 60px;
  padding: 40px 0 24px;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; margin-bottom: 24px;
}
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.footer-onder {
  border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px;
  font-size: .9rem; color: #b9cdbf;
}

/* ---- 12. Mobiele weergave: menu inklapbaar ---- */
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .hoofdmenu {
    display: none; width: 100%;
  }
  .hoofdmenu.open { display: block; }
  .hoofdmenu ul { flex-direction: column; width: 100%; }
  .header-inner { flex-wrap: wrap; }
  h1 { font-size: 1.7rem; }
}
