/* Cookie-Banner Styles - DSGVO-konform */

#cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 10000;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    backdrop-filter: blur(10px);
    display: none;
    animation: slideInUp 0.3s ease-out;
}

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

#cookie-banner h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

#cookie-banner p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 13px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-banner-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cookie-banner-btn-primary {
    background-color: #28a745;
    color: white;
}

.cookie-banner-btn-primary:hover {
    background-color: #218838;
}

.cookie-banner-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.cookie-banner-btn-secondary:hover {
    background-color: #5a6268;
}

.cookie-banner-btn-outline {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

.cookie-banner-btn-outline:hover {
    background-color: #6c757d;
    color: white;
}

.cookie-banner-link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
}

.cookie-banner-link:hover {
    text-decoration: underline;
}

/* Cookie-Einstellungen Modal */
#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
}

#cookie-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10002;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
    display: none;
}

#cookie-settings h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

#cookie-settings h3 {
    margin: 20px 0 10px 0;
    color: #555;
    font-size: 16px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

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

.cookie-category-title {
    font-weight: 600;
    color: #333;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cookie-toggle.active {
    background-color: #28a745;
}

.cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(26px);
}

.cookie-category-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.cookie-settings-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-banner-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    #cookie-settings {
        width: 95%;
        padding: 20px;
    }
}

/* Animation für das Ausblenden */
#cookie-banner.hide {
    animation: slideOutDown 0.3s ease-in forwards;
}

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

