:root {
  --blauw: #005A96;        /* hoofdkleur */
  --blauw-donker: #003F69;
  --blauw-licht: #E6EFF5;
  --oranje: #F8822B;       /* accentkleur */
  --oranje-tekst: #B4540F; /* oranje met voldoende contrast op wit */
  --tekst: #1F2A33;
  --grijs: #F2F4F6;
  --wit: #FFFFFF;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Barlow, system-ui, sans-serif; font-size: 17px; color: var(--tekst); background: var(--wit); line-height: 1.6; }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; text-transform: uppercase; line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5em; }
a { color: var(--oranje-tekst); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--oranje); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--wit); padding: 8px 12px; z-index: 20; }

/* Foto-achtergronden */
.foto { background-color: var(--blauw); background-size: cover; background-position: center; }
.f-hero     { background-image: url(../img/vrienden-strand.jpg); background-position: center 30%; }
.f-gebouw   { background-image: url(../img/gebouw.jpg); }
.f-voorkant { background-image: url(../img/voorkant.webp); background-position: center 35%; }
.f-klas     { background-image: url(../img/klas.jpg); }
.f-theater  { background-image: url(../img/theater.jpg); }
.f-muziek   { background-image: url(../img/muziek.jpg); }
.f-ameland  { background-image: url(../img/ameland.jpg); }
.f-hoodies  { background-image: url(../img/hoodies.jpg); background-position: center 35%; }

/* Knoppen: hoekig, klein, hoofdletters */
.knop { display: inline-block; padding: 9px 16px; background: var(--oranje); color: var(--tekst); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 0; }
.knop:hover { background: #FF9447; }
.knop.blauw { background: var(--blauw); color: var(--wit); }
.knop.blauw:hover { background: var(--blauw-donker); }

/* Header */
.site-header { position: relative; z-index: 10; }
.utility { background: var(--wit); }
.utility .wrap, .hoofdnav .wrap { display: flex; justify-content: flex-end; padding-left: 250px; }
.utility ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 6px 0; }
.utility a { display: block; background: var(--blauw); color: var(--wit); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 5px 10px; }
.utility a:hover { background: var(--oranje); color: var(--tekst); }
.hoofdnav { background: var(--blauw-donker); }
#menu { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.hoofdnav a { display: block; color: var(--wit); text-decoration: none; text-transform: uppercase; font-weight: 600; font-size: .85rem; letter-spacing: .05em; padding: 16px 14px; border-bottom: 3px solid transparent; }
.hoofdnav a:hover, .hoofdnav > .wrap > ul > li > a[aria-current="page"] { border-bottom-color: var(--oranje); }

/* Uitklapmenu's (De school, Groep 8) */
.heeft-sub { position: relative; }
.sub-knop { display: flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--wit); font: inherit; text-transform: uppercase; font-weight: 600; font-size: .85rem; letter-spacing: .05em; padding: 16px 14px; cursor: pointer; }
.sub-knop::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub-knop[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.heeft-sub.actief > .sub-knop, .sub-knop:hover { border-bottom-color: var(--oranje); }
.sub { display: none; position: absolute; top: 100%; right: 0; z-index: 20; min-width: 250px; background: var(--wit); border-top: 4px solid var(--oranje); box-shadow: 0 10px 24px rgba(0,0,0,.18); padding: 10px 0; list-style: none; margin: 0; }
.sub.twee-kol { min-width: 500px; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.sub-knop[aria-expanded="true"] + .sub { display: grid; }
.hoofdnav .sub a { color: var(--tekst); text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 500; padding: 8px 20px; border-bottom: 0; }
.hoofdnav .sub a:hover { background: var(--blauw-licht); color: var(--blauw); }
.hoofdnav .sub a[aria-current="page"] { color: var(--blauw); font-weight: 700; box-shadow: inset 4px 0 0 var(--oranje); }
@media (min-width: 961px) and (hover: hover) {
  /* Hover opent alleen als er niet al een menu is opengeklikt, zodat er nooit twee tegelijk open zijn */
  .hoofdnav:not(:has(.sub-knop[aria-expanded="true"])) .heeft-sub:hover > .sub { display: grid; }
}
/* Het WLG-logo hangt in een wit blok vanaf de bovenrand over menu en foto */
.logo { position: absolute; left: max(16px, calc((100vw - var(--max)) / 2 + 16px)); top: 0; width: 220px; background: var(--wit); padding: 22px 24px 18px; border-bottom: 6px solid var(--oranje); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.logo img { width: 100%; }
.menu-knop { display: none; }

/* Hero (home) */
.hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; justify-content: flex-end; }
.hero-vlak { background: var(--blauw); color: var(--wit); width: min(560px, 100%); padding: 32px 36px 36px; margin-right: max(0px, calc((100vw - var(--max)) / 2)); border-top: 6px solid var(--oranje); }
.hero-vlak h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero-vlak p { margin: 0 0 20px; font-size: 1.1rem; }

/* Paginakop (subpagina's) */
.paginakop { position: relative; min-height: 340px; display: flex; align-items: flex-end; }
.paginakop::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,40,68,.15), rgba(0,40,68,.45)); }
.paginakop .wrap { position: relative; width: 100%; display: flex; justify-content: flex-end; }
.paginakop .titel { background: var(--blauw); color: var(--wit); padding: 22px 30px 18px; border-top: 6px solid var(--oranje); max-width: 620px; }
.paginakop h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.paginakop p { margin: 4px 0 0; }

/* Inhoud + zijbalk */
.inhoud { padding: 64px 0 80px; }
.inhoud .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.tekst h2 { font-size: 2rem; color: var(--blauw); margin-top: 1.4em; }
.tekst h2:first-child { margin-top: 0; }
.tekst h3 { font-size: 1.35rem; margin-top: 1.4em; }
.tekst p, .tekst li { max-width: 68ch; }
.tekst figure { margin: 28px 0; }
.tekst figcaption { font-size: .85rem; color: #5A6670; margin-top: 6px; }
.lead { font-size: 1.2rem; }
.zijbalk { display: grid; gap: 24px; position: sticky; top: 16px; }
.zijblok { background: var(--blauw-licht); padding: 24px; }
.zijblok h2 { font-size: 1.4rem; color: var(--blauw); }
.zijblok ul { list-style: none; margin: 0; padding: 0; }
.zijblok li { border-bottom: 1px dotted rgba(0,90,150,.35); }
.zijblok li a { display: block; padding: 8px 0; text-decoration: none; color: var(--tekst); font-weight: 500; }
.zijblok li a:hover { color: var(--oranje-tekst); }
.zijblok.oranje { background: var(--oranje); }
.zijblok.oranje h2 { color: var(--tekst); }
.zijblok p { margin: 0 0 14px; }
.rooster { width: 100%; border-collapse: collapse; margin: 12px 0; max-width: 420px; }
.rooster th, .rooster td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #DCE3E8; }
.rooster tr.pauze td { color: #5A6670; font-style: italic; }
.rooster.gegevens { max-width: none; }
.rooster.gegevens th { width: 38%; font-weight: 600; vertical-align: top; }
.video { position: relative; aspect-ratio: 16/9; margin: 16px 0 28px; background: var(--blauw-donker); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kader { border-left: 5px solid var(--oranje); background: var(--grijs); padding: 16px 20px; margin: 24px 0; }
details { border-bottom: 1px solid #DCE3E8; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 1.05rem; color: var(--blauw); }
details p { margin: 0 0 16px; }

/* Intro + uitgelicht (home) */
.intro { padding: 72px 0; }
.intro .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.intro h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--blauw); }
.uitgelicht { background: var(--blauw-licht); padding: 28px; }
.uitgelicht h2 { font-size: 1.8rem; }
.uitgelicht .beeld { aspect-ratio: 4/3; margin-bottom: 16px; }
.uitgelicht .klein { color: var(--oranje-tekst); font-weight: 600; margin: 0; }
.uitgelicht .titel { font-weight: 700; margin: 0 0 14px; }

/* Nieuws-tegels */
.nieuws { background: var(--grijs); padding: 64px 0; }
.nieuws-kop { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.nieuws-kop h2 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--blauw); margin: 0; }
.tegels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tegel { background: var(--wit); display: flex; flex-direction: column; }
.tegel .beeld { aspect-ratio: 16/10; }
.tegel .tegel-tekst { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tegel h3 { font-size: 1.5rem; }
.tegel p { margin: 0 0 16px; flex: 1; }
.tegel .knop { align-self: flex-start; }

/* Nieuwsberichten (nieuwspagina) */
.bericht { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 2px dotted var(--oranje); scroll-margin-top: 16px; }
.bericht:first-child { padding-top: 0; }
.bericht .beeld { aspect-ratio: 4/3; }
.bericht h2 { margin-top: 0 !important; font-size: 1.7rem; }
.geplaatst { color: #5A6670; font-size: .85rem; margin: 0 0 8px; }

/* Fotoband met cijfers */
.band { position: relative; padding: 72px 0; color: var(--wit); }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(0, 63, 105, .78); }
.band .wrap { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.band strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--oranje); }
.band span { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 600; }

/* Drie kolommen met stippellijnen */
.kolommen { padding: 72px 0; }
.kolommen .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.kolommen article { padding: 0 28px; border-left: 2px dotted var(--oranje); }
.kolommen article:first-child { padding-left: 0; border-left: 0; }
.kolommen h2 { font-size: 1.7rem; color: var(--blauw); }

/* Agenda */
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.datum { flex: 0 0 56px; text-align: center; background: var(--blauw); color: var(--wit); padding: 4px 0; line-height: 1.1; }
.datum b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; }
.datum small { text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; }

/* Groep 8-balk */
.groep8 { background: var(--oranje); }
.groep8 .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.groep8 h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.groep8 p { margin: 4px 0 0; font-size: 1.1rem; }

/* Footer */
footer { position: relative; color: #DCE6EE; font-size: .95rem; padding: 64px 0 24px; }
footer::before { content: ""; position: absolute; inset: 0; background: rgba(0, 40, 68, .92); }
footer > .wrap { position: relative; }
.footer-kol { display: grid; grid-template-columns: 1.2fr 1fr 1fr; }
.footer-kol > div { padding: 0 28px; border-left: 2px dotted rgba(248,130,43,.7); }
.footer-kol > div:first-child { padding-left: 0; border-left: 0; }
footer .label { color: var(--oranje); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
footer h2 { color: var(--wit); font-size: 1.6rem; }
footer a { color: #FFB27A; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
.onder { border-top: 1px solid rgba(255,255,255,.2); margin-top: 40px; padding-top: 16px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.naar-boven { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; background: var(--oranje); color: var(--tekst); display: grid; place-items: center; text-decoration: none; font-size: 1.3rem; z-index: 15; }

@media (max-width: 960px) {
  .utility .wrap { padding-left: 150px; }
  .logo { width: 132px; padding: 12px 14px 10px; border-bottom-width: 4px; }
  .hoofdnav .wrap { padding-left: 16px; justify-content: flex-end; position: relative; }
  .menu-knop { display: block; background: none; color: var(--wit); border: 2px solid var(--wit); padding: 8px 14px; margin: 10px 0; font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
  #menu { display: none; }
  .hoofdnav.open #menu { display: flex; flex-direction: column; flex-wrap: nowrap; position: absolute; left: 0; right: 0; top: 100%; background: var(--blauw-donker); padding-bottom: 8px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .sub-knop { width: 100%; justify-content: space-between; }
  .sub, .sub.twee-kol { position: static; min-width: 0; grid-template-columns: 1fr; box-shadow: none; border-top: 0; background: rgba(255,255,255,.08); padding: 4px 0; }
  .hoofdnav .sub a { color: var(--wit); padding: 10px 28px; }
  .hoofdnav .sub a:hover { background: rgba(255,255,255,.12); color: var(--wit); }
  .hoofdnav .sub a[aria-current="page"] { color: var(--wit); }
  .hero { min-height: 480px; }
  .hero-vlak { padding: 24px 20px 28px; }
  .paginakop { min-height: 280px; }
  .paginakop .wrap { padding: 0; }
  .paginakop .titel { max-width: none; width: 100%; padding: 18px 16px 14px; }
  .intro .wrap, .kolommen .wrap, .footer-kol, .inhoud .wrap { grid-template-columns: 1fr; gap: 36px; }
  .zijbalk { position: static; }
  .kolommen article, .footer-kol > div { padding: 28px 0 0; border-left: 0; border-top: 2px dotted var(--oranje); }
  .kolommen article:first-child, .footer-kol > div:first-child { padding-top: 0; border-top: 0; }
  .tegels { grid-template-columns: 1fr 1fr; }
  .band .wrap { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .utility .wrap { padding-left: 140px; }
  .utility li:nth-child(n+3) { display: none; }
  .tegels { grid-template-columns: 1fr; }
  .bericht { grid-template-columns: 1fr; gap: 16px; }
  .intro, .kolommen { padding: 56px 0; }
  .inhoud { padding: 40px 0 56px; }
  .naar-boven { width: 38px; height: 38px; right: 10px; bottom: 10px; }
  /* Foto in zijn geheel boven het welkomstvlak tonen (16:9) */
  .hero.f-voorkant { min-height: 0; padding-top: 56.25vw; background-size: 100% auto; background-position: top center; background-repeat: no-repeat; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
