/* Cookie Consent Banner - DSGVO konform */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    animation: slideUp 0.4s ease-out;
}

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

.cookie-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-header i {
    font-size: 2rem;
    color: #ff6b6b;
}

.cookie-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

.cookie-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-text p {
    margin: 0.5rem 0;
}

.cookie-text a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
}

.cookie-text a:hover {
    text-decoration: underline;
}

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

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.cookie-btn-accept {
    background: #ff6b6b;
    color: white;
}

.cookie-btn-accept:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.cookie-btn-essential {
    background: #4CAF50;
    color: white;
}

.cookie-btn-essential:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.cookie-btn-settings {
    background: #f0f0f0;
    color: #333;
}

.cookie-btn-settings:hover {
    background: #e0e0e0;
}

.cookie-btn-reject {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.cookie-btn-reject:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-settings-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.cookie-settings-header h2 {
    margin: 0;
    color: #333;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-close:hover {
    background: #f0f0f0;
    color: #333;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 10px;
}

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

.cookie-category h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

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

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

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

input:checked + .cookie-slider {
    background-color: #4CAF50;
}

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

input:disabled + .cookie-slider {
    background-color: #ff6b6b;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-category-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-settings-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-container {
        padding: 1.5rem 4%;
    }

    .cookie-header h3 {
        font-size: 1.2rem;
    }

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

    .cookie-btn {
        width: 100%;
    }

    .cookie-settings-content {
        padding: 1.5rem;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }
}

/* Cookie Settings Link im Footer */
.cookie-settings-link {
    cursor: pointer;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-settings-link:hover {
    color: #ff6b6b;
}
