/* ==========================================================================
   TBH UX/UI-Refresh 2026
   Dezente Modernisierung auf Basis der bestehenden Marke (Petrol #0098A1, Orange #DF9A17).
   Alle Regeln unter .tbh-refresh (Body-Klasse aus inc/refresh.php).
   ========================================================================== */

:root {
	--tbh-petrol: #0098a1;
	--tbh-petrol-dark: #007a82;
	--tbh-petrol-soft: #e8f5f6;
	--tbh-orange: #df9a17;
	--tbh-orange-dark: #c4830c;
	--tbh-ink: #1f2a30;
	--tbh-radius: 12px;
	--tbh-shadow-sm: 0 1px 2px rgba(16, 42, 48, .06), 0 2px 8px rgba(16, 42, 48, .06);
	--tbh-shadow-md: 0 4px 12px rgba(16, 42, 48, .08), 0 16px 32px rgba(16, 42, 48, .10);
	--tbh-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Typografie ---------- */

.tbh-refresh h1, .tbh-refresh h2, .tbh-refresh h3 {
	text-wrap: balance;
}
.tbh-refresh .elementor-widget-text-editor p {
	text-wrap: pretty;
}
/* Lange deutsche Komposita („Absauglösungen") mobil sauber trennen statt überlaufen */
@media (max-width: 767px) {
	.tbh-refresh h1, .tbh-refresh h2, .tbh-refresh h3 {
		hyphens: auto;
		-webkit-hyphens: auto;
	}
	/* Kurze Labels (Footer, Versalien) nie trennen */
	.tbh-refresh .elementor-location-footer :is(h1, h2, h3, h4) {
		hyphens: manual;
		-webkit-hyphens: manual;
	}
}
.tbh-refresh ::selection {
	background: var(--tbh-petrol);
	color: #fff;
}

/* ---------- Fokus (Tastatur-Bedienung, Barrierefreiheit) ---------- */

.tbh-refresh a:focus-visible,
.tbh-refresh button:focus-visible,
.tbh-refresh input:focus-visible,
.tbh-refresh select:focus-visible,
.tbh-refresh textarea:focus-visible {
	outline: 3px solid var(--tbh-orange);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- Buttons ---------- */

.tbh-refresh .elementor-button {
	transition: transform .2s var(--tbh-ease), box-shadow .2s var(--tbh-ease), background-color .2s, filter .2s;
}
.tbh-refresh .elementor-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 122, 130, .22);
	filter: brightness(.96);
}
.tbh-refresh .elementor-button:active {
	transform: translateY(0);
	box-shadow: none;
}
.tbh-refresh .elementor-button .elementor-button-icon {
	transition: transform .2s var(--tbh-ease);
}
.tbh-refresh .elementor-button:hover .elementor-button-icon {
	transform: translateX(3px);
}

/* ---------- Sanftes Einblenden beim Scrollen (reines CSS, ohne JS-Bibliothek) ---------- */

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.tbh-refresh [data-elementor-type="wp-page"] > .elementor-section:not(:first-child) > .elementor-container,
		.tbh-refresh [data-elementor-type="wp-post"] > .elementor-section:not(:first-child) > .elementor-container {
			animation: tbh-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}
}
@keyframes tbh-reveal {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Mobile CTA-Leiste ---------- */

.tbh-mobile-cta {
	display: none;
}
@media (max-width: 767px) {
	.tbh-refresh .tbh-mobile-cta {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 9990;
		display: grid;
		grid-template-columns: 1fr 1.3fr 1fr;
		gap: 8px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .94);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		box-shadow: 0 -1px 0 rgba(16, 42, 48, .08), 0 -8px 24px rgba(16, 42, 48, .08);
	}
	.tbh-refresh .tbh-mobile-cta__item {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		min-height: 46px;
		border-radius: 10px;
		color: var(--tbh-petrol-dark);
		background: var(--tbh-petrol-soft);
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
	}
	.tbh-refresh .tbh-mobile-cta__item svg {
		width: 18px;
		height: 18px;
		fill: currentColor;
		flex: none;
	}
	.tbh-refresh .tbh-mobile-cta__item--primary {
		color: #fff;
		background: var(--tbh-orange);
	}
	/* Platz für die Leiste, damit der Footer nicht verdeckt wird */
	.tbh-refresh {
		padding-bottom: calc(66px + env(safe-area-inset-bottom));
	}
	/* Seitliche Sticky-Buttons mobil ausblenden – sie überdeckten Fließtext */
	.tbh-refresh #ssb-container {
		display: none !important;
	}
}

/* ---------- Produktseite ---------- */

/* Technische Daten: ruhigere Tabelle mit Zebra-Streifen statt grauer Kästen */
.tbh-refresh .woocommerce-product-attributes {
	border: 0 !important;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--tbh-radius);
	overflow: hidden;
	box-shadow: var(--tbh-shadow-sm);
}
.tbh-refresh .woocommerce-product-attributes tr:nth-child(odd) th,
.tbh-refresh .woocommerce-product-attributes tr:nth-child(odd) td {
	background: #f5f9fa !important;
}
.tbh-refresh .woocommerce-product-attributes tr:nth-child(even) th,
.tbh-refresh .woocommerce-product-attributes tr:nth-child(even) td {
	background: #fff !important;
}
.tbh-refresh .woocommerce-product-attributes th,
.tbh-refresh .woocommerce-product-attributes td {
	border: 0 !important;
	padding: 12px 16px !important;
	vertical-align: top;
}
.tbh-refresh .woocommerce-product-attributes th {
	width: 45%;
	color: var(--tbh-ink) !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	text-align: left;
}
.tbh-refresh .woocommerce-product-attributes td,
.tbh-refresh .woocommerce-product-attributes td p {
	margin: 0;
	padding: 0;
	color: #3d4b51 !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	font-style: normal !important;
}
.tbh-refresh .woocommerce-product-attributes td {
	padding: 12px 16px !important;
}

/* Produktvarianten (ACF-Felder, Markup aus PHP-Snippet „Produktvariationen"): Kartenraster */
.tbh-refresh .elementor-shortcode:has(> .produktvariationen) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}
.tbh-refresh .elementor-shortcode:has(> .produktvariationen) > h2 {
	grid-column: 1 / -1;
	margin: 0 0 4px;
}
.tbh-refresh .produktvariationen {
	float: none;
	display: flex;
	flex-direction: column;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #e3ecee;
	border-radius: var(--tbh-radius);
	overflow: hidden;
	box-shadow: var(--tbh-shadow-sm);
	transition: transform .3s var(--tbh-ease), box-shadow .3s var(--tbh-ease);
}
.tbh-refresh .produktvariationen:hover {
	transform: translateY(-3px);
	box-shadow: var(--tbh-shadow-md);
}
.tbh-refresh .produktvariationen-bild {
	float: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 190px;
	padding: 18px;
	background: #f5f9fa;
}
.tbh-refresh .produktvariationen-bild img {
	width: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.tbh-refresh .produktvariationen-beschreibung {
	width: auto;
	margin: 0;
	padding: 16px 18px 20px;
}
.tbh-refresh .produktvariationen-beschreibung h3 {
	margin: 0 0 8px;
	font-size: 1.2em;
	text-align: left;
}
.tbh-refresh .produktvariationen-beschreibung p {
	margin: 0;
	color: #3d4b51;
	font-size: 15px;
	line-height: 1.5;
}
.tbh-refresh .produktvariationen-beschreibung p > strong {
	display: block;
	margin-bottom: 4px;
	color: var(--tbh-petrol-dark);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.tbh-refresh .produktvariationen-beschreibung p > strong + br {
	display: none;
}

/* Produktgalerie: Thumbnails als ruhiges Raster mit aktivem Rahmen */
.tbh-refresh .woocommerce-product-gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-top: 12px !important;
}
.tbh-refresh .woocommerce-product-gallery .flex-control-thumbs li {
	width: auto !important;
	margin: 0 !important;
}
.tbh-refresh .woocommerce-product-gallery .flex-control-thumbs img {
	border-radius: 8px;
	border: 2px solid transparent;
	opacity: .7;
	transition: opacity .2s, border-color .2s;
}
.tbh-refresh .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.tbh-refresh .woocommerce-product-gallery .flex-control-thumbs img:hover {
	opacity: 1;
	border-color: var(--tbh-petrol);
}

@media (max-width: 767px) {
	.tbh-refresh .elementor-shortcode:has(> .produktvariationen) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.tbh-refresh .produktvariationen-bild {
		height: 130px;
		padding: 12px;
	}
	.tbh-refresh .produktvariationen-beschreibung {
		padding: 12px 12px 14px;
	}
	.tbh-refresh .produktvariationen-beschreibung h3 {
		font-size: 1.05em;
	}
	.tbh-refresh .produktvariationen-beschreibung p {
		font-size: 13px;
	}
	.tbh-refresh .produktvariationen-beschreibung p > strong {
		font-size: 10px;
		letter-spacing: .03em;
		overflow-wrap: anywhere;
	}
}

/* ---------- Seitenübergänge (moderne Browser, reines CSS) ---------- */

@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: .25s;
	}
}

/* ---------- Hero-Partikel (Startseite) ---------- */

.tbh-hero-particles {
	position: absolute;
	inset: 0;
	z-index: 1; /* über der weißen Hintergrund-Überlagerung, unter dem Text */
	pointer-events: none;
}
.tbh-has-particles > .elementor-container {
	position: relative;
	z-index: 2;
}

/* ---------- Kontaktseite: Hinweis bei Produktanfrage (assets/js/contact-tabs.js); Reiter stehen in Elementor ---------- */
.tbh-contact-note {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: fit-content;
	max-width: calc(100% - 32px);
	margin: 0 auto 20px;
	padding: 14px 20px;
	border-left: 4px solid var(--tbh-orange);
	border-radius: 8px;
	background: #fdf6e8;
	color: var(--tbh-ink);
	font-size: 15px;
}
.tbh-contact-note strong {
	font-size: 17px;
}

/* ---------- Formulare (sitewide) ---------- */

.tbh-refresh .elementor-form .elementor-field-textual {
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #cfdadd !important;
	border-radius: 8px !important;
	background: #fff;
	font-size: 16px;
	transition: border-color .2s, box-shadow .2s;
}
.tbh-refresh .elementor-form textarea.elementor-field-textual {
	min-height: 140px;
}
.tbh-refresh .elementor-form .elementor-field-textual:focus {
	border-color: var(--tbh-petrol) !important;
	box-shadow: 0 0 0 4px rgba(0, 152, 161, .15);
	outline: none;
}
.tbh-refresh .elementor-form .elementor-field-type-acceptance,
.tbh-refresh .elementor-form .elementor-field-type-acceptance label {
	font-size: 13px;
	line-height: 1.5;
	color: #4a5a60;
}
.tbh-refresh .elementor-form .elementor-field-type-acceptance input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--tbh-petrol);
}
.tbh-refresh .elementor-form button[type="submit"] {
	min-height: 48px;
	padding-left: 32px;
	padding-right: 32px;
}

/* ---------- Produktseite: Datenblätter als Download-Schaltflächen (Doc-Manager) ---------- */

.tbh-refresh .elementor-widget-shortcode .tbh-product-documents .tbh-doc-type-heading {
	margin: 0 0 10px;
	color: var(--tbh-ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.tbh-refresh .tbh-product-documents .tbh-doc-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tbh-refresh .tbh-product-documents .tbh-doc-item a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border: 1px solid #cfe3e6;
	border-radius: 10px;
	background: var(--tbh-petrol-soft);
	color: var(--tbh-petrol-dark);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, transform .2s var(--tbh-ease);
}
.tbh-refresh .tbh-product-documents .tbh-doc-item a:hover {
	border-color: var(--tbh-petrol);
	background: #fff;
	transform: translateY(-1px);
}
.tbh-refresh .tbh-product-documents .tbh-doc-icon svg {
	width: 20px;
	height: 20px;
	color: var(--tbh-petrol);
}

/* ---------- Produktvergleich (inc/compare.php, assets/js/compare.js) ---------- */

.tbh-compare-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 10px 16px;
	border: 1px solid #cfdadd;
	border-radius: 8px;
	background: #fff;
	color: var(--tbh-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.tbh-compare-toggle:hover {
	border-color: var(--tbh-petrol);
}
.tbh-compare-toggle__icon {
	position: relative;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-radius: 4px;
	color: var(--tbh-petrol);
}
.tbh-compare-toggle.is-active {
	border-color: var(--tbh-petrol);
	background: var(--tbh-petrol-soft);
}
.tbh-compare-toggle.is-active .tbh-compare-toggle__icon {
	background: var(--tbh-petrol);
}
.tbh-compare-toggle.is-active .tbh-compare-toggle__icon::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 0;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Leiste */
.tbh-compare-bar {
	position: fixed;
	left: 50%;
	bottom: 16px;
	z-index: 9980;
	display: none;
	align-items: center;
	gap: 20px;
	width: min(960px, calc(100% - 32px));
	padding: 12px 16px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(16, 42, 48, .22);
	transform: translateX(-50%);
}
.tbh-compare-bar.is-visible {
	display: flex;
	animation: tbh-bar-in .3s var(--tbh-ease);
}
@keyframes tbh-bar-in {
	from { opacity: 0; transform: translate(-50%, 20px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}
.tbh-compare-bar__items {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tbh-compare-bar__item,
.tbh-compare-bar__slot {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 72px;
	border-radius: 10px;
	background: #f5f9fa;
}
.tbh-compare-bar__slot {
	border: 2px dashed #d5e2e5;
	background: transparent;
}
.tbh-compare-bar__item img {
	max-width: 70%;
	max-height: 44px;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.tbh-compare-bar__name {
	max-width: 88px;
	overflow: hidden;
	font-size: 11px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tbh-compare-bar__remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tbh-ink);
	color: #fff;
	font-size: 14px;
	line-height: 22px;
	cursor: pointer;
}
.tbh-compare-bar__actions {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 16px;
}
.tbh-compare-bar__hint {
	flex-basis: 100%;
	margin: 0;
	color: #3d4b51;
	font-size: 14px;
	text-align: right;
}
.tbh-compare-bar__browse {
	color: var(--tbh-petrol-dark);
	font-weight: 600;
}
.tbh-compare-bar__go {
	padding: 12px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--tbh-orange);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.tbh-compare-bar__go:hover {
	background: var(--tbh-orange-dark);
}
.tbh-compare-bar__clear {
	padding: 0;
	border: 0;
	background: none;
	color: #6b7b80;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}
.tbh-compare-flash {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 16px;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--tbh-ink);
	color: #fff;
	font-size: 14px;
}

/* Overlay */
.tbh-compare-dialog {
	width: min(1180px, calc(100% - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(16, 42, 48, .35);
}
.tbh-compare-dialog::backdrop {
	background: rgba(16, 42, 48, .55);
	backdrop-filter: blur(3px);
}
.tbh-compare-dialog__head {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid #e3ecee;
	background: #fff;
}
.tbh-compare-dialog__title {
	margin: 0;
	font-size: 1.5em;
}
.tbh-compare-dialog__close {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f6;
	color: var(--tbh-ink);
	font-size: 24px;
	cursor: pointer;
}
.tbh-compare-dialog__body {
	padding: 8px 24px 24px;
}
.tbh-compare-loading {
	height: 200px;
	background: linear-gradient(90deg, #f3f7f8 25%, #e8f0f2 50%, #f3f7f8 75%) 0 0 / 200% 100%;
	border-radius: 12px;
	animation: tbh-shimmer 1.2s linear infinite;
}
@keyframes tbh-shimmer {
	to { background-position: -200% 0; }
}

/* Tabelle */
.tbh-compare-table-wrap {
	overflow-x: auto;
}
.tbh-compare-table {
	width: 100%;
	min-width: calc(180px + var(--tbh-compare-cols) * 200px);
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15px;
}
.tbh-compare-table th,
.tbh-compare-table td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid #e8eff1;
	background: #fff;
	text-align: left;
	vertical-align: top;
}
.tbh-compare-table tbody th {
	position: sticky;
	left: 0;
	z-index: 1;
	width: 180px;
	color: var(--tbh-ink);
	font-weight: 600;
}
.tbh-compare-table tbody tr:nth-child(even) td,
.tbh-compare-table tbody tr:nth-child(even) th {
	background: #f7fafb;
}
.tbh-compare-table thead th {
	border-bottom: 2px solid #e3ecee;
}
.tbh-compare-table__corner {
	vertical-align: bottom !important;
}
.tbh-compare-table__product {
	position: relative;
	text-align: center !important;
}
.tbh-compare-table__image img {
	display: block;
	max-height: 150px;
	width: auto;
	margin: 0 auto 8px;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.tbh-compare-table__name {
	color: var(--tbh-petrol-dark);
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
}
.tbh-compare-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f6;
	color: var(--tbh-ink);
	font-size: 18px;
	cursor: pointer;
}
.tbh-compare-diff {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}
.tbh-compare-diff input {
	width: 18px;
	height: 18px;
	accent-color: var(--tbh-petrol);
}
.tbh-compare-table.only-diff tr[data-same="1"] {
	display: none;
}
.tbh-compare-chip {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--tbh-petrol-soft);
	color: var(--tbh-petrol-dark);
	font-size: 13px;
	font-weight: 600;
}
.tbh-compare-table__actions td {
	display: table-cell;
	border-bottom: 0;
}
.tbh-compare-inquiry {
	display: inline-block;
	margin: 4px 0 8px;
	padding: 10px 16px;
	border-radius: 6px;
	background: var(--tbh-orange);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}
.tbh-compare-details {
	display: block;
	color: var(--tbh-petrol-dark);
	font-size: 14px;
}

@media (max-width: 767px) {
	.tbh-compare-bar {
		bottom: calc(74px + env(safe-area-inset-bottom)); /* über der mobilen CTA-Leiste */
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 10px;
	}
	.tbh-compare-bar__item,
	.tbh-compare-bar__slot {
		width: calc((100vw - 80px) / 4);
		height: 60px;
	}
	.tbh-compare-bar__name {
		display: none;
	}
	.tbh-compare-bar__actions {
		justify-content: space-between;
	}
	.tbh-compare-bar__hint {
		text-align: left;
	}
	.tbh-compare-dialog {
		width: 100%;
		max-width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}
	.tbh-compare-table {
		min-width: calc(120px + var(--tbh-compare-cols) * 160px);
		font-size: 14px;
	}
	.tbh-compare-table tbody th {
		width: 120px;
	}
}

/* Vergleich: Theme-Vorgaben für button/table neutralisieren (Hello Elementor stylt alle <button> und <th>) */
.tbh-compare-bar button,
.tbh-compare-dialog button {
	min-height: 0;
	border: 0 !important;
	box-shadow: none !important;
	font-family: inherit;
	line-height: 1;
	text-transform: none;
}
.tbh-compare-bar .tbh-compare-bar__remove,
.tbh-compare-dialog .tbh-compare-remove {
	background: var(--tbh-ink) !important;
	color: #fff !important;
	padding: 0 !important;
}
.tbh-compare-dialog .tbh-compare-remove {
	background: #eef3f4 !important;
	color: var(--tbh-ink) !important;
}
.tbh-compare-dialog .tbh-compare-dialog__close {
	background: #eef3f4 !important;
	color: var(--tbh-ink) !important;
	padding: 0 !important;
}
.tbh-compare-bar .tbh-compare-bar__clear {
	background: none !important;
	color: #6b7b80 !important;
	padding: 0 !important;
}
.tbh-compare-bar .tbh-compare-bar__go {
	background: var(--tbh-orange) !important;
	color: #fff !important;
	padding: 12px 22px !important;
}
.tbh-compare-dialog .tbh-compare-table th,
.tbh-compare-dialog .tbh-compare-table td {
	font-size: 15px !important;
	line-height: 1.45 !important;
	color: #3d4b51;
}
.tbh-compare-dialog .tbh-compare-table tbody th {
	color: var(--tbh-ink) !important;
	font-weight: 600 !important;
}
.tbh-compare-dialog .tbh-compare-table__name {
	font-size: 18px !important;
}
.tbh-compare-dialog .tbh-compare-diff {
	color: var(--tbh-ink) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
}

/* ==========================================================================
   Blog – Aufbau und Gestaltung stehen in den Elementor-Templates (docs/refresh/16-blog-elementor.php).
   Hier nur: Ausgabe des Shortcodes [tbh_blog_toc] und der Lesefortschritt.
   ========================================================================== */

/* Inhaltsverzeichnis */
.tbh-blog-toc {
	margin: 28px 0 8px;
	padding: 20px 24px;
	border-radius: var(--tbh-radius);
	background: #f3f8f9;
}
.tbh-blog-toc__title {
	margin: 0 0 8px !important;
	color: var(--tbh-ink);
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.tbh-blog-toc ol {
	margin: 0;
	padding-left: 1.2em;
}
.tbh-blog-toc li {
	margin: 4px 0;
	font-size: 16px !important;
	line-height: 1.5 !important;
}
.tbh-blog-toc a {
	text-decoration: none;
}
.tbh-blog-toc a:hover {
	text-decoration: underline;
}
.tbh-blog-toc a {
	color: var(--tbh-petrol-dark);
}
/* Lesefortschritt (reines CSS, moderne Browser) */
@supports (animation-timeline: scroll()) {
	.tbh-blog-single::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		z-index: 10000;
		width: 100%;
		height: 3px;
		background: var(--tbh-orange);
		transform-origin: 0 50%;
		animation: tbh-progress linear both;
		animation-timeline: scroll(root);
	}
}
@keyframes tbh-progress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}


/* Vergleichsleiste kompakt auf Seiten ohne Vergleichs-Button (Blog, Startseite …) */
.tbh-compare-bar.is-compact {
	left: auto;
	right: 16px;
	width: auto;
	gap: 10px;
	padding: 8px 10px 8px 14px;
	border-radius: 999px;
	transform: none;
	animation: none;
}
.tbh-compare-bar.is-compact .tbh-compare-bar__items,
.tbh-compare-bar.is-compact .tbh-compare-bar__hint,
.tbh-compare-bar.is-compact .tbh-compare-bar__browse {
	display: none;
}
.tbh-compare-bar.is-compact .tbh-compare-bar__actions {
	flex: none;
	flex-wrap: nowrap;
}
.tbh-compare-bar.is-compact .tbh-compare-bar__go {
	padding: 9px 16px !important;
	border-radius: 999px !important;
	font-size: 14px;
}
@media (max-width: 767px) {
	.tbh-compare-bar.is-compact {
		flex-direction: row;
		right: 12px;
		left: auto;
	}
}

/* ---------- Live-Suche (inc/search.php, assets/js/live-search.js) ---------- */

.tbh-live-search {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 10001;
	width: min(460px, calc(100vw - 24px));
	max-height: min(70vh, 560px);
	overflow-y: auto;
	padding: 8px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 48px rgba(16, 42, 48, .22);
	text-align: left;
}
.tbh-live-search__group + .tbh-live-search__group {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid #edf2f3;
}
.tbh-live-search__head {
	margin: 6px 10px 4px !important;
	color: #6b7b80;
	font-size: 11px !important;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.4 !important;
	text-transform: uppercase;
}
.tbh-refresh a.tbh-live-search__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--tbh-ink);
	text-decoration: none;
}
.tbh-refresh a.tbh-live-search__item:hover,
.tbh-refresh a.tbh-live-search__item.is-active {
	background: var(--tbh-petrol-soft);
}
.tbh-live-search__media {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 8px;
	background: #f3f7f8;
}
.tbh-live-search__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tbh-live-search__item--product .tbh-live-search__media img {
	object-fit: contain;
	mix-blend-mode: multiply;
}
.tbh-live-search__item--download .tbh-live-search__media::before {
	content: "PDF";
	color: var(--tbh-petrol-dark);
	font-size: 11px;
	font-weight: 700;
}
.tbh-live-search__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.tbh-live-search__title {
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tbh-live-search__title mark {
	padding: 0 1px;
	border-radius: 3px;
	background: #ffe7b8;
	color: inherit;
}
.tbh-live-search__meta {
	overflow: hidden;
	color: #6b7b80;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tbh-live-search__empty {
	margin: 12px 10px !important;
	color: #6b7b80;
	font-size: 14px !important;
}
.tbh-refresh .tbh-live-search__all {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px !important;
	border: 0 !important;
	border-top: 1px solid #edf2f3 !important;
	border-radius: 0 0 8px 8px !important;
	background: none !important;
	color: var(--tbh-petrol-dark) !important;
	font: inherit;
	font-size: 14px !important;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
}
.tbh-refresh .tbh-live-search__all:hover {
	background: var(--tbh-petrol-soft) !important;
}

/* Telefonnummern nicht umbrechen */
.tbh-refresh a[href^="tel:"] {
	white-space: nowrap;
}
