body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Nunito", Roboto, Arial, sans-serif !important;
    padding-bottom: 80px;  /* Platz für fixed Footer */
}


.user-list {
    display: grid;
    grid-template-columns: 50px 0px 200px 200px 160px 220px 120px 160px 130px;
    /* Spaltenbreiten: ID | Spacer | Name | Apelido | Username | Email | Tel | dt_lli | Action */
    gap: 4px 8px;               /* vertikaler Abstand 8px, horizontal 12px */
    align-items: center;         /* alles vertikal zentriert */
    padding: 6px 0;
    max-width: 1300px;
    margin: 0 auto;
}

.user-row {
    display: contents;  /* wichtig für Grid! */
}

.user-cell {
    padding: 2px 4px;
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-cell.id {
    text-align: right;
    font-weight: bold;
    font-family: monospace;
}

.user-cell.spacer {
    background: transparent;
    padding: 0;
}

.user-cell.action {
    text-align: center;
    background-color: transparent;
}

.btn-edit {
    padding: 6px 14px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-edit:hover {
    background-color: #0b5ed7;
}

.status-select {
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9em;
    cursor: pointer;
    min-width: 110px;
}

.status-select option[value="0"] { color: #dc3545; } /* rot - inaktiv */
.status-select option[value="2"] { color: #28a745; } /* grün - aktiv */
.status-select option[value="4"] { color: #007bff; } /* blau */
.status-select option[value="9"] { color: #6f42c1; font-weight: bold; } /* lila - Admin */

.btn-edit-small {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 4px 8px;
    color: #0d6efd;
}

.btn-edit-small:hover {
    color: #0b5ed7;
    background-color: #f0f4ff;
    border-radius: 4px;
}
.status-select:disabled {
    background-color: #e9ecef;
    color: #495057;
    cursor: not-allowed;
    opacity: 0.8;
}

.footer {
    padding-top: 0.5rem !important;     /* ca. 8px oben */
    padding-bottom: 0.5rem !important;   /* ca. 8px unten → insgesamt schmaler */
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: center;          /* Immer zentriert als Basis */
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 0 15px;
    position: relative;               /* Für absolute Positionierung des Admin-Links */
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.footer-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.footer-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.admin-link {
    color: #bbb;
    font-size: 0.85rem;
    text-decoration: underline;
}

.admin-link:hover {
    color: white;
}

/* Wenn Admin-Link vorhanden: Link rechts, Rest zentriert */
.footer-content:has(.admin-link) {
    justify-content: flex-start;      /* Link wird absolut rechts positioniert */
}
/* Responsive: Ab 992px alles schmaler, ab 768px stapeln */


@media (max-width: 1200px) {
    .user-list {
        grid-template-columns: 50px 10px 110px 110px 100px 170px 100px 100px 110px;
        gap: 6px 8px;
    }
}

@media (max-width: 992px) {
    .user-list {
        grid-template-columns: 40px 10px 90px 90px 90px 160px 90px 90px 100px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .user-list {
        grid-template-columns: 1fr;   /* alles untereinander */
        gap: 4px;
    }

    .user-cell {
        grid-column: 1 / -1;
        text-align: left !important;
        white-space: normal;
        padding-left: 50px;
        position: relative;
    }

    .user-cell::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        color: #555;
    }

    .user-cell.id { text-align: left; padding-left: 60px; }
    .user-cell.id::before { content: "ID:"; }
    .user-cell:nth-child(3)::before { content: "Name:"; }
    .user-cell:nth-child(4)::before { content: "Apelido:"; }
    .user-cell:nth-child(5)::before { content: "Username:"; }
    .user-cell:nth-child(6)::before { content: "E-Mail:"; }
    .user-cell:nth-child(7)::before { content: "Tel:"; }
    .user-cell:nth-child(8)::before { content: "Letzter Login:"; }
    .user-cell.action { text-align: right; padding-right: 20px; }
    .user-cell.action::before { content: none; }
}
    /* Handy: kompakt, zentriert, keine Verschiebung */
    @media (max-width: 768px) {
        .footer {
            padding: 8px 0;
            font-size: 0.8rem;
        }

        .footer-content {
            justify-content: center;
            gap: 8px;
            padding: 0 10px;
        }

        .footer-left {
            gap: 8px;
        }

        .footer-right {
            display: none;                 /* Admin-Link komplett ausblenden */
        }

        .footer-logo {
            width: 28px;
            height: 28px;
        }

        /* Text immer in einer Zeile, nie abschneiden */
        .footer-left span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 70vw;
        }
    }

    /* Desktop: Admin-Link sichtbar und rechts */
    @media (min-width: 769px) {
        .admin-link {
            display: inline;
        }

        .footer {
            padding-top: 0.6rem !important;   /* ca. 12px */
            padding-bottom: 0.6rem !important;
            font-size: 1rem;                /* Text größer wie gewünscht */
        }



        .footer-left {
            justify-content: flex-start;
        }
    }