
/* ==========================================
   CSS FÜR COOKIE CONSENT MODAL
   ========================================== */
   
:root {
    --brand-dark: #1e293b;
    --brand-orange: #f97316;
}

   
.cookie-modal {
            position: fixed;
            top: 50%;
            left: 50%; /* Korrigiert: Muss exakt 50% sein */
            transform: translate(-50%, -50%);
            background: white;
            color: #333;
            padding: 30px;
            border-radius: 8px;
            z-index: 10000;
            display: none; 
            max-width: 650px; /* Korrigiert: Wert ergänzt */
            width: 95%;
            max-height: 90vh;
            overflow-y: auto;
            overflow-x: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.4);
        }

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); 
    backdrop-filter: blur(6px); 
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    display: none; 
}

/* --- BOMBENSICHERE AKTIV-ANZEIGE FÜR "NOTWENDIG" --- */
.force-active-switch,
.force-active-switch:checked {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    opacity: 1 !important;
    pointer-events: none !important; 
    cursor: default !important;
}

/* Standard-Schalter Orange färben */
.form-check-input:checked {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

/* Dynamische Schalter-Größe (statt hart codiertem fs-5) */
.dynamic-switch {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
}

.cookie-close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.5rem;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    line-height: 1;
}
.cookie-close-btn:hover {
    color: #333;
}

/* Tab Styling Anpassungen */
.custom-cookie-tabs .nav-link {
    color: #666;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
}
.custom-cookie-tabs .nav-link.active {
    color: var(--brand-orange);
    border-bottom: 2px solid var(--brand-orange);
    background: transparent;
}
.custom-cookie-tabs .nav-link:hover {
    border-bottom: 2px solid #ccc;
}
.custom-cookie-tabs .nav-link.active:hover {
    border-bottom: 2px solid var(--brand-orange);
}

/* Die grauen Boxen für die Optionen */
.cookie-service-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

/* Dynamische Label-Schrift für die 3 Boxen nebeneinander */
.dynamic-label {
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    word-wrap: break-word;
    white-space: normal;
}

/* ==========================================
   MOBILE OPTIMIERUNGEN FÜR < 576px
   ========================================== */
@media (max-width: 576px) {
    .cookie-modal {
        padding: 16px; 
    }
    .custom-cookie-tabs .nav-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    .cookie-overview-box {
        padding: 10px 4px !important; 
    }
    .cookie-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }
    .cookie-actions .btn {
        flex: 1 1 0px; 
        font-size: 0.75rem !important; 
        padding: 8px 4px !important; 
        text-align: center;
        white-space: normal !important; 
        line-height: 1.2;
        margin: 0;
    }
	
	.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: #333;
    padding: 24px;
    border-radius: 10px;
    z-index: 10000;
    display: none; 
    
    /* Dynamische Breitenberechnung ohne Überhang */
    max-width: 500px; /* Kompakter! */
    width: calc(100% - 20px); /* Garantiert 15px Rand links und rechts auf Handys */
    
    max-height: 85vh; /* Nicht ganz so hoch */
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 10px rgba(0,0,0,0.5);
	}
}

.consentbtn {
	width: 30%;
}

.cookie-actions {
	text-align: center;
}

/* DESIGN LAYER FÜR DAS INLINE-DATENSCHUTZ-MODAL */
/* ABSOLUTE PRIORISIERUNG PER ID-SPEZIFITÄT */
#privacy-policy-modal {
    display: none;
    position: fixed;             /* Garantiert die Fixierung auf dem Viewport */
    z-index: 9999999 !important; /* Drückt das Modal unanfechtbar ganz nach vorn */
    max-width: 550px;
    width: 90%;
    
    /* Falls zentriert gewünscht (Standard-Ausrichtung für Custom Modals) */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Der Scroll-Inhalt bleibt wie gehabt */
.privacy-modal-scroll-content {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fafbfc;
    padding: 12px;
    border-radius: 8px;
}

/* Custom Scrollbar für den Fließtext */
.privacy-modal-scroll-content::-webkit-scrollbar {
    width: 5px;
}
.privacy-modal-scroll-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.02);
}
.privacy-modal-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
}
