/* Members module: cards on the website */
.mod-mitglieder {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.mitglied {
    --mitglied-farbe: #444;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #ddd;
    border-left: 4px solid var(--mitglied-farbe);
    border-radius: 6px;
    background: #fff;
    text-align: left;
}

.mitglied-bild {
    flex: 0 0 84px;
    width: 84px;
    height: 108px;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
}

.mitglied-text { min-width: 0; }
.mitglied-text p { margin: 2px 0; font-size: 0.9em; }

.mitglied-name {
    margin: 0 0 2px;
    font-size: 1.05em;
    color: var(--mitglied-farbe);
}

.mitglied-chor { color: var(--mitglied-farbe); font-weight: 600; }
.mitglied-stimme { font-style: italic; }

/* The list may sit inside the former wrapper <div class="members">, which
   site templates turn into a narrow grid of its own; it would squeeze the
   whole list into one cell. Neutralise the wrapper, and let the content
   column use its full width while it holds the list (templates often cap
   text at a reading width). */
.members:has(> .mod-mitglieder) { display: block; }
.content_text:has(.mod-mitglieder) { max-width: none; }

/* Filter by choir and voice */
.mitglieder-filter { margin: 8px 0 4px; }
.mitglieder-filtergruppe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.mitglieder-filterlabel { font-weight: 600; margin-right: 4px; }
.mitglieder-filtergruppe button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 0.9em;
    cursor: pointer;
}
.mitglieder-filtergruppe button[aria-pressed="true"] { background: #333; border-color: #333; color: #fff; }
.mitglieder-anzahl { margin: 4px 0 0; font-size: 0.9em; color: #666; }
.mitglied[hidden] { display: none; }
