/* ==========================================================================
   Cookie Notice
   Datenschutz- und Cookie-Hinweis
   ========================================================================== */


/*
|--------------------------------------------------------------------------
| Container / Container
|--------------------------------------------------------------------------
*/

.cookie-notice {
    position: fixed;

    right: 24px;
    bottom: 24px;
    left: 24px;

    z-index: 10000;

    display: flex;
    justify-content: center;

    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| Hidden State / Versteckter Zustand
|--------------------------------------------------------------------------
*/

.cookie-notice[hidden] {
    display: none;
}


/*
|--------------------------------------------------------------------------
| Inner Container / Innerer Container
|--------------------------------------------------------------------------
*/

.cookie-notice__inner {
    position: relative;

    width: min(
        100%,
        1040px
    );

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(
        36,
        82,
        105,
        0.18
    );

    border-top: 2px solid #e58b2a;
    border-right: 2px solid #e58b2a;

    border-radius: 12px;

    box-shadow:
        0 16px 40px rgba(
            22,
            43,
            53,
            0.15
        );

    pointer-events: auto;
}


/*
|--------------------------------------------------------------------------
| Accent / Akzent
|--------------------------------------------------------------------------
*/

.cookie-notice__accent {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;

    background: #245269;
}


/*
|--------------------------------------------------------------------------
| Content / Inhalt
|--------------------------------------------------------------------------
*/

.cookie-notice__content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    padding: 22px 26px 22px 30px;
}


/*
|--------------------------------------------------------------------------
| Text Area / Textbereich
|--------------------------------------------------------------------------
*/

.cookie-notice__text {
    flex: 1;

    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Eyebrow
|--------------------------------------------------------------------------
*/

.cookie-notice__eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #e58b2a;

    font-size: 0.74rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| Title / Überschrift
|--------------------------------------------------------------------------
*/

.cookie-notice__title {
    margin: 0 0 7px;

    color: #245269;

    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}


/*
|--------------------------------------------------------------------------
| Description / Beschreibung
|--------------------------------------------------------------------------
*/

.cookie-notice__description {
    margin: 0;

    color: #435860;

    font-size: 0.9rem;
    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Hint / Zusatzhinweis
|--------------------------------------------------------------------------
*/

.cookie-notice__hint {
    margin: 6px 0 0;

    color: #75858d;

    font-size: 0.8rem;
    line-height: 1.45;
}


/*
|--------------------------------------------------------------------------
| Actions / Aktionen
|--------------------------------------------------------------------------
*/

.cookie-notice__actions {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    gap: 14px;
}


/*
|--------------------------------------------------------------------------
| Privacy Link / Datenschutz-Link
|--------------------------------------------------------------------------
*/

.cookie-notice__link {
    color: #245269;

    font-size: 0.86rem;
    font-weight: 600;

    text-decoration: none;
}

.cookie-notice__link:hover {
    text-decoration: underline;
}


/*
|--------------------------------------------------------------------------
| Accept Button / Bestätigungsbutton
|--------------------------------------------------------------------------
*/

.cookie-notice__button {
    min-height: 40px;

    padding: 9px 18px;

    color: #ffffff;
    background: #245269;

    border: 1px solid #245269;
    border-top: 2px solid #e58b2a;
    border-right: 2px solid #e58b2a;

    border-radius: 7px;

    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.cookie-notice__button:hover {
    background: #1d465a;

    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| Keyboard Focus / Tastaturfokus
|--------------------------------------------------------------------------
*/

.cookie-notice__button:focus-visible,
.cookie-notice__link:focus-visible {
    outline: 2px solid rgba(
        229,
        139,
        42,
        0.8
    );

    outline-offset: 3px;
}


/*
|--------------------------------------------------------------------------
| Tablet / Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {

    .cookie-notice {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .cookie-notice__content {
        align-items: stretch;

        flex-direction: column;

        gap: 18px;

        padding:
            20px
            20px
            20px
            24px;
    }

    .cookie-notice__actions {
        justify-content: flex-end;

        flex-wrap: wrap;
    }
}


/*
|--------------------------------------------------------------------------
| Mobile / Mobil
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {

    .cookie-notice__actions {
        align-items: stretch;

        flex-direction: column;
    }

    .cookie-notice__link {
        text-align: center;
    }

    .cookie-notice__button {
        width: 100%;
    }
}
