/*
 * Stinner accessibility fixes
 * Legal documents + footer
 */

/* Complianz-generated legal documents:
 * old orange #ff7300 on white was only ~2.72:1.
 */
#cmplz-document a {
    color: #7c4a88 !important;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.12em;
}

#cmplz-document a:hover,
#cmplz-document a:focus-visible {
    color: #542f60 !important;
    text-decoration-thickness: 0.12em;
}

/* Footer:
 * old #666666 against dark violet was only ~3.11:1.
 */
#footer-info,
#footer-info a {
    color: #d9d9d9 !important;
}

#footer-info a:hover,
#footer-info a:focus-visible {
    color: #ffffff !important;
    text-decoration: underline;
}

/* STINNER_DBIP_CONTRAST
 * DB-IP attribution is rendered at only 9px.
 * Force sufficient contrast against white.
 */
a[href$="db-ip.com"] {
    color: #666666 !important;
    opacity: 1 !important;
}

/* STINNER_LEGAL_FINAL_A11Y */

/*
 * Imprint contact links.
 * Orange #ff7300 on white was only about 2.72:1.
 */
body.page-id-48893 #main-content a[href^="tel:"],
body.page-id-48893 #main-content a[href^="mailto:"],
body.page-id-64196 #main-content a[href^="tel:"],
body.page-id-64196 #main-content a[href^="mailto:"],
body.page-id-64197 #main-content a[href^="tel:"],
body.page-id-64197 #main-content a[href^="mailto:"],
body.page-id-64198 #main-content a[href^="tel:"],
body.page-id-64198 #main-content a[href^="mailto:"] {
    color: #7c4a88 !important;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

body.page-id-48893 #main-content a[href^="tel:"]:hover,
body.page-id-48893 #main-content a[href^="mailto:"]:hover,
body.page-id-48893 #main-content a[href^="tel:"]:focus-visible,
body.page-id-48893 #main-content a[href^="mailto:"]:focus-visible,
body.page-id-64196 #main-content a[href^="tel:"]:hover,
body.page-id-64196 #main-content a[href^="mailto:"]:hover,
body.page-id-64196 #main-content a[href^="tel:"]:focus-visible,
body.page-id-64196 #main-content a[href^="mailto:"]:focus-visible,
body.page-id-64197 #main-content a[href^="tel:"]:hover,
body.page-id-64197 #main-content a[href^="mailto:"]:hover,
body.page-id-64197 #main-content a[href^="tel:"]:focus-visible,
body.page-id-64197 #main-content a[href^="mailto:"]:focus-visible,
body.page-id-64198 #main-content a[href^="tel:"]:hover,
body.page-id-64198 #main-content a[href^="mailto:"]:hover,
body.page-id-64198 #main-content a[href^="tel:"]:focus-visible,
body.page-id-64198 #main-content a[href^="mailto:"]:focus-visible {
    color: #542f60 !important;
}

/*
 * DB-IP attribution:
 * WCAG 2.2 target size and context-dependent contrast.
 */
a[href$="db-ip.com"] {
    color: #666666 !important;
    opacity: 1 !important;
    display: inline-block;
    min-height: 24px;
    line-height: 24px;
}

/*
 * On imprint pages the DB-IP attribution is rendered
 * against the dark Divi footer background.
 */
body.page-id-48893 a[href$="db-ip.com"],
body.page-id-64196 a[href$="db-ip.com"],
body.page-id-64197 a[href$="db-ip.com"],
body.page-id-64198 a[href$="db-ip.com"] {
    color: #d9d9d9 !important;
}

/* STINNER_GEOIP_FIXED_BACKGROUND
 * The attribution is position:fixed and otherwise transparent,
 * so its effective background changes with the content behind it.
 */
.stinner-geoip-attribution {
    background: #ffffff !important;
}

body .stinner-geoip-attribution a[href$="db-ip.com"] {
    color: #666666 !important;
    opacity: 1 !important;
    display: inline-block;
    min-height: 24px;
    line-height: 24px;
}
