/* Startseite — Manager-Zentrale (Dashboard) */
body {
	min-width: 0;
}

body > .container,
.container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}

body > .container > hr,
body > .container > footer {
	margin-left: 70px;
	margin-right: 70px;
}

.hd-dashboard {
	width: 100%;
	min-height: calc(100vh - 72px);
	margin: 0;
	padding: 16px 70px 16px;
	box-sizing: border-box;
}

.hd-dashboard-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.hd-main,
.hd-right {
	min-width: 0;
}

.hd-right {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hd-right .box,
.hd-right .accordion-group {
	margin-bottom: 0 !important;
}

.hd-main-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 1.22fr);
	gap: 12px;
	align-items: stretch;
	margin-bottom: 12px;
}

.hd-main-grid__item,
.hd-main-grid__item > .hd-card,
.hd-main-grid__item > .ajaxLoadedBlock {
	min-width: 0;
	height: 100%;
}

.hd-main-grid__item > .ajaxLoadedBlock > .hd-card,
.hd-main-grid__item > .hd-card {
	height: 100%;
	margin-bottom: 0;
}

.hd-main-grid__item > .ajaxLoadedBlock {
	display: flex;
	flex-direction: column;
}

.hd-main-grid__item > .ajaxLoadedBlock > .hd-card {
	flex: 1 1 auto;
}

.hd-main-grid--secondary > .hd-club-news-card {
	order: 5;
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.hd-card {
	background: rgba(12, 6, 6, 0.86);
	border: 1px solid rgba(151, 77, 31, 0.58);
	border-radius: 5px;
	margin-bottom: 14px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	backdrop-filter: blur(3px);
	display: flex;
	flex-direction: column;
}

.hd-card:hover {
	border-color: rgba(240, 200, 120, 0.55);
	box-shadow: 0 0 16px rgba(212, 63, 38, 0.13), 0 4px 16px rgba(0, 0, 0, 0.32);
}

.hd-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
	min-height: 36px;
	padding: 8px 14px;
	border-bottom: 1px solid rgba(151, 77, 31, 0.54);
	background: linear-gradient(180deg, rgba(97, 17, 22, 0.94) 0%, rgba(45, 11, 14, 0.93) 100%);
}

.hd-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f0d080;
}

.hd-card__title .icon-signal {
	color: #ffdfaa;
	margin-right: 4px;
}

.hd-card__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.hd-select {
	appearance: none;
	-webkit-appearance: none;
	border-radius: 4px;
	border: 1px solid rgba(151, 77, 31, 0.72);
	background: rgba(18, 9, 9, 0.88);
	color: #fff8f0;
	font-size: 11px;
	font-weight: 600;
	padding: 6px 26px 6px 10px;
	line-height: 1.3;
	cursor: pointer;
}

.hd-card__body {
	padding: 10px 14px;
	flex: 1 1 auto;
}

.hd-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 230px;
	gap: 18px;
	align-items: end;
	min-height: 132px;
	margin-bottom: 12px;
	padding: 18px 22px 16px;
	border: 1px solid rgba(151, 77, 31, 0.6);
	border-radius: 5px;
	background:
		radial-gradient(circle at 72% 10%, rgba(212, 175, 55, 0.12), transparent 25%),
		linear-gradient(105deg, rgba(16, 7, 7, 0.92) 0%, rgba(82, 15, 18, 0.78) 48%, rgba(14, 6, 6, 0.9) 100%);
	box-shadow: 0 0 20px rgba(122, 15, 15, 0.18), inset 0 0 0 1px rgba(255,255,255,.03);
	position: relative;
	overflow: hidden;
}

.hd-hero__welcome {
	margin: 0 0 6px;
	color: #fff7eb;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 800;
}

.hd-hero__sub {
	margin: 0 0 18px;
	color: #d8c5b2;
	font-size: 12px;
}

.hd-hero__club {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.hd-hero__logo {
	width: 76px;
	height: 76px;
	flex: 0 0 76px;
	object-fit: contain;
	filter: drop-shadow(0 0 10px rgba(0,0,0,.55));
}

.hd-hero__logo--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(122,15,15,.85);
	border: 1px solid rgba(212,175,55,.45);
	color: #f0d080;
	font-weight: 900;
	font-size: 24px;
}

.hd-hero h2 {
	margin: 0 0 8px;
	color: #fff7eb;
	font-size: 22px;
	line-height: 1.2;
}

.hd-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: #ead8c3;
	font-size: 12px;
}

.hd-hero__meta span {
	width: 1px;
	height: 14px;
	background: rgba(212,175,55,.55);
}

.hd-hero__rank {
	color: #f0d080;
	font-weight: 800;
	white-space: nowrap;
}

.hd-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin: 18px 0 0 94px;
}

.hd-hero__stats div {
	display: grid;
	grid-template-columns: 18px auto;
	grid-template-rows: auto auto;
	column-gap: 8px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: none;
	min-width: 104px;
}

.hd-hero__stats i {
	grid-row: 1 / 3;
	align-self: center;
	color: #d4af37;
	font-size: 13px;
}

.hd-hero__stats small,
.hd-hero__stats strong {
	display: block;
}

.hd-hero__stats small {
	margin-bottom: 2px;
	color: #d4af37;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.hd-hero__stats strong {
	color: #fff7eb;
	font-size: 12px;
	line-height: 1.25;
}

.hd-hero__kit {
	position: relative;
	justify-self: center;
	align-self: end;
	width: 122px;
	height: 118px;
	margin-bottom: -16px;
	background: linear-gradient(145deg, #b31324 0%, #7d1119 55%, #3b0606 100%);
	border: 1px solid rgba(255,255,255,.32);
	border-radius: 18px 18px 8px 8px;
	box-shadow: 0 0 18px rgba(180, 20, 22, .3);
	clip-path: polygon(20% 0, 38% 0, 45% 12%, 55% 12%, 62% 0, 80% 0, 100% 24%, 84% 42%, 84% 100%, 16% 100%, 16% 42%, 0 24%);
}

.hd-hero__kit-img {
	justify-self: center;
	align-self: end;
	max-width: 150px;
	max-height: 126px;
	width: auto;
	height: auto;
	object-fit: contain;
	margin-bottom: -16px;
	filter: drop-shadow(0 0 16px rgba(0,0,0,.48));
}

.hd-hero__kit:before {
	content: "";
	position: absolute;
	inset: 12px 38px auto;
	height: 22px;
	border: 2px solid rgba(255,255,255,.34);
	border-top: 0;
	border-radius: 0 0 18px 18px;
}

.hd-hero__kit:after {
	content: "CFM";
	position: absolute;
	left: 0;
	right: 0;
	top: 47px;
	text-align: center;
	color: rgba(255,255,255,.78);
	font-weight: 800;
	font-size: 24px;
	letter-spacing: .04em;
}

.hd-card__foot {
	padding: 8px 12px 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	text-align: center;
	margin-top: auto;
}

.hd-card__foot .btn,
.hd-card__foot a.btn,
.hd-btn-gold {
	display: inline-block;
	padding: 7px 34px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	background: transparent !important;
	color: #f0d080 !important;
	border: 1px solid rgba(212, 175, 55, 0.72) !important;
	border-radius: 5px;
	text-shadow: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	text-decoration: none;
}

.hd-card__foot .btn:hover,
.hd-card__foot a.btn:hover,
.hd-btn-gold:hover {
	background: rgba(212, 175, 55, 0.12) !important;
	color: #fff2be !important;
	text-decoration: none;
}

/* Oberer Bereich: Live + Heute */
.hd-top-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 14px;
}

.hd-top-row__live {
	flex: 1 1 58%;
	min-width: 280px;
	order: 1;
}

.hd-top-row__today {
	flex: 1 1 34%;
	min-width: 240px;
	order: 2;
}

/* Live-Spiele — Liste (wie Heutige Spiele) */
#hdLiveMatches .hd-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 218px;
	max-height: 238px;
	overflow-y: auto;
}

#hdLiveMatches .hd-card__tools--inline {
	flex-wrap: nowrap;
	justify-content: flex-end;
}

#hdLiveMatches .hd-card__tools--inline .hd-select {
	width: auto;
	min-width: 110px;
	max-width: 46%;
	flex: 1 1 0;
}

.hd-live-row__score {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	flex: 0 0 52px;
	text-align: center;
}

.hd-live-row__minute {
	font-size: 10px;
	font-weight: 800;
	color: #7cff9a;
	letter-spacing: 0.04em;
	line-height: 1.1;
}

.hd-live-row__score a {
	font-size: 13px;
	font-weight: 800;
	color: #ffdfaa;
	text-decoration: none;
	line-height: 1.2;
}

.hd-live-row__score a:hover {
	color: #fff8f0;
	text-decoration: underline;
}

/* Heutige Spiele — Liste */
#hdTodayMatches .hd-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 218px;
}

.hd-today-list {
	width: 100%;
	max-height: 218px;
	overflow-y: auto;
}

.hd-today-list::-webkit-scrollbar {
	width: 5px;
}

.hd-today-list::-webkit-scrollbar-thumb {
	background: rgba(212, 175, 55, 0.4);
	border-radius: 3px;
}

.hd-today-section + .hd-today-section {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.hd-today-section__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 4px 6px;
	margin-bottom: 2px;
}

.hd-today-section__logo {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	object-fit: contain;
}

.hd-today-section__title {
	font-size: 12px;
	line-height: 1.3;
	font-weight: 700;
	color: #ffdfaa;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.hd-today-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 6px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hd-today-section .hd-today-row:last-child {
	border-bottom: none;
}

.hd-today-row__team img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8));
}

.hd-today-row__time {
	flex: 0 0 42px;
	text-align: center;
	font-weight: 800;
	font-size: 12px;
	color: #ffdfaa;
}

.hd-today-row__time a {
	color: inherit;
	text-decoration: none;
}

.hd-today-row__teams {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 1 1 auto;
	width: 100%;
}

/* Livespiele: kleines Wettbewerbslogo links in der Zeile */
.hd-live-row--filter .hd-today-row__comp {
	width: 22px;
	flex-shrink: 0;
}

.hd-live-row--filter .hd-today-row__comp img {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.hd-live-row--filter {
	justify-content: center;
}

.hd-live-row--filter .hd-today-row__teams {
	flex: 0 0 auto;
	width: auto;
	margin-left: 0;
}

#hdLiveMatches .hd-empty {
	text-align: center;
}

/* Mittlerer Bereich: Shoutbox + Social */
.hd-mid-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 14px;
	align-items: stretch;
}

.hd-mid-row__shout,
.hd-mid-row__social {
	flex: 1 1 calc(50% - 8px);
	min-width: 280px;
	display: flex;
	flex-direction: column;
}

.hd-mid-row__shout .hd-card,
.hd-mid-row__social .hd-card {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	margin-bottom: 0;
}

.hd-mid-row__shout .hd-card__body,
.hd-mid-row__social .hd-card__body {
	flex: 1 1 auto;
	min-height: 320px;
	max-height: 320px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.hd-main-grid__item--chat .hd-card {
	display: flex;
	flex-direction: column;
}

.hd-main-grid__item--chat .hd-card__body--shout {
	flex: 1 1 auto;
	min-height: 278px;
	max-height: 278px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 8px 10px 10px;
}

.hd-mid-row__shout .hd-card__body--shout {
	padding: 8px 10px 10px;
}

.hd-mid-row__shout .hd-card__body--shout > .ajaxLoadedBlock,
.hd-main-grid__item--chat .hd-card__body--shout > .ajaxLoadedBlock {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.hd-mid-panel-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	min-height: 0;
}

.hd-mid-panel-scroll::-webkit-scrollbar {
	width: 5px;
}

.hd-mid-panel-scroll::-webkit-scrollbar-thumb {
	background: rgba(212, 175, 55, 0.4);
	border-radius: 3px;
}

/* Shoutbox overrides inside dashboard */
.hd-mid-row__shout .home-shoutbox-inline,
.hd-main-grid__item--chat .home-shoutbox-inline {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	height: auto;
	flex: 1 1 auto;
	min-height: 0;
}

.hd-mid-row__shout .home-shoutbox-list,
.hd-main-grid__item--chat .home-shoutbox-list {
	max-height: none;
	flex: 1 1 auto;
	min-height: 132px;
}

.hd-mid-row__shout .home-shoutbox-scroll-area,
.hd-main-grid__item--chat .home-shoutbox-scroll-area {
	flex: 1 1 auto;
	min-height: 0;
}

.hd-mid-row__shout .home-shoutbox-footer,
.hd-main-grid__item--chat .home-shoutbox-footer {
	flex-shrink: 0;
}

.hd-mid-row__shout .home-shoutbox-form,
.hd-main-grid__item--chat .home-shoutbox-form {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	gap: 8px;
}

.hd-mid-row__shout .home-shoutbox-form input[type=text],
.hd-main-grid__item--chat .home-shoutbox-form input[type=text] {
	min-width: 0;
	flex: 1 1 auto;
	box-sizing: border-box;
	height: 34px;
	margin: 0;
}

.hd-main-grid__item--chat .home-shoutbox-form .btn,
.hd-main-grid__item--chat .home-shoutbox-form button {
	flex: 0 0 auto;
	height: 34px;
	margin: 0;
	white-space: nowrap;
}

.hd-mid-row__shout .home-shoutbox-item,
.hd-main-grid__item--chat .home-shoutbox-item {
	font-size: 12px;
	margin-bottom: 8px;
}

.hd-mid-row__shout .home-shoutbox-online-bar,
.hd-main-grid__item--chat .home-shoutbox-online-bar {
	margin-bottom: 8px;
}

/* Social feed home */
.hd-sf-item {
	padding: 12px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hd-sf-item:last-child {
	border-bottom: none;
}

.hd-sf-hd {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.hd-sf-ava img,
.hd-sf-ava span {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.hd-sf-ava span {
	display: block;
	line-height: 40px;
	text-align: center;
	background: #7a0f0f;
	color: #ffdfaa;
	font-weight: 700;
	font-size: 11px;
}

.hd-sf-meta {
	font-size: 12px;
	color: #ead8c3;
}

.hd-sf-club {
	font-weight: 700;
	color: #ffdfaa;
}

.hd-sf-handle {
	color: #c9b49f;
}

.hd-sf-time {
	font-size: 11px;
	color: #c9b49f;
}

.hd-sf-text {
	margin: 8px 0 0 50px;
	font-size: 13px;
	line-height: 1.45;
	color: #f2dfcc;
	white-space: pre-wrap;
	word-break: break-word;
}

.hd-sf-press-link {
	margin: 6px 0 0 50px;
	font-size: 12px;
	line-height: 1.35;
}

.hd-sf-press-link a {
	color: #ffdfaa;
	font-weight: 600;
	text-decoration: underline;
}

.hd-sf-press-link a:hover {
	color: #fff3d4;
}

.hd-sf-foot {
	margin: 8px 0 0 50px;
	font-size: 12px;
	color: #c9b49f;
	display: flex;
	gap: 12px;
	align-items: center;
}

.hd-news-list {
	max-height: 206px;
	overflow-y: auto;
}

.hd-club-news-card .hd-news-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
	max-height: 260px;
}

.hd-news-list::-webkit-scrollbar {
	width: 5px;
}

.hd-news-list::-webkit-scrollbar-thumb {
	background: rgba(212, 175, 55, 0.4);
	border-radius: 3px;
}

.hd-news-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 8px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hd-news-item:last-child {
	border-bottom: none;
}

.hd-news-item__logo img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 4px;
}

.hd-news-item__logo span {
	display: block;
	width: 36px;
	height: 36px;
	line-height: 36px;
	text-align: center;
	border-radius: 4px;
	background: #7a0f0f;
	color: #ffdfaa;
	font-weight: 700;
	font-size: 10px;
}

.hd-news-item__text {
	flex: 1 1 auto;
	min-width: 0;
}

.hd-news-item__meta {
	font-size: 11px;
	color: #c9b49f;
	margin-bottom: 3px;
}

.hd-news-item__title a {
	color: #f2dfcc;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
}

.hd-news-item__title a:hover {
	color: #ffdfaa;
	text-decoration: none;
}

/* Admin Neuigkeiten */
.hd-admin-item {
	padding: 8px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hd-admin-item:last-child {
	border-bottom: none;
}

.hd-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-right: 6px;
	vertical-align: middle;
}

.hd-badge--important {
	background: #b71c1c;
	color: #fff;
}

.hd-badge--update {
	background: #2e7d32;
	color: #fff;
}

.hd-badge--info {
	background: #1565c0;
	color: #fff;
}

.hd-empty {
	padding: 16px 8px;
	text-align: center;
	color: #c9b49f;
	font-style: italic;
	font-size: 12px;
}

@media (max-width: 979px) {
	.hd-dashboard {
		padding: 14px 12px 22px;
	}

	.hd-dashboard-grid {
		grid-template-columns: 1fr;
	}

	.hd-main-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.hd-hero {
		grid-template-columns: 1fr;
		padding: 16px 14px;
	}

	.hd-hero__stats {
		margin: 16px 0 0;
		gap: 12px;
	}

	.hd-club-news-card .hd-news-list {
		grid-template-columns: 1fr;
	}

	.hd-hero__kit,
	.hd-hero__kit-img {
		display: none;
	}

	.hd-top-row__live,
	.hd-top-row__today,
	.hd-mid-row__shout,
	.hd-mid-row__social,
	.hd-news-row > .hd-card {
		flex: 1 1 100%;
		min-width: 0;
	}

	.hd-mid-row__shout .hd-card__body,
	.hd-mid-row__social .hd-card__body {
		min-height: 260px;
		max-height: 360px;
	}

	#hdLiveMatches .hd-card__body,
	#hdTodayMatches .hd-card__body,
	.hd-main-grid__item--chat .hd-card__body--shout {
		min-height: 260px;
		max-height: 360px;
	}

	.hd-right {
		gap: 12px;
	}

	body > .container > hr,
	body > .container > footer {
		margin-left: 14px;
		margin-right: 14px;
	}
}

@media (min-width: 980px) and (max-width: 1320px) {
	.hd-dashboard-grid {
		grid-template-columns: minmax(0, 1fr) 330px;
		gap: 18px;
	}

	.hd-dashboard {
		padding-left: 22px;
		padding-right: 22px;
	}

	.hd-main-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.hd-main-grid__item--chat {
		grid-column: 1 / -1;
	}
}
