/* Auditoriu Tabellen: sichtbare Köpfe und anpassbare Spalten */
.table-responsive {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    scrollbar-gutter: stable;
}
.table-responsive > table,
.table-responsive > .table {
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.table-responsive thead {
    display: table-header-group;
    background: var(--soft);
}
.table-responsive th {
    position: relative;
    min-width: 90px;
    color: var(--muted);
    background: var(--soft);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 2px solid var(--line);
    padding-right: 1.15rem;
}
.table-responsive td {
    min-width: 90px;
    overflow-wrap: anywhere;
    vertical-align: top;
}
.table-responsive th:last-child .column-resizer { right: 0; }
.column-resizer {
    position: absolute;
    top: 0;
    right: -5px;
    z-index: 4;
    width: 10px;
    height: 100%;
    min-height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: col-resize;
    touch-action: none;
}
.column-resizer::after {
    content: "";
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 4px;
    width: 2px;
    border-radius: 2px;
    background: var(--line);
    transition: background .15s ease, width .15s ease;
}
.column-resizer:hover::after,
.column-resizer:focus-visible::after,
.table--resizing .column-resizer.is-active::after {
    width: 3px;
    background: var(--primary);
}
.column-resizer:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
.table--resizing,
.table--resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}
.table-resize-hint {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 .45rem;
    color: var(--muted);
    font-size: .76rem;
}
.table-resize-hint button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    cursor: pointer;
}
html.dark .table-responsive thead,
html.dark .table-responsive th {
    background: color-mix(in srgb, var(--paper) 78%, #000);
    color: #cbd5e1;
}
@media (max-width: 720px) {
    .table-responsive > table,
    .table-responsive > .table {
        min-width: 680px;
    }
    .table-resize-hint { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .column-resizer::after { transition: none; }
}

/* APP-2.2.0-010: Reset-Button im Dark Mode eindeutig lesbar */
html.dark .table-resize-hint button,
html.dark .table-resize-hint button:hover,
html.dark .table-resize-hint button:focus-visible { color:#ffffff !important; }
