/* =====================================================
   COOKIE CONSENT
   FDP ANHALT-BITTERFELD
===================================================== */


/* =====================================================
   VERSTECKT
===================================================== */

.cookie-consent[hidden] {
    display: none !important;
}


/* =====================================================
   CONTAINER
===================================================== */

.cookie-consent {
    position: fixed;

    z-index: 99999;

    inset: 0;

    display: flex;

    box-sizing: border-box;

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

    padding: 20px;

    font-family:
        "Public Sans",
        Arial,
        sans-serif;
}


/* =====================================================
   HINTERGRUND
===================================================== */

.cookie-consent__backdrop {
    position: absolute;

    inset: 0;

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

    backdrop-filter:
        blur(7px);

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


/* =====================================================
   DIALOG
===================================================== */

.cookie-consent__dialog {
    position: relative;

    z-index: 1;

    box-sizing: border-box;

    width:
        min(
            1226px,
            calc(100vw - 40px)
        );

    max-height:
        calc(100dvh - 40px);

    overflow-x: hidden;
    overflow-y: auto;

    padding:
        49px
        48px
        0;

    border: 0;

    border-radius: 0;

    background:
        var(--fdp-white);

    color: #181818;

    box-shadow:
        0
        24px
        80px
        rgba(
            0,
            0,
            0,
            0.20
        );

    outline: none;
}


/* =====================================================
   EINLEITUNG
===================================================== */

.cookie-consent__intro-wrap {
    display: flex;

    width: 100%;

    justify-content: center;

    margin-bottom: 44px;
}


.cookie-consent__intro {
    width:
        min(
            660px,
            100%
        );

    margin: 0;

    color: #171717;

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 1rem;

    font-weight: var(--fdp-body-weight);

    line-height: 1.55;

    text-align: center;
}


/* =====================================================
   ZWEI SPALTEN
===================================================== */

.cookie-consent__options {
    display: grid;

    width: 100%;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 74px;

    padding:
        0
        0
        38px;
}


/* =====================================================
   EINZELNE SPALTE
===================================================== */

.cookie-consent__option {
    display: flex;

    min-width: 0;
    min-height: 286px;

    flex-direction: column;

    margin: 0;

    padding: 0;
}


/* =====================================================
   ÜBERSCHRIFT
===================================================== */

.cookie-consent__option-title {
    margin:
        0
        0
        18px;

    color: var(--fdp-blue);

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 1.5rem;

    font-weight: 800;

    letter-spacing: -0.025em;

    line-height: 1.2;
}


/* =====================================================
   TEXT
===================================================== */

.cookie-consent__option-text {
    margin:
        0
        0
        23px;

    color: #171717;

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 1rem;

    font-weight: var(--fdp-body-weight);

    line-height: 1.55;
}


/* =====================================================
   ANBIETER-AKKORDEON

   Bewusst ohne Kasten oder Trennlinien,
   entsprechend dem Referenzdesign.
===================================================== */

.cookie-consent__providers {
    width: 100%;

    margin:
        4px
        0
        28px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #181818;
}


/* =====================================================
   AKKORDEON-KOPF
===================================================== */

.cookie-consent__providers-summary {
    position: relative;

    display: inline-flex;

    width: auto;

    align-items: center;

    gap: 10px;

    margin: 0;

    padding: 0;

    color: #171717;

    cursor: pointer;

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 1rem;

    font-weight: var(--fdp-body-weight);

    line-height: 1.4;

    list-style: none;

    transition:
        color 160ms ease;
}


/* =====================================================
   NATIVEN DETAILS-PFEIL ENTFERNEN
===================================================== */

.cookie-consent__providers-summary::-webkit-details-marker {
    display: none;
}


.cookie-consent__providers-summary::marker {
    content: "";
}


/* =====================================================
   FDP-PFEIL LINKS
===================================================== */

.cookie-consent__providers-summary::before {
    display: block;

    width: 8px;
    height: 8px;

    flex:
        0
        0
        8px;

    border-top:
        2px solid
        var(--fdp-blue);

    border-right:
        2px solid
        var(--fdp-blue);

    content: "";

    transform:
        rotate(45deg);

    transform-origin: center;

    transition:
        transform 180ms ease,
        border-color 180ms ease;
}


/* =====================================================
   TEXT BEI OFFEN / GESCHLOSSEN
===================================================== */

.cookie-consent__providers-label--open {
    display: none;
}


.cookie-consent__providers[open]
.cookie-consent__providers-label--closed {
    display: none;
}


.cookie-consent__providers[open]
.cookie-consent__providers-label--open {
    display: inline;
}


/* =====================================================
   GEÖFFNETER PFEIL
===================================================== */

.cookie-consent__providers[open]
.cookie-consent__providers-summary::before {
    transform:
        rotate(135deg);
}


/* =====================================================
   HOVER
===================================================== */

@media (hover: hover) and (pointer: fine) {

    .cookie-consent__providers-summary:hover {
        color:
            var(--fdp-blue);
    }


    .cookie-consent__providers-summary:hover::before {
        border-color:
            var(--fdp-cyan);
    }

}


/* =====================================================
   FOCUS
===================================================== */

.cookie-consent__providers-summary:focus-visible {
    outline:
        2px solid
        var(--fdp-cyan);

    outline-offset: 5px;
}


/* =====================================================
   AKKORDEON-INHALT
===================================================== */

.cookie-consent__providers-content {
    padding:
        15px
        0
        0
        18px;
}


.cookie-consent__providers-content p {
    margin: 0;

    color: #171717;

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 0.94rem;

    font-weight: var(--fdp-body-weight);

    line-height: 1.5;
}


/* =====================================================
   BUTTON-BEREICH
===================================================== */

.cookie-consent__option-action {
    display: flex;

    width: 100%;

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

    margin-top: auto;
}


/* =====================================================
   BUTTONS
===================================================== */

.cookie-consent__button {
    display: inline-flex;

    box-sizing: border-box;

    min-height: 48px;

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

    margin: 0;

    padding: 9px 18px;

    border:
        2px solid
        var(--fdp-blue);

    border-radius: 9px;

    cursor: pointer;

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 0.94rem;

    font-weight: 800;

    line-height: 1.25;

    text-align: center;

    appearance: none;

    -webkit-appearance: none;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);

    width: 100%;
}


/* =====================================================
   ICH STIMME ZU
===================================================== */

.cookie-consent__button--primary {

    border-color:
        var(--fdp-blue);

    background:
        var(--fdp-blue);

    color:
        var(--fdp-white);
}


.cookie-consent__button--primary:hover {
    border-color: var(--fdp-blue);

    background: var(--fdp-white);

    color: var(--fdp-blue);

    transform:
        translateY(-1px);
}


/* =====================================================
   TECHNISCH NOTWENDIG
===================================================== */

.cookie-consent__button--outline {
    width: 100%;

    max-width: none;

    border-color: #b5b9be;

    background:
        var(--fdp-white);

    color: #5f6368;
}


.cookie-consent__button--outline:hover {
    border-color:
        var(--fdp-blue);

    color:
        var(--fdp-blue);

    transform:
        translateY(-1px);
}


/* =====================================================
   FOCUS
===================================================== */

.cookie-consent__button:focus-visible,
.cookie-consent__legal a:focus-visible,
.cookie-consent__notice a:focus-visible {
    outline:
        3px solid
        rgba(
            0,
            167,
            231,
            0.35
        );

    outline-offset: 3px;
}


/* =====================================================
   DATENSCHUTZHINWEIS
===================================================== */

.cookie-consent__notice {
    display: flex;

    width: 100%;

    justify-content: center;

    padding:
        0
        20px
        31px;
}


.cookie-consent__notice p {
    width:
        min(
            650px,
            100%
        );

    margin: 0;

    color: #171717;

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 0.94rem;

    font-weight: var(--fdp-body-weight);

    line-height: 1.5;

    text-align: center;
}


.cookie-consent__notice a {
    color:
        var(--fdp-blue);

    font-weight: 800;

    text-decoration: underline;

    text-decoration-color: var(--fdp-link-underline-color);

    text-decoration-thickness: var(--fdp-link-underline-thickness);

    text-underline-offset: var(--fdp-link-underline-offset);
}


/* =====================================================
   RECHTLICHE LEISTE
===================================================== */

.cookie-consent__legal {
    display: flex;

    width:
        calc(
            100% + 96px
        );

    min-height: 43px;

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

    gap: 5px;

    margin-left:
        -48px;

    padding:
        10px
        20px;

    background:
        #f3f4f5;

    color:
        var(--fdp-blue);

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 0.94rem;

    font-weight: 800;

    line-height: 1.3;
}


.cookie-consent__legal a {
    color:
        var(--fdp-blue);

    font-weight: 800;

    text-decoration: underline;

    text-decoration-color: var(--fdp-link-underline-color);

    text-decoration-thickness: var(--fdp-link-underline-thickness);

    text-underline-offset: var(--fdp-link-underline-offset);
}


.cookie-consent__legal a:hover,
.cookie-consent__notice a:hover {
    color:
        var(--fdp-cyan);
}


/* =====================================================
   BODY
===================================================== */

body.cookie-consent-open {
    overflow: hidden;
}


/* =====================================================
   FOOTER COOKIE BUTTON
===================================================== */

.site-footer__cookie-settings {
    display: inline-block;

    margin: 0;

    padding: 0;

    border: 0;

    background: transparent;

    color:
        var(--fdp-blue);

    cursor: pointer;

    font-family: inherit;

    font-size: 0.94rem;

    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    transition:
        color var(--transition);
}


.site-footer__cookie-settings:hover {
    color:
        var(--fdp-cyan);
}


/* =====================================================
   BLOCKIERTE EXTERNE INHALTE
===================================================== */

iframe[data-cookie-category][hidden] {
    display: none !important;
}


.cookie-embed[hidden] {
    display: none !important;
}


.cookie-embed {
    display: flex;

    box-sizing: border-box;

    width: 100%;
    min-height: 260px;

    flex-direction: column;

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

    gap: 14px;

    padding: 32px;

    background:
        var(--fdp-light);

    color: #181818;

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    text-align: left;
}


.cookie-embed__title {
    margin: 0;

    color:
        var(--fdp-blue);

    font-size: 1.15rem;

    font-weight: 800;

    line-height: 1.25;
}


.cookie-embed__text {
    max-width: 560px;

    margin: 0;

    font-size: 0.9rem;

    font-weight: 500;

    line-height: 1.45;
}


.cookie-embed__text a {
    color:
        var(--fdp-blue);

    font-weight: 800;

    text-decoration: underline;

    text-decoration-color: var(--fdp-link-underline-color);

    text-decoration-thickness: var(--fdp-link-underline-thickness);

    text-underline-offset: var(--fdp-link-underline-offset);
}


.cookie-embed__actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 12px 22px;

    margin-top: 6px;
}


.cookie-embed .cookie-consent__button {
    width: auto;

    min-height: 48px;

    padding:
        11px
        22px;
}


.cookie-embed__always {
    margin: 0;

    padding: 0;

    border: 0;

    background: transparent;

    color:
        var(--fdp-blue);

    cursor: pointer;

    font-family: inherit;

    font-size: 0.9rem;

    font-weight: 800;

    text-decoration: underline;

    text-decoration-color: var(--fdp-link-underline-color);

    text-decoration-thickness: var(--fdp-link-underline-thickness);

    text-underline-offset: var(--fdp-link-underline-offset);
}


.cookie-embed__always:hover,
.cookie-embed__text a:hover {
    color:
        var(--fdp-cyan);
}


.cookie-embed__always:focus-visible,
.cookie-embed__text a:focus-visible {
    outline:
        3px solid
        rgba(
            0,
            167,
            231,
            0.35
        );

    outline-offset: 3px;
}


/* Videobox mit festem 16:9-Format darf für den
   Platzhalter mitwachsen, damit nichts abgeschnitten wird. */

.initiative-media__video:has(> .cookie-embed:not([hidden])) {
    aspect-ratio: auto;

    border-radius: 16px;
}


.event-single__map .cookie-embed {
    min-height: 300px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .cookie-consent {
        padding: 18px;
    }


    .cookie-consent__dialog {
        width:
            calc(
                100vw - 36px
            );

        max-height:
            calc(
                100dvh - 36px
            );

        padding:
            38px
            34px
            0;
    }


    .cookie-consent__options {
        gap: 42px;
    }


    .cookie-consent__legal {
        width:
            calc(
                100% + 68px
            );

        margin-left:
            -34px;
    }

}


/* =====================================================
   SMARTPHONE
===================================================== */

@media (max-width: 700px) {

    .cookie-consent {
        align-items: flex-start;

        padding: 10px;
    }


    .cookie-consent__dialog {
        width: 100%;

        max-height:
            calc(
                100dvh - 20px
            );

        padding:
            28px
            20px
            0;
    }


    .cookie-consent__intro-wrap {
        margin-bottom: 30px;
    }


    .cookie-consent__intro {
        font-size: 0.94rem;

        line-height: 1.55;

        text-align: left;
    }


    .cookie-consent__options {
        grid-template-columns:
            1fr;

        gap: 40px;

        padding-bottom: 30px;
    }


    .cookie-consent__option {
        min-height: 0;
    }


    .cookie-consent__option-title {
        margin-bottom: 14px;

        font-size: 1.35rem;
    }


    .cookie-consent__option-text {
        margin-bottom: 18px;

        font-size: 0.94rem;

        line-height: 1.55;
    }


    /* ===============================================
       ANBIETER-AKKORDEON
    ================================================ */

    .cookie-consent__providers {
        margin:
            3px
            0
            24px;
    }


    .cookie-consent__providers-summary {
        font-size: 0.94rem;
    }


    .cookie-consent__providers-content {
        padding:
            12px
            0
            0
            18px;
    }


    .cookie-consent__providers-content p {
        font-size: 0.88rem;
    }


    /* ===============================================
       BUTTONS
    ================================================ */

    .cookie-consent__option-action {
        justify-content: flex-start;
    }


    .cookie-consent__button {
        min-height: 48px;

        padding: 9px 18px;

        font-size: 0.9rem;
    }


    .cookie-consent__button--primary {
    }


    .cookie-consent__button--outline {
        width: 100%;
        max-width: none;
    }


    /* ===============================================
       HINWEIS
    ================================================ */

    .cookie-consent__notice {
        padding:
            0
            0
            25px;
    }


    .cookie-consent__notice p {
        font-size: 0.88rem;

        line-height: 1.5;
    }


    /* ===============================================
       FOOTER
    ================================================ */

    .cookie-consent__legal {
        width:
            calc(
                100% + 40px
            );

        margin-left:
            -20px;

        font-size: 0.88rem;
    }


    .site-footer__cookie-settings {
        font-size: 0.88rem;
    }


    /* ===============================================
       PLATZHALTER EXTERNE INHALTE
    ================================================ */

    .cookie-embed {
        min-height: 0;

        padding: 24px 20px;
    }

}