/* Kakaopulver-Finder
 * Farben & Schriften greifen auf die globalen Elementor-Kit-Variablen zurück
 * und lassen sich im Widget (Tab „Stil“) überschreiben.
 *
 * Alle Selektoren für Buttons, Links und Formularfelder beginnen mit
 * `.fhk[data-fhk]`, damit Theme- und Kit-Styles (z. B. button:hover/:focus)
 * die Darstellung nicht übersteuern.
 */

.fhk {
	--fhk-accent: var(--e-global-color-secondary, #a7754d);
	--fhk-heading: var(--e-global-color-primary, #28171d);
	--fhk-text: var(--e-global-color-text, #342220);
	--fhk-muted: #6f5f57;
	--fhk-line: #e5e1dc;
	--fhk-line-strong: #cdc3b8;
	--fhk-soft: #f5ede4;
	--fhk-panel-bg: #fff;
	--fhk-card-bg: var(--e-global-color-308e809, #fbf9f6);
	--fhk-radius: 20px;
	--fhk-gap: 30px;
	--fhk-cols: 3;
	--fhk-font-heading: var(--e-global-typography-d3dae9a-font-family, "Lato"), sans-serif;
	--fhk-font-text: var(--e-global-typography-text-font-family, "Montserrat"), sans-serif;

	color: var(--fhk-text);
	font-family: var(--fhk-font-text);
	font-size: 16px;
	line-height: 1.5;
	width: 100%;
}

@media (max-width: 1024px) {
	.fhk { --fhk-cols: 2; --fhk-gap: 24px; }
}

@media (max-width: 767px) {
	.fhk { --fhk-cols: 1; --fhk-gap: 20px; }
}

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

.fhk [hidden] {
	display: none !important;
}

.fhk-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Theme-Reset für Bedienelemente ---------- */

.fhk[data-fhk] button,
.fhk[data-fhk] button:hover,
.fhk[data-fhk] button:focus,
.fhk[data-fhk] button:active {
	display: inline-flex;
	align-items: center;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: 1.2;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	outline: none;
	transition: none;
}

.fhk[data-fhk] button:focus-visible,
.fhk[data-fhk] select:focus-visible,
.fhk[data-fhk] a:focus-visible,
.fhk[data-fhk] input:focus-visible {
	outline: 2px solid var(--fhk-accent);
	outline-offset: 2px;
}

/* ---------- Werkzeugleiste ---------- */

/* Beschriftungen stehen über den Bedienelementen; die Bedienelemente
   selbst liegen unten auf einer gemeinsamen Linie (align-items: flex-end). */
.fhk-toolbar {
	position: relative;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 28px;
	padding: 18px 22px 20px;
	margin-bottom: 20px;
	border-radius: 16px;
	background: var(--fhk-panel-bg);
	box-shadow: 0 10px 30px rgba(40, 23, 29, 0.10);
}

.fhk-filters-title,
.fhk-sort-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--fhk-muted);
}

.fhk-filters {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

/* Überschrift als eigene Zeile über den Dropdowns. `contain: inline-size`
   sorgt dafür, dass ein langer Text die Breite nicht aufbläht – sonst würde
   die Sortierung in eine zweite Zeile rutschen. */
.fhk-filters-title {
	flex: 0 0 100%;
	contain: inline-size;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0 0 2px;
}

.fhk-dd {
	position: relative;
}

.fhk[data-fhk] button.fhk-dd-btn,
.fhk[data-fhk] button.fhk-panel-toggle {
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--fhk-line);
	border-radius: 10px;
	background: #fff;
	color: var(--fhk-heading);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: border-color 0.15s;
}

.fhk[data-fhk] button.fhk-dd-btn:hover,
.fhk[data-fhk] button.fhk-panel-toggle:hover {
	border-color: var(--fhk-line-strong);
	background: #fff;
	color: var(--fhk-heading);
}

.fhk[data-fhk] .fhk-dd.is-active button.fhk-dd-btn,
.fhk[data-fhk] .fhk-dd.is-open button.fhk-dd-btn {
	border-color: var(--fhk-heading);
	background: #fff;
	color: var(--fhk-heading);
}

.fhk-dd-count,
.fhk-active-count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--fhk-heading);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.fhk-dd-chevron {
	width: 7px;
	height: 7px;
	margin: -3px 2px 0;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.fhk-dd.is-open .fhk-dd-chevron {
	margin-top: 3px;
	transform: rotate(-135deg);
}

.fhk-dd-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	min-width: 230px;
	padding: 6px;
	border: 1px solid var(--fhk-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(40, 23, 29, 0.14);
}

.fhk-dd--ph .fhk-dd-menu {
	width: 300px;
	padding: 14px 16px 12px;
}

.fhk-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--fhk-heading);
	cursor: pointer;
}

.fhk-opt:hover {
	background: var(--fhk-soft);
}

.fhk-opt.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.fhk-opt.is-disabled:hover {
	background: none;
}

.fhk[data-fhk] .fhk-opt input.fhk-opt-input[type="checkbox"],
.fhk[data-fhk] .fhk-opt input.fhk-opt-input[type="checkbox"]:focus {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	accent-color: var(--fhk-heading);
	cursor: inherit;
	-webkit-appearance: checkbox;
	appearance: auto;
}

.fhk-opt-count {
	margin-left: auto;
	padding-left: 12px;
	font-size: 12px;
	color: var(--fhk-muted);
	font-variant-numeric: tabular-nums;
}

/* pH-Schieberegler */

.fhk-ph-head {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--fhk-muted);
}

.fhk-ph-output {
	font-weight: 600;
	color: var(--fhk-heading);
	font-variant-numeric: tabular-nums;
}

.fhk-range {
	position: relative;
	height: 28px;
}

.fhk-range::before,
.fhk-range::after {
	content: "";
	position: absolute;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
}

.fhk-range::before {
	left: 0;
	right: 0;
	background: var(--fhk-line);
}

.fhk-range::after {
	left: var(--from);
	right: calc(100% - var(--to));
	background: var(--fhk-heading);
}

.fhk[data-fhk] .fhk-range input[type="range"][class] {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.fhk[data-fhk] .fhk-range input[type="range"][class]::-webkit-slider-runnable-track {
	background: none;
	border: 0;
}

.fhk[data-fhk] .fhk-range input[type="range"][class]::-moz-range-track {
	background: none;
	border: 0;
}

.fhk[data-fhk] .fhk-range input[type="range"][class]::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	border: 2px solid var(--fhk-heading);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
}

.fhk[data-fhk] .fhk-range input[type="range"][class]::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 2px solid var(--fhk-heading);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
}

.fhk[data-fhk] .fhk-range input[type="range"][class]:focus-visible {
	outline: none;
}

.fhk[data-fhk] .fhk-range input[type="range"][class]:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--fhk-accent);
}

.fhk[data-fhk] .fhk-range input[type="range"][class]:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--fhk-accent);
}

.fhk-range-scale {
	display: flex;
	justify-content: space-between;
	padding: 0 3px;
	font-size: 11px;
	color: var(--fhk-muted);
}

/* Sortierung – in einer Flucht mit den Filtern, durch Trennlinie abgesetzt */

.fhk-tools {
	display: flex;
	align-items: flex-end;
	margin-left: auto;
	padding-left: 28px;
	border-left: 1px solid var(--fhk-line);
}

.fhk-sort {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin: 0;
}

.fhk[data-fhk] .fhk-sort select,
.fhk[data-fhk] .fhk-sort select:focus {
	width: auto;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0 36px 0 14px;
	border: 1px solid var(--fhk-line);
	border-radius: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2328171d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 13px center;
	box-shadow: none;
	color: var(--fhk-heading);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 38px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.fhk[data-fhk] .fhk-sort select:hover {
	border-color: var(--fhk-line-strong);
}

.fhk[data-fhk] button.fhk-panel-toggle,
.fhk[data-fhk] button.fhk-apply {
	display: none;
}

.fhk-panel-toggle svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ---------- Status: Treffer & aktive Filter ---------- */

.fhk-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	min-height: 32px;
	margin-bottom: 22px;
}

.fhk-count {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--fhk-heading);
	font-variant-numeric: tabular-nums;
}

.fhk-count:focus {
	outline: none;
}

.fhk-active {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fhk-active li {
	margin: 0;
	padding: 0;
}

.fhk[data-fhk] button.fhk-active-chip {
	gap: 6px;
	min-height: 30px;
	padding: 0 8px 0 12px;
	border-radius: 999px;
	background: var(--fhk-soft);
	color: var(--fhk-heading);
	font-size: 13px;
}

.fhk[data-fhk] button.fhk-active-chip:hover {
	background: #ecdfd0;
	color: var(--fhk-heading);
}

.fhk-active-x {
	position: relative;
	width: 16px;
	height: 16px;
}

.fhk-active-x::before,
.fhk-active-x::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 3px;
	width: 10px;
	height: 1.5px;
	background: currentColor;
	transform: rotate(45deg);
}

.fhk-active-x::after {
	transform: rotate(-45deg);
}

.fhk[data-fhk] button.fhk-reset {
	color: var(--fhk-accent);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fhk[data-fhk] button.fhk-reset:hover {
	color: var(--fhk-heading);
	text-decoration: underline;
}

.fhk[data-fhk] button.fhk-reset--empty {
	margin-top: 4px;
}

.fhk.is-empty .fhk-grid {
	display: none;
}

/* ---------- Kacheln ---------- */

.fhk-grid {
	display: grid;
	grid-template-columns: repeat(var(--fhk-cols), minmax(0, 1fr));
	gap: var(--fhk-gap);
}

.fhk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--fhk-card-bg);
	border-radius: var(--fhk-radius);
	box-shadow: 0 8px 24px rgba(40, 23, 29, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover: leicht anheben, Schatten verstärken */
.fhk .fhk-card:hover,
.fhk .fhk-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(40, 23, 29, 0.14);
}

.fhk-card-media {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 20px 24px 0;
}

.fhk-card-image {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.fhk-badge {
	position: absolute;
	top: 18px;
	left: 18px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--fhk-line);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fhk-heading);
}

.fhk-badge--highfat {
	background: var(--fhk-heading);
	border-color: var(--fhk-heading);
	color: #fff;
}

.fhk-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 12px 24px 24px;
}

.fhk .fhk-card-title {
	margin: 0 0 10px;
	font-family: var(--fhk-font-heading);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.15;
	color: var(--fhk-heading);
}

.fhk-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.fhk-tags li {
	margin: 0;
	padding: 3px 10px;
	border-radius: 6px;
	background: var(--fhk-soft);
	font-size: 13px;
	line-height: 1.4;
	color: var(--fhk-heading);
}

.fhk-card-text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
}

/* Kennwerte immer unten – gleiche Höhe in jeder Reihe */
.fhk-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: auto 0 0;
}

.fhk-spec {
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fff;
}

.fhk-spec--ph {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: baseline;
	column-gap: 12px;
}

.fhk-spec dt {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fhk-muted);
}

.fhk-spec dd {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--fhk-heading);
}

.fhk-spec--ph dd {
	justify-self: end;
	font-variant-numeric: tabular-nums;
}

.fhk-phbar {
	position: relative;
	grid-column: 1 / -1;
	height: 6px;
	margin-top: 10px;
	border-radius: 3px;
	background: var(--fhk-line);
}

.fhk-phbar-range {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--from);
	right: calc(100% - var(--to));
	min-width: 6px;
	border-radius: 3px;
	background: var(--fhk-accent);
}

.fhk-phbar.is-open-start .fhk-phbar-range {
	background: linear-gradient(90deg, transparent, var(--fhk-accent) 60%);
}

.fhk-phbar-scale {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	font-size: 11px;
	line-height: 1;
	color: var(--fhk-muted);
}

.fhk-swatch {
	display: inline-block;
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
	vertical-align: -3px;
}

.fhk[data-fhk] a.fhk-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 16px;
	padding: 10px 18px;
	border-radius: 10px;
	background: var(--fhk-heading);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s;
}

.fhk[data-fhk] a.fhk-cta:hover,
.fhk[data-fhk] a.fhk-cta:focus-visible {
	background: var(--fhk-accent);
	color: #fff;
}

.fhk[data-fhk] a.fhk-cta--compact {
	display: inline-flex;
	min-height: 36px;
	margin: 0;
	padding: 6px 14px;
	font-size: 14px;
	white-space: nowrap;
}

/* ---------- Keine Treffer ---------- */

.fhk-empty {
	padding: 40px 24px;
	border: 1px dashed var(--fhk-line);
	border-radius: var(--fhk-radius);
	text-align: center;
}

.fhk-empty p {
	max-width: 520px;
	margin: 0 auto 12px;
}

.fhk-spec dd.fhk-wrap {
	display: block;
}

.fhk-nowrap {
	white-space: nowrap;
}

/* ---------- Tablet: Sortierung als eigene Zeile unter den Filtern ---------- */

@media (min-width: 768px) and (max-width: 1100px) {
	.fhk-tools {
		flex: 1 1 100%;
		margin-left: 0;
		padding: 14px 0 0;
		border-left: 0;
		border-top: 1px solid var(--fhk-line);
	}

	.fhk-sort {
		flex-direction: row;
		align-items: center;
	}
}

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

@media (max-width: 767px) {
	.fhk-toolbar {
		gap: 8px;
		padding: 10px;
	}


	.fhk[data-fhk] button.fhk-panel-toggle {
		display: inline-flex;
		flex: 1 1 100%;
		justify-content: center;
	}

	.fhk-tools {
		order: 2;
		flex: 1 1 100%;
		align-self: auto;
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}

	.fhk-sort {
		flex: 1 1 auto;
	}

	.fhk[data-fhk] .fhk-sort select {
		width: 100%;
	}

	.fhk.is-filters-open .fhk-toolbar button.fhk-panel-toggle {
		border-color: var(--fhk-heading);
	}

	.fhk-sort-label,
	.fhk-filters-title {
		display: none;
	}

	.fhk-filters {
		display: none;
		order: 3;
		flex: 1 1 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0 6px;
	}

	.fhk.is-filters-open .fhk-filters {
		display: flex;
	}

	.fhk-dd {
		border-bottom: 1px solid var(--fhk-line);
	}

	.fhk[data-fhk] button.fhk-dd-btn,
	.fhk[data-fhk] button.fhk-dd-btn:hover,
	.fhk[data-fhk] .fhk-dd.is-active button.fhk-dd-btn,
	.fhk[data-fhk] .fhk-dd.is-open button.fhk-dd-btn {
		width: 100%;
		min-height: 50px;
		padding: 0 2px;
		border: 0;
		border-radius: 0;
		background: transparent;
		font-size: 15px;
	}

	.fhk-dd-chevron {
		margin-left: auto;
	}

	.fhk-dd-menu,
	.fhk-dd--ph .fhk-dd-menu {
		position: static;
		width: auto;
		min-width: 0;
		padding: 0 0 12px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.fhk-opt {
		padding: 10px 4px;
		font-size: 15px;
	}

	.fhk[data-fhk] button.fhk-apply,
	.fhk[data-fhk] button.fhk-apply:hover,
	.fhk[data-fhk] button.fhk-apply:focus {
		display: flex;
		justify-content: center;
		width: 100%;
		min-height: 46px;
		margin: 14px 0 8px;
		border-radius: 10px;
		background: var(--fhk-heading);
		color: #fff;
		font-weight: 600;
		text-align: center;
	}

	.fhk-card-body {
		padding: 8px 20px 20px;
	}

	.fhk .fhk-card-title {
		font-size: 24px;
	}

	.fhk-card-image {
		max-width: 180px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fhk * {
		transition: none !important;
	}

	.fhk .fhk-card:hover,
	.fhk .fhk-card:focus-within {
		transform: none;
	}
}
