/* Table Styles (for later) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #333;
    color: white;
}

table tr:hover {
    background-color: #f1f1f1;
}

p.name {
	text-transform: uppercase;
	margin:0;
}

/* damit such-funktion immer sichtbar ist beim scrollen. Gilt nicht für Hauptmenu oben */
.fixed-header {
    position: sticky; /* Oder 'fixed', wenn du es fest im Viewport halten möchtest */
    top: 0; /* Position, ab der die Header fest bleibt */
    background-color: white; /* Hintergrundfarbe, um Überlagerungen zu vermeiden */
    z-index: 1000; /* Sicherstellen, dass es über anderen Inhalten liegt */
    padding: 10px; /* Optional: Padding hinzufügen */
    border-bottom: 1px solid #ccc; /* Optional: Trennlinie unter dem Header */
}



/* Statusmeldungen die für Speicher/Import benötigt werden */
.status-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.success {
    background-color: #d4edda; /* Grüner Hintergrund für Erfolge */
    color: #155724; /* Dunkelgrüner Text */
    border: 1px solid #c3e6cb; /* Passende Rahmenfarbe */
}

.error {
    background-color: #f8d7da; /* Roter Hintergrund für Fehler */
    color: #721c24; /* Dunkelroter Text */
    border: 1px solid #f5c6cb; /* Passende Rahmenfarbe */
}


/* Hinweis auf die andere Sprache (nur wenn der Browser sie bevorzugt) */
.lang-hint {
    margin: 0 0 10px 0;
    padding: 6px 10px;
    background-color: #fff8dc;
    border: 1px solid #e6d9a8;
    border-radius: 5px;
}

/* Bedienleiste (sticky) */
.fixed-header input,
.fixed-header select {
    margin: 2px 6px 2px 0;
}

/* Mod-ID unter dem Bild */
.thumb .mod-id {
    font-size: 0.75em;
    color: grey;
    margin-top: 2px;
}

/* Paging */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 10px 0;
}

.pager button {
    min-width: 32px;
    padding: 4px 8px;
    cursor: pointer;
}

.pager button.active {
    background-color: #333;
    color: white;
    font-weight: bold;
}

.pager .pager-info {
    margin-left: 10px;
    color: #555;
    font-size: 0.9em;
}

/* Tabellenkopf bleibt unter der Bedienleiste stehen, beim Festnageln kleiner */
#wl-table thead th {
    position: sticky;
    top: var(--wl-sticky-top, 0px);
    z-index: 900;
    transition: font-size 0.15s, padding 0.15s;
}

#wl-table.is-stuck thead th {
    font-size: 0.8em;
    padding: 4px 12px;
}
