/* Mitglieder: Teilnehmerliste (Frontend) */

.kfz-member-wrap {
	max-width: 1100px;
	margin: 2rem auto;
	padding: 0 1rem 2rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1e293b;
}

.kfz-member-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.75rem 1.5rem;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, color-mix(in srgb, var(--kfz-member-primary, #3354a5) 12%, #fff) 0%, #f8fafc 50%, #fff 100%);
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.kfz-member-hero__title {
	margin: 0 0 0.25rem;
	font-size: clamp(1.35rem, 3vw, 1.65rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
}

.kfz-member-hero__subtitle {
	margin: 0;
	font-size: 0.95rem;
	color: #64748b;
}

.kfz-member-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 100px;
	padding: 0.85rem 1.25rem;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.kfz-member-hero__stat-num {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
	color: var(--kfz-member-primary, #3354a5);
}

.kfz-member-hero__stat-label {
	margin-top: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94a3b8;
}

.kfz-member-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	background: #f1f5f9;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}

.kfz-member-filter__label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #475569;
}

.kfz-member-filter__select {
	min-width: 220px;
	max-width: 100%;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	font-size: 0.95rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
	appearance: none;
	cursor: pointer;
}

.kfz-member-filter__btn {
	padding: 0.45rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	background: var(--kfz-member-accent, #3354a5);
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.kfz-member-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.kfz-member-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.kfz-member-table thead th {
	padding: 0.85rem 1rem;
	text-align: left;
	font-weight: 600;
	color: #475569;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	white-space: nowrap;
}

.kfz-member-table tbody tr:nth-child(even) {
	background: #fafbfc;
}

.kfz-member-table tbody tr:hover {
	background: color-mix(in srgb, var(--kfz-member-primary, #3354a5) 6%, #fff);
}

.kfz-member-table tbody td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: top;
	word-break: break-word;
}

.kfz-member-table tbody tr:last-child td {
	border-bottom: none;
}

.kfz-member-empty {
	padding: 2rem 1.5rem;
	text-align: center;
	color: #64748b;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px dashed #cbd5e1;
}

.kfz-member-pagination {
	margin-top: 1.5rem;
}

.kfz-member-pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kfz-member-pagination__link {
	display: inline-block;
	padding: 0.45rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--kfz-member-primary, #3354a5);
	text-decoration: none;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	transition: background 0.15s, border-color 0.15s;
}

.kfz-member-pagination__link:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.kfz-member-pagination__current {
	display: inline-block;
	padding: 0.45rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff;
	background: var(--kfz-member-accent, #3354a5);
	border-radius: 8px;
}

.kfz-member-footnote {
	margin-top: 1.5rem;
	font-size: 0.8rem;
	color: #94a3b8;
	line-height: 1.5;
}

/* Gast / keine Berechtigung */
.kfz-member-guest,
.kfz-member-denied {
	max-width: 480px;
	margin: 2rem auto;
	padding: 2rem 1.75rem;
	text-align: center;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.kfz-member-guest {
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.kfz-member-guest p,
.kfz-member-denied p {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	color: #475569;
	line-height: 1.5;
}

.kfz-member-denied {
	background: #fff7ed;
	border-color: #fed7aa;
}

.kfz-member-denied p {
	color: #9a3412;
	margin-bottom: 0;
}

.kfz-member-guest__btn {
	display: inline-block;
	padding: 0.65rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--kfz-member-accent, #3354a5);
	border-radius: 10px;
	transition: opacity 0.15s, transform 0.1s;
}

.kfz-member-guest__btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

@media (max-width: 782px) {
	.kfz-member-table thead {
		display: none;
	}

	.kfz-member-table,
	.kfz-member-table tbody,
	.kfz-member-table tr,
	.kfz-member-table td {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.kfz-member-table tbody tr {
		margin-bottom: 1rem;
		padding: 1rem;
		background: #fff !important;
		border: 1px solid #e2e8f0;
		border-radius: 12px;
		box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	}

	.kfz-member-table tbody td {
		padding: 0.4rem 0;
		border: none;
	}

	.kfz-member-table tbody td::before {
		content: attr(data-label);
		display: block;
		font-size: 0.7rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: #94a3b8;
		margin-bottom: 0.2rem;
	}
}
