/* ==========================================================================
   Age-Gate (18+) — globales Overlay. Eigenständig gestylt (theme-unabhängig),
   Farben über CSS-Variablen mit Fallback überschreibbar.
   ========================================================================== */
.faro-age-gate {
    --ag-backdrop: rgba(15, 12, 8, 0.82);
    --ag-card:     #ffffff;
    --ag-text:     #1e293b;
    --ag-muted:    #475569;
    --ag-accent:   #c0271c;
    --ag-badge-bg: #f2b90c;
    --ag-badge-fg: #241a12;

    position: fixed;
    inset: 0;
    z-index: 2147483000;      /* über allem, auch Edit-Bar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: var(--ag-backdrop);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
/* Vom Browser über das [hidden]-Attribut gesteuert; JS entfernt es zum Anzeigen. */
.faro-age-gate[hidden] { display: none; }

.faro-age-gate__box {
    background: var(--ag-card);
    color: var(--ag-text);
    max-width: 460px;
    width: 100%;
    border-radius: 16px;
    padding: 2.25rem 1.75rem 1.75rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    animation: faro-age-gate-in 0.22s ease-out;
}
@keyframes faro-age-gate-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.faro-age-gate__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ag-badge-bg);
    color: var(--ag-badge-fg);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.faro-age-gate__title {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--ag-text);
}
.faro-age-gate__text {
    margin: 0 0 1.4rem;
    color: var(--ag-muted);
    line-height: 1.6;
}
.faro-age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.faro-age-gate__btn {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 9px;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.faro-age-gate__btn--confirm { background: var(--ag-accent); color: #fff; }
.faro-age-gate__btn--confirm:hover { filter: brightness(1.08); }
.faro-age-gate__btn--decline {
    background: transparent;
    color: var(--ag-muted);
    border-color: #cbd5e1;
}
.faro-age-gate__btn--decline:hover { border-color: var(--ag-muted); color: var(--ag-text); }

.faro-age-gate__btn:focus-visible,
.faro-age-gate__box:focus-visible {
    outline: 3px solid var(--ag-badge-bg);
    outline-offset: 2px;
}

/* Body-Scroll sperren, solange das Gate offen ist. */
html.faro-age-gate-open, html.faro-age-gate-open body { overflow: hidden; }

/* noscript-Variante ist immer sichtbar (fail-closed ohne JS). */
.faro-age-gate--noscript { position: fixed; inset: 0; z-index: 2147483000; }

@media (prefers-reduced-motion: reduce) {
    .faro-age-gate__box { animation: none; }
}
