/* =============================================================
   MCT – css/mod_faecher.css
   Layout für mod_faecher. Technische Vorlage: css/mod_klassen.css
   ============================================================= */

#mod-faecher > div {
	background: var(--bg-panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: .8rem 1rem;
	margin-bottom: 1rem;
}

#faecher-titel-zeile {
	background: none;
	border: none;
	padding: 0;
}

#faecher-titel-zeile h2 {
	margin: 0 0 .25rem;
}

.faecher-platzhalter-text {
	color: var(--text-muted);
	font-size: .88rem;
}

#edit-faecher-titelzeile {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
}

#edit-faecher-titelzeile h3 {
	margin: 0;
	flex: 0 0 auto;
}

#faecher-meldung {
	flex: 1 1 auto;
	justify-content: center;
	text-align: center;
	min-width: 0;
}

#edit-faecher-inhalt {
	margin-top: 1rem;
}

#edit-faecher-inhalt input {
	width: 220px;
}

#edit-faecher-action {
	display: flex;
	justify-content: space-between;
	gap: .6rem;
	margin-top: 1rem;
	border-top: 1px solid var(--border);
	padding-top: 1rem;
}

/* Abbrechen links, Speichern rechts (gleiches Muster wie css/mod_klassen.css) */
#edit-faecher-action #btn-faecher-abbrechen { order: 1; }
#edit-faecher-action #btn-faecher-speichern { order: 2; }

#faecher-aktionsbereich {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.faecher-aktion-spalte {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	flex: 1 1 0;
	min-width: 140px;
}

#faecher-aktionsbereich label {
	font-size: .85rem;
	color: var(--text-muted);
}

.faecher-aktion-spalte input,
.faecher-aktion-spalte select {
	width: 100%;
}

#faecher-aktionsbereich-meta {
	flex: 1 1 100%;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .6rem;
}

.faecher-filter-anzahl {
	font-size: .82rem;
	color: var(--text-muted);
	white-space: nowrap;
}

/* Sortierbare Spaltenköpfe (gleiches Muster wie #klassen-tabelle) */
#faecher-tabelle .sortierbar {
	cursor: pointer;
	user-select: none;
}

#faecher-tabelle .sortierbar:hover {
	background: var(--bg-hover);
	color: var(--text-nav-hover);
}

#faecher-tabelle .sort-asc::after  { content: ' ▲'; font-size: .75em; }
#faecher-tabelle .sort-desc::after { content: ' ▼'; font-size: .75em; }

#faecher-tabelle tbody tr.faecher-zeile-aktiv {
	background: rgba(59,130,246,.12);
}

#faecher-tabelle {
	table-layout: fixed;
}

#faecher-tabelle th:nth-child(1),
#faecher-tabelle td:nth-child(1) {
	width: 70px;
}

#faecher-tabelle th:nth-child(5),
#faecher-tabelle td:nth-child(5) {
	width: 110px;
}

#faecher-tabelle th:nth-child(6),
#faecher-tabelle td:nth-child(6) {
	width: 100px;
}
