/* Accessibility toggle button */
button.accessibility-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1050;
    background: #fff;
    border: 2px solid #333;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.accessibility-toggle:hover,
.accessibility-toggle:focus {
    background: #333;
    color: #fff;
    outline: 3px solid #0284c7;
    outline-offset: 2px;
}

button.accessibility-toggle i.bi {
    font-size: 24px;
    line-height: 1 !important;
}

.accessibility-panel {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 1050;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    width: 280px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: none;
}

.accessibility-panel.show {
    display: block;
}

.accessibility-panel h6 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.accessibility-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.accessibility-option label {
    margin: 0;
    cursor: pointer;
    color: #333;
}

/* Form switch (standalone) */
.form-check-input {
    width: 2.5em;
    height: 1.25em;
    background-color: #ccc;
    border-radius: 1.25em;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.form-check-input::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1em;
    height: 1em;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.form-check-input:checked {
    background-color: #0284c7;
}

.form-check-input:checked::before {
    transform: translateX(1.25em);
}

.form-check-input:focus {
    outline: 3px solid rgba(2, 132, 199, 0.4);
    outline-offset: 2px;
}

/* High Contrast Mode */
body.high-contrast {
    background: #fff !important;
    background-image: none !important;
}

body.high-contrast * {
    border-color: #000 !important;
}

body.high-contrast a {
    color: #000 !important;
    text-decoration: underline !important;
}

body.high-contrast a:hover,
body.high-contrast a:focus {
    background-color: #ffff00 !important;
    outline: 3px solid #000 !important;
}

body.high-contrast #header,
body.high-contrast #banner,
body.high-contrast #cta,
body.high-contrast #footer {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast #header a,
body.high-contrast #banner *,
body.high-contrast #cta *,
body.high-contrast #footer * {
    color: #fff !important;
}

body.high-contrast .wrapper,
body.high-contrast main,
body.high-contrast section {
    background: #fff !important;
}

body.high-contrast .highlights .content {
    border: 2px solid #000 !important;
}

body.high-contrast .btn {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
}

/* Large Text Mode */
body.large-text {
    font-size: 1.25rem !important;
}

body.large-text h1 { font-size: 3.5rem !important; }
body.large-text h2 { font-size: 2.75rem !important; }
body.large-text h3 { font-size: 1.75rem !important; }
body.large-text h4 { font-size: 1.25rem !important; }
body.large-text p, body.large-text li { font-size: 1.25rem !important; line-height: 1.8 !important; }
body.large-text #banner h1 { font-size: 4.5rem !important; }
body.large-text #banner p { font-size: 1.75rem !important; }

/* Dyslexic Font Mode */
@font-face {
    font-family: 'OpenDyslexic';
    src: url('fonts/OpenDyslexic-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body.dyslexic-font,
body.dyslexic-font * {
    font-family: 'OpenDyslexic', Arial, sans-serif !important;
    line-height: 1.8 !important;
    word-spacing: 0.2em !important;
    letter-spacing: 0.05em !important;
}

body.dyslexic-font button.accessibility-toggle,
body.dyslexic-font .accessibility-panel,
body.dyslexic-font .accessibility-panel * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    word-spacing: 0 !important;
    letter-spacing: 0 !important;
}

/* TTS Controls */
.tts-widget {
    position: fixed;
    bottom: 80px;
    left: 16px;
    z-index: 1050;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.tts-widget.d-none {
    display: none !important;
}

.tts-widget .btn {
    padding: 0.5rem 0.75rem;
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.tts-widget .btn:hover {
    background: #f0f0f0;
}

/* TTS Speaking highlight */
.tts-speaking {
    background-color: rgba(2, 132, 199, 0.15) !important;
    outline: 2px solid #0284c7 !important;
    outline-offset: 2px;
    border-radius: 4px;
}

body.high-contrast .tts-speaking {
    background-color: #ffff00 !important;
    outline-color: #000 !important;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #014a6e;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* CTA link in donkere sectie */
#cta .cta-link {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

/* Logo in header en hero */
.header-logo {
    height: 28px;
    width: auto;
    vertical-align: middle;
    margin-right: 0.4rem;
    margin-top: -2px;
}

.hero-logo {
    height: 80px;
    width: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
}

@media screen and (max-width: 980px) {
    .header-logo {
        height: 24px;
    }
    .hero-logo {
        height: 60px;
    }
}

@media screen and (max-width: 480px) {
    .hero-logo {
        height: 40px;
    }
}

/* Utility classes */
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.875rem; }
.text-muted { color: #6c757d; }
