/* ========================================
   DSGVO COOKIE CONSENT BANNER
   Schlankes, selbst gehostetes Banner.
   Kein externer Service nötig.
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    font-family: 'DM Sans', sans-serif;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

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

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

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-banner__btn {
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-banner__btn--accept {
    background: #edc041;
    color: #1a1a1a;
}

.cookie-banner__btn--accept:hover {
    background: #f5d97a;
    transform: translateY(-1px);
}

.cookie-banner__btn--essential {
    background: transparent;
    color: #ffffff;
    border: 1px solid #555555;
}

.cookie-banner__btn--essential:hover {
    border-color: #edc041;
    transform: translateY(-1px);
}

/* --- Details/Settings Panel --- */

.cookie-details {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #333333;
    width: 100%;
}

.cookie-details.open {
    display: block;
}

.cookie-details__toggle {
    background: none;
    border: none;
    color: #edc041;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-details__toggle:hover {
    color: #f5d97a;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category__checkbox {
    margin-top: 3px;
    accent-color: #edc041;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.cookie-category__checkbox:disabled {
    opacity: 0.5;
    cursor: default;
}

.cookie-category__info {
    flex: 1;
}

.cookie-category__name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.cookie-category__desc {
    font-size: 12px;
    color: #999999;
    line-height: 1.5;
}

/* --- Mobile --- */

@media (max-width: 600px) {
    .cookie-banner {
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-banner__text {
        font-size: 14px;
    }

    .cookie-banner__actions {
        flex-direction: column;
    }

    .cookie-banner__btn {
        width: 100%;
        text-align: center;
        padding: 14px;
        min-height: 48px;
        font-size: 16px;
    }

    .cookie-details__toggle {
        font-size: 14px;
        padding: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .cookie-category__checkbox {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
}

/* Hide mobile CTA when cookie banner is visible — controlled via JS class */
@media (max-width: 968px) {
    .mobile-cta.cookie-hidden {
        transform: translateY(calc(100% + 30px)) !important;
        opacity: 0 !important;
        pointer-events: none;
    }
}
