/* File: el-x | Version: 1.00.0 | Date: 2026-11-22 */
/* v1.00.0: NEU (XB-A, blueprint_close_button.md 1.02.0) — einheitlicher Schließen-/Leeren-Knopf im Stil des ✕ der
   Suchleiste: sichtbarer Kreis 22 px (#eef0f3, Kreuz 15 px #6b7280), Tippfläche 40 × 40 px über ::after.
   Varianten: --md (30 px, Modals/Sheets), --dark (dunkler Grund), --on-color (farbiger Kopf, currentColor).
   Eingebunden in index.php (<head> und Fragment-Antwort), includes/list_view.php, share-target.php.
   Markup: <button type="button" class="el-x-btn" aria-label="…"><span class="material-symbols-outlined">close</span></button> */

.el-x-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: #eef0f3;
    color: #6b7280;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    font: inherit;
    line-height: 1;
    box-sizing: border-box;
}
.el-x-btn::after {                     /* Tippfläche 40 × 40 px */
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
}
.el-x-btn .material-symbols-outlined {
    font-size: 15px;
    line-height: 1;
    color: inherit;
    pointer-events: none;
}
.el-x-btn:active { background: #e2e5ea; }
.el-x-btn:focus { outline: none; }
.el-x-btn:focus-visible { outline: 2px solid #ff7f50; outline-offset: 2px; }
.el-x-btn[hidden] { display: none; }

/* Modals/Sheets: Kreis 30 px, Tippfläche ≥ 44 px */
.el-x-btn--md { width: 30px; height: 30px; }
.el-x-btn--md::after { inset: -7px; }
.el-x-btn--md .material-symbols-outlined { font-size: 18px; }

/* Dunkler Grund (Bildbetrachter, Kamera) */
.el-x-btn--dark { background: rgba(255, 255, 255, .2); color: #fff; }
.el-x-btn--dark:active { background: rgba(255, 255, 255, .32); }

/* Farbiger Kopf: Kreis im Ton der Schriftfarbe (Fallback für WebViews ohne color-mix) */
.el-x-btn--on-color { background: rgba(255, 255, 255, .22); color: inherit; }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
    .el-x-btn--on-color { background: color-mix(in srgb, currentColor 18%, transparent); }
    .el-x-btn--on-color:active { background: color-mix(in srgb, currentColor 28%, transparent); }
}
