/* Vereinsprofil — Hero, Tabs, Kader-Hub (Vereinsfarben via --thub-c1 / --thub-c2) */

.thub-page {
	--thub-c1: #7a0f0f;
	--thub-c2: #f5c542;
	--thub-c1-rgb: 122, 15, 15;
	--thub-c2-rgb: 245, 197, 66;
	margin-top: 4px;
}

.thub-hero {
	position: relative;
	margin: 0 0 16px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(var(--thub-c1-rgb), 0.45);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	min-height: 148px;
}

.thub-hero--banner {
	min-height: 220px;
}

.thub-hero__banner {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.thub-hero__banner img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
	object-position: center 35%;
	transform: scale(1.03);
}

.thub-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(105deg, rgba(8, 2, 2, 0.92) 0%, rgba(var(--thub-c1-rgb), 0.28) 42%, rgba(8, 2, 2, 0.88) 100%),
		radial-gradient(ellipse at 72% 28%, rgba(var(--thub-c1-rgb), 0.42) 0%, transparent 58%),
		linear-gradient(200deg, transparent 55%, rgba(var(--thub-c2-rgb), 0.12) 100%);
	background-color: #120606;
	pointer-events: none;
}

.thub-hero--banner .thub-hero__bg {
	background:
		linear-gradient(90deg, rgba(6, 2, 2, 0.94) 0%, rgba(6, 2, 2, 0.72) 38%, rgba(6, 2, 2, 0.45) 62%, rgba(6, 2, 2, 0.82) 100%),
		linear-gradient(180deg, rgba(6, 2, 2, 0.35) 0%, rgba(6, 2, 2, 0.88) 100%),
		radial-gradient(ellipse at 18% 50%, rgba(var(--thub-c1-rgb), 0.35) 0%, transparent 55%);
	background-color: transparent;
}

.thub-hero--branded .thub-hero__crest {
	border-color: rgba(var(--thub-c1-rgb), 0.55);
	box-shadow: 0 0 18px rgba(var(--thub-c1-rgb), 0.25);
}

.thub-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 16px;
	padding: 18px 20px 16px;
}

.thub-hero__club {
	display: flex;
	flex: 1 1 280px;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.thub-hero__crest {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 200, 120, 0.25);
	border-radius: 12px;
	padding: 8px;
}

.thub-hero__crest img {
	max-width: 72px;
	max-height: 72px;
	object-fit: contain;
}

.thub-hero__name {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	color: #fff8f0;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.thub-hero__league,
.thub-hero__stadium,
.thub-hero__manager {
	margin: 0 0 4px;
	font-size: 13px;
	color: rgba(255, 240, 220, 0.82);
}

.thub-hero__league a {
	color: #fde8d4;
}

.thub-hero__stars {
	margin: 6px 0 0;
	color: var(--thub-c2);
	font-size: 15px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.thub-hero__colors {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 4px;
	vertical-align: middle;
}

.thub-color-swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.thub-kurz-colors {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.thub-hero__kpis {
	flex: 0 1 320px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-content: flex-start;
	justify-content: flex-end;
	margin-left: auto;
}

.thub-hero-kpi {
	flex: 1 1 90px;
	min-width: 84px;
	max-width: 140px;
	background: rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(255, 170, 90, 0.22);
	border-radius: 8px;
	padding: 8px 10px;
	text-align: center;
	backdrop-filter: blur(4px);
}

.thub-hero-kpi__v {
	display: block;
	font-size: 18px;
	font-weight: 800;
	color: #fff8f0;
	line-height: 1.2;
}

.thub-hero-kpi__l {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(255, 220, 180, 0.7);
}

.thub-hero-kpi--form {
	flex: 1 1 100%;
	max-width: none;
}

.thub-form-dots {
	display: flex;
	gap: 4px;
	justify-content: center;
	margin-top: 4px;
}

.thub-form-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 800;
	color: #fff;
}

.thub-form-dot--w { background: #16a34a; }
.thub-form-dot--d { background: #ca8a04; }
.thub-form-dot--l { background: #dc2626; }

/* Horizontale Vereins-Tabs (mc-tabs liegt nicht auf dieser Seite) */
.thub-tabs {
	list-style: none;
	margin: 0 0 0;
	padding: 0;
	border-bottom: 1px solid rgba(var(--thub-c1-rgb), 0.35);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.thub-tabs > li {
	float: none;
	margin: 0;
	flex: 0 1 auto;
}

.thub-tabs > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border: 1px solid rgba(122, 15, 15, 0.55);
	border-radius: 6px 6px 0 0;
	background: rgba(0, 0, 0, 0.45);
	color: rgba(255, 255, 255, 0.72);
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	white-space: nowrap;
}

.thub-tabs > li > a:hover {
	color: #fff;
	background: rgba(var(--thub-c1-rgb), 0.35);
	border-color: rgba(var(--thub-c1-rgb), 0.55);
}

.thub-tabs > li.active > a {
	color: #fff;
	background: linear-gradient(180deg, rgba(var(--thub-c1-rgb), 0.92) 0%, rgba(8, 2, 2, 0.9) 100%);
	border-color: rgba(var(--thub-c1-rgb), 0.65);
	border-top: 3px solid var(--thub-c1);
	box-shadow: 0 -2px 12px rgba(var(--thub-c1-rgb), 0.28);
}

.thub-tabs + .tab-content {
	margin-top: 0;
	padding-top: 14px;
}

/* Positions-Filter nebeneinander */
.thub-squad-toolbar {
	align-items: center;
}

.thub-line-chips.msq-chips--inline,
.msq-chips.thub-line-chips {
	display: flex !important;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	grid-template-columns: none;
	flex: 1 1 auto;
	min-width: 0;
}

.thub-line-chips .msq-chip {
	display: inline-block;
	flex: 0 0 auto;
	padding: 6px 14px;
	text-align: center;
	white-space: nowrap;
}

.thub-squad-search {
	flex: 0 1 auto;
	margin-left: auto;
}

.thub-squad {
	margin-top: 4px;
}

.thub-card-list .tm-card.msq-card {
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.thub-card-list .tm-card.msq-card:hover {
	transform: translateY(-2px);
	border-color: rgba(var(--thub-c2-rgb), 0.45);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--thub-c2-rgb), 0.15);
}

.thub-line-chips .msq-chip--active {
	border-color: rgba(245, 197, 66, 0.65);
	background: linear-gradient(180deg, rgba(90, 60, 10, 0.85) 0%, rgba(40, 20, 4, 0.9) 100%);
	box-shadow: 0 0 12px rgba(245, 197, 66, 0.2);
}

.thub-team-stats {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid rgba(185, 28, 28, 0.25);
}

.thub-team-stats-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fde8d4;
}

.thub-stats-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.thub-stat-card {
	flex: 1 1 120px;
	min-width: 100px;
	background: rgba(30, 10, 10, 0.55);
	border: 1px solid rgba(255, 170, 90, 0.18);
	border-radius: 8px;
	padding: 10px 12px;
	text-align: center;
}

.thub-stat-v {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: #fff8f0;
}

.thub-stat-l {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: rgba(255, 220, 180, 0.72);
}

/* Kurzprofil (Schritt E) */
.thub-kurz-layout {
	margin-top: 4px;
}

.thub-kurz-main .infofield,
.thub-kurz-main .form-horizontal {
	margin-bottom: 6px;
}

.thub-kurz-card {
	background: rgba(20, 20, 20, 0.66);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 10px;
}

.thub-kurz-title {
	margin: 0 0 8px;
	color: #f6e6cf;
	font-size: 14px;
	font-weight: 700;
}

.thub-kurz-card--stadium {
	text-align: center;
}

.thub-kurz-stadium-img {
	max-width: 100%;
	max-height: 220px;
}

.thub-kurz-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	margin: 0 6px 6px 0;
	overflow: hidden;
}

.thub-kurz-logo img {
	max-width: 30px;
	max-height: 30px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.thub-fan-row {
	margin-bottom: 5px;
	color: #f3e4cf;
}

.thub-fan-grid {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.thub-fan-donut {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.15);
	flex: 0 0 120px;
}

.thub-fan-legend {
	list-style: none;
	margin: 0;
	padding: 0;
}

.thub-fan-legend li {
	margin: 0 0 4px;
	font-size: 12px;
}

.thub-fan-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 6px;
}

.thub-kurz-card--equal {
	min-height: 170px;
}

.thub-kurz-derby {
	padding: 8px 10px;
	min-height: 92px;
}

.thub-kurz-derby h5 {
	margin-bottom: 6px !important;
}

.thub-kurz-derby .muted {
	margin-bottom: 0;
}

/* Erweiterte Team-Stats & Form (Schritt C) */
.thub-form-dots--inline {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 6px;
}

.thub-form-mini {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 800;
	color: #fff;
}

.thub-form-mini--w { background: #16a34a; }
.thub-form-mini--d { background: #ca8a04; }
.thub-form-mini--l { background: #dc2626; }

.thub-stat-card--form .thub-stat-v {
	display: none;
}

/* Jugendkader-Cards */
.thub-youth-card {
	border-color: rgba(var(--thub-c1-rgb), 0.28);
}

.thub-youth-card__head {
	align-items: center;
}

.thub-youth-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 12px;
	color: rgba(255, 220, 180, 0.78);
}

.thub-youth-pos {
	font-weight: 600;
}

.thub-youth-flag {
	width: 18px;
	height: auto;
	vertical-align: middle;
}

.thub-youth-strength .tm-ovr-badge {
	min-width: 52px;
}

.thub-youth-transfer {
	margin: 0 10px 8px;
}

@media (max-width: 979px) {
	.thub-kurz-card--equal {
		min-height: 0;
	}
	.thub-kurz-layout .span7,
	.thub-kurz-layout .span5 {
		width: 100%;
		margin-left: 0;
		float: none;
	}
}

@media (max-width: 767px) {
	.thub-hero--banner {
		min-height: 190px;
	}
	.thub-hero__banner img {
		min-height: 190px;
		object-position: center 30%;
	}
	.thub-hero__inner {
		padding: 14px 12px;
	}
	.thub-hero__kpis {
		flex: 1 1 100%;
		justify-content: flex-start;
		margin-left: 0;
	}
	.thub-hero__name {
		font-size: 22px;
	}
	.thub-tabs > li {
		flex: 1 1 45%;
	}
	.thub-tabs > li > a {
		padding: 8px 10px;
		font-size: 10px;
	}
	.thub-squad-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.thub-squad-search {
		margin-left: 0;
		width: 100%;
	}
	.thub-squad-search .input-medium {
		width: 100%;
		box-sizing: border-box;
	}
	.thub-line-chips .msq-chip {
		flex: 1 1 auto;
		min-width: 0;
		padding: 6px 10px;
		font-size: 11px;
	}
	.msq-kpi-row.thub-squad-kpi {
		gap: 6px;
	}
	.msq-kpi-row.thub-squad-kpi .msq-kpi {
		flex: 1 1 45%;
		min-width: 0;
	}
	.thub-card-list .tm-card.msq-card {
		margin-bottom: 10px;
	}
	.thub-stats-grid .thub-stat-card {
		flex: 1 1 46%;
	}
	.thub-fan-donut {
		width: 100px;
		height: 100px;
		flex: 0 0 100px;
	}
}
