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

/* ============================================= */
/* === DESIGN TOKENS (donker als basis)       === */
/* ============================================= */
:root {
    --oranje: #E86A17;
    --oranje-hover: #F07B28;
    --oranje-actief: #C95B0F;
    --oranje-zacht: #FF9B52;
    --oranje-licht: rgba(232, 106, 23, 0.14);
    --oranje-donker: #F07B28;
    --groen: #3DDC84;
    --groen-licht: #13231B;
    --rood: #F0595F;
    --rood-licht: #2A1417;
    --geel: #F5B82E;
    --geel-licht: #2B2110;
    --blauw: #5B9BD5;
    --blauw-licht: #101D2B;
    --paars: #B05CD6;
    --paars-licht: #221331;
    --grijs-50: #15161A;
    --grijs-100: #1C1D22;
    --grijs-200: #26272D;
    --grijs-300: #34363E;
    --grijs-400: #5A606B;
    --grijs-500: #8B909A;
    --grijs-700: #C6C9CF;
    --grijs-900: #F2F3F5;
    --achtergrond: #101115;
    --vlak: #17181C;
    --vlak-2: #1B1C20;
    --vlak-3: #222327;
    --rand: rgba(255, 255, 255, 0.08);
    --rand-sterk: rgba(255, 255, 255, 0.16);
    --schaduw: 0 2px 10px rgba(0, 0, 0, 0.35);
    --schaduw-groot: 0 16px 44px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --oefen-breedte: min(70vw, 720px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

html {
    color-scheme: dark;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--achtergrond);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23FFFFFF' fill-opacity='0.05'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--grijs-900);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    padding-top: var(--safe-top);
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    padding-bottom: var(--safe-bottom);
    overscroll-behavior: none;
    transition: background-color 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232, 106, 23, 0.35); color: #fff; }
:focus-visible { outline: 2px solid rgba(232, 106, 23, 0.8); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grijs-300); border-radius: 8px; border: 2px solid var(--achtergrond); }
::-webkit-scrollbar-thumb:hover { background: var(--grijs-400); }

/* === THEMA WISSEL === */
.btn-thema {
    position: fixed;
    top: 10px;
    right: 14px;
    z-index: 110;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--rand);
    background: var(--vlak-2);
    color: var(--grijs-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--schaduw);
    transition: background-color 0.25s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn-thema:hover { color: var(--oranje-zacht); border-color: var(--rand-sterk); transform: translateY(-1px); }

/* === NAV BAR === */
#hoofdnav {
    background: rgba(23, 24, 28, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rand);
    position: sticky;
    top: var(--safe-top);
    z-index: 100;
}
.nav-inner {
    max-width: 100%;
    padding: 0 72px 0 16px;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 12px;
}
.logo { height: 46px; width: auto; flex-shrink: 0; }
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-link:hover { opacity: 0.85; }
.nav-spacer { flex: 1; }

/* === ZOEKEN === */
.zoek-wrap { position: relative; }
.zoek-wrap .zoek-icoon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grijs-500);
    pointer-events: none;
    display: flex;
}
.zoek-input {
    width: 100%;
    padding: 10px 18px 10px 44px;
    border: 1px solid var(--rand);
    border-radius: 999px;
    font-size: 0.9rem;
    outline: none;
    background: var(--vlak-2);
    color: var(--grijs-900);
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.zoek-input:focus { border-color: rgba(232, 106, 23, 0.6); box-shadow: 0 0 0 3px rgba(232, 106, 23, 0.15); }
.zoek-input::placeholder { color: var(--grijs-500); }

/* === HAMBURGER === */
.btn-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--grijs-700);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
}
.btn-hamburger:hover { background: rgba(255, 255, 255, 0.06); }

/* === AUTH === */
#auth-scherm { min-height: 100vh; min-height: -webkit-fill-available; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-container { width: 100%; max-width: 420px; }
.auth-kaart {
    background: var(--vlak-2);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--schaduw-groot);
    transition: background-color 0.25s ease;
}
.auth-logo { display: block; margin: 0 auto 4px; height: 48px; width: auto; }
.auth-subtitel { text-align: center; color: var(--grijs-500); margin-bottom: 28px; font-size: 0.95rem; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--grijs-100); border-radius: 12px; padding: 4px; }
.auth-tab { flex: 1; padding: 10px 16px; border: none; border-radius: 9px; background: none; font-size: 0.9rem; font-weight: 600; color: var(--grijs-500); cursor: pointer; transition: all 0.15s; min-height: 44px; }
.auth-tab.actief { background: var(--vlak-3); color: var(--grijs-900); box-shadow: var(--schaduw); }
.auth-fout { background: var(--rood-licht); color: var(--rood); padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; margin-bottom: 16px; text-align: center; }
.auth-ok { background: var(--groen-licht); color: var(--groen); padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; margin-bottom: 16px; text-align: center; }
.auth-form { margin-bottom: 24px; }
.btn-vol { width: 100%; }
.oauth-scheiding { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; color: var(--grijs-500); font-size: 0.85rem; }
.oauth-scheiding::before, .oauth-scheiding::after { content: ''; flex: 1; height: 1px; background: var(--rand); }
.oauth-knoppen { display: flex; flex-direction: column; gap: 10px; }
.oauth-knop { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1px solid var(--rand); border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--grijs-500); cursor: default; position: relative; opacity: 0.6; }
a.oauth-knop { text-decoration: none; cursor: pointer; opacity: 1; color: var(--grijs-900); transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
a.oauth-knop:hover { background: var(--vlak-3); border-color: var(--rand-sterk); transform: translateY(-1px); }
.binnenkort-badge { position: absolute; right: 12px; font-size: 0.7rem; background: var(--grijs-200); color: var(--grijs-500); padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

/* === DASHBOARD LAYOUT === */
.dashboard-layout { display: flex; min-height: calc(100vh - 64px); }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sidebar {
    width: 248px;
    background: var(--vlak);
    border-right: 1px solid var(--rand);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    margin-top: -64px;
    padding-top: 64px;
    overflow-y: auto;
    transition: background-color 0.25s ease;
}
.sidebar-gebruiker { padding: 22px 16px 14px; display: flex; align-items: center; gap: 12px; }
.sidebar-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--oranje);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
#sidebar-naam { font-weight: 600; font-size: 0.9rem; color: var(--grijs-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#btn-sluit-sidebar {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--grijs-500);
    min-width: 44px;
    min-height: 44px;
}
#btn-sluit-sidebar:hover { background: rgba(255, 255, 255, 0.06); color: var(--grijs-900); }
.sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: none; border-radius: 12px;
    background: none; font-size: 0.9rem; color: var(--grijs-700); cursor: pointer; text-align: left; width: 100%;
    transition: all 0.14s ease; min-height: 46px; font-weight: 500;
}
.sidebar-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--grijs-900); }
.sidebar-link.actief {
    background: var(--oranje-licht);
    color: var(--oranje-zacht);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(232, 106, 23, 0.25);
}
.sidebar-link svg { flex-shrink: 0; }
.sidebar-link[data-paneel="maken"] svg { color: var(--oranje-zacht); }

.dashboard-hoofd { flex: 1; padding: 36px 40px 64px; }
.dashboard-paneel { display: none; }
.dashboard-paneel:not(.verborgen) { display: block; animation: paneel-in 0.25s ease; }
@keyframes paneel-in { from { opacity: 0; transform: translateY(6px); } }

/* === PANEEL HEADER === */
.paneel-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.paneel-icoon {
    width: 42px; height: 42px; border-radius: 13px;
    background: var(--vlak-3);
    border: 1px solid var(--rand);
    color: var(--oranje-zacht);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.paneel-header h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.015em; color: var(--grijs-900); }
.paneel-telling {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--grijs-500);
    white-space: nowrap;
}
.select-keuze {
    appearance: none;
    -webkit-appearance: none;
    background: var(--vlak-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B909A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid var(--rand);
    border-radius: 999px;
    color: var(--grijs-700);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 38px 10px 16px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    min-height: 42px;
}
.select-keuze:hover { border-color: var(--rand-sterk); background-color: var(--vlak-3); }
.select-keuze:focus-visible { outline: 2px solid rgba(232, 106, 23, 0.8); outline-offset: 2px; }
.select-keuze option { background: var(--vlak-2); color: var(--grijs-900); }
.paneel-zoek { flex: 1; max-width: 300px; margin-left: auto; }

/* === SETS GRID === */
.sets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.set-kaart {
    background: var(--vlak-2);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schaduw);
    transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.18s, border-color 0.18s, background-color 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: kaart-in 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.sets-grid .set-kaart:nth-child(1) { animation-delay: 0.02s; }
.sets-grid .set-kaart:nth-child(2) { animation-delay: 0.05s; }
.sets-grid .set-kaart:nth-child(3) { animation-delay: 0.08s; }
.sets-grid .set-kaart:nth-child(4) { animation-delay: 0.11s; }
.sets-grid .set-kaart:nth-child(5) { animation-delay: 0.14s; }
.sets-grid .set-kaart:nth-child(6) { animation-delay: 0.17s; }
.sets-grid .set-kaart:nth-child(7) { animation-delay: 0.2s; }
.sets-grid .set-kaart:nth-child(8) { animation-delay: 0.23s; }
@keyframes kaart-in { from { opacity: 0; transform: translateY(10px); } }
.set-kaart:hover {
    transform: translateY(-3px);
    border-color: var(--rand-sterk);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

/* --- Set cover --- */
.set-kaart-cover {
    position: relative;
    width: 100%;
    height: 138px;
    border: none;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
}
.set-kaart-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.set-kaart:hover .set-kaart-cover img { transform: scale(1.03); }

/* --- Tools (secundaire acties, zwevend op de cover) --- */
.set-kaart-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.set-kaart:hover .set-kaart-tools,
.set-kaart:focus-within .set-kaart-tools {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.btn-icoon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(16, 17, 21, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #C6C9CF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.btn-icoon:hover { background: rgba(16, 17, 21, 0.95); color: #fff; border-color: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.btn-icoon:active { transform: scale(0.94); }
.btn-icoon-gevaar:hover { color: var(--rood); border-color: rgba(240, 89, 95, 0.4); }

/* --- Set card body --- */
.set-kaart-body { padding: 16px 20px 8px; flex: 1; }
.set-kaart-naam-rij { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.set-kaart-naam { font-size: 1.05rem; font-weight: 700; color: var(--grijs-900); line-height: 1.3; letter-spacing: -0.01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-width: 0; }
.set-kaart-zichtbaar { font-size: 0.72rem; font-weight: 600; color: var(--grijs-500); white-space: nowrap; flex-shrink: 0; opacity: 0.85; }
.set-kaart-meta { margin-top: 8px; font-size: 0.85rem; color: var(--grijs-700); font-weight: 600; }
.set-kaart-leeg { margin-top: 10px; font-size: 0.85rem; color: var(--grijs-500); font-style: italic; }
.set-kaart-voortgang { margin-top: 12px; }
.vb-spoor {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.vb-vulling {
    height: 100%;
    border-radius: 999px;
    background: var(--oranje);
    transition: width 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.vb-label { margin-top: 6px; font-size: 0.76rem; color: var(--grijs-500); font-weight: 500; }

/* --- Set card footer: één prominente primaire actie --- */
.set-kaart-footer { padding: 14px 20px 20px; }
.btn-play-set { width: 100%; }

/* === LEGE STATEN === */
.leeg-plek {
    text-align: center;
    padding: 56px 24px;
    color: var(--grijs-500);
    border: 1px dashed var(--rand-sterk);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.015);
}
.leeg-icoon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--vlak-3);
    border: 1px solid var(--rand);
    color: var(--oranje-zacht);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.leeg-plek h3 { color: var(--grijs-900); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.leeg-plek p { margin-top: 0; margin-bottom: 22px; font-size: 0.95rem; }

/* === SET MAKEN === */
.autosave-toast {
    position: absolute; top: 12px; right: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--groen-licht);
    border: 1px solid rgba(61, 220, 132, 0.3);
    color: var(--groen);
    font-size: 0.85rem; font-weight: 600;
    z-index: 10;
    transition: opacity 0.3s;
}
.autosave-toast.verborgen { opacity: 0; pointer-events: none; }

/* === STATISTIEKEN === */
.overzicht-kaarten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.overzicht-kaart {
    background: var(--vlak-2);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--schaduw);
    transition: background-color 0.25s ease, transform 0.16s ease, border-color 0.16s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.overzicht-kaart:hover { transform: translateY(-2px); border-color: var(--rand-sterk); }
.ok-icoon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--oranje-licht);
    color: var(--oranje-zacht);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.ok-waarde { font-size: 1.9rem; font-weight: 800; color: var(--grijs-900); display: block; letter-spacing: -0.02em; line-height: 1.1; }
.ok-label { font-size: 0.8rem; font-weight: 600; color: var(--grijs-500); }

.kaart-h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; color: var(--grijs-900); margin-bottom: 16px; }
.kaart-h2 .h2-icoon { width: 30px; height: 30px; border-radius: 9px; background: var(--vlak-3); border: 1px solid var(--rand); color: var(--oranje-zacht); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.grafiek-balken {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    height: 170px;
    padding-top: 24px;
    overflow-x: auto;
    border-bottom: 1px solid var(--rand);
}
.grafiek-balk {
    flex: 1;
    min-width: 30px;
    background: var(--oranje);
    border-radius: 8px 8px 3px 3px;
    position: relative;
    min-height: 4px;
    transition: height 0.3s, background-color 0.15s, filter 0.15s;
}
.grafiek-balk:hover { background: var(--oranje-hover); filter: brightness(1.08); }
.grafiek-balk-label { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; color: var(--grijs-500); white-space: nowrap; font-weight: 600; }
.grafiek-balk-waarde { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; font-weight: 700; color: var(--grijs-700); white-space: nowrap; }

/* === TABELLEN === */
.tabel-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabel { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 400px; }
.tabel th { text-align: left; padding: 10px 12px; color: var(--grijs-500); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--rand); font-weight: 700; }
.tabel td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--grijs-700); }
.tabel tr:hover td { background: rgba(255, 255, 255, 0.03); }

/* === FORMULIEREN === */
.form-groep { margin-bottom: 20px; }
.form-groep label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.88rem; color: var(--grijs-700); }
.form-groep input, .form-groep textarea, .form-groep select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--rand);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    font-family: inherit;
    background: var(--grijs-50);
    color: var(--grijs-900);
}
.form-groep input::placeholder, .form-groep textarea::placeholder { color: var(--grijs-500); opacity: 1; }
.form-groep input:focus, .form-groep textarea:focus { border-color: rgba(232, 106, 23, 0.6); box-shadow: 0 0 0 3px rgba(232, 106, 23, 0.15); }
.form-groep small { display: block; margin-top: 4px; color: var(--grijs-500); font-size: 0.8rem; }
.form-rij { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.flex-grow { flex: 1; min-width: 0; }
.form-groep textarea { resize: vertical; }

/* === KNOPPEN === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s cubic-bezier(0.2, 0.7, 0.3, 1);
    min-height: 44px;
    white-space: nowrap;
    letter-spacing: 0.005em;
}
.btn-primair {
    background: var(--oranje);
    color: #fff;
}
.btn-primair:hover { background: var(--oranje-hover); transform: translateY(-1px); }
.btn-primair:active { transform: translateY(0) scale(0.98); background: var(--oranje-actief); }
.btn-primair:disabled { background: var(--grijs-300); color: var(--grijs-500); cursor: not-allowed; box-shadow: none; }
.btn-hulp {
    background: var(--vlak-3);
    color: var(--grijs-700);
    border: 1px solid var(--rand);
}
.btn-hulp:hover { background: #2B2C32; border-color: var(--rand-sterk); color: var(--grijs-900); transform: translateY(-1px); }
.btn-hulp:active { transform: scale(0.98); }
.btn-gevaar { background: var(--rood); color: #fff; }
.btn-gevaar:hover { background: #F56B70; transform: translateY(-1px); }
.btn-uitlog { background: none; color: var(--grijs-500); font-size: 0.85rem; padding: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border-radius: 12px; }
.btn-uitlog:hover { color: var(--rood); background: rgba(240, 89, 95, 0.08); }
.btn-terug { background: none; color: var(--grijs-700); font-size: 0.9rem; padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border-radius: var(--radius-sm); }
.btn-terug:hover { color: var(--oranje-zacht); background: var(--oranje-licht); }

/* Flitskaarten */
#flitskaart-vak { margin: 8px 0 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%; max-width: var(--oefen-breedte); }
.flitskaart-vraag { font-size: 0.95rem; font-weight: 600; color: var(--grijs-500); margin: 0; }

.subtiel { color: var(--grijs-500); margin-bottom: 24px; line-height: 1.5; }
.status-regel { display: block; margin-top: 8px; font-size: 0.85rem; color: var(--groen); }
.status-regel.fout { color: var(--rood); }

.wachtwoord-wrapper { position: relative; }
.wachtwoord-wrapper input { padding-right: 44px; }
.wachtwoord-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; line-height: 1; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--grijs-500); }
.wachtwoord-toggle:hover { color: var(--grijs-900); }
.auth-wachtwoord-vergeten { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--grijs-500); }
.auth-wachtwoord-vergeten em { font-style: normal; color: var(--grijs-400); }
.link-knop { background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-size: inherit; color: var(--oranje); text-decoration: underline; text-underline-offset: 2px; }
.link-knop:hover { color: var(--oranje-hover); }
a.link-knop { display: inline-block; }
.auth-form-uitleg { text-align: center; color: var(--grijs-500); font-size: 0.85rem; margin-bottom: 16px; }

/* === KAARTEN === */
.kaart {
    background: var(--vlak-2);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--schaduw);
    max-width: 480px;
    margin: 40px auto;
    transition: background-color 0.25s ease;
}
.kaart-vol { max-width: 100%; }
.kaart h2 { color: var(--grijs-900); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }

/* === AANMELDINGEN === */
.aanmelding-rij { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--rand); flex-wrap: wrap; }
.aanmelding-rij:last-child { border-bottom: none; }
.aanmelding-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aanmelding-info strong { color: var(--grijs-900); }
.aanmelding-info span { color: var(--grijs-500); font-size: 0.85rem; }
.aanmelding-acties { display: flex; gap: 8px; flex-shrink: 0; }

/* === SET MAKER PANEEL === */
.maken-stap1 .kaart { max-width: 540px; }
.maken-stap2 .kaart { max-width: 100%; }

.verplicht { color: var(--rood); }
.optioneel { color: var(--grijs-500); font-weight: 400; font-size: 0.8rem; }

.toggle-groep { display: flex; gap: 8px; }
.btn-toggle {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 20px;
    border: 1px solid var(--rand);
    border-radius: var(--radius-sm);
    background: var(--grijs-50);
    font-size: 0.92rem; font-weight: 600; color: var(--grijs-500);
    cursor: pointer;
    transition: all 0.15s;
    min-height: 46px;
}
.btn-toggle:hover { border-color: var(--rand-sterk); color: var(--grijs-900); }
.btn-toggle-actief {
    border-color: rgba(232, 106, 23, 0.55);
    background: var(--oranje-licht);
    color: var(--oranje-zacht);
}

.maak-kaart {
    background: var(--grijs-50);
    border: 1px solid var(--rand);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.maak-kaart:hover { border-color: var(--rand-sterk); }
.maak-veld { display: flex; flex-direction: column; gap: 4px; }
.maak-veld label { font-size: 0.68rem; color: var(--grijs-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.maak-veld input {
    padding: 9px 12px;
    border: 1px solid var(--rand);
    border-radius: 9px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    background: var(--vlak-2);
    color: var(--grijs-900);
}
.maak-veld input:focus { border-color: rgba(232, 106, 23, 0.6); box-shadow: 0 0 0 3px rgba(232, 106, 23, 0.15); }
.maak-verwijder {
    background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--grijs-400);
    padding: 4px 8px; border-radius: 8px; line-height: 1; transition: all 0.15s;
    min-width: 44px; min-height: 44px;
}
.maak-verwijder:hover { color: var(--rood); background: var(--rood-licht); }
.maken-kaarten { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; padding-right: 4px; -webkit-overflow-scrolling: touch; }

/* === SET EDITOR: RIJ-ACTIES & HEADER === */
.maak-acties { display: flex; align-items: flex-end; gap: 2px; flex-wrap: wrap; }
.maak-actie {
    background: none; border: none; cursor: pointer;
    color: var(--grijs-400); padding: 6px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; min-height: 32px;
    transition: color 0.15s, background 0.15s;
}
.maak-actie:hover { color: var(--grijs-900); background: var(--grijs-100); }
.maak-actie-gevaar:hover { color: var(--rood); background: var(--rood-licht); }
.maak-actie:disabled { opacity: 0.3; pointer-events: none; }
.maak-moeilijk-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 600; color: var(--grijs-500);
    padding: 6px 10px; border-radius: 8px; cursor: pointer;
    border: 1px solid transparent; user-select: none;
    transition: color 0.15s, background 0.15s;
}
.maak-moeilijk-label:hover { background: var(--grijs-100); }
.maak-moeilijk-label input[type="checkbox"] {
    width: 16px; height: 16px; margin: 0; accent-color: var(--oranje); cursor: pointer;
}
.maak-moeilijk-icoon { display: inline-flex; }
.maak-moeilijk-icoon svg { width: 14px; height: 14px; }
.maak-moeilijk-label.actief { color: var(--oranje); background: var(--oranje-licht); }
.maken-titel-inline {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px dashed var(--rand);
    font-size: 1.3rem; font-weight: 700; color: var(--oranje);
    letter-spacing: -0.015em; padding: 2px 0; outline: none;
}
.maken-titel-inline:focus { border-bottom-color: rgba(232, 106, 23, 0.6); }
.maken-titel-inline::placeholder { color: var(--grijs-400); }
.maken-header-midden { flex: 1; min-width: 0; }
.maken-status { display: block; font-size: 0.9rem; margin-top: 8px; color: var(--groen); }
.maken-ai-status { font-size: 0.85rem; color: var(--grijs-500); }
.btn-ai {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; font-size: 0.9rem;
    background: var(--blauw-licht); color: var(--blauw);
    border: 1px solid rgba(91, 155, 213, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer; font-weight: 600;
    transition: background 0.15s, transform 0.15s;
    min-height: 44px;
}
.btn-ai:hover { background: #16283C; transform: translateY(-1px); }

/* === OPSLAAN KNOP === */
.btn-opslaan { background: var(--groen); color: #0A1A10; overflow: hidden; }
#maken-save-rij {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 16px;
    background: rgba(21, 22, 26, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--rand);
    border-radius: 14px;
    box-shadow: var(--schaduw-groot);
}
.btn-opslaan:hover { filter: brightness(1.08); }
.btn-opslaan .check-icoon { width: 0; opacity: 0; margin-left: -6px; transition: width 0.25s ease, opacity 0.2s ease, margin-left 0.25s ease; flex-shrink: 0; }
.btn-opslaan .check-icoon polyline { stroke-dasharray: 24; stroke-dashoffset: 24; }
.btn-opslaan.opgeslagen { animation: opslaan-pop 0.5s ease; }
.btn-opslaan.opgeslagen .check-icoon { width: 18px; opacity: 1; margin-left: 0; }
.btn-opslaan.opgeslagen .check-icoon polyline { animation: check-tekenen 0.4s ease forwards 0.15s; }
@keyframes opslaan-pop { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 70% { transform: scale(0.94); } 100% { transform: scale(1); } }
@keyframes check-tekenen { to { stroke-dashoffset: 0; } }

/* === THUMBNAIL PREVIEW === */
.thumbnail-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.thumbnail-preview, .bewerk-thumb-preview { background: var(--grijs-50); }

/* === SCREENSHOT MODAL === */
.screenshot-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.screenshot-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(4px); }
.screenshot-dialog {
    position: relative; z-index: 1;
    background: var(--vlak-2);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    width: 100%; max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--schaduw-groot);
    -webkit-overflow-scrolling: touch;
}
.screenshot-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--rand); }
.screenshot-header h2 { font-size: 1.15rem; color: var(--grijs-900); font-weight: 700; }
.screenshot-sluit { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--grijs-500); padding: 0 8px; line-height: 1; min-width: 44px; min-height: 44px; border-radius: 10px; }
.screenshot-sluit:hover { color: var(--grijs-900); background: rgba(255, 255, 255, 0.06); }
.screenshot-acties { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 0 24px 24px; flex-wrap: wrap; }
#screenshot-status { font-size: 0.85rem; color: var(--grijs-500); margin-right: auto; }

/* === IMPORT VOORBEELD === */
.import-preview-kop { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.import-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--groen-licht);
    color: var(--groen);
    font-size: 0.78rem; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
    white-space: nowrap;
}
.import-fouten-info { margin: 0 0 8px; font-size: 0.8rem; color: var(--geel); }
.import-preview-lijst {
    max-height: 220px; overflow-y: auto;
    border: 1px solid var(--rand); border-radius: 8px;
    padding: 8px 10px; background: var(--grijs-50);
    display: flex; flex-direction: column; gap: 6px;
}
.import-paar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.import-chip {
    padding: 3px 10px; border-radius: 999px;
    font-size: 0.85rem; font-weight: 600; line-height: 1.5;
    overflow-wrap: anywhere;
}
.import-chip-bron { background: var(--blauw-licht); color: var(--blauw); }
.import-chip-doel { background: var(--groen-licht); color: var(--groen); }
.import-pijl { color: var(--grijs-500); font-size: 0.8rem; flex-shrink: 0; }
.import-fout {
    display: flex; align-items: baseline; gap: 8px;
    background: var(--grijs-100);
    border: 1px dashed var(--rand-sterk);
    color: var(--grijs-500); font-size: 0.82rem;
    padding: 4px 10px; border-radius: 8px;
    overflow-wrap: anywhere;
}
.import-fout-label { flex-shrink: 0; font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--geel); }

/* === AFBEELDING KOLOMMEN CROP MODAL (donker #121212) === */
.crop-dialog { background: #121212; max-width: 620px; }
.crop-header { padding: 16px 20px; gap: 10px; }
.crop-header h2 { font-size: 1.05rem; color: #fff; }
.crop-header-rij { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-crop-upload { min-height: 38px; padding: 0 16px; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; }
.crop-preview-wrap {
    position: relative;
    margin: 20px;
    min-height: 280px;
    background: #1A1A1D;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}
.crop-leeg { text-align: center; color: var(--grijs-500); padding: 44px 20px; cursor: pointer; }
.crop-preview-wrap.dragging { border-color: rgba(232, 106, 23, 0.7); background: #1E1410; }
.crop-leeg p { margin-top: 14px; font-size: 0.95rem; color: #C6C9CF; }
.crop-leeg-sub { font-size: 0.8rem !important; color: #5A606B !important; margin-top: 6px !important; }
.crop-beeld-wrap { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.crop-beeld-kader { position: relative; max-width: 100%; flex-shrink: 0; }
#crop-beeld {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 4px;
}
.crop-divider {
    position: absolute; top: -6px; bottom: -6px;
    width: 36px; margin-left: -18px;
    cursor: ew-resize;
    touch-action: none;
    z-index: 5;
}
.crop-divider::before {
    content: '';
    position: absolute; top: 6px; bottom: 6px; left: 50%;
    width: 2px; transform: translateX(-50%);
    background: var(--oranje);
    border-radius: 2px;
}
.crop-divider-handvat {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 42px;
    background: var(--oranje);
    border: 2px solid #fff;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}
.crop-label {
    position: absolute; top: 10px;
    transform: translateX(-50%);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 9px; border-radius: 6px;
    pointer-events: none; z-index: 4;
    white-space: nowrap;
}
.crop-dimmer {
    position: absolute;
    z-index: 2;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}
.crop-dimmer.uit { display: none; }
.crop-rand {
    position: absolute;
    z-index: 4;
    touch-action: none;
}
.crop-rand-boven, .crop-rand-onder {
    height: 18px;
    transform: translateY(-50%);
    cursor: ns-resize;
}
.crop-rand-links, .crop-rand-rechts {
    width: 18px;
    transform: translateX(-50%);
    cursor: ew-resize;
}
.crop-rand::before { content: ''; position: absolute; background: var(--oranje); }
.crop-rand-boven::before, .crop-rand-onder::before { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.crop-rand-links::before, .crop-rand-rechts::before { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); }
.crop-rand-handvat {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    background: var(--oranje);
    border: 2px solid #fff;
    border-radius: 4px;
    pointer-events: none;
}
.crop-toolbar { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 2px 20px 10px; }
.crop-draai {
    flex: 1; max-width: 360px;
    display: flex; align-items: center; gap: 10px;
    background: #1F1F23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 9px 14px;
    color: #5A606B;
}
.crop-draai svg { flex-shrink: 0; }
.crop-draai input[type="range"] { flex: 1; accent-color: var(--oranje); cursor: pointer; height: 20px; min-width: 0; background: none; }
.crop-draai-waarde { min-width: 40px; text-align: right; font-size: 0.8rem; font-weight: 700; color: #C6C9CF; }
.crop-acties { padding: 6px 20px 20px; }
.crop-acties .btn { flex: 1; max-width: 180px; }

/* === HOE WERKT DIT (SRS-UITLEG) === */
.hww-kop { font-size: 1rem; margin: 20px 0 10px; color: var(--grijs-900); font-weight: 700; }
.hww-ladder { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.hww-trede {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    background: var(--vlak); border: 1px solid var(--rand);
}
.hww-trede:first-child { background: var(--groen-licht); border-color: rgba(46, 125, 50, 0.3); }
.hww-trede-nieuw { background: var(--oranje-licht); border-color: rgba(232, 106, 23, 0.25); }
.hww-trede-naam { font-weight: 700; color: var(--grijs-900); min-width: 90px; }
.hww-trede-onder { font-size: 0.85rem; color: var(--grijs-500); }
.hww-lijst { margin: 0 0 4px; padding-left: 20px; line-height: 1.6; color: var(--grijs-700); display: flex; flex-direction: column; gap: 6px; }

/* === PRACTICE OVERLAY === */
/* Dunne voortgangsbalk helemaal bovenaan het oefenscherm. */
.oefen-progress {
    position: sticky;
    top: var(--safe-top);
    z-index: 90;
    height: 4px;
    background: var(--grijs-200);
}
#oefen-progress-balk {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--oranje), var(--oranje-zacht));
    border-radius: 0 4px 4px 0;
    transition: width 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Compacte topbalk met terugknop, settitel, streak en pill-knoppen. */
.oefen-topbalk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: var(--vlak);
    border-bottom: 1px solid var(--rand);
    position: sticky;
    top: calc(var(--safe-top) + 4px);
    z-index: 95;
}
.oefen-topbalk-links { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.oefen-topbalk-links .btn-terug { white-space: nowrap; flex-shrink: 0; }
.oefen-logo-link { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 12px; transition: transform 0.15s ease, opacity 0.15s ease; }
.oefen-logo-link:hover { opacity: 0.85; transform: translateY(-1px); }
.oefen-logo { height: 34px; width: 34px; border-radius: 9px; display: block; }
.oefen-titel { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.oefen-titel-klein { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grijs-500); }
.oefen-titel-naam {
    font-size: 1.02rem; font-weight: 700; color: var(--grijs-900);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 34ch;
}
.oefen-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.oefen-streak {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 999px;
    background: var(--oranje-licht);
    border: 1px solid rgba(232, 106, 23, 0.25);
    color: var(--oranje-zacht);
    font-weight: 800; font-size: 0.9rem;
    white-space: nowrap;
}
.oefen-streak svg { flex-shrink: 0; }
.oefen-streak.streak-pop { animation: streak-pop 0.35s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes streak-pop { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
.oefen-scheider { width: 1px; height: 22px; background: var(--rand-sterk); flex-shrink: 0; }

/* Pill-toggles: oefenmodus, hands-free en de help-knop. */
.oefen-pill-groep {
    position: relative;
    display: inline-flex; align-items: center; gap: 3px;
    background: var(--grijs-100);
    border: 1px solid var(--rand);
    border-radius: 999px;
    padding: 3px;
}
.oefen-pill-indicator {
    position: absolute;
    top: 3px; bottom: 3px; left: 3px;
    width: 0;
    border-radius: 999px;
    background: var(--vlak-2);
    box-shadow: var(--schaduw);
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), width 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: 999px; border: none;
    background: transparent; color: var(--grijs-500);
    font-size: 0.82rem; font-weight: 700;
    padding: 6px 13px; min-height: 30px;
    cursor: pointer; white-space: nowrap;
    transition: transform 0.16s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.16s, background-color 0.16s, color 0.16s;
    -webkit-tap-highlight-color: transparent;
}
.pill:hover { color: var(--grijs-900); }
.pill:active { transform: scale(0.94); }
.pill-modus { position: relative; z-index: 1; }
.pill-modus.modus-actief { color: var(--oranje-zacht); }
.pill-hands-free { color: var(--groen); }
.pill-hands-free:hover { background: var(--groen-licht); }
.pill-hands-free.cram-actief { background: var(--groen); color: #0A1A10; }
.pill-hands-free.cram-actief:hover { background: var(--groen); }
.pill-hands-free:disabled { opacity: 0.4; pointer-events: none; }
.pill-hulp {
    width: 30px; height: 30px; min-height: 30px; padding: 0;
    border: 1px solid var(--rand-sterk);
    background: var(--vlak-2);
    color: var(--grijs-500);
    font-size: 0.95rem;
}
.pill-hulp:hover { color: var(--grijs-900); border-color: var(--rand-sterk); transform: translateY(-1px); }
.pill-thema {
    width: 30px; height: 30px; min-height: 30px; padding: 0;
    border: 1px solid var(--rand-sterk);
    background: var(--vlak-2);
    color: var(--grijs-500);
}
.pill-thema svg { width: 16px; height: 16px; }
.pill-thema:hover { color: var(--oranje-zacht); border-color: var(--rand-sterk); transform: translateY(-1px); }

/* Center stage: de kaart en alles eronder krijgen samen 70% van de breedte. */
.oefen-hoofd {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 72px;
    min-height: calc(100vh - 190px);
}
#modus-actief { width: 100%; display: flex; flex-direction: column; align-items: center; }

.woord-kaart {
    background: var(--vlak-2);
    border: 1px solid var(--rand);
    border-radius: 24px;
    padding: 40px 48px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 28px;
    width: 100%;
    max-width: var(--oefen-breedte);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.25s ease, border-color 0.3s;
}
.woord-kaart.correct-flash { box-shadow: 0 0 0 4px var(--groen), 0 24px 60px rgba(0, 0, 0, 0.55); }
.woord-kaart.fout-flash { box-shadow: 0 0 0 4px var(--rood), 0 24px 60px rgba(0, 0, 0, 0.55); }
.woord-kaart.aarzeling-flash { box-shadow: 0 0 0 4px var(--geel), 0 24px 60px rgba(0, 0, 0, 0.55); }
.kaart-bovenrij { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.kaart-talen {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
    background: var(--oranje-licht);
    border: 1px solid rgba(232, 106, 23, 0.25);
    color: var(--oranje-zacht);
}
.modus-label { font-size: 0.8rem; color: var(--grijs-500); display: inline-flex; align-items: center; gap: 6px; }
.modus-label svg { width: 14px; height: 14px; }
.bron-woord {
    font-size: 3rem; font-weight: 800; color: var(--grijs-900);
    margin-bottom: 8px; word-break: break-word; letter-spacing: -0.02em; line-height: 1.15;
}
.doel-woord { font-size: 1.5rem; color: var(--grijs-500); font-style: italic; word-break: break-word; min-height: 1.4em; }
.kaart-meta-rij { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.badge { padding: 5px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--oranje-licht); color: var(--oranje-zacht); border: 1px solid rgba(232, 106, 23, 0.25); }
#huidig-pogingen { font-size: 0.85rem; color: var(--grijs-500); font-weight: 600; }
.lijst-naam { margin-top: 8px; font-size: 0.8rem; color: var(--grijs-400); }

/* Meerkeuze-opties: 2x2-raster i.p.v. een lange verticale stapel. */
.meerkeuze-opties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 20px;
    width: 100%;
    max-width: var(--oefen-breedte);
}
.optie-knop {
    background: var(--grijs-50);
    border: 2px solid var(--rand-sterk);
    border-radius: 14px;
    color: var(--grijs-900);
    font-size: 1.05rem; font-weight: 600;
    padding: 18px 16px; min-height: 60px;
    cursor: pointer; width: 100%;
    text-align: center;
    word-break: break-word;
    transition: transform 0.16s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.16s, border-color 0.16s;
}
.optie-knop:hover {
    border-color: var(--oranje);
    color: var(--oranje-zacht);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(232, 106, 23, 0.16);
}
.optie-knop:active { transform: translateY(-1px) scale(0.98); }
.optie-knop:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

/* Flitskaarten */
#flitskaart-vak { margin: 8px 0 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%; max-width: var(--oefen-breedte); }

.btn-mic {
    width: 128px; height: 128px; min-width: 128px; min-height: 128px;
    border-radius: 50%;
    border: 3px solid var(--oranje);
    background: var(--vlak-2);
    color: var(--grijs-900);
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: all 0.2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}
.btn-mic:hover { background: var(--oranje-licht); transform: scale(1.05); }
.btn-mic:active, .btn-mic.opnemen { background: var(--rood-licht); border-color: var(--rood); animation: pulse 0.8s infinite; }
.btn-mic:disabled { border-color: var(--grijs-400); cursor: not-allowed; background: var(--grijs-50); }
.mic-icoon-svg { display: block; }
.btn-mic:disabled .mic-icoon-svg { opacity: 0.4; }
.mic-tekst { font-size: 0.8rem; color: var(--grijs-500); margin-top: 4px; }
.mic-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--grijs-500); margin-top: 2px; }
.spatie-hint-icoon { display: block; flex-shrink: 0; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.opname-status { margin-top: 12px; color: var(--rood); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.opname-animatie { width: 10px; height: 10px; background: var(--rood); border-radius: 50%; animation: knipper 0.6s infinite; }
@keyframes knipper { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.hands-free-status { margin-top: 12px; color: var(--groen); font-size: 0.95rem; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; flex-wrap: wrap; font-weight: 600; }
.hands-free-status .hf-animatie { width: 12px; height: 12px; background: var(--groen); border-radius: 50%; animation: hf-pulse 1.2s infinite; }
.hands-free-status.hf-spreekt { color: var(--oranje-zacht); }
.hands-free-status.hf-spreekt .hf-animatie { background: var(--oranje); animation: knipper 0.4s infinite; }
@keyframes hf-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.6; } }
.hf-niveau { width: 120px; height: 6px; background: var(--grijs-300); border-radius: 3px; overflow: hidden; }
#hf-niveau-balk { height: 100%; width: 0; background: var(--groen); border-radius: 3px; transition: width 0.08s linear; }

#spel-invoer { margin-top: 16px; width: 100%; max-width: 320px; }
#spel-veld {
    width: 100%; padding: 14px 16px;
    border: 1px solid var(--rand);
    border-radius: var(--radius-sm);
    font-size: 1.1rem; outline: none; text-align: center;
    background: var(--vlak-2); color: var(--grijs-900);
}
#spel-veld:focus { border-color: rgba(232, 106, 23, 0.6); box-shadow: 0 0 0 3px rgba(232, 106, 23, 0.15); }
#btn-spel-controle { margin-top: 12px; width: 100%; max-width: 320px; }
#spreek-knoppen { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }

/* Feedback */
.feedback {
    margin-top: 24px;
    padding: 20px 28px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 1rem;
    max-width: 420px;
    width: 100%;
}
.feedback.feedback-goed { background: var(--groen-licht); color: var(--groen); border: 1px solid rgba(61, 220, 132, 0.4); }
.feedback.feedback-fout { background: var(--rood-licht); color: var(--rood); border: 1px solid rgba(240, 89, 95, 0.4); }
.feedback.feedback-twijfel { background: var(--geel-licht); color: var(--geel); border: 1px solid rgba(245, 184, 46, 0.4); }
.feedback-titel { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; display: block; }
.feedback-scores { display: flex; gap: 16px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.feedback-score-item { text-align: center; }
.feedback-score-waarde { font-size: 1.5rem; font-weight: 800; }
.feedback-score-label { font-size: 0.75rem; color: inherit; opacity: 0.8; }
.feedback-gehoord { margin-top: 12px; font-size: 0.85rem; opacity: 0.8; word-break: break-word; }
#btn-volgende { margin-top: 20px; }

.wacht-kaart { text-align: center; }
.wacht-icoon-svg { display: block; margin: 0 auto 16px; }
.wacht-tijd { color: var(--oranje-zacht); font-weight: 700; margin-top: 16px; }
.wacht-voortgang { color: var(--grijs-500); font-size: 0.9rem; margin-top: 8px; }
#btn-toch-doorgaan { margin-top: 20px; }

/* === SVG ICONS === */
.inline-icoon { display: inline-flex; align-items: center; vertical-align: middle; flex-shrink: 0; }
.inline-icoon svg { width: 16px; height: 16px; }
.inline-icoon.goed-icoon svg { color: var(--groen); }
.inline-icoon.fout-icoon svg { color: var(--rood); }
.feedback-icoon-goed svg { width: 24px; height: 24px; color: var(--groen); vertical-align: middle; }
.feedback-icoon-warn svg { width: 24px; height: 24px; color: var(--geel); vertical-align: middle; }
.feedback-icoon-tw svg { width: 24px; height: 24px; color: var(--oranje); vertical-align: middle; }
.feedback-icoon-retry svg { width: 24px; height: 24px; color: var(--oranje); vertical-align: middle; }
.feedback-icoon-err svg { width: 24px; height: 24px; color: var(--rood); vertical-align: middle; }

/* === UTILS === */
.verborgen { display: none !important; }
.view { display: none; }
.view.actief { display: block; }
.scherm { display: block; }
.scherm.verborgen { display: none; }

/* ============================================= */
/* === RESPONSIVE BREAKPOINTS                  === */
/* ============================================= */

/* -- Tablet (<= 900px) -- */
@media (max-width: 900px) {
    .sidebar { width: 200px; }
    .dashboard-hoofd { padding: 24px 20px 56px; }
    .sets-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
    .oefen-topbalk { position: static; padding: 10px 14px; }
    .oefen-progress { position: static; }
    .oefen-hoofd { padding: 28px 16px 56px; }
    .woord-kaart { padding: 32px 24px; }
    .bron-woord { font-size: 2.2rem; }
    .overzicht-kaarten { grid-template-columns: repeat(2, 1fr); }
    .crop-preview-wrap { margin: 16px; min-height: 240px; }
    .screenshot-dialog { max-height: 85vh; }
}

/* -- Phone (<= 640px) -- */
@media (max-width: 640px) {
    .nav-inner { gap: 8px; padding: 0 64px 0 12px; }
    .btn-hamburger { display: inline-flex; }
    .zoek-input { font-size: 0.85rem; padding: 9px 14px 9px 40px; }
    .uitlog-tekst { display: none; }

    /* Sidebar wordt een schuiflade */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        max-height: none;
        height: auto;
        margin-top: 0;
        padding-top: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        border-radius: 0 0 var(--radius) 0;
    }
    .sidebar.open { transform: translateX(0); box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45); }
    .sidebar-overlay { display: block; }
    .sidebar-overlay.verborgen { display: none; }
    #btn-sluit-sidebar {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
    .sidebar-gebruiker { padding: 18px 12px 10px; }
    .sidebar-nav { padding: 8px 10px; }
    .sidebar-link { justify-content: flex-start; padding: 12px 14px; font-size: 0.95rem; }
    .sidebar-link svg { width: 20px; height: 20px; }

    .dashboard-layout { min-height: calc(100vh - 64px); }
    .dashboard-hoofd { padding: 20px 16px 48px; }

    .sets-grid { grid-template-columns: 1fr; gap: 14px; }
    .set-kaart-cover { height: 128px; }
    .set-kaart-body { padding: 14px 16px 6px; }
    .set-kaart-footer { padding: 12px 16px 16px; }
    .set-kaart-naam { font-size: 1rem; }
    .set-kaart-tools { opacity: 1; transform: none; pointer-events: auto; }

    .paneel-header { gap: 10px; margin-bottom: 20px; }
    .paneel-header h1 { font-size: 1.35rem; }
    .paneel-icoon { width: 38px; height: 38px; border-radius: 11px; }
    .paneel-zoek { flex-basis: 100%; max-width: 100%; margin-left: 0; }

    .overzicht-kaarten { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .overzicht-kaart { padding: 14px; }
    .ok-waarde { font-size: 1.4rem; }
    .ok-label { font-size: 0.72rem; }
    .ok-icoon { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 8px; }

    .kaart { padding: 22px 16px; margin: 20px auto; }
    .tabel { font-size: 0.8rem; }

    /* Practice view mobiel */
    .oefen-topbalk { padding: 8px 12px; gap: 6px 10px; }
    .oefen-topbalk-links { gap: 8px; }
    .oefen-titel-naam { font-size: 0.92rem; max-width: 22ch; }
    .oefen-titel-klein { display: none; }
    .oefen-toolbar { gap: 6px; width: 100%; justify-content: flex-start; }
    .oefen-scheider { display: none; }
    .pill { font-size: 0.76rem; padding: 5px 10px; min-height: 28px; }
    .pill-hulp { width: 28px; height: 28px; min-height: 28px; }
    .oefen-streak { padding: 5px 10px; font-size: 0.82rem; }
    .oefen-hoofd { padding: 24px 12px 48px; justify-content: flex-start; min-height: auto; }
    .woord-kaart { padding: 24px 18px; border-radius: 18px; margin-bottom: 20px; }
    .bron-woord { font-size: 1.9rem; }
    .doel-woord { font-size: 1.15rem; }
    .modus-label { font-size: 0.78rem; }
    .meerkeuze-opties { gap: 8px; margin: 2px 0 16px; }
    .optie-knop { font-size: 0.95rem; padding: 14px 10px; min-height: 52px; border-radius: 12px; }
    .feedback { padding: 16px 18px; }
    .feedback-titel { font-size: 1.1rem; }
    .feedback-scores { gap: 10px; }
    .feedback-score-waarde { font-size: 1.2rem; }
    #spel-invoer { max-width: 100%; }
    #btn-spel-controle { max-width: 100%; }

    /* Set maker mobiel */
    .maken-pane-inhoud .kaart { padding: 18px 14px; margin: 12px 0; }
    .maak-kaart { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
    .maak-veld input { font-size: 16px; }
    .maak-acties { justify-content: flex-end; gap: 4px; border-top: 1px solid var(--rand); padding-top: 6px; }
    .maak-actie { min-width: 44px; min-height: 44px; }
    .maken-kaarten { max-height: none; }

    .maken-header-midden { order: 2; flex-basis: 100%; }
    .maken-titel-inline { font-size: 1.15rem; }
    #maken-stap2 .paneel-header { row-gap: 8px; margin-bottom: 16px; }
    #btn-wissel-set { order: 1; margin-left: auto; font-size: 0.8rem; padding: 8px 12px; }
    #bewerk-toggle-metadata { order: 1; }

    #btn-maken-woord-toevoegen { width: 100%; justify-content: center; }
    #maken-save-rij {
        bottom: 0;
        margin: 12px -16px 0 !important;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    #maken-save-rij .btn-opslaan { flex: 1; }
    #maken-aantal-bar { display: none; }
    #maken-beschrijving, #import-tekst { font-size: 16px; }

    .taal-rij { display: grid; grid-template-columns: auto 1fr; }
    .taal-rij .btn { justify-self: start; }

    /* Screenshot modal */
    .screenshot-modal { padding: 8px; align-items: flex-end; }
    .screenshot-dialog { max-height: 85vh; max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
    .screenshot-header { padding: 16px 20px; }
    .crop-preview-wrap { margin: 12px; min-height: 210px; padding: 14px; }
    .screenshot-acties { padding: 0 16px 16px; flex-direction: column; }
    #screenshot-status { margin-right: 0; text-align: center; }

    /* Auth mobiel */
    #auth-scherm { padding: 16px; }
    .auth-kaart { padding: 28px 20px; }
    .auth-logo { height: 40px; }
    .auth-subtitel { font-size: 0.85rem; margin-bottom: 20px; }

    /* Grafiek */
    .grafiek-balken { height: 120px; }
}

/* -- Kleine telefoons (<= 380px) -- */
@media (max-width: 380px) {
    .auth-kaart { padding: 22px 16px; }
    .auth-tab { font-size: 0.8rem; padding: 10px 8px; }
    .btn { font-size: 0.88rem; padding: 10px 16px; }
    .woord-kaart { padding: 18px 14px; }
    .bron-woord { font-size: 1.3rem; }
    .doel-woord { font-size: 1rem; }
    .overzicht-kaarten { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .overzicht-kaart { padding: 12px 10px; }
    .ok-waarde { font-size: 1.3rem; }
    .logo { height: 40px; }
    .sets-grid { gap: 12px; }
}

/* === DEEL (SHARE) === */
.delen-set-naam { text-align: center; font-size: 1.4rem; font-weight: 800; color: var(--grijs-900); margin-bottom: 8px; letter-spacing: -0.01em; }
.delen-meta { text-align: center; color: var(--grijs-500); margin-bottom: 20px; font-size: 0.95rem; }
#delen-scherm { padding: 24px 16px; }
#delen-scherm .auth-container { max-width: 480px; }

/* ============================================= */
/* === LICHT THEMA (legacy fallback)           === */
/* ============================================= */
html[data-thema="licht"] {
    color-scheme: light;
    --oranje-zacht: #C4550D;
    --oranje-licht: #FFF3E8;
    --oranje-donker: #C4550D;
    --groen: #2E7D32;
    --groen-licht: #E8F5E9;
    --rood: #C62828;
    --rood-licht: #FFEBEE;
    --geel: #F9A825;
    --geel-licht: #FFF8E1;
    --blauw: #1565C0;
    --blauw-licht: #E3F2FD;
    --paars: #7B1FA2;
    --paars-licht: #F3E5F5;
    --grijs-50: #FAFAFA;
    --grijs-100: #F5F5F5;
    --grijs-200: #EEEEEE;
    --grijs-300: #E0E0E0;
    --grijs-400: #BDBDBD;
    --grijs-500: #9E9E9E;
    --grijs-700: #616161;
    --grijs-900: #212121;
    --achtergrond: #FAFAFA;
    --vlak: #FFFFFF;
    --vlak-2: #FFFFFF;
    --vlak-3: #F5F5F5;
    --rand: rgba(0, 0, 0, 0.1);
    --rand-sterk: rgba(0, 0, 0, 0.18);
    --schaduw: 0 2px 8px rgba(0, 0, 0, 0.08);
    --schaduw-groot: 0 4px 24px rgba(0, 0, 0, 0.12);
}
html[data-thema="licht"] body {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%23D4D8E0'/%3E%3C/svg%3E");
}
html[data-thema="licht"] #hoofdnav { background: rgba(255, 255, 255, 0.9); }
html[data-thema="licht"] .btn-icoon {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.12);
    color: #616161;
}
html[data-thema="licht"] .btn-icoon:hover { background: #fff; color: #212121; }
html[data-thema="licht"] .btn-hulp { background: #F5F5F5; color: #616161; }
html[data-thema="licht"] .btn-hulp:hover { background: #EEEEEE; color: #212121; }
html[data-thema="licht"] .paneel-icoon { background: #FFF3E8; }
html[data-thema="licht"] .ok-icoon { background: #FFF3E8; }
html[data-thema="licht"] .kaart-h2 .h2-icoon { background: #FFF3E8; }
html[data-thema="licht"] .leeg-icoon { background: #FFF3E8; }
html[data-thema="licht"] .sidebar-link:hover { background: #F5F5F5; }
html[data-thema="licht"] .grafiek-balk { background: #E86A17; }
html[data-thema="licht"] .grafiek-balk-waarde { color: #C4550D; }
html[data-thema="licht"] .vb-spoor { background: rgba(0, 0, 0, 0.1); }
html[data-thema="licht"] .tabel td { border-bottom-color: #F5F5F5; }
html[data-thema="licht"] .tabel th { border-bottom-color: #EEEEEE; }

/* ============================================= */
/* === PUBLIEKE PAGINA'S (home/privacy/tos)   === */
/* ============================================= */
.pub-wrap { max-width: 860px; margin: 0 auto; padding: 12px 20px 64px; }
.pub-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.pub-header .logo { height: 40px; }
.pub-header-actions { display: flex; gap: 6px; align-items: center; }
.pub-link { color: var(--grijs-500); text-decoration: none; font-size: 0.9rem; padding: 8px 10px; border-radius: var(--radius-sm); }
.pub-link:hover { color: var(--oranje-zacht); background: var(--oranje-licht); }
.pub-kaart { background: var(--vlak); border: 1px solid var(--rand); border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--schaduw); margin-top: 16px; }
.pub-hero { text-align: center; padding: 20px 0 8px; }
.pub-hero h1 { font-size: 2rem; margin-bottom: 12px; }
.pub-hero .pub-subtitel { color: var(--grijs-500); font-size: 1.05rem; max-width: 520px; margin: 0 auto; line-height: 1.5; }
.pub-knop-rij { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pub-knop { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--oranje); color: #fff; text-decoration: none; font-weight: 600; transition: background 0.15s ease, transform 0.15s ease; }
.pub-knop:hover { background: var(--oranje-hover); transform: translateY(-1px); color: #fff; }
.pub-knop-secundair { background: var(--vlak-2); color: var(--grijs-900); border: 1px solid var(--rand-sterk); }
.pub-knop-secundair:hover { background: var(--grijs-200); color: var(--grijs-900); }
.pub-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.pub-tegel { background: var(--vlak-2); border: 1px solid var(--rand); border-radius: var(--radius-sm); padding: 20px; }
.pub-tegel h3 { margin-bottom: 8px; font-size: 1rem; }
.pub-tegel p { color: var(--grijs-500); font-size: 0.9rem; line-height: 1.5; }
.pub-footer { margin-top: 24px; text-align: center; color: var(--grijs-500); font-size: 0.85rem; line-height: 1.7; }
.pub-footer a { color: var(--grijs-500); }
.pub-footer a:hover { color: var(--oranje-zacht); }
.pub-proza h1 { font-size: 1.6rem; margin-bottom: 6px; }
.pub-proza .pub-datum { color: var(--grijs-500); font-size: 0.9rem; margin-bottom: 24px; }
.pub-proza h2 { font-size: 1.1rem; margin: 26px 0 8px; color: var(--oranje-zacht); }
.pub-proza p, .pub-proza li { color: var(--grijs-700); line-height: 1.65; font-size: 0.95rem; margin-bottom: 10px; }
.pub-proza ul, .pub-proza ol { padding-left: 22px; margin-bottom: 12px; }
.pub-proza details { margin-bottom: 10px; border: 1px solid var(--rand); border-radius: var(--radius-sm); background: var(--vlak-2); padding: 12px 16px; }
.pub-proza details summary { cursor: pointer; font-weight: 600; color: var(--grijs-900); font-size: 0.95rem; }
.pub-proza details p { margin: 10px 0 0; }
.pub-proza a { color: var(--oranje-zacht); }
@media (max-width: 600px) {
    .pub-kaart { padding: 28px 20px; }
    .pub-hero h1 { font-size: 1.5rem; }
}
