/* Container & Boxen */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.boxed {
    background: rgba(0,0,0,0.15);
    padding: 20px;
    border-radius: 6px;
    margin: 20px auto 0 auto;
}

/* Tabelle */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table.auto-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #333; /* Tabelle dunkelgrau */
    color: #fff; /* Schrift weiß */
}

table.auto-table th,
table.auto-table td {
    padding: 10px 8px;
    border: 1px solid #555;
    text-align: center;
}

table.auto-table th {
    background-color: #444; /* Kopfzeilen etwas heller */
    color: #fff;
    font-weight: bold;
}

/* Highlight-Spalten */
table.auto-table td.highlight {
    background-color: #333;
    color: #fff;
}

/* Letzte 4 Zeilen in den Highlight-Spalten korrigieren */
table.auto-table tbody tr:nth-last-child(-n+4) td.highlight {
    background-color: #333 !important;
    color: #fff !important;
}

/* Alternierende Zeilen (optional) */
table.auto-table tbody tr:nth-child(even) {
    background-color: #2b2b2b;
}

/* Responsive */
@media screen and (max-width: 768px) {
    table.auto-table th,
    table.auto-table td {
        padding: 8px 5px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    table.auto-table, 
    table.auto-table thead, 
    table.auto-table tbody, 
    table.auto-table th, 
    table.auto-table td, 
    table.auto-table tr {
        display: block;
    }

    table.auto-table thead tr {
        display: none; /* Kopfzeile ausblenden */
    }

    table.auto-table tr {
        margin-bottom: 1rem;
        border-bottom: 1px solid #444;
        background: #333;
        border-radius: 6px;
        padding: 10px;
    }

    table.auto-table td {
        display: flex;
        justify-content: space-between;
        padding: 5px 10px;
        white-space: normal;
    }

    table.auto-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
    }
}

