/* MamoTV-portaal, in de stijl van mamoforkids.nl */
@font-face { font-family: "Grandstander"; src: url(fonts/grandstander.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Andika"; src: url(fonts/andika-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url(fonts/andika-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --inkt: #2a1c12; --papier: #fdf6e7; --wit: #fffdf8; --geel: #ffd84a; --roze: #ff8fc7;
  --blauw: #2f55d4; --gras: #79c46f; --nacht: #1e2858; --rood: #d93a40; --lucht: #a9d8ec;
  --lijn: .16rem solid var(--inkt); --plak: .2rem .28rem 0 var(--inkt);
  --kop: "Grandstander", "Andika", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--papier); color: var(--inkt); }
body { margin: 0; font: 1.05rem/1.55 "Andika", system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 68rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1, h2 { font-family: var(--kop); line-height: 1.15; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: 1.35rem; }
a { color: var(--blauw); }
small, .klein { font-size: .9rem; }
.midden { text-align: center; }

.kop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; background: var(--lucht); border-bottom: var(--lijn); flex-wrap: wrap; }
.merk { display: flex; align-items: center; gap: .4rem; text-decoration: none; }
.merk img { height: 2.6rem; width: auto; }
.tv { font-family: var(--kop); font-weight: 800; background: var(--nacht); color: #fff; border-radius: 99rem; padding: .05rem .7rem; font-size: 1.1rem; }
.kop nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.kop nav a { color: var(--inkt); font-weight: 700; }
.kop form { margin: 0; }
.wie { font-size: .9rem; }

.knop { display: inline-block; font: 700 1.05rem var(--kop); color: var(--inkt); background: var(--geel); border: var(--lijn); border-radius: .8rem; box-shadow: var(--plak); padding: .55rem 1.2rem; text-decoration: none; cursor: pointer; }
.knop:hover { transform: translate(-1px, -1px); }
.knop:active { transform: translate(.15rem, .2rem); box-shadow: none; }
.knop.wit { background: var(--wit); }
.knop.klein { font-size: .9rem; padding: .3rem .8rem; }
button.link { background: none; border: 0; font: inherit; font-weight: 700; color: var(--inkt); text-decoration: underline; cursor: pointer; padding: 0; }

.blad { background: var(--wit); border: var(--lijn); border-radius: 1.2rem; box-shadow: var(--plak); padding: clamp(1.2rem, 4vw, 2.2rem); position: relative; }
.blad.smal { max-width: 30rem; margin: 1.5rem auto; }
.figuur { position: absolute; width: 5.5rem; right: -1rem; top: -2.2rem; }

.held { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; margin: 1rem 0 2.5rem; }
.held img { width: 100%; height: auto; }
.groot { font-size: 1.2rem; }
.prijzen, .raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.4rem; }
.raster { margin-top: 1.2rem; }
.kaart { background: var(--wit); border: var(--lijn); border-radius: 1rem; box-shadow: var(--plak); padding: 1.3rem; }
.kaart.uitgelicht { background: #fff3c4; }
.prijs { font: 800 2rem var(--kop); margin: .2rem 0; }
.prijs small { font-size: 1rem; font-weight: 600; }

form label { display: block; margin: 0 0 1rem; font-weight: 700; }
input[type=email], input[type=password], input:not([type]), input[type=text] { display: block; width: 100%; margin-top: .3rem; font: inherit; font-weight: 400; padding: .6rem .7rem; border: var(--lijn); border-radius: .6rem; background: #fff; }
input:focus-visible, .knop:focus-visible, a:focus-visible { outline: .2rem solid var(--blauw); outline-offset: .15rem; }
.keuze { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.keuze legend { font-weight: 700; margin-bottom: .4rem; }
.optie { display: flex; gap: .4rem; align-items: flex-start; border: var(--lijn); border-radius: .7rem; padding: .6rem; font-weight: 400; font-size: .9rem; cursor: pointer; margin: 0; }
.optie:has(input:checked) { background: var(--geel); box-shadow: var(--plak); }
.vink { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }

.melding { border: var(--lijn); border-radius: .8rem; padding: .7rem 1rem; background: #dff3d9; }
.melding.fout { background: #fde0e0; }
.melding.let-op { background: #fff3c4; }
.label { display: inline-block; border: .1rem solid var(--inkt); border-radius: 99rem; padding: 0 .6rem; font-size: .85rem; font-weight: 700; background: #fff3c4; }
.label.actief { background: #c9ecc1; }
.label.verlopen, .label.opgezegd { background: #fde0e0; }

.tabel-schuif { overflow-x: auto; margin-bottom: 2rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: .1rem solid #e6dcc6; vertical-align: top; }
th { font-family: var(--kop); }

.voet { background: var(--nacht); color: #fff; padding: 1rem; text-align: center; font-size: .9rem; }
.voet a { color: var(--geel); }

@media (max-width: 640px) {
  .held { grid-template-columns: 1fr; }
  .keuze { grid-template-columns: 1fr; }
  .figuur { width: 4rem; right: -.4rem; top: -1.8rem; }
}

/* Mamo School en Mamo Thuis */
h3 { font-family: var(--kop); font-size: 1.2rem; margin: 0 0 .4rem; }
.merken { display: grid; grid-template-columns: 2fr 1fr; gap: 1.6rem; align-items: start; }
.merknaam { font-size: 1.5rem; }
.merknaam small { display: block; font: 400 .95rem "Andika", system-ui, sans-serif; }
.prijzen.twee { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.kaart.thuis { background: #fde3f0; }
.kaart .klein { margin-top: 0; }
@media (max-width: 900px) { .merken { grid-template-columns: 1fr; } }

/* Groepen, kinderen en juffen */
select { font: inherit; padding: .55rem .6rem; border: var(--lijn); border-radius: .6rem; background: #fff; margin-top: .3rem; display: block; }
.tussenkop { margin-top: 1.8rem; }
.ruimte-boven { margin-top: 1.8rem; }
.kruimel { font-size: .95rem; margin: 0 0 .8rem; }
.kop-rij { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.kop-rij h1 { margin: 0; }
.groep-kaart, .kaart-link { display: block; color: var(--inkt); text-decoration: none; }
.groep-kaart:hover, .kaart-link:hover { background: #fff3c4; }
.twee-kolommen { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; margin-top: 1rem; }
.rij-formulier { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; margin-bottom: 1rem; }
.rij-formulier label { margin: 0; flex: 1 1 10rem; }
.rij-formulier .knop { margin-bottom: .1rem; }
.kinderlijst, .juffenlijst { list-style: none; padding: 0; margin: 0 0 1rem; }
.kinderlijst li, .juffenlijst li { border-bottom: .1rem solid #e6dcc6; padding: .45rem 0; }
.juffenlijst li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.juffenlijst form { margin: 0; }
.kind-rij { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 0; }
.kind-rij input { flex: 1 1 6rem; min-width: 0; width: auto; margin: 0; padding: .35rem .5rem; }
.kind-rij select { margin: 0; padding: .3rem .4rem; }
.uitgenodigd { color: #6b5a48; }
button.link.rood { color: var(--rood); }
@media (max-width: 760px) { .twee-kolommen { grid-template-columns: 1fr; } }
textarea { display: block; width: 100%; margin-top: .3rem; font: .95rem/1.4 ui-monospace, Consolas, monospace; padding: .6rem; border: var(--lijn); border-radius: .6rem; background: #fff; }
input[type=file] { display: block; margin-top: .4rem; font: inherit; font-weight: 400; }
.knoppenrij { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.nummer { color: #6b5a48; }
.tabbladen { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.tabbladen a { border: var(--lijn); border-radius: 99rem; padding: .2rem .9rem; color: var(--inkt); text-decoration: none; font-weight: 700; background: var(--wit); }
.tabbladen a:hover { background: var(--geel); }
.cijfers { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.cijfer { border: var(--lijn); border-radius: .8rem; padding: .7rem .9rem; background: #fff; }
.cijfer strong { display: block; font: 800 1.8rem var(--kop); }
.cijfer span { font-size: .9rem; }
tr.totaal td { font-weight: 700; border-top: var(--lijn); }
.blad h2[id] { scroll-margin-top: 1rem; margin-top: 1.6rem; }

/* Thema's */
.themaraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.themakaart { position: relative; display: flex; flex-direction: column; gap: .25rem; background: var(--themakleur, #fff); border: var(--lijn); border-radius: 1rem; box-shadow: var(--plak); padding: 1rem 1.1rem 1.1rem; color: var(--inkt); text-decoration: none; min-height: 9.5rem; }
.themakaart:hover { transform: translate(-1px, -2px); }
.themakaart strong { font: 800 1.25rem var(--kop); }
.themakaart .periode { color: #6b5a48; margin-top: auto; }
.themakaart.dicht { opacity: .8; }
.themanr { font: 800 1.6rem var(--kop); color: #e8820c; }
.slot { position: absolute; right: .8rem; top: .7rem; font-size: 1.3rem; }
.themablad { border-top: 1rem solid var(--themakleur); }
.groot-nr { margin: 0; font-size: 1.1rem; }
.themablad h2 { margin-top: 2rem; padding-top: 1rem; border-top: .12rem dashed #e6dcc6; }
.films { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.2rem; }
.film { margin: 0; }
.film video, .video { width: 100%; aspect-ratio: 16 / 9; border: var(--lijn); border-radius: .8rem; background: #000; overflow: hidden; display: block; }
.video iframe { width: 100%; height: 100%; border: 0; }
.film figcaption { margin-top: .4rem; font-weight: 700; }
audio { width: min(100%, 26rem); margin-top: .3rem; }
.liedtekst summary { cursor: pointer; font-weight: 700; }
.downloads { padding-left: 1.2rem; }
.downloads li { margin: .35rem 0; }
.volgt { color: #8a7660; font-style: italic; }
td.leeg { color: #b9a68f; }
td.ok { font-weight: 700; }

/* Uitleg "Zo werkt MamoTV" op de voorpagina */
.uitleg { margin: 1.5rem 0; }
.uitleg h3 { margin-top: 1.4rem; }
.uitleg ul, .uitleg ol { padding-left: 1.3rem; }
.uitleg li { margin: .45rem 0; line-height: 1.5; }

/* Knutselmuur en ideeënbox */
.teller { display: inline-block; min-width: 1.4rem; padding: 0 .35rem; border-radius: 99rem; background: var(--rood); color: #fff; font-size: .8rem; text-align: center; }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.themafilter a { background: var(--themakleur, var(--wit)); font-size: .9rem; }
.themafilter a[aria-current] { background: var(--geel); box-shadow: var(--plak); }
.plaatsen { margin: 0 0 1.8rem; }
.plaatsen > summary { list-style: none; }
.plaatsen > summary::-webkit-details-marker { display: none; }
.plaatsen form { margin-top: 1.2rem; max-width: 40rem; }
.regels { background: #fff3c4; border: var(--lijn); border-radius: .8rem; padding: .2rem 1rem; margin-bottom: 1rem; }
.regels ul { padding-left: 1.2rem; }
textarea.gewoon, .muur textarea { font: inherit; font-weight: 400; }
.zwartmaken { margin: 0 0 1rem; }
.zwartmaken canvas { display: block; max-width: 100%; max-height: 70vh; border: var(--lijn); border-radius: .6rem; touch-action: none; cursor: crosshair; }
.muurraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.2rem; align-items: start; }
.werkje { background: #fff; border: var(--lijn); border-radius: 1rem; box-shadow: var(--plak); overflow: hidden; scroll-margin-top: 1rem; }
.werkje.wacht { opacity: .85; border-style: dashed; }
.werkje img { display: block; width: 100%; height: auto; background: #f3ead6; }
.werkje-tekst { padding: .8rem 1rem 1rem; }
.werkje-tekst p { margin: 0 0 .6rem; }
.wie-wat { font-size: .92rem; }
.hartje-form { margin: 0 0 .6rem; }
.hartje { font: 700 1rem var(--kop); border: var(--lijn); border-radius: 99rem; background: var(--wit); padding: .15rem .8rem; cursor: pointer; color: var(--inkt); }
.hartje.aan { background: #fde3f0; }
.reactie { border-top: .1rem solid #e6dcc6; padding: .45rem 0 .1rem; font-size: .95rem; display: flex; justify-content: space-between; gap: .5rem; }
.reactie.wacht { color: #6b5a48; }
.reactie form { margin: 0; }
.reageer { display: flex; gap: .5rem; align-items: center; margin: .5rem 0 .3rem; }
.reageer label { flex: 1; margin: 0; }
.reageer input { margin: 0; padding: .4rem .6rem; }
.werkje-acties { display: flex; justify-content: flex-end; margin-top: .3rem; }
.werkje-acties form { margin: 0; }
.klein-link, button.link.klein-link { font-size: .85rem; font-weight: 400; color: #6b5a48; cursor: pointer; }
.melden summary { text-align: right; }
.melden form { margin-top: .5rem; }
.paginas { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.muurstrook { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.muurstrook img { width: 100%; aspect-ratio: 1; object-fit: cover; border: var(--lijn); border-radius: .6rem; display: block; }
.ideeenlijst { list-style: none; padding: 0; }
.ideeenlijst li { border-bottom: .1rem solid #e6dcc6; padding: .7rem 0; }
.ideeenlijst p { margin: .3rem 0 0; }
.blad.smal-breed { max-width: 44rem; margin: 0 auto; }
.ideeen-beheer { display: grid; gap: 1rem; }
.kaart.idee.nieuw { background: #fff3c4; }
.idee-tekst { font-size: 1.05rem; }
.keurraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.2rem; margin-bottom: 1rem; }
.keurraster.klein-raster { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.keurfoto img { width: 100%; height: auto; max-height: 28rem; object-fit: contain; background: #f3ead6; border-radius: .5rem; display: block; margin-bottom: .6rem; }
.keurreactie { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: flex-start; }
.keurreactie img { width: 7rem; border-radius: .5rem; flex: none; }
.citaat { background: #f8f1e1; border-left: .3rem solid var(--geel); padding: .5rem .8rem; border-radius: .3rem; }
.knoppenrij form { margin: 0; }
.afkeuren summary { list-style: none; display: inline-block; }
.afkeuren summary::-webkit-details-marker { display: none; }
.afkeuren form { margin-top: .6rem; }
@media (max-width: 640px) { .keurreactie { flex-direction: column; } }
#voorstelveld[hidden] { display: none; }
