/* ===================================================================
   Cookie-Consent-Banner – Bestattungshaus Sabrina Lautenbach
   DSGVO-konform, an das Projekt-Design angepasst.
   =================================================================== */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 720px;
    z-index: 9999;
    background: #FFFDFC;
    color: #1A1A1A;
    border: 1px solid rgba(232, 67, 147, 0.20);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(26, 26, 26, 0.18);
    padding: 28px 30px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

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

.cookie-banner__title {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1A1A1A;
}

.cookie-banner__text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #4a4446;
    margin: 0 0 20px;
}

.cookie-banner__text a {
    color: #E84393;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
    color: #d63384;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn {
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1;
    padding: 13px 24px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn:focus-visible {
    outline: 2px solid #E84393;
    outline-offset: 2px;
}

.cookie-btn--secondary {
    background: transparent;
    color: #1A1A1A;
    border-color: #d9d2d5;
}

.cookie-btn--secondary:hover {
    border-color: #1A1A1A;
}

.cookie-btn--primary {
    background: #E84393;
    color: #ffffff;
}

.cookie-btn--primary:hover {
    background: #d63384;
}

/* Mobile: kompakter, Buttons untereinander, volle Breite */
@media (max-width: 560px) {
    .cookie-banner {
        width: calc(100% - 16px);
        bottom: 8px;
        padding: 16px 16px 14px;
        border-radius: 12px;
        max-height: 85vh;
        overflow-y: auto;
    }
    .cookie-banner__title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    .cookie-banner__text {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    .cookie-banner__actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .cookie-btn {
        width: 100%;
        padding: 11px 20px;
        font-size: 0.85rem;
    }
}

/* Banner beim Drucken ausblenden */
@media print {
    .cookie-banner {
        display: none !important;
    }
}
