/* ==========================================================================
   PCTL Kopfbanner - Ersatz fuer die fertigen Header-Grafiken.

   Alles Geschriebene ist echter Text, der Hintergrund entsteht aus CSS.
   Optional laesst sich ueber .pctl-banner__photo ein Foto unterlegen, das
   dann keinerlei Schrift mehr enthalten muss.

   Saisonvarianten: Klasse am Wrapper ergaenzen, z. B.
   .pctl-banner--halloween, --winter, --silvester.

   Alle Regeln haengen bewusst unter .pctl-banner, damit nichts in das
   uebrige Seitenlayout ausstrahlt.
   ========================================================================== */

/* ==========================================================================
   Oswald, selbst gehostet (SIL Open Font License 1.1, Lizenztext liegt unter
   templates/fonts/Oswald-OFL.txt).

   Variable Schrift: eine Datei je Zeichensatz deckt alle Schnitte von 200 bis
   700 ab. Bewusst kein Google-CDN, damit beim Seitenaufruf keine Nutzerdaten
   an Dritte gehen. "latin" traegt die deutschen Umlaute, "latin-ext" die
   osteuropaeischen Zeichen in Vereins- und Spielernamen.
   ========================================================================== */

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url("/templates/fonts/oswald-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url("/templates/fonts/oswald-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.pctl-banner {
	--b-deep: #05090f;
	--b-mid: #0a1628;
	--b-glow: #2f7fe0;
	--b-bright: #4da3ff;
	--b-soft: #8fc2ff;
	--b-text: #e8f0fb;
	--b-muted: #9db4cf;
	--b-height: 132px;
	--b-font-display: "Oswald", "Arial Narrow", "Liberation Sans Narrow", Impact, Arial, sans-serif;

	position: relative;
	overflow: hidden;
	background: var(--b-deep);
	border-bottom: 1px solid rgba(93, 160, 233, 0.3);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.pctl-banner * {
	box-sizing: border-box;
}

.pctl-banner__link {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	height: var(--b-height);
	padding: 0 18px;
	text-decoration: none;
}

.pctl-banner__link:hover {
	text-decoration: none;
}

/* --- Hintergrund --------------------------------------------------------- */

.pctl-banner__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	background:
		radial-gradient(70% 180% at 50% 0%, rgba(47, 127, 224, 0.4) 0%, rgba(10, 22, 40, 0) 70%),
		linear-gradient(180deg, var(--b-mid) 0%, #071021 55%, var(--b-deep) 100%);
}

/* Optionales Hintergrundfoto (ohne Schrift), per Inline-Style gesetzt */
.pctl-banner__photo {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-position: center center;
	background-size: cover;
}

/* Flutlicht */
.pctl-banner__beam {
	position: absolute;
	top: -120%;
	width: 26%;
	height: 260%;
	background: linear-gradient(180deg, rgba(141, 194, 255, 0.28) 0%, rgba(141, 194, 255, 0) 70%);
	filter: blur(22px);
}

.pctl-banner__beam--left {
	left: 6%;
	transform: rotate(14deg);
}

.pctl-banner__beam--right {
	right: 6%;
	transform: rotate(-14deg);
}

/* Zuschauerraenge */
.pctl-banner__stands {
	position: absolute;
	inset: 0 0 45% 0;
	opacity: 0.2;
	background-image: radial-gradient(circle at 1px 1px, rgba(150, 200, 255, 0.5) 1px, transparent 0);
	background-size: 6px 6px;
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 70%, rgba(0, 0, 0, 0) 100%);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 70%, rgba(0, 0, 0, 0) 100%);
}

/* Spielfeld in Perspektive */
.pctl-banner__pitch {
	position: absolute;
	left: -20%;
	right: -20%;
	bottom: -30px;
	height: 90px;
	transform: perspective(260px) rotateX(62deg);
	transform-origin: bottom center;
	background-image:
		repeating-linear-gradient(90deg, rgba(140, 195, 255, 0.3) 0 2px, transparent 2px 90px),
		repeating-linear-gradient(0deg, rgba(140, 195, 255, 0.18) 0 2px, transparent 2px 60px);
	-webkit-mask-image: radial-gradient(60% 90% at 50% 90%, #000 0%, rgba(0, 0, 0, 0) 100%);
	mask-image: radial-gradient(60% 90% at 50% 90%, #000 0%, rgba(0, 0, 0, 0) 100%);
}

/* Deko der Saisonvarianten: zwei Gruppen links und rechts, die Mitte bleibt
   frei fuer den Schriftzug. */
.pctl-banner__deco {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: none;
	color: var(--b-soft);
	opacity: 0.26;
}

.pctl-banner__deco span {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 26px;
	font-size: 30px;
}

.pctl-banner__deco span:first-child {
	left: 2.5%;
}

.pctl-banner__deco span:last-child {
	right: 2.5%;
}

.pctl-banner__deco i:nth-child(2) {
	font-size: 19px;
	transform: translateY(-18px);
}

.pctl-banner__deco i:nth-child(3) {
	font-size: 24px;
	transform: translateY(14px);
}

/* --- Inhalt -------------------------------------------------------------- */

.pctl-banner__logo {
	position: relative;
	z-index: 2;
	height: calc(var(--b-height) - 26px);
	width: auto;
	filter: drop-shadow(0 6px 16px rgba(47, 127, 224, 0.5));
}

.pctl-banner__platform {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--b-font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--b-muted);
	white-space: nowrap;
}

.pctl-banner__platform i {
	font-size: 19px;
	color: var(--b-text);
}

.pctl-banner__center {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.pctl-banner__season {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 3px 13px;
	font-family: var(--b-font-display);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--b-deep);
	background: var(--b-bright);
	border-radius: 999px;
}

.pctl-banner__title {
	font-family: var(--b-font-display);
	font-weight: 700;
	font-size: clamp(24px, 4.6vw, 52px);
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #ffffff;
	transform: skewX(-8deg);
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 24px rgba(77, 163, 255, 0.35);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
	.pctl-banner__title {
		background: linear-gradient(180deg, #ffffff 0%, #e4efff 36%, var(--b-soft) 54%, #ffffff 100%);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		text-shadow: none;
		filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(77, 163, 255, 0.3));
	}
}

.pctl-banner__comps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 12px;
	margin: 0;
	padding: 5px 16px;
	list-style: none;
	font-family: var(--b-font-display);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #cfe0f5;
	background: linear-gradient(180deg, rgba(16, 32, 58, 0.9), rgba(7, 16, 33, 0.9));
	border: 1px solid rgba(93, 160, 233, 0.3);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pctl-banner__comps li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.pctl-banner__comps i {
	font-size: 10px;
	color: var(--b-bright);
}

/* Platzhalter rechts (EA-FC-Wappen kann hier als Bild rein) */
.pctl-banner__crest {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	flex: 0 0 62px;
	font-family: var(--b-font-display);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: 0.06em;
	color: var(--b-text);
	background: radial-gradient(circle at 50% 30%, rgba(47, 127, 224, 0.35), rgba(5, 9, 15, 0.6));
	border: 2px solid rgba(143, 194, 255, 0.55);
	border-radius: 50%;
	box-shadow: 0 0 18px rgba(47, 127, 224, 0.35);
}

/* Variante mit echtem Wappen statt gezeichnetem Platzhalter */
.pctl-banner__crest--img {
	width: auto;
	height: 58px;
	flex: 0 0 auto;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	filter: drop-shadow(0 0 12px rgba(47, 127, 224, 0.45));
}

.pctl-banner__crest small {
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--b-muted);
}

/* --- Saisonvarianten ----------------------------------------------------- */

.pctl-banner--halloween {
	--b-mid: #1b0d22;
	--b-deep: #0a0510;
	--b-glow: #e2681a;
	--b-bright: #ff8b2a;
	--b-soft: #ffc07a;
	--b-muted: #c9a98f;
}

.pctl-banner--halloween .pctl-banner__bg {
	background:
		radial-gradient(70% 180% at 50% 0%, rgba(226, 104, 26, 0.38) 0%, rgba(27, 13, 34, 0) 70%),
		linear-gradient(180deg, #24112c 0%, #14091c 55%, #0a0510 100%);
}

.pctl-banner--halloween .pctl-banner__deco,
.pctl-banner--ostern .pctl-banner__deco,
.pctl-banner--weihnachten .pctl-banner__deco,
.pctl-banner--winter .pctl-banner__deco,
.pctl-banner--silvester .pctl-banner__deco {
	display: block;
}

.pctl-banner--ostern {
	--b-mid: #10261f;
	--b-glow: #3fb37a;
	--b-bright: #63d99b;
	--b-soft: #ffe89a;
	--b-muted: #a9c9b6;
}

.pctl-banner--ostern .pctl-banner__bg {
	background:
		radial-gradient(45% 170% at 30% 0%, rgba(99, 217, 155, 0.3) 0%, rgba(16, 38, 31, 0) 65%),
		radial-gradient(45% 170% at 70% 0%, rgba(255, 213, 102, 0.26) 0%, rgba(16, 38, 31, 0) 65%),
		linear-gradient(180deg, #14302a 0%, #0a1c1b 55%, #05090f 100%);
}

.pctl-banner--ostern .pctl-banner__season {
	color: #06251a;
	background: linear-gradient(180deg, #7ce6ad, #3fb37a);
}

.pctl-banner--weihnachten {
	--b-mid: #10202f;
	--b-glow: #c8102e;
	--b-bright: #ff4d5e;
	--b-soft: #ffd98a;
	--b-muted: #cdb79a;
}

.pctl-banner--weihnachten .pctl-banner__bg {
	background:
		radial-gradient(45% 170% at 28% 0%, rgba(200, 16, 46, 0.32) 0%, rgba(16, 32, 47, 0) 65%),
		radial-gradient(45% 170% at 72% 0%, rgba(32, 140, 74, 0.28) 0%, rgba(16, 32, 47, 0) 65%),
		linear-gradient(180deg, #13293c 0%, #091725 55%, #05090f 100%);
}

.pctl-banner--weihnachten .pctl-banner__season {
	color: #ffffff;
	background: linear-gradient(180deg, #e01f36, #a10f22);
	box-shadow: 0 0 16px rgba(224, 31, 54, 0.45);
}

.pctl-banner--winter {
	--b-mid: #0c2033;
	--b-glow: #63b8ff;
	--b-bright: #9fd8ff;
	--b-soft: #d7efff;
	--b-muted: #a9c8dd;
}

.pctl-banner--winter .pctl-banner__bg {
	background:
		radial-gradient(70% 180% at 50% 0%, rgba(120, 200, 255, 0.35) 0%, rgba(12, 32, 51, 0) 70%),
		linear-gradient(180deg, #123048 0%, #0a1c2d 55%, #05090f 100%);
}

.pctl-banner--silvester {
	--b-glow: #e8c15a;
	--b-bright: #ffd97a;
	--b-soft: #ffeab4;
	--b-muted: #d5bd8c;
}

.pctl-banner--silvester .pctl-banner__bg {
	background:
		radial-gradient(60% 170% at 30% 0%, rgba(232, 193, 90, 0.3) 0%, rgba(10, 22, 40, 0) 65%),
		radial-gradient(60% 170% at 70% 0%, rgba(47, 127, 224, 0.32) 0%, rgba(10, 22, 40, 0) 65%),
		linear-gradient(180deg, #0f1c31 0%, #071021 55%, #05090f 100%);
}

/* --- Variante mit Hintergrundfoto --------------------------------------- */

/* Das Banner verhaelt sich dann wie das fruehere <img width="100%">: die Hoehe
   folgt dem Seitenverhaeltnis des Fotos. */
.pctl-banner--foto .pctl-banner__link {
	height: auto;
	min-height: 96px;
	aspect-ratio: var(--b-ratio, 1206 / 180);
}

/* Das Foto liefert die Stimmung, die gezeichneten Ebenen treten zurueck */
.pctl-banner--foto .pctl-banner__stands,
.pctl-banner--foto .pctl-banner__pitch {
	display: none;
}

.pctl-banner--foto .pctl-banner__beam {
	opacity: 0.25;
}

/* Ohne Logo und Wappen ist Platz fuer einen groesseren Schriftzug */
.pctl-banner--bare .pctl-banner__title {
	font-size: clamp(26px, 5.4vw, 62px);
}

.pctl-banner--bare .pctl-banner__comps {
	font-size: 12.5px;
	padding: 6px 18px;
}

/* Wenn Logo, Plattformen und Wappen schon im Foto stecken, bleibt nur der Text */
.pctl-banner--bare .pctl-banner__logo,
.pctl-banner--bare .pctl-banner__platform,
.pctl-banner--bare .pctl-banner__crest,
.pctl-banner--bare .pctl-banner__deco {
	display: none;
}

/* --- Mobil --------------------------------------------------------------- */

@media (max-width: 900px) {
	.pctl-banner {
		--b-height: 108px;
	}

	.pctl-banner__link {
		gap: 12px;
	}

	.pctl-banner__platform,
	.pctl-banner__crest {
		display: none;
	}
}

@media (max-width: 560px) {
	.pctl-banner {
		--b-height: auto;
	}

	.pctl-banner--foto .pctl-banner__link {
		aspect-ratio: auto;
	}

	/* Vom breiten Foto waere auf dem Handy nur der abgedunkelte Mittelteil zu
	   sehen. Dort uebernimmt stattdessen der CSS-Hintergrund des Themas, und
	   Logo und Deko kommen wieder aus dem HTML. */
	.pctl-banner--foto .pctl-banner__photo {
		display: none;
	}

	.pctl-banner--bare .pctl-banner__logo,
	.pctl-banner--bare .pctl-banner__deco {
		display: block;
	}

	.pctl-banner--foto .pctl-banner__stands,
	.pctl-banner--foto .pctl-banner__pitch {
		display: block;
	}

	.pctl-banner--foto .pctl-banner__beam {
		opacity: 1;
	}

	.pctl-banner__link {
		flex-direction: column;
		gap: 6px;
		padding: 10px 10px 12px;
	}

	.pctl-banner__logo {
		height: 46px;
	}

	.pctl-banner__title,
	.pctl-banner--bare .pctl-banner__title {
		font-size: 26px;
	}

	.pctl-banner__season {
		padding: 2px 10px;
		font-size: 10px;
	}

	.pctl-banner__comps,
	.pctl-banner--bare .pctl-banner__comps {
		gap: 2px 9px;
		padding: 5px 12px;
		font-size: 10px;
		border-radius: 12px;
	}

	.pctl-banner__pitch {
		display: none;
	}
}
