/* Cookie Consent Banner – DSGVO/TTDSG-konform */
.cc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2999;
}
.cc-overlay.active { display: block; }

.cc-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: rgba(20, 24, 30, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(45, 225, 254, 0.2);
    padding: 1.5rem;
    font-family: 'Poppins', sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-banner.active {
    display: block;
    transform: translateY(0);
}
.cc-banner.slide-in {
    transform: translateY(0);
}

.cc-content {
    max-width: 900px;
    margin: 0 auto;
}

.cc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.cc-text {
    font-size: 0.875rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.cc-text:last-of-type {
    margin-bottom: 1.25rem;
}

.cc-link {
    color: #2DE1FE;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cc-link:hover {
    color: #26F7DC;
}

/* Buttons – BEIDE gleichberechtigt (DSGVO-Pflicht, kein Dark Pattern) */
.cc-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.cc-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(45, 225, 254, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}
/* Beide Buttons IDENTISCHES Styling */
.cc-btn-accept,
.cc-btn-necessary {
    background: rgba(45, 225, 254, 0.1);
    color: #2DE1FE;
}
.cc-btn-accept:hover,
.cc-btn-necessary:hover {
    background: rgba(45, 225, 254, 0.2);
    box-shadow: 0 0 20px rgba(45, 225, 254, 0.2);
}

.cc-settings-toggle {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #a1a1aa;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s;
    text-align: center;
}
.cc-settings-toggle:hover {
    color: #2DE1FE;
}

/* Detail-Einstellungen */
.cc-settings {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.25rem;
    margin-top: 0.75rem;
}

.cc-category {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cc-category:last-of-type {
    border-bottom: none;
}

.cc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cc-category-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}
.cc-category-info p {
    font-size: 0.8125rem;
    color: #71717a;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.cc-toggle {
    flex-shrink: 0;
}
.cc-toggle input[type="checkbox"] {
    display: none;
}
.cc-toggle label {
    display: block;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0;
}
.cc-toggle label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.cc-toggle input:checked + label {
    background: linear-gradient(135deg, #2C81FD, #2DE1FE);
}
.cc-toggle input:checked + label::after {
    transform: translateX(22px);
}
.cc-toggle-disabled label {
    cursor: default;
    opacity: 0.7;
}
.cc-toggle-disabled .cc-always-on {
    font-size: 0.75rem;
    color: #71717a;
    margin-top: 0.25rem;
    text-align: right;
}

.cc-btn-save {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(45, 225, 254, 0.3);
    background: rgba(45, 225, 254, 0.1);
    color: #2DE1FE;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-btn-save:hover {
    background: rgba(45, 225, 254, 0.2);
    box-shadow: 0 0 20px rgba(45, 225, 254, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
    .cc-banner {
        padding: 1.25rem 1rem;
    }
    .cc-buttons {
        flex-direction: column;
    }
    .cc-title {
        font-size: 1.125rem;
    }
    .cc-category-header {
        flex-wrap: wrap;
    }
}
