/*
 * BTG / IIMS – Das Spieltagsblatt
 * Visual refresh for Blade Child. Parent theme remains untouched.
 */

:root {
	--btg-paper: #f3eedf;
	--btg-paper-deep: #e7deca;
	--btg-ink: #17211f;
	--btg-green: #0e4b37;
	--btg-green-dark: #0a3428;
	--btg-red: #b72a22;
	--btg-line: rgba(45, 42, 34, .20);
	--btg-muted: #655f53;
	--btg-shadow: 0 14px 35px rgba(45, 36, 24, .09);
	--btg-head: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
	--btg-body: Arial, Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }
body.btg-spieltagsblatt {
	background: #e9e2d2 url("paper.svg") repeat;
	color: var(--btg-ink);
	font-family: var(--btg-body);
}

.btg-spieltagsblatt #grve-theme-wrapper {
	background: transparent;
}

/* Header --------------------------------------------------------------- */
.btg-spieltagsblatt #grve-header {
	border-bottom: 1px solid var(--btg-line);
	box-shadow: none;
	background: rgba(243, 238, 223, .98);
}

.btg-spieltagsblatt #grve-main-header,
.btg-spieltagsblatt #grve-responsive-header {
	background: transparent !important;
	box-shadow: none !important;
}

.btg-spieltagsblatt #grve-main-header .grve-container,
.btg-spieltagsblatt #grve-responsive-header .grve-container {
	max-width: 1180px;
}

.btg-spieltagsblatt #grve-main-header .grve-logo .grve-wrapper img,
.btg-spieltagsblatt #grve-responsive-header .grve-logo .grve-wrapper img {
	filter: saturate(.82) contrast(1.05);
}

.btg-spieltagsblatt #grve-main-menu .grve-wrapper > ul > li > a {
	font-family: var(--btg-body);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .01em;
	text-transform: none;
	color: var(--btg-ink) !important;
}

.btg-spieltagsblatt #grve-main-menu .grve-wrapper > ul > li > a .grve-item {
	position: relative;
}

.btg-spieltagsblatt #grve-main-menu .grve-wrapper > ul > li.current-menu-item > a .grve-item::after,
.btg-spieltagsblatt #grve-main-menu .grve-wrapper > ul > li.current_page_item > a .grve-item::after,
.btg-spieltagsblatt #grve-main-menu .grve-wrapper > ul > li > a:hover .grve-item::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -10px;
	height: 3px;
	background: var(--btg-green);
}


.btg-spieltagsblatt .grve-header-elements a,
.btg-spieltagsblatt .grve-header-element > a {
	color: var(--btg-ink) !important;
}

/* Existing pages ------------------------------------------------------- */
.btg-spieltagsblatt:not(.home) #grve-content,
.btg-spieltagsblatt:not(.home) .grve-page-title,
.btg-spieltagsblatt:not(.home) #grve-page-title {
	background: transparent;
}

.btg-spieltagsblatt:not(.home) #grve-content .grve-main-content-wrapper {
	max-width: 1180px;
	margin-inline: auto;
}

.btg-spieltagsblatt:not(.home) .grve-page-title .grve-title,
.btg-spieltagsblatt:not(.home) #grve-page-title h1,
.btg-spieltagsblatt:not(.home) .grve-main-content-wrapper h1,
.btg-spieltagsblatt:not(.home) .grve-main-content-wrapper h2,
.btg-spieltagsblatt:not(.home) .grve-main-content-wrapper h3 {
	font-family: var(--btg-head);
	letter-spacing: .015em;
	color: var(--btg-ink);
}

.btg-spieltagsblatt:not(.home) #grve-main-content {
	background: rgba(250, 247, 237, .75);
	border: 1px solid var(--btg-line);
	box-shadow: var(--btg-shadow);
	margin-block: 28px 48px;
}

.btg-spieltagsblatt:not(.home) #grve-main-content .grve-main-content-wrapper {
	padding: clamp(22px, 4vw, 48px);
}

.btg-spieltagsblatt:not(.home) iframe {
	max-width: 100%;
	background: #fff;
	border: 1px solid var(--btg-line) !important;
	box-shadow: 0 7px 22px rgba(45, 36, 24, .07);
}

.btg-spieltagsblatt a { color: var(--btg-green); }
.btg-spieltagsblatt a:hover { color: var(--btg-red); }

/* Homepage ------------------------------------------------------------- */
.home.btg-spieltagsblatt #grve-content,
.home.btg-spieltagsblatt #grve-page-title,
.home.btg-spieltagsblatt .grve-page-title,
.home.btg-spieltagsblatt #grve-feature-section {
	display: none !important;
}

.btg-home {
	padding: 24px 18px 56px;
}

.btg-sheet {
	width: min(1180px, 100%);
	margin: 0 auto;
}

.btg-hero {
	position: relative;
	min-height: 320px;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
	align-items: stretch;
	overflow: hidden;
	background: #f5efdf url("paper.svg") repeat;
	border: 1px solid rgba(64, 53, 35, .26);
	box-shadow: var(--btg-shadow);
}

.btg-hero::before,
.btg-hero::after {
	content: "";
	position: absolute;
	pointer-events: none;
}
.btg-hero::before {
	inset: 12px;
	border: 1px solid rgba(67, 55, 36, .13);
}
.btg-hero::after {
	left: 28px;
	right: 28px;
	bottom: 12px;
	height: 1px;
	background: rgba(50, 40, 28, .20);
	transform: rotate(-.2deg);
}

.btg-hero-copy {
	position: relative;
	z-index: 2;
	padding: clamp(34px, 5vw, 66px) clamp(28px, 5vw, 62px);
	align-self: center;
}

.btg-kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--btg-green);
}

.btg-hero h1 {
	margin: 0;
	font-family: var(--btg-head);
	font-size: clamp(72px, 9.2vw, 132px);
	line-height: .82;
	letter-spacing: -.025em;
	color: var(--btg-green-dark);
	text-transform: uppercase;
}
.btg-hero h1 span { color: var(--btg-ink); }

.btg-season {
	margin: 18px 0 0;
	font-family: var(--btg-head);
	font-size: clamp(30px, 4.2vw, 55px);
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--btg-red);
}

.btg-lead {
	max-width: 540px;
	margin: 14px 0 0;
	font-size: clamp(18px, 2.2vw, 27px);
	line-height: 1.16;
	font-weight: 700;
	color: #252b29;
}

.btg-hero-art {
	position: relative;
	min-height: 300px;
	align-self: stretch;
	color: #0d2e26;
}
.btg-hero-art::before {
	content: "";
	position: absolute;
	left: -20%;
	right: 0;
	bottom: 0;
	height: 62%;
	background: rgba(14, 75, 55, .08);
	clip-path: polygon(16% 80%, 30% 55%, 46% 64%, 58% 37%, 73% 50%, 100% 15%, 100% 100%, 0 100%);
}
.btg-hero-art svg {
	position: absolute;
	width: 108%;
	height: 108%;
	right: -7%;
	bottom: -11%;
	fill: none;
	stroke: currentColor;
	stroke-width: 5;
	stroke-linejoin: round;
	stroke-linecap: round;
	opacity: .97;
	transform: rotate(-4deg);
}
.btg-ball polygon { fill: currentColor; stroke-width: 3; }
.btg-ink-splash circle { fill: currentColor; stroke: none; }
.btg-ink-splash path { stroke-width: 3; opacity: .85; }

.btg-stamp {
	position: absolute;
	right: 28px;
	top: 26px;
	z-index: 3;
	padding: 7px 10px 6px;
	border: 2px solid var(--btg-red);
	font-family: var(--btg-head);
	font-size: 16px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--btg-red);
	transform: rotate(4deg);
	opacity: .72;
}

.btg-quicklinks {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 14px 0;
}

.btg-quick {
	min-height: 112px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 18px 18px;
	border: 1px solid rgba(25, 34, 31, .20);
	box-shadow: 0 5px 15px rgba(45, 36, 24, .07);
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease;
}
.btg-quick:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(45, 36, 24, .12); }
.btg-quick strong {
	display: block;
	font-family: var(--btg-head);
	font-size: clamp(20px, 2vw, 29px);
	line-height: .98;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.btg-quick small { display: block; margin-top: 7px; font-size: 13px; line-height: 1.2; opacity: .84; }
.btg-quick b { font-size: 24px; font-weight: 400; }
.btg-quick-icon {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 34px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .04em;
	line-height: 1;
	border: 2px solid currentColor;
	border-radius: 1px;
	font-family: var(--btg-body);
}
.btg-doc-icon { font-size: 9px; }
.btg-quick-green { background: var(--btg-green); color: #fff !important; }
.btg-quick-red { background: var(--btg-red); color: #fff !important; }
.btg-quick-dark { background: var(--btg-ink); color: #fff !important; }
.btg-quick-paper { background: #f7f1e2 url("paper.svg") repeat; color: var(--btg-ink) !important; }

.btg-score-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 28px;
}

.btg-panel {
	background: rgba(249, 245, 234, .94) url("paper.svg") repeat;
	border: 1px solid var(--btg-line);
	box-shadow: 0 5px 18px rgba(45, 36, 24, .06);
	padding: clamp(20px, 3vw, 30px);
}

.btg-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--btg-ink);
}
.btg-panel-eyebrow {
	margin: 0 0 3px;
	font-family: var(--btg-head);
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--btg-ink);
}
.btg-panel-head h2 {
	margin: 0;
	font-family: var(--btg-body);
	font-size: 13px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--btg-muted);
}
.btg-matchday-chip {
	flex: 0 0 auto;
	padding: 6px 8px;
	border: 1px solid var(--btg-red);
	font-size: 11px;
	font-weight: 800;
	color: var(--btg-red);
	text-transform: uppercase;
	letter-spacing: .05em;
}

.btg-table-wrap { overflow-x: auto; }
.btg-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: rgba(255, 255, 255, .24);
}
.btg-table th,
.btg-table td {
	padding: 10px 10px;
	border-bottom: 1px solid var(--btg-line);
	text-align: left;
	white-space: nowrap;
}
.btg-table th {
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--btg-muted);
}
.btg-table th:nth-child(1), .btg-table td:nth-child(1),
.btg-table th:nth-child(3), .btg-table td:nth-child(3),
.btg-table th:nth-child(4), .btg-table td:nth-child(4) { text-align: center; }
.btg-table tbody tr:first-child td { font-weight: 700; }
.btg-table tbody tr:first-child td:first-child { color: var(--btg-red); }

.btg-empty-state {
	min-height: 178px;
	display: grid;
	align-content: center;
	gap: 7px;
	padding: 20px;
	border: 1px dashed rgba(45, 42, 34, .28);
	text-align: center;
	color: var(--btg-muted);
}
.btg-empty-state strong { color: var(--btg-ink); }

.btg-current-list {
	border-top: 1px solid var(--btg-line);
}
.btg-current-list a {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: baseline;
	gap: 12px;
	padding: 12px 6px;
	border-bottom: 1px solid var(--btg-line);
	color: var(--btg-ink) !important;
	text-decoration: none !important;
}
.btg-current-list a:hover { background: rgba(14, 75, 55, .05); }
.btg-current-list span { font-weight: 800; }
.btg-current-list small { color: var(--btg-muted); }
.btg-current-list b { color: var(--btg-red); font-size: 18px; }

.btg-outline-button {
	display: table;
	margin: 20px auto 0;
	padding: 9px 16px;
	border: 1px solid var(--btg-red);
	font-weight: 800;
	font-size: 13px;
	color: var(--btg-red) !important;
	text-decoration: none !important;
	background: transparent;
}
.btg-outline-button:hover { background: var(--btg-red); color: #fff !important; }
.btg-outline-button span { margin-left: 12px; }

.btg-news { margin-top: 12px; }
.btg-section-title {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 20px;
	padding: 0 2px 10px;
	border-bottom: 2px solid var(--btg-ink);
}
.btg-section-title h2 {
	margin: 0;
	font-family: var(--btg-head);
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--btg-ink);
}
.btg-section-title a { font-size: 12px; font-weight: 800; color: var(--btg-ink); text-decoration: none; white-space: nowrap; }

.btg-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 14px;
}
.btg-news-card {
	margin: 0 !important;
	background: rgba(249, 245, 234, .95) url("paper.svg") repeat;
	border: 1px solid var(--btg-line);
	box-shadow: 0 4px 15px rgba(45, 36, 24, .06);
}
.btg-news-visual {
	display: block;
	height: 150px;
	overflow: hidden;
	background: var(--btg-green-dark);
}
.btg-news-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.04); }
.btg-news-fallback {
	position: relative;
	display: grid;
	align-content: center;
	height: 100%;
	padding: 20px 24px;
	color: rgba(244, 237, 219, .9);
	background: var(--btg-green-dark);
	overflow: hidden;
}
.btg-news-fallback::after {
	content: "";
	position: absolute;
	width: 190px;
	height: 190px;
	right: -55px;
	top: -60px;
	border: 12px double rgba(244, 237, 219, .13);
	border-radius: 50%;
}
.btg-news-fallback b { font-family: var(--btg-head); font-size: 58px; line-height: .9; letter-spacing: .05em; opacity: .9; }
.btg-news-fallback i { display: block; width: 56%; height: 2px; margin-top: 6px; background: rgba(244, 237, 219, .24); }
.btg-news-fallback i:nth-of-type(2) { width: 76%; }
.btg-news-fallback i:nth-of-type(3) { width: 42%; }

.btg-news-copy { padding: 18px 20px 20px; }
.btg-news-category {
	display: block;
	margin-bottom: 7px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--btg-red);
}
.btg-news-copy h3 {
	margin: 0 0 8px;
	font-family: var(--btg-head);
	font-size: 24px;
	line-height: 1.02;
	letter-spacing: .01em;
}
.btg-news-copy h3 a { color: var(--btg-ink) !important; text-decoration: none; }
.btg-news-copy p { margin: 0 0 14px; font-size: 13px; line-height: 1.42; color: #413f39; }
.btg-news-copy time { font-size: 11px; color: var(--btg-muted); }
.btg-no-news { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--btg-line); text-align: center; }

.btg-history {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 28px;
	min-height: 120px;
	margin-top: 16px;
	padding: 24px 30px;
	overflow: hidden;
	background: #d6c8aa;
	border: 1px solid rgba(54, 43, 29, .28);
	box-shadow: var(--btg-shadow);
}
.btg-history::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("paper.svg") repeat;
	mix-blend-mode: multiply;
	opacity: .48;
}
.btg-history > * { position: relative; z-index: 1; }
.btg-history-mark {
	font-family: var(--btg-head);
	font-size: 58px;
	line-height: .9;
	letter-spacing: .05em;
	color: rgba(23, 33, 31, .72);
	transform: rotate(-2deg);
}
.btg-history-copy strong {
	display: block;
	font-family: var(--btg-head);
	font-size: clamp(25px, 3vw, 40px);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.btg-history-copy span { display: block; margin-top: 6px; font-size: 13px; color: #4c463c; }
.btg-history a {
	padding: 10px 18px;
	background: var(--btg-green);
	color: #fff !important;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
}
.btg-history a span { margin-left: 8px; }

/* Footer --------------------------------------------------------------- */
.btg-spieltagsblatt #grve-footer {
	margin-top: 0;
	background: var(--btg-ink) !important;
	border-top: 4px solid var(--btg-green);
}
.btg-spieltagsblatt #grve-footer,
.btg-spieltagsblatt #grve-footer a,
.btg-spieltagsblatt #grve-footer .grve-copyright,
.btg-spieltagsblatt #grve-footer .grve-widget-title {
	color: #eee7d8 !important;
}
.btg-spieltagsblatt #grve-footer .grve-footer-bar { border-color: rgba(255,255,255,.14) !important; }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1023px) {
	.btg-home { padding-top: 18px; }
	.btg-hero { grid-template-columns: 1.12fr .88fr; min-height: 300px; }
	.btg-quicklinks { grid-template-columns: repeat(2, 1fr); }
	.btg-quick { min-height: 102px; }
	.btg-spieltagsblatt #grve-responsive-header { border-bottom: 1px solid var(--btg-line); }
}

@media (max-width: 767px) {
	.btg-home { padding: 10px 10px 36px; }
	.btg-hero { display: block; min-height: 390px; }
	.btg-hero-copy { padding: 34px 24px 188px; }
	.btg-kicker { font-size: 10px; }
	.btg-hero h1 { font-size: clamp(64px, 23vw, 96px); }
	.btg-season { font-size: clamp(28px, 9vw, 42px); }
	.btg-lead { max-width: 94%; font-size: 18px; }
	.btg-hero-art { position: absolute; width: 62%; height: 210px; min-height: 0; right: -3%; bottom: 0; }
	.btg-hero-art svg { width: 115%; height: 115%; }
	.btg-stamp { right: 16px; top: 18px; font-size: 12px; }
	.btg-quicklinks { grid-template-columns: 1fr 1fr; gap: 7px; margin: 8px 0; }
	.btg-quick { grid-template-columns: 1fr auto; min-height: 104px; padding: 15px; gap: 8px; }
	.btg-quick-icon { display: none; }
	.btg-quick strong { font-size: 20px; }
	.btg-quick small { font-size: 11px; }
	.btg-score-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 22px; }
	.btg-panel { padding: 18px 14px; }
	.btg-panel-head { gap: 8px; }
	.btg-panel-eyebrow { font-size: 27px; }
	.btg-table { font-size: 12px; }
	.btg-table th, .btg-table td { padding: 8px 6px; }
	.btg-current-list a { grid-template-columns: 1fr auto; }
	.btg-current-list small { display: none; }
	.btg-news-grid { grid-template-columns: 1fr; gap: 8px; }
	.btg-news-card { display: grid; grid-template-columns: 118px 1fr; }
	.btg-news-visual { height: 100%; min-height: 160px; }
	.btg-news-copy { padding: 16px; }
	.btg-news-copy h3 { font-size: 22px; }
	.btg-news-copy p { display: none; }
	.btg-history { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
	.btg-history-mark { display: none; }
	.btg-history a { justify-self: start; }
}

@media (max-width: 420px) {
	.btg-quicklinks { grid-template-columns: 1fr; }
	.btg-quick { min-height: 86px; }
	.btg-news-card { grid-template-columns: 96px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
