/* SUPRCON 2026-10: Lehrlingsgehalt-Tabelle im Look der HOWI-Grafik 2026
   Template: parts/elements_for_page/apprentice_pay_table.php */

.hs-pay {
	--hs-pay-red: #d2001b;
	--hs-pay-ink: #3b3b3a;
	--hs-pay-dark: #1a1a18;
	--hs-pay-rule: rgba(26, 26, 24, 0.35);
}

.hs-pay .hs-pay__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
	gap: 56px;
	align-items: start;
	margin-top: 40px;
}

/* ---------- Tabelle ---------- */
.hs-pay .hs-pay__table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	color: var(--hs-pay-ink);
	font-family: inherit;
	font-size: 18px;
	line-height: 1.25;
	background: transparent;
}

.hs-pay .hs-pay__table thead th {
	padding: 0 16px 28px 16px;
	text-align: left;
	vertical-align: top;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.25;
	color: var(--hs-pay-ink);
	border: 0;
	border-bottom: 2px solid var(--hs-pay-dark);
	background: transparent;
	hyphens: manual;
}

.hs-pay .hs-pay__table tbody th,
.hs-pay .hs-pay__table tbody td {
	padding: 18px 16px;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
	border: 0;
	border-bottom: 1px solid var(--hs-pay-rule);
	background: transparent;
	color: var(--hs-pay-ink);
}

.hs-pay .hs-pay__table .hs-pay__year { font-weight: 700; }
.hs-pay .hs-pay__table .hs-pay__val  { font-weight: 400; }
.hs-pay .hs-pay__table .hs-pay__sum  { font-weight: 700; }

/* ---------- Highlight-Kasten ---------- */
.hs-pay .hs-pay__aside { padding-top: 8px; }

.hs-pay .hs-pay__highlight {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	margin: 0 0 14px;
	color: var(--hs-pay-red);
	font-weight: 700;
	line-height: 0.9;
}

.hs-pay .hs-pay__plus {
	position: relative;
	align-self: flex-start;
	width: 26px;
	height: 26px;
	margin: -8px 2px 0 0;
	flex: 0 0 auto;
}
.hs-pay .hs-pay__plus::before,
.hs-pay .hs-pay__plus::after {
	content: "";
	position: absolute;
	background: var(--hs-pay-red);
}
.hs-pay .hs-pay__plus::before { left: 0; right: 0; top: 50%; height: 8px; transform: translateY(-50%); }
.hs-pay .hs-pay__plus::after  { top: 0; bottom: 0; left: 50%; width: 8px; transform: translateX(-50%); }

.hs-pay .hs-pay__amount {
	font-size: 60px;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.hs-pay .hs-pay__suffix {
	margin: 0 0 4px 8px;
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.hs-pay .hs-pay__hltext {
	margin: 0 0 18px;
	color: var(--hs-pay-dark);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	hyphens: auto;
}

.hs-pay .hs-pay__notes p {
	margin: 0;
	color: var(--hs-pay-ink);
	font-size: 15px;
	line-height: 1.45;
}
.hs-pay .hs-pay__notes .hs-pay__basis {
	margin-bottom: 2px;
	font-weight: 700;
}

.hs-pay .hs-pay__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Tablet: Kasten unter die Tabelle ---------- */
@media (max-width: 1199px) {
	.hs-pay .hs-pay__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
	.hs-pay .hs-pay__aside { max-width: 560px; padding-top: 0; }
	.hs-pay .hs-pay__table,
	.hs-pay .hs-pay__table thead th { font-size: 16px; }
	.hs-pay .hs-pay__table thead th,
	.hs-pay .hs-pay__table tbody th,
	.hs-pay .hs-pay__table tbody td { padding-left: 10px; padding-right: 10px; }
}

/* ---------- Mobil: eine Karte pro Lehrjahr ---------- */
@media (max-width: 767px) {
	.hs-pay .hs-pay__grid { margin-top: 24px; gap: 32px; }

	/* Überschrift passt sonst nicht in die Breite ("Lehrlingsgehalt" ist ein langes Wort) */
	.hs-pay .extended-content__title {
		font-size: 34px;
		line-height: 1.15;
		overflow-wrap: break-word;
		hyphens: auto;
	}

	.hs-pay .hs-pay__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.hs-pay .hs-pay__table,
	.hs-pay .hs-pay__table tbody,
	.hs-pay .hs-pay__table tr,
	.hs-pay .hs-pay__table tbody th,
	.hs-pay .hs-pay__table tbody td {
		display: block;
		width: 100%;
	}
	.hs-pay .hs-pay__table { font-size: 16px; }
	.hs-pay .hs-pay__table tbody tr {
		border-top: 2px solid var(--hs-pay-dark);
		padding-bottom: 6px;
	}
	.hs-pay .hs-pay__table tbody tr + tr { margin-top: 18px; }
	.hs-pay .hs-pay__table tbody th {
		padding: 14px 0 8px;
		border: 0;
		font-size: 19px;
	}
	.hs-pay .hs-pay__table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 16px;
		padding: 9px 0;
		white-space: normal;
	}
	.hs-pay .hs-pay__table tbody td::before {
		content: attr(data-label);
		font-weight: 400;
		text-align: left;
	}
	.hs-pay .hs-pay__table tbody td:last-child { border-bottom: 0; }

	.hs-pay .hs-pay__amount { font-size: 50px; }
	.hs-pay .hs-pay__suffix { font-size: 18px; }
	.hs-pay .hs-pay__plus { width: 22px; height: 22px; }
	.hs-pay .hs-pay__plus::before { height: 7px; }
	.hs-pay .hs-pay__plus::after  { width: 7px; }
	.hs-pay .hs-pay__hltext { font-size: 15px; }
}
