/**
 * coolblack GmbH - Cookie Consent Styling
 * DSGVO-konformes Cookie-Banner
 */

/* Cookie Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(16, 19, 34, 0.98);
    backdrop-filter: blur(12px);
    border-top: 2px solid #00E0FF;
    box-shadow: 0 -4px 20px rgba(0, 224, 255, 0.2);
    z-index: 9999;
    padding: 1.5rem;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.hide {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(100%);
}

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

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

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

.cookie-consent-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.cookie-consent-icon {
    flex-shrink: 0;
}

.cookie-consent-icon .material-symbols-outlined {
    font-size: 3rem;
    color: #00E0FF;
}

.cookie-consent-text {
    flex: 1;
    color: #F5F5F5;
}

.cookie-consent-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #FFFFFF;
}

.cookie-consent-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    color: #E0E0E0;
}

.cookie-consent-privacy-link {
    color: #00E0FF;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.cookie-consent-privacy-link:hover {
    color: #00c8e6;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #00E0FF;
    color: #000000;
}

.cookie-btn-primary:hover {
    background: #00c8e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 224, 255, 0.4);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00E0FF;
    transform: translateY(-2px);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-modal.active {
    opacity: 1;
}

.cookie-modal.active .cookie-modal-content {
    transform: scale(1);
    opacity: 1;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: #191e33;
    border: 2px solid #00E0FF;
    border-radius: 1rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 224, 255, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #FFFFFF;
    font-weight: 700;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00E0FF;
}

.cookie-modal-close .material-symbols-outlined {
    font-size: 1.5rem;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-intro {
    color: #E0E0E0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

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

.cookie-category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.cookie-category-title .material-symbols-outlined {
    color: #00E0FF;
    font-size: 1.5rem;
}

.cookie-category-title h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #FFFFFF;
    font-weight: 600;
}

.cookie-badge {
    background: rgba(0, 224, 255, 0.2);
    color: #00E0FF;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.cookie-category-description {
    color: #C0C0C0;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.cookie-category-examples {
    color: #A0A0A0;
    font-size: 0.8125rem;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.cookie-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #00E0FF;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #00E0FF;
}

.cookie-info-box {
    background: rgba(0, 224, 255, 0.1);
    border: 1px solid rgba(0, 224, 255, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.cookie-info-box .material-symbols-outlined {
    color: #00E0FF;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cookie-info-box div {
    color: #E0E0E0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-info-box a {
    color: #00E0FF;
    text-decoration: none;
}

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

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
    }

    .cookie-consent-icon .material-symbols-outlined {
        font-size: 2.5rem;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }

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

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-text p {
        font-size: 0.875rem;
    }

    .cookie-modal-body {
        padding: 1rem;
    }

    .cookie-category {
        padding: 1rem;
    }
}
