/**
 * OSKA cookie consent (docs/ai/consent.md): tarteaucitron's banner and panel in the theme's terms. A port of the
 * WordPress plugin's oska-tac.css (oska-tarteaucitron 1.15.5) onto the theme's Bootstrap variables.
 *
 * The markup is the library's, so the theme's buttons are restated on its selectors:
 *   .btn-dark = Accept / Reject (equal, policy rule) and Save · .btn-outline-dark = Choose, Allow, Deny (pressed =
 *   filled, so the state reads without colour alone) · ghost (underlined) = Privacy policy, Manage services, Close
 *   focus ring = 2px --bs-emphasis-color · muted text = --bs-secondary-color (AA on white) · square corners
 *   ($enable-rounded: false)
 * The library's stylesheet loads first, but its selectors are long: hence ours; !important only where it has it.
 * No url references: the manifest storage fails collectstatic on a missing file.
 */

html body #tarteaucitronRoot,
html body #tarteaucitronRoot * {
    color: var(--bs-body-color);
    font-family: var(--bs-body-font-family);
    hyphens: manual;
}

html body #tarteaucitronRoot button:focus-visible {
    outline: 2px solid var(--bs-emphasis-color);
    outline-offset: 2px;
}

/* Backdrop: the theme's modal backdrop, no blur */
html body.tarteaucitron-modal-open div#tarteaucitronRoot::before,
html body #tarteaucitronRoot.tarteaucitronSize-middle.tarteaucitronBeforeVisible::before {
    background: rgba(17, 17, 17, .4) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
html body #tarteaucitronRoot button#tarteaucitronBack { background: transparent; }

/* ---- Banner ---- */
html body #tarteaucitronRoot.tarteaucitronSize-middle div#tarteaucitronAlertBig,
html body #tarteaucitronRoot div#tarteaucitronAlertBig {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    text-align: left;
}
html body #tarteaucitronRoot.tarteaucitronSize-middle div#tarteaucitronAlertBig {
    max-height: calc(100% - 2 * 16px);
    max-width: calc(100% - 2 * 16px);
    overflow-y: auto;
    padding: 32px;
    width: 640px;
}
html body #tarteaucitronRoot div#tarteaucitronAlertBig.tarteaucitronAlertBigBottom {
    border-width: 1px 0 0;
    padding: 24px 20px;
}

html body #tarteaucitronRoot span#tarteaucitronDisclaimerAlert,
html body #tarteaucitronRoot.tarteaucitronSize-middle span#tarteaucitronDisclaimerAlert {
    display: block;
    font-size: 1rem !important;
    line-height: 1.6;
    margin: 0 0 24px;
    padding: 0;
    text-align: left;
}

/* .btn. The ids are needed: the library styles these by id, and !important beats its mobile block rule. */
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronPersonalize2,
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronAllDenied2,
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronCloseAlert {
    align-items: center;
    border: 1px solid var(--bs-body-color);
    border-radius: 0;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex !important;
    font-size: 1rem !important;
    font-weight: 500;
    justify-content: center;
    line-height: 1.5rem;
    margin: 0 12px 12px 0 !important;
    min-height: 48px;
    padding: .75rem 1.75rem;
    transition: background-color .15s ease-in-out, color .15s ease-in-out, border-color .15s ease-in-out;
    width: auto;
}
/* .btn-dark */
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronPersonalize2,
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronAllDenied2 {
    background: var(--bs-body-color);
    color: var(--bs-body-bg);
}
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronPersonalize2:hover,
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronAllDenied2:hover {
    background: color-mix(in srgb, var(--bs-body-color) 85%, var(--bs-body-bg));
}
/* .btn-outline-dark */
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronCloseAlert {
    background: transparent;
    color: var(--bs-body-color);
}
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronCloseAlert:hover {
    background: var(--bs-body-color);
    color: var(--bs-body-bg);
}

/* ghost */
html body #tarteaucitronRoot button#tarteaucitronPrivacyUrl,
html body #tarteaucitronRoot #tarteaucitron button#tarteaucitronPrivacyUrlDialog,
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronBorder button.tarteaucitron-toggle-group,
html body #tarteaucitronRoot #tarteaucitron button#tarteaucitronClosePanel {
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    box-sizing: border-box;
    color: var(--bs-body-color);
    cursor: pointer;
    display: inline-block;
    font-size: .875rem !important;
    font-weight: 500;
    height: auto;
    line-height: 1.4;
    margin: 0;
    min-height: 24px; /* SC 2.5.8 */
    padding: 0 0 4px;
    white-space: normal;
    width: auto;
}
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronPrivacyUrl {
    display: block !important;
    margin: 8px 0 0 !important;
    width: fit-content;
}
html body #tarteaucitronRoot button#tarteaucitronPrivacyUrl:hover,
html body #tarteaucitronRoot #tarteaucitron button#tarteaucitronPrivacyUrlDialog:hover,
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronBorder button.tarteaucitron-toggle-group:hover,
html body #tarteaucitronRoot #tarteaucitron button#tarteaucitronClosePanel:hover { color: var(--bs-secondary-color); }

/* ---- Panel ---- */
html body #tarteaucitronRoot div#tarteaucitron {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    max-width: calc(100% - 2 * 16px);
    padding: 0;
    width: 720px;
}
/* The library sizes this to the panel minus the 24px close button plus 4px; its 21px margin then runs over the
   panel's bottom border. */
html body #tarteaucitronRoot div#tarteaucitronServices {
    border-radius: 0;
    box-shadow: none;
    margin-top: 18px !important;
    scroll-padding-top: 56px;
}
/* A strip behind the close button: rows scroll under it instead of colliding with the button, and focus stops below
   it (SC 2.4.11). Leaves the scrollbar free. */
html body #tarteaucitronRoot div#tarteaucitron::before {
    background: var(--bs-body-bg);
    content: "";
    height: 48px;
    left: 0;
    position: absolute;
    right: 17px;
    top: 0;
    z-index: 1;
}
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronBorder,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine:hover,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine:hover {
    background: var(--bs-body-bg);
    border: 0;
}
html body #tarteaucitronRoot #tarteaucitron button#tarteaucitronClosePanel {
    background: var(--bs-body-bg) !important;
    position: absolute;
    right: 24px !important;
    top: 24px;
    z-index: 1;
}
/* The first block is both .tarteaucitronLine and .tarteaucitronMainLine; the row rule further down has the same
   weight and comes later, so both classes here: 18px margin + 32px clears the strip. */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronMainLine {
    padding: 32px 32px 16px;
}
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronH1 {
    border-bottom: 1px solid var(--bs-border-color);
    display: block;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -.01em;
    line-height: 1.05;
    margin: 0 0 16px;
    padding: 0 0 16px;
    text-align: left;
}
html body #tarteaucitronRoot #tarteaucitron div#tarteaucitronInfo,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronInfo p {
    background: transparent;
    border: 0;
    font-size: 1rem !important;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    position: static !important;
    text-align: left !important;
    width: auto;
}
html body #tarteaucitronRoot #tarteaucitron div#tarteaucitronInfo { display: block; margin-bottom: 24px !important; }
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronInfo br { display: none; }
html body #tarteaucitronRoot #tarteaucitron button#tarteaucitronPrivacyUrlDialog { display: block; margin-top: 12px; }

html body #tarteaucitronRoot #tarteaucitron .tarteaucitronH2,
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronH3,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServicesTitle_mandatory .tarteaucitronTitle button {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.4;
    margin: 0 0 4px;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine {
    border-top: 1px solid var(--bs-border-color);
    margin: 0;
    padding: 16px 32px;
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 60%;
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName span,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName a,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName p {
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.5;
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName > span {
    display: block;
    width: 100% !important;
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName .tarteaucitronH3 {
    font-size: 1rem;
    font-weight: 500 !important;
    line-height: 1.4;
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName > span:not(.tarteaucitronH2):not(.tarteaucitronH3),
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronStatusInfo span {
    color: var(--bs-secondary-color);
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronBorder button.tarteaucitron-toggle-group {
    display: block;
    font-size: .75rem !important;
    margin-top: 8px;
    white-space: nowrap;
}

/* The grouped layout hides every category title; Necessary has no group line, so its name comes back. */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServicesTitle_mandatory .tarteaucitronTitle {
    background: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
    display: block !important;
    margin: 0;
    padding: 16px 32px 0;
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServicesTitle_mandatory .tarteaucitronTitle button {
    background: transparent;
    border: 0;
    margin: 0;
    min-height: 24px; /* SC 2.5.8: still a button, though not clickable */
    padding: 0;
    pointer-events: none;
    text-align: left;
    width: auto;
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServicesTitle_mandatory .tarteaucitronPlus { display: none; }
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronServices_mandatory .tarteaucitronLine {
    border-top: 0;
    padding-top: 4px;
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronServices_mandatory .tarteaucitronLine .tarteaucitronName { width: 100%; }
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices_mandatory .tarteaucitronListCookies,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices_mandatory .tarteaucitronName br { display: none; }
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronServices_mandatory .tarteaucitronName .tarteaucitronH3 {
    color: var(--bs-secondary-color);
    font-size: .8125rem;
    font-weight: 400 !important;
    line-height: 1.5;
    margin-top: 0;
}

/* .btn-outline-dark, small; pressed = filled, so the state reads without colour alone */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine .tarteaucitronAsk {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    float: right;
    gap: 8px;
    margin: 0;
    text-align: right;
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAllow,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronDeny,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine .tarteaucitronAllow,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine .tarteaucitronDeny,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine #tarteaucitronAllAllowed,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine #tarteaucitronAllDenied {
    align-items: center;
    background: transparent;
    border: 1px solid var(--bs-body-color);
    border-radius: 0;
    box-sizing: border-box;
    color: var(--bs-body-color);
    cursor: pointer;
    display: inline-flex;
    font-size: .875rem !important;
    font-weight: 500;
    justify-content: center;
    line-height: 1.5rem;
    margin: 0;
    min-height: 40px;
    opacity: 1;
    padding: .5rem 1.25rem;
    transition: background-color .15s ease-in-out, color .15s ease-in-out, border-color .15s ease-in-out;
    width: auto;
}
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAllow:hover,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronDeny:hover,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAllow[aria-pressed="true"],
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronDeny[aria-pressed="true"],
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine #tarteaucitronAllAllowed:hover,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine #tarteaucitronAllDenied:hover,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine #tarteaucitronAllAllowed[aria-pressed="true"],
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine #tarteaucitronAllDenied[aria-pressed="true"] {
    background: var(--bs-body-color);
    color: var(--bs-body-bg);
}
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronAllow .tarteaucitronCheck,
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronDeny .tarteaucitronCross { display: none; }

/* Save bar: pinned to the bottom of the library's scroll area, #tarteaucitronServices. The padding keeps tabbed-to
   buttons clear of it (SC 2.4.11). */
html body #tarteaucitronRoot div#tarteaucitronServices { scroll-padding-bottom: calc(48px + 3 * 16px); }
html body #tarteaucitronRoot #tarteaucitron div#tarteaucitronSave {
    background: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
    bottom: 0;
    padding: 16px 32px;
    position: sticky;
    text-align: right;
    z-index: 1;
}
/* .btn-dark */
html body #tarteaucitronRoot #tarteaucitron button#tarteaucitronSaveButton {
    background: var(--bs-body-color);
    border: 1px solid var(--bs-body-color);
    border-radius: 0;
    box-sizing: border-box;
    color: var(--bs-body-bg);
    cursor: pointer;
    font-size: 1rem !important;
    font-weight: 500;
    line-height: 1.5rem;
    margin: 0;
    min-height: 48px;
    padding: .75rem 1.75rem;
    transition: background-color .15s ease-in-out, color .15s ease-in-out, border-color .15s ease-in-out;
    width: auto;
}
html body #tarteaucitronRoot #tarteaucitron button#tarteaucitronSaveButton:hover {
    background: color-mix(in srgb, var(--bs-body-color) 85%, var(--bs-body-bg));
}

/* ---- Float button ---- */
html body #tarteaucitronRoot #tarteaucitronIcon { bottom: 16px; right: 16px; }
html body #tarteaucitronRoot #tarteaucitronIcon #tarteaucitronManager {
    align-items: center;
    background: var(--bs-emphasis-color);
    border: 1px solid var(--bs-emphasis-color);
    border-radius: 0;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
}
html body #tarteaucitronRoot #tarteaucitronIcon #tarteaucitronManager img { display: block; height: 20px; width: 20px; }
html body #tarteaucitronRoot #tarteaucitronIcon #tarteaucitronManager:focus-visible { outline-offset: 2px; }

/* Not over an open modal or the open menu (offcanvas) */
body.modal-open #tarteaucitronIcon,
body:has(.offcanvas.show) #tarteaucitronIcon { display: none !important; }

@media (max-width: 767px) {
    html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronPersonalize2,
    html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronAllDenied2,
    html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronCloseAlert {
        display: flex !important;
        margin-right: 0 !important;
        width: 100%;
    }
    html body #tarteaucitronRoot.tarteaucitronSize-middle div#tarteaucitronAlertBig { padding: 24px; }
    html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronMainLine { padding: 32px 16px 16px; }
    html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine { padding: 16px; }
    html body #tarteaucitronRoot #tarteaucitron div#tarteaucitronSave { padding: 16px; }
    html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServicesTitle_mandatory .tarteaucitronTitle { padding: 16px 16px 0; }
    html body #tarteaucitronRoot #tarteaucitron button#tarteaucitronClosePanel { right: 16px !important; top: 16px; }

    /* The library's mobile layout hides the label behind a 10% wide arrow; the words stay. */
    html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronBorder button.tarteaucitron-toggle-group {
        display: inline-block !important;
        font-size: .75rem !important;
        margin-bottom: 0 !important;
        padding: 0 0 4px;
        position: static;
        white-space: normal; /* "Datenschutz-Einstellungen (1)" does not fit 320 px on one line (SC 1.4.10) */
        width: auto !important;
    }
    html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronBorder button.tarteaucitron-toggle-group::before {
        font-size: .75rem;
        margin-right: 8px;
    }

    html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk,
    html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine .tarteaucitronAsk {
        display: flex !important;
        float: none;
        margin-top: 12px !important;
    }
    html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronBorder .tarteaucitronAsk button,
    html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine .tarteaucitronAsk button {
        display: inline-flex !important;
        flex: 1 1 0;
        margin: 0 !important;
        width: auto !important;
    }
}

/* On a very short screen a pinned bar would take most of the panel (SC 1.4.10) */
@media (max-height: 479px) {
    html body #tarteaucitronRoot #tarteaucitron div#tarteaucitronSave { position: static; }
}

@media (prefers-reduced-motion: reduce) {
    html body #tarteaucitronRoot * { transition: none !important; }
}

/* ---- Embed gate (embeds.py): the placeholder of a held Vimeo or Maps iframe; the button is the theme's .btn-dark ---- */
.oska-embed-gate {
    align-items: center;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding: 16px;
    text-align: center;
    width: 100%;
}
