/* ============================================================
   BASE WRAPPER
============================================================ */

.bsl-wrapper {
	width: 100%;
	max-width: 1100px;
	margin: 40px auto;
	padding: 20px;
	background: #111;
	border-radius: 14px;
	box-shadow: 0 0 25px rgba(0,0,0,0.45);
	color: #fff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bsl-wrapper h2,
.bsl-title {
	margin-bottom: 20px;
	font-size: 26px;
	font-weight: 700;
}

/* ============================================================
   TABELLE – DESKTOP
============================================================ */

.bsl-table-wrapper {
	width: 100%;
	overflow: hidden; /* Kein Scrollen */
}

.bsl-table {
	width: 100%;
	border-collapse: collapse;
	color: #fff;
}

.bsl-table th,
.bsl-table td {
	padding: 10px 12px;
	border-bottom: 1px solid rgba(255,255,255,0.15);
	text-align: left;
	vertical-align: middle;
}

.bsl-table th {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	font-size: 13px;
	opacity: .8;
	background: rgba(255,255,255,0.05);
}

.bsl-team-cell {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bsl-team-logo {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
}

/* Promotion / Abstieg */
.bsl-promotion td {
	background: rgba(0,255,0,0.12);
}

.bsl-relegation td {
	background: rgba(255,0,0,0.12);
}

/* ============================================================
   SPIELTAG NAVIGATION
============================================================ */

.bsl-nav {
	width: 100%;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 25px 0;
}

.bsl-nav a {
	font-size: 15px;
	padding: 8px 18px;
	border-radius: 6px;
	background: #3a2b24;
	color: #fff;
	text-decoration: none;
	border: 1px solid #ffffff20;
	transition: .2s;
}

.bsl-nav a:hover {
	background: #4a3a31;
}

/* ============================================================
   SPIELTAG – TABELLE DESKTOP
============================================================ */

.bsl-match-table {
	width: 100%;
	border-collapse: collapse;
}

.bsl-match-table th,
.bsl-match-table td {
	padding: 10px;
	border-bottom: 1px solid rgba(255,255,255,0.15);
}

.bsl-match-table th {
	text-transform: uppercase;
	font-weight: 600;
	font-size: 13px;
	opacity: 0.8;
}

.bsl-match-logo {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: contain;
	margin-right: 8px;
}

/* ============================================================
   MOBILE VERSION (< 768px)
============================================================ */

@media (max-width: 768px) {

	/* ---------- Tabellenkopf ausblenden ---------- */
	.bsl-table thead {
		display: none !important;
	}

	/* ---------- Spalten SP / S / U / N / Tore entfernen ---------- */
	.bsl-table th:nth-child(3),
	.bsl-table td:nth-child(3),
	.bsl-table th:nth-child(4),
	.bsl-table td:nth-child(4),
	.bsl-table th:nth-child(5),
	.bsl-table td:nth-child(5),
	.bsl-table th:nth-child(6),
	.bsl-table td:nth-child(6),
	.bsl-table th:nth-child(7),
	.bsl-table td:nth-child(7)
	{
		display: none !important;
	}

	/* ---------- Jede Tabellenzeile wird eine mobile Karte ---------- */
	.bsl-table tr {
		display: block;
		padding: 12px;
		margin-bottom: 14px;
		border-radius: 10px;
		background: rgba(255,255,255,0.07);
	}

	/* ---------- Zellen untereinander ---------- */
	.bsl-table td {
		display: flex;
		justify-content: space-between;
		padding: 6px 4px;
		border: none !important;
	}

	/* Labels einblenden */
	.bsl-table td::before {
		content: attr(data-label);
		font-weight: 600;
		opacity: .7;
		margin-right: 10px;
	}

	/* Teamname größer */
	.bsl-table td:nth-child(2) {
		font-size: 18px;
		font-weight: 700;
		padding-bottom: 6px;
	}

	/* Platz kleiner */
	.bsl-table td:nth-child(1) {
		font-weight: 600;
		opacity: .6;
	}

	/* Diff / Pkt */
	.bsl-table td:nth-child(8),
	.bsl-table td:nth-child(9) {
		font-size: 16px;
		font-weight: 600;
	}

	/* Teamlogo kleiner */
	.bsl-team-logo {
		width: 18px;
		height: 18px;
	}

	/* ---------- Spieltag Tabelle Mobile ---------- */
	.bsl-match-table thead {
		display: none;
	}

	.bsl-match-table tr {
		display: block;
		padding: 12px;
		margin-bottom: 14px;
		border-radius: 10px;
		background: rgba(255,255,255,0.06);
	}

	.bsl-match-table td {
		display: flex;
		justify-content: space-between;
		padding: 6px 4px;
		font-size: 15px;
		border: none;
	}

	.bsl-match-table td::before {
		content: attr(data-label);
		font-weight: 600;
		opacity: .65;
	}

	/* ---------- Navigation zentriert ---------- */
	.bsl-nav {
		justify-content: center !important;
		gap: 12px;
	}

	.bsl-nav a {
		font-size: 14px;
		padding: 6px 12px;
		white-space: nowrap;
	}
}

/* ============================================================
   ELEMENTOR / OXYGEN FIX (Shortcode Container volle Breite)
============================================================ */

#shortcode-5-964,
.ct-shortcode {
	width: 100% !important;
	max-width: 100% !important;
}

/* Feinere Abstände in der Haupttabelle */
.bsl-table td,
.bsl-table th {
	padding: 6px 10px !important;
}

.bsl-team-cell {
	gap: 4px !important;
}

.bsl-team-logo {
	width: 20px !important;
	height: 20px !important;
}/* Spieltag-Zeilen optisch wie Tabelle oben */
.bsl-match-table td {
	padding: 10px 12px !important;
	font-size: 18px !important;
	vertical-align: middle;
}

/* Score mittig fixieren */
.bsl-match-table td:nth-child(3) {
	text-align: center !important;
	font-weight: 700;
	letter-spacing: 1px;
}
.bsl-match-table tr {
	height: auto !important;
	padding: 8px 0 !important;
}

.bsl-match-table td:first-child {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bsl-team-logo {
	width: 14px !important;
	height: 14px !important;
	margin-right: 6px !important;
	opacity: .9;
	transform: translateY(-1px); /* sitzt optisch perfekt */
}
.bsl-table td {
	font-weight: 400 !important; /* normales Schriftbild */
}

.bsl-table td:nth-child(1),  /* Platz */
.bsl-table td:nth-child(4),  /* Diff */
.bsl-table td:nth-child(5)   /* Punkte */
{
	font-weight: 600 !important;
}

.bsl-match-table td {
	font-weight: 400 !important;
}

.bsl-match-table td.score,
.bsl-match-table td:nth-child(3) {
	font-weight: 600 !important; /* nur Ergebnis */
}

.bsl-table tbody tr {
	border-radius: 6px;
}

.bsl-table tbody td {
	padding: 6px 8px !important;
}

@media (max-width: 768px) {
	.bsl-match-table tr {
		display: grid !important;
		grid-template-columns: 1fr auto 1fr !important;
		padding: 12px 8px;
		background: rgba(255,255,255,0.07);
		border-radius: 8px;
		margin-bottom: 10px;
	}

	.bsl-team-home,
	.bsl-team-away {
		font-weight: 400;
		font-size: 15px;
		display: flex;
		align-items: center;
		gap: 6px;
		white-space: nowrap;
	}

	.bsl-score {
		font-weight: 700;
		font-size: 18px;
		text-align: center;
		white-space: nowrap;
	}
}/* ============================
   MOBILE SPIELTAG FIX (FINAL)
   ============================ */
@media (max-width: 768px) {

	/* Tabellenkopf verstecken */
	.bsl-match-table thead {
		display: none !important;
	}

	/* Jede Zeile wird eine Karte */
	.bsl-match-table tr {
		display: block !important;
		background: rgba(255,255,255,0.05);
		padding: 14px 12px;
		margin-bottom: 14px;
		border-radius: 10px;
	}

	/* Zellen neu layouten */
	.bsl-match-table td {
		border: none !important;
		display: block !important;
		padding: 4px 0;
		font-size: 16px;
		font-weight: 400;
	}

	/* --- HEIMTEAM --- */
	.bsl-match-table td[data-label="Heim"] {
		display: flex !important;
		align-items: center;
		gap: 6px;
		font-size: 17px;
		font-weight: 500;
	}

	/* Team-Logos etwas kleiner */
	.bsl-match-table img {
		width: 18px !important;
		height: 18px !important;
	}

	/* --- ERGEBNIS --- */
	.bsl-match-table td[data-label="Ergebnis"] {
		text-align: center !important;
		font-size: 20px;
		font-weight: 600;
		margin: 6px 0;
	}

	/* --- AUSWÄRTS --- */
	.bsl-match-table td[data-label="Auswärts"] {
		display: flex !important;
		justify-content: flex-end;
		align-items: center;
		gap: 6px;
		font-size: 17px;
		font-weight: 500;
	}

	/* --- DATUM --- */
	.bsl-match-table td[data-label="Datum"] {
		text-align: center !important;
		margin-top: 8px;
		font-size: 13px;
		opacity: .7;
	}
}