/* SGCW Supercup Archiv – nur auf hinterlegten Supercup-Seiten geladen. */
body.sgcw-supercup-page {
	--sgcw-ink: #17251d;
	--sgcw-muted: #66736b;
	--sgcw-green: #117a2f;
	--sgcw-green-dark: #0f6d2a;
	--sgcw-green-soft: #edf5f0;
	--sgcw-gold: #d7ad55;
	--sgcw-gold-soft: #fbf4e5;
	--sgcw-line: #dde6e0;
	--sgcw-surface: #ffffff;
}

body.sgcw-supercup-page .entry-title,
body.sgcw-supercup-page .wp-block-post-title {
	width: min(900px, calc(100vw - 32px));
	margin-right: auto;
	margin-left: auto;
	color: var(--sgcw-ink);
	font-size: clamp(2rem, 4.2vw, 3.5rem);
	font-weight: 780;
	letter-spacing: -0.055em;
	line-height: 1;
}

body.sgcw-supercup-page .entry-content,
body.sgcw-supercup-page .wp-block-post-content {
	overflow: visible;
}

.sgcw-supercup,
.sgcw-supercup * {
	box-sizing: border-box;
}

.sgcw-supercup {
	position: relative;
	left: 50%;
	width: min(900px, calc(100vw - 32px));
	margin: 26px 0 68px;
	transform: translateX(-50%);
	color: var(--sgcw-ink);
	font-family: inherit;
}

.sgcw-supercup h2,
.sgcw-supercup h3,
.sgcw-supercup p {
	margin-top: 0;
}

.sgcw-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 165px;
	gap: clamp(22px, 4vw, 40px);
	align-items: center;
	min-height: 220px;
	padding: clamp(24px, 3.5vw, 34px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	background: #117a2f;
	box-shadow: 0 16px 40px rgba(17, 122, 47, 0.16);
	color: #fff;
}

.sgcw-hero::before,
.sgcw-hero::after {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 50%;
	content: "";
}

.sgcw-hero::before {
	right: -165px;
	bottom: -250px;
	width: 500px;
	height: 500px;
}

.sgcw-hero::after {
	right: -45px;
	bottom: -145px;
	width: 310px;
	height: 310px;
}

.sgcw-hero-copy,
.sgcw-hero-mark {
	position: relative;
	z-index: 1;
}

.sgcw-eyebrow,
.sgcw-kicker {
	margin-bottom: 12px;
	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sgcw-eyebrow {
	display: flex;
	gap: 9px;
	align-items: center;
	color: #dcebe2;
}

.sgcw-eyebrow-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sgcw-gold);
	box-shadow: 0 0 0 5px rgba(215, 173, 85, 0.13);
}

.sgcw-hero h2 {
	max-width: 570px;
	margin-bottom: 15px;
	color: #fff;
	font-size: clamp(1.75rem, 3.7vw, 2.8rem);
	font-weight: 780;
	letter-spacing: -0.05em;
	line-height: 1;
}

.sgcw-lead {
	max-width: 570px;
	margin-bottom: 18px;
	color: rgba(255, 255, 255, 0.79);
	font-size: clamp(0.94rem, 1.5vw, 1.04rem);
	line-height: 1.6;
}

.sgcw-archive-link {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	padding: 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff !important;
	font-size: 0.85rem;
	font-weight: 750;
	text-decoration: none !important;
	transition: background 180ms ease, transform 180ms ease;
}

.sgcw-archive-link:hover,
.sgcw-archive-link:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-2px);
}

.sgcw-hero-mark {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 142px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
}

.sgcw-hero-mark strong {
	margin-top: 10px;
	font-size: clamp(1.8rem, 3.5vw, 2.7rem);
	letter-spacing: -0.05em;
	line-height: 1;
}

.sgcw-hero-mark > span:last-child {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.69rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.sgcw-trophy {
	position: relative;
	width: 60px;
	height: 62px;
}

.sgcw-trophy-cup {
	position: absolute;
	top: 0;
	left: 12px;
	width: 36px;
	height: 34px;
	border-radius: 5px 5px 17px 17px;
	background: linear-gradient(135deg, #f4d996, var(--sgcw-gold));
}

.sgcw-trophy-cup::before,
.sgcw-trophy-cup::after {
	position: absolute;
	top: 5px;
	width: 15px;
	height: 20px;
	border: 4px solid var(--sgcw-gold);
	content: "";
}

.sgcw-trophy-cup::before {
	left: -12px;
	border-right: 0;
	border-radius: 12px 0 0 12px;
}

.sgcw-trophy-cup::after {
	right: -12px;
	border-left: 0;
	border-radius: 0 12px 12px 0;
}

.sgcw-trophy-stem {
	position: absolute;
	top: 33px;
	left: 27px;
	width: 6px;
	height: 17px;
	background: var(--sgcw-gold);
}

.sgcw-trophy-base {
	position: absolute;
	bottom: 6px;
	left: 16px;
	width: 28px;
	height: 6px;
	border-radius: 999px;
	background: var(--sgcw-gold);
	box-shadow: 0 6px 0 #b98d36;
}

.sgcw-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.sgcw-stat {
	display: flex;
	flex-direction: column;
	min-height: 112px;
	padding: 21px;
	border: 1px solid var(--sgcw-line);
	border-radius: 17px;
	background: var(--sgcw-surface);
	box-shadow: 0 10px 30px rgba(23, 37, 29, 0.05);
}

.sgcw-stat strong {
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	font-weight: 780;
	letter-spacing: -0.05em;
	line-height: 1;
}

.sgcw-stat span {
	margin-top: auto;
	padding-top: 12px;
	color: var(--sgcw-muted);
	font-size: 0.78rem;
	font-weight: 720;
}

.sgcw-winners {
	margin-top: clamp(48px, 7vw, 72px);
	padding: clamp(25px, 4vw, 40px);
	border-radius: 22px;
	background: var(--sgcw-green-soft);
}

.sgcw-section-heading {
	display: flex;
	gap: 18px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 20px;
}

.sgcw-section-heading h2 {
	margin-bottom: 0;
	color: var(--sgcw-ink);
	font-size: clamp(1.5rem, 3.2vw, 2.25rem);
	font-weight: 780;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.sgcw-kicker {
	margin-bottom: 7px;
	color: var(--sgcw-green-dark);
}

.sgcw-count {
	flex: 0 0 auto;
	padding: 7px 11px;
	border: 1px solid var(--sgcw-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sgcw-muted);
	font-size: 0.7rem;
	font-weight: 760;
}

.sgcw-winner-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
	gap: 13px;
}

.sgcw-winner-card {
	position: relative;
	min-height: 190px;
	padding: 23px;
	overflow: hidden;
	border: 1px solid rgba(23, 76, 50, 0.10);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(23, 76, 50, 0.06);
}

.sgcw-winner-card::after {
	position: absolute;
	right: -35px;
	bottom: -60px;
	width: 145px;
	height: 145px;
	border-radius: 50%;
	background: var(--sgcw-gold-soft);
	content: "";
}

.sgcw-medal {
	position: relative;
	z-index: 1;
	display: inline-grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #f3dc9f, var(--sgcw-gold));
	color: #5c4215;
	font-size: 0.76rem;
	font-weight: 850;
	box-shadow: 0 6px 18px rgba(183, 137, 44, 0.20);
}

.sgcw-winner-card p {
	margin: 18px 0 5px;
	color: var(--sgcw-green-dark);
	font-size: 0.69rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.sgcw-winner-card h3 {
	position: relative;
	z-index: 1;
	margin-bottom: 18px;
	color: var(--sgcw-ink);
	font-size: clamp(1.1rem, 2.1vw, 1.45rem);
	font-weight: 780;
	letter-spacing: -0.03em;
	line-height: 1.16;
}

.sgcw-winner-card > strong {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 7px;
	align-items: baseline;
	font-size: 1.7rem;
	letter-spacing: -0.04em;
}

.sgcw-winner-card small {
	color: var(--sgcw-muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0;
}

.sgcw-rankings {
	display: grid;
	gap: clamp(40px, 6vw, 62px);
	margin-top: clamp(50px, 8vw, 78px);
}

.sgcw-ranking {
	min-width: 0;
}

.sgcw-table-shell {
	overflow: hidden;
	border: 1px solid var(--sgcw-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 38px rgba(23, 37, 29, 0.055);
}

.sgcw-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	font-size: 0.93rem;
}

.sgcw-table th,
.sgcw-table td {
	border: 0;
	border-bottom: 1px solid var(--sgcw-line);
	background: transparent;
	color: var(--sgcw-ink);
	text-align: left;
}

.sgcw-table thead th {
	padding: 14px 18px;
	background: #f6f8f7;
	color: var(--sgcw-muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.sgcw-table tbody th,
.sgcw-table tbody td {
	padding: 15px 18px;
}

.sgcw-table tbody tr:last-child th,
.sgcw-table tbody tr:last-child td {
	border-bottom: 0;
}

.sgcw-table tbody tr {
	transition: background 160ms ease;
}

.sgcw-table tbody tr:hover {
	background: #fafcfb;
}

.sgcw-table tbody tr.is-winner {
	background: linear-gradient(90deg, var(--sgcw-gold-soft), rgba(251, 244, 229, 0.32));
}

.sgcw-cell-rank {
	width: 76px;
}

.sgcw-rank-badge {
	display: inline-grid;
	min-width: 32px;
	height: 32px;
	padding: 0 7px;
	place-items: center;
	border-radius: 10px;
	background: var(--sgcw-green-soft);
	color: var(--sgcw-green);
	font-weight: 820;
}

.is-winner .sgcw-rank-badge {
	background: var(--sgcw-gold);
	color: #49330d;
}

.sgcw-cell-name {
	font-weight: 760;
}

.sgcw-cell-score {
	width: 112px;
	font-size: 1.04rem;
	font-weight: 820;
}

.sgcw-cell-note {
	color: var(--sgcw-muted) !important;
	font-size: 0.82rem;
}

.sgcw-year-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: clamp(48px, 7vw, 72px);
}

.sgcw-year-nav a {
	display: flex;
	gap: 13px;
	align-items: center;
	min-height: 70px;
	padding: 15px 18px;
	border: 1px solid var(--sgcw-line);
	border-radius: 16px;
	background: #fff;
	color: var(--sgcw-ink) !important;
	text-decoration: none !important;
	transition: border-color 180ms ease, transform 180ms ease;
}

.sgcw-year-nav a:hover,
.sgcw-year-nav a:focus-visible {
	border-color: rgba(17, 122, 47, 0.45);
	transform: translateY(-2px);
}

.sgcw-year-nav a.is-next {
	justify-content: flex-end;
	text-align: right;
}

.sgcw-year-nav span:not([aria-hidden="true"]) {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sgcw-year-nav small {
	color: var(--sgcw-muted);
	font-size: 0.7rem;
	font-weight: 700;
}

.sgcw-year-nav strong {
	font-size: 1.05rem;
}

.sgcw-footer-note {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	padding: 24px 26px;
	border: 1px solid var(--sgcw-line);
	border-radius: 17px;
	background: #fff;
}

.sgcw-footer-note div {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.sgcw-footer-note strong {
	font-size: 0.95rem;
}

.sgcw-footer-note span {
	color: var(--sgcw-muted);
	font-size: 0.8rem;
	line-height: 1.5;
}

.sgcw-footer-note > a {
	flex: 0 0 auto;
	color: var(--sgcw-green) !important;
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none !important;
}

.sgcw-footer-note > a:hover,
.sgcw-footer-note > a:focus-visible {
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.sgcw-supercup a:focus-visible {
	outline: 3px solid var(--sgcw-gold);
	outline-offset: 4px;
}

@media (max-width: 760px) {
	.sgcw-hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.sgcw-hero-mark {
		display: grid;
		grid-template-columns: auto auto;
		gap: 0 18px;
		justify-content: start;
		min-height: auto;
		text-align: left;
	}

	.sgcw-trophy {
		grid-row: 1 / span 2;
	}

	.sgcw-hero-mark strong {
		align-self: end;
		margin-top: 0;
	}

	.sgcw-hero-mark > span:last-child {
		align-self: start;
	}

	.sgcw-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.sgcw-supercup {
		width: min(100% - 22px, 900px);
		margin-top: 16px;
	}

	.sgcw-hero {
		gap: 22px;
		padding: 25px 21px;
		border-radius: 18px;
	}

	.sgcw-stat {
		min-height: 100px;
		padding: 18px;
	}

	.sgcw-winners {
		padding: 25px 17px;
		border-radius: 18px;
	}

	.sgcw-section-heading {
		align-items: flex-start;
	}

	.sgcw-count {
		display: none;
	}

	.sgcw-table-shell {
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.sgcw-table,
	.sgcw-table tbody {
		display: block;
	}

	.sgcw-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.sgcw-table tbody {
		display: grid;
		gap: 9px;
	}

	.sgcw-table tbody tr {
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr) auto;
		gap: 6px 10px;
		align-items: center;
		padding: 14px;
		border: 1px solid var(--sgcw-line);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 7px 22px rgba(23, 37, 29, 0.04);
	}

	.sgcw-table tbody tr.is-winner {
		background: linear-gradient(135deg, var(--sgcw-gold-soft), #fff);
	}

	.sgcw-table tbody th,
	.sgcw-table tbody td {
		width: auto;
		padding: 0;
		border: 0;
	}

	.sgcw-cell-rank {
		grid-row: 1 / span 2;
		grid-column: 1;
	}

	.sgcw-cell-name {
		grid-row: 1;
		grid-column: 2;
	}

	.sgcw-cell-score {
		grid-row: 1;
		grid-column: 3;
		text-align: right !important;
	}

	.sgcw-cell-note {
		grid-row: 2;
		grid-column: 2 / -1;
	}

	.sgcw-cell-note span[aria-hidden="true"] {
		display: none;
	}

	.sgcw-year-nav {
		grid-template-columns: 1fr;
	}

	.sgcw-year-nav-placeholder {
		display: none;
	}

	.sgcw-footer-note {
		align-items: flex-start;
		flex-direction: column;
		padding: 21px;
	}
}

@media (max-width: 420px) {
	.sgcw-stats {
		grid-template-columns: 1fr;
	}

	.sgcw-stat {
		min-height: 88px;
	}

	.sgcw-hero-mark {
		grid-template-columns: auto 1fr;
		padding: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgcw-supercup *,
	.sgcw-supercup *::before,
	.sgcw-supercup *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* Turnierbaum: Finale entfernen und Sieger mittig im Halbfinale platzieren. */
.sgcw-original-bracket-source[hidden],
.sgcw-bracket-host[hidden] {
	display: none !important;
}

.sgcw-bracket-area {
	margin-top: clamp(34px, 5vw, 52px);
}

.sgcw-bracket-host {
	min-width: 0;
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid var(--sgcw-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 38px rgba(23, 37, 29, 0.055);
}

.sgcw-bracket-final-removed {
	align-items: stretch;
}

.sgcw-bracket-semifinal-centered {
	min-width: 0;
}

.sgcw-bracket-winner-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: clamp(22px, 5vw, 54px) auto;
	text-align: center;
}

.sgcw-bracket-winner-slot > .sgcw-bracket-champion {
	width: min(100%, 360px);
	margin-right: auto !important;
	margin-left: auto !important;
}

.sgcw-bracket-winner-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 9px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--sgcw-gold-soft, #fbf4e5);
	color: #6a4b12;
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.11em;
	line-height: 1.2;
	text-transform: uppercase;
}

@media (max-width: 680px) {
	.sgcw-bracket-host {
		padding: 14px;
	}

	.sgcw-bracket-winner-slot {
		margin: 24px auto;
	}
}

/* Version 2.0.3: robuste Zentrierung nach dem Entfernen der Finale-Spalte. */
.sgcw-bracket-final-removed {
	justify-content: center !important;
}

.sgcw-bracket-final-removed > * {
	min-width: 0;
}

.sgcw-bracket-semifinal-centered {
	display: flex !important;
	flex-direction: column !important;
}

.sgcw-bracket-semifinal-centered .sgcw-bracket-winner-slot {
	order: 50;
	align-self: center;
}
