/* Afwerking en vrijwilligers: cookiemelding, slider, popup, zoeken, media, trainingen. Mobile-first. */

/* ---------- Cookiemelding ---------- */
.cookiebanner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 3px solid var(--blauw); box-shadow: 0 -6px 24px rgba(0,0,0,.15); padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.cookiebanner[hidden] { display: none; }
.cookiebanner p { margin: 0; font-size: .95rem; }
.cookie-knoppen { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 700px) {
    .cookiebanner { grid-template-columns: 1fr auto; align-items: center; left: 16px; right: 16px; bottom: 16px; border: 1px solid var(--lijn); border-radius: 14px; max-width: 900px; margin: 0 auto; }
    .cookie-knoppen { grid-template-columns: auto auto; }
}

/* ---------- Voettekst ---------- */
.voet-binnen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.voet-binnen p { margin: 0; }
.voet-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.voet-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--tekst-zacht); }

/* ---------- Slider ---------- */
.slider { position: relative; background: #0d2a52; }
.slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 4 / 3; max-height: 70vh; }
.slide a { display: block; height: 100%; color: inherit; text-decoration: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-tekst { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px var(--gutter) 20px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); display: grid; gap: 4px; }
.slide-tekst strong { font-size: 1.3rem; line-height: 1.2; }
.slider-bediening { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.slider-knop { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--blauw-donker); font-size: 1.6rem; line-height: 1; cursor: pointer; }
@media (min-width: 800px) {
    .slide { aspect-ratio: 21 / 8; }
    .slide-tekst { padding: 60px max(var(--gutter), calc((100vw - 1100px) / 2)) 28px; }
    .slide-tekst strong { font-size: 2rem; }
}

/* ---------- Popup ---------- */
.popup { width: min(92vw, 520px); max-height: 85vh; overflow: auto; border: 0; border-radius: 16px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.popup::backdrop { background: rgba(0,0,0,.55); }
.popup h2 { margin-top: 0; }

/* ---------- Zoeken ---------- */
.zoekformulier { display: flex; gap: 8px; margin-bottom: 20px; }
.zoekformulier input { flex: 1; min-width: 0; }
.zoekresultaten { list-style: none; margin: 0 0 20px; padding: 0; }
.zoekresultaten li { padding: 10px 0; border-bottom: 1px solid var(--lijn); }

/* ---------- Foto's en media ---------- */
.foto-rooster { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.foto-rooster img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.media-rooster { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.media-kaart { background: #fff; border: 1px solid var(--lijn); border-radius: var(--straal); overflow: hidden; display: flex; flex-direction: column; }
.media-thumb { aspect-ratio: 1; background: var(--vlak); display: grid; place-items: center; font-weight: 700; color: var(--tekst-zacht); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-info { padding: 8px 10px; font-size: .8rem; word-break: break-all; }
.media-acties { padding: 0 10px 10px; display: grid; gap: 6px; margin-top: auto; }
.media-kies { position: relative; cursor: pointer; }
.media-kies input { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; z-index: 1; }

/* ---------- Beheer: trainingen en statistiek ---------- */
.afmeld-lijst { display: grid; gap: 8px; }
.afmeld-rij { display: grid; gap: 6px; padding: 10px 12px; background: #fff; border: 1px solid var(--lijn); border-radius: var(--straal); }
.balk { height: 10px; background: var(--vlak); border-radius: 99px; overflow: hidden; border: 1px solid var(--lijn); min-width: 80px; }
.balk > span { display: block; height: 100%; background: var(--goed); }
.balk.laag > span { background: #e0a100; }
.balk.zeer-laag > span { background: var(--fout); }
.trainingsrij { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--lijn); border-radius: var(--straal); margin-bottom: 10px; }
.trainingsrij.vervallen { opacity: .6; text-decoration: line-through; }
.dagkeuze { display: flex; flex-wrap: wrap; gap: 8px; }
.dagkeuze label { margin: 0; display: inline-flex; align-items: center; gap: 6px; min-height: var(--raak); padding: 0 12px; border: 2px solid var(--lijn); border-radius: 99px; font-weight: 600; cursor: pointer; }
.dagkeuze label:has(input:checked) { border-color: var(--blauw); background: var(--blauw-licht); }
.dagkeuze input { width: 18px; height: 18px; }
.inlog-als-balk { position: sticky; top: 0; z-index: 80; background: #f4b400; color: #1c2430; padding: 8px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.inlog-als-balk form { margin: 0; }

@media (min-width: 600px) {
    .foto-rooster { grid-template-columns: repeat(3, 1fr); }
    .media-rooster { grid-template-columns: repeat(3, 1fr); }
    .afmeld-rij { grid-template-columns: 1fr 180px 1fr; align-items: center; }
}
@media (min-width: 900px) {
    .foto-rooster { grid-template-columns: repeat(4, 1fr); }
    .media-rooster { grid-template-columns: repeat(5, 1fr); }
}
/* Het openbare menu mag op middelgrote schermen over twee regels lopen in plaats van uit beeld te vallen */
@media (min-width: 800px) {
    .hoofdmenu ul { flex-wrap: wrap; justify-content: flex-end; }
    .hoofdmenu a:not(.knop) { padding: 0 9px; font-size: .95rem; }
}

.kaart-link { display: block; text-decoration: none; color: inherit; }
.kaart-link:hover { border-color: var(--blauw); }

/* Dashboardkaartjes: twee naast elkaar op een telefoon */
@media (max-width: 599px) {
    .kaarten { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kaarten .kaart { padding: 14px; margin-bottom: 0; }
    .kaart-getal { font-size: 1.7rem; }
    .kaart-label { font-size: .82rem; }
}

.badge { white-space: nowrap; }
