[hidden] { display: none !important; }
:root {
  --blauw: #2E75B6; --blauw-licht: #DEEBF7; --blauw-donker: #1F4E79;
  --groen: #70AD47; --groen-licht: #E2EFDA;
  --oranje: #ED7D31; --oranje-licht: #FCE4D6;
  --geel: #BF9000; --geel-licht: #FFF2CC;
  --tekst: #1d2733; --zacht: #5b6573; --rand: #d7dde5; --achtergrond: #f5f7fa; --vlak: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tekst: #e6eaf0; --zacht: #a3adbb; --rand: #334155; --achtergrond: #0f1722; --vlak: #172231;
    --blauw-licht: #1b3550; --groen-licht: #1f3320; --oranje-licht: #3d2416; --geel-licht: #3a3214;
  }
}
:root[data-theme="dark"] {
  --tekst: #e6eaf0; --zacht: #a3adbb; --rand: #334155; --achtergrond: #0f1722; --vlak: #172231;
  --blauw-licht: #1b3550; --groen-licht: #1f3320; --oranje-licht: #3d2416; --geel-licht: #3a3214;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Verdana, system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: var(--tekst); background: var(--achtergrond); }
.kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; background: var(--vlak); border-bottom: 1px solid var(--rand); flex-wrap: wrap; }
.merk { font-weight: bold; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.merk .sub { font-weight: normal; color: var(--zacht); font-size: 14px; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--blauw); color: #fff; font-size: 15px; }
.gebruiker { color: var(--zacht); font-size: 13px; display: flex; gap: 10px; align-items: center; }
main { max-width: 900px; margin: 0 auto; padding: 20px 16px 60px; }
.banner { background: var(--geel-licht); border: 1px solid var(--geel); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.stap { background: var(--vlak); border: 1px solid var(--rand); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.stap h2 { margin: 0 0 12px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blauw); color: #fff; font-size: 13px; }
.dropzone { display: block; border: 2px dashed var(--rand); border-radius: 10px; padding: 26px; text-align: center; cursor: pointer; color: var(--zacht); }
.dropzone.over, .dropzone:hover { border-color: var(--blauw); background: var(--blauw-licht); }
.dropzone input { display: none; }
.rij { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; margin-top: 14px; }
.keuze { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.keuze.kolom { flex-direction: column; align-items: flex-start; gap: 6px; }
.label { font-weight: bold; }
.inspring { margin-left: 26px; }
.veld { display: flex; flex-direction: column; gap: 4px; font-weight: bold; flex: 1; min-width: 220px; margin-top: 10px; }
.veld small { font-weight: normal; color: var(--zacht); }
input[type=text], input[type=search], input[type=password], select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--rand); border-radius: 8px; background: var(--vlak); color: var(--tekst); font-weight: normal; }
.info { color: var(--zacht); font-size: 13px; margin: 8px 0 0; }
.kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kaart { position: relative; text-align: left; font: inherit; color: inherit; background: var(--vlak); border: 1px solid var(--rand); border-radius: 10px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.kaart span { color: var(--zacht); font-size: 13px; }
.kaart em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 10px; }
.kaart em.ai { background: var(--blauw-licht); color: var(--blauw-donker); }
.kaart em.gratis { background: var(--groen-licht); color: #375623; }
.kaart:hover { border-color: var(--blauw); }
.kaart.gekozen { border: 2px solid var(--blauw); background: var(--blauw-licht); }
.opties { display: none; }
.opties.actief { display: block; }
.uitleg { color: var(--zacht); font-size: 14px; }
.niveaus { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.niveau { border: 1px solid var(--rand); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.niveau input { grid-row: span 2; margin-top: 4px; }
.niveau span { color: var(--zacht); font-size: 13px; }
.niveau:has(input:checked) { border: 2px solid var(--blauw); background: var(--blauw-licht); }
.vinkjes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 16px; margin-top: 14px; }
.vinkjes label[hidden] { display: none; }
.fiche-lijst { max-height: 320px; overflow-y: auto; border: 1px solid var(--rand); border-radius: 8px; margin-top: 10px; }
.fiche { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 12px; border-bottom: 1px solid var(--rand); cursor: pointer; }
.fiche:last-child { border-bottom: none; }
.fiche input { grid-row: span 2; margin-top: 5px; }
.fiche small { color: var(--zacht); }
.fiche:has(input:checked) { background: var(--groen-licht); }
.acties { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
button { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--rand); background: var(--vlak); color: var(--tekst); padding: 8px 14px; }
.hoofdknop { background: var(--blauw); border-color: var(--blauw); color: #fff; font-weight: bold; padding: 10px 22px; }
.hoofdknop:disabled { opacity: .5; cursor: not-allowed; }
.download { display: inline-flex; gap: 8px; align-items: center; background: var(--groen); border-color: var(--groen); color: #fff; font-weight: bold; text-decoration: none; padding: 10px 18px; border-radius: 8px; margin: 6px 8px 6px 0; }
.bezig { display: flex; gap: 12px; align-items: center; color: var(--zacht); padding: 12px 0; }
.draaier { width: 22px; height: 22px; border: 3px solid var(--blauw-licht); border-top-color: var(--blauw); border-radius: 50%; animation: draai 1s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
.melding { padding: 8px 12px; border-radius: 8px; margin: 6px 0; border-left: 4px solid; }
.melding.groen { background: var(--groen-licht); border-color: var(--groen); }
.melding.oranje { background: var(--oranje-licht); border-color: var(--oranje); }
.melding.geel { background: var(--geel-licht); border-color: var(--geel); }
.tag { padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.tag.groen { background: var(--groen-licht); } .tag.oranje { background: var(--oranje-licht); } .tag.geel { background: var(--geel-licht); }
.bevindingen { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.bevinding { border-left: 4px solid; border-radius: 8px; padding: 8px 12px; }
.bevinding.groen { background: var(--groen-licht); border-color: var(--groen); }
.bevinding.oranje { background: var(--oranje-licht); border-color: var(--oranje); }
.bevinding.geel { background: var(--geel-licht); border-color: var(--geel); }
.bevinding small { color: var(--zacht); }
.wijzigingen { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; max-height: 480px; overflow-y: auto; }
.wijziging { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; border: 1px solid var(--rand); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.wijziging input { grid-row: span 3; margin-top: 4px; }
.wijziging del { color: #b42318; } .wijziging ins { color: #1a7f37; text-decoration: none; font-weight: bold; }
.wijziging small { color: var(--zacht); }
.kost { color: var(--zacht); font-size: 12px; }
.bijsturen { margin-top: 18px; border-top: 1px solid var(--rand); padding-top: 12px; }
.bijsturen button { margin-top: 8px; }
.voet { text-align: center; color: var(--zacht); font-size: 12px; padding: 20px 16px 40px; }
dialog { border: 1px solid var(--rand); border-radius: 12px; background: var(--vlak); color: var(--tekst); max-width: 380px; width: calc(100% - 32px); }
dialog input { width: 100%; }
h3 { margin-top: 0; }
@media (max-width: 600px) { .kop { padding: 12px 16px; } .stap { padding: 14px; } }

button.link { border: none; background: none; padding: 0; color: var(--blauw); text-decoration: underline; font-size: inherit; }
.pdf-paneel { margin-top: 14px; border: 1px solid var(--rand); border-left: 4px solid var(--blauw); border-radius: 8px; padding: 10px 14px; }
.pdf-paneel p { margin: 0 0 6px; }
.pdf-paneel ul { margin: 0; padding-left: 20px; }
.kaart:disabled { opacity: .45; cursor: not-allowed; }
.veld.vink { justify-content: end; font-weight: normal; }
.termen-wrap { overflow-x: auto; margin: 10px 0; }
table.termen { border-collapse: collapse; width: 100%; font-size: 14px; }
table.termen th { text-align: left; font-size: 13px; color: var(--zacht); padding: 6px; border-bottom: 1px solid var(--rand); }
table.termen td { padding: 6px; border-bottom: 1px solid var(--rand); vertical-align: top; }
table.termen tr.uit td:not(:first-child) { opacity: .45; }
table.termen input[type=text], table.termen textarea { width: 100%; font-size: 14px; padding: 5px 7px; }
table.termen .t-lid { width: 4.2em; margin-bottom: 4px; }
table.termen .t-zin { margin-top: 4px; font-style: italic; }
.t-foto { width: 170px; }
.foto-vak { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.foto-vak img { max-width: 150px; max-height: 110px; border-radius: 6px; border: 1px solid var(--rand); background: #fff; }
.foto-vak .geen { width: 150px; height: 70px; display: grid; place-items: center; color: var(--zacht); font-size: 12px; border: 1px dashed var(--rand); border-radius: 6px; text-align: center; }
.foto-vak small { color: var(--zacht); font-size: 10px; text-align: center; max-width: 160px; overflow-wrap: anywhere; }
.foto-knoppen { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.foto-knoppen button, .foto-knoppen label { font-size: 12px; padding: 2px 7px; border: 1px solid var(--rand); border-radius: 6px; cursor: pointer; background: var(--vlak); }
.foto-knoppen input { display: none; }
dialog.breed { max-width: 720px; }
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 60vh; overflow-y: auto; }
.foto-raster button { padding: 4px; display: grid; place-items: center; min-height: 90px; }
.foto-raster img { max-width: 100%; max-height: 110px; }
@media (max-width: 600px) { .t-foto { width: 120px; } .foto-vak img, .foto-vak .geen { max-width: 110px; width: auto; } }

.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: calc(100% - 32px); }
.toast { background: var(--vlak); border: 1px solid var(--groen); border-left: 6px solid var(--groen); border-radius: 10px; padding: 12px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); display: flex; gap: 12px; align-items: center; max-width: 420px; animation: inschuif .25s ease-out; }
.toast.fout { border-color: var(--geel); }
.toast b { display: block; }
.toast .download { margin: 0; padding: 6px 12px; font-size: 13px; }
.toast button.sluit { border: none; background: none; font-size: 18px; padding: 0 4px; color: var(--zacht); }
@keyframes inschuif { from { transform: translateY(20px); opacity: 0; } }

/* vragen en antwoorden: verdeling van de denkniveaus */
.niveau-balk { display: flex; gap: 2px; border-radius: 8px; overflow: hidden; margin: 8px 0 14px; font-size: 13px; }
.niveau-balk span { padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nb-onthouden { background: #DEEBF7; }
.nb-begrijpen { background: #BDD7EE; }
.nb-toepassen { background: #9DC3E6; }
.nb-verder-denken { background: #2E75B6; color: #fff; }

/* keuzes zonder bestand op de startpagina */
.zonder-bestand { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rand); }
.zonder-bestand .label { margin: 0 0 10px; }
.startkaart { text-align: left; font: inherit; color: inherit; background: var(--vlak); border: 1px solid var(--rand); border-radius: 10px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.startkaart b { font-size: 16px; }
.startkaart span { color: var(--zacht); font-size: 13px; }
.startkaart:hover { border-color: var(--blauw); background: var(--blauw-licht); }
