/* =========================================================
   COOKIE CONSENT
   ========================================================= */

.cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    padding: 18px;
    pointer-events: none;
}

.cookie-consent__panel {
    width: min(100%, 1040px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(24, 33, 49, 0.98);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.cookie-consent__content {
    display: grid;
    gap: 8px;
}

.cookie-consent__content h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cookie-consent__content p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.6;
}

.cookie-consent__content a {
    color: var(--text);
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent__button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cookie-consent__button:hover {
    transform: translateY(-1px);
}

.cookie-consent__button--primary {
    color: #ffffff;
    border-color: rgba(155, 188, 255, 0.30);
    background: linear-gradient(180deg, rgba(155, 188, 255, 0.30), rgba(155, 188, 255, 0.18));
}

.cookie-consent__button--primary:hover {
    border-color: rgba(155, 188, 255, 0.42);
    background: linear-gradient(180deg, rgba(155, 188, 255, 0.36), rgba(155, 188, 255, 0.22));
}

.cookie-consent__button--secondary {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.cookie-consent__button--secondary:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

/* Desktop: gut sichtbare, aber weiterhin dezente Schaltfläche. */
.cookie-settings-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(24, 33, 49, 0.76);
    color: var(--text-soft);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    opacity: 0.68;
    cursor: pointer;
    transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.cookie-settings-fab:hover,
.cookie-settings-fab:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(24, 33, 49, 0.96);
}

.cookie-settings-fab:focus-visible {
    outline: 2px solid rgba(193, 212, 255, 0.72);
    outline-offset: 3px;
}

.cookie-settings-fab svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cookie-settings-fab svg circle {
    fill: currentColor;
    stroke: none;
}

.cookie-settings-mobile,
.cookie-settings-mobile-separator {
    display: none;
}

@media (max-width: 760px) {
    .cookie-consent {
        padding: 12px;
    }

    .cookie-consent__panel {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
        border-radius: 18px;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-consent__button {
        width: 100%;
    }

    /* Mobile: kein schwebendes Icon; Einstellungen sind im Footer erreichbar. */
    .cookie-settings-fab {
        display: none;
    }

    .cookie-settings-mobile-separator {
        display: inline;
    }

    .cookie-settings-mobile {
        display: inline;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--text-soft);
        font: inherit;
        cursor: pointer;
        text-decoration: none;
    }

    .cookie-settings-mobile:hover,
    .cookie-settings-mobile:focus-visible {
        color: var(--text);
    }
}
