.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-banner-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-light);
}

.cookie-banner-text h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cookie-banner-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--text-light);
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-category-title {
    font-weight: bold;
    color: var(--text-light);
}

.cookie-category-description {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .cookie-toggle-slider {
    background-color: var(--accent-color);
}

input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cookie-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    border: none;
}

.cookie-button-accept-all {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.cookie-button-accept-all:hover {
    background-color: var(--primary-color);
}

.cookie-button-save {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.cookie-button-save:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Desktop Styles */
@media (min-width: 768px) {
    .cookie-options {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cookie-category {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .cookie-buttons {
        justify-content: flex-end;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        gap: 1rem;
    }
    
    .cookie-banner-text h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .cookie-category {
        padding: 0.75rem;
    }
    
    .cookie-category-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Verbesserte Touch-Ziele für mobile Geräte */
    .cookie-toggle {
        width: 44px;
        height: 22px;
    }
    
    .cookie-toggle-slider:before {
        height: 14px;
        width: 14px;
    }
    
    input:checked + .cookie-toggle-slider:before {
        transform: translateX(22px);
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .cookie-button {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
        min-height: 44px; /* Mindesthöhe für bessere Touch-Ziele */
    }
    
    /* Reihenfolge der Buttons umkehren, damit "Alle akzeptieren" oben ist */
    .cookie-button-accept-all {
        order: -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-toggle-slider,
    .cookie-toggle-slider:before {
        transition: none;
    }
}