* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
       background: #f2f5f9; color: #1c2733; }
header { display: flex; justify-content: space-between; align-items: center;
         background: #14537a; color: #fff; padding: .7rem 1.2rem; }
header a { color: #fff; text-decoration: none; margin-left: 1rem; }
.brand { font-size: 1.2rem; font-weight: 700; margin-left: 0; }
.wie { opacity: .8; margin-left: 1rem; }
main { max-width: 880px; margin: 1.4rem auto; padding: 0 1rem; }

.kaart { background: #fff; border-radius: 12px; padding: 1.2rem 1.4rem; margin-bottom: 1.2rem;
         box-shadow: 0 1px 4px rgba(20, 40, 60, .08); }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
.gewicht { font-size: .75rem; color: #6b7c8c; font-weight: 400; margin-left: .5rem; }
.hoofdstukkop { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

.knop { display: inline-block; background: #1d7fbe; color: #fff !important; border: 0; border-radius: 8px;
        padding: .45rem .9rem; text-decoration: none; font-size: .9rem; cursor: pointer; }
.knop:hover { background: #14537a; }
.knop.groot { font-size: 1.05rem; padding: .6rem 1.2rem; }
.knop.licht { background: #e3edf5; color: #14537a !important; }
button { font: inherit; }
button[type=submit] { background: #1d7fbe; color: #fff; border: 0; border-radius: 8px;
                      padding: .55rem 1.4rem; font-size: 1rem; cursor: pointer; margin-top: .8rem; }

.topics { list-style: none; margin: .6rem 0 0; padding: 0; }
.topics li { display: flex; align-items: center; gap: 1rem; padding: .55rem 0;
             border-top: 1px solid #eef2f6; }
.topictitel { flex: 1; }
.topictitel small { display: block; color: #6b7c8c; }
.balk { width: 130px; height: 10px; background: #e6ecf2; border-radius: 5px; overflow: hidden; }
.balk span { display: block; height: 100%; background: #35a06c; }
.beheerst .topictitel { color: #2a7d52; }
.klaartekst { color: #2a7d52; font-weight: 600; font-size: .9rem; }

.login { max-width: 360px; margin: 3rem auto; }
.login label { display: block; margin-bottom: .8rem; }
.login input { display: block; width: 100%; padding: .5rem; margin-top: .25rem;
               border: 1px solid #c6d2dd; border-radius: 8px; font-size: 1rem; }
.fout { color: #b3372c; }

.voortgang { display: flex; justify-content: space-between; color: #6b7c8c;
             font-size: .85rem; margin-bottom: .8rem; }
.vraagtekst { font-size: 1.15rem; line-height: 1.55; }
.beschermd { -webkit-user-select: none; user-select: none; }
.opties { display: grid; gap: .5rem; margin-top: 1rem; }
.optie { display: flex; gap: .6rem; align-items: baseline; background: #f4f8fb;
         border: 1px solid #dde7ef; border-radius: 8px; padding: .55rem .8rem; cursor: pointer; }
.optie:hover { border-color: #1d7fbe; }
.invoer { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.invoer input { font-size: 1.2rem; padding: .5rem .7rem; border: 1px solid #c6d2dd;
                border-radius: 8px; width: 240px; }
.eenheid { color: #6b7c8c; font-size: 1.05rem; }

.timer { position: relative; height: 22px; background: #e6ecf2; border-radius: 11px;
         overflow: hidden; margin-bottom: 1rem; }
.timer span { display: block; height: 100%; background: #35a06c; transition: width 1s linear; }
.timer.bijna span { background: #d9822b; }
.timer b { position: absolute; inset: 0; text-align: center; font-size: .8rem; line-height: 22px;
           color: #1c2733; }
.examenkaart { border-left: 5px solid #14537a; }
.uitlegregel { color: #6b7c8c; margin-top: -.4rem; }
.examenvraag.goed { border-left: 5px solid #35a06c; }
.examenvraag.slecht { border-left: 5px solid #c0392b; }

.feedback { margin-top: 1rem; border-radius: 10px; padding: .9rem 1.1rem; }
.feedback.goed { background: #e8f6ee; } .feedback.slecht { background: #fdecea; }
.feedback h2 { margin: 0 0 .4rem; }
.uitleg { background: rgba(255, 255, 255, .75); border-radius: 8px; padding: .6rem .9rem; margin-top: .6rem; }
.uitleg h3 { margin: 0 0 .3rem; font-size: .95rem; color: #14537a; }
.oefening .knop.groot { margin-top: 1rem; }

.klaarkaart { text-align: center; padding: 2.2rem; }
.score { font-size: 2.4rem; font-weight: 700; margin: .2rem 0; }

#overlay { display: none; position: fixed; inset: 0; background: rgba(15, 30, 45, .82);
           z-index: 50; align-items: center; justify-content: center; text-align: center; }
#overlay .kaart { max-width: 420px; }

table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid #eef2f6; vertical-align: top; }
th { color: #6b7c8c; font-weight: 600; }
table.mini { width: auto; margin: .5rem 0; }
table.mini td, table.mini th { border: 1px solid #d7e1ea; padding: .25rem .6rem; text-align: center; }
.vraagcel { max-width: 340px; }
.cijfers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem;
           margin-bottom: 1.2rem; }
.cijfer { text-align: center; }
.cijfer b { font-size: 1.7rem; display: block; }
.cijfer span { color: #6b7c8c; font-size: .85rem; }
.theorie h3 { color: #14537a; margin-top: 1.2rem; }
.theorie p { line-height: 1.6; }
