/*
 * LUW Connect - Element Web Customisations
 */

/* "Betrieben mit Matrix" im Auth-Footer ausblenden */
.mx_AuthFooter a[href*="matrix.org"] {
    display: none !important;
}


/* ---------------------------------------------------------
 * LUW Connect: öffentliche Raum-/Chat-Suche ausblenden
 * --------------------------------------------------------- */

/* Startseite: "Öffentliche Chats erkunden" */
a[href="#/directory"],
a[href^="#/directory"],
a[href*="/#/directory"] {
    display: none !important;
}

/*
 * Fallback für die drei großen Aktionen auf der Element-Startseite:
 * Direktnachricht | Öffentliche Chats | Gruppenchat
 */
.mx_HomePage_default .mx_HomePage_default_buttons > :nth-child(2) {
    display: none !important;
}


/* ---------------------------------------------------------
 * LUW Connect: Startseiten-Kacheln als Gruppe zentrieren
 * --------------------------------------------------------- */

.mx_HomePage_default .mx_HomePage_default_buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 32px !important;

    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Verbleibende Kacheln gleichmäßig darstellen */
.mx_HomePage_default .mx_HomePage_default_buttons > * {
    margin: 0 !important;
}
