/* =====================================================
   Consent Gate – Stylesheet
   ===================================================== */

/* Wrapper, der den blockierten Inhalt umhüllt */
.cg-wrapper {
    position: relative;
}

/* Originalinhalt wird bei gesperrtem Zustand verborgen */
.cg-wrapper.cg-blocked .blockedcontent {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    opacity: 0.5;
    transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Overlay-Backdrop */
.cg-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 10;
    padding: 1rem;
}

/* Consent-Box */
.cg-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    font-family: inherit;
}

/* Icon oben */
.cg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #333333;
    border-radius: 50%;
    margin: 0 auto 1.1rem;
}

.cg-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Überschrift */
.cg-box h3 {
    margin: 0 0 0.75rem;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    color: #1a1a2e;
    line-height: 1.3;
    letter-spacing: 4px;
}

/* Hinweistext */
.cg-box p {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #555;
    text-align: start;
}

/* Datenschutz-Link */
.cg-box a.cg-link {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    color: #333333;
    text-decoration: none;
    margin-bottom: 1em;
}

.cg-box a.cg-link:hover {
    text-decoration: underline;
}

/* Button-Gruppe */
.cg-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Gemeinsame Button-Basis */
.cg-btn {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.cg-btn:active {
    transform: scale(0.98);
}

/* Einmalig-Button (primär) */
.cg-btn-once {
    background: #aaaaaa;
    color: #ffffff;
}

.cg-btn-once:hover {
    background: #666666;
}

/* Dauerhaft-Button (sekundär/grün) */
.cg-btn-always {
    background: #333333;
    color: #ffffff;
    border: 1px solid #b7dfc2;
}

.cg-btn-always:hover {
    background: #666666;
}

/* Abgeblendeter Hinweis unter den Buttons */
.cg-note {
    margin-top: 0.875rem;
    font-size: 0.75rem;
    color: #000000;
    text-align: center;
}

/* Freischalten-Animation */
.cg-wrapper.cg-unlocked .cg-overlay {
    display: none;
}

.cg-wrapper.cg-unlocked .blockedcontent {
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 480px) {
    .cg-box {
        padding: 1.25rem 1rem;
    }
}
