/* ===========================================================
   Datenschutzhinweis
   Datei: /css/privacy_notice.css
   =========================================================== */

.privacy-notice {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.privacy-notice.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ===========================================================
   Abdunklung des Seitenhintergrunds
   =========================================================== */

.privacy-notice__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}


/* ===========================================================
   Dialogfenster
   Der eigentliche Hintergrund kommt zusätzlich aus:
   .elegant-background-black
   =========================================================== */

.privacy-notice__dialog {
    position: relative;

    width: 100%;
    max-width: 590px;

    max-height: calc(100vh - 40px);
    overflow-y: auto;

    padding: 32px;

    color: #ffffff;

    border: 1px solid rgba(239, 183, 64, 0.4);
    border-radius: 15px;

    box-shadow:
        0 26px 65px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.025);

    transform: translateY(-35px);

    animation: privacyDialog 0.35s ease;
}


/* Falls die Hintergrundklasse selbst eine andere Schriftfarbe setzt */

.privacy-notice__dialog.elegant-background-black {
    color: #ffffff;
}


/* ===========================================================
   Einblendanimation
   =========================================================== */

@keyframes privacyDialog {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(-35px);
    }
}


/* ===========================================================
   Symbol und Überschrift
   =========================================================== */

.privacy-notice__icon {
    margin-bottom: 14px;

    text-align: center;

    font-size: 34px;
    line-height: 1;
}

.privacy-notice__title {
    margin: 0;

    color: #efb740;

    text-align: center;

    font-size: 27px;
    font-weight: 600;
    line-height: 1.25;
}

.privacy-notice__divider {
    width: 84px;
    height: 2px;

    margin: 19px auto 36px;

    background: #efb740;
}


/* ===========================================================
   Inhalt
   =========================================================== */

.privacy-notice__content {
    color: #ffffff;

    font-size: 16px;
    line-height: 1.7;
}

.privacy-notice__content p {
    margin: 0 0 18px;
}

.privacy-notice__content p:last-child {
    margin-bottom: 0;
}

.privacy-notice__content strong {
    color: #ffffff;
    font-weight: 600;
}


/* ===========================================================
   Link und Button
   =========================================================== */

.privacy-notice__actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 22px;

    margin-top: 32px;
}

.privacy-notice__button {
    margin: 0 auto;
}


.privacy-notice__link,
.privacy-notice__link:link,
.privacy-notice__link:visited {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #efb740;

    font-size: 16px;
    line-height: 1.4;

    text-decoration: none;

    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.privacy-notice__link:hover {
    color: #ffffff;

    text-decoration: underline;
    text-underline-offset: 4px;

    transform: translateX(2px);
}

.privacy-notice__link:focus-visible {
    color: #ffffff;

    outline: 3px solid rgba(239, 183, 64, 0.5);
    outline-offset: 4px;
}

.privacy-notice__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 170px;
    min-height: 50px;

    padding: 13px 25px;

    color: #ffffff;
    background: #2c922f;

    border: 0;
    border-radius: 11px;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);

    cursor: pointer;

    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;

    transition:
        background-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.privacy-notice__button:hover {
    background: #35a638;

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);

    transform: translateY(-2px);
}

.privacy-notice__button:active {
    transform: translateY(0);
}

.privacy-notice__button:focus-visible {
    outline: 3px solid rgba(239, 183, 64, 0.55);
    outline-offset: 4px;
}


/* ===========================================================
   Abschlusssatz
   =========================================================== */

.privacy-notice__statement {
    margin: 28px 0 0;
    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.13);

    color: rgba(255, 255, 255, 0.62);

    text-align: center;

    font-size: 12px;
    line-height: 1.55;
}


/* ===========================================================
   Scrollen der Seite während der Anzeige verhindern
   =========================================================== */

body.privacy-notice-open {
    overflow: hidden;
}


/* ===========================================================
   Smartphone und kleinere Tablets
   =========================================================== */

@media (max-width: 700px) {
    .privacy-notice {
        align-items: flex-end;

        padding: 10px;
    }

    .privacy-notice__dialog {
        max-width: none;
        max-height: calc(100vh - 20px);

        padding: 25px 21px;

        border-radius: 14px;

        transform: none;
    }

    @keyframes privacyDialog {
        from {
            opacity: 0;
            transform: translateY(18px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .privacy-notice__icon {
        margin-bottom: 11px;

        font-size: 31px;
    }

    .privacy-notice__title {
        font-size: 24px;
    }

    .privacy-notice__divider {
        margin-bottom: 29px;
    }

    .privacy-notice__content {
        font-size: 15px;
        line-height: 1.62;
    }

    .privacy-notice__actions {
        flex-direction: column-reverse;
        align-items: stretch;

        gap: 19px;

        margin-top: 27px;
    }

    .privacy-notice__button {
        width: 100%;
        min-width: 0;
    }

    .privacy-notice__link {
        justify-content: center;

        text-align: center;
    }

    .privacy-notice__statement {
        margin-top: 24px;

        font-size: 11px;
    }
}


/* ===========================================================
   Reduzierte Bewegungen
   =========================================================== */

@media (prefers-reduced-motion: reduce) {
    .privacy-notice,
    .privacy-notice__dialog,
    .privacy-notice__link,
    .privacy-notice__button {
        animation: none;
        transition: none;
    }
}