/* SEDA24 Cookie Consent - DSGVO-konform, Borlabs/Klaro Style */

/* Overlay */
.cc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}
.cc-overlay.cc-show {
    display: block;
    opacity: 1;
}

/* Modal */
.cc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    max-width: 620px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.cc-modal.cc-show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Header */
.cc-header {
    background: linear-gradient(135deg, #1E537C 0%, #2A6B94 100%);
    color: #fff;
    padding: 24px 28px;
    border-radius: 12px 12px 0 0;
}
.cc-header h2 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
}
.cc-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Body */
.cc-body {
    padding: 24px 28px;
}

/* Kategorien */
.cc-category {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.cc-category:hover {
    border-color: #1E537C;
}
.cc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    background: #f8f9fb;
    user-select: none;
}
.cc-category-header:hover {
    background: #f0f3f7;
}
.cc-category-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.cc-category-name {
    font-weight: 600;
    font-size: 15px;
    color: #1E537C;
}
.cc-category-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.cc-badge-required {
    background: #e8f0f7;
    color: #1E537C;
}
.cc-badge-optional {
    background: #fff3dc;
    color: #b07d1a;
}
.cc-category-toggle {
    flex-shrink: 0;
}
.cc-category-desc {
    padding: 0 16px 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    display: none;
}
.cc-category.cc-expanded .cc-category-desc {
    display: block;
}
.cc-category-header .cc-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
    color: #999;
    flex-shrink: 0;
    margin-left: 8px;
}
.cc-category.cc-expanded .cc-chevron {
    transform: rotate(180deg);
}

/* Toggle Switch */
.cc-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.3s;
}
.cc-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.cc-switch input:checked + .cc-slider {
    background: #1E537C;
}
.cc-switch input:checked + .cc-slider::before {
    transform: translateX(20px);
}
.cc-switch input:disabled + .cc-slider {
    background: #1E537C;
    opacity: 0.6;
    cursor: not-allowed;
}
.cc-switch input:disabled:checked + .cc-slider::before {
    transform: translateX(20px);
}

/* Buttons */
.cc-buttons {
    display: flex;
    gap: 10px;
    padding: 20px 28px;
    border-top: 1px solid #e0e6ed;
    background: #f8f9fb;
    border-radius: 0 0 12px 12px;
}
.cc-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}
.cc-btn-accept {
    background: linear-gradient(135deg, #F9B233 0%, #e6a42e 100%);
    color: #1E537C;
    box-shadow: 0 2px 8px rgba(249, 178, 51, 0.3);
}
.cc-btn-accept:hover {
    background: linear-gradient(135deg, #FFD700 0%, #F9B233 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 178, 51, 0.4);
}
.cc-btn-save {
    background: #1E537C;
    color: #fff;
}
.cc-btn-save:hover {
    background: #2A6B94;
}
.cc-btn-deny {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
}
.cc-btn-deny:hover {
    background: #f0f0f0;
    color: #333;
}

/* Footer Links */
.cc-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 28px 18px;
    background: #f8f9fb;
    border-radius: 0 0 12px 12px;
}
.cc-footer a {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}
.cc-footer a:hover {
    color: #1E537C;
}

/* Settings Link (im Footer der Seite) */
.cc-settings-link {
    cursor: pointer;
    color: #1E537C;
    text-decoration: underline;
    background: none;
    border: none;
    font-size: inherit;
    padding: 0;
}
.cc-settings-link:hover {
    color: #F9B233;
}

/* Mobile */
@media (max-width: 600px) {
    .cc-modal {
        width: 96%;
        max-height: 95vh;
    }
    .cc-header {
        padding: 18px 20px;
    }
    .cc-header h2 {
        font-size: 18px;
    }
    .cc-body {
        padding: 16px 20px;
    }
    .cc-buttons {
        flex-direction: column;
        padding: 16px 20px;
    }
    .cc-footer {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 20px 14px;
    }
    .cc-category-header {
        padding: 12px 14px;
    }
}
