/* vv DEES: openbare frontend. Mobile-first.
   Blauw gemeten uit het clublogo (#0755A5). Signature: het ruitmotief uit het logo (blauw-witte banen in een ruit).
   De .wd-componenten (wedstrijdregels) zijn ook in het beheer bruikbaar; al het andere is gescoopt onder .publiek. */

.publiek {
    --blauw: #0755a5;
    --blauw-donker: #071a32;
    --blauw-licht: #e6f0fa;
    --vlak: #f4f7fb;
    --tekst: #1e2b3c;
    --tekst-zacht: #566579;
    --lijn: #dbe4ee;
    --inkt: #071a32;
    --live: #d93025;
    --straal: 12px;
    --ruit-banen: repeating-linear-gradient(90deg, var(--blauw) 0 12.5%, #fff 12.5% 25%);
    font-size: 17px;
    color: var(--tekst);
}

/* ---------- Basis ---------- */
.publiek h1, .publiek h2, .publiek h3 { letter-spacing: -.025em; color: var(--inkt); }
.publiek h1 { font-weight: 800; }
.publiek h2 { font-weight: 800; font-size: 1.4rem; }
.publiek a { color: var(--blauw); }
.publiek .knop { background: var(--blauw); color: #fff; border-radius: 10px; font-weight: 700; }
.publiek .knop:hover { background: var(--inkt); }
.publiek .knop-rand { background: transparent; color: var(--blauw); border: 2px solid var(--blauw); }
.publiek .knop-rand:hover { background: var(--blauw-licht); color: var(--inkt); }
.publiek .knop-licht { background: #fff; color: var(--inkt); }
.publiek .knop-licht:hover { background: var(--blauw-licht); color: var(--inkt); }
.publiek .knop-spook { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.publiek .knop-spook:hover { background: #fff; color: var(--inkt); border-color: #fff; }
.publiek :focus-visible { outline: 3px solid #f4b400; outline-offset: 2px; }

/* Streepjesbalk onder paginatitels: de banen uit het logo, klein */
.publiek .blok h1::after {
    content: ""; display: block; width: 72px; height: 6px; margin-top: 12px; border-radius: 1px;
    background: repeating-linear-gradient(90deg, var(--blauw) 0 9px, transparent 9px 14px);
}
.publiek .blok { padding: 36px 0; }
.publiek .blok-vlak { background: var(--vlak); }

/* ---------- Live-balk ---------- */
.live-balk { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 9px var(--gutter); background: var(--inkt); color: #fff !important; text-decoration: none; font-size: .95rem; }
.live-balk strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.live-balk-actie { text-decoration: underline; text-underline-offset: 3px; }
.wd-live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; background: var(--live); color: #fff; font-size: .75rem; font-weight: 800; }
.wd-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: no-preference) { .wd-live::before { animation: knipper 1.6s ease-in-out infinite; } }
@keyframes knipper { 50% { opacity: .25; } }

/* ---------- Kop en menu ---------- */
.publiek .kop { background: #fff; border-bottom: 1px solid var(--lijn); }
.publiek .kop-binnen { min-height: 68px; }
.publiek .merk { gap: 12px; color: var(--inkt); }
.publiek .merk img { height: 46px; width: auto; }
.merk-naam { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.publiek .hoofdmenu { box-shadow: 0 14px 28px rgba(7,26,50,.12); max-height: calc(100vh - 68px); overflow-y: auto; }
.publiek .hoofdmenu a:not(.knop) { color: var(--inkt); font-weight: 600; min-height: 50px; border-bottom: 1px solid var(--vlak); }
.publiek .hoofdmenu a:not(.knop):hover { color: var(--blauw); }
.menu-acties { display: flex; align-items: center; gap: 12px; padding-top: 12px; flex-wrap: wrap; }
.menu-acties .zoek-link { display: inline-flex; align-items: center; gap: 8px; border: 0 !important; }
.menu-acties .inlog-link { margin-left: auto; }
.publiek .submenu a { font-weight: 500 !important; }

@media (min-width: 900px) {
    .publiek .kop-binnen { min-height: 80px; }
    .publiek .merk img { height: 54px; }
    .publiek .hoofdmenu { box-shadow: none; max-height: none; overflow: visible; }
    .publiek .hoofdmenu ul { gap: 2px; }
    .publiek .hoofdmenu a:not(.knop) { padding: 0 11px; border-radius: 8px; border: 0; min-height: 44px; }
    .publiek .hoofdmenu a:not(.knop):hover { background: var(--blauw-licht); }
    .menu-acties { padding: 0 0 0 10px; margin-left: 6px; border-left: 1px solid var(--lijn); }
    .menu-acties .inlog-link { margin-left: 0; }
    .menu-acties .zoek-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .menu-acties .zoek-link { padding: 0 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--inkt); color: #fff; padding: 40px 0 64px; }
.hero-rooster { position: relative; z-index: 1; display: grid; gap: 28px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 9vw, 4.4rem); line-height: 1; margin: 0 0 16px; letter-spacing: -.04em; }
.publiek .hero h1::after { display: none; }
.hero-tekst p { color: #c9d8ea; font-size: 1.1rem; max-width: 34em; margin: 0 0 24px; }
.hero-acties { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-kaart { background: #fff; color: var(--tekst); border-radius: 16px; padding: 20px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.publiek .hero-kaart-kop { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1rem; color: var(--tekst-zacht) !important; font-weight: 700; }
.hero-wedstrijd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.hero-team { font-weight: 800; font-size: 1.1rem; line-height: 1.2; color: var(--inkt); overflow-wrap: anywhere; }
.hero-midden { min-width: 78px; }
.hero-tijd, .hero-score { display: block; padding: 8px 12px; border-radius: 10px; background: var(--blauw-licht); color: var(--blauw); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-score { background: var(--inkt); color: #fff; }
.hero-details { text-align: center; color: var(--tekst-zacht); margin: 12px 0 16px; }
.hero-leeg { margin: 0 0 16px; color: var(--tekst-zacht); }
.hero-ruit { position: absolute; right: -150px; bottom: -190px; width: 340px; aspect-ratio: 1; background: var(--ruit-banen); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
@media (min-width: 900px) {
    .hero { padding: 72px 0 96px; }
    .hero-rooster { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; }
    .hero-ruit { right: -170px; bottom: -330px; width: 560px; }
    .hero-kaart { padding: 26px; }
}

/* ---------- Taaktegels ---------- */
.tegels { position: relative; z-index: 2; margin-top: -32px; }
.tegel-rooster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tegel { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--lijn); border-radius: 14px; box-shadow: 0 8px 22px rgba(7,26,50,.1); text-decoration: none; color: var(--blauw) !important; }
.tegel:hover { border-color: var(--blauw); transform: translateY(-2px); }
.tegel strong { display: block; color: var(--inkt); font-size: 1rem; }
.tegel small { display: block; color: var(--tekst-zacht); font-size: .85rem; line-height: 1.35; margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) { .tegel { transition: transform .15s, border-color .15s; } }
@media (min-width: 800px) {
    .tegel-rooster { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .tegel { flex-direction: row; align-items: center; padding: 20px; }
}

/* ---------- Sectiekoppen ---------- */
.sectie-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sectie-kop h2 { margin: 0; }
.sectie-kop a { font-weight: 700; white-space: nowrap; }

/* ---------- Wedstrijdregels ---------- */
.wd-lijst { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.wd { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--lijn); border-radius: 12px; }
.wd-blok { display: grid; place-items: center; align-content: center; height: 52px; border-radius: 10px; background: var(--blauw-licht); color: var(--blauw); line-height: 1; text-align: center; }
.wd-uit .wd-blok { background: #eef0f3; color: #4a5568; }
.wd-dag { font-size: 1.3rem; font-weight: 800; }
.wd-maand { font-size: .72rem; font-weight: 700; margin-top: 3px; }
.wd-titel { font-weight: 700; color: var(--inkt); line-height: 1.25; overflow-wrap: anywhere; }
.wd-info { color: var(--tekst-zacht); font-size: .85rem; margin-top: 2px; }
.wd-uitslag { display: grid; justify-items: end; gap: 4px; text-align: right; }
.wd-tijd { font-size: 1.05rem; font-weight: 800; color: var(--inkt); font-variant-numeric: tabular-nums; }
.wd-score { padding: 3px 10px; border-radius: 8px; background: var(--inkt); color: #fff; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wd-afgelast { opacity: .75; }
.wd-afgelast .wd-titel { text-decoration: line-through; }
.wd-kolommen { display: grid; gap: 8px 40px; }
@media (min-width: 900px) { .wd-kolommen { grid-template-columns: 1fr 1fr; } }

/* ---------- Nieuws ---------- */
.publiek .nieuws-kaart { border-radius: 14px; border-color: var(--lijn); }
.publiek .nieuws-tekst h2, .publiek .nieuws-tekst h3 { color: var(--inkt); font-size: 1.15rem; }
.nieuws-home { gap: 22px; }
.nieuws-home .nieuws-kaart { display: flex; flex-direction: column; height: 100%; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.nieuws-home .nieuws-kaart:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(7, 85, 165, .14); }
.nieuws-home .nieuws-kaart img, .nieuws-home .nieuws-beeldloos { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; flex: none; }
.nieuws-home .nieuws-beeldloos { background: var(--blauw) linear-gradient(135deg, rgba(255,255,255,.12) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.12) 75%, transparent 75%) 0 0 / 36px 36px; }
.nieuws-home .nieuws-tekst { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.nieuws-home .nieuws-datum { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blauw); }
.nieuws-home .nieuws-tekst h3 { margin: 6px 0 8px; font-size: 1.15rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nieuws-home .nieuws-tekst p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nieuws-home .nieuws-meer { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--blauw); }
.nieuws-home .nieuws-kaart:hover .nieuws-meer { text-decoration: underline; }
@media (min-width: 900px) { .nieuws-home { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Teams ---------- */
.team-groep { font-size: 1rem; margin: 18px 0 8px; color: var(--tekst-zacht) !important; font-weight: 700; }
.team-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.team-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--lijn); border-radius: 99px; background: #fff; font-weight: 700; text-decoration: none; color: var(--inkt); }
.team-chips a:hover { border-color: var(--blauw); color: var(--blauw); }
.publiek .team-kaart { border-radius: 14px; }

/* ---------- Sponsors ---------- */
.publiek .sponsor-rij li { border-radius: 12px; }

/* ---------- Aanmeldband ---------- */
.aanmeldband { background: var(--blauw); color: #fff; padding: 40px 0; position: relative; overflow: hidden; }
.aanmeld-binnen { position: relative; z-index: 1; display: grid; gap: 22px; }
.aanmeldband h2 { color: #fff; margin: 0 0 8px; font-size: 1.6rem; }
.aanmeldband p { margin: 0; color: #dbe9f8; max-width: 38em; }
.aanmeld-acties { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 800px) {
    .aanmeld-binnen { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
}

/* ---------- Voettekst ---------- */
.publiek .voet { background: var(--inkt); color: #b9c8db; border-top: 0; padding: 44px 0 0; }
.voet-rooster { display: grid; gap: 28px; }
.voet-logo { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 14px; font-size: 1.15rem; }
.voet-logo img { background: #fff; border-radius: 6px; padding: 3px; height: 52px; width: auto; }
.voet address { font-style: normal; line-height: 1.7; }
.publiek .voet a { color: #d8e6f6; text-decoration-color: rgba(216,230,246,.4); text-underline-offset: 3px; }
.publiek .voet a:hover { color: #fff; }
.publiek .voet-kop { color: #fff !important; font-size: 1rem; margin: 0 0 8px; }
.publiek .voet-links { display: grid; gap: 0; }
.publiek .voet-links a { min-height: 40px; color: #d8e6f6; }
.voet-onder { margin-top: 32px; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: #8ea3bd; }
.voet-onder p { margin: 0; }
@media (min-width: 800px) {
    .voet-rooster { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}

/* ---------- Cookiebalk in de huisstijl ---------- */
.publiek .cookiebanner { border-top-color: var(--blauw); }

/* ---------- Jeugd (widgets in een afgeschermd kader) ---------- */
.tabs { margin: 0 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--lijn); border-radius: 99px; background: #fff; font-weight: 700; text-decoration: none; color: var(--inkt); white-space: nowrap; }
.tabs a:hover { border-color: var(--blauw); color: var(--blauw); }
.tabs a[aria-current="page"] { background: var(--blauw); border-color: var(--blauw); color: #fff; }

/* ---------- Menu: compacter zodat tien items op één regel passen ---------- */
.merk, .merk-naam { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 900px) and (max-width: 1239px) {
    .publiek .hoofdmenu a:not(.knop) { padding: 0 7px; font-size: .9rem; }
    .menu-acties { padding-left: 4px; margin-left: 2px; }
}
@media (min-width: 1240px) {
    .publiek .hoofdmenu a:not(.knop) { padding: 0 9px; font-size: .95rem; }
}

/* Tussen 800 en 1100 px is er te weinig ruimte voor tien menu-items: daar blijft het hamburgermenu actief. */
@media (min-width: 800px) and (max-width: 1099px) {
    .publiek .kop-binnen { min-height: 68px; }
    .publiek .merk img { height: 46px; }
    .publiek .menu-knop { display: grid; }
    .publiek .hoofdmenu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--lijn); box-shadow: 0 14px 28px rgba(7,26,50,.12); max-height: calc(100vh - 68px); overflow-y: auto; }
    .publiek .hoofdmenu.open { display: block; }
    .publiek .hoofdmenu ul { display: block; padding: 8px var(--gutter) 16px; }
    .publiek .hoofdmenu a:not(.knop) { display: flex; align-items: center; min-height: 50px; padding: 0; border-bottom: 1px solid var(--vlak); border-radius: 0; font-size: 1rem; }
    .publiek .hoofdmenu a:not(.knop):hover { background: transparent; }
    .publiek .hoofdmenu li:last-child { padding: 12px 0 0; }
    .publiek .heeft-sub { position: static; }
    .publiek .submenu { display: block; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0 16px; background: transparent; }
    .publiek .menu-acties { padding: 12px 0 0; margin-left: 0; border-left: 0; }
    .publiek .menu-acties .zoek-link { padding: 0; }
    .publiek .menu-acties .zoek-link span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .publiek .menu-acties .inlog-link { margin-left: auto; }
}
@media (min-width: 1100px) and (max-width: 1239px) {
    .publiek .merk-naam { font-size: 1.15rem; }
}

/* ---------- Jeugd (eigen weergave van de API-gegevens) ---------- */
.jeugd-teams { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.jeugd-team { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--lijn); border-radius: 14px; text-decoration: none; color: var(--inkt) !important; min-height: 76px; }
.jeugd-team:hover { border-color: var(--blauw); }
.jeugd-team img, .jeugd-team-leeg { width: 56px; height: 56px; object-fit: contain; flex: none; border-radius: 10px; background: var(--vlak); }
.jeugd-team strong { display: block; font-size: 1.1rem; }
.jeugd-team small { display: block; color: var(--tekst-zacht); font-size: .85rem; }
@media (min-width: 600px) { .jeugd-teams { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .jeugd-teams { grid-template-columns: repeat(3, 1fr); } }

.jeugd-dagkop { font-size: 1rem; color: var(--tekst-zacht) !important; font-weight: 700; margin: 18px 0 8px; text-transform: capitalize; }
.jeugd-bijgewerkt { margin-top: 20px; }
.jeugd-wd .wd-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.jeugd-teamlabel { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--blauw-licht); color: var(--blauw); font-size: .8rem; font-weight: 800; }
.jeugd-club { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.jeugd-club.jeugd-eigen { font-weight: 800; }
.jeugd-logo { width: 22px; height: 22px; object-fit: contain; flex: none; }
.jeugd-streep { color: var(--tekst-zacht); }
.wd-score.wd-winst { background: #14693a; }
.wd-score.wd-verlies { background: #b3261e; }
.wd-score.wd-gelijk { background: #566579; }
.wd-uitkomst { font-size: .75rem; font-weight: 700; color: var(--tekst-zacht); }

.jeugd-teamkop { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.jeugd-teamkop h1 { margin: 0; }
.jeugd-teamkop h1::after { display: none; }
.jeugd-teamlogo { width: 72px; height: 72px; object-fit: contain; flex: none; }
.jeugd-teamfoto { margin-top: 12px; }

.jeugd-slots { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.jeugd-slots li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--lijn); border-radius: 12px; }
.jeugd-slots li.slot-wedstrijd { border-left: 4px solid var(--blauw); background: var(--blauw-licht); }
.slot-type { display: inline-block; min-width: 82px; font-size: .78rem; font-weight: 800; color: var(--blauw); }
.jeugd-slots .meta { display: inline-flex; align-items: center; gap: 6px; }
.loc-stip { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.loc-0 { background: #0755a5; } .loc-1 { background: #2e7d32; } .loc-2 { background: #e0a100; } .loc-3 { background: #8e24aa; }
.jeugd-legenda { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.jeugd-legenda li { display: inline-flex; align-items: center; gap: 6px; }
.jeugd-trainingen { display: grid; gap: 12px; grid-template-columns: 1fr; }
.jeugd-trainingkaart { margin: 0; }
.jeugd-trainingkaart h2 { margin: 0 0 10px; font-size: 1.15rem; }
.jeugd-trainingkaart h2 a { text-decoration: none; color: var(--inkt); }
@media (min-width: 700px) { .jeugd-trainingen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .jeugd-trainingen { grid-template-columns: repeat(3, 1fr); } }

.jeugd-verjaardagen li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }

/* ---------- Jeugd: paginakop, kaarten, verjaardagen ---------- */
.jeugd-kop { position: relative; overflow: hidden; background: var(--inkt); color: #fff; padding: 30px 0 34px; }
.jeugd-kop .container { position: relative; z-index: 1; }
.publiek .jeugd-kop h1 { color: #fff; margin: 0 0 8px; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; }
.publiek .jeugd-kop h1::after { display: none; }
.jeugd-kop p { margin: 0; color: #c9d8ea; max-width: 38em; }
.jeugd-kop .jeugd-terug { display: inline-block; margin-bottom: 12px; color: #c9d8ea !important; font-weight: 700; font-size: .9rem; text-decoration: none; }
.jeugd-kop .jeugd-terug:hover { color: #fff !important; }
.jeugd-kop-ruit { position: absolute; right: -120px; bottom: -150px; width: 300px; aspect-ratio: 1; background: var(--ruit-banen); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: .9; }
.jeugd-cijfers { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jeugd-cijfers li { padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.12); font-size: .9rem; color: #e6f0fa; }
.jeugd-cijfers strong { color: #fff; font-size: 1.05rem; margin-right: 4px; }
.jeugd-kop-team { display: flex; align-items: center; gap: 16px; }
.jeugd-kop-team .jeugd-teamlogo { background: #fff; border-radius: 14px; padding: 6px; width: 76px; height: 76px; }
.jeugd-inhoud { padding-top: 22px; }
@media (min-width: 900px) { .jeugd-kop { padding: 52px 0 56px; } .jeugd-kop-ruit { right: -100px; bottom: -230px; width: 480px; } }

.jeugd-team { position: relative; flex-wrap: wrap; box-shadow: 0 2px 8px rgba(7,26,50,.05); }
.jeugd-team > span:not(.jeugd-team-volgende):not(.jeugd-team-leeg) { flex: 1; min-width: 0; }
.jeugd-team:hover { box-shadow: 0 8px 20px rgba(7,26,50,.12); }
.jeugd-team-volgende { flex-basis: 100%; margin: 4px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--blauw-licht); color: var(--blauw-donker); font-size: .85rem; line-height: 1.3; }
.jeugd-team-volgende b { color: var(--blauw); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; display: block; }
@media (prefers-reduced-motion: no-preference) { .jeugd-team { transition: transform .15s, box-shadow .15s, border-color .15s; } .jeugd-team:hover { transform: translateY(-2px); } }

.jeugd-inhoud h2 { margin: 26px 0 12px; }
.jeugd-inhoud .filter select { min-height: 46px; max-width: 100%; border-radius: 12px; }

/* Jarigen */
.jarigen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
.jarige { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--lijn); border-radius: 12px; }
.jarige-blok { display: grid; place-items: center; align-content: center; height: 52px; border-radius: 10px; background: var(--blauw-licht); color: var(--blauw); line-height: 1; text-align: center; }
.jarige-vandaag { border-color: var(--blauw); box-shadow: inset 4px 0 0 var(--blauw); }
.jarige-vandaag .jarige-blok { background: var(--blauw); color: #fff; }
.jarige strong { display: block; color: var(--inkt); line-height: 1.25; }
.jarige small { display: block; color: var(--tekst-zacht); font-size: .85rem; margin-top: 2px; }
.jarige-wanneer { font-size: .85rem; font-weight: 700; color: var(--tekst-zacht); white-space: nowrap; }
.jarige-vandaag .jarige-wanneer { color: var(--blauw); }
@media (min-width: 700px) { .jarigen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .jarigen { grid-template-columns: repeat(3, 1fr); } }

.blok-jeugd { background: var(--vlak); }
.jeugd-home-teams { margin-top: 18px; }

.jeugd-team-leeg { display: grid; place-items: center; background: var(--blauw) !important; color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.02em; }
.jeugd-team-volgende { display: block; width: 100%; }

.jeugd-cijfers li { border-radius: 14px; overflow-wrap: anywhere; max-width: 100%; }
@media (max-width: 699px) {
    .jeugd-wd .wd-titel { flex-direction: column; align-items: flex-start; gap: 3px; }
    .jeugd-wd .jeugd-streep { display: none; }
}
@media (max-width: 699px) { .jeugd-kop-ruit { width: 150px; right: -60px; bottom: -80px; opacity: .55; } }

/* ---------- Paginanummers ---------- */
.paginering-nummers { justify-content: center; gap: 8px 14px; margin-top: 32px; }
.paginering-nummers ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.paginering-nummers li a, .paginering-nummers .pag-nu, .paginering-nummers .pag-gat { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.paginering-nummers li a { background: #fff; border: 1px solid var(--lijn); color: var(--inkt); }
.paginering-nummers li a:hover { border-color: var(--blauw); color: var(--blauw); }
.paginering-nummers .pag-nu { background: var(--blauw); color: #fff; border: 1px solid var(--blauw); }
.paginering-nummers .pag-gat { color: var(--tekst-zacht); min-width: 24px; padding: 0; }
.paginering-nummers .pag-pijl { font-weight: 700; color: var(--blauw); text-decoration: none; padding: 0 6px; }
.paginering-nummers .pag-pijl:hover { text-decoration: underline; }
@media (max-width: 640px) { .paginering-nummers .pag-pijl { flex: 1 1 40%; text-align: center; } .paginering-nummers ul { order: -1; flex-basis: 100%; } }

/* ---------- Logo's met link rechts op de homepage ---------- */
.hero-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-logos li { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; min-height: 68px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.hero-logos a { display: grid; place-items: center; width: 100%; height: 100%; }
.hero-logos img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.hero-logos a:hover img, .hero-logos a:focus-visible img { transform: scale(1.05); }
.hero-logos img { transition: transform .15s ease; }
.hero-rooster.hero-met-logos .hero-logos { grid-column: 1 / -1; }
@media (min-width: 1100px) {
    .hero-rooster.hero-met-logos { grid-template-columns: 1.1fr 1fr 168px; gap: 40px; }
    .hero-rooster.hero-met-logos .hero-logos { grid-column: auto; grid-template-columns: 1fr; align-self: center; }
}
.logoband { background: var(--blauw-licht); border-bottom: 1px solid var(--lijn); padding: 14px 0; }
.logoband .hero-logos { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.logoband .hero-logos li { box-shadow: none; border: 1px solid var(--lijn); }

/* ---------- Tabellen (beheer, pagina-inhoud en stand) ---------- */
.tabel, .tekst table, .stand-tabel table {
    width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
    border: 1px solid var(--lijn); border-radius: 12px; font-variant-numeric: tabular-nums;
}
/* hoeken afronden op de cellen (overflow: hidden werkt niet betrouwbaar op tabellen) */
.tabel thead tr:first-child th:first-child, .tekst table tr:first-child > :first-child, .stand-tabel table tr:first-child > :first-child { border-top-left-radius: 11px; }
.tabel thead tr:first-child th:last-child, .tekst table tr:first-child > :last-child, .stand-tabel table tr:first-child > :last-child { border-top-right-radius: 11px; }
.tabel tbody tr:last-child td:first-child, .tekst table tr:last-child > :first-child, .stand-tabel table tr:last-child > :first-child { border-bottom-left-radius: 11px; }
.tabel tbody tr:last-child td:last-child, .tekst table tr:last-child > :last-child, .stand-tabel table tr:last-child > :last-child { border-bottom-right-radius: 11px; }
.tabel th, .tabel td, .tekst th, .tekst td, .stand-tabel th, .stand-tabel td { padding: 12px 16px; border-bottom: 1px solid var(--lijn); text-align: left; vertical-align: middle; }
.tabel thead th, .tekst table thead th, .tekst table th, .stand-tabel th {
    background: #0b2a52; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: 0; white-space: nowrap;
}
.tabel tbody tr:nth-child(even) td, .tekst table tbody tr:nth-child(even) td, .stand-tabel tbody tr:nth-child(even) td { background: var(--vlak); }
.tabel tbody tr:hover td, .tekst table tbody tr:hover td, .stand-tabel tbody tr:hover td { background: var(--blauw-licht); }
.tabel tbody tr:last-child td, .tekst table tr:last-child td, .stand-tabel tbody tr:last-child td { border-bottom: 0; }
.tabel td:first-child, .tekst table td:first-child { font-weight: 600; color: var(--inkt, var(--tekst)); }
.tabel td a:not(.knop), .tekst table td a { color: var(--blauw); font-weight: 600; }
.tabel .knop-klein { white-space: nowrap; }
.tabel td[data-label=""] { text-align: right; }
.tabel .badge { white-space: nowrap; }

/* Pagina-inhoud: volle breedte, lange teksten en e-mailadressen breken af op smalle schermen */
.tekst table { display: table; width: 100%; max-width: 100%; margin: 18px 0; }
.tekst table td, .tekst table th { overflow-wrap: anywhere; }
@media (max-width: 599px) { .tekst table th, .tekst table td { padding: 10px 10px; font-size: .92rem; } }
.tekst table:not(:has(th)) tr:first-child td { background: #0b2a52; color: #fff; border-bottom: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tekst table:not(:has(th)) tr:first-child td strong { font-weight: 700; color: inherit; }
.tekst table:not(:has(th)) tr:first-child td:first-child { color: #fff; }
.tekst table:not(:has(th)) tbody tr:first-child:hover td { background: #0b2a52; }
.tekst table td a { overflow-wrap: anywhere; }


/* Mobiel: de beheertabellen worden kaartjes (zie style.css); hier alleen opmaak */
@media (max-width: 799px) {
    .tabel { border: 0; background: transparent; }
    .tabel tr { background: #fff; box-shadow: 0 2px 8px rgba(11, 42, 82, .06); }
    .tabel tbody tr:nth-child(even) td, .tabel tbody tr:hover td { background: transparent; }
    .tabel td, .tabel td[data-label=""] { text-align: right; padding: 8px 14px; border-bottom: 0; }
    .tabel td:first-child { font-size: 1.05rem; color: var(--blauw-donker); padding-top: 12px; }
    .tabel td::before { text-align: left; text-transform: none; }
}

/* ---------- Fotoalbum: grote weergave met bladeren ---------- */
.foto-rooster a { display: block; border-radius: 8px; overflow: hidden; }
.foto-rooster img { transition: transform .25s ease, opacity .2s ease; }
.foto-rooster a:hover img, .foto-rooster a:focus-visible img { transform: scale(1.05); }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 12px; background: rgba(5, 14, 28, .94); }
.lb[hidden] { display: none; }
.lb-figuur { margin: 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lb-beeld { max-width: 100%; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); object-fit: contain; border-radius: 6px; transition: opacity .2s ease; }
.lb-laden .lb-beeld { opacity: .35; }
.lb-teller { color: #dbe6f5; font-size: .95rem; text-align: center; }
.lb-knop { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.lb-knop:hover, .lb-knop:focus-visible { background: rgba(255, 255, 255, .3); outline: 2px solid #fff; outline-offset: 2px; }
.lb-sluit { position: absolute; top: 12px; right: 12px; font-size: 2.2rem; z-index: 2; }
.lb-enkel .lb-vorige, .lb-enkel .lb-volgende { visibility: hidden; }
@media (max-width: 640px) {
    .lb { grid-template-columns: 1fr; padding: 8px; }
    .lb-vorige, .lb-volgende { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(5, 14, 28, .55); width: 42px; height: 42px; }
    .lb-vorige { left: 6px; } .lb-volgende { right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .foto-rooster img, .lb-beeld { transition: none; } }

.foto-bijschrift { margin: 6px 2px 0; font-size: .88rem; line-height: 1.35; color: var(--tekst-zacht); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.foto-rooster { align-items: start; }
.lb-onder { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 70ch; text-align: center; }
.lb-omschrijving { color: #fff; font-size: 1.05rem; line-height: 1.4; }
.lb-teller { color: #aebfd6; font-size: .85rem; }
.foto-omschrijving { margin-top: 8px; display: grid; gap: 6px; }
.foto-omschrijving textarea { width: 100%; font-size: 13px; resize: vertical; }

/* ---------- Teams: indelen door te slepen ---------- */
.team-slepen { max-width: 980px; margin-bottom: 20px; }
.team-slepen[hidden] { display: none; }
.team-slepen-rooster { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .team-slepen-rooster { grid-template-columns: minmax(280px, 1fr) 1.3fr; align-items: start; } }
.team-slepen h3 { margin: 0 0 8px; font-size: 1rem; }
.ts-personen, .ts-zone { background: var(--vlak); border: 1px solid var(--lijn); border-radius: 12px; padding: 14px; }
.ts-zoek { width: 100%; margin-bottom: 8px; }
.ts-jeugd { display: block; margin-bottom: 8px; font-size: .9rem; }
.ts-lijst, .ts-leden { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ts-lijst { max-height: 520px; overflow-y: auto; }
.ts-persoon, .ts-lid { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--lijn); border-radius: 10px; padding: 8px 10px; cursor: grab; touch-action: manipulation; }
.ts-persoon:hover, .ts-lid:hover { border-color: var(--blauw); }
.ts-in-team { background: var(--blauw-licht); }
.ts-sleept { opacity: .45; }
.ts-naam small { color: var(--tekst-zacht); }
.ts-knoppen { display: flex; gap: 4px; flex: none; }
.ts-rolknop { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--lijn); background: #fff; font-weight: 800; font-size: .8rem; cursor: pointer; padding: 0; color: var(--blauw-donker); }
.ts-rolknop:hover, .ts-rolknop:focus-visible { background: var(--blauw); color: #fff; border-color: var(--blauw); }
.ts-rolknop.ts-aan { background: var(--blauw); color: #fff; border-color: var(--blauw); }
.ts-zones { display: grid; gap: 12px; }
.ts-zone { border-style: dashed; border-width: 2px; min-height: 90px; transition: background .15s, border-color .15s; }
.ts-zone.ts-doel { background: var(--blauw-licht); border-color: var(--blauw); }
.ts-aantal { display: inline-block; margin-left: 8px; min-width: 24px; padding: 0 8px; border-radius: 999px; background: var(--blauw); color: #fff; font-size: .8rem; text-align: center; }
.ts-wis { border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--tekst-zacht); padding: 0 4px; }
.ts-wis:hover, .ts-wis:focus-visible { color: var(--fout); }
.ts-leeg { color: var(--tekst-zacht); font-size: .9rem; padding: 6px 2px; }
.ts-status { min-height: 1.4em; color: var(--tekst-zacht); margin: 10px 0 0; }
.team-slepen.ts-bezig { opacity: .75; pointer-events: none; }

/* ---------- Teams indelen: naam naar team slepen, popup met rollen ---------- */
.indeling { margin: 8px 0 12px; }
.indeling[hidden] { display: none; }
.indeling-rooster { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 900px) { .indeling-rooster { grid-template-columns: minmax(300px, 380px) 1fr; align-items: start; } }
.indeling h3 { margin: 0 0 8px; font-size: 1rem; }
.in-personen { background: var(--vlak); border: 1px solid var(--lijn); border-radius: 12px; padding: 14px; }
@media (min-width: 900px) { .in-personen { position: sticky; top: 12px; } }
.in-zoek, .in-filter { width: 100%; margin-bottom: 8px; }
.in-alleen-vrij { display: block; margin-bottom: 8px; font-size: .9rem; }
.in-lijst, .in-leden { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.in-lijst { max-height: 60vh; overflow-y: auto; }
.in-persoon { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--lijn); border-radius: 10px; padding: 8px 10px; cursor: grab; }
.in-persoon:hover { border-color: var(--blauw); }
.in-sleept { opacity: .45; }
.in-tekst { display: grid; gap: 3px; min-width: 0; }
.in-naam small { color: var(--tekst-zacht); }
.in-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.in-badge { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--blauw-licht); color: var(--blauw-donker); font-weight: 700; white-space: nowrap; }
.in-indelen { flex: none; white-space: nowrap; }
.in-teams { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
.in-groep { grid-column: 1 / -1; margin: 6px 0 -4px !important; color: var(--tekst-zacht) !important; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem !important; }
.in-team { background: #fff; border: 2px dashed var(--lijn); border-radius: 14px; padding: 12px; min-height: 120px; transition: background .15s, border-color .15s, transform .15s; }
.in-team.in-doel { background: var(--blauw-licht); border-color: var(--blauw); transform: scale(1.015); }
.in-team-kop { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 1.05rem; }
.in-team-kop a { color: var(--blauw-donker); text-decoration: none; font-weight: 800; }
.in-aantal { min-width: 26px; padding: 0 8px; border-radius: 999px; background: var(--blauw); color: #fff; font-size: .8rem; text-align: center; }
.in-lid-knop { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: var(--vlak); border: 1px solid var(--lijn); border-radius: 8px; padding: 6px 9px; cursor: pointer; font: inherit; color: inherit; }
.in-lid-knop:hover, .in-lid-knop:focus-visible { border-color: var(--blauw); }
.in-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.in-chip { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #e3ecf8; color: var(--blauw-donker); }
.in-chip-coach { background: #fff1d6; color: #7a4b00; }
.in-chip-leider { background: #e1f3e6; color: #17602f; }
.in-leeg { color: var(--tekst-zacht); font-size: .9rem; padding: 10px 2px; }
.in-status { min-height: 1.4em; color: var(--tekst-zacht); margin: 10px 0 0; }
.indeling.in-bezig { opacity: .75; pointer-events: none; }

.in-dialoog { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 24px)); box-shadow: 0 24px 60px rgba(5, 14, 28, .45); }
.in-dialoog::backdrop { background: rgba(5, 14, 28, .55); }
.in-dialoog-form { padding: 22px; display: grid; gap: 14px; }
.in-d-kop { margin: 0; font-size: 1.3rem; color: var(--blauw-donker); }
.in-d-rollen { border: 1px solid var(--lijn); border-radius: 10px; padding: 10px 14px; display: grid; gap: 6px; }
.in-d-rollen legend { font-weight: 700; padding: 0 6px; }
.in-d-rollen .vink { font-size: 1.05rem; }
.in-d-fout { color: var(--fout); min-height: 1.2em; margin: 0; }
.in-d-acties { display: flex; flex-wrap: wrap; gap: 8px; }
.in-d-weg { margin-left: auto; }
