/* ---- Memberlist Grid Layout ---- */

.memberlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

/* einzelne User-Kachel */
.memberlist-card {
    background: #353747;
    border: 1px solid #4A4C5D;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    color: #D8D4E3;
}

/* Avatar oben */
.memberlist-card .ml-avatar {
    text-align: center;
    margin-bottom: 8px;
}
.memberlist-card .ml-avatar img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Username & Titel */
.memberlist-card .ml-username {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #F5EEDC;
}
.memberlist-card .ml-usertitle {
    margin-bottom: 8px;
    color: #B8A7D9;
}

/* Stats unten */
.memberlist-card .ml-stats {
    margin-top: auto;
    line-height: 1.4;
    border-top: 1px dotted #4A4C5D;
    padding-top: 6px;
}

/* Responsive Fallbacks */
@media (max-width: 1200px) {
    .memberlist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .memberlist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .memberlist-grid { grid-template-columns: 1fr; }
}

/* --- Balken-Layout für Memberlist-Stats --- */

.ml-bars {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
}

.ml-bars li {
    background: #2B2C36;
    border-top: 1px solid #202028;
    border-bottom: 1px solid #4A4C5D;
    padding: 8px 10px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
    text-transform: none;
    color: #D8D4E3;
}

/* erster Balken ohne obere Linie */
.ml-bars li:first-child {
    border-top: none;
}

/* Links im Balken normal übernehmen */
.ml-bars li a {
    color: #B8A7D9;
    text-decoration: none;
    font-weight: bold;
}

.ml-bars li a:hover {
    color: #D8A5C4;
    text-decoration: underline;
}