/* ============================================================
   SDS Innovations – Cookie-Consent-Banner
   Eigenentwicklung, keine externen Dienste.
   Wird auf allen Seiten zusammen mit consent.js eingebunden.
   ============================================================ */

.cc-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%) translateY(24px);
    width: calc(100% - 24px);
    max-width: 760px;
    background: #FFFFFF;
    color: #1A1A2E;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(14, 18, 40, 0.25);
    z-index: 10050;
    padding: 22px 24px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.cc-banner.cc-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cc-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #2B3580, #2BA5A5);
}

.cc-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1A1A2E;
    margin: 0 0 8px;
}

.cc-text {
    color: #4A5568;
    margin: 0 0 16px;
    font-size: 0.85rem;
}

.cc-text a {
    color: #2B3580;
    text-decoration: underline;
}

.cc-text a:hover { color: #2BA5A5; }

/* --- Granulare Einstellungen --- */
.cc-settings {
    margin: 0 0 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
}

.cc-settings[hidden] { display: none; }

.cc-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
    background: #F7F9FC;
}

.cc-option:last-child { border-bottom: none; }

.cc-option input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #2B3580;
    cursor: pointer;
}

.cc-option input[type="checkbox"]:disabled { cursor: not-allowed; }

.cc-option-label {
    cursor: pointer;
}

.cc-option-label strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1A1A2E;
}

.cc-option-label span {
    display: block;
    font-size: 0.78rem;
    color: #4A5568;
    margin-top: 2px;
}

/* --- Buttons ---
   WICHTIG (DSGVO): "Alle akzeptieren" und "Nur notwendige" sind
   bewusst identisch gestaltet – gleiche Größe, gleiche Prominenz. */
.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cc-btn {
    flex: 1 1 0;
    min-width: 170px;
    min-height: 48px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, #2B3580, #2BA5A5);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.cc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 53, 128, 0.35);
}

.cc-btn:focus-visible {
    outline: 3px solid #2BA5A5;
    outline-offset: 2px;
}

.cc-btn[hidden] { display: none; }

.cc-link {
    flex: 0 0 auto;
    background: none;
    border: none;
    padding: 12px 8px;
    min-height: 48px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2B3580;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cc-link:hover { color: #2BA5A5; }

/* --- Mobile --- */
@media (max-width: 600px) {
    .cc-banner {
        bottom: 8px;
        width: calc(100% - 16px);
        padding: 18px 16px 16px;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
    }

    .cc-actions { flex-direction: column; align-items: stretch; }
    .cc-btn { width: 100%; min-width: 0; }
    .cc-link { text-align: center; }
}
