/* =============================================
   Cookie Consent – Banner + Modal Styles
   Minimale Lösung, nur funktionale Cookies.
   ============================================= */

/* --- Banner (fixiert am unteren Rand) --- */
.cc-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: #1a1a2e;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.25rem;
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    line-height: 1.5;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.cc-banner.cc-visible {
    display: block;
}
.cc-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.cc-banner-text {
    flex: 1 1 300px;
}
.cc-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cc-btn {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s, border-color 0.2s;
}
.cc-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}
.cc-btn-accept {
    background: rgba(99,102,241,0.25);
    border-color: #818cf8;
    color: #fff;
    font-weight: 600;
}
.cc-btn-accept:hover {
    background: rgba(99,102,241,0.4);
}

/* --- Modal Overlay --- */
.cc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
.cc-modal-overlay.cc-visible {
    display: flex;
}

/* --- Modal Content --- */
.cc-modal {
    position: relative;
    max-width: 500px;
    width: calc(100% - 2rem);
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
    background: #1a1a2e;
    color: rgba(255,255,255,0.85);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}
.cc-modal h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
    color: #fff;
}
.cc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.cc-modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* --- Cookie-Kategorien --- */
.cc-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cc-category:last-of-type {
    border-bottom: none;
}
.cc-category-info {
    flex: 1;
}
.cc-category-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}
.cc-category-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.15rem;
}

/* --- Toggle Switch --- */
.cc-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 1rem;
}
.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cc-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.cc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.cc-toggle input:checked + .cc-toggle-slider {
    background: #6366f1;
}
.cc-toggle input:checked + .cc-toggle-slider::before {
    transform: translateX(18px);
}
.cc-toggle input:disabled + .cc-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Modal Save Button --- */
.cc-btn-save {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.6rem;
    background: rgba(99,102,241,0.25);
    border: 1px solid #818cf8;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}
.cc-btn-save:hover {
    background: rgba(99,102,241,0.4);
}

/* --- Re-open Link (Impressum) --- */
.cc-reopen-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}
.cc-reopen-link:hover {
    color: rgba(255,255,255,0.8);
}
