/* ==========================================================================
   Statix Toegankelijkheid widget
   ========================================================================== */

/* --- Knop --- */
#statix-a11y-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 99998;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #0077C8;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform .15s ease, background .15s ease;
}
#statix-a11y-btn:hover { background: #005fa0; transform: scale(1.06); }
#statix-a11y-btn:focus-visible { outline: 3px solid #003d66; outline-offset: 3px; }
#statix-a11y-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* --- Paneel --- */
#statix-a11y-panel {
    position: fixed;
    left: 18px;
    bottom: 70px;
    z-index: 99999;
    width: 300px;
    max-width: calc(100vw - 36px);
    max-height: min(70vh, 560px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    border: 1px solid #dbe4ea;
    font-family: inherit;
    display: none;
}
#statix-a11y-panel.statix-a11y-open { display: block; }
#statix-a11y-panel .a11y-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e8eef2;
    font-weight: 700;
    font-size: 15px;
    color: #1d3b53;
}
#statix-a11y-panel .a11y-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #667;
    padding: 4px 8px;
}
#statix-a11y-panel .a11y-group { padding: 10px 16px 4px; }
#statix-a11y-panel .a11y-group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #7a8b99;
    margin: 8px 0 6px;
}
#statix-a11y-panel .a11y-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    background: #f7fafc;
    cursor: pointer;
    font-size: 14px;
    color: #1d3b53;
    text-align: left;
}
#statix-a11y-panel .a11y-opt:hover { border-color: #0077C8; }
#statix-a11y-panel .a11y-opt:focus-visible { outline: 3px solid #0077C8; outline-offset: 2px; }
#statix-a11y-panel .a11y-opt .a11y-state {
    font-size: 12px;
    font-weight: 700;
    color: #8a99a8;
}
#statix-a11y-panel .a11y-opt[aria-pressed="true"] {
    background: #e8f3fb;
    border-color: #0077C8;
}
#statix-a11y-panel .a11y-opt[aria-pressed="true"] .a11y-state { color: #0077C8; }
#statix-a11y-panel .a11y-reset {
    display: block;
    width: calc(100% - 32px);
    margin: 8px 16px 14px;
    padding: 9px;
    border: none;
    border-radius: 8px;
    background: #eef2f5;
    color: #546575;
    font-size: 13px;
    cursor: pointer;
}
#statix-a11y-panel .a11y-reset:hover { background: #e0e7ec; }

/* ==========================================================================
   Modus: Verhoogd contrast
   ========================================================================== */
/* #main is een ID → wint op specificiteit van statix !important kleur-regels */
body.statix-a11y-contrast #main * {
    color: #111 !important;
    text-shadow: none !important;
}
body.statix-a11y-contrast #main a { color: #004f8a !important; }
body.statix-a11y-contrast #main .statix-hero-text *,
body.statix-a11y-contrast #main .statix-support-intro *,
body.statix-a11y-contrast #main .statix-text-white *,
body.statix-a11y-contrast #main .statix-text-shadow * {
    color: #004f8a !important;
}
body.statix-a11y-contrast .avia-section,
body.statix-a11y-contrast .container,
body.statix-a11y-contrast .flex_column,
body.statix-a11y-contrast .statix-hero-text,
body.statix-a11y-contrast .statix-support-intro {
    background-image: none !important;
    background-color: #fff !important;
}
body.statix-a11y-contrast .statix-hero-text,
body.statix-a11y-contrast .statix-support-intro {
    border-left-color: #004f8a !important;
}
body.statix-a11y-contrast #main .avia-button,
body.statix-a11y-contrast #main button,
body.statix-a11y-contrast #main input[type="submit"] {
    color: #fff !important;
    background-color: #004f8a !important;
}

/* ==========================================================================
   Modus: Grotere tekst (stappen via html font-size)
   ========================================================================== */
/* Enfold gebruikt vrijwel overal px → zoom op body schaalt alles (zoals browser-zoom) */
html.statix-a11y-fs-1 body { zoom: 1.15; }
html.statix-a11y-fs-2 body { zoom: 1.3; }

/* ==========================================================================
   Modus: Leesbaar lettertype
   ========================================================================== */
body.statix-a11y-readable,
body.statix-a11y-readable .entry-content,
body.statix-a11y-readable input,
body.statix-a11y-readable button,
body.statix-a11y-readable select,
body.statix-a11y-readable textarea {
    font-family: Verdana, Arial, Helvetica, sans-serif !important;
}
body.statix-a11y-readable .entry-content p,
body.statix-a11y-readable .entry-content li {
    letter-spacing: .02em !important;
    word-spacing: .06em !important;
    line-height: 1.8 !important;
}

/* ==========================================================================
   Modus: Links benadrukken
   ========================================================================== */
body.statix-a11y-links .entry-content a,
body.statix-a11y-links footer a,
body.statix-a11y-links nav a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 600;
}
body.statix-a11y-links a:focus-visible {
    outline: 3px solid #0077C8 !important;
    outline-offset: 2px;
}

/* ==========================================================================
   Modus: Animaties verminderen
   ========================================================================== */
body.statix-a11y-motion *,
body.statix-a11y-motion *::before,
body.statix-a11y-motion *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
}
body.statix-a11y-motion .avia-slideshow,
body.statix-a11y-motion .av-parallax { background-attachment: scroll !important; }
body.statix-a11y-motion .avia_transform { transform: none !important; }

/* ==========================================================================
   Modus: Grote cursor
   ========================================================================== */
body.statix-a11y-cursor,
body.statix-a11y-cursor a,
body.statix-a11y-cursor button,
body.statix-a11y-cursor input,
body.statix-a11y-cursor select,
body.statix-a11y-cursor label {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1.5' d='M5.5 3.2v16.3l4.4-3.9 2.6 6.5 3.4-1.4-2.6-6.4 6.1-.9z'/%3E%3C/svg%3E") 4 2, auto !important;
}
