/* ===== DSGVO Cookie/Consent Banner ===== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.1);
    padding: 18px 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #1f2937;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#cookie-banner.visible {
    transform: translateY(0);
}
#cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
#cookie-banner-text {
    flex: 1 1 0%;
    min-width: 0;
}
#cookie-banner-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
#cookie-banner-text a:hover {
    text-decoration: underline;
}
#cookie-banner-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}
#cookie-banner-actions button {
    padding: 11px 28px;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
}
#cookie-banner-actions button:active {
    opacity: 0.85;
}
#cookie-accept {
    background: #2563eb !important;
    color: #fff !important;
}
#cookie-accept:hover {
    background: #1d4ed8 !important;
}
#cookie-essential {
    background: #111827 !important;
    color: #fff !important;
    border: none !important;
}
#cookie-essential:hover {
    background: #1f2937 !important;
}

/* Dark Mode */
[data-theme="dark"] #cookie-banner {
    background: rgba(15, 23, 42, 0.97);
    color: #e2e8f0;
    box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] #cookie-banner-text a {
    color: #60a5fa;
}
[data-theme="dark"] #cookie-accept {
    background: #3b82f6;
}
[data-theme="dark"] #cookie-accept:hover {
    background: #2563eb;
}
[data-theme="dark"] #cookie-essential {
    background: #1e293b;
    color: #fff;
    border: 1.5px solid #475569;
}
[data-theme="dark"] #cookie-essential:hover {
    background: #334155;
}

/* Tablet */
@media (max-width: 820px) {
    #cookie-banner-inner {
        flex-wrap: wrap;
    }
    #cookie-banner-text {
        flex-basis: 100%;
    }
    #cookie-banner-actions {
        width: 100%;
    }
    #cookie-banner-actions button {
        flex: 1;
    }
}

/* Mobile */
@media (max-width: 480px) {
    #cookie-banner {
        padding: 14px 16px;
        font-size: 13px;
    }
    #cookie-banner-inner {
        gap: 14px;
    }
    #cookie-banner-actions {
        gap: 8px;
    }
    #cookie-banner-actions button {
        padding: 10px 16px;
        font-size: 13px;
    }
}
