:root {
  /* Huisstijl A. Mallan Onderwijs en Advies (kleuren overgenomen van amallan.nl).
     Een andere huisstijl? Pas alleen deze regels aan. */
  --navy: #002b55;      /* logo, koppen */
  --petrol: #005e7b;    /* logo, tweede kleur */
  --accent: #25818a;    /* links, knoppen, accenten */
  --accent-tekst: #1f6f77; /* iets donkerder voor tekstlinks: genoeg contrast voor slechtzienden (WCAG AA) */
  --band: #e4f0f1;      /* lichte vlakken, tabelkoppen */
  --licht: #f7f9f9;     /* achtergrond pagina */
  --rand: #d3e2e4;
  --tekst: #25313a;
  --rood: #b3261e;
  --groen: #2e7d32;
  --geel: #e8b400;
  /* oude namen, zodat bestaande stijlen meeschakelen */
  --blauw: var(--navy);
  --oranje: var(--accent);
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tekst); background: var(--licht); line-height: 1.5;
}
header {
  background: white; color: var(--tekst); padding: .6rem 1rem; border-bottom: 3px solid var(--band);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
}
header .logo { font-family: Montserrat, Inter, system-ui, sans-serif; font-weight: 800; color: var(--navy);
  text-decoration: none; line-height: 1.1; letter-spacing: .02em; }
header .logo span { color: var(--petrol); }
header .logo small { display: block; margin-top: .35rem; line-height: 1.2; font-size: .62rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--petrol); }
header nav a { color: var(--tekst); margin-right: 1rem; text-decoration: none; }
header nav a:hover { color: var(--accent); }
header .wie { margin-left: auto; font-size: .9rem; color: #5b6870; }
header .wie a { color: var(--accent); }
h1, h2, h3 { font-family: Montserrat, Inter, system-ui, sans-serif; letter-spacing: -.005em; }
.paginakop { background: var(--band); margin: -1rem -1rem 1rem; padding: 1.2rem 1rem; }
.paginakop h1 { margin: 0; }
.paginakop p { margin: .3rem 0 0; }
footer.maker { text-align: center; font-size: .8rem; color: #6b777e; padding: 1.5rem 1rem 2rem; }
footer.maker a { color: var(--petrol); }
main { max-width: 1000px; margin: 0 auto; padding: 1rem; }
h1 { color: var(--navy); margin-top: .5rem; }
h2 { color: var(--navy); }
h3 { color: var(--petrol); }
a { color: var(--accent-tekst); }
.kaart {
  background: white; border: 1px solid var(--rand); border-radius: 8px;
  padding: 1rem; margin-bottom: 1rem;
}
.kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: .4rem .5rem; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; }
th { background: var(--band); }
.flash { padding: .6rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash.ok { background: #e3f1e4; color: var(--groen); }
.flash.fout { background: #fbe5e3; color: var(--rood); }
.label { display: inline-block; padding: 0 .45rem; border-radius: 4px; font-size: .8rem; background: var(--band); }
.label.nt2 { background: #fde3cf; }
.label.regulier { background: #d6e9ec; }
.signaal { color: var(--rood); font-weight: 600; }
.te-laat { color: var(--rood); font-weight: 600; }
.klaar { color: var(--groen); }
.niveau { display: inline-block; min-width: 1.6rem; text-align: center; border-radius: 4px; font-weight: 600; }
.niveau-1 { background: #f6c9c4; } .niveau-2 { background: #fbe2b6; }
.niveau-3 { background: #d4ebcf; } .niveau-4 { background: #a9d7a0; }
form.inline { display: inline; }
/* ronde 47: uitloggen is een formulierknop (POST) die eruitziet als een link */
button.linkknop { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
input, select, textarea, button {
  font: inherit; padding: .35rem .5rem; border: 1px solid var(--rand); border-radius: 4px;
}
button, .knop {
  background: var(--oranje); color: white; border: none; cursor: pointer;
  text-decoration: none; padding: .4rem .8rem; border-radius: 4px; display: inline-block;
}
button.stil { background: var(--band); color: var(--tekst); }
.formrij { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: .5rem; }
.formrij label { display: flex; flex-direction: column; font-size: .85rem; }
.fase { border-left: 4px solid var(--oranje); padding-left: .8rem; margin-bottom: 1rem; }
.fase h3 { margin: 0; font-size: 1.05rem; }
.fase .min { color: #666; font-weight: normal; }
.diff { font-size: .92rem; margin: .2rem 0; }
.woorden { columns: 2; }
@media print {
  header, .niet-printen { display: none; }
  body { background: white; }
  .kaart { border: none; }
}

/* Woordkaarten en werkbladen */
.woordkaarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.woordkaart {
  border: 1px dashed #999; height: 5.5cm; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 600; text-align: center; padding: .5rem; background: white;
  break-inside: avoid;
}
.werkblad { background: white; padding: 1.2rem; border: 1px solid var(--rand); }
.werkblad h2 { font-size: 1.1rem; margin-top: 1.4rem; }
.werkblad-kop { display: flex; justify-content: space-between; border-bottom: 2px solid var(--blauw); padding-bottom: .6rem; }
.werkblad-tabel { width: auto; }
.werkblad-tabel td { border: none; padding: .25rem .5rem; font-size: 1.1rem; }
.schrijflijn { border-bottom: 1px solid #888; height: 1.8rem; margin-bottom: .6rem; }

/* Oefenomgeving */
.oefentegel { text-decoration: none; color: var(--tekst); display: block; }
.oefentegel:hover { border-color: var(--oranje); }
.woordknoppen { display: flex; flex-wrap: wrap; gap: .5rem; }
.woordknoppen button { font-size: 1.1rem; }
.groot-woord { font-size: 2rem; font-weight: 700; color: var(--blauw); }
.vragenkaart {
  min-height: 8rem; border: 2px solid var(--blauw); border-radius: 10px; padding: 1.2rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 1.3rem; cursor: pointer; background: white; user-select: none;
}
.vragenkaart.omgedraaid { background: #fff4ea; border-color: var(--oranje); }

/* Verantwoording */
.balk { display: inline-block; width: 70%; height: .8rem; background: var(--band); border-radius: 3px; vertical-align: middle; }
.balk span { display: block; height: 100%; background: var(--blauw); border-radius: 3px; max-width: 100%; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child { text-align: left; }
.dek.basis { color: var(--blauw); }
.dek.accent { color: var(--oranje); font-weight: 700; }

/* Luisteren, spreken en gesprek */
.oefenmenu { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.oefenmenu button.actief { background: var(--blauw); color: white; }
.meelees { background: #f2f7f8; padding: .6rem; border-radius: 6px; }
.luistervraag { border: 1px solid var(--rand); border-radius: 6px; margin-bottom: .6rem; }
.luistervraag label { display: block; padding: .15rem 0; }
.zinsstarters li { margin: .2rem 0; font-style: italic; }
.chat { height: 18rem; overflow-y: auto; background: #f2f7f8; border-radius: 8px; padding: .6rem; margin-bottom: .6rem; display: flex; flex-direction: column; gap: .4rem; }
.bericht { max-width: 80%; padding: .45rem .7rem; border-radius: 12px; }
.bericht.bot { background: white; border: 1px solid var(--rand); align-self: flex-start; }
.bericht.kind { background: var(--blauw); color: white; align-self: flex-end; }
.bericht.hint { background: #fff4ea; color: #7a3d0a; align-self: flex-start; font-size: .92rem; }
.privacy { color: #666; }

/* Schrijfopdracht */
.schrijfhulp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; background: #f2f7f8; padding: .2rem .8rem; border-radius: 6px; }
.leeslog td { height: 1.7rem; border: 1px solid #bbb; }
.leeslog th { border: 1px solid #bbb; font-size: .85rem; }

/* Groep 4: leesbladen */
.leestekst { white-space: pre-line; font-size: 1.25rem; line-height: 1.8; background: #ffffff; padding: .6rem .9rem; border-left: 4px solid var(--oranje); }
.leesplaatjes { font-size: 2.2rem; letter-spacing: .4rem; margin: .4rem 0; }
.tekenvak { border: 1px dashed #999; height: 9cm; }
ul.mc { list-style: none; padding-left: 1rem; }
ul.mc li { padding: .15rem 0; font-size: 1.1rem; }
ul.mc li.goed { font-weight: 700; color: var(--groen); }
.woordkaart .emoji { display: block; font-size: 3rem; margin-bottom: .3rem; }
.les-materiaal { background: #ffffff; border: 1px solid var(--rand); border-radius: 6px; padding: .5rem .8rem; margin-top: .5rem; }
.spellingregel { background: #eef4fb; padding: .6rem .8rem; border-radius: 6px; font-size: 1.1rem; }
.spellingtabel td { font-size: 1.2rem; padding: .35rem .5rem; }
.spellingtabel td.lijntje { border-bottom: 1px solid #888; width: 60%; }
.vraagsoort { color: #888; }

/* Leerlingomgeving */
.huidig-thema { background: var(--band); border-color: var(--rand); text-align: center; }
.oefentegel.actief { border: 2px solid var(--oranje); }
.leesvraag { margin-bottom: .8rem; }
.leesvraag .antwoord { margin-left: .5rem; color: var(--groen); font-weight: 600; }
.dicteeregel { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.dicteeregel input { font-size: 1.2rem; }
.licentievoet { display: none; }
@media print { .licentievoet { display: block; position: fixed; bottom: 0; left: 0; right: 0; text-align: center; font-size: 8pt; color: #666; } }
.inlogkaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5cm, 1fr)); gap: .5rem; }
.inlogkaart { border: 1px dashed #999; padding: .8rem; background: white; break-inside: avoid; }
.ik-titel { color: var(--oranje); font-weight: 700; font-size: .85rem; }
.ik-naam { font-size: 1.2rem; font-weight: 600; margin: .3rem 0; }
.ik-code { font-size: 1.8rem; letter-spacing: .2rem; font-family: monospace; color: var(--blauw); }
.ik-adres { font-size: .8rem; margin-top: .3rem; word-break: break-all; }
.dicteeregel input { flex: 1; min-width: 9rem; }

/* Ronde 8: weekplan en digitaal werk */
.taken { list-style: none; padding-left: 0; margin: 0; }
.taken li { padding: .35rem 0; border-bottom: 1px solid #eee; }
.taken li.af a { color: var(--groen); }
.taken .vink { display: inline-block; width: 1.4rem; color: var(--groen); font-weight: 700; }
.woordkaart-digitaal h2 { margin: 0 0 .3rem; }
.voortgang td, .voortgang th { text-align: center; }
.voortgang td:first-child { text-align: left; }
progress { width: 12rem; height: 1rem; vertical-align: middle; }

/* Ronde 9: adaptieve spelling */
mark { background: #ffe08a; padding: 0 .1em; border-radius: 3px; }
.regel { color: #555; font-style: italic; }
.statusicoon { display: inline-block; width: 1.6rem; text-align: center; }
.status-beheerst { border-left: 6px solid var(--groen); }
.status-bijna { border-left: 6px solid #e8b400; }
.status-aandacht { border-left: 6px solid #c0392b; }
.status-nieuw { border-left: 6px solid #bbb; }
td.cel-beheerst { background: #e3f4e8; }
td.cel-bijna { background: #fff5d6; }
td.cel-aandacht { background: #fbe1de; }
td.cel-nieuw { color: #888; }

/* Ronde 10: lesvoorbereiding, blokverantwoording, dashboard */
.d-mondeling { background: #25818a; } .d-woordenschat { background: #005e7b; } .d-lezen { background: #002b55; }
.d-schrijven { background: #6aa9b0; } .d-cultuur { background: #e8b400; } .d-afsluiting { background: #9aa7ad; }
.d-pauze { background: #dfe6e8; }
.d-taalverzorging { background: #7a4f9a; } .d-literatuur { background: #c0567a; }
.lesplan td { vertical-align: top; font-size: .92rem; } .lesplan tr.pauze td { background: #f2f5f6; }
.tijdbalk { display: flex; height: 1.6rem; border-radius: 6px; overflow: hidden; margin: .4rem 0 .6rem; }
.tijdbalk span { display: block; height: 100%; }
.legenda { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; }
.legenda i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.stip { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .35rem; }
.lesverloop td.tijd { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--petrol); font-weight: 600; }
.kd-accent { background: var(--band); }
.vink-kd { color: var(--accent); font-weight: 700; text-align: center; }
.voorbereiding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .voorbereiding-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding-left: 0; } .checklist li::before { content: "☐ "; color: var(--accent); }
.tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.tegel { background: white; border: 1px solid var(--rand); border-radius: 8px; padding: .7rem; text-decoration: none; color: var(--tekst); }
.tegel:hover { border-color: var(--accent); }
.tegel strong { display: block; color: var(--navy); }
.getal { font-size: 1.8rem; font-weight: 800; color: var(--petrol); font-family: Montserrat, Inter, sans-serif; }
.lesknoppen { display: flex; flex-wrap: wrap; gap: .4rem; }
.lesknoppen .knop.huidig { background: var(--navy); }
@media print {
  .voorbereiding-grid { grid-template-columns: 1fr 1fr; }
  .tijdbalk span, .stip, .legenda i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .paginakop { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.tegel small { color: #5b6870; }

/* Logo */
header .logo { display: flex; align-items: center; gap: .5rem; }
.logo-icoon { width: 42px; height: 42px; }
.logo-tekst { display: block; }
.logo-voet { width: 140px; height: auto; margin-bottom: .4rem; }
.logo-groot { display: block; width: 220px; max-width: 70%; height: auto; margin: 0 auto 1rem; }

/* Ronde 11: oefenronde */
.label.plus { background: #fff3c4; color: #6b5200; }
.oefenvraag { font-size: 1.35rem; font-weight: 600; color: var(--navy); min-height: 1.5rem; }
.oefenkop { color: var(--petrol); font-weight: 600; }
.husselantwoord { font-size: 1.8rem; letter-spacing: .25rem; font-weight: 700; color: var(--navy); min-height: 2.2rem; }
.tegelknop { font-size: 1.4rem; min-width: 2.6rem; padding: .5rem; background: white; color: var(--navy);
  border: 2px solid var(--accent); border-radius: 8px; }
.tegelknop:disabled { opacity: .25; }
.woordknoppen button.stil { font-size: 1.1rem; text-align: left; }
[hidden] { display: none !important; }
progress { accent-color: var(--accent); }

/* Ronde 14: zelf oefenen, grammatica, begrijpend lezen, taken */
.oefenzin { font-size: 1.3rem; line-height: 1.7; }
.oefenzin mark { background: #fff3c4; padding: 0 .2rem; border-radius: 3px; }
.leestekst { max-height: 22rem; overflow-y: auto; background: var(--licht); }
.leestekst p { margin: .3rem 0; line-height: 1.6; }
.teller { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; border-radius: 1rem; background: var(--accent);
          color: #fff; font-size: .75rem; text-align: center; }
.vaktegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; }
.vaktegel { display: block; text-decoration: none; color: var(--tekst); }
.vaktegel .icoon { font-size: 1.8rem; }
.taak.klaar { opacity: .7; }
.taak .telaat { color: #a33; font-weight: 600; }
.vaktabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0 1rem; border-bottom: 2px solid #d6e9ec; }
.vaktabs a { padding: .4rem .8rem; border-radius: 8px 8px 0 0; text-decoration: none; background: #f2f5f6; color: #002b55; }
.vaktabs a.actief { background: #002b55; color: #fff; }
.lesstappen { list-style: decimal; padding-left: 1.5rem; } .lesstappen li.af { opacity: .75; }
.grote-keuze { display: block; font-size: 1.15rem; padding: .35rem 0; }
.flitswoord { font-size: 3rem; font-weight: 700; text-align: center; padding: 2rem; background: #fff; border-radius: 16px; margin: 1rem 0; }
.live-venster { position: fixed; inset: 10% 5% auto 5%; background: #fff; border: 4px solid #e8b400; border-radius: 18px; padding: 1.2rem; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.live-kop { font-weight: 700; color: #25818a; } .live-vraag { font-size: 1.6rem; font-weight: 600; } .live-extra { font-style: italic; }
.live-opties button { display: block; width: 100%; font-size: 1.4rem; margin: .4rem 0; padding: .7rem; border-radius: 12px; }
.live-opties button.goed { background: #2e9d5a; color: #fff; } .live-opties button.fout { background: #c94a4a; color: #fff; }

/* Combinatiegroep-rooster */
td.combi-instructie { background: #eaf4ea; }
td.combi-zelfstandig { background: #f7f7f2; }
td.combi-verwerken { background: #eef2fa; }

/* Ronde 34: ouderportaal */
.ouder-tekst { white-space: pre-line; margin: .5rem 0; }
.ouder-herinnering { background: #fff3c4; border-left: 6px solid #e8b400; padding: .5rem .8rem; border-radius: 6px; }
/* Ronde 34: korte melding of aandachtspunt in een kader (ouderbrief, weekbericht, juf-tip boven het lesplan) */
.melding { background: #fff8e1; border-left: 4px solid #e0a800; padding: .5rem .8rem; border-radius: 4px; }
/* Ronde 35: peilen via de laptops (exit-ticket) */
.live-opties button.peiling-smiley { display: inline-block; width: auto; min-width: 5.5rem; font-size: 3rem; margin: .4rem .6rem .4rem 0; }
.live-opties button.gekozen { outline: 4px solid #002b55; outline-offset: 2px; }
.oefentoets-tabel caption { text-align: left; font-weight: 600; margin-bottom: .3rem; }
.oefentoets-tabel th, .oefentoets-tabel td { border: 1px solid #bbb; padding: .3rem .6rem; }
