/* ============================================================
   11-php-26207-auth-gate — Anmelde-Schranke
   ============================================================ */

.x26207-gate { display: block; }

/* ---- Gesperrt (Gast) ------------------------------------- */
.x26207-gate__locked {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: 2.5rem 1.25rem;
    text-align: center;

    background: var(--surface-2, #f4f2ee);
    /* ORANGE edge: this is the Mitglieder level (01-type-color.css). */
    border: 1px dashed var(--access-member-fg, #c2410c);
    border-radius: var(--radius-lg, 6px);
}

.x26207-gate__title {
    margin: 0;
    font-family: var(--font-body, Roboto, sans-serif);
    font-size: var(--fs-h4, 1.0625rem);
    font-weight: var(--w-heading, 500);
    color: var(--text, #14171a);
}

.x26207-gate__text {
    margin: 0;
    font-size: var(--fs-small, 1rem);
    line-height: 1.55;
    color: var(--text-2, #3d4247);
    max-width: var(--measure-lead);
}

/* ---- The access level, named (client, 2026-10-17) ----------
   A small ORANGE label at the top: "Mitglieder" / "Soci". Orange
   = the Mitglieder level, green = the Vorstand (01-type-color.css,
   --access-*). The button below stays green: green is the main
   action (style guide). */
.x26207-gate__level {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .625rem;
    font: var(--w-heading, 500) var(--fs-meta, 1rem)/1.2 var(--font-body, Roboto, sans-serif);
    letter-spacing: .02em;
    color: var(--access-member-fg, #c2410c);
    background: var(--access-member-bg, #fff1e6);
    border-radius: 999px;
}
.x26207-gate__level svg { width: 1em; height: 1em; display: block; }

/* The VORSTAND level: the same box in the Vorstand's GREEN (style
   guide, Access levels; authGateOpen(['level' => 'vorstand'])). */
.x26207-gate--vorstand .x26207-gate__locked { border-color: var(--access-vorstand-fg, #15703a); }
.x26207-gate__level--vorstand {
    color: var(--access-vorstand-fg, #15703a);
    background: var(--access-vorstand-bg, #f3f8ed);
}

/* ---- Schaltfläche ---------------------------------------- */
.x26207-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    font: var(--w-heading, 500) var(--fs-small, 1rem)/1 var(--font-body, Roboto, sans-serif);
    color: #fff;
    /* ORANGE, not green: this button sits INSIDE the members-only box
       and belongs to the member area (client, 2026-10-27). */
    background: var(--access-member-fg, #c2410c);
    border: 1px solid var(--access-member-fg, #c2410c);
    border-radius: var(--radius, 3px);
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease;
}
.x26207-gate__btn:hover {
    background: var(--access-member-ink, #9a3412);
    border-color: var(--access-member-ink, #9a3412);
}

.x26207-gate__btn--quiet {
    background: transparent;
    color: var(--text-2, #3d4247);
    border-color: var(--border, #dfdbd4);
}
.x26207-gate__btn--quiet:hover {
    background: var(--surface-2, #f4f2ee);
    color: var(--text, #14171a);
    border-color: var(--faint, #a4a8ac);
}

/* ---- Statusstreifen -------------------------------------- */
.x26207-authbar {
    padding: .625rem .875rem;
    background: var(--surface-2, #f4f2ee);
    border: 1px solid var(--border, #dfdbd4);
    border-radius: var(--radius, 3px);
}

.x26207-authbar__state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.x26207-authbar__state[hidden] { display: none; }

.x26207-authbar__text {
    font-size: var(--fs-small, 1rem);
    color: var(--text-2, #3d4247);
}
.x26207-authbar__text strong { color: var(--text, #14171a); font-weight: var(--w-heading, 500); }

/* Ohne JavaScript bleibt der Mitglieder-Inhalt verborgen und die
   Schranke sichtbar — der sichere Ausgangszustand. */
.x26207-gate__unlocked[hidden] { display: none; }

/* EDITORS ONLY (2026-11-20): the closed box a guest sees, shown above the open content so its texts have
   their pencils on themselves. Dashed and quiet: a preview, not part of the page.
   The button label is plain text here (an editor is logged in already). */
.x26207-gate__preview { outline: 2px dashed var(--line, #c9ced3); outline-offset: 6px; opacity: .8; margin-block-end: 2rem; }
.x26207-gate__btn--preview { cursor: default; pointer-events: none; }
