/* Cookie consent strip — Biohackathon Farvater */
.bh-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: linear-gradient(135deg, #0a4d68 0%, #088395 100%);
    color: #fff;
    box-shadow: 0 -4px 24px rgba(10, 77, 104, 0.35);
    padding: 1rem 1.25rem;
    animation: bhCookieSlideUp 0.35s ease-out;
}

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

.bh-cookie-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    justify-content: space-between;
}

.bh-cookie-banner__text {
    flex: 1 1 280px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.bh-cookie-banner__text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.bh-cookie-banner__text a {
    color: #b8f1ff;
    text-decoration: underline;
}

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

.bh-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.bh-cookie-banner__actions .btn {
    min-width: 9.5rem;
    font-weight: 600;
}

@keyframes bhCookieSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .bh-cookie-banner {
        padding: 0.85rem 1rem;
        padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    }

    .bh-cookie-banner__actions {
        width: 100%;
    }

    .bh-cookie-banner__actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* Keep scroll-top above banner when visible */
body.bh-cookie-open #btn-back-to-top {
    bottom: 110px;
}
