/* community.css – Vereinsverzeichnis Steinigtwolmsdorf
   7 Kategorien + 19 Vereine = 26 Listenzellen.
   Mobile First: eine Spalte; ab 992 px vier Grid-Spalten.
   Die Kategoriegruppen bleiben innerhalb einer Spalte zusammen.
   Material Icons werden lokal über head.php bereitgestellt.
*/

.community-section__title {
    margin: 0 0 1.25rem;
    color: var(--hh-primary, #365763);
    line-height: 1.3;
}

/* Einspaltig mobil, ab lg vier gleich breite Spalten. */
.community-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--hh-border, #c8d5da);
    border-radius: 3px;
    background: var(--hh-surface, #fff);
}

/* Jede Spalte enthält ausschließlich Kategorie- und Vereinszellen. */
.community-column.list-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    list-style: none;
}

.community-column:not(:last-child) {
    border-bottom: 1px solid var(--hh-border, #c8d5da);
}

.community-column .community-cell {
    min-width: 0;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--hh-border, #c8d5da);
    border-radius: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
    background: var(--hh-surface, #fff);
}

.community-column .community-cell:last-child {
    border-bottom: 0;
}

/* Kategorie-Zelle: eigenständige Überschrift und genau ein Material-Icon. */
.community-column .community-cell--category {
    background: var(--hh-primary-soft, #e5eff1);
    color: var(--hh-primary, #365763);
}

.community-category-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    color: inherit;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
}

.community-category-icon.material-icons-outlined {
    display: inline-flex;
    flex: 0 0 1.5rem;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    font-family: 'Material Icons Outlined';
    font-size: 1.35rem;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Vereins-Zellen: nur Name bzw. bestehender externer Link. */
.community-cell--club a {
    color: var(--hh-primary, #365763);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.community-cell--club a:hover {
    color: var(--hh-primary-dark, #25404a);
    text-decoration-thickness: 2px;
}

.community-cell--club a:focus-visible {
    outline: 2px solid var(--hh-accent, #e6a50a);
    outline-offset: 3px;
}

@media (min-width: 992px) {
    .community-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .community-column:not(:last-child) {
        border-right: 1px solid var(--hh-border, #c8d5da);
        border-bottom: 0;
    }
}
