/*
 * Toegankelijkheid (WCAG 2.1 AA) – generieke verbeteringen voor alle pagina's.
 * Wordt na de andere stylesheets geladen.
 */

/* 2.4.7 Focus zichtbaar: duidelijke focusrand bij toetsenbordgebruik */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #023A78 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px #ffffff !important;
}

/* 2.4.1 Blokken omzeilen: "Naar hoofdinhoud"-link, zichtbaar bij focus */
.ska-skiplink {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 100000;
    padding: 10px 16px;
    background: #023A78;
    color: #ffffff !important;
    font-weight: bold;
    text-decoration: underline;
    border-radius: 4px;
}
.ska-skiplink:focus {
    top: 8px;
}

/* Doel van de skiplink: geen focusrand op de container zelf */
#hoofdinhoud:focus {
    outline: none;
}

/* Klikbare niet-knoppen tonen een handje */
[role="button"] {
    cursor: pointer;
}

/* Alleen voor schermlezers */
.ska-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 1.4.3 Contrast: primaire knop. Wit op #0099da haalde 3,2:1; met het
   donkerblauw uit de huisstijl (#023A78) is dat 11,2:1. */
.btn-primary,
.btn-ar.btn-primary {
    background: #023A78 !important;
    background-image: none !important;
    border-color: #012a57 !important;
    color: #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-ar.btn-primary:hover,
.btn-ar.btn-primary:focus,
.btn-ar.btn-primary:active {
    background: #012a57 !important;
    color: #ffffff !important;
}

/* 1.4.3 Contrast: links in de lichtblauwe footer, ook bij hover */
#footer-widgets a:hover,
#footer-widgets a:focus {
    color: #000000;
    text-decoration: underline;
}

/* 1.3.1 Koppen: h2 met de opmaak van de oude h3/h5 */
h2.h3 {
    font-size: 1.7em;
}
h2.h5 {
    font-size: 1.2em;
    font-weight: 400;
}

/* 3.3.2 Zichtbaar label bij het zoekvak op de homepage */
.ska-zoeklabel {
    display: block;
    font-weight: bold;
    color: #023A78;
    margin-bottom: 4px;
}

/* 1.3.1 Koppen: h1 met de opmaak van de oude h2 (wijken.php, av.php) */
h1.h2 {
    font-size: 2em;
}

/* 1.4.3 Contrast: links in de donkerblauwe footer. #0099da op #023a78 = 3,5:1;
   wit = 11,2:1. Onderstreept, zodat ze als link herkenbaar zijn. */
#footer a,
#footer a:hover,
#footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}
