.main-content.hidden,
.gate.hidden {
    display: none !important;
}

.gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    padding: 24px;
}

.gate-inner {
    text-align: center;
    max-width: 400px;
}

.gate-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.gate-title {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 12px;
}

.gate-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.gate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gate-label {
    display: block;
    text-align: left;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: -4px;
}

.gate-input-name {
    text-transform: none;
    text-align: left;
}

.gate-input {
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    text-align: center;
    text-transform: uppercase;
}

.gate-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.gate-input::placeholder {
    color: var(--color-text-muted);
    text-transform: none;
}

.gate-btn {
    padding: 14px 24px;
}

.gate-error {
    margin-top: 16px;
    color: var(--color-status-error);
    font-size: 0.9rem;
    min-height: 1.4em;
}

/* Kleuren komen uit een thema: css/themes/default.css of css/themes/belastingdienst.css */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-background);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero header: volledig groen, geen binary-effect */
header.hero-header {
    background: var(--color-primary-dark);
    color: var(--color-text-on-primary);
    padding: 40px 32px 32px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 0;
    border: 1px solid var(--color-border-strong);
    position: relative;
    overflow: hidden;
}

.hero-binary {
    display: none;
}

.back-to-login {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 0.9rem;
    color: var(--color-text-on-primary);
    opacity: 0.9;
    text-decoration: none;
    z-index: 2;
}
.back-to-login:hover {
    opacity: 1;
    text-decoration: underline;
}

header.hero-header .header-logo {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    object-fit: cover;
}

header.hero-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-text-on-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

header.hero-header p {
    color: var(--color-text-on-primary);
    font-size: 1.1em;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Quote-box onder de header: sluit aan met afgeronde bovenhoeken */
.hero-quote {
    background: var(--color-accent);
    color: var(--color-text-on-primary);
    padding: 28px 32px;
    margin: -12px 0 24px;
    border-radius: 0 0 20px 20px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    text-align: center;
    border: 1px solid transparent;
    border-top: none;
    box-shadow: 0 8px 24px var(--color-shadow-hero);
}

.hero-quote p {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
}

.accordion-required-msg {
    display: block;
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border: 1px solid var(--color-warning-border);
    padding: 12px 20px;
    border-radius: 12px;
    margin: 0 0 20px;
    font-weight: 600;
    text-align: center;
}
.accordion-required-msg[hidden] {
    display: none;
}
/* Waarschuwing bij de knop naar het volgende onderdeel */
.accordion-required-msg-at-nav {
    margin-bottom: 16px;
}

/* Overlay: beantwoord eerst de reflectievragen */
.reflectie-required-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-overlay);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.reflectie-required-overlay[hidden] {
    display: none;
}
.reflectie-required-overlay-content {
    background: var(--color-surface);
    border: 1px solid var(--color-primary);
    border-radius: 16px;
    padding: 32px;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 8px 32px var(--color-shadow-modal);
}
.reflectie-required-overlay-content p {
    margin: 0 0 24px;
    color: var(--color-text);
    font-size: 1.15rem;
    font-weight: 600;
}
.reflectie-required-overlay-content .btn {
    margin: 0;
}

.progress-top {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 14px 18px;
    margin: 16px 0 10px;
}

.progress-top-bar {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.progress-top-fill {
    background: var(--color-primary);
    height: 100%;
    width: 0%;
    transition: width 0.35s ease;
}

.progress-top-text {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--color-text-muted);
}

.progress-top-text #progressPercent {
    color: var(--color-text);
    font-weight: 700;
}

.progress-container {
    background: var(--color-surface-alt);
    padding: 20px 24px;
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid var(--color-border);
}

.progress-bar {
    background: var(--color-surface);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-fill {
    background: var(--color-accent);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-fill.complete {
    background: var(--color-primary);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--color-text-muted);
}

.nav-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-border-strong);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-dot:hover {
    transform: scale(1.2);
    border-color: var(--color-accent);
    background: var(--color-accent-muted);
}

.nav-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.3);
}

.nav-dot.completed {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.nav-dot.disabled {
    background: var(--color-surface);
    border-color: var(--color-border);
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.section {
    display: none;
    background: var(--color-surface-alt);
    padding: 40px;
    border-radius: 20px;
    margin: 20px 0;
    border: 1px solid var(--color-border);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section.active {
    display: block;
}

.section h2 {
    color: var(--color-primary-dark);
    margin-bottom: 25px;
    font-size: 1.6em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section h2 .emoji {
    font-size: 1.3em;
}

.section h3 {
    color: var(--color-text);
    margin: 30px 0 15px;
    font-size: 1.2em;
}

.section h4 {
    color: var(--color-text);
    margin: 20px 0 10px;
    font-size: 1.05em;
}

.chapter-list {
    margin: 15px 0 20px 20px;
    padding-left: 8px;
    color: var(--color-text);
}

.chapter-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.chapter-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    color: var(--color-text);
}

.chapter-summary strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 12px;
}

.chapter-summary ul {
    margin: 0;
    padding-left: 20px;
}

.chapter-summary li {
    margin-bottom: 8px;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.chapter-questions {
    margin: 28px 0;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.chapter-questions h4 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.1em;
}

.chapter-q {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--color-border);
}

.chapter-q:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.chapter-q-text {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 12px;
}

.chapter-q-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-q-options label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.chapter-q-options label:hover {
    background: var(--color-surface-alt);
}

.chapter-q-options input {
    margin-top: 2px;
}

.chapter-q-feedback {
    margin-top: 10px;
    font-size: 0.95em;
    padding: 10px 12px;
    border-radius: 8px;
    display: none;
}

.chapter-q-feedback.show {
    display: block;
}

.chapter-q-feedback.correct {
    background: var(--color-primary-muted);
    border: 1px solid var(--color-status-success);
    color: var(--color-text);
}

.chapter-q-feedback.incorrect {
    background: var(--color-status-error-muted);
    border: 1px solid var(--color-status-error);
    color: var(--color-text);
}

.read-confirmation {
    margin: 34px 0 0;
    padding: 20px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.read-confirmation label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    font-weight: 700;
    cursor: pointer;
}

.read-confirmation-input {
    width: 22px;
    height: 22px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

p {
    margin-bottom: 15px;
}

.scenario {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    color: var(--color-text);
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

.scenario-header .icon {
    font-size: 1.5em;
}

.scenario p {
    color: var(--color-text-muted);
}

.tip-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    color: var(--color-text);
}

.tip-box strong {
    color: var(--color-primary);
}

.warning-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    color: var(--color-text);
}

.warning-box strong {
    color: var(--color-accent);
}

/* Groene banner voor "De belangrijkste les" (zoals referentie) */
.lesson-banner {
    background: var(--color-primary-dark);
    color: var(--color-text-on-primary);
    border: none;
    border-left: none;
    border-radius: 16px;
    padding: 22px 28px;
    margin: 24px 0;
    box-shadow: 0 4px 20px var(--color-shadow-success);
}

.lesson-banner strong {
    color: var(--color-text);
    font-style: italic;
}

.danger-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-status-error);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    color: var(--color-text);
}

.danger-box strong {
    color: var(--color-status-error);
}

.info-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-status-info);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    color: var(--color-text);
}

.info-box strong {
    color: var(--color-status-info);
}

.example-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    color: var(--color-text);
}

.example-card.good {
    border-color: var(--color-status-success);
    border-left-width: 5px;
}

.example-card.bad {
    border-color: var(--color-accent);
    border-left-width: 5px;
}

.example-label {
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 8px;
}

.example-card.good .example-label {
    color: var(--color-status-success);
}

.example-card.bad .example-label {
    color: var(--color-accent);
}

.checklist {
    list-style: none;
    margin: 20px 0;
}

.checklist li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-status-success);
    font-weight: bold;
    font-size: 1.2em;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--color-accent);
    color: var(--color-text-on-primary);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--color-shadow-accent);
    background: var(--color-accent-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}

.btn-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
}

/* Category cards */
.category-card {
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left-width: 6px;
    border-left-style: solid;
    color: var(--color-text);
}

.category-card.forbidden {
    border-left-color: var(--color-status-error);
}

.category-card.high-risk {
    border-left-color: var(--color-status-warning);
}

.category-card.transparency {
    border-left-color: var(--color-status-info);
}

.category-card.minimal {
    border-left-color: var(--color-status-success);
}

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

.category-icon {
    font-size: 2.2em;
}

.category-title {
    font-size: 1.2em;
    font-weight: 600;
}

.category-card.forbidden .category-title { color: var(--color-status-error); }
.category-card.high-risk .category-title { color: var(--color-status-warning); }
.category-card.transparency .category-title { color: var(--color-status-info); }
.category-card.minimal .category-title { color: var(--color-status-success); }

.category-subtitle {
    font-size: 0.9em;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.example-list {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 15px;
    color: var(--color-text);
}

.example-list h5 {
    font-size: 0.9em;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.example-list ul {
    margin: 0;
    padding-left: 20px;
}

.example-list li {
    margin: 8px 0;
    font-size: 0.95em;
}

.risk-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 15px;
}

.risk-meter-bar {
    flex: 1;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, 
        var(--color-status-success) 0%, 
        var(--color-status-success) 25%, 
        var(--color-status-info) 25%, 
        var(--color-status-info) 50%, 
        var(--color-status-warning) 50%, 
        var(--color-status-warning) 75%, 
        var(--color-status-error) 75%, 
        var(--color-status-error) 100%
    );
}

.risk-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: var(--color-text-muted);
    margin-top: 5px;
}

.pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.pyramid-level {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    text-align: center;
}

/* Grote, duidelijke iconen voor risicocategorieën (overal hergebruikt) */
.risk-category-icon {
    font-size: 1.75em;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.35em;
}

.section h2 .risk-category-icon {
    font-size: 1.5em;
    margin-right: 0.25em;
}

.category-header .category-icon,
.category-header .risk-category-icon {
    font-size: 2.2em;
    margin-right: 12px;
    flex-shrink: 0;
}

.pyramid-level .risk-category-icon {
    font-size: 1.6em;
    margin-right: 10px;
}

.tag .risk-category-icon {
    font-size: 1.2em;
    margin-right: 4px;
}

.example-label .risk-category-icon {
    font-size: 1.3em;
    margin-right: 6px;
}

.pyramid-level.l1 { width: 50%; background: var(--color-status-error); }
.pyramid-level.l2 { width: 65%; background: var(--color-status-warning); }
.pyramid-level.l3 { width: 80%; background: var(--color-status-info); }
.pyramid-level.l4 { width: 95%; background: var(--color-status-success); }

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.domain-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--color-text);
    transition: transform 0.2s;
}

.domain-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.domain-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.domain-name {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.domain-desc {
    font-size: 0.85em;
    color: var(--color-text-muted);
}

/* Quiz styles */
.quiz-intro {
    text-align: center;
    padding: 20px 0;
}

.question-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    color: var(--color-text);
}

.question-card h4 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.15em;
    line-height: 1.5;
}

.question-card p.context {
    background: var(--color-surface-alt);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-text);
}

.option:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-muted);
}

.option.selected {
    border-color: var(--color-accent);
    background: var(--color-accent-muted);
}

.option.correct,
.option.highlighted {
    border-color: var(--color-status-success);
    background: var(--color-primary-muted);
}

.option input {
    margin-right: 12px;
    margin-top: 3px;
    transform: scale(1.2);
}

.option-text {
    flex: 1;
}

.feedback {
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.feedback.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.feedback.positive {
    background: var(--color-primary-muted);
    border: 1px solid var(--color-status-success);
    color: var(--color-text);
}

.feedback h5 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-btn {
    margin-top: 20px;
}

.name-entry {
    margin-bottom: 24px;
}

.name-entry-hint {
    margin: 0 0 8px;
    font-size: 0.95em;
    color: var(--color-text-muted);
}

.name-entry-confirmed {
    margin: 0;
    color: var(--color-primary);
    font-weight: 600;
}
.name-entry-confirmed[hidden] {
    display: none;
}

.name-entry label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 600;
}

.name-entry input {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
}

.name-entry input::placeholder {
    color: var(--color-text-muted);
}

.name-entry input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.completion {
    text-align: center;
    padding: 40px 20px;
}

.completion .certificate-name-line {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.certificate-pdf-hint {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.completion-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.completion h2 {
    justify-content: center;
    border: none;
}

.summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
    color: var(--color-text);
}

.summary-card h4 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.golden-rules {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.rule {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--color-text);
}

.rule-number {
    background: var(--color-accent);
    color: var(--color-text-on-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.rule-content h5 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.rule-content p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95em;
}

.accordion {
    margin: 20px 0;
    position: relative;
}

.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--color-surface);
}

.accordion-header {
    padding: 18px 20px;
    background: var(--color-surface-alt);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-primary);
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--color-primary-muted);
}

.accordion-header .icon {
    margin-right: 10px;
}

.accordion-arrow-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.accordion-arrow-icon {
    transition: transform 0.3s;
}
.accordion-item.open .accordion-arrow-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
    max-height: 2000px;
}

.accordion-body {
    padding: 20px;
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    margin: 2px;
}

.tag.forbidden { background: var(--color-status-error-muted); color: var(--color-status-error); border: 1px solid var(--color-status-error); }
.tag.high-risk { background: var(--color-status-warning-muted); color: var(--color-status-warning); border: 1px solid var(--color-status-warning); }
.tag.transparency { background: var(--color-status-info-muted); color: var(--color-status-info); border: 1px solid var(--color-status-info); }
.tag.minimal { background: var(--color-primary-muted); color: var(--color-status-success); border: 1px solid var(--color-status-success); }

/* Herinnering vier risicocategorieën (sectie Veilig gebruiken e.d.) */
.risk-categories-reminder {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.risk-categories-reminder-title {
    font-size: 0.95em;
    color: var(--color-text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}

.risk-categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.risk-cat-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.95em;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.risk-cat-item.forbidden { color: var(--color-status-error); border-color: var(--color-status-error); }
.risk-cat-item.high-risk { color: var(--color-status-warning); border-color: var(--color-status-warning); }
.risk-cat-item.transparency { color: var(--color-status-info); border-color: var(--color-status-info); }
.risk-cat-item.minimal { color: var(--color-status-success); border-color: var(--color-status-success); }

.risk-cat-item .risk-category-icon {
    margin-right: 6px;
    font-size: 1.3em;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.5em;
    }
    
    .section {
        padding: 25px 20px;
    }
    
    .btn-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-nav .btn {
        text-align: center;
    }
    
    .rule {
        flex-direction: column;
        text-align: center;
    }
    
    .rule-number {
        margin: 0 auto;
    }
    
    .pyramid-level {
        font-size: 0.85em;
        padding: 12px 15px;
    }
    
    .domain-grid {
        grid-template-columns: 1fr;
    }
}

.disclaimer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: var(--color-surface-alt);
    border-top: 1px solid var(--color-border);
    z-index: 10;
}

body {
    padding-bottom: 48px;
}

@media print {
    .nav-dots, .progress-container, .hero-quote, .btn-nav, .btn,
    .disclaimer,
    .section:not(#section-14) {
        display: none !important;
    }
    #section-14 {
        display: block !important;
    }
    body { background: #fff; color: #111; padding-bottom: 0; }
    .completion .certificate-name-line {
        color: #0a0a0a;
        font-size: 1.35rem;
        font-weight: 600;
    }
}

/* AP-geïnspireerde vormgeving */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.7;
    background: var(--color-background);
    color: var(--color-text);
    padding-bottom: 0;
}

a {
    color: var(--color-link);
    text-decoration: underline;
}

.container {
    max-width: 1504px;
    padding: 0 80px 64px;
}

.gate {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 76px 80px;
    background:
        linear-gradient(#f3f4f5 0 70px, transparent 70px),
        var(--color-background);
}

.gate-inner {
    width: min(100%, 640px);
    max-width: none;
    text-align: left;
}

.gate-logo {
    width: 148px;
    margin: 0 0 36px;
}

.gate-title,
.section h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0;
}

.gate-title {
    font-size: clamp(3rem, 7vw, 4.8rem);
    line-height: 1.02;
    margin-bottom: 20px;
}

.gate-subtitle {
    max-width: 760px;
    color: var(--color-text);
    font-size: clamp(1.45rem, 2.4vw, 2.05rem);
    line-height: 1.42;
    margin-bottom: 34px;
}

.gate-form {
    max-width: 520px;
    gap: 14px;
}

.gate-label,
.name-entry label {
    color: var(--color-text);
    font-weight: 700;
}

.gate-input,
.name-entry input {
    border: 2px solid var(--color-primary);
    border-radius: 0;
    color: var(--color-text);
    font-size: 1.05rem;
    padding: 16px 18px;
    text-align: left;
    background: #fff;
}

.gate-input:focus,
.name-entry input:focus {
    outline: 3px solid #99c2ff;
    outline-offset: 2px;
    border-color: var(--color-link);
}

header.hero-header {
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    align-items: center;
    column-gap: 64px;
    padding: 70px 0 48px;
    margin: 0 0 0;
    background:
        linear-gradient(#f3f4f5 0 70px, transparent 70px),
        #fff;
    border: none;
    border-radius: 0;
    color: var(--color-text);
    text-align: left;
    position: relative;
    overflow: visible;
}

header.hero-header::after {
    content: "Home  >  Thema's  >  Algoritmes & AI  >";
    grid-column: 1 / -1;
    order: 3;
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid #e3e8ef;
    color: var(--color-primary);
    font-size: 1.05rem;
}

header.hero-header .header-logo {
    width: 220px;
    height: 220px;
    margin: 0;
    border-radius: 0;
    object-fit: contain;
}

header.hero-header h1 {
    max-width: 820px;
    margin: 0 0 20px;
    color: var(--color-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.04;
}

header.hero-header p {
    max-width: 920px;
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.45;
    opacity: 1;
}

.back-to-login {
    top: 18px;
    right: 0;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 700;
}

.hero-quote {
    width: min(100%, 1180px);
    margin: 0 0 44px;
    padding: 28px 40px;
    background: var(--color-panel-soft);
    color: var(--color-text);
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.hero-quote p {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 700;
}

.progress-top {
    width: min(100%, 1180px);
    margin: 0 0 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.progress-top-bar {
    height: 8px;
    background: #dbe4ee;
    border: none;
    border-radius: 0;
}

.progress-top-fill {
    background: var(--color-accent);
}

.progress-top-text {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.section {
    width: min(100%, 1180px);
    padding: 0;
    margin: 0 0 64px;
    background: transparent;
    border: none;
    border-radius: 0;
}

.section h2 {
    display: block;
    margin: 0 0 28px;
    font-size: clamp(3rem, 5.5vw, 4.9rem);
    line-height: 1.05;
}

.section h2 .emoji,
.scenario-header .icon,
.category-icon,
.risk-category-icon,
.completion-icon {
    display: none;
}

.section h3 {
    margin: 44px 0 14px;
    color: var(--color-text);
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 1.25;
}

.section h4,
.question-card h4,
.summary-card h4,
.chapter-questions h4 {
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.3;
}

p,
.chapter-list li,
.example-list li {
    font-size: clamp(1.15rem, 1.55vw, 1.55rem);
    line-height: 1.65;
}

.chapter-list {
    padding-left: 28px;
    margin-left: 0;
}

.chapter-questions {
    display: none !important;
}

.scenario,
.tip-box,
.info-box,
.warning-box,
.danger-box,
.chapter-summary,
.chapter-questions,
.question-card,
.summary-card,
.example-list,
.risk-categories-reminder,
.accordion-item,
.category-card,
.domain-item,
.rule {
    background: var(--color-panel-soft);
    border: none;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
}

.scenario,
.tip-box,
.info-box,
.warning-box,
.danger-box,
.chapter-summary,
.chapter-questions,
.question-card,
.summary-card,
.risk-categories-reminder {
    padding: 34px 44px;
    margin: 34px 0;
}

.scenario-header,
.tip-box strong,
.info-box strong,
.warning-box strong,
.danger-box strong,
.chapter-summary strong,
.summary-card h4,
.domain-name,
.rule-content h5,
.question-card h4 {
    color: var(--color-primary);
}

.lesson-banner {
    background: var(--color-primary);
    color: #fff;
    border-radius: 0;
    box-shadow: none;
}

.lesson-banner strong {
    color: #fff;
}

.btn {
    border-radius: 0;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 24px;
    box-shadow: none;
}

.btn:hover {
    transform: none;
    background: var(--color-accent);
    box-shadow: none;
}

.btn-outline {
    background: #fff;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-nav {
    border-top: 1px solid #dbe4ee;
}

.accordion-header {
    background: #fff;
    color: var(--color-primary);
    border-bottom: 1px solid #dbe4ee;
}

.accordion-header:hover {
    background: var(--color-primary-muted);
}

.accordion-body {
    background: var(--color-panel-soft);
}

.option,
.chapter-q-options label {
    border-radius: 0;
    border-color: #c9d5e2;
    background: #fff;
}

.option:hover,
.option.selected,
.chapter-q-options label:hover {
    border-color: var(--color-link);
    background: var(--color-primary-muted);
}

.accordion-required-msg {
    width: min(100%, 1180px);
    margin: 34px 0 0;
    padding: 24px 32px;
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border: none;
    border-left: 8px solid var(--color-warning-border);
    border-radius: 0;
    text-align: left;
    font-size: clamp(1.15rem, 1.55vw, 1.55rem);
    line-height: 1.45;
    font-weight: 700;
}

.accordion-required-msg::before {
    content: "Let op: ";
}

.accordion-required-msg-at-nav {
    margin-bottom: 24px;
}

.read-confirmation {
    margin: 44px 0 0;
    padding: 24px 32px;
    background: var(--color-panel-soft);
    border: none;
    border-radius: 0;
}

.read-confirmation label {
    font-size: clamp(1.15rem, 1.55vw, 1.55rem);
    color: var(--color-primary);
}

.read-confirmation-input {
    width: 26px;
    height: 26px;
}

.tag {
    border-radius: 0;
    font-weight: 700;
}

.rule-number {
    background: var(--color-accent);
    border-radius: 0;
}

.completion {
    text-align: left;
    padding: 24px 0;
}

.completion h2 {
    text-align: left;
}

.completion .certificate-name-line,
.name-entry-confirmed {
    color: var(--color-primary);
}

.disclaimer {
    position: static;
    margin: 72px 0 0;
    padding: 18px 0 0;
    background: transparent;
    border-top: 1px solid #dbe4ee;
    color: var(--color-text-muted);
    text-align: left;
}

@media (max-width: 900px) {
    body {
        font-size: 18px;
    }

    .container,
    .gate {
        padding-left: 24px;
        padding-right: 24px;
    }

    header.hero-header {
        grid-template-columns: 1fr;
        row-gap: 26px;
        padding-top: 88px;
    }

    header.hero-header .header-logo {
        width: 140px;
        height: 140px;
    }

    .scenario,
    .tip-box,
    .info-box,
    .warning-box,
    .danger-box,
    .chapter-summary,
    .chapter-questions,
    .question-card,
    .summary-card,
    .risk-categories-reminder {
        padding: 24px;
    }

    .btn-nav {
        flex-direction: column;
    }

    .btn-nav .btn {
        width: 100%;
        text-align: center;
    }
}

/* AIbegin Tools stijl */
:root {
    --aibegin-ink: #11110f;
    --aibegin-muted: #5e5b53;
    --aibegin-paper: #f4f1e8;
    --aibegin-paper-soft: #fbfaf5;
    --aibegin-card: #e7ded0;
    --aibegin-line: #cec4b5;
    --aibegin-white: #ffffff;
    --aibegin-shadow: 0 18px 48px rgba(17, 17, 15, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--aibegin-paper);
    color: var(--aibegin-ink);
    font-family: Inter, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

a {
    color: inherit;
}

.container {
    max-width: none;
    width: 100%;
    padding: 0;
}

.gate {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vw, 80px);
    background: var(--aibegin-ink);
    color: var(--aibegin-paper);
}

.gate-inner {
    display: grid;
    justify-items: center;
    width: min(100%, 760px);
    max-width: none;
    text-align: center;
}

.gate-logo {
    display: none;
}

.gate-title {
    max-width: 760px;
    margin: 0;
    color: var(--aibegin-paper);
    font-family: Inter, "Avenir Next", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(3.4rem, 10vw, 8.8rem);
    font-weight: 900;
    line-height: 0.96;
}

.gate-subtitle {
    max-width: 640px;
    margin: 28px 0 0;
    color: #d9d1c5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    line-height: 1.22;
}

.gate-form {
    width: min(100%, 560px);
    margin-top: 36px;
    gap: 16px;
}

.gate-label {
    color: #cfc6b9;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gate-input,
.name-entry input {
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(244, 241, 232, 0.3);
    border-radius: 12px;
    background: var(--aibegin-paper-soft);
    color: var(--aibegin-ink);
    font: inherit;
    font-size: 1.05rem;
}

.gate-error {
    color: #f4c7bd;
}

header.hero-header {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 420px;
    padding: clamp(70px, 10vw, 150px) clamp(24px, 4vw, 80px);
    background: var(--aibegin-ink);
    color: var(--aibegin-paper);
    text-align: center;
    border: 0;
}

header.hero-header::after {
    content: none;
}

header.hero-header .header-logo {
    display: none;
}

header.hero-header h1 {
    max-width: 940px;
    margin: 0;
    color: var(--aibegin-paper);
    font-family: Inter, "Avenir Next", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(4rem, 10vw, 9.8rem);
    font-weight: 900;
    line-height: 0.96;
}

header.hero-header p {
    max-width: 760px;
    margin: 28px 0 0;
    color: #d9d1c5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.4vw, 2.15rem);
    line-height: 1.22;
}

.back-to-login {
    top: 24px;
    right: clamp(24px, 4vw, 80px);
    color: var(--aibegin-paper);
    font-weight: 750;
    text-decoration: none;
}

.back-to-login:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.progress-top,
.hero-quote,
.section,
.disclaimer {
    width: min(100%, 1480px);
    margin-inline: auto;
}

.progress-top {
    padding: clamp(28px, 4vw, 54px) clamp(24px, 4vw, 80px) 0;
}

.progress-top-bar {
    height: 10px;
    background: var(--aibegin-line);
    border-radius: 999px;
}

.progress-top-fill {
    background: var(--aibegin-ink);
    border-radius: inherit;
}

.progress-top-text {
    color: var(--aibegin-muted);
    font-size: 0.95rem;
    font-weight: 750;
}

.progress-top-text #progressPercent {
    color: var(--aibegin-ink);
}

.chapter-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chapter-progress-item {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--aibegin-line);
    border-radius: 999px;
    color: var(--aibegin-muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.chapter-progress-item.active {
    border-color: var(--aibegin-ink);
    background: var(--aibegin-ink);
    color: var(--aibegin-white);
}

.chapter-progress-item.done {
    color: var(--aibegin-ink);
    background: var(--aibegin-paper-soft);
}

.hero-quote {
    margin-top: clamp(26px, 4vw, 50px);
    margin-bottom: 0;
    padding: 0 clamp(24px, 4vw, 80px);
    background: transparent;
    box-shadow: none;
}

.hero-quote p {
    max-width: 850px;
    margin: 0;
    color: var(--aibegin-muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
}

.section {
    padding: clamp(72px, 10vw, 150px) clamp(24px, 4vw, 80px);
}

.section h2 {
    max-width: 1000px;
    margin: 0 0 32px;
    color: var(--aibegin-ink);
    font-family: Inter, "Avenir Next", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.7rem, 7vw, 7.6rem);
    font-weight: 900;
    line-height: 0.96;
}

.section h3 {
    max-width: 920px;
    margin: clamp(44px, 6vw, 74px) 0 18px;
    color: var(--aibegin-ink);
    font-size: clamp(1.6rem, 3vw, 3rem);
    font-weight: 900;
    line-height: 1.05;
}

.section h4,
.question-card h4,
.summary-card h4,
.chapter-questions h4 {
    color: var(--aibegin-ink);
    font-size: clamp(1.3rem, 2vw, 1.85rem);
    font-weight: 900;
    line-height: 1.08;
}

p,
.chapter-list li,
.example-list li {
    max-width: 980px;
    color: var(--aibegin-ink);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.5;
}

.section > p,
.section > ul,
.chapter-list {
    max-width: 980px;
}

.section > p:first-of-type {
    color: var(--aibegin-muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    line-height: 1.3;
}

.learning-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    width: min(100%, 1180px);
    margin: clamp(28px, 4vw, 52px) 0;
}

.learning-card,
.practice-scenario,
.reflection-prompt,
.final-rules-card,
.practice-mode-panel {
    border-radius: 22px;
    background: var(--aibegin-card);
    box-shadow: var(--aibegin-shadow);
}

.learning-card {
    min-height: 210px;
    padding: clamp(24px, 3vw, 34px);
}

.learning-card span,
.scenario-eyebrow {
    display: block;
    margin: 0 0 14px;
    color: var(--aibegin-muted);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.learning-card p {
    margin: 0;
    color: var(--aibegin-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    line-height: 1.26;
}

.scenario,
.tip-box,
.info-box,
.warning-box,
.danger-box,
.chapter-summary,
.question-card,
.summary-card,
.example-list,
.risk-categories-reminder,
.category-card,
.domain-item,
.rule,
.read-confirmation {
    border: 0;
    border-radius: 22px;
    background: var(--aibegin-card);
    box-shadow: var(--aibegin-shadow);
}

.scenario,
.tip-box,
.info-box,
.warning-box,
.danger-box,
.chapter-summary,
.question-card,
.summary-card,
.risk-categories-reminder,
.read-confirmation {
    width: min(100%, 980px);
    padding: clamp(24px, 3vw, 38px);
    margin: clamp(22px, 3vw, 38px) 0;
}

.practice-scenario,
.reflection-prompt,
.final-rules-card,
.practice-mode-panel {
    width: min(100%, 980px);
    padding: clamp(24px, 3vw, 38px);
    margin: clamp(28px, 4vw, 52px) 0;
}

.practice-mode-panel h3 {
    margin-top: 0;
}

.practice-mode-panel > p:not(.scenario-eyebrow) {
    color: var(--aibegin-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    line-height: 1.28;
}

.practice-meter {
    height: 10px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--aibegin-line);
}

.practice-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--aibegin-ink);
    transition: width 0.3s ease;
}

.practice-meter-text {
    margin: 10px 0 0;
    color: var(--aibegin-muted);
    font-size: 0.95rem;
    font-weight: 750;
}

.practice-scenario h3 {
    margin: 0 0 16px;
}

.practice-scenario > p:not(.scenario-eyebrow) {
    color: var(--aibegin-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    line-height: 1.28;
}

.scenario-options {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.scenario-option {
    justify-content: flex-start;
    min-height: 56px;
    padding: 14px 18px;
    border: 1px solid var(--aibegin-line);
    border-radius: 12px;
    background: var(--aibegin-paper-soft);
    color: var(--aibegin-ink);
    text-align: left;
}

.scenario-option:hover,
.scenario-option.selected {
    border-color: var(--aibegin-ink);
    background: var(--aibegin-paper-soft);
}

.scenario-option.good.selected {
    background: #e9ead7;
}

.scenario-option.risk.selected {
    background: #ead5cf;
}

.scenario-option.neutral.selected {
    background: #dddcd7;
}

.scenario-feedback {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--aibegin-paper-soft);
    color: var(--aibegin-ink);
    font-weight: 650;
}

.scenario-feedback[hidden] {
    display: none;
}

.reflection-prompt label {
    display: block;
    max-width: 820px;
    color: var(--aibegin-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    line-height: 1.28;
}

.reflection-prompt textarea {
    width: 100%;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--aibegin-line);
    border-radius: 14px;
    background: var(--aibegin-paper-soft);
    color: var(--aibegin-ink);
    font: inherit;
    resize: vertical;
}

.final-rules-card ol {
    display: grid;
    gap: 14px;
    margin: 0;
    padding-left: 24px;
}

.final-rules-card li {
    color: var(--aibegin-ink);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 750;
}

.scenario-header,
.tip-box strong,
.info-box strong,
.warning-box strong,
.danger-box strong,
.chapter-summary strong,
.summary-card h4,
.domain-name,
.rule-content h5,
.question-card h4 {
    color: var(--aibegin-ink);
}

.scenario-header,
.chapter-summary strong {
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scenario p,
.rule-content p,
.domain-desc,
.chapter-summary li {
    color: var(--aibegin-ink);
}

.remember-card ul {
    display: grid;
    gap: 10px;
}

.lesson-banner {
    width: min(100%, 980px);
    border-radius: 22px;
    background: var(--aibegin-ink);
    color: var(--aibegin-paper);
    box-shadow: var(--aibegin-shadow);
}

.lesson-banner strong {
    color: var(--aibegin-paper);
}

.btn,
.primary-button,
.secondary-button,
.tool-card a,
button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--aibegin-ink);
    color: var(--aibegin-white);
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
    background: var(--aibegin-ink);
    box-shadow: none;
}

.gate-btn {
    background: var(--aibegin-paper);
    color: var(--aibegin-ink);
}

.btn-outline {
    border: 1px solid var(--aibegin-line);
    background: transparent;
    color: var(--aibegin-ink);
}

.btn-outline:hover {
    background: var(--aibegin-ink);
    color: var(--aibegin-white);
}

.btn-nav {
    width: min(100%, 980px);
    gap: 14px;
    padding-top: 28px;
    border-top: 1px solid var(--aibegin-line);
}

.accordion {
    width: min(100%, 980px);
}

.accordion-item {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: var(--aibegin-card);
    box-shadow: var(--aibegin-shadow);
}

.accordion-header {
    padding: 22px clamp(24px, 3vw, 34px);
    background: var(--aibegin-card);
    color: var(--aibegin-ink);
    border-bottom: 1px solid var(--aibegin-line);
    font-weight: 850;
}

.accordion-header:hover {
    background: #ded2c1;
}

.accordion-body {
    padding: clamp(24px, 3vw, 34px);
    background: var(--aibegin-card);
    border-top: 0;
}

.option,
.chapter-q-options label,
.name-entry input {
    border: 1px solid var(--aibegin-line);
    border-radius: 12px;
    background: var(--aibegin-paper-soft);
}

.option:hover,
.option.selected,
.chapter-q-options label:hover {
    border-color: var(--aibegin-ink);
    background: var(--aibegin-paper-soft);
}

.accordion-required-msg,
.reflectie-required-overlay-content {
    border: 0;
    border-radius: 22px;
    background: var(--aibegin-paper-soft);
    color: var(--aibegin-ink);
    box-shadow: var(--aibegin-shadow);
}

.accordion-required-msg {
    width: min(100%, 980px);
    padding: 24px 28px;
    border-left: 0;
    font-size: 1.05rem;
}

.accordion-required-msg::before {
    content: "Let op";
    display: block;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.read-confirmation label {
    color: var(--aibegin-ink);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 850;
}

.read-confirmation-input {
    accent-color: var(--aibegin-ink);
}

.tag {
    border-radius: 999px;
    border-color: var(--aibegin-line) !important;
    background: var(--aibegin-paper-soft) !important;
    color: var(--aibegin-ink) !important;
    font-weight: 750;
}

.rule-number {
    border-radius: 8px;
    background: var(--aibegin-ink);
}

.completion {
    width: min(100%, 980px);
    text-align: left;
}

.completion h2 {
    color: var(--aibegin-ink);
}

.completion .certificate-name-line,
.name-entry-confirmed {
    color: var(--aibegin-muted);
}

.name-entry {
    width: min(100%, 980px);
}

.disclaimer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 28px clamp(24px, 4vw, 80px);
    border-top: 1px solid var(--aibegin-line);
    background: var(--aibegin-paper);
    color: var(--aibegin-muted);
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    header.hero-header {
        min-height: 360px;
    }

    .learning-cards {
        grid-template-columns: 1fr;
    }

    .btn-nav {
        flex-direction: column;
    }

    .btn-nav .btn {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .gate,
    header.hero-header,
    .section {
        padding-left: 22px;
        padding-right: 22px;
    }

    header.hero-header {
        min-height: 0;
    }

    header.hero-header h1,
    .gate-title {
        font-size: clamp(3rem, 17vw, 4.8rem);
    }

    .gate-form,
    .gate-btn {
        width: 100%;
    }

    .hero-quote,
    .progress-top {
        padding-left: 22px;
        padding-right: 22px;
    }

    .disclaimer {
        flex-direction: column;
    }
}

/* Autoriteit-stijl: zakelijk, rustig en institutioneel */
:root {
    --authority-blue: #06345f;
    --authority-blue-dark: #04233f;
    --authority-ink: #111827;
    --authority-muted: #4b5563;
    --authority-bg: #f6f4ef;
    --authority-surface: #ffffff;
    --authority-panel: #eef2f6;
    --authority-panel-warm: #f2eee5;
    --authority-line: #cbd5e1;
    --authority-line-strong: #06345f;
    --authority-focus: #f2b705;
    --authority-success: #2f6f46;
    --authority-warning: #8b5d18;
    --authority-error: #8c2d22;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--authority-bg);
    color: var(--authority-ink);
    font-family: "Source Sans 3", "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

a {
    color: var(--authority-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.container {
    background: var(--authority-bg);
}

.gate {
    align-items: flex-start;
    justify-content: center;
    padding: clamp(36px, 7vw, 88px) clamp(24px, 6vw, 96px);
    background:
        linear-gradient(var(--authority-blue) 0 10px, transparent 10px),
        var(--authority-bg);
    color: var(--authority-ink);
}

.gate-inner {
    width: min(100%, 620px);
    justify-items: start;
    text-align: left;
}

.gate-title,
header.hero-header h1,
.section h2,
.completion h2 {
    color: var(--authority-blue);
    font-family: "Source Sans 3", "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
    font-weight: 850;
    line-height: 1.04;
}

.gate-title {
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.5rem);
}

.gate-subtitle {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--authority-muted);
    font-family: inherit;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.45;
}

.gate-form {
    width: min(100%, 520px);
    margin-top: 34px;
    gap: 12px;
}

.gate-label,
.name-entry label,
.scenario-eyebrow,
.learning-card span,
.progress-top-text,
.chapter-progress-item,
.scenario-header,
.chapter-summary strong {
    font-family: inherit;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gate-label {
    color: var(--authority-ink);
}

.gate-input,
.name-entry input,
.reflection-prompt textarea {
    min-height: 52px;
    border: 1px solid var(--authority-line);
    border-radius: 6px;
    background: var(--authority-surface);
    color: var(--authority-ink);
    font-family: inherit;
    box-shadow: none;
}

.gate-input:focus,
.name-entry input:focus,
.reflection-prompt textarea:focus,
button:focus-visible,
.btn:focus-visible,
.accordion-header:focus-visible,
.scenario-option:focus-visible {
    outline: 3px solid var(--authority-focus);
    outline-offset: 2px;
}

.gate-btn {
    width: auto;
    background: var(--authority-blue);
    color: #fff;
}

.gate-error {
    color: var(--authority-error);
}

header.hero-header {
    min-height: auto;
    align-items: start;
    place-items: stretch;
    padding: clamp(52px, 7vw, 96px) clamp(24px, 6vw, 96px) clamp(42px, 6vw, 72px);
    background:
        linear-gradient(var(--authority-blue) 0 10px, transparent 10px),
        var(--authority-surface);
    color: var(--authority-ink);
    text-align: left;
    border-bottom: 1px solid var(--authority-line);
}

header.hero-header h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.6rem, 5.8vw, 5.8rem);
}

header.hero-header p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--authority-muted);
    font-family: inherit;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.42;
}

.back-to-login {
    top: 24px;
    right: clamp(24px, 6vw, 96px);
    color: var(--authority-blue);
    font-weight: 700;
}

.progress-top,
.hero-quote,
.section,
.disclaimer {
    width: min(100%, 1280px);
}

.progress-top {
    padding: clamp(28px, 4vw, 48px) clamp(24px, 6vw, 96px) 0;
}

.progress-top-bar {
    height: 8px;
    border-radius: 0;
    background: var(--authority-line);
}

.progress-top-fill,
.practice-meter span {
    background: var(--authority-blue);
    border-radius: 0;
}

.progress-top-text,
.practice-meter-text {
    color: var(--authority-muted);
}

.progress-top-text #progressPercent {
    color: var(--authority-blue);
}

.chapter-progress {
    gap: 8px;
}

.chapter-progress-item {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--authority-surface);
    color: var(--authority-muted);
    font-size: 0.84rem;
}

.chapter-progress-item.active {
    border-color: var(--authority-blue);
    background: var(--authority-blue);
    color: #fff;
}

.chapter-progress-item.done {
    background: var(--authority-panel);
    color: var(--authority-blue);
}

.hero-quote {
    margin-top: 28px;
    padding: 0 clamp(24px, 6vw, 96px);
}

.hero-quote p {
    max-width: 840px;
    padding-left: 18px;
    border-left: 4px solid var(--authority-blue);
    color: var(--authority-ink);
    font-family: inherit;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 650;
    line-height: 1.42;
}

.section {
    padding: clamp(56px, 8vw, 108px) clamp(24px, 6vw, 96px);
}

.section h2 {
    max-width: 940px;
    margin: 0 0 26px;
    font-size: clamp(2.25rem, 4.7vw, 4.5rem);
}

.section h3 {
    max-width: 860px;
    margin: clamp(36px, 5vw, 62px) 0 14px;
    color: var(--authority-ink);
    font-size: clamp(1.45rem, 2.3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.16;
}

.section h4,
.question-card h4,
.summary-card h4,
.chapter-questions h4 {
    color: var(--authority-ink);
    font-size: clamp(1.16rem, 1.7vw, 1.45rem);
    font-weight: 800;
    line-height: 1.22;
}

p,
.chapter-list li,
.example-list li,
.final-rules-card li {
    max-width: 920px;
    color: var(--authority-ink);
    font-size: clamp(1.02rem, 1.35vw, 1.2rem);
    line-height: 1.62;
}

.section > p:first-of-type,
.learning-card p,
.practice-scenario > p:not(.scenario-eyebrow),
.practice-mode-panel > p:not(.scenario-eyebrow),
.reflection-prompt label {
    color: var(--authority-ink);
    font-family: inherit;
    font-size: clamp(1.08rem, 1.55vw, 1.35rem);
    line-height: 1.48;
}

.learning-cards {
    width: min(100%, 1040px);
    gap: 16px;
}

.learning-card,
.practice-scenario,
.reflection-prompt,
.final-rules-card,
.practice-mode-panel,
.scenario,
.tip-box,
.info-box,
.warning-box,
.danger-box,
.chapter-summary,
.question-card,
.summary-card,
.example-list,
.risk-categories-reminder,
.category-card,
.domain-item,
.rule,
.read-confirmation,
.accordion-item,
.lesson-banner {
    border: 1px solid var(--authority-line);
    border-radius: 8px;
    background: var(--authority-surface);
    box-shadow: none;
}

.learning-card,
.scenario,
.tip-box,
.info-box,
.warning-box,
.danger-box,
.chapter-summary,
.question-card,
.summary-card,
.risk-categories-reminder,
.read-confirmation,
.practice-scenario,
.reflection-prompt,
.final-rules-card,
.practice-mode-panel {
    width: min(100%, 920px);
    padding: clamp(22px, 3vw, 32px);
    margin: clamp(20px, 3vw, 34px) 0;
}

.learning-card {
    min-height: 172px;
    background: var(--authority-panel);
}

.scenario-eyebrow,
.learning-card span,
.scenario-header,
.chapter-summary strong {
    color: var(--authority-blue);
    font-size: 0.8rem;
}

.scenario-header,
.tip-box strong,
.info-box strong,
.warning-box strong,
.danger-box strong,
.chapter-summary strong,
.summary-card h4,
.domain-name,
.rule-content h5,
.question-card h4 {
    color: var(--authority-blue);
}

.warning-box,
.accordion-required-msg {
    border-left: 5px solid var(--authority-warning);
}

.danger-box {
    border-left: 5px solid var(--authority-error);
}

.info-box,
.tip-box {
    border-left: 5px solid var(--authority-blue);
}

.practice-meter {
    border-radius: 0;
    background: var(--authority-line);
}

.scenario-option,
.option,
.chapter-q-options label {
    min-height: 52px;
    border: 1px solid var(--authority-line);
    border-radius: 6px;
    background: var(--authority-surface);
    color: var(--authority-ink);
}

.scenario-option:hover,
.scenario-option.selected,
.option:hover,
.option.selected,
.chapter-q-options label:hover {
    border-color: var(--authority-blue);
    background: var(--authority-panel);
}

.scenario-feedback,
.reflectie-required-overlay-content {
    border: 1px solid var(--authority-line);
    border-radius: 8px;
    background: var(--authority-panel);
    color: var(--authority-ink);
    box-shadow: none;
}

.lesson-banner {
    background: var(--authority-blue);
    color: #fff;
}

.lesson-banner strong {
    color: #fff;
}

.btn,
.primary-button,
.secondary-button,
.tool-card a,
button {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--authority-blue);
    border-radius: 6px;
    background: var(--authority-blue);
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    box-shadow: none;
}

.btn:hover,
button:hover {
    transform: none;
    background: var(--authority-blue-dark);
    border-color: var(--authority-blue-dark);
}

.btn-outline {
    border-color: var(--authority-blue);
    background: var(--authority-surface);
    color: var(--authority-blue);
}

.btn-outline:hover {
    background: var(--authority-blue);
    color: #fff;
}

.btn-nav {
    width: min(100%, 920px);
    border-top: 1px solid var(--authority-line);
}

.accordion {
    width: min(100%, 920px);
}

.accordion-header {
    padding: 18px clamp(20px, 3vw, 28px);
    background: var(--authority-surface);
    color: var(--authority-blue);
    border-bottom: 1px solid var(--authority-line);
    font-weight: 800;
}

.accordion-header:hover,
.accordion-body {
    background: var(--authority-panel);
}

.accordion-body {
    padding: clamp(20px, 3vw, 28px);
}

.accordion-required-msg {
    width: min(100%, 920px);
    padding: 20px 24px;
    border-radius: 8px;
    background: var(--authority-surface);
    color: var(--authority-ink);
    font-size: 1rem;
}

.accordion-required-msg::before {
    color: var(--authority-warning);
}

.read-confirmation {
    background: var(--authority-panel);
}

.read-confirmation label {
    color: var(--authority-blue);
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    font-weight: 800;
}

.read-confirmation-input {
    accent-color: var(--authority-blue);
}

.tag {
    border-radius: 6px;
    border-color: var(--authority-line) !important;
    background: var(--authority-panel) !important;
    color: var(--authority-blue) !important;
}

.rule-number {
    border-radius: 6px;
    background: var(--authority-blue);
}

.completion,
.name-entry {
    width: min(100%, 920px);
}

.completion .certificate-name-line,
.name-entry-confirmed {
    color: var(--authority-muted);
}

.disclaimer {
    padding: 24px clamp(24px, 6vw, 96px);
    border-top: 1px solid var(--authority-line);
    background: var(--authority-surface);
    color: var(--authority-muted);
}

@media (max-width: 680px) {
    .gate,
    header.hero-header,
    .section,
    .progress-top,
    .hero-quote,
    .disclaimer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section h2,
    header.hero-header h1,
    .gate-title {
        font-size: clamp(2.35rem, 13vw, 3.4rem);
    }
}
