/* =========================================================
   Gedeelde schil voor de Flitsmachine (woordjes + rekenen)
   Huisstijl meesterwillem.nl — groep "Oefenen" (groen)
   ========================================================= */

:root {
    --bg:       #eef0ef;
    --sand:     #ffffff;
    --card:     #ffffff;
    --border:   #e0e1de;
    --dark:     #1d1d1b;
    --text:     #333;
    --muted:    #8a857c;
    --accent:   #1d1d1b;  /* grafiet (voorheen Oefenen-groen) */
    --accent-d: #000000;
    --goed:     #5f8a3f;  /* semantisch groen: goed antwoord tijdens flitsen */
    --fout:     #c0492f;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── Slanke topbalk met kruimelpad ── */
.mw-top {
    background: #1d1d1b;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 22px;
}
.mw-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}
.mw-brand img { height: 20px; border-radius: 3px; }
.mw-divider { flex: 0 0 auto; width: 1px; height: 18px; background: rgba(255, 255, 255, 0.2); }
.mw-crumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #9a958c;
    min-width: 0;
}
.mw-crumbs a { color: #9a958c; text-decoration: none; white-space: nowrap; transition: color 0.12s; }
.mw-crumbs a:hover { color: #d8d4cc; }
.mw-crumbs .sep { opacity: 0.55; }
.mw-crumbs .current { color: #e8e4dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Kaart / container ── */
.kaart {
    max-width: 720px;
    margin: 28px auto;
    background: var(--sand);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 28px 30px 34px;
}

/* ── Koppen (serif alleen in de titel) ── */
h1, h2, h3 { color: #2a2a28; }
h1 { font-family: 'Playfair Display', serif; }
h2, h3 { font-family: 'Source Sans 3', Helvetica, Arial, sans-serif; font-weight: 600; }
.kaart h1 { font-size: 1.9em; margin: 0 0 4px; }
.kaart h3 { font-size: 1.15em; margin: 26px 0 12px; }

/* ── Knoppen ── */
.knop {
    background: var(--accent);
    color: #fff;
    padding: 13px 24px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    transition: background-color 0.2s;
}
.knop:hover { background: var(--accent-d); }
.knop-groot { width: 100%; padding: 15px; font-size: 1.1em; }

/* ── Formulier-elementen ── */
select, input[type=number], input[type=text].veld {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
select:focus, input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.form-row > label { min-width: 190px; }
.hint { font-size: 0.8em; color: var(--muted); flex-basis: 100%; margin: -6px 0 4px; }

.toggle-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.toggle-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }

/* ── Keuzetegels (radio/checkbox als knop) ── */
.tegel-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tegel input { display: none; }
.tegel label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.18s;
    font-size: 0.95em;
}
.tegel input:checked + label {
    border-color: var(--accent);
    background: #eceeed;
    font-weight: 600;
}

/* ── Voettekst-link terug naar modulekeuze ── */
.mw-terug {
    display: block;
    text-align: center;
    margin: 18px auto 40px;
    font-size: 0.85em;
    color: var(--muted);
    text-decoration: none;
}
.mw-terug:hover { color: var(--accent); }

@media (max-width: 600px) {
    .kaart { margin: 16px; padding: 22px 20px 28px; }
    .form-row > label { min-width: 100%; }
    .mw-top { padding: 9px 16px; gap: 10px; }
    .mw-brand { font-size: 14px; letter-spacing: 0.08em; }
    .mw-crumbs > a:first-child,
    .mw-crumbs > a:first-child + .sep { display: none; }
}
