/**
 * DSGVO-konformer Cookie Consent Banner
 * Styles für Praxis Dr. Golshahi
 */

/* Cookie Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    font-family: inherit;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 30px;
}

/* Header */
.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.cookie-consent-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 600;
}

.cookie-icon {
    font-size: 1.5rem;
}

/* Text */
.cookie-consent-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cookie-consent-text a {
    color: #b98c47;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #8a6a35;
}

/* Buttons Container */
.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Button Styles */
.cookie-btn {
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #b98c47, #d4a866);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #a07a3d, #c49a5c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(185, 140, 71, 0.4);
}

.cookie-btn-necessary {
    background: #f4f1eb;
    color: #2c3e50;
    border: 1px solid #ddd;
}

.cookie-btn-necessary:hover {
    background: #e8e4dc;
}

.cookie-btn-settings {
    background: transparent;
    color: #666;
    padding: 12px 20px;
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    color: #b98c47;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #2c3e50;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.cookie-settings-close:hover {
    color: #333;
}

.cookie-settings-body {
    padding: 30px;
}

/* Cookie Category */
.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 50px;
    height: 28px;
}

.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: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #b98c47, #d4a866);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #b98c47;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Badge */
.cookie-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    border-radius: 12px;
    margin-left: 10px;
}

/* Settings Footer */
.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-inner {
        padding: 20px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-settings-content {
        margin: 10px;
        max-height: 95vh;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 20px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
}

/* Footer Consent Link */
.cookie-settings-link {
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
}

.cookie-settings-link:hover {
    color: #b98c47;
}
