/* SHM Preisliste – Frontend */

.shm-pl {
	--shm-pl-linie: #e2e2e2;
	--shm-pl-kopf: #333333;
	--shm-pl-kopf-text: #ffffff;
	--shm-pl-zebra: #f7f7f7;
	--shm-pl-hover: #eef3f8;
	--shm-pl-gruppe: #e8ecf1;
	margin: 0 0 2em;
}

.shm-pl .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Suche ------------------------------------------------------------------ */

.shm-pl-suche {
	margin: 0 0 1em;
}

.shm-pl-suchfeld {
	width: 100%;
	max-width: 380px;
	padding: 10px 14px;
	font-size: 15px;
	line-height: 1.4;
	border: 1px solid #c9c9c9;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
}

.shm-pl-suchfeld:focus {
	outline: 2px solid #7a9cc6;
	outline-offset: 1px;
	border-color: #7a9cc6;
}

.shm-pl-treffer {
	margin: 6px 0 0;
	font-size: 13px;
	color: #666;
	min-height: 1.2em;
}

/* Tabelle ---------------------------------------------------------------- */

.shm-pl-tabellenrahmen {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--shm-pl-linie);
	border-radius: 3px;
}

.shm-pl-tabelle {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 15px;
	background: #fff;
}

.shm-pl-tabelle th,
.shm-pl-tabelle td {
	padding: 9px 14px;
	text-align: left;
	border-bottom: 1px solid var(--shm-pl-linie);
	vertical-align: middle;
}

.shm-pl-tabelle thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--shm-pl-kopf);
	color: var(--shm-pl-kopf-text);
	font-weight: 700;
	white-space: nowrap;
	border-bottom: none;
}

.shm-pl-tabelle tbody tr:nth-child(even of :not([hidden])) {
	background: var(--shm-pl-zebra);
}

.shm-pl-tabelle tbody tr:hover {
	background: var(--shm-pl-hover);
}

.shm-pl-tabelle tbody tr:last-child td {
	border-bottom: none;
}

.shm-pl-kaliber {
	font-weight: 600;
}

.shm-pl-kaliber a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.shm-pl-rechts {
	text-align: right;
	white-space: nowrap;
}

.shm-pl-mitte {
	text-align: center;
	width: 120px;
}

.shm-pl-tabelle thead th.shm-pl-rechts {
	text-align: right;
}

.shm-pl-tabelle thead th.shm-pl-mitte {
	text-align: center;
}

/* Zwischenüberschriften und Hinweiszeilen -------------------------------- */

.shm-pl-gruppe td {
	background: var(--shm-pl-gruppe);
	font-weight: 700;
	font-size: 16px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.shm-pl-hinweis td {
	font-style: italic;
	color: #555;
	padding-top: 4px;
	padding-bottom: 4px;
}

.shm-pl-tabelle tbody tr.shm-pl-gruppe:hover,
.shm-pl-tabelle tbody tr.shm-pl-hinweis:hover {
	background: transparent;
}

/* Ampel ------------------------------------------------------------------ */

.shm-pl-ampel {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.25);
	vertical-align: middle;
}

.shm-pl-ampel--gruen {
	background: #3faa4a;
}

.shm-pl-ampel--gelb {
	background: #f2c130;
}

.shm-pl-ampel--rot {
	background: #cf3a2c;
}

.shm-pl-ampelbild {
	display: inline-block;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

/* Legende und Fußnote ---------------------------------------------------- */

.shm-pl-legende {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-size: 14px;
	color: #444;
}

.shm-pl-legende li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
}

.shm-pl-fussnote {
	margin: 12px 0 0;
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

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

@media (max-width: 700px) {

	.shm-pl-tabellenrahmen {
		border: none;
		overflow-x: visible;
	}

	.shm-pl-tabelle thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
	}

	.shm-pl-tabelle,
	.shm-pl-tabelle tbody,
	.shm-pl-tabelle tr,
	.shm-pl-tabelle td {
		display: block;
		width: auto;
	}

	.shm-pl-tabelle tbody tr {
		border: 1px solid var(--shm-pl-linie);
		border-radius: 3px;
		margin-bottom: 8px;
		padding: 4px 0;
		background: #fff;
	}

	.shm-pl-tabelle tbody tr:nth-child(even of :not([hidden])) {
		background: #fff;
	}

	.shm-pl-tabelle td {
		border-bottom: none;
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
		padding: 5px 12px;
		text-align: right;
	}

	.shm-pl-tabelle td::before {
		content: attr(data-label);
		font-size: 13px;
		color: #777;
		text-align: left;
		flex: 0 0 auto;
	}

	.shm-pl-tabelle td.shm-pl-kaliber {
		font-size: 16px;
		border-bottom: 1px solid var(--shm-pl-linie);
		padding-bottom: 8px;
		margin-bottom: 4px;
	}

	.shm-pl-tabelle td.shm-pl-kaliber::before {
		display: none;
	}

	.shm-pl-tabelle td.shm-pl-kaliber {
		justify-content: flex-start;
		text-align: left;
	}

	.shm-pl-tabelle tr.shm-pl-gruppe td,
	.shm-pl-tabelle tr.shm-pl-hinweis td {
		display: block;
		text-align: left;
	}

	.shm-pl-tabelle tr.shm-pl-gruppe td::before,
	.shm-pl-tabelle tr.shm-pl-hinweis td::before {
		display: none;
	}

	.shm-pl-tabelle tr.shm-pl-gruppe,
	.shm-pl-tabelle tr.shm-pl-hinweis {
		border: none;
		margin-bottom: 0;
	}
}
