/* =====================================================================
   Leerplatform — de huisstijl
   ---------------------------------------------------------------------
   Alles getekend, geen foto's. Dat scheelt rechten, het laadt snel op
   een telefoon, en het blijft van jou.
   ===================================================================== */

:root {
    /* De kleuren van het logo. Alles in de app komt hieruit, dus één
       regel hier aanpassen verandert de hele huisstijl. */
    --roze:      #ff2793;   /* de playknop  */
    --lila:      #168bff;   /* elektrisch blauw */
    --blauw:     #8ecbff;   /* lichter blauw, voor accenten */
    --nacht:     #0b1729;   /* donkerblauw  */
    --wit:       #ffffff;

    --roze-zacht:  #ffe3f0;
    --lila-zacht:  #e6f1ff;
    --goud-zacht:  #fff3d6;
    --blauw-zacht: #e4f3ff;
    --papier:      #f6f9fd;
    --grijs:       #5f6b7e;
    --lijn:        #e2eaf3;

    --groen:     #10b981;
    --oranje:    #fb923c;

    --rond:      22px;
    --rond-s:    14px;
    --schaduw:   0 2px 14px rgba(11, 23, 41, .07);
    --schaduw-l: 0 8px 30px rgba(11, 23, 41, .12);

    --kolom:     264px;   /* breedte van de zijbalk */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--nacht);
    background: var(--papier);
    background-image:
        radial-gradient(60vw 50vh at 8% -10%, #ffd9f0 0%, transparent 60%),
        radial-gradient(55vw 45vh at 95% 0%, #dbe8ff 0%, transparent 55%);
    background-attachment: fixed;
}

/* =====================================================================
   De vorm van de pagina
   ===================================================================== */

.app {
    display: grid;
    grid-template-columns: var(--kolom) 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

/* --- zijbalk (iPad liggend en desktop) ------------------------------- */

.zijbalk {
    background: var(--nacht);
    color: #fff;
    padding: 26px 18px calc(26px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
}

.merk {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 0 8px;
}

.merk-teken { display: none; }
.merk-teken .logo-icoon { width: 38px; }
.merk .logo-header { width: 158px; }

.merk-niveau {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lila);
    padding-left: 2px;
}

/* =====================================================================
   Het logo
   ---------------------------------------------------------------------
   Twee uitvoeringen, een voor licht en een voor donker. De stijl kiest;
   in het html staan ze allebei.
   ===================================================================== */

.logo { display: block; height: auto; }
.logo-header { width: 170px; }
.logo-icoon  { width: 40px; }

.logo-op-donker { display: none; }

@media (prefers-color-scheme: dark) {
    html:not([data-theme="licht"]) .logo-op-licht  { display: none; }
    html:not([data-theme="licht"]) .logo-op-donker { display: block; }
}

html[data-theme="donker"] .logo-op-licht  { display: none; }
html[data-theme="donker"] .logo-op-donker { display: block; }

.hoofdmenu { display: flex; flex-direction: column; gap: 3px; }

.hoofdmenu a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border-radius: var(--rond-s);
    color: #c9c4ea;
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 600;
    transition: background .15s, color .15s;
}

.hoofdmenu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.hoofdmenu a.is-aan {
    background: linear-gradient(100deg, var(--roze), #ff5ec0);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 39, 147, .35);
}

.hoofdmenu svg { width: 21px; height: 21px; flex: none; }

.zijbalk-onder { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }

.zijbalk-onder a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 15px;
    border-radius: var(--rond-s);
    color: #8f89bb;
    text-decoration: none;
    font-size: 14px;
}

.zijbalk-onder a:hover { color: #fff; }
.zijbalk-onder svg { width: 19px; height: 19px; flex: none; }

/* --- het werkgebied -------------------------------------------------- */

.werkblad {
    padding: 26px 30px calc(40px + env(safe-area-inset-bottom));
    max-width: 1280px;
}

/* =====================================================================
   Welkomstbanner
   ===================================================================== */

.banner {
    position: relative;
    border-radius: 26px;
    padding: 30px 32px;
    margin-bottom: 22px;
    overflow: hidden;
    background: linear-gradient(118deg, #0b1729 0%, #168bff 48%, #ff2793 120%);
    color: #fff;
    box-shadow: var(--schaduw-l);
}

.banner-tekst { position: relative; z-index: 2; max-width: 60%; }

.banner h1 {
    margin: 0 0 6px;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.banner p { margin: 0; font-size: 16px; opacity: .92; }

.banner-dag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    font-size: 14px;
    font-weight: 600;
}

/* de getekende versiering, rechts in de banner */
.banner-tekening {
    position: absolute;
    right: -10px;
    top: 0;
    height: 100%;
    width: 46%;
    z-index: 1;
    pointer-events: none;
}

/* =====================================================================
   Cijfertegels
   ===================================================================== */

.cijfers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.cijfer {
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--wit);
    border-radius: var(--rond);
    padding: 16px 18px;
    box-shadow: var(--schaduw);
}

.cijfer-plaatje {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex: none;
}

.cijfer-plaatje svg { width: 23px; height: 23px; }

.c-roze  { background: var(--roze-zacht);  color: var(--roze); }
.c-lila  { background: var(--lila-zacht);  color: #7c3aed; }
.c-blauw { background: var(--blauw-zacht); color: #0284c7; }
.c-goud  { background: var(--goud-zacht);  color: #d97706; }

.cijfer-getal {
    display: block;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.cijfer-naam { display: block; font-size: 13px; color: var(--grijs); line-height: 1.3; }

/* =====================================================================
   Koppen boven een rij
   ===================================================================== */

.rij-kop {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 28px 0 14px;
    gap: 14px;
}

.rij-kop h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.rij-kop a {
    color: var(--roze);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* =====================================================================
   Vaktegels
   ===================================================================== */

.vakken {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.vak {
    position: relative;
    display: block;
    background: var(--wit);
    border-radius: var(--rond);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--schaduw);
    transition: transform .16s ease, box-shadow .16s ease;
}

.vak:hover { transform: translateY(-3px); box-shadow: var(--schaduw-l); }

.vak-plaat {
    position: relative;
    height: 104px;
    background: linear-gradient(135deg, var(--k1), var(--k2));
}

.vak-plaat svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.vak-body { padding: 13px 15px 16px; }

.vak-naam {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 1px;
}

.vak-niveau { font-size: 12.5px; color: var(--grijs); margin: 0 0 11px; }

.vak-balk {
    height: 7px;
    background: var(--lijn);
    border-radius: 999px;
    overflow: hidden;
}

.vak-balk i {
    display: block;
    height: 100%;
    width: var(--deel, 0%);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--k1), var(--k2));
}

.vak-voet {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--grijs);
}

.vak-voet b { color: var(--nacht); font-size: 13px; }

.vak-toets {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--roze-zacht);
    color: var(--roze);
    font-weight: 700;
    font-size: 11.5px;
}

.vak-toets.is-rustig { background: var(--lila-zacht); color: #7c3aed; }

/* =====================================================================
   Onderste rij: planning, reeks, badges
   ===================================================================== */

.onderrij {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
    align-items: start;
}

.kaart {
    background: var(--wit);
    border-radius: var(--rond);
    padding: 20px;
    box-shadow: var(--schaduw);
}

.kaart h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
}

/* --- planning --------------------------------------------------------- */

.plan { list-style: none; margin: 0; padding: 0; }

.plan li {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--lijn);
}

.plan li:first-child { border-top: none; }

.plan-dag {
    font-size: 12px;
    font-weight: 700;
    color: var(--grijs);
    line-height: 1.25;
}

.plan-dag b { display: block; color: var(--nacht); font-size: 14px; }

.plan-wat { font-size: 14px; font-weight: 600; }
.plan-wat span { display: block; font-size: 12.5px; color: var(--grijs); font-weight: 500; }

.plan-tijd {
    font-size: 12px;
    color: var(--grijs);
    background: var(--lila-zacht);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

/* --- reeks ------------------------------------------------------------ */

.reeks-getal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 4px;
}

.reeks-getal small { font-size: 13px; font-weight: 600; color: var(--grijs); }

.reeks-dagen {
    display: flex;
    gap: 7px;
    margin-top: 14px;
}

.reeks-dag {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--grijs);
    font-weight: 600;
}

.reeks-dag i {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    max-width: 36px;
    margin: 0 auto 5px;
    border-radius: 50%;
    background: var(--lijn);
    color: transparent;
    font-size: 15px;
    font-style: normal;
}

.reeks-dag.is-aan i {
    background: linear-gradient(135deg, var(--roze), #ff79c8);
    color: #fff;
}

.reeks-dag.is-nu i {
    background: var(--wit);
    border: 2px solid var(--roze);
    color: var(--roze);
}

/* --- badges ----------------------------------------------------------- */

.badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.badge span {
    display: block;
    font-size: 11.5px;
    color: var(--grijs);
    font-weight: 600;
    margin-top: 5px;
}

.badge svg { width: 46px; height: 46px; }
.badge.is-uit { opacity: .32; filter: grayscale(1); }

/* =====================================================================
   Knoppen
   ===================================================================== */

.knop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 22px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(100deg, var(--roze), #ff5ec0);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 39, 147, .3);
    -webkit-appearance: none;
}

.knop:active { transform: translateY(1px); }

.knop-rustig {
    background: var(--wit);
    color: var(--roze);
    border: 1.5px solid var(--roze-zacht);
    box-shadow: none;
}

/* =====================================================================
   Onderbalk — alleen op de telefoon
   ===================================================================== */

.onderbalk { display: none; }

/* =====================================================================
   iPad staand en kleinere vensters
   ===================================================================== */

@media (max-width: 1100px) {
    .cijfers { grid-template-columns: repeat(2, 1fr); }
    .vakken  { grid-template-columns: repeat(2, 1fr); }
    .onderrij { grid-template-columns: 1fr 1fr; }
    .onderrij .kaart:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    :root { --kolom: 84px; }

    .merk-niveau, .hoofdmenu a span, .zijbalk-onder a span { display: none; }
    .merk { align-items: center; padding: 0; }

    /* In de smalle zijbalk past de naam niet; daar staat alleen het teken. */
    .merk-breed { display: none; }
    .merk-teken { display: block; }

    .hoofdmenu a, .zijbalk-onder a {
        justify-content: center;
        padding: 14px 0;
    }

    .banner-tekst { max-width: 72%; }
    .werkblad { padding: 22px 20px 40px; }
}

/* =====================================================================
   Telefoon
   ===================================================================== */

@media (max-width: 680px) {
    .app { grid-template-columns: 1fr; }

    .zijbalk { display: none; }

    .werkblad {
        padding: calc(14px + env(safe-area-inset-top)) 16px
                 calc(96px + env(safe-area-inset-bottom));
    }

    .banner { padding: 22px 20px; border-radius: 22px; }
    .banner-tekst { max-width: 100%; }
    .banner h1 { font-size: 25px; }
    .banner p { font-size: 14.5px; }
    .banner-tekening { opacity: .5; width: 62%; right: -22%; }

    .cijfers { grid-template-columns: repeat(2, 1fr); gap: 11px; }
    .cijfer { padding: 13px; gap: 10px; }
    .cijfer-plaatje { width: 38px; height: 38px; border-radius: 11px; }
    .cijfer-getal { font-size: 20px; }

    .vakken { gap: 12px; }
    .vak-plaat { height: 88px; }

    .onderrij { grid-template-columns: 1fr; }
    .onderrij .kaart:first-child { grid-column: auto; }

    .rij-kop h2 { font-size: 18px; }

    /* de navigatie verhuist naar onderen */
    .onderbalk {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .93);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--lijn);
    }

    .onderbalk a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 7px 0;
        color: var(--grijs);
        text-decoration: none;
        font-size: 10.5px;
        font-weight: 600;
    }

    .onderbalk a.is-aan { color: var(--roze); }
    .onderbalk svg { width: 22px; height: 22px; }
}

/* =====================================================================
   Donkere stand
   ===================================================================== */

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) {
        --papier: #100e1f;
        --wit:    #1b1930;
        --nacht:  #f1eeff;
        --lijn:   #2e2a4a;
        --grijs:  #9d97c2;
        --roze-zacht:  #3a1030;
        --lila-zacht:  #102537;
    --goud-zacht:  #38280c;
        --blauw-zacht: #10293a;
    }
html:not([data-theme="licht"]) body {
        background-image:
            radial-gradient(60vw 50vh at 8% -10%, #2a1033 0%, transparent 60%),
            radial-gradient(55vw 45vh at 95% 0%, #121a3a 0%, transparent 55%);
    }
html:not([data-theme="licht"]) .zijbalk { background: #0b0919; }
html:not([data-theme="licht"]) .onderbalk { background: rgba(27, 25, 48, .94); }
html:not([data-theme="licht"]) .c-goud { background: #38280c; }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] {
        --papier: #100e1f;
        --wit:    #1b1930;
        --nacht:  #f1eeff;
        --lijn:   #2e2a4a;
        --grijs:  #9d97c2;
        --roze-zacht:  #3a1030;
        --lila-zacht:  #102537;
    --goud-zacht:  #38280c;
        --blauw-zacht: #10293a;
    }
html[data-theme="donker"] body {
        background-image:
            radial-gradient(60vw 50vh at 8% -10%, #2a1033 0%, transparent 60%),
            radial-gradient(55vw 45vh at 95% 0%, #121a3a 0%, transparent 55%);
    }
html[data-theme="donker"] .zijbalk { background: #0b0919; }
html[data-theme="donker"] .onderbalk { background: rgba(27, 25, 48, .94); }
html[data-theme="donker"] .c-goud { background: #38280c; }


/* =====================================================================
   Rustig aan met bewegen als iemand dat zo heeft ingesteld
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* =====================================================================
   Vakpagina
   ===================================================================== */

.vakkop {
    position: relative;
    border-radius: 26px;
    padding: 28px 30px;
    margin-bottom: 20px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(118deg, var(--k1, #ff2793), var(--k2, #168bff));
    box-shadow: var(--schaduw-l);
}

.vakkop-tekst { position: relative; z-index: 2; max-width: 62%; }

.vakkop h1 {
    margin: 0 0 4px;
    font-size: clamp(25px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.vakkop p { margin: 0; opacity: .92; font-size: 15.5px; }

.vakkop-tekening { position: absolute; right: 0; top: 0; height: 100%; width: 42%; z-index: 1; }

.terug {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--grijs);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.terug:hover { color: var(--nacht); }

/* --- toets op komst --------------------------------------------------- */

.toetskaart {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    background: var(--wit);
    border-radius: var(--rond);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--schaduw);
}

.toetskaart h3 { margin: 0 0 3px; font-size: 18px; font-weight: 800; }
.toetskaart .wanneer { color: var(--grijs); font-size: 14px; margin: 0 0 14px; }

.wanneer b { color: var(--roze); }

.meter {
    height: 10px;
    background: var(--lijn);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.meter i {
    display: block;
    height: 100%;
    width: var(--deel, 0%);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--roze), var(--lila));
    transition: width .5s ease;
}

.meter-tekst { font-size: 14px; color: var(--grijs); margin: 0; }
.meter-tekst b { color: var(--nacht); }

.toetskaart-knop { display: flex; flex-direction: column; gap: 9px; min-width: 190px; }

/* --- woordenlijsten --------------------------------------------------- */

.delen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.deel {
    display: block;
    background: var(--wit);
    border-radius: var(--rond);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--schaduw);
    transition: transform .16s;
}

.deel:hover { transform: translateY(-3px); }

.deel-plaat {
    height: 76px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--k1, #ff2793), var(--k2, #168bff));
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .02em;
}

.deel-body { padding: 13px 16px 16px; }
.deel-naam { margin: 0 0 2px; font-weight: 700; font-size: 15.5px; }
.deel-aantal { margin: 0 0 10px; font-size: 13px; color: var(--grijs); }

/* --- lastige woorden -------------------------------------------------- */

.lastig { list-style: none; margin: 0; padding: 0; }

.lastig li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--lijn);
    font-size: 15px;
}

.lastig li:first-child { border-top: none; }
.lastig .fr { font-weight: 700; }
.lastig .nl { color: var(--grijs); text-align: right; }

/* =====================================================================
   Oefenen
   ===================================================================== */

.oefenbalk {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 580px;
    margin: 0 auto;
    padding: calc(16px + env(safe-area-inset-top)) 20px 14px;
}

.stop {
    font-size: 27px;
    line-height: 1;
    color: var(--grijs);
    text-decoration: none;
    padding: 0 4px;
}

.strook {
    flex: 1;
    height: 9px;
    background: var(--lijn);
    border-radius: 999px;
    overflow: hidden;
}

.strook i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--roze), var(--lila));
    transition: width .3s ease;
}

.strook-tel { font-size: 13px; color: var(--grijs); min-width: 56px; text-align: right; font-weight: 600; }

.oefenblad {
    max-width: 580px;
    margin: 0 auto;
    padding: 6px 20px calc(36px + env(safe-area-inset-bottom));
}

.oefenkaart {
    background: var(--wit);
    border-radius: 26px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--schaduw-l);
}

.oefenlabel {
    display: block;
    font-size: 14px;
    color: var(--grijs);
    margin-bottom: 16px;
    font-weight: 600;
}

.oefenwoord {
    font-size: clamp(28px, 7vw, 34px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0 0 20px;
    word-break: break-word;
}

.oefenvertaling { font-size: 22px; color: var(--roze); font-weight: 700; margin: 0 0 24px; }
.oefenhint { font-size: 15px; color: var(--grijs); margin: -12px 0 16px; }

.oefenveld {
    display: block;
    width: 100%;
    padding: 17px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--lijn);
    border-radius: 16px;
    background: var(--papier);
    color: inherit;
    font-family: inherit;
    -webkit-appearance: none;
}

.oefenveld:focus { outline: none; border-color: var(--roze); background: var(--wit); }

.letters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 13px;
}

.letters button {
    min-width: 44px;
    padding: 10px 0;
    font-size: 18px;
    border: 1px solid var(--lijn);
    border-radius: 11px;
    background: var(--wit);
    color: inherit;
    cursor: pointer;
}

.letters button:active { background: var(--roze-zacht); }

.weetniet {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    background: none;
    border: none;
    color: var(--grijs);
    font-size: 15px;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}

.uitslag.is-goed { background: linear-gradient(135deg, #e7fbf3, #d6f7ea); }
.uitslag.is-fout { background: linear-gradient(135deg, #ffeef4, #ffe0ea); }

.oordeel { font-size: 25px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.uitslag.is-goed .oordeel { color: #047857; }
.uitslag.is-fout .oordeel { color: #be123c; }
.juist { font-size: 26px; font-weight: 700; margin: 0 0 6px; word-break: break-word; }
.uitlegje { font-size: 15px; color: var(--grijs); margin: 0; }

/* =====================================================================
   Klaar-scherm en losse blokken
   ===================================================================== */

.midden { display: grid; place-items: center; min-height: 86vh; padding: 20px; }
.midden .kaart { width: 100%; max-width: 480px; text-align: center; padding: 32px 26px; }

.vinkje {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    font-size: 34px;
}

.grootcijfer { font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.bijschrift { color: var(--grijs); margin: 2px 0 18px; }

/* =====================================================================
   Inloggen
   ===================================================================== */

.inlogpagina {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(150deg, #0b1729 0%, #103a66 48%, #168bff 110%);
}

/* De hal: op de telefoon onder elkaar, op een breed scherm naast elkaar.
   Op de telefoon staat het inloggen vóór de uitleg, zodat ze er elke dag
   meteen bij kan zonder te schuiven. */
.inloghal {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1060px;
    display: grid;
    gap: 24px;
    grid-template-areas:
        "woord"
        "kaart"
        "punten";
}

.inlogwoord  { grid-area: woord; width: 100%; max-width: 420px; color: #fff; }
.inlogpunten { grid-area: punten; }
.inlogkaart  { grid-area: kaart; }

.inlogwoord .inlogleus { text-align: left; margin-top: 10px; }

.inlogtitel {
    margin: 12px 0 6px;
    font-size: clamp(34px, 11vw, 54px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}

.inlogpunten { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 13px; }

.inlogpunten li { display: flex; align-items: flex-start; gap: 13px; }

.inlogpunt-teken {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .16);
}

.inlogpunt-teken svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.8; }

.inlogpunt-tekst { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.inlogpunt-tekst b { display: block; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 1px; }

.inlogkaart { width: 100%; max-width: 380px; color: #fff; }
.inlogkaart h1 { font-size: 30px; font-weight: 800; margin: 14px 0 22px; letter-spacing: -.02em; }
.inlogkaart label { display: block; margin-bottom: 15px; font-size: 14.5px; opacity: .9; font-weight: 600; }

.inlogkop {
    margin: 0 0 18px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.inloghint {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
    color: rgba(255, 255, 255, .6);
}

.inlogkaart input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 16px;
    font-size: 17px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-family: inherit;
}

.inlogkaart input::placeholder { color: rgba(255, 255, 255, .5); }
.inlogkaart input:focus { outline: 2px solid var(--roze); background: rgba(255, 255, 255, .2); }

.waarschuwing {
    background: rgba(255, 39, 147, .25);
    border-radius: 13px;
    padding: 12px 15px;
    margin-bottom: 18px;
    font-size: 15px;
}

.knop-breed { width: 100%; }

/* =====================================================================
   Beheer en formulieren
   ===================================================================== */

.vel { max-width: 760px; }
.vel label { display: block; margin-bottom: 16px; font-size: 14.5px; font-weight: 600; }

.vel input[type=text], .vel input[type=date], .vel input[type=password],
.vel input[type=email], .vel input[type=number],
.vel select, .vel textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 13px;
    font-size: 16px;
    font-weight: 500;
    border: 1.5px solid var(--lijn);
    border-radius: 13px;
    background: var(--papier);
    color: inherit;
    font-family: inherit;
}

.vel textarea { min-height: 190px; line-height: 1.55; }
.vel input:focus, .vel select:focus, .vel textarea:focus { outline: none; border-color: var(--lila); }
.vel small { display: block; margin-top: 6px; color: var(--grijs); font-size: 13px; font-weight: 500; }
.vel code { background: var(--lila-zacht); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

.tweeluik { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.melding {
    background: linear-gradient(100deg, #d1fae5, #ccfbf1);
    color: #065f46;
    border-radius: 15px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-weight: 600;
}

.lijstje { list-style: none; margin: 0 0 16px; padding: 0; }

.lijstje a {
    display: block;
    padding: 14px 16px;
    margin-bottom: 9px;
    border: 1.5px solid var(--lijn);
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.lijstje a.is-aan { border-color: var(--roze); background: var(--roze-zacht); }
.lijstje span { display: block; font-size: 13px; color: var(--grijs); font-weight: 500; margin-top: 2px; }

.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel td { padding: 5px 5px 5px 0; vertical-align: middle; }
.tabel tr { border-bottom: 1px solid var(--lijn); }

.tabel input[type=text] {
    width: 100%;
    padding: 9px;
    border: 1.5px solid var(--lijn);
    border-radius: 10px;
    background: var(--wit);
    color: inherit;
    font-family: inherit;
}

.mini {
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--lijn);
    border-radius: 10px;
    background: var(--wit);
    color: inherit;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.mini-weg { color: var(--roze); font-size: 17px; line-height: 1; padding: 7px 11px; }

.woordrij { display: contents; }

.stappenlijst { list-style: none; margin: 10px 0 20px; padding: 0; text-align: left; }
.stappenlijst li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; }
.stappenlijst li::before { content: "✓"; position: absolute; left: 0; color: var(--groen); font-weight: 700; }

.foutregel { color: #be123c; font-size: 15px; }

.wachtrij { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-bottom: 11px; }
.wachtrij span { min-width: 130px; font-weight: 600; font-size: 15px; }
.wachtrij input { flex: 1; min-width: 160px; padding: 11px; border: 1.5px solid var(--lijn);
                  border-radius: 11px; background: var(--wit); color: inherit; font-family: inherit; }

@media (max-width: 680px) {
    .delen { grid-template-columns: 1fr; }
    .toetskaart { grid-template-columns: 1fr; }
    .toetskaart-knop { min-width: 0; }
    .tweeluik { grid-template-columns: 1fr; }
}

/* =====================================================================
   Kleine opmaak-regeltjes die anders in de pagina zelf zouden staan
   ===================================================================== */

.oefenkaart form .knop { margin-top: 16px; }
.uitslag .knop         { margin-top: 18px; }

.rij-datum       { color: var(--grijs); font-size: 14px; font-weight: 600; }
.meter-notitie   { margin-top: 8px; }
.vakkop-tekening { opacity: .75; }
.leeg            { color: var(--grijs); margin: 0; }
.reeks-getal     { color: var(--roze); }

.bt-lijn { stroke: #fff; fill: none; opacity: .45; stroke-width: 2.4; }
.bt-pret { opacity: .7; color: #fff; }
.bt-bol  { fill: #fff; opacity: .1; }

/* =====================================================================
   Woordenlijst
   ===================================================================== */

.kiezer { margin-bottom: 18px; }

.kiezer select {
    width: 100%;
    max-width: 420px;
    padding: 13px 15px;
    font-size: 15.5px;
    font-weight: 600;
    font-family: inherit;
    color: inherit;
    background: var(--wit);
    border: 1.5px solid var(--lijn);
    border-radius: 14px;
    -webkit-appearance: none;
    appearance: none;
}

.kiezer select:focus { outline: none; border-color: var(--lila); }

.legenda {
    margin: 0 0 16px;
    color: var(--grijs);
    font-size: 14px;
    line-height: 1.6;
}

.woordlijst { list-style: none; margin: 0; padding: 0; }

.woordlijst li {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--lijn);
    font-size: 15.5px;
}

.woordlijst li:first-child { border-top: none; }
.woordlijst .fr { font-weight: 700; }
.woordlijst .nl { color: var(--grijs); text-align: right; }

.woordlijst-deel {
    display: block;
    margin-top: 14px;
    padding: 9px 0 5px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lila);
    border-top: 1px solid var(--lijn);
}

.bollen { display: flex; gap: 5px; }

.bollen i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid #cfc9e4;
    background: transparent;
}

.bollen i.is-aan {
    border-color: transparent;
    background: linear-gradient(135deg, var(--roze), var(--lila));
}

.klaar-knoppen { margin-top: 20px; display: grid; gap: 10px; }
.klaar-knoppen .bijschrift { margin: 0 0 4px; }

/* =====================================================================
   Losse pagina's zonder menu (installeren, check)
   ===================================================================== */

.losblad {
    max-width: 620px;
    margin: 0 auto;
    padding: calc(28px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom));
}

.losblad .kaart { margin-bottom: 18px; }
.losblad h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; }
.kaart-midden { text-align: center; }

.vel .vinkregel, .vinkregel {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    line-height: 1.5;
}

.vinkregel input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }

.juist-label { margin: 0 0 4px; font-size: 14px; color: var(--grijs); font-weight: 600; }
.juist-label:empty { display: none; }

.padenlijst { margin: 8px 0 14px; padding-left: 20px; color: var(--grijs); font-size: 14px; line-height: 1.8; }
.padenlijst li { word-break: break-all; }

/* =====================================================================
   Meekijken
   ===================================================================== */

.banner-rustig { background: linear-gradient(120deg, #4c3a9e, #7c3aed 55%, #a855f7); }
.banner-rustig h1 { font-size: clamp(24px, 5vw, 30px); }

.daglijst, .bezoeklijst { list-style: none; margin: 0; padding: 0; }

.daglijst li {
    display: grid;
    grid-template-columns: 1fr 90px 58px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--lijn);
    font-size: 15px;
}

.daglijst li:first-child { border-top: none; }
.daglijst-dag { font-weight: 600; }
.daglijst-dag small { display: block; color: var(--grijs); font-weight: 500; font-size: 12.5px; }

.daglijst-balk {
    height: 8px;
    border-radius: 999px;
    background: var(--lijn);
    overflow: hidden;
}

.daglijst-balk i {
    display: block;
    width: var(--deel, 0%);
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--roze), var(--lila));
}

.daglijst-cijfer { text-align: right; font-size: 14px; color: var(--grijs); }
.daglijst-cijfer b { color: var(--nacht); font-size: 15.5px; }

.bezoeklijst li {
    padding: 9px 0 9px 22px;
    border-top: 1px solid var(--lijn);
    font-size: 15px;
    position: relative;
}

.bezoeklijst li:first-child { border-top: none; }

.bezoeklijst li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--roze), var(--lila));
}

@media (max-width: 520px) {
    .daglijst li { grid-template-columns: 1fr 60px 52px; }
}

/* =====================================================================
   Luisteren
   ===================================================================== */

.klankrij { display: flex; gap: 9px; justify-content: center; margin: -8px 0 20px; }

.klankrij .luidspreker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    color: #0b63c7;
    background: var(--lila-zacht);
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.klankrij .luidspreker svg { width: 17px; height: 17px; }
.klankrij .luidspreker:active { background: var(--roze-zacht); color: var(--roze); }

.luidspreker-klein {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 5px;
    padding: 0;
    vertical-align: -7px;
    color: var(--lila);
    background: none;
    border: none;
    cursor: pointer;
}

.luidspreker-klein svg { width: 17px; height: 17px; }
.luidspreker-klein:active { color: var(--roze); }

/* =====================================================================
   Donkere stand, deel twee
   ---------------------------------------------------------------------
   Een paar kaarten hebben een eigen lichte achtergrond. In de donkere
   stand wordt de tekst licht, en dan valt die tegen zo'n lichte kaart
   weg. Daarom zetten we hier voor die kaarten de kleuren allebei vast.
   ===================================================================== */

.uitslag.is-goed, .uitslag.is-fout { color: #241c3a; }
.uitslag .juist      { color: #241c3a; }
.uitslag .juist-label,
.uitslag .uitlegje   { color: #5b5280; }

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) .uitslag.is-goed {
        background: linear-gradient(135deg, #0f3b2c, #0b2f24);
        color: #d7fbee;
    }
html:not([data-theme="licht"]) .uitslag.is-fout {
        background: linear-gradient(135deg, #46142b, #350f21);
        color: #ffe2ec;
    }
html:not([data-theme="licht"]) .uitslag.is-goed .oordeel { color: #4ade80; }
html:not([data-theme="licht"]) .uitslag.is-fout .oordeel { color: #fb7185; }
html:not([data-theme="licht"]) .uitslag .juist { color: inherit; }
html:not([data-theme="licht"]) .uitslag .juist-label,
html:not([data-theme="licht"]) .uitslag .uitlegje { color: rgba(255, 255, 255, .72); }
html:not([data-theme="licht"]) .c-lila { color: #c4b5fd; }
html:not([data-theme="licht"]) .c-blauw { color: #7dd3fc; }
html:not([data-theme="licht"]) .c-goud { color: #fbbf24; }
html:not([data-theme="licht"]) .vak-toets.is-rustig { color: #c4b5fd; }
html:not([data-theme="licht"]) .klankrij .luidspreker { background: #2b2450; color: #cdbdff; }
html:not([data-theme="licht"]) .klankrij .luidspreker:active { background: #3a1030; color: var(--roze); }
html:not([data-theme="licht"]) .melding {
        background: linear-gradient(100deg, #0f3b2c, #0b2f24);
        color: #a7f3d0;
    }
html:not([data-theme="licht"]) .bollen i { border-color: #403a62; }
html:not([data-theme="licht"]) .mini,
html:not([data-theme="licht"]) .tabel input[type=text],
html:not([data-theme="licht"]) .vel input[type=email],
html:not([data-theme="licht"]) .wachtrij input,
html:not([data-theme="licht"]) .kiezer select,
html:not([data-theme="licht"]) .oefenveld { background: var(--wit); }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] .uitslag.is-goed {
        background: linear-gradient(135deg, #0f3b2c, #0b2f24);
        color: #d7fbee;
    }
html[data-theme="donker"] .uitslag.is-fout {
        background: linear-gradient(135deg, #46142b, #350f21);
        color: #ffe2ec;
    }
html[data-theme="donker"] .uitslag.is-goed .oordeel { color: #4ade80; }
html[data-theme="donker"] .uitslag.is-fout .oordeel { color: #fb7185; }
html[data-theme="donker"] .uitslag .juist { color: inherit; }
html[data-theme="donker"] .uitslag .juist-label,
html[data-theme="donker"] .uitslag .uitlegje { color: rgba(255, 255, 255, .72); }
html[data-theme="donker"] .c-lila { color: #c4b5fd; }
html[data-theme="donker"] .c-blauw { color: #7dd3fc; }
html[data-theme="donker"] .c-goud { color: #fbbf24; }
html[data-theme="donker"] .vak-toets.is-rustig { color: #c4b5fd; }
html[data-theme="donker"] .klankrij .luidspreker { background: #2b2450; color: #cdbdff; }
html[data-theme="donker"] .klankrij .luidspreker:active { background: #3a1030; color: var(--roze); }
html[data-theme="donker"] .melding {
        background: linear-gradient(100deg, #0f3b2c, #0b2f24);
        color: #a7f3d0;
    }
html[data-theme="donker"] .bollen i { border-color: #403a62; }
html[data-theme="donker"] .mini,
html[data-theme="donker"] .tabel input[type=text],
html[data-theme="donker"] .vel input[type=email],
html[data-theme="donker"] .wachtrij input,
html[data-theme="donker"] .kiezer select,
html[data-theme="donker"] .oefenveld { background: var(--wit); }


.oefenpaar {
    margin: -2px 0 14px;
    font-size: 17px;
    font-weight: 600;
    color: var(--grijs);
}

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) .uitslag .oefenpaar { color: rgba(255, 255, 255, .66); }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] .uitslag .oefenpaar { color: rgba(255, 255, 255, .66); }


/* =====================================================================
   Dagtoets
   ===================================================================== */

.strook i.strook-vol { width: var(--deel, 0%); }

.vinkje-toets { background: linear-gradient(135deg, var(--lila), var(--blauw)); }
.vinkje-toets svg { width: 34px; height: 34px; }

.toetskaart-rustig { box-shadow: var(--schaduw); }
.toetsuitleg { margin: 16px 0 0; font-size: 13.5px; }

.uitslagkaart { padding: 30px 26px; }
.uitslagkaart h2 { margin: 6px 0 4px; font-size: 21px; letter-spacing: -.02em; }
.uitslagkaart.is-goed { background: linear-gradient(135deg, #e7fbf3, #d6f7ea); color: #10402f; }
.uitslagkaart.is-fout { background: linear-gradient(135deg, #ffeef4, #ffe0ea); color: #4a1226; }
.uitslagkaart .bijschrift { color: inherit; opacity: .72; }

.toetscijfer {
    margin: 0;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}

.uitslagkaart.is-goed .toetscijfer { color: #047857; }
.uitslagkaart.is-fout .toetscijfer { color: #be123c; }

.antwoordlijst { list-style: none; margin: 0; padding: 0; }

.antwoordlijst li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 11px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid var(--lijn);
}

.antwoordlijst li:first-child { border-top: none; }

.antwoord-merk {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #fff;
    background: var(--groen);
}

.antwoordlijst .is-fout .antwoord-merk { background: #e11d48; font-size: 17px; }

.antwoord-tekst { display: block; font-size: 15.5px; line-height: 1.45; }
.antwoord-vraag { display: block; font-weight: 700; }
.antwoord-fout  { display: block; color: #be123c; text-decoration: line-through; }
.antwoord-goed  { display: block; color: var(--grijs); }

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) .uitslagkaart.is-goed { background: linear-gradient(135deg, #0f3b2c, #0b2f24); color: #d7fbee; }
html:not([data-theme="licht"]) .uitslagkaart.is-fout { background: linear-gradient(135deg, #46142b, #350f21); color: #ffe2ec; }
html:not([data-theme="licht"]) .uitslagkaart.is-goed .toetscijfer { color: #4ade80; }
html:not([data-theme="licht"]) .uitslagkaart.is-fout .toetscijfer { color: #fb7185; }
html:not([data-theme="licht"]) .antwoord-fout { color: #fb7185; }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] .uitslagkaart.is-goed { background: linear-gradient(135deg, #0f3b2c, #0b2f24); color: #d7fbee; }
html[data-theme="donker"] .uitslagkaart.is-fout { background: linear-gradient(135deg, #46142b, #350f21); color: #ffe2ec; }
html[data-theme="donker"] .uitslagkaart.is-goed .toetscijfer { color: #4ade80; }
html[data-theme="donker"] .uitslagkaart.is-fout .toetscijfer { color: #fb7185; }
html[data-theme="donker"] .antwoord-fout { color: #fb7185; }


.proeflijst { list-style: none; margin: 0; padding: 0; }

.proeflijst li {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--lijn);
}

.proeflijst li:first-child { border-top: none; }

.proefcijfer {
    display: grid;
    place-items: center;
    height: 42px;
    border-radius: 13px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.proefcijfer.is-goed { background: #d9f6ea; color: #047857; }
.proefcijfer.is-fout { background: var(--roze-zacht); color: #be123c; }

.proeftekst { display: block; }
.proefvak { display: block; font-weight: 600; font-size: 15px; }
.proefwanneer { display: block; color: var(--grijs); font-size: 13px; }
.proefscore { font-size: 14px; color: var(--grijs); }
.proefscore b { color: var(--nacht); font-size: 15.5px; }

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) .proefcijfer.is-goed { background: #0f3b2c; color: #4ade80; }
html:not([data-theme="licht"]) .proefcijfer.is-fout { background: #46142b; color: #fb7185; }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] .proefcijfer.is-goed { background: #0f3b2c; color: #4ade80; }
html[data-theme="donker"] .proefcijfer.is-fout { background: #46142b; color: #fb7185; }


/* =====================================================================
   Uitleg vooraf
   ===================================================================== */

.vinkje svg { width: 32px; height: 32px; }

.stappen {
    list-style: none;
    counter-reset: stap;
    margin: 0;
    padding: 0;
}

.stappen li {
    counter-increment: stap;
    position: relative;
    padding: 13px 0 13px 42px;
    border-top: 1px solid var(--lijn);
    font-size: 15.5px;
    line-height: 1.55;
}

.stappen li:first-child { border-top: none; }

.stappen li::before {
    content: counter(stap);
    position: absolute;
    left: 0;
    top: 13px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--roze), var(--lila));
}

.stappen i { font-style: normal; font-weight: 600; color: var(--roze); }

/* =====================================================================
   Bovenbalk op de telefoon, en de proefdag
   ===================================================================== */

.topbalk { display: none; }

.proefbalk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 11px 15px;
    border: 1.5px dashed var(--lijn);
    border-radius: 15px;
    font-size: 14px;
    color: var(--grijs);
}

.proefbalk.is-verschoven {
    border-style: solid;
    border-color: var(--lila);
    background: var(--lila-zacht);
    color: #5b21b6;
}

.proefbalk b { color: var(--nacht); }
.proefbalk.is-verschoven b { color: #4c1d95; }
.proefbalk i { font-style: normal; opacity: .75; }

.proefbalk-knoppen { display: flex; align-items: center; gap: 7px; }

.proefbalk-knoppen a {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    border-radius: 11px;
    background: var(--wit);
    border: 1.5px solid var(--lijn);
    color: inherit;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.proefbalk-terug { font-size: 13.5px !important; font-weight: 600 !important; }

@media (max-width: 680px) {
    .topbalk {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
    }

    .topbalk-naam { font-size: 15px; font-weight: 700; }
    .topbalk-knoppen { display: flex; align-items: center; gap: 8px; }

    .topbalk-knoppen a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 36px;
        padding: 0 12px;
        border-radius: 12px;
        background: var(--wit);
        border: 1.5px solid var(--lijn);
        color: var(--grijs);
        text-decoration: none;
        font-size: 13.5px;
        font-weight: 600;
    }

    .topbalk-knoppen svg { width: 18px; height: 18px; }
    .topbalk-uit { color: var(--roze) !important; }
}

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) .proefbalk.is-verschoven { background: #102537; border-color: #0b63c7; color: #cfe6ff; }
html:not([data-theme="licht"]) .proefbalk.is-verschoven b { color: #f1eeff; }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] .proefbalk.is-verschoven { background: #102537; border-color: #0b63c7; color: #cfe6ff; }
html[data-theme="donker"] .proefbalk.is-verschoven b { color: #f1eeff; }


/* =====================================================================
   De planning per dag
   ===================================================================== */

.planlijst { list-style: none; margin: 0; padding: 0; }

.planlijst a {
    display: grid;
    grid-template-columns: 1fr auto 44px;
    gap: 12px;
    align-items: center;
    padding: 12px 10px;
    margin: 0 -10px;
    border-top: 1px solid var(--lijn);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.planlijst li:first-child a { border-top: none; }
.planlijst a:hover { background: var(--lila-zacht); }

.plandag { font-weight: 600; font-size: 15px; }
.plandag small { display: block; color: var(--grijs); font-weight: 500; font-size: 12.5px; }
.planwat { font-size: 14px; color: var(--grijs); text-align: right; }

.plantotaal {
    display: grid;
    place-items: center;
    height: 34px;
    border-radius: 11px;
    background: var(--lila-zacht);
    color: #0b63c7;
    font-weight: 800;
    font-size: 15px;
}

.planlijst .is-nu .plandag { color: var(--roze); }
.planlijst .is-nu .plantotaal { background: var(--roze-zacht); color: var(--roze); }
.planlijst .is-toets .planwat b { color: var(--roze); }

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) .plantotaal { background: #102537; color: #c4b5fd; }
html:not([data-theme="licht"]) .planlijst .is-nu .plantotaal { background: #3a1030; color: #ff6ec4; }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] .plantotaal { background: #102537; color: #c4b5fd; }
html[data-theme="donker"] .planlijst .is-nu .plantotaal { background: #3a1030; color: #ff6ec4; }


.planregel {
    display: grid;
    grid-template-columns: 1fr auto 44px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--lijn);
}

.planlijst li:first-child .planregel { border-top: none; }

.toetskaart-verder { border: 1.5px solid var(--lila); }
.toetskaart-verder h3 { color: #0b63c7; }

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) .toetskaart-verder { border-color: #0b63c7; }
html:not([data-theme="licht"]) .toetskaart-verder h3 { color: #c4b5fd; }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] .toetskaart-verder { border-color: #0b63c7; }
html[data-theme="donker"] .toetskaart-verder h3 { color: #c4b5fd; }


/* =====================================================================
   De grote banner met eigen foto
   ---------------------------------------------------------------------
   Staat er een foto in de map fotos, dan komt die erachter. Zo niet,
   dan blijft het verloop staan en ziet het er nog steeds goed uit.
   ===================================================================== */

.held {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 30px 28px 26px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: linear-gradient(118deg, var(--k1, #ff2793), var(--k2, #168bff));
    box-shadow: var(--schaduw-l);
}

.held-foto {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
}

.held-waas {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg,
            rgba(11, 23, 41, .78) 0%,
            rgba(11, 23, 41, .54) 30%,
            color-mix(in srgb, var(--k1, #ff2793) 40%, transparent) 55%,
            color-mix(in srgb, var(--k2, #168bff) 20%, transparent) 78%,
            transparent 100%),
        linear-gradient(0deg, rgba(11, 23, 41, .35) 0%, transparent 55%);
}

.held-inhoud { position: relative; z-index: 3; max-width: 70%; }

.held-titel {
    margin: 0;
    font-size: clamp(38px, 8vw, 72px);
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.035em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 0 rgba(11, 23, 41, .22), 0 10px 34px rgba(11, 23, 41, .6);
}

.held-lint {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 17px 6px;
    border-radius: 999px;
    background: var(--roze);
    color: #fff;
    font-size: clamp(14px, 2.4vw, 19px);
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    transform: rotate(-2deg);
    box-shadow: 0 6px 18px rgba(255, 39, 147, .4);
}

.held-onder { margin: 12px 0 0; font-size: 15.5px; opacity: .95; max-width: 34em; }

.held-krabbel { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* Het kaartje met de reeks, rechtsboven in de banner. */
.held-reeks {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .93);
    color: #0b1729;
    box-shadow: 0 10px 26px rgba(11, 23, 41, .22);
    backdrop-filter: blur(6px);
}

.held-reeks-vlam { font-size: 22px; line-height: 1; }
.held-reeks b { display: block; font-size: 15px; color: #0b1729; }
.held-reeks small { display: block; font-size: 12.5px; color: #6b6590; }
.held-reeks-bollen { display: flex; gap: 5px; margin-top: 6px; }

.held-reeks-bollen i {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #e4e0f2;
    display: grid;
    place-items: center;
    font-size: 9px;
    color: #fff;
    font-style: normal;
}

.held-reeks-bollen i.is-aan { background: linear-gradient(135deg, var(--roze), var(--lila)); }

@media (max-width: 680px) {
    .held { min-height: 190px; padding: 22px 20px 20px; }
    .held-inhoud { max-width: 100%; }
    .held-reeks { position: static; margin-top: 16px; align-self: flex-start; }
    .held-waas { background: linear-gradient(170deg,
        rgba(11, 23, 41, .30) 0%,
        rgba(11, 23, 41, .52) 45%,
        color-mix(in srgb, var(--k1, #ff2793) 62%, rgba(11, 23, 41, .6)) 100%); }
}

/* =====================================================================
   De drie dingen die je vandaag kunt doen
   ===================================================================== */

.doetegels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.doetegel {
    position: relative;
    display: block;
    padding: 16px 16px 54px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    background: var(--t1, var(--roze-zacht));
    transition: transform .15s ease;
}

.doetegel:hover { transform: translateY(-3px); }

.doetegel-plaat {
    display: grid;
    place-items: center;
    height: 104px;
    margin: -4px 0 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .55);
}

.doetegel-plaat svg { width: 62px; height: 62px; }
.doetegel h4 { margin: 0 0 3px; font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; }
.doetegel p  { margin: 0; font-size: 13px; color: var(--grijs); line-height: 1.4; }

.doetegel-pijl {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--wit);
    color: var(--roze);
    font-size: 15px;
    font-weight: 700;
    box-shadow: var(--schaduw);
}

.doetegel.is-uit { opacity: .55; }

@media (max-width: 680px) {
    .doetegels { grid-template-columns: 1fr; }
}

/* =====================================================================
   De ronde voortgangsmeter
   ===================================================================== */

.ringblok { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 16px;
           align-items: center; }
.ring { position: relative; width: 118px; height: 118px; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring .ring-leeg { stroke: var(--lijn); }
.ring .ring-vol  { stroke: url(#ringkleur); }

.ring-tekst {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.ring-getal { font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.ring-naam  { font-size: 12.5px; color: var(--grijs); }

.ringrij { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.ringrij li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px;
             align-items: center; }
.ringrij svg { width: 26px; height: 26px; }
.ringrij b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.ringrij span { font-size: 12.5px; color: var(--grijs); line-height: 1.35; }

@media (max-width: 420px) {
    .ringblok { grid-template-columns: 1fr; justify-items: center; text-align: left; }
    .ringrij { width: 100%; }
}

/* =====================================================================
   De woordenlijsten als tegels met foto
   ===================================================================== */

.lijsttegels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.lijsttegel {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: var(--wit);
    box-shadow: var(--schaduw);
    text-decoration: none;
    color: inherit;
}

.lijsttegel-plaat {
    position: relative;
    height: 112px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--k1, #ff2793), var(--k2, #168bff));
    background-size: cover;
    background-position: center;
}

.lijsttegel-merk {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 62px;
    height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #0b1729;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.02em;
    font-style: italic;
    box-shadow: 0 6px 16px rgba(11, 23, 41, .2);
}

.lijsttegel-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 13px 15px 15px;
}

.lijsttegel-naam { margin: 0; font-weight: 700; font-size: 15.5px; }
.lijsttegel-aantal { margin: 2px 0 0; font-size: 13px; color: var(--grijs); }

.lijsttegel-pijl {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 680px) {
    .lijsttegels { grid-template-columns: 1fr 1fr; }
    .lijsttegel-plaat { height: 88px; }
}

@media (max-width: 420px) {
    .lijsttegels { grid-template-columns: 1fr; }
}

.rij-kop-in { margin-top: 0; }
.tweeluik-breed { grid-template-columns: minmax(0, 2.1fr) minmax(250px, .9fr);
                  align-items: start; }
.c-lila-lijn { color: #7c3aed; }
.c-roze-lijn { color: var(--roze); }
.c-goud-lijn { color: #f59e0b; }

@media (max-width: 900px) {
    .tweeluik-breed { grid-template-columns: 1fr; }
}

.held-titel { word-break: break-word; }

.held-dag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 13.5px;
    font-weight: 600;
}

/* =====================================================================
   STUDYBEAT: missies, punten en badges
   ===================================================================== */

.missiekop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.missiekop h1 {
    margin: 0;
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 800;
    letter-spacing: -.03em;
}

.missiekop p { margin: 4px 0 0; color: var(--grijs); font-size: 15px; }

.missiexp {
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(255, 39, 147, .32);
}

.missies { display: grid; gap: 13px; margin-bottom: 20px; }

.missie {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 17px 19px;
    border-radius: 20px;
    background: var(--wit);
    box-shadow: var(--schaduw);
    border: 1.5px solid transparent;
}

.missie.is-klaar { border-color: var(--groen); background: linear-gradient(120deg, #eefcf6, #fff 60%); }
.missie.is-leeg  { opacity: .6; }

.missie-nr {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lila-zacht);
    color: #0b63c7;
    font-weight: 800;
    font-size: 17px;
}

.missie.is-klaar .missie-nr { background: var(--groen); color: #fff; }

.missie h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.missie p  { margin: 0; font-size: 13.5px; color: var(--grijs); }

.missie-balk {
    height: 7px;
    margin: 9px 0 5px;
    border-radius: 999px;
    background: var(--lijn);
    overflow: hidden;
}

.missie-balk i {
    display: block;
    width: var(--deel, 0%);
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--roze), var(--lila));
}

.missie-stand { font-size: 12.5px; }
.missie-rechts { display: grid; gap: 8px; justify-items: end; }

.missie-xp {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--roze-zacht);
    color: var(--roze);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

.missie.is-klaar .missie-xp { background: #d9f6ea; color: #047857; }
.missie-rechts .knop { padding: 11px 22px; font-size: 14.5px; }

@media (max-width: 560px) {
    .missie { grid-template-columns: 38px minmax(0, 1fr); }
    .missie-rechts { grid-column: 1 / -1; justify-items: stretch;
                     grid-template-columns: auto 1fr; align-items: center; }
    .missie-rechts .knop { text-align: center; }
}

/* De levelbalk */

.levelbalk {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 17px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    background: linear-gradient(120deg, #0b1729, #11314f 58%, #168bff);
    color: #fff;
    box-shadow: var(--schaduw-l);
}

.levelmerk {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    font-size: 23px;
    font-weight: 800;
}

.levelkop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.levelkop b { font-size: 17px; letter-spacing: -.02em; }
.levelkop span { font-size: 13px; opacity: .8; }

.levelstrook {
    height: 9px;
    margin: 9px 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
}

.levelstrook i {
    display: block;
    width: var(--deel, 0%);
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8ecbff, var(--roze));
}

.levelonder { margin: 0; font-size: 12.5px; opacity: .82; }
.levelonder b { opacity: 1; }

/* Het feestje als alles af is */

.feestkaart { background: linear-gradient(135deg, #fff0f8, #efe7ff); }
.feestkaart h2 { margin: 6px 0 2px; font-size: 22px; letter-spacing: -.02em; }
.feestxp {
    margin: 4px 0 2px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(120deg, var(--roze), var(--lila));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Badges */

.badgerij { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.badgerij li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 13px;
               align-items: center; opacity: .42; }
.badgerij li.is-aan { opacity: 1; }
.badgerij b { display: block; font-size: 15px; }
.badgerij small { display: block; font-size: 12.5px; color: var(--grijs); }

.badge-plaat {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--lijn);
    color: var(--grijs);
}

.badge-plaat svg { width: 24px; height: 24px; }

.is-aan .badge-plaat {
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
}

.nieuwebadges { border: 1.5px solid var(--roze); }
.nieuwebadges h3 { margin: 0 0 14px; font-size: 16px; }

.badgevak { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }

.badgekaart {
    padding: 20px 16px;
    border-radius: 20px;
    background: var(--wit);
    box-shadow: var(--schaduw);
    text-align: center;
    opacity: .5;
}

.badgekaart.is-aan { opacity: 1; }
.badgekaart h3 { margin: 12px 0 3px; font-size: 15.5px; }
.badgekaart p { margin: 0; font-size: 13px; color: var(--grijs); line-height: 1.45; }

.badgekaart-plaat {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 18px;
    background: var(--lijn);
    color: var(--grijs);
}

.badgekaart-plaat svg { width: 30px; height: 30px; }

.badgekaart.is-aan .badgekaart-plaat {
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 39, 147, .3);
}

.badgekaart-datum { display: block; margin-top: 9px; font-size: 12px; color: var(--grijs); }

.puntenlijst { list-style: none; margin: 0 0 14px; padding: 0; }
.puntenlijst li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0;
                  border-top: 1px solid var(--lijn); font-size: 15px; }
.puntenlijst li:first-child { border-top: none; }
.puntenlijst b { color: var(--roze); white-space: nowrap; }

.rij-link { font-size: 14px; font-weight: 600; color: var(--roze); text-decoration: none; }

@media (max-width: 680px) { .badgevak { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .badgevak { grid-template-columns: 1fr; } }

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) .missie.is-klaar { background: linear-gradient(120deg, #0f3b2c, var(--wit) 60%); }
html:not([data-theme="licht"]) .missie-xp { background: #3a1030; }
html:not([data-theme="licht"]) .missie.is-klaar .missie-xp { background: #0f3b2c; color: #4ade80; }
html:not([data-theme="licht"]) .missie-nr { background: #102537; color: #c4b5fd; }
html:not([data-theme="licht"]) .feestkaart { background: linear-gradient(135deg, #2b1040, #1b1930); }
html:not([data-theme="licht"]) .badge-plaat { background: #2b2450; }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] .missie.is-klaar { background: linear-gradient(120deg, #0f3b2c, var(--wit) 60%); }
html[data-theme="donker"] .missie-xp { background: #3a1030; }
html[data-theme="donker"] .missie.is-klaar .missie-xp { background: #0f3b2c; color: #4ade80; }
html[data-theme="donker"] .missie-nr { background: #102537; color: #c4b5fd; }
html[data-theme="donker"] .feestkaart { background: linear-gradient(135deg, #2b1040, #1b1930); }
html[data-theme="donker"] .badge-plaat { background: #2b2450; }


.badgerij-midden { margin: 16px 0 0; text-align: left; }

.wachtrij select {
    flex: 1;
    min-width: 150px;
    padding: 11px;
    border: 1.5px solid var(--lijn);
    border-radius: 11px;
    background: var(--wit);
    color: inherit;
    font-family: inherit;
    font-size: 15px;
}

.missiekaart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    border-radius: 22px;
    margin-bottom: 20px;
    background: linear-gradient(120deg, #fff0f8, #eef6ff);
    box-shadow: var(--schaduw);
}

.missiekaart h3 { margin: 0 0 3px; font-size: 17px; letter-spacing: -.02em; }
.missiekaart .missie-balk { margin-bottom: 0; }
.melding-rustig { background: linear-gradient(100deg, #f1ecff, #ffe4f4); color: #5b21b6; }

@media (max-width: 560px) {
    .missiekaart { grid-template-columns: 1fr; }
    .missiekaart .toetskaart-knop .knop { width: 100%; text-align: center; }
}

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) .missiekaart { background: linear-gradient(120deg, #2b1040, #10233a); }
html:not([data-theme="licht"]) .melding-rustig { background: linear-gradient(100deg, #102537, #3a1030); color: #cfe6ff; }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] .missiekaart { background: linear-gradient(120deg, #2b1040, #10233a); }
html[data-theme="donker"] .melding-rustig { background: linear-gradient(100deg, #102537, #3a1030); color: #cfe6ff; }


/* =====================================================================
   Woorden invoeren en nakijken
   ===================================================================== */

.melding-let { background: linear-gradient(100deg, #fff4d6, #ffe9ef); color: #92400e; }

.invoertabel td { padding: 4px 5px 4px 0; }
.invoer-vink { width: 30px; }
.invoer-vink input { width: 20px; height: 20px; }
.invoer-deel { width: 54px; }
.invoer-deel input { text-align: center; }

.invoertabel tr.is-twijfel { border-bottom: none; }
.invoertabel tr.is-twijfel input[type=text] { border-color: #f59e0b; background: #fffbf0; }

.twijfelregel {
    padding: 0 0 9px !important;
    font-size: 12.5px;
    color: #b45309;
}

.vel input[type=file] {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    font-size: 14px;
    border: 1.5px dashed var(--lijn);
    border-radius: 13px;
    background: var(--papier);
    color: inherit;
    font-family: inherit;
}

@media (prefers-color-scheme: dark) {
html:not([data-theme="licht"]) .melding-let { background: linear-gradient(100deg, #3a2a0c, #3a1020); color: #fde68a; }
html:not([data-theme="licht"]) .invoertabel tr.is-twijfel input[type=text] { background: #2a2208; border-color: #a16207; }
html:not([data-theme="licht"]) .twijfelregel { color: #fbbf24; }
}

/* dezelfde kleuren als iemand zelf donker kiest */
html[data-theme="donker"] .melding-let { background: linear-gradient(100deg, #3a2a0c, #3a1020); color: #fde68a; }
html[data-theme="donker"] .invoertabel tr.is-twijfel input[type=text] { background: #2a2208; border-color: #a16207; }
html[data-theme="donker"] .twijfelregel { color: #fbbf24; }


/* =====================================================================
   Luisterdictee
   ===================================================================== */

.vinkje-luister { background: linear-gradient(135deg, #f59e0b, var(--roze)); }
.vinkje-luister svg { width: 34px; height: 34px; }

.luisterbol { display: grid; place-items: center; margin: 4px 0 18px; }

.luisterknop {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(255, 39, 147, .4);
    transition: transform .15s ease;
}

.luisterknop svg { width: 46px; height: 46px; }
.luisterknop:active { transform: scale(.95); }

.uitslag .juist { color: inherit; }

/* =====================================================================
   Eigen beelden
   ===================================================================== */

.fotovakken {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.fotovak { position: relative; display: flex; flex-direction: column; }

.fotovak-plaat {
    height: 96px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-color: var(--lila-zacht);
    display: grid;
    place-items: center;
    margin-bottom: 8px;
}

.fotovak-plaat.is-leeg { border: 1.5px dashed var(--lijn); }
.fotovak-plaat span { font-size: 12.5px; color: var(--grijs); }
.fotovak-naam { margin: 0; font-size: 14px; font-weight: 700; }
.fotovak-wat { margin: 1px 0 9px; font-size: 12px; color: var(--grijs); line-height: 1.4;
                flex: 1; }

.fotovak-vel input[type=file] {
    width: 100%;
    padding: 7px;
    font-size: 11.5px;
    border: 1.5px solid var(--lijn);
    border-radius: 10px;
    background: var(--papier);
    color: inherit;
    font-family: inherit;
}

.fotovak-wis { position: absolute; top: 6px; right: 6px; }

.fotovak-wis .mini-weg {
    background: rgba(255, 255, 255, .92);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    display: grid;
    place-items: center;
    box-shadow: var(--schaduw);
}

/* Het inlogscherm met een eigen beeld erachter. */
.inlogfoto {
    position: fixed;
    inset: 0;
    background-image: var(--staand);
    background-size: cover;
    background-position: center 28%;
}

@media (min-width: 860px) {
    .inlogfoto { background-image: var(--liggend, var(--staand)); background-position: center 32%; }
    .inlogpagina.heeft-foto { align-items: center; padding-top: 24px; padding-bottom: 24px; }
    .inlogwaas {
        background:
            linear-gradient(100deg,
                rgba(11, 23, 41, .94) 0%,
                rgba(11, 23, 41, .82) 38%,
                rgba(11, 23, 41, .46) 66%,
                rgba(11, 23, 41, .18) 100%),
            linear-gradient(200deg, transparent 40%, rgba(255, 39, 147, .25) 100%);
    }

    /* Naast elkaar: links waar het over gaat, rechts het formulier. */
    .inloghal {
        grid-template-columns: 1fr minmax(340px, 400px);
        grid-template-areas:
            "woord  kaart"
            "punten kaart";
        align-content: center;
        align-items: start;
        gap: 22px 60px;
    }
    .inlogtitel { font-size: 58px; }
    .inlogkaart { max-width: none; align-self: center; }
}

.inlogwaas {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(11, 23, 41, .10) 0%,
            rgba(11, 23, 41, .34) 32%,
            rgba(11, 23, 41, .84) 56%,
            rgba(11, 23, 41, .94) 78%,
            rgba(11, 23, 41, .97) 100%),
        linear-gradient(200deg, transparent 40%, rgba(255, 39, 147, .3) 100%);
}

/* Met een foto erachter schuift alles naar onderen, zodat het beeld
   bovenaan te zien blijft en de letters op een rustig vlak staan. */
.inlogpagina.heeft-foto { align-items: end; padding-bottom: 6vh; padding-top: 30vh; }
.inlogpagina.heeft-foto .inlogkaart input { background: rgba(255, 255, 255, .13); }
.inlogpagina.heeft-foto .inlogkaart input::placeholder { color: rgba(255, 255, 255, .55); }

/* Het formulier staat op matglas, zodat het losstaat van het beeld. */
.inlogkaart {
    position: relative;
    z-index: 2;
    padding: 24px 22px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 24px 60px rgba(7, 15, 28, .45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.inlogkaart .onthoudregel input { accent-color: var(--roze); }

/* Een zachte gloed achter het formulier, in de kleuren van de app. */
.inloggloed {
    position: fixed;
    right: -14vw;
    bottom: -18vh;
    width: 72vw;
    height: 60vh;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 39, 147, .42) 0%, transparent 68%);
    filter: blur(42px);
    pointer-events: none;
    z-index: 1;
}

.inlogleus {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, .75);
}

.merkletter, .inlogmerk {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    flex: 0 0 auto;
}

.inlogmerk {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 26px;
    margin-bottom: 4px;
}

/* =====================================================================
   De knop voor licht of donker
   ===================================================================== */

.themaknop {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.themaknop svg { width: 20px; height: 20px; }
.themaknop .thema-maan { display: none; }
.themaknop.is-donker .thema-zon { display: none; }
.themaknop.is-donker .thema-maan { display: inline; }

/* In de zijbalk ziet hij eruit als de andere regels daar. */
.zijbalk-onder .themaknop {
    width: 100%;
    padding: 10px 14px;
    border-radius: 13px;
    color: rgba(255, 255, 255, .62);
    font-size: 14.5px;
    font-weight: 600;
}

.zijbalk-onder .themaknop:hover { background: rgba(255, 255, 255, .07); color: #fff; }

/* Op de telefoon staat hij in de bovenbalk, als los knopje. */
@media (max-width: 680px) {
    .topbalk-knoppen .themaknop {
        height: 36px;
        padding: 0 12px;
        border-radius: 12px;
        background: var(--wit);
        border: 1.5px solid var(--lijn);
        color: var(--grijs);
    }
}

/* En rechtsboven op het inlogscherm. */
.inlogthema {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 16px;
    z-index: 5;
}

.inlogthema .themaknop {
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* =====================================================================
   Tegels met een eigen beeld erachter
   ---------------------------------------------------------------------
   De tekst staat links, het beeld rechts, en daartussen ligt een zachte
   waas zodat de letters altijd leesbaar blijven. Die waas is in beide
   standen licht, want het beeld zelf is licht; de letters zijn dus ook
   in de donkere stand donker.
   ===================================================================== */

.doetegels { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.doetegel {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 148px;
    padding: 0;
    background: var(--t1, var(--roze-zacht));
}

.doetegel.heeft-beeld { color: #0b1729; }

/* Zonder eigen beeld staat de tekening groot en zacht aan de rechterkant,
   zodat zo'n tegel dezelfde vorm houdt als die met een foto. */
.doetegel:not(.heeft-beeld) .doetegel-plaat {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 128px;
    height: 128px;
    margin: 0;
    background: none;
    opacity: .5;
}

.doetegel:not(.heeft-beeld) .doetegel-plaat svg { width: 112px; height: 112px; }

.doetegel:not(.heeft-beeld) .doetegel-tekst {
    position: relative;
    z-index: 2;
    display: block;
    padding: 18px 18px 54px;
    max-width: 66%;
}

.doetegel:not(.heeft-beeld) h4 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.doetegel:not(.heeft-beeld) .doetegel-pijl {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 39, 147, .4);
}

.doetegel-beeld {
    position: absolute;
    inset: 0;
    background-image: var(--beeld);
    background-size: cover;
    background-position: center right;
}

.doetegel-waas {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(255, 255, 255, .96) 0%,
        rgba(255, 255, 255, .88) 30%,
        rgba(255, 255, 255, .42) 54%,
        rgba(255, 255, 255, 0) 76%);
}

.doetegel.heeft-beeld .doetegel-tekst {
    position: relative;
    z-index: 2;
    display: block;
    padding: 18px 18px 54px;
    max-width: 68%;
}

.doetegel.heeft-beeld h4 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: #0b1729;
}

.doetegel.heeft-beeld p { color: #4b4473; font-weight: 500; }

.doetegel.heeft-beeld .doetegel-pijl {
    z-index: 3;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 39, 147, .4);
}

@media (max-width: 680px) {
    .doetegel.heeft-beeld { min-height: 124px; }
    .doetegel.heeft-beeld .doetegel-tekst { padding: 16px 16px 50px; max-width: 62%; }
    .doetegel.heeft-beeld .doetegel-pijl { position: absolute; right: 14px; bottom: 14px; }
}

/* De waas hoeft in de donkere stand niet anders: het beeld blijft licht,
   dus donkere letters zijn daar juist goed leesbaar. */

/* Staat er een echte foto in de banner, dan hoeven mijn getekende
   toren en hartjes er niet meer overheen: die zitten dan in de weg. */
.held.heeft-foto .held-krabbel { display: none; }

.held.heeft-foto .held-waas {
    background:
        linear-gradient(100deg,
            rgba(11, 23, 41, .82) 0%,
            rgba(11, 23, 41, .52) 28%,
            rgba(11, 23, 41, .12) 52%,
            transparent 74%),
        linear-gradient(0deg, rgba(11, 23, 41, .42) 0%, transparent 48%);
}

@media (max-width: 680px) {
    .held.heeft-foto .held-waas {
        background: linear-gradient(170deg,
            rgba(11, 23, 41, .36) 0%,
            rgba(11, 23, 41, .58) 52%,
            rgba(11, 23, 41, .84) 100%);
    }
}

/* =====================================================================
   Een tegel met een donker beeld erachter
   ---------------------------------------------------------------------
   Daar moet de waas juist donker zijn en de letters licht. Het
   programma meet dat zelf bij het uploaden, dus je hoeft niets in te
   stellen.
   ===================================================================== */

.doetegel.op-donker { color: #fff; }

.doetegel.op-donker .doetegel-waas {
    background: linear-gradient(100deg,
        rgba(7, 15, 28, .92) 0%,
        rgba(7, 15, 28, .82) 30%,
        rgba(7, 15, 28, .38) 56%,
        rgba(7, 15, 28, 0) 78%);
}

.doetegel.op-donker h4 { color: #fff; }
.doetegel.op-donker p  { color: rgba(255, 255, 255, .78); }

.onthoudregel {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    opacity: .92;
}

.onthoudregel input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }

/* =====================================================================
   De voorpagina van studybeat.nl
   ---------------------------------------------------------------------
   Deze pagina heeft altijd zijn eigen donkere achtergrond, ook als de
   telefoon op licht staat. Zo ziet hij er voor iedereen hetzelfde uit
   en hoeft hier niets dubbel te worden opgeschreven voor donker.
   ===================================================================== */

.vooraan {
    --voor-vlak: rgba(255, 255, 255, .055);
    --voor-lijn: rgba(255, 255, 255, .11);
    --voor-tekst: rgba(255, 255, 255, .7);

    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    color: #fff;
    background:
        radial-gradient(900px 620px at 82% -8%, rgba(255, 39, 147, .3) 0%, transparent 62%),
        radial-gradient(760px 540px at 6% 22%, rgba(22, 139, 255, .16) 0%, transparent 60%),
        linear-gradient(170deg, #0f2238 0%, #0b1729 48%, #070f1c 100%);
    overflow-x: hidden;
}

/* --------------------------------- de balk bovenaan */
.vooraan-balk {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px max(18px, 4vw);
    padding-top: max(14px, env(safe-area-inset-top));
    background: rgba(7, 15, 28, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--voor-lijn);
}

.vooraan-merk {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.01em;
}

.vooraan-knoppen { display: flex; align-items: center; gap: 10px; }

.knop-klein { padding: 10px 17px; font-size: 14.5px; border-radius: 13px; }

.knop-rand {
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .26);
    color: #fff;
    box-shadow: none;
}

/* --------------------------------- de kop */
.voorheld {
    position: relative;
    padding: clamp(44px, 9vw, 96px) max(18px, 4vw) clamp(52px, 10vw, 104px);
    overflow: hidden;
}

.voorheld.heeft-beeld::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--beeld);
    background-size: cover;
    background-position: center 30%;
    opacity: .78;
}

.voorheld.heeft-beeld::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(185deg, rgba(7, 15, 28, .46) 0%, rgba(7, 15, 28, .78) 52%,
                        rgba(7, 15, 28, .97) 100%),
        linear-gradient(95deg, rgba(7, 15, 28, .82) 0%, rgba(7, 15, 28, .3) 62%, transparent 100%);
}

.voorheld-binnen { position: relative; z-index: 2; max-width: 680px; }

.voorheld-label {
    display: inline-block;
    margin: 0 0 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid var(--voor-lijn);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.voorheld-kop {
    margin: 0;
    font-size: clamp(32px, 7.2vw, 58px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.03em;
}

.voorheld-onder {
    margin: 18px 0 0;
    max-width: 34em;
    font-size: clamp(15.5px, 1.6vw, 18px);
    line-height: 1.55;
    color: var(--voor-tekst);
}

.voorheld-knoppen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.voorheld-leus {
    margin: 26px 0 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

/* --------------------------------- de blokken eronder */
.vooraan-vak { padding: clamp(34px, 6vw, 64px) max(18px, 4vw); max-width: 1120px; margin: 0 auto; }

.vooraan-kop {
    margin: 0 0 8px;
    font-size: clamp(23px, 3.4vw, 32px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.vooraan-uitleg {
    margin: 0 0 24px;
    max-width: 44em;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--voor-tekst);
}

.vooraan-rooster {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.vooraan-kaart {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 22px;
    background: var(--voor-vlak);
    border: 1px solid var(--voor-lijn);
}

.vooraan-kaart.heeft-beeld::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 148px;
    background-image: var(--beeld);
    background-size: cover;
    background-position: center;
    opacity: .34;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

.vooraan-kaart > * { position: relative; z-index: 2; }

.vooraan-teken {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    box-shadow: 0 6px 18px rgba(255, 39, 147, .3);
}

.vooraan-teken svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.8; }

.vooraan-kaart h3 {
    margin: 15px 0 7px;
    font-size: 17.5px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.vooraan-kaart p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--voor-tekst); }

/* --------------------------------- de drie stappen */
.vooraan-stappen {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.vooraan-stappen li {
    display: flex;
    gap: 15px;
    padding: 22px;
    border-radius: 22px;
    background: var(--voor-vlak);
    border: 1px solid var(--voor-lijn);
}

.vooraan-nummer {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid var(--voor-lijn);
    font-size: 17px;
    font-weight: 800;
}

.vooraan-stappen h3 { margin: 4px 0 6px; font-size: 16.5px; font-weight: 800; }
.vooraan-stappen p  { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--voor-tekst); }

/* --------------------------------- de vakken */
.vakmerken { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }

.vakmerk {
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, var(--k1, #168bff), var(--k2, #8ecbff));
}

/* --------------------------------- tot slot */
.vooraan-slot {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(34px, 6vw, 60px) max(18px, 4vw) clamp(40px, 7vw, 72px);
    text-align: center;
}

.vooraan-slot h2 { margin: 0 0 8px; font-size: clamp(23px, 3.4vw, 32px); font-weight: 800; }
.vooraan-slot p  { margin: 0 0 24px; font-size: 15.5px; color: var(--voor-tekst); }

.vooraan-voet {
    padding: 26px max(18px, 4vw) calc(30px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--voor-lijn);
    text-align: center;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .55);
}

.vooraan-voet p { margin: 0 0 5px; }
.vooraan-klein { font-size: 12.5px; color: rgba(255, 255, 255, .38); }

/* De onderbalk van de app hoort hier niet; dit is geen app-scherm. */
.vooraan ~ .onderbalk { display: none; }

/* --------------------------------- terug naar de voorpagina */
.terugknop {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.terugknop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.inlogthema { display: flex; align-items: center; gap: 10px; }

.inloghal-smal { max-width: 460px; }

@media (min-width: 860px) {
    .inloghal-smal { max-width: 460px; grid-template-columns: 1fr; grid-template-areas: "woord" "kaart"; gap: 24px; }
}

/* Vier kaarten staan mooier twee bij twee dan drie met eentje alleen. */
@media (min-width: 720px) {
    .vooraan-rooster-twee { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
    .vooraan-rooster-drie { grid-template-columns: repeat(3, 1fr); }
}

/* Op de telefoon krijgt het beeld in de kop wat meer ruimte. */
@media (max-width: 719px) {
    .voorheld.heeft-beeld { min-height: 74vh; display: flex; align-items: flex-end; }
    .voorheld.heeft-beeld::before { background-position: center 18%; opacity: .62; }
}

/* --------------------------------- het logo op de donkere schermen */
.vooraan-merk { display: inline-flex; align-items: center; text-decoration: none; }
.vooraan-merk .logo-header { width: 164px; }

.inlogtitel { margin: 0; }
.inloglogo { width: min(300px, 74vw); }

.verborgen {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* =====================================================================
   Klasgenoten en hun ouders
   ===================================================================== */

.tweeluik-kaarten { display: grid; gap: 16px; grid-template-columns: 1fr; }

@media (min-width: 780px) {
    .tweeluik-kaarten { grid-template-columns: 1fr 1fr; }
}

.tweeluik-kaarten .kaart h3 { margin: 0 0 14px; font-size: 17px; font-weight: 800; }

.gezinlijst { list-style: none; margin: 0; padding: 0; }

.gezinlijst li {
    display: grid;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid var(--lijn);
}

.gezinlijst li:last-child { border-bottom: none; padding-bottom: 0; }

.gezin-wie b { font-size: 15.5px; font-weight: 700; }
.gezin-wie small { display: block; font-size: 13px; color: var(--grijs); }

.gezin-kinderen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.gezin-merk {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 7px 6px 13px;
    border-radius: 999px;
    background: var(--lila-zacht);
    color: var(--lila);
    font-size: 13.5px;
    font-weight: 700;
}

.gezin-merk button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(22, 139, 255, .16);
    color: inherit;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.gezin-erbij { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.gezin-erbij select { flex: 1; min-width: 150px; }

@media (prefers-color-scheme: dark) {
    html:not([data-theme="licht"]) .gezin-merk { background: rgba(22, 139, 255, .18); color: #9ecfff; }
}
html[data-theme="donker"] .gezin-merk { background: rgba(22, 139, 255, .18); color: #9ecfff; }

.gezin-erbij select {
    padding: 11px 13px;
    border: 1.5px solid var(--lijn);
    border-radius: var(--rond-s);
    background: var(--wit);
    color: inherit;
    font-family: inherit;
    font-size: 15px;
}

/* =====================================================================
   Leerdoelen
   ===================================================================== */

.knoprij { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }

.doel-letter {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

/* --------------------------------- het doel van vandaag */
.doelvandaag { display: grid; gap: 12px; margin-bottom: 22px; }

@media (min-width: 760px) {
    .doelvandaag { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

.doelkaart { display: flex; gap: 14px; align-items: flex-start; }
.doelkaart h3 { margin: 2px 0 5px; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.doelkaart p  { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--grijs); }

.rij-meer { text-decoration: none; color: var(--lila); font-weight: 700; }

/* --------------------------------- de lijst met alle doelen */
.doellijst { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }

.doellijst li {
    padding: 18px;
    border-radius: var(--rond);
    background: var(--wit);
    border: 1px solid var(--lijn);
    box-shadow: var(--schaduw);
}

.doellijst li.is-af { border-color: var(--groen); }

.doel-kop { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.doel-kop h3 { margin: 2px 0 5px; font-size: 16.5px; font-weight: 800; }
.doel-tekst  { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--grijs); }
.doel-stand  { margin: 8px 0 0; font-size: 13.5px; color: var(--grijs); }

/* --------------------------------- de dagtabel */
.dagtabel td, .dagtabel th { vertical-align: top; }
.dagtabel td small { display: block; font-size: 11.5px; color: var(--roze); font-weight: 700; }
.dagtabel tr.is-vandaag { background: var(--roze-zacht); }
.dagtabel tr.is-toetsdag { background: var(--lila-zacht); }

.doel-merk {
    display: inline-block;
    margin: 0 5px 4px 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--lila-zacht);
    color: var(--lila);
    font-size: 12.5px;
    font-weight: 700;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="licht"]) .doellijst li { background: var(--wit); border-color: var(--lijn); }
    html:not([data-theme="licht"]) .doel-merk { background: rgba(22, 139, 255, .18); color: #9ecfff; }
    html:not([data-theme="licht"]) .dagtabel tr.is-vandaag { background: rgba(255, 39, 147, .14); }
    html:not([data-theme="licht"]) .dagtabel tr.is-toetsdag { background: rgba(22, 139, 255, .14); }
}

html[data-theme="donker"] .doellijst li { background: var(--wit); border-color: var(--lijn); }
html[data-theme="donker"] .doel-merk { background: rgba(22, 139, 255, .18); color: #9ecfff; }
html[data-theme="donker"] .dagtabel tr.is-vandaag { background: rgba(255, 39, 147, .14); }
html[data-theme="donker"] .dagtabel tr.is-toetsdag { background: rgba(22, 139, 255, .14); }

.doelvel { padding: 14px 0; border-bottom: 1px solid var(--lijn); }
.doelvel:last-child { border-bottom: none; padding-bottom: 0; }
.doelvel-kop { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.doelvel-kop input { flex: 1; min-width: 0; }
.doelvel textarea { width: 100%; margin-bottom: 10px; }

/* =====================================================================
   De voorpagina: menu, strook, duo en de beatknop
   ===================================================================== */

.vooraan-menu { display: none; gap: 24px; margin-left: 8px; }

.vooraan-menu a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
}

.vooraan-menu a:hover { color: #fff; }

@media (min-width: 900px) {
    .vooraan-menu { display: flex; }
    .vooraan-balk { gap: 26px; }
    .vooraan-merk { margin-right: 4px; }
    .vooraan-knoppen { margin-left: auto; }
}

/* --------------------------------- de strook met drie beloftes */
.vooraan-strook {
    border-top: 1px solid var(--voor-lijn);
    border-bottom: 1px solid var(--voor-lijn);
    background: rgba(255, 255, 255, .03);
}

.vooraan-strook-binnen {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px max(18px, 4vw);
}

.vooraan-strook p {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
}

.vooraan-strook svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--roze);
    stroke-width: 1.9;
}

/* --------------------------------- beeld naast tekst */
.vooraan-duo { display: grid; gap: 26px; align-items: center; }

@media (min-width: 860px) {
    .vooraan-duo { grid-template-columns: 1fr 1fr; gap: 44px; }
}

.vooraan-duo-beeld {
    min-height: 260px;
    border-radius: 22px;
    background-image: var(--beeld);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--voor-lijn);
}

@media (min-width: 860px) { .vooraan-duo-beeld { min-height: 380px; } }

.vooraan-duo-tekst .vooraan-kop { margin-bottom: 14px; }
.vooraan-duo-tekst p { margin: 0 0 13px; font-size: 15.5px; line-height: 1.6; color: var(--voor-tekst); }

.vooraan-vinkjes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }

.vooraan-vinkjes li {
    position: relative;
    padding-left: 28px;
    font-size: 14.5px;
    font-weight: 600;
}

.vooraan-vinkjes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* =====================================================================
   Het driehoekje dat meebeweegt op de maat
   ---------------------------------------------------------------------
   --puls en --gloed worden door muziek.js gezet, aan de hand van de lage
   tonen van het nummer zelf. Staat de muziek uit, dan staat --puls op 1
   en gebeurt er niets.
   ===================================================================== */

.beatknop {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--roze), #ff5ec0);
    color: #fff;
    cursor: pointer;
    transform: scale(var(--puls, 1));
    box-shadow: 0 0 0 calc(var(--gloed, 0) * 14px) rgba(255, 39, 147, .22),
                0 8px 22px rgba(255, 39, 147, .35);
    transition: transform .06s linear, box-shadow .06s linear;
}

.beatknop:hover { filter: brightness(1.08); }

.beatknop svg { width: 24px; height: 24px; }
.beatknop .beatknop-uit { display: none; }
.beatknop.is-aan .beatknop-aan { display: none; }
.beatknop.is-aan .beatknop-uit { display: block; }

/* Een ring die meezwelt, zodat het ook zichtbaar is als de knop stil
   lijkt te staan. */
.beatknop-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 39, 147, .5);
    opacity: var(--gloed, 0);
    transform: scale(calc(1 + var(--gloed, 0) * .18));
    pointer-events: none;
}

.beatknop-bij {
    align-self: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .6);
}

@media (prefers-reduced-motion: reduce) {
    .beatknop { transform: none; transition: none; }
    .beatknop-ring { display: none; }
}

/* =====================================================================
   Het ouderdashboard: hoe staat het er vandaag voor
   ===================================================================== */

.vandaagrij {
    display: grid;
    gap: 16px;
    margin-bottom: 26px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dagkaart {
    padding: 20px;
    border-radius: var(--rond);
    background: var(--wit);
    border: 1px solid var(--lijn);
    box-shadow: var(--schaduw);
    border-left: 4px solid var(--lijn);
}

.dagkaart.is-klaar    { border-left-color: var(--groen); }
.dagkaart.is-bezig    { border-left-color: var(--oranje); }
.dagkaart.is-nog-niet { border-left-color: var(--roze); }

.dagkaart-kop { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }

.dagkaart-rondje {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--roze), var(--lila));
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.dagkaart-kop > div { flex: 1; min-width: 0; }
.dagkaart-kop b { display: block; font-size: 16px; font-weight: 800; }
.dagkaart-kop small { display: block; font-size: 13px; color: var(--grijs); margin-top: 1px; }

.dagkaart-toets {
    flex: 0 0 auto;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--lila-zacht);
    color: var(--lila);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.dagkaart-balk {
    height: 8px;
    border-radius: 999px;
    background: var(--lijn);
    overflow: hidden;
    margin-bottom: 9px;
}

.dagkaart-balk i {
    display: block;
    height: 100%;
    width: var(--deel, 0%);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--roze), var(--lila));
}

.dagkaart-cijfers { margin: 0 0 15px; font-size: 14px; line-height: 1.5; color: var(--grijs); }
.dagkaart-cijfers b { color: var(--nacht); font-size: 15.5px; }

.dagkaart-missies { list-style: none; margin: 0 0 15px; padding: 0; display: grid; gap: 7px; }

.dagkaart-missies li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--grijs);
}

.dagkaart-missies li.is-af { color: var(--nacht); }
.dagkaart-missies small { font-weight: 500; color: var(--grijs); margin-left: 5px; }

.dagkaart-vink {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--lijn);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.dagkaart-missies li.is-af .dagkaart-vink { background: var(--groen); border-color: var(--groen); }

.dagkaart-doel {
    padding: 13px 15px;
    border-radius: var(--rond-s);
    background: var(--papier);
    margin-bottom: 14px;
}

.dagkaart-doel > small {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--grijs);
    margin-bottom: 7px;
}

.dagkaart-doel p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--grijs); }
.dagkaart-doel p:last-child { margin-bottom: 0; }
.dagkaart-doel b { color: var(--nacht); }

.dagkaart-binnen { margin: 0; font-size: 13px; color: var(--grijs); }
.dagkaart .knop-klein { margin-top: 13px; }

@media (prefers-color-scheme: dark) {
    html:not([data-theme="licht"]) .dagkaart-toets { background: rgba(22, 139, 255, .18); color: #9ecfff; }
    html:not([data-theme="licht"]) .dagkaart-doel { background: rgba(255, 255, 255, .04); }
}

html[data-theme="donker"] .dagkaart-toets { background: rgba(22, 139, 255, .18); color: #9ecfff; }
html[data-theme="donker"] .dagkaart-doel { background: rgba(255, 255, 255, .04); }

/* De leerdoelen als lijstje, voor een vak met paragrafen. */
.doel-punten { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.doel-punten li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--grijs);
}

.doel-punten li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--roze);
}

.doel-meer::before { display: none; }
.doel-meer { padding-left: 20px; font-style: italic; }
