/*
Theme Name: Schrottpreisheute
Theme URI: https://schrottpreisheute.de/
Description: Leichtes, schnelles WordPress-Theme für tagesaktuelle Schrottpreise und Altmetall-Analytik in Deutschland.
Version: 1.1.0
Text Domain: schrottpreisheute
*/

:root {
	--base: #f0f0f0;
	--base-2: #f7f8f9;
	--base-3: #ffffff;
	--contrast: #222222;
	--contrast-2: #575760;
	--contrast-3: #e2e4e7;
	--accent: #165996;
	--accent-hover: #0f4373;
	--cta-amber: #b45309;
	--cta-amber-hover: #92400e;
	--container-width: 1200px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	max-width: 100%;
	overflow-x: clip;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	background-color: var(--base-2);
	color: var(--contrast);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--accent-hover);
}

h1, h2, h3, h4 {
	color: var(--contrast);
	line-height: 1.28;
	margin-top: 1.25em;
	margin-bottom: 0.5em;
	font-weight: 600;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

h1 {
	font-size: clamp(1.375rem, 2.5vw, 1.85rem);
	margin-top: 0;
}

h2 {
	font-size: clamp(1.1875rem, 2vw, 1.5rem);
}

h3 {
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.sph-section {
	margin-bottom: 20px;
	min-width: 0;
	max-width: 100%;
}

.sph-section > h2,
.sph-section > h3 {
	margin-top: 0.8em;
}

p {
	margin-top: 0;
	margin-bottom: 1.1em;
}

.sph-container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 16px;
}

/* Header */
.sph-header {
	background-color: var(--base-3);
	border-bottom: 1px solid var(--contrast-3);
}

.sph-header-inner {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 10px 16px;
}

.sph-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
}

.sph-brand-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

.sph-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--contrast);
	min-width: 0;
	max-width: 100%;
}

.sph-brand:hover {
	color: var(--contrast);
}

.sph-brand-mark {
	width: 32px;
	height: 32px;
	display: block;
	flex-shrink: 0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(15, 67, 115, 0.22);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.sph-brand:hover .sph-brand-mark {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(15, 67, 115, 0.28);
}

.sph-brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.15;
}

.sph-site-title {
	display: inline-flex;
	align-items: baseline;
	font-size: 0.94rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: #0f172a;
	text-decoration: none;
	white-space: nowrap;
}

.sph-brand-main {
	color: #0f172a;
}

.sph-brand-accent {
	color: var(--accent);
}

.sph-brand-tld {
	display: inline-block;
	margin-left: 3px;
	padding: 1px 4px;
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	color: var(--accent);
	background-color: #eef4fb;
	border: 1px solid #c7ddf2;
	border-radius: 4px;
	vertical-align: 1px;
}

.sph-brand-sub {
	display: none;
	margin-top: 2px;
	font-size: 0.68rem;
	font-weight: 500;
	color: #64748b;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

@media (max-width: 374px) {
	.sph-brand {
		gap: 6px;
	}
	.sph-brand-mark {
		width: 28px;
		height: 28px;
	}
	.sph-site-title {
		font-size: 0.85rem;
	}
	.sph-nav-toggle {
		padding: 7px 9px;
		font-size: 0.8125rem;
	}
}

@media (min-width: 480px) {
	.sph-brand {
		gap: 10px;
	}
	.sph-brand-mark {
		width: 38px;
		height: 38px;
	}
	.sph-site-title {
		font-size: 1.14rem;
	}
	.sph-brand-tld {
		padding: 1px 5px;
		font-size: 0.7em;
	}
	.sph-brand-sub {
		display: block;
	}
}

.sph-nav-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	background: var(--base);
	color: var(--contrast);
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	line-height: 1;
}

.sph-nav-toggle:hover {
	background: #e5e7eb;
}

.sph-nav {
	width: 100%;
	display: none;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--contrast-3);
}

.sph-nav.is-open {
	display: block;
}

.sph-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sph-nav li {
	border-bottom: 1px solid var(--base-2);
}

.sph-nav li:last-child {
	border-bottom: none;
}

.sph-nav a {
	display: block;
	padding: 9px 10px;
	color: var(--contrast);
	text-decoration: none;
	font-weight: 500;
	border-radius: 4px;
	font-size: 0.9375rem;
}

.sph-nav a:hover,
.sph-nav .current-menu-item > a {
	color: var(--accent);
	background-color: var(--base-2);
}

.sph-nav .sub-menu {
	padding: 2px 0 6px 14px;
	margin: 0 0 4px 8px;
	border-left: 2px solid var(--contrast-3);
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.sph-nav .sub-menu li {
	border-bottom: none;
}

.sph-nav .sub-menu a {
	padding: 6px 8px;
	font-size: 0.86rem;
	font-weight: 500;
	color: var(--contrast-2);
}

.sph-nav .sub-menu a:hover {
	color: var(--accent);
	background-color: var(--base-2);
}

@media (min-width: 1024px) {
	.sph-header-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 11px 16px;
	}
	.sph-header-top {
		flex: 0 0 auto;
	}
	.sph-brand-wrap {
		flex: 0 0 auto;
	}
	.sph-brand {
		gap: 8px;
	}
	.sph-brand-mark {
		width: 34px;
		height: 34px;
	}
	.sph-site-title {
		font-size: 1.02rem;
	}
	.sph-brand-sub {
		display: none;
	}
	.sph-nav-toggle {
		display: none;
	}
	.sph-nav {
		display: block;
		width: auto;
		margin-top: 0;
		padding-top: 0;
		border-top: none;
	}
	.sph-nav > ul {
		flex-direction: row;
		align-items: center;
		gap: 2px;
	}
	.sph-nav > ul > li {
		position: relative;
		border-bottom: none;
	}
	.sph-nav > ul > li > a {
		padding: 6px 7px;
		font-size: 0.84rem;
		white-space: nowrap;
	}
	.sph-nav > ul > li.menu-item-has-children > a::after {
		content: "";
		display: inline-block;
		width: 0;
		height: 0;
		margin-left: 5px;
		vertical-align: middle;
		border-left: 4px solid transparent;
		border-right: 4px solid transparent;
		border-top: 4px solid var(--contrast-2);
	}
	.sph-nav > ul > li > .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 225px;
		margin: 0;
		padding: 6px;
		border: 1px solid var(--contrast-3);
		border-left: 1px solid var(--contrast-3);
		border-radius: 8px;
		background-color: var(--base-3);
		box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
		z-index: 80;
	}
	.sph-nav > ul > li:nth-last-child(-n+2) > .sub-menu {
		left: auto;
		right: 0;
	}
	.sph-nav > ul > li:hover > .sub-menu,
	.sph-nav > ul > li:focus-within > .sub-menu {
		display: flex;
	}
	.sph-nav > ul > li > .sub-menu a {
		padding: 7px 10px;
		font-size: 0.86rem;
		color: var(--contrast);
		white-space: nowrap;
	}
	.sph-nav > ul > li > .sub-menu a:hover {
		color: var(--accent);
		background-color: #eef4fb;
	}
}

@media (min-width: 1200px) {
	.sph-header-inner {
		gap: 16px;
		padding: 12px 16px;
	}
	.sph-brand {
		gap: 10px;
	}
	.sph-brand-mark {
		width: 40px;
		height: 40px;
	}
	.sph-site-title {
		font-size: 1.18rem;
	}
	.sph-brand-sub {
		display: block;
	}
	.sph-nav > ul {
		gap: 5px;
	}
	.sph-nav > ul > li > a {
		padding: 7px 9px;
		font-size: 0.89rem;
	}
}

/* Main two-column separate-containers layout */
.sph-page-wrap {
	padding: 16px 12px 36px;
	max-width: var(--container-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

@media (min-width: 768px) {
	.sph-page-wrap {
		padding: 24px 16px 40px;
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	.sph-page-wrap {
		grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
		align-items: stretch;
		padding: 30px 16px 48px;
	}
	.sph-main-card {
		align-self: start;
	}
}

.sph-main-card,
.sph-sidebar-card {
	background-color: var(--base-3);
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	padding: 18px 14px;
	min-width: 0;
	max-width: 100%;
}

@media (min-width: 768px) {
	.sph-main-card {
		padding: 32px 36px;
	}
	.sph-sidebar-card {
		padding: 22px 24px;
	}
}

/* Breadcrumbs & Meta bar */
.sph-breadcrumbs {
	font-size: 0.875rem;
	color: var(--contrast-2);
	margin-bottom: 10px;
}

.sph-breadcrumbs a {
	color: var(--contrast-2);
	text-decoration: none;
}

.sph-breadcrumbs a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.sph-meta-bar {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	padding: 5px 12px;
	font-size: 0.875rem;
	color: var(--contrast-2);
	margin-bottom: 16px;
}

/* Modern Collapsible Table of Contents */
.sph-toc {
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	margin: 18px 0 24px;
	overflow: hidden;
}

.sph-toc-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--contrast);
	cursor: pointer;
	list-style: none;
	user-select: none;
	background-color: var(--base-2);
}

.sph-toc-title::-webkit-details-marker {
	display: none;
}

.sph-toc-title-inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sph-toc-chevron {
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--contrast-2);
	border-bottom: 2px solid var(--contrast-2);
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
	margin-right: 4px;
}

.sph-toc[open] .sph-toc-chevron {
	transform: rotate(45deg);
}

.sph-toc-body {
	padding: 4px 16px 14px;
	border-top: 1px solid var(--contrast-3);
}

.sph-toc-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sph-toc-link {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--contrast);
	text-decoration: none;
	padding: 2px 0;
}

.sph-toc-link:hover {
	color: var(--accent);
	text-decoration: underline;
}

.sph-toc-num {
	color: var(--accent);
	font-weight: 600;
	min-width: 18px;
}

.sph-toc-subgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin: 6px 0 6px 24px;
}

@media (min-width: 640px) {
	.sph-toc-subgrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sph-toc-sublink {
	display: block;
	background-color: var(--base-3);
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	padding: 5px 8px;
	font-size: 0.8125rem;
	line-height: 1.25;
	color: var(--contrast);
	text-decoration: none;
	text-align: center;
	overflow-wrap: break-word;
	hyphens: auto;
}

.sph-toc-sublink:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* Tables (Mobile-First responsive) */
.sph-table-wrap {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	margin: 10px 0 18px;
	-webkit-overflow-scrolling: touch;
}

table.sph-price-table,
table.sph-company-table,
.sph-main-card table {
	width: 100%;
	border-collapse: collapse;
	background-color: var(--base-3);
	font-size: 0.95rem;
}

table.sph-price-table th,
table.sph-price-table td,
table.sph-company-table th,
table.sph-company-table td,
.sph-main-card table th,
.sph-main-card table td {
	border: 1px solid var(--contrast-3);
	padding: 10px 10px;
	text-align: left;
	vertical-align: middle;
}

table.sph-price-table thead th,
table.sph-company-table thead th,
.sph-main-card table thead th {
	background-color: var(--base);
	color: var(--contrast);
	font-weight: 600;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.25;
}

table.sph-price-table tbody tr:nth-child(even),
table.sph-company-table tbody tr:nth-child(even) {
	background-color: #fafbfc;
}

table.sph-price-table tbody tr:hover,
table.sph-company-table tbody tr:hover {
	background-color: #f3f6fa;
}

table.sph-price-table th:first-child,
table.sph-price-table td:first-child {
	min-width: 110px;
	overflow-wrap: break-word;
	hyphens: auto;
}

/* 3-column tables */
table.sph-price-table tr > th:first-child:nth-last-child(3),
table.sph-price-table tr > td:first-child:nth-last-child(3) {
	width: 54%;
	min-width: 130px;
}

table.sph-price-table tr > th:nth-child(2):nth-last-child(2),
table.sph-price-table tr > th:nth-child(3):last-child {
	width: 23%;
	white-space: nowrap;
	text-align: right;
}

/* 4-column price analytics tables: fit 100% width across desktop, tablet, and mobile */
table.sph-price-table tr > th:first-child:nth-last-child(4),
table.sph-price-table tr > td:first-child:nth-last-child(4) {
	width: 41%;
}

table.sph-price-table tr > th:nth-child(2):nth-last-child(3) {
	width: 16%;
	text-align: right;
}

table.sph-price-table tr > th:nth-child(3):nth-last-child(2) {
	width: 21%;
	text-align: right;
}

table.sph-price-table tr > th:nth-child(4):last-child {
	width: 22%;
	text-align: right;
}

table.sph-price-table:has(thead th:nth-child(4)) th:not(:first-child) {
	text-align: right;
}

/* 5+ column tables */
table.sph-price-table:has(thead th:nth-child(5)) {
	min-width: 480px;
}

table.sph-price-table:has(thead th:nth-child(5)) th:nth-child(2),
table.sph-price-table:has(thead th:nth-child(5)) td:nth-child(2) {
	text-align: left;
}

table.sph-price-table td.sph-num {
	white-space: nowrap;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

table.sph-price-table td.sph-td-price strong {
	font-size: 1rem;
	font-weight: 700;
	color: var(--contrast);
}

.sph-ton-sub {
	font-size: 0.78rem;
	color: var(--contrast-2);
	font-weight: 500;
	white-space: nowrap;
	margin-left: 4px;
}

.sph-mobile-spanne {
	display: none;
}

@media (min-width: 768px) {
	table.sph-company-table {
		min-width: 520px;
	}
}

table.sph-company-table th:nth-child(3),
table.sph-company-table td:nth-child(3) {
	white-space: nowrap;
}

@media (max-width: 767px) {
	table.sph-company-table,
	table.sph-company-table tbody,
	table.sph-company-table tr,
	table.sph-company-table td {
		display: block;
		width: 100%;
		min-width: 0;
	}
	table.sph-company-table thead {
		display: none;
	}
	table.sph-company-table tbody {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	table.sph-company-table tr.trclass {
		background-color: var(--base-3);
		border: 1px solid var(--contrast-3);
		border-radius: 6px;
		padding: 12px;
	}
	table.sph-company-table td.tdclass {
		border: 0;
		padding: 3px 0;
		white-space: normal;
		text-align: left;
	}
	table.sph-company-table td.sph-comp-td-name {
		font-size: 0.96rem;
		padding-bottom: 5px;
	}
	table.sph-company-table td.sph-comp-td-addr {
		font-size: 0.85rem;
		color: var(--contrast-2);
		display: flex;
		flex-direction: column;
		gap: 6px;
	}
	table.sph-company-table td.sph-comp-td-phone {
		padding-top: 8px;
	}
	table.sph-company-table .sph-phone-link,
	table.sph-company-table .sph-comp-map-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-left: 0;
		padding: 7px 12px;
		border-radius: 5px;
		font-size: 0.86rem;
		font-weight: 600;
		text-decoration: none;
	}
	table.sph-company-table .sph-phone-link {
		width: 100%;
		background-color: var(--cta-amber);
		border-color: var(--cta-amber);
		color: #ffffff;
	}
	table.sph-company-table .sph-phone-link:hover {
		background-color: var(--cta-amber-hover);
		color: #ffffff;
	}
	table.sph-company-table .sph-comp-map-link {
		align-self: flex-start;
		background-color: #eef4fb;
		border: 1px solid rgba(22, 89, 150, 0.3);
		color: var(--accent);
	}
}

@media (max-width: 640px) {
	.sph-page-wrap {
		padding: 12px 8px 32px;
	}
	.sph-main-card {
		padding: 14px 10px;
	}
	table.sph-price-table .sph-th-spanne,
	table.sph-price-table .sph-td-spanne {
		display: none;
	}
	.sph-mobile-spanne {
		display: block;
		margin-top: 2px;
		font-size: 0.72rem;
		font-weight: 400;
		color: var(--contrast-2);
		white-space: nowrap;
	}
	table.sph-price-table:not(.sph-rechner-table):not(:has(thead th:nth-child(5))) {
		table-layout: fixed;
	}
	table.sph-price-table:not(.sph-rechner-table) th,
	table.sph-price-table:not(.sph-rechner-table) td {
		padding: 8px 6px;
		font-size: 0.84rem;
	}
	table.sph-price-table:not(.sph-rechner-table) thead th {
		font-size: 0.72rem;
		white-space: normal;
		line-height: 1.2;
	}
	table.sph-price-table:not(.sph-rechner-table) th:first-child,
	table.sph-price-table:not(.sph-rechner-table) td:first-child {
		min-width: 0;
		width: 47%;
	}
	table.sph-price-table:not(.sph-rechner-table) .sph-metal-link {
		overflow-wrap: anywhere;
	}
	table.sph-price-table:not(.sph-rechner-table) tr > th:nth-child(2),
	table.sph-price-table:not(.sph-rechner-table) tr > td:nth-child(2) {
		width: 26%;
	}
	table.sph-price-table:not(.sph-rechner-table) tr > th:last-child,
	table.sph-price-table:not(.sph-rechner-table) tr > td:last-child {
		width: 27%;
	}
	table.sph-price-table:not(.sph-rechner-table) td.sph-td-price strong {
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	table.sph-price-table:not(.sph-rechner-table) th,
	table.sph-price-table:not(.sph-rechner-table) td {
		padding: 7px 5px;
		font-size: 0.79rem;
	}
	table.sph-price-table:not(.sph-rechner-table) thead th {
		font-size: 0.69rem;
	}
	table.sph-price-table:not(.sph-rechner-table) td.sph-td-price strong {
		font-size: 0.86rem;
	}
}

/* AdSense slot containers with lazy collapse */
.mlb-ad-slot {
	min-height: var(--mlb-ad-min-h, 0);
	margin: 20px 0;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	contain: inline-size;
	text-align: center;
}

.mlb-ad-slot.is-collapsed,
.google-auto-placed.is-collapsed,
.sph-sidebar-sticky-ad.is-collapsed,
.sph-sidebar-sticky-ad:has(.mlb-ad-slot.is-collapsed) {
	display: none !important;
	min-height: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 0;
}

.mlb-ad-slot ins.adsbygoogle,
.mlb-ad-slot iframe {
	display: block;
	max-width: 100% !important;
	box-sizing: border-box;
	margin: 0 auto !important;
}

.mlb-ad-slot--after-header,
.mlb-ad-slot--before-footer {
	max-width: var(--container-width);
	margin: 16px auto;
	padding: 0 16px;
}

/* City & Bundesland navigation grid (.gorod_container & .tags-list) */
.gorod_container {
	min-width: 0;
	max-width: 100%;
}

.sph-subgrid-title {
	margin-top: 1.1em;
	margin-bottom: 0.6em;
}

.gorod_container ul,
ul.tags-list,
ul.related-posts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-gap: 8px;
	padding: 0;
	margin: 12px 0 20px;
	list-style-type: none;
}

.gorod_container ul li,
ul.tags-list li,
ul.related-posts li {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.gorod_container ul li a,
ul.tags-list li a,
ul.related-posts li a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 40px;
	padding: 6px 8px;
	text-decoration: none;
	color: var(--contrast);
	background-color: var(--base);
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	text-align: center;
	font-size: 0.84rem;
	line-height: 1.25;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

.gorod_container ul li a:hover,
ul.tags-list li a:hover,
ul.related-posts li a:hover {
	background-color: #e4e7ec;
	border-color: var(--accent);
	color: var(--accent-hover);
}

@media (min-width: 640px) {
	.gorod_container ul,
	ul.tags-list,
	ul.related-posts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-gap: 10px;
	}
	.gorod_container ul li a,
	ul.tags-list li a,
	ul.related-posts li a {
		font-size: 0.9rem;
	}
}

@media (min-width: 1024px) {
	.gorod_container ul,
	ul.tags-list,
	ul.related-posts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Quick City Filter Input */
.sph-city-filter {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	font-size: 0.9375rem;
	margin-bottom: 10px;
	color: var(--contrast);
	background: var(--base-3);
}

.sph-city-filter:focus {
	outline: none;
	border-color: var(--accent);
}

.sph-city-empty {
	padding: 12px;
	background: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	color: var(--contrast-2);
	font-size: 0.9375rem;
	text-align: center;
}

/* Sidebar */
.sph-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	max-width: 100%;
}

.sph-sidebar-title {
	font-size: 1.0625rem;
	font-weight: 600;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--contrast-3);
}

.sph-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sph-sidebar-list li {
	border-bottom: 1px solid var(--base-2);
}

.sph-sidebar-list li:last-child {
	border-bottom: none;
}

.sph-sidebar-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 7px 2px;
	text-decoration: none;
	color: var(--contrast);
	font-size: 0.89rem;
	line-height: 1.3;
}

.sph-sidebar-list a:hover {
	color: var(--accent);
}

.sph-sidebar-badge {
	color: var(--contrast-2);
	font-size: 0.8125rem;
	flex-shrink: 0;
	white-space: nowrap;
}

/* Footer */
.sph-footer {
	background-color: var(--base-3);
	border-top: 1px solid var(--contrast-3);
	padding: 28px 16px;
	color: var(--contrast-2);
	font-size: 0.875rem;
}

.sph-footer-inner {
	max-width: var(--container-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sph-footer-states {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.sph-footer-states a {
	color: var(--contrast-2);
	text-decoration: none;
}

.sph-footer-states a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.sph-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--base-2);
}

.sph-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.sph-footer-legal a {
	color: var(--contrast-2);
	text-decoration: none;
}

.sph-footer-legal a:hover {
	color: var(--accent);
	text-decoration: underline;
}

/* ==========================================================================
   Metal Analytics, Category Cards, KPI Grid & Interactive Schrottrechner
   ========================================================================== */

/* Metal links inside tables */
.sph-metal-link {
	color: var(--contrast);
	text-decoration: none;
	font-weight: 600;
	border-bottom: none;
	transition: color 0.15s ease;
}

.sph-metal-link:hover {
	color: var(--accent);
	text-decoration: underline;
}

.sph-metal-name-line::after,
.sph-td-name-main::after {
	display: none !important;
	content: none !important;
}

.sph-cat-inline-link {
	display: inline-block;
	font-size: 0.8125rem;
	color: var(--accent);
	background: var(--base-2);
	padding: 2px 8px;
	border-radius: 4px;
	text-decoration: none;
}

.sph-cat-inline-link:hover {
	background: #e4e7ec;
	color: var(--accent-hover);
}

.sph-muted-num {
	color: var(--contrast-2);
	font-size: 0.875rem;
}

.sph-trend-up {
	color: #15803d;
}

.sph-trend-down {
	color: #b91c1c;
}

tr.sph-row-highlight td {
	background-color: #eef4fb !important;
}

.sph-active-pill {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--base-3);
	background-color: var(--accent);
	border-radius: 999px;
	vertical-align: middle;
}

.sph-meta-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}

.sph-meta-bar--home {
	width: 100%;
	justify-content: space-between;
	gap: 6px 14px;
	padding: 6px 12px;
	margin-bottom: 10px;
	font-size: 0.84rem;
}

.sph-meta-link {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}

.sph-meta-link:hover {
	text-decoration: underline;
}

/* KPI Grid (2x2 mobile/tablet, 4 cards in 1 row at >=900px) */
.sph-kpi-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 10px 0 12px;
}

@media (max-width: 319px) {
	.sph-kpi-grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 900px) {
	.sph-kpi-grid,
	.sph-kpi-grid.sph-kpi-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 10px;
	}
}

.sph-kpi-card {
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	overflow: hidden;
}

.sph-kpi-label {
	font-size: 0.76rem;
	color: var(--contrast-2);
	font-weight: 500;
	line-height: 1.25;
	overflow-wrap: break-word;
}

.sph-kpi-value {
	font-size: clamp(1.02rem, 1.4vw, 1.18rem);
	font-weight: 700;
	color: var(--contrast);
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
	overflow-wrap: break-word;
}

.sph-kpi-value.sph-trend-up {
	color: #15803d;
}

.sph-kpi-value.sph-trend-down {
	color: #b91c1c;
}

.sph-kpi-grid--3 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sph-kpi-grid--3 > :nth-child(3) {
	grid-column: 1 / -1;
}

@media (min-width: 640px) {
	.sph-kpi-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.sph-kpi-grid--3 > :nth-child(3) {
		grid-column: auto;
	}
}

.sph-kpi-sub {
	font-size: 0.74rem;
	color: var(--contrast-2);
	line-height: 1.25;
	overflow-wrap: break-word;
}

.sph-kpi-sub--flex {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
}

/* Category & Upward Recommendation Cards Grid */
.sph-cat-cards-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 12px 0 20px;
}

@media (min-width: 560px) {
	.sph-cat-cards-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

.sph-cat-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	text-decoration: none;
	color: var(--contrast);
	transition: border-color 0.15s ease, background-color 0.15s ease;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.sph-cat-card:hover {
	border-color: var(--accent);
	background-color: #eef4fb;
}

.sph-cat-card-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 6px 8px;
	min-width: 0;
}

.sph-cat-card-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--contrast);
	line-height: 1.3;
	min-width: 0;
	flex: 1 1 130px;
	overflow-wrap: break-word;
	word-break: normal;
}

.sph-cat-card-badge {
	font-size: 0.72rem;
	color: var(--contrast-2);
	background-color: var(--base-3);
	border: 1px solid var(--contrast-3);
	padding: 2px 7px;
	border-radius: 4px;
	line-height: 1.25;
	max-width: 100%;
	overflow-wrap: break-word;
}

.sph-cat-card-prices {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 8px;
	padding-top: 6px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	font-variant-numeric: tabular-nums;
	min-width: 0;
}

.sph-cat-avg {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--accent);
}

.sph-cat-range {
	font-size: 0.78rem;
	color: var(--contrast-2);
}

/* Search / Filter Input Bar */
.sph-filter-bar {
	margin: 10px 0 12px;
}

.sph-filter-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	font-size: 0.9375rem;
	background-color: var(--base-2);
	color: var(--contrast);
}

.sph-filter-input:focus {
	outline: none;
	border-color: var(--accent);
	background-color: var(--base-3);
}

/* Inline Calculator & Multi-Rechner */
.sph-calc-box,
.sph-rechner-card {
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	padding: 16px;
	margin: 12px 0 20px;
}

.sph-calc-controls {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

@media (min-width: 640px) {
	.sph-calc-controls {
		grid-template-columns: 1.6fr 1fr;
	}
}

.sph-calc-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.sph-calc-field label,
.sph-rechner-region label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--contrast-2);
}

.sph-calc-select,
.sph-calc-input,
.sph-calc-unit {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 9px 10px;
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	background-color: var(--base-3);
	color: var(--contrast);
	font-size: 0.9375rem;
	text-overflow: ellipsis;
}

.sph-calc-input-group {
	display: grid;
	grid-template-columns: 1fr 110px;
	gap: 8px;
}

.sph-calc-results,
.sph-rechner-summary {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	padding-top: 14px;
	border-top: 1px solid var(--contrast-3);
	align-items: center;
}

@media (min-width: 640px) {
	.sph-calc-results,
	.sph-rechner-summary {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sph-calc-res-item,
.sph-rechner-sum-box {
	background-color: var(--base-3);
	border: 1px solid var(--contrast-3);
	border-radius: 5px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sph-rechner-sum-primary {
	border-color: var(--accent);
	background-color: #eef4fb;
}

.sph-calc-res-label {
	font-size: 0.75rem;
	color: var(--contrast-2);
}

.sph-calc-res-val {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.sph-calc-res-sub,
.sph-rechner-sum-weight {
	font-size: 1rem;
	font-weight: 600;
	color: var(--contrast);
	font-variant-numeric: tabular-nums;
}

.sph-calc-res-link a {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}

.sph-calc-res-link a:hover {
	text-decoration: underline;
}

/* Multi-Rechner UX V2 (Card-based responsive layout, 1-click presets, live search) */
.sph-rechner-lead {
	margin: 0 0 12px;
	font-size: 0.92rem;
	color: var(--contrast-2);
	line-height: 1.45;
}

.sph-rechner-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--contrast-3);
}

@media (min-width: 768px) {
	.sph-rechner-toolbar {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
		align-items: start;
	}
}

.sph-rechner-region,
.sph-rechner-search-box {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.sph-rechner-region label,
.sph-rechner-search-box label,
.sph-rechner-presets-label,
.sph-rechner-positions-head {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--contrast);
}

.sph-rechner-region-meta {
	font-size: 0.75rem;
	color: var(--contrast-2);
	line-height: 1.35;
}

.sph-rechner-region-meta a {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}

.sph-rechner-region-meta a:hover {
	text-decoration: underline;
}

.sph-rechner-search-wrap {
	position: relative;
	width: 100%;
}

.sph-rechner-search-input {
	width: 100%;
	box-sizing: border-box;
}

.sph-rechner-search-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 40;
	background: var(--base-3);
	border: 1px solid var(--accent);
	border-radius: 6px;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
	max-height: 270px;
	overflow-y: auto;
}

.sph-search-res-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 11px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--base-2);
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.83rem;
	color: var(--contrast);
}

.sph-search-res-item:last-child {
	border-bottom: 0;
}

.sph-search-res-item:hover {
	background-color: #eef4fb;
}

.sph-search-res-title small {
	color: var(--contrast-2);
	font-weight: 400;
}

.sph-search-res-price {
	color: var(--accent);
	white-space: nowrap;
	font-size: 0.83rem;
}

.sph-search-res-empty {
	padding: 10px 12px;
	font-size: 0.82rem;
	color: var(--contrast-2);
}

/* 1-Click Quick Preset Pills */
.sph-rechner-presets {
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--contrast-3);
}

.sph-rechner-presets-label {
	display: block;
	margin-bottom: 8px;
}

.sph-rechner-preset-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sph-preset-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	background-color: var(--base-3);
	border: 1px solid var(--contrast-3);
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.78rem;
	color: var(--contrast);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sph-preset-pill:hover {
	border-color: var(--accent);
	background-color: #eef4fb;
}

.sph-preset-pill.is-active-preset {
	border-color: var(--accent);
	background-color: #eef4fb;
}

.sph-preset-plus {
	color: var(--accent);
	font-weight: 700;
}

.sph-preset-price {
	color: var(--accent);
	font-weight: 700;
	font-size: 0.75rem;
}

/* Responsive Position Cards */
.sph-rechner-positions-head {
	margin-bottom: 8px;
}

.sph-rechner-items-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}

.sph-calc-pos-card {
	background-color: var(--base-3);
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	padding: 12px;
}

.sph-calc-pos-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

@media (min-width: 768px) {
	.sph-calc-pos-main {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.25fr) minmax(145px, 0.9fr) 32px;
		align-items: center;
		gap: 12px;
	}
}

.sph-calc-pos-label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.sph-calc-pos-num {
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--contrast-2);
}

.sph-calc-pos-link {
	font-size: 0.74rem;
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
}

.sph-calc-pos-link:hover {
	text-decoration: underline;
}

.sph-calc-pos-unitprice {
	margin-top: 5px;
	font-size: 0.75rem;
	color: var(--contrast-2);
	line-height: 1.3;
}

.sph-calc-pos-sublabel {
	display: block;
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--contrast-2);
	margin-bottom: 4px;
}

.sph-qty-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}

.sph-qty-chip {
	padding: 2px 7px;
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.71rem;
	font-weight: 600;
	color: var(--contrast-2);
	cursor: pointer;
}

.sph-qty-chip:hover,
.sph-qty-chip.is-active {
	background-color: #eef4fb;
	border-color: var(--accent);
	color: var(--accent);
}

.sph-calc-pos-result {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	background-color: #f8fafc;
	border: 1px solid var(--contrast-3);
	border-radius: 5px;
	text-align: right;
}

@media (max-width: 767px) {
	.sph-calc-pos-card {
		position: relative;
		padding: 11px 10px;
	}
	.sph-calc-pos-del {
		position: absolute;
		top: 8px;
		right: 8px;
	}
	.sph-calc-pos-label-row {
		padding-right: 34px;
	}
	.sph-calc-pos-result {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: baseline;
		text-align: left;
	}
}

.sph-calc-pos-res-label {
	font-size: 0.71rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--contrast-2);
}

.sph-calc-pos-res-val {
	font-size: 1.08rem;
	font-weight: 700;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.sph-calc-pos-res-range {
	font-size: 0.72rem;
	color: var(--contrast-2);
	font-variant-numeric: tabular-nums;
	width: 100%;
}

/* Action Buttons & Footer */
.sph-rechner-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.sph-rechner-actions-right {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sph-btn-add {
	background-color: var(--cta-amber);
	color: var(--base-3);
	border: 1px solid var(--cta-amber);
	border-radius: 4px;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.sph-btn-add:hover {
	background-color: var(--cta-amber-hover);
	border-color: var(--cta-amber-hover);
}

.sph-rechner-sum-sub {
	display: block;
	margin-top: 2px;
	font-size: 0.72rem;
	color: var(--contrast-2);
}

.sph-rechner-tier-hint {
	margin-top: 12px;
	padding: 10px 12px;
	background-color: var(--base-3);
	border-left: 3px solid var(--accent);
	border-radius: 4px;
	font-size: 0.8125rem;
	color: var(--contrast);
	line-height: 1.45;
}

.sph-rechner-tier-hint a {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}

.sph-rechner-tier-hint a:hover {
	text-decoration: underline;
}

.sph-btn-del {
	background: transparent;
	border: 1px solid var(--contrast-3);
	color: var(--contrast-2);
	border-radius: 4px;
	width: 28px;
	height: 28px;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.sph-btn-del:hover:not(:disabled) {
	background: #fee2e2;
	color: #b91c1c;
	border-color: #fca5a5;
}

.sph-btn-del:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.sph-ref-trend-calc {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.sph-ref-add-btn {
	padding: 2px 7px;
	background-color: #eef4fb;
	border: 1px solid rgba(30, 115, 190, 0.35);
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	white-space: nowrap;
}

.sph-ref-add-btn:hover {
	background-color: var(--accent);
	color: var(--base-3);
}

/* Regional Matrix Box on Metals Hub */
.sph-matrix-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 0 20px;
}

.sph-matrix-row {
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	padding: 12px 14px;
}

.sph-matrix-head {
	margin-bottom: 8px;
}

.sph-matrix-head a {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--contrast);
	text-decoration: none;
}

.sph-matrix-head a:hover {
	color: var(--accent);
}

.sph-matrix-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sph-matrix-links a {
	display: inline-block;
	padding: 4px 8px;
	font-size: 0.78rem;
	background-color: var(--base-3);
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	color: var(--contrast);
	text-decoration: none;
}

.sph-matrix-links a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* Sidebar CTA buttons */
.sph-sidebar-cta-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.sph-sidebar-cta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 9px 12px;
	background-color: var(--cta-amber);
	color: var(--base-3) !important;
	border-radius: 5px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.sph-sidebar-cta:hover {
	background-color: var(--cta-amber-hover);
}

.sph-sidebar-cta-secondary {
	margin-top: 10px;
	background-color: var(--base-2);
	color: var(--contrast) !important;
	border: 1px solid var(--contrast-3);
}

.sph-sidebar-cta-secondary:hover {
	background-color: #e4e7ec;
	border-color: var(--accent);
}

/* 6-card KPI Grid on Homepage (2 cols mobile, 3 cols desktop) */
@media (min-width: 720px) {
	.sph-kpi-grid.sph-kpi-grid--6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}
}

.sph-kpi-card--link {
	text-decoration: none;
	color: var(--contrast);
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.sph-kpi-card--link:hover {
	border-color: var(--accent);
	background-color: #eef4fb;
}

.sph-kpi-card--link:hover .sph-kpi-value {
	color: var(--accent);
}

/* Quick Jump Pills & Live Table Dual Search Bar */
.sph-quick-bar {
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	padding: 10px 12px;
	margin: 10px 0 12px;
}

.sph-dual-search-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-bottom: 8px;
}

@media (min-width: 640px) {
	.sph-dual-search-row {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
}

.sph-quick-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 0;
}

.sph-quick-pill {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 10px;
	background-color: var(--base-3);
	border: 1px solid var(--contrast-3);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--contrast);
	text-decoration: none;
	line-height: 1.2;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.sph-quick-pill:hover {
	border-color: var(--accent);
	color: var(--accent);
	background-color: #eef4fb;
}

@media (max-width: 767px) {
	.sph-quick-pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 2px;
	}
	.sph-quick-pills::-webkit-scrollbar {
		display: none;
	}
	.sph-quick-pill {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

.sph-filter-bar--home {
	margin: 0;
	width: 100%;
}

.sph-filter-bar--home .sph-filter-input {
	background-color: var(--base-3);
	padding: 8px 12px;
	font-size: 0.88rem;
}

.sph-dual-search-row .sph-loc-search-input {
	background-color: var(--base-3);
	padding: 8px 12px;
	font-size: 0.88rem;
}

/* Docked Table Toolbar, Single Section Head Bar, Below-Table SEO Note & Compact 29-Category Grid */
.sph-table-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	margin: 10px 0 10px;
	background-color: #f8fafc;
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	font-size: 0.82rem;
	color: var(--contrast-2);
}

.sph-table-toolbar-label {
	white-space: nowrap;
}

.sph-table-toolbar-label strong {
	color: var(--contrast);
}

.sph-table-toolbar .sph-seg-btn {
	min-height: 30px;
	padding: 5px 8px;
	font-size: 0.77rem;
}

.sph-sec-head-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	margin: 12px 0 6px;
}

.sph-sec-head-bar h2,
.sph-sec-head-bar h3 {
	margin: 0;
	font-size: clamp(1.1rem, 1.7vw, 1.32rem);
}

.sph-sec-cat-badge {
	display: inline-block;
	font-size: 0.73rem;
	font-weight: 600;
	color: var(--contrast-2);
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	padding: 2px 9px;
	border-radius: 999px;
	white-space: nowrap;
}

.sph-price-section > .sph-table-wrap {
	margin-top: 6px;
	margin-bottom: 8px;
}

.sph-section-note {
	font-size: 0.86rem;
	color: var(--contrast-2);
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 12px 15px;
	border-radius: 6px;
	margin: 10px 0 16px;
	line-height: 1.55;
}

.sph-section-note p {
	margin: 0;
}

.sph-section-note a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sph-section-note a:hover {
	color: var(--accent-hover);
}

.sph-cat-compact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	margin: 10px 0 18px;
}

@media (min-width: 540px) {
	.sph-cat-compact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}
}

@media (min-width: 860px) {
	.sph-cat-compact-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}
}

.sph-cat-compact-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 10px;
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 5px;
	text-decoration: none;
	color: var(--contrast);
	font-size: 0.8125rem;
	line-height: 1.25;
	min-width: 0;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sph-cat-compact-item:hover {
	border-color: var(--accent);
	background-color: #eef4fb;
}

.sph-cat-compact-item span {
	font-weight: 500;
	color: var(--contrast);
	min-width: 0;
	overflow-wrap: break-word;
}

.sph-cat-compact-item strong {
	font-weight: 700;
	font-size: 0.77rem;
	color: var(--accent);
	white-space: nowrap;
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}

/* Price Factors Section (#sec-preisbildung) */
.sph-factors-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 12px 0 20px;
}

@media (min-width: 768px) {
	.sph-factors-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sph-factor-card {
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	padding: 14px 16px;
}

.sph-factor-card h3 {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 0.98rem;
	color: var(--contrast);
}

.sph-factor-card p {
	margin-bottom: 0;
	font-size: 0.89rem;
	line-height: 1.55;
	color: var(--contrast-2);
}

/* Table Trend & Vormonat column (stacked badge + Vormonat subtitle across all viewports) */
td.sph-td-trend {
	white-space: nowrap;
	vertical-align: middle;
}

.sph-trend-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	line-height: 1.2;
}

.sph-trend-badge {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 4px;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.25;
}

.sph-trend-badge.sph-trend-up {
	background-color: #dcfce7;
	color: #15803d;
}

.sph-trend-badge.sph-trend-down {
	background-color: #fee2e2;
	color: #b91c1c;
}

.sph-trend-badge.sph-trend-neutral {
	background-color: #f1f5f9;
	color: #475569;
}

.sph-trend-prev {
	display: block;
	font-size: 0.74rem;
	color: var(--contrast-2);
	font-weight: 400;
}

@media (max-width: 640px) {
	.sph-trend-badge {
		padding: 2px 5px;
		font-size: 0.75rem;
	}
	.sph-trend-prev {
		font-size: 0.68rem;
	}
}

/* Company Table Interactive Links (Phone, Map Route, City Badge) */
.sph-phone-link {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	background-color: #eef4fb;
	border: 1px solid rgba(30, 115, 190, 0.3);
	border-radius: 4px;
	color: var(--accent);
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sph-phone-link:hover {
	background-color: var(--accent);
	color: var(--base-3);
}

.sph-comp-city-link {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	background-color: var(--base-2);
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
	font-size: 0.74rem;
	font-weight: 500;
	color: var(--contrast-2);
	text-decoration: none;
	vertical-align: middle;
}

.sph-comp-city-link:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.sph-comp-map-link {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.76rem;
	font-weight: 500;
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}

.sph-comp-map-link:hover {
	text-decoration: underline;
}

/* Active Bundesland highlight in .tags-list & Sidebar */
ul.tags-list li.is-active-state a {
	background-color: #eef4fb;
	border-color: var(--accent);
	color: var(--accent);
	font-weight: 600;
}

.sph-sidebar-list li.is-active-state a {
	color: var(--accent);
	font-weight: 600;
}

.sph-sidebar-list li.is-active-state .sph-sidebar-badge {
	background-color: var(--accent);
	color: var(--base-3);
	padding: 1px 6px;
	border-radius: 999px;
	font-size: 0.7rem;
}

/* Regional data badge in #sec-bundeslaender & 6-Month SVG History Chart */
.sph-reg-badge,
.sph-source-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	background-color: #ecfdf3;
	border: 1px solid #abefc6;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: 600;
	color: #067647;
	vertical-align: middle;
	line-height: 1.25;
}

.sph-source-badge {
	background-color: #f1f5f9;
	border-color: #cbd5e1;
	color: #334155;
}

.sph-history-chart-wrap {
	margin: 12px 0 14px;
	padding: 12px 10px 6px;
	background-color: #fafbfc;
	border: 1px solid var(--contrast-3);
	border-radius: 4px;
}

.sph-history-svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 200px;
	overflow: visible;
}

@media (max-width: 640px) {
	.sph-reg-badge,
	.sph-source-badge {
		display: inline-block;
		margin-left: 4px;
		padding: 1px 5px;
		font-size: 0.68rem;
	}
	.sph-history-chart-wrap {
		padding: 8px 6px 4px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.sph-history-svg {
		min-width: 520px;
	}
}

/* === WAVE 2: DSPI/LME PULSE, CONTROLS, SYNONYMS, LEAFLET MAP, FAQ, TRUST, CALC V3 & PRINT === */
.sph-lme-pulse,
.sph-dspi-widget {
	background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 14px 0 18px;
}
.sph-lme-pulse-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}
.sph-lme-eyebrow {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #1e40af;
	margin-bottom: 3px;
}
.sph-lme-dspi-val-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.sph-lme-dspi-num {
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
}
.sph-lme-signal {
	font-size: 0.78rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid transparent;
}
.sph-lme-signal.is-bullish {
	background: #dcfce7;
	color: #166534;
	border-color: #86efac;
}
.sph-lme-signal.is-bearish {
	background: #fee2e2;
	color: #991b1b;
	border-color: #fca5a5;
}
.sph-lme-signal.is-neutral {
	background: #f1f5f9;
	color: #334155;
	border-color: #cbd5e1;
}
.sph-lme-signal-desc {
	margin: 5px 0 0;
	font-size: 0.86rem;
	color: #334155;
}
.sph-lme-method-link {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}
.sph-lme-method-link:hover {
	color: var(--accent-hover);
	text-decoration: underline;
}
.sph-lme-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
@media (min-width: 720px) {
	.sph-lme-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.sph-lme-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.sph-lme-card:hover {
	border-color: var(--accent);
	box-shadow: 0 4px 12px rgba(22, 89, 150, 0.10);
}
.sph-lme-card-title {
	font-size: 0.75rem;
	color: #475569;
	font-weight: 600;
}
.sph-lme-card-price {
	font-size: 0.96rem;
	color: #0f172a;
	font-weight: 800;
}
.sph-lme-card-ton {
	font-size: 0.72rem;
	color: var(--contrast-2);
	margin-bottom: 2px;
}

/* Compact 1-line DSPI & LME ATF Ticker */
.sph-dspi-ticker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	padding: 8px 12px;
	margin: 10px 0 12px;
	background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.84rem;
	color: #0f172a;
}
.sph-dspi-ticker-main {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}
.sph-dspi-ticker-brand {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0f172a;
	text-decoration: none;
}
.sph-dspi-ticker-brand:hover {
	color: var(--accent);
}
.sph-dspi-ticker-spot {
	color: #334155;
	text-decoration: none;
	font-size: 0.82rem;
	padding: 2px 7px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
}
.sph-dspi-ticker-spot:hover {
	border-color: var(--accent);
	color: var(--accent);
}
.sph-dspi-ticker-links,
.sph-lme-head-links {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}
.sph-dspi-ticker-links a,
.sph-dspi-ticker-link {
	font-weight: 700;
	font-size: 0.82rem;
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}
.sph-dspi-ticker-links a:hover,
.sph-dspi-ticker-link:hover {
	color: var(--accent-hover);
	text-decoration: underline;
}
.sph-section-cat-link {
	margin: 0;
	font-size: 0.84rem;
}
.sph-section-note .sph-section-cat-link--in-note {
	margin-top: 10px;
	padding-top: 9px;
	border-top: 1px solid #e2e8f0;
}
.sph-section-cat-link a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}
.sph-section-cat-link a:hover {
	color: var(--accent-hover);
	text-decoration: underline;
}
.sph-dspi-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.sph-dspi-main {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
}
.sph-dspi-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
}
.sph-dspi-val {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
}
.sph-dspi-delta {
	font-size: 0.85rem;
	font-weight: 700;
}
.sph-dspi-signal {
	font-size: 0.78rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid transparent;
}
.sph-dspi-signal.is-bullish {
	background: #dcfce7;
	color: #166534;
	border-color: #86efac;
}
.sph-dspi-signal.is-bearish {
	background: #fee2e2;
	color: #991b1b;
	border-color: #fca5a5;
}
.sph-dspi-signal.is-neutral {
	background: #f1f5f9;
	color: #334155;
	border-color: #cbd5e1;
}
.sph-dspi-desc {
	margin: 0 0 10px;
	font-size: 0.88rem;
	color: #334155;
}
.sph-lme-ticker-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.sph-lme-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 5px 9px;
	font-size: 0.8rem;
}
.sph-lme-pill-name {
	color: #475569;
	font-weight: 600;
}
.sph-lme-pill-val {
	color: #0f172a;
	font-weight: 700;
}
.sph-dspi-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	margin-top: 8px;
	font-size: 0.76rem;
	color: var(--contrast-2);
}

.sph-lme-check-card {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 16px;
}
.sph-lme-check-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 12px;
	margin: 10px 0;
}
.sph-lme-metric {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.sph-lme-leadlag {
	margin: 8px 0 0;
	font-size: 0.88rem;
	color: #1e293b;
}

.sph-table-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
}
.sph-loc-search-wrap {
	position: relative;
	flex: 1 1 auto;
	max-width: none;
	width: 100%;
	margin: 0;
}
.sph-loc-suggest-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 40;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
	max-height: 290px;
	overflow-y: auto;
}
.sph-loc-suggest-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	text-decoration: none;
	color: #0f172a;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.88rem;
}
.sph-loc-suggest-item:hover {
	background: #eff6ff;
}
.sph-loc-suggest-item span {
	font-size: 0.78rem;
	color: var(--contrast-2);
}
.sph-loc-suggest-empty {
	padding: 10px 12px;
	font-size: 0.85rem;
	color: var(--contrast-2);
}
.sph-controls-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.sph-seg-group {
	display: inline-flex;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	padding: 2px;
}
.sph-seg-btn {
	border: 0;
	background: transparent;
	color: #334155;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	min-height: 36px;
	padding: 7px 10px;
	border-radius: 5px;
	cursor: pointer;
	line-height: 1.2;
}
.sph-seg-btn.is-active {
	background: var(--accent);
	color: #ffffff;
}

.sph-td-name-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sph-row-syn-hint {
	display: block;
	font-size: 0.74rem;
	color: var(--contrast-2);
	line-height: 1.25;
}

.sph-dealers-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 12px 0;
}
.sph-dealers-search {
	display: flex;
	flex: 1 1 280px;
	gap: 6px;
	max-width: 440px;
}
.sph-dealers-search .sph-filter-input {
	flex: 1 1 auto;
}
.sph-dealers-search .sph-btn {
	white-space: nowrap;
	flex-shrink: 0;
}
.sph-dealers-status {
	font-size: 0.86rem;
	color: #1e3a8a;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	padding: 8px 12px;
	margin-bottom: 10px;
}
.sph-dealers-map-wrap {
	position: relative;
	z-index: 1;
	isolation: isolate;
	margin-bottom: 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	overflow: hidden;
}
.sph-dealers-map {
	width: 100%;
	height: 360px;
	background: #f1f5f9;
}
.sph-dealer-minimap {
	width: 100%;
	height: 220px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	z-index: 1;
	isolation: isolate;
	background: #f1f5f9;
	margin-top: 10px;
}
.sph-comp-dist-badge {
	display: inline-block;
	margin-left: 5px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	font-size: 0.72rem;
	font-weight: 600;
}

.sph-criteria-grid,
.sph-trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
	margin-top: 10px;
}
@media (min-width: 720px) {
	.sph-trust-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
	.sph-trust-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.sph-trust-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px;
}
.sph-trust-card h2,
.sph-trust-card h3,
.sph-criteria-col h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	color: #0f172a;
}
.sph-trust-list {
	margin: 0;
	padding-left: 18px;
	line-height: 1.55;
}
.sph-trust-list li {
	margin-bottom: 6px;
}
.sph-syn-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 12px;
}
.sph-syn-chip {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
	border-radius: 999px;
	padding: 3px 9px;
	font-size: 0.78rem;
	font-weight: 600;
}
.sph-info-box,
.sph-notice-box {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-left: 4px solid var(--accent);
	border-radius: 8px;
	padding: 14px 16px;
}
.sph-notice-box {
	border-left-color: #d97706;
	background: #fffbeb;
}
.sph-cta-box {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 16px;
}
.sph-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.sph-chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 6px;
	font-size: 0.78rem;
	color: #475569;
}
.sph-leg-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.sph-leg-line {
	display: inline-block;
	width: 18px;
	height: 0;
	border-top: 3px solid var(--accent);
}
.sph-leg-line.is-lme {
	border-top: 2px dashed #d97706;
}
.sph-leg-band {
	display: inline-block;
	width: 16px;
	height: 10px;
	background: rgba(22, 89, 150, 0.2);
	border-radius: 2px;
}

.sph-faq-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sph-faq-item {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #ffffff;
	padding: 10px 14px;
}
.sph-faq-q {
	cursor: pointer;
	font-weight: 700;
	color: #0f172a;
	font-size: 0.96rem;
}
.sph-faq-answer {
	margin-top: 8px;
	color: #334155;
	font-size: 0.92rem;
	line-height: 1.55;
}
.sph-faq-answer p {
	margin: 0;
}

/* Calculator v3 */
.sph-calc-top-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}
.sph-calc-top-bar--2x2 {
	grid-template-columns: 1fr;
}
@media (min-width: 640px) {
	.sph-calc-top-bar--2x2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.sph-calc-top-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.sph-calc-top-field--wide {
	grid-column: 1 / -1;
}
.sph-calc-top-field label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #334155;
}
.sph-calc-top-field select,
.sph-calc-top-field input {
	font-family: inherit;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	font-size: 0.92rem;
	background: #ffffff;
	color: var(--contrast);
	width: 100%;
	min-width: 0;
}
.sph-calc-tabs {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 14px;
}
.sph-calc-tab {
	border: 0;
	background: transparent;
	padding: 9px 14px;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.92rem;
	color: #475569;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}
.sph-calc-tab.is-active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}
.sph-calc-syn-bar {
	margin-bottom: 12px;
}
.sph-calc-syn-hits {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.sph-syn-hit-btn {
	background: #eff6ff;
	border: 1px solid #93c5fd;
	color: #1d4ed8;
	border-radius: 6px;
	padding: 6px 10px;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
}
.sph-syn-hit-btn:hover {
	background: var(--accent);
	color: #ffffff;
}
.sph-calc-rows-table {
	width: 100%;
	border-collapse: collapse;
}
.sph-calc-rows-table th,
.sph-calc-rows-table td {
	padding: 8px 6px;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: middle;
}
.sph-calc-rows-table td.sph-calc-row-rate,
.sph-calc-rows-table td.sph-calc-row-sub {
	white-space: nowrap;
}
.sph-calc-sel-mid,
.sph-calc-inp-qty,
.sph-calc-sel-unit {
	width: 100%;
	font-family: inherit;
	padding: 7px 8px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 0.88rem;
}
.sph-calc-inp-qty {
	max-width: 96px;
}
.sph-calc-del-btn {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #b91c1c;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
}
.sph-calc-del-btn:hover {
	background: #fee2e2;
	border-color: #f87171;
}
.sph-calc-row-actions,
.sph-calc-share-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}
.sph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 7px;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.sph-btn-small {
	padding: 7px 12px;
	font-size: 0.82rem;
	background: var(--accent);
	color: #ffffff;
}
.sph-btn-small:hover {
	background: var(--accent-hover);
	color: #ffffff;
}
.sph-btn-primary {
	background: var(--accent);
	color: #ffffff;
}
.sph-btn-primary:hover {
	background: var(--accent-hover);
	color: #ffffff;
}
.sph-btn-secondary {
	background: #f1f5f9;
	color: #0f172a;
	border-color: #cbd5e1;
}
.sph-btn-secondary:hover {
	background: #e2e8f0;
	border-color: var(--accent);
	color: var(--accent);
}
.sph-btn-whatsapp {
	background: #15803d;
	color: #ffffff;
}
.sph-btn-whatsapp:hover {
	background: #166534;
	color: #ffffff;
}
.sph-presets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 10px;
}
.sph-preset-card {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
}
.sph-preset-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}
.sph-preset-top h3 {
	margin: 0;
	font-size: 0.92rem;
	color: #0f172a;
}
.sph-preset-val {
	font-weight: 800;
	color: var(--accent);
	white-space: nowrap;
}
.sph-preset-sub {
	margin: 0;
	font-size: 0.78rem;
	color: #475569;
}
.sph-calc-summary {
	margin-top: 16px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 14px 16px;
}
.sph-calc-print-head {
	display: none;
}
.sph-calc-summary-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
}
.sph-sum-kpi {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.sph-sum-kpi.is-highlight {
	border-color: var(--accent);
	background: #eff6ff;
}

@media (max-width: 767px) {
	.sph-main-card table.sph-calc-rows-table,
	.sph-main-card table.sph-calc-rows-table tbody {
		display: block;
		border: 0;
	}
	.sph-main-card table.sph-calc-rows-table thead {
		display: none;
	}
	.sph-main-card table.sph-calc-rows-table tbody {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.sph-main-card table.sph-calc-rows-table tr {
		position: relative;
		display: grid;
		grid-template-columns: 1fr 110px;
		gap: 8px;
		padding: 12px;
		background: #f8fafc;
		border: 1px solid var(--contrast-3);
		border-radius: 8px;
	}
	.sph-main-card table.sph-calc-rows-table td {
		border: 0;
		padding: 0;
		background: transparent;
	}
	.sph-main-card table.sph-calc-rows-table td:first-child {
		grid-column: 1 / -1;
		padding-right: 42px;
	}
	.sph-main-card table.sph-calc-rows-table .sph-calc-inp-qty {
		max-width: none;
	}
	.sph-main-card table.sph-calc-rows-table td.sph-calc-row-rate,
	.sph-main-card table.sph-calc-rows-table td.sph-calc-row-sub {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		padding-top: 6px;
		border-top: 1px solid var(--contrast-3);
		font-size: 0.9rem;
	}
	.sph-main-card table.sph-calc-rows-table td.sph-calc-row-sub {
		align-items: flex-end;
		text-align: right;
	}
	.sph-main-card table.sph-calc-rows-table td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		font-weight: 600;
		color: var(--contrast-2);
		margin-bottom: 2px;
	}
	.sph-main-card table.sph-calc-rows-table td:first-child::before,
	.sph-main-card table.sph-calc-rows-table td:last-child::before {
		display: none;
	}
	.sph-main-card table.sph-calc-rows-table td:last-child {
		position: absolute;
		top: 10px;
		right: 10px;
	}
}

@media print {
	header.sph-header,
	aside.sph-sidebar,
	footer.sph-footer,
	.sph-breadcrumbs,
	.sph-calc-tabs,
	.sph-calc-syn-bar,
	.sph-calc-row-actions,
	.sph-calc-share-actions,
	.sph-calc-del-btn,
	.mlb-ad-slot {
		display: none !important;
	}
	.sph-page-wrap {
		display: block !important;
	}
	.sph-main-card {
		box-shadow: none !important;
		border: 0 !important;
		padding: 0 !important;
	}
	.sph-calc-print-head {
		display: flex;
		justify-content: space-between;
		margin-bottom: 10px;
		padding-bottom: 6px;
		border-bottom: 1px solid #cbd5e1;
		font-size: 0.86rem;
	}
}

/* === WAVE 3: ITEMS, DEALER PROFILES, B2B PORTAL, LEXIKON, FOOTER TOOLS === */
.sph-items-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin-top: 12px;
}
.sph-item-hub-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 13px 14px;
	text-decoration: none;
	color: #0f172a;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sph-item-hub-card:hover {
	border-color: var(--accent);
	box-shadow: 0 6px 18px rgba(22, 89, 150, 0.10);
}
.sph-item-hub-prices {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}
.sph-item-price-main {
	display: block;
	font-size: 1.08rem;
	font-weight: 800;
	color: #0f172a;
}
.sph-b2b-conv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	align-items: start;
	gap: 12px;
	margin-top: 16px;
}
.sph-b2b-box {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 15px 16px;
}
.sph-b2b-box.is-bulk {
	border-left: 4px solid #b45309;
	background: #fffbeb;
}
.sph-b2b-box.is-parcel {
	border-left: 4px solid var(--accent);
}
.sph-b2b-box h3 {
	margin: 0 0 6px;
	font-size: 1rem;
	color: #0f172a;
}
.sph-b2b-form {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.sph-b2b-form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
}
.sph-b2b-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.84rem;
	font-weight: 700;
	color: #334155;
}
.sph-b2b-form label.sph-b2b-check {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding-top: 18px;
}
.sph-b2b-form input[type="text"],
.sph-b2b-form input[type="email"],
.sph-b2b-form select,
.sph-b2b-form textarea {
	font-family: inherit;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 0.9rem;
	background: #ffffff;
}
.sph-b2b-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.sph-b2b-status {
	font-size: 0.86rem;
	font-weight: 700;
	color: #166534;
}
.sph-b2b-status.is-error {
	color: #b91c1c;
}
.sph-lexikon-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}
.sph-lex-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 13px 15px;
	scroll-margin-top: 20px;
}
.sph-lex-card-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}
.sph-lex-card-head h2,
.sph-lex-card-head h3 {
	margin: 0;
	font-size: 1.05rem;
	color: #0f172a;
}
.sph-lex-price-pill {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
}
.sph-lex-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	font-size: 0.82rem;
	color: #475569;
	margin-top: 6px;
}
.sph-comp-profile-link {
	color: #0f172a;
	text-decoration: underline;
	text-decoration-color: #cbd5e1;
	text-underline-offset: 2px;
}
.sph-comp-profile-link:hover {
	color: var(--accent);
	text-decoration-color: var(--accent);
}
.sph-state-pills-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* Footer Tools & 4-Column Structure (WCAG AA/AAA on #ffffff) */
.sph-footer-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 12px 0;
	margin: 4px 0;
	border-top: 1px solid var(--contrast-3);
	border-bottom: 1px solid var(--contrast-3);
}
.sph-footer-tools a {
	color: var(--contrast-2);
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
}
.sph-footer-tools a:hover {
	color: var(--accent);
	text-decoration: underline;
}
.sph-footer-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
	padding: 14px 0;
	border-top: 1px solid var(--contrast-3);
	border-bottom: 1px solid var(--contrast-3);
}
@media (min-width: 768px) {
	.sph-footer-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.sph-footer-col-title {
	margin: 0 0 8px;
	font-size: 0.84rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--contrast);
}
.sph-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.sph-footer-col a {
	color: var(--contrast-2);
	font-size: 0.85rem;
	text-decoration: none;
}
.sph-footer-col a:hover {
	color: var(--accent);
	text-decoration: underline;
}

/* Wave 4: Tools Showcase, TL;DR Box, A-Z Bar, Local Chips & Compact Sidebar Details */
.sph-tools-showcase {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 12px 0 20px;
}
@media (min-width: 640px) {
	.sph-tools-showcase {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.sph-tool-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 6px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-left: 4px solid var(--accent);
	border-radius: 8px;
	text-decoration: none;
	color: var(--contrast);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sph-tool-card:hover {
	border-color: var(--accent);
	background: #eef4fb;
}
.sph-tool-card strong {
	font-size: 0.98rem;
	color: #0f172a;
}
.sph-tool-card p {
	margin: 0;
	font-size: 0.86rem;
	color: var(--contrast-2);
	line-height: 1.45;
}
.sph-tool-card-cta {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--accent);
}
.sph-tldr-box {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-left: 4px solid var(--accent);
	border-radius: 8px;
	padding: 14px 16px;
	margin: 14px 0 20px;
}
.sph-tldr-title {
	margin: 0 0 8px;
	font-size: 0.96rem;
	font-weight: 700;
	color: #0f172a;
}
.sph-tldr-box ul {
	margin: 0;
	padding-left: 18px;
	font-size: 0.9rem;
	color: #1e293b;
}
.sph-tldr-box li {
	margin-bottom: 5px;
}
.sph-tldr-box li:last-child {
	margin-bottom: 0;
}
.sph-az-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 10px 0 16px;
}
.sph-az-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 34px;
	padding: 4px 8px;
	background: var(--base-3);
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--contrast);
	text-decoration: none;
}
.sph-az-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: #eef4fb;
}
.sph-lex-group-h2 {
	margin: 18px 0 8px;
	font-size: 1.18rem;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--contrast-3);
}
.sph-city-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 10px 0 14px;
}
.sph-sidebar-details {
	margin-top: 8px;
}
.sph-sidebar-details summary {
	cursor: pointer;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--accent);
	padding: 4px 0;
}
.sph-sidebar-states-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 8px;
	margin-top: 6px;
}
.sph-sidebar-states-grid a {
	font-size: 0.8rem;
	color: var(--contrast-2);
	text-decoration: none;
	padding: 3px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sph-sidebar-states-grid a:hover {
	color: var(--accent);
	text-decoration: underline;
}
.sph-dealer-hub-bridge {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.sph-dealer-teaser-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 12px 0 16px;
}
@media (min-width: 640px) {
	.sph-dealer-teaser-row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.sph-dealer-teaser-item {
	background: #f8fafc;
	border: 1px solid var(--contrast-3);
	border-radius: 6px;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.sph-dealer-teaser-item span {
	font-size: 0.74rem;
	color: var(--contrast-2);
}
.sph-dealer-teaser-item strong {
	font-size: 0.94rem;
	color: #0f172a;
}

/* Wave 5: 2-Pillar Source Explanation & LME-to-Scrap Price Bridge */
.sph-source-explain-box {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-left: 4px solid var(--accent);
	border-radius: 10px;
	padding: 16px 18px;
}
.sph-source-explain-box h2 {
	margin-top: 0;
}
.sph-lme-bridge-intro {
	margin: 0 0 12px;
	font-size: 0.92rem;
	color: #334155;
	line-height: 1.5;
}
.sph-source-pillars {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 10px;
}
@media (min-width: 680px) {
	.sph-source-pillars {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.sph-source-pillar {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 14px;
}
.sph-source-pillar strong {
	display: block;
	font-size: 0.93rem;
	color: #0f172a;
	margin-bottom: 5px;
}
.sph-source-pillar p {
	margin: 0;
	font-size: 0.86rem;
	color: #334155;
	line-height: 1.48;
}
.sph-source-pillar p strong {
	display: inline;
	font-size: inherit;
	margin: 0;
}
table.sph-price-table th.sph-td-explain,
table.sph-price-table td.sph-td-explain {
	text-align: left !important;
	white-space: normal !important;
	line-height: 1.35;
	width: 28%;
}
table.sph-price-table:has(th.sph-td-explain) tr > th:first-child:nth-last-child(4),
table.sph-price-table:has(th.sph-td-explain) tr > td:first-child:nth-last-child(4) {
	width: 32%;
}
table.sph-price-table:has(th.sph-td-explain) tr > th:nth-child(2):nth-last-child(3),
table.sph-price-table:has(th.sph-td-explain) tr > td:nth-child(2):nth-last-child(3) {
	width: 20%;
}
table.sph-price-table:has(th.sph-td-explain) tr > th:nth-child(3):nth-last-child(2),
table.sph-price-table:has(th.sph-td-explain) tr > td:nth-child(3):nth-last-child(2) {
	width: 20%;
}
table.sph-price-table:has(th.sph-td-explain) td.sph-num small {
	white-space: normal;
}
.sph-osm-gate {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	min-height: 220px;
	padding: 20px;
	box-sizing: border-box;
	text-align: center;
	background: #f8fafc;
	color: #334155;
}
.sph-osm-gate p {
	margin: 0;
	max-width: 520px;
	font-size: 0.88rem;
	line-height: 1.5;
}
.sph-osm-gate--compact {
	padding: 14px;
	min-height: 180px;
}
.sph-osm-gate--compact p {
	font-size: 0.81rem;
	line-height: 1.42;
}
button.sph-cookie-settings-trigger {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	line-height: inherit;
	cursor: pointer;
	color: var(--accent);
	text-decoration: underline;
	text-align: left;
}
button.sph-cookie-settings-trigger:hover {
	text-decoration: none;
}
.sph-footer-legal button.sph-cookie-settings-trigger,
.sph-footer-col button.sph-cookie-settings-trigger {
	color: var(--contrast-2);
	text-decoration: none;
}
.sph-footer-col button.sph-cookie-settings-trigger {
	font-size: 0.85rem;
}
.sph-footer-legal button.sph-cookie-settings-trigger:hover,
.sph-footer-col button.sph-cookie-settings-trigger:hover {
	color: var(--accent);
	text-decoration: underline;
}
.sph-cookie-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9990;
	background: rgba(15, 23, 42, 0.58);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.sph-cookie-modal-backdrop[hidden] {
	display: none;
}
.sph-cookie-modal {
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
	color: #0f172a;
}
.sph-cookie-modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.sph-cookie-modal-head h2 {
	margin: 0;
	font-size: 1.12rem;
	line-height: 1.3;
}
.sph-cookie-modal-close {
	background: none;
	border: 0;
	font-size: 1.45rem;
	line-height: 1;
	padding: 2px 6px;
	cursor: pointer;
	color: #64748b;
}
.sph-cookie-modal-close:hover {
	color: #0f172a;
}
.sph-cookie-modal-note {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	font-size: 0.85rem;
	line-height: 1.48;
	color: #334155;
}
.sph-cookie-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}
.sph-cookie-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	cursor: pointer;
	background: #ffffff;
}
.sph-cookie-option.is-locked {
	background: #f8fafc;
	cursor: default;
}
.sph-cookie-option input {
	margin-top: 3px;
	flex-shrink: 0;
}
.sph-cookie-option-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.sph-cookie-option-body strong {
	font-size: 0.9rem;
	color: #0f172a;
}
.sph-cookie-option-body small {
	font-size: 0.81rem;
	line-height: 1.4;
	color: #475569;
}
.sph-cookie-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}
.sph-cookie-modal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 0.82rem;
	padding-top: 10px;
	border-top: 1px solid #e2e8f0;
}
