/* "Datenschutzeinstellungen" - Luca privacy choice for Google reCAPTCHA. Everything is scoped to .luca-privacy-choice / .luca-privacy-open; no theme,
   navigation or layout rule is overridden. Same visual family as the cookie notice (luca-cookie-banner.css). */

.luca-privacy-choice {
    padding: 0;
    border: 0;
    background: transparent;
    color: #30413c;
    width: min(520px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - 24px);
    overflow: visible;
}

.luca-privacy-choice::backdrop {
    background: rgba(32, 48, 42, 0.5);
}

.luca-privacy-choice__card {
    position: relative;
    box-sizing: border-box;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    border: 1px solid #d9e9e4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 44px rgba(40, 66, 57, 0.22);
    font-family: inherit;
}

.luca-privacy-choice__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #53655d;
    cursor: pointer;
}

.luca-privacy-choice__close:hover {
    background: #eef6f2;
}

.luca-privacy-choice__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 44px 14px 0;
}

.luca-privacy-choice__icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    border-radius: 14px;
    background: #e6f5ee;
    color: #417a5f;
}

.luca-privacy-choice__icon svg {
    width: 26px;
    height: 26px;
}

.luca-privacy-choice__brand {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #60756b;
}

.luca-privacy-choice h2 {
    margin: 3px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #30413c;
    text-transform: none;
}

.luca-privacy-choice h2:focus {
    outline: none;
}

.luca-privacy-choice__body p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #53655d;
}

.luca-privacy-choice__body p[hidden] {
    display: none;
}

.luca-privacy-choice__status {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f1f7f4;
    color: #30413c;
}

.luca-privacy-choice__note {
    font-size: 13px;
    color: #68746e;
}

/* The two answers are IDENTICAL: same size, weight, colours, border; neither is pre-focused or visually preferred. */
.luca-privacy-choice__actions {
    display: flex;
    gap: 12px;
    margin: 18px 0 14px;
}

.luca-privacy-choice__btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 11px 18px;
    border: 2px solid #5e7da2;
    border-radius: 12px;
    background: #fff;
    color: #304f72;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
}

.luca-privacy-choice__btn:hover {
    background: #eef3f8;
}

.luca-privacy-choice__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #415f7e;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.luca-privacy-choice :is(a, button):focus-visible,
.luca-privacy-choice__card :is(a, button):focus-visible {
    outline: 3px solid #304f72;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .luca-privacy-choice__card {
        padding: 18px;
        border-radius: 18px;
    }

    .luca-privacy-choice h2 {
        font-size: 18px;
    }

    .luca-privacy-choice__actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .luca-privacy-choice[open] .luca-privacy-choice__card {
        animation: luca-privacy-in 0.16s ease-out;
    }

    @keyframes luca-privacy-in {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }
}

/* ---- entry points ("Datenschutzeinstellungen" buttons) ---- */

/* :where() keeps the base at zero specificity so the host list's own link classes (footer, drawers) still win */
:where(.luca-privacy-open) {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.luca-privacy-open:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 4px;
}

.luca-privacy-open--footer:hover {
    text-decoration: underline;
}

.luca-privacy-open--drawer {
    width: 100%;
    text-align: left;
}

body.provider-page .sidebar .pd-drawer-legal__body > .luca-privacy-open--provider-drawer {
    min-height: 42px;
    width: 100%;
    padding: 0 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: left;
    color: #6b6560;
    font-size: 14px;
    font-weight: 500;
}

body.provider-page .sidebar .pd-drawer-legal__body > .luca-privacy-open--provider-drawer:hover,
body.provider-page .sidebar .pd-drawer-legal__body > .luca-privacy-open--provider-drawer:focus-visible {
    background: rgba(110, 170, 137, 0.10);
    color: #3e7a5a;
}

/* live region for the saved-choice announcement */
.luca-privacy-live {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
