/**
 * Cookie Consent Banner Styles
 * DSGVO/GDPR Compliant Cookie Banner
 */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px;
    border-top: 3px solid #007bff;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cookie-btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background-color: #0056b3;
}

.cookie-btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.cookie-btn-secondary:hover {
    background-color: #545b62;
}

.cookie-btn-link {
    background-color: transparent;
    color: #007bff;
    text-decoration: underline;
    padding: 12px 0;
}

.cookie-btn-link:hover {
    color: #0056b3;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-content {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.cookie-settings-close:hover {
    color: #333;
}

.cookie-settings-body {
    padding: 20px;
}

.cookie-setting-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-setting-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-setting-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cookie-setting-status {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.cookie-setting-item p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.cookie-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.cookie-toggle label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + label {
    background-color: #007bff;
}

.cookie-toggle input:checked + label:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + label {
    background-color: #28a745;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        gap: 15px;
    }

    .cookie-banner-content h3 {
        font-size: 18px;
    }

    .cookie-banner-content p {
        font-size: 13px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-settings-content {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .cookie-settings-header {
        padding: 15px;
    }

    .cookie-settings-header h3 {
        font-size: 20px;
    }

    .cookie-settings-body {
        padding: 15px;
    }

    .cookie-setting-item {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .cookie-settings-footer {
        padding: 15px;
    }
}

