:root {
	--navbar-height: 70px;
	--footer-height: 56px;
}

/* Platz für fixierte Kopf- und Fußzeile schaffen */
body {
	padding-top: var(--navbar-height);
	padding-bottom: var(--footer-height);
}

/* Optional: visuelle Stabilität */
.navbar.fixed-top {
	box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

footer.footer.fixed-bottom {
	box-shadow: 0 -2px 4px rgba(0, 0, 0, .06);
}



.navbar {
	box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.stats-card {
	transition: transform 0.2s;
}

.stats-card:hover {
	transform: translateY(-5px);
}


.xcontainer {
	margin: 10px;
}




/* 6) Datum hervorheben */
.header-date {
	font-size: 1.25rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.row.flex-nowrap {
	flex-wrap: nowrap !important;
	overflow-x: auto;
	/* horizontal scroll, falls es zu eng wird */
}




.navbar {
	box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.page-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 2rem 0;
	margin-bottom: 2rem;
	border-radius: 0.5rem;
}

.page-header h2 {
	margin-bottom: 0.5rem;
}

.header-date {
	font-size: 1.1rem;
	opacity: 0.9;
}

/* Flexibles Card-Grid für Statistiken */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.stats-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 0.5rem;
	text-align: center;
	padding: 1rem;
}

.stats-card h4 {
	margin-bottom: 0.5rem;
	font-size: 2rem;
	font-weight: bold;
}

.stats-card p {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.95;
}


.table td {
	font-size: 0.9rem;
	vertical-align: middle;
}

/* Responsivität verbessern */
@media (max-width: 768px) {
	.page-header {
		text-align: center;
	}

	.page-header .d-flex {
		flex-direction: column;
		gap: 1rem;
	}

	.stats-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}
}







/* Sticky Footer Implementation mit Bootstrap 5 */
html,
body {
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Container soll verfügbaren Platz ausfüllen */
.main-content {
	flex: 1 0 auto;
}

/* Footer fixiert am unteren Rand */
.footer {
	flex-shrink: 0;
	margin-top: auto;
}





/**
 * Beschreibung: CSS für die gruppierte Bestenliste
 */

/* Kategorie-Sektionen */
.category-section {
	margin-bottom: 3rem;
}

.category-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 15px 20px;
	border-radius: 10px 10px 0 0;
	margin-bottom: 0;
}

.category-header h3 {
	margin: 0;
	font-size: 1.4rem;
}

.category-table {
	border-radius: 0 0 10px 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	background: white;
}

/* Geschlechtsspezifische Farben */
.male-section .category-header {
	background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.female-section .category-header {
	background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

/* Gruppen-Auswahl */
.group-selector {
	background: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin-bottom: 30px;
}

/* Statistik-Badge */
.stats-badge {
	background: rgba(255, 255, 255, 0.2);
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.85rem;
	margin-left: 10px;
}

/* Leere Kategorie */
.empty-category {
	padding: 30px;
	text-align: center;
	color: #6b7280;
	background: #f9fafb;
	border-radius: 0 0 10px 10px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
	.category-header h3 {
		font-size: 1.1rem;
	}

	.stats-badge {
		display: block;
		margin-left: 0;
		margin-top: 5px;
	}
}
