/* ==========================================================================
   Produktübersicht (Product Archive Page)
   Based on Figma node 75-956
   ========================================================================== */

/* --- Page Layout --- */
.fs-produktuebersicht {
	max-width: 1364px;
	margin: 0 auto;
	padding: 0 20px 120px;
}

/* --- Page Heading --- */
.fs-produktuebersicht__header {
	padding-top: 40px;
	padding-bottom: 40px;
}

.fs-produktuebersicht__title {
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 50px;
	line-height: 1.36;
	color: #535353;
	margin: 0;
}

/* --- Filter Bar --- */
.fs-produktuebersicht__filterbar {
	position: relative;
	background: #fff;
	border: 2px solid #F0F0F0;
	border-radius: 0;
	padding: 31px 75px 24px;
	margin-bottom: 40px;
}

.fs-filterbar__row {
	display: flex;
	align-items: center;
	column-gap: 54px;
}

.fs-filterbar__row--extra {
	margin-top: 31px;
	column-gap: 76px;
}

.fs-filterbar__row[hidden],
.fs-filterbar__panel[hidden] {
	display: none !important;
}

/* Normalize wpautop wrappers around shortcode HTML in this section. */
.fs-produktuebersicht__filterbar p {
	margin: 0;
}

.fs-filterbar__row > p,
.fs-filterbar__control > p {
	display: contents;
}

.fs-filterbar__control {
	position: relative;
}

.fs-filterbar__control-button,
.fs-filterbar__show-all {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.36;
	color: #535353;
	padding: 0;
	white-space: nowrap;
}

.fs-filterbar__show-all {
	margin-left: auto;
}

.fs-filterbar__control-button:hover,
.fs-filterbar__show-all:hover {
	color: #E30613;
}

.fs-filterbar__chevron {
	width: 16px;
	height: 8px;
	flex-shrink: 0;
	transition: transform 0.22s ease;
}

.fs-filterbar__control-button[aria-expanded="true"] .fs-filterbar__chevron,
.fs-filterbar__show-all[aria-expanded="true"] .fs-filterbar__chevron {
	transform: rotate(180deg);
}

.fs-filterbar__panel {
	background: #fff;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.16);
	z-index: 40;
}

.fs-filterbar__panel--default {
	position: absolute;
	top: calc(100% + 17px);
	left: 0;
	width: 398px;
	padding: 70px 49px 48px;
}

.fs-filterbar__panel--default::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 44px;
	width: 20px;
	height: 20px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: -3px -3px 6px rgba(0, 0, 0, 0.04);
}

.fs-filterbar__panel--branchen {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	width: min(1644px, calc(100vw - 56px));
	padding: 84px 136px 82px;
}

.fs-filterbar__branchen-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 279px));
	justify-content: center;
	column-gap: 81px;
	row-gap: 16px;
}

.fs-filterbar__branche-pill {
	display: flex;
	align-items: center;
	gap: 19px;
	width: 279px;
	min-height: 49px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 26px;
	background: #F0F0F0;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.fs-filterbar__branche-pill:hover {
	border-color: #D4D4D4;
}

.fs-filterbar__branche-pill.is-active {
	border-color: #E30613;
	background: #FAE5E7;
}

.fs-filterbar__branche-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 49px;
	flex-shrink: 0;
}

.fs-filterbar__branche-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fs-filterbar__branche-label {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.15;
	color: #535353;
}

.fs-filterbar__options {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-height: 235px;
	overflow-y: auto;
	padding-right: 8px;
}

.fs-filterbar__options::-webkit-scrollbar {
	width: 8px;
}

.fs-filterbar__options::-webkit-scrollbar-track {
	background: transparent;
}

.fs-filterbar__options::-webkit-scrollbar-thumb {
	background: #A8A8A8;
	border-radius: 12px;
}

.fs-filterbar__option {
	display: inline-flex;
	align-items: center;
	gap: 28px;
	cursor: pointer;
}

.fs-filterbar__option-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fs-filterbar__option-circle {
	position: relative;
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 1px solid #A8A8A8;
	border-radius: 50%;
	flex-shrink: 0;
}

.fs-filterbar__option-input:checked + .fs-filterbar__option-circle::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #E30613;
}

.fs-filterbar__option-label {
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.36;
	color: #535353;
}

/* --- Active Filters & Sort --- */
.fs-produktuebersicht__active-filters {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 58px;
}

.fs-active-filters__label {
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 1.36;
	color: #535353;
	white-space: nowrap;
}

.fs-active-filters__chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.fs-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #707070;
	border-radius: 12px;
	padding: 2px 12px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 1.36;
	color: #535353;
	background: none;
	cursor: pointer;
}

.fs-active-filters__sort {
	margin-left: auto;
	display: flex;
	align-items: baseline;
	gap: 8px;
	position: relative;
	min-height: 19px;
}

.fs-active-filters__sort label {
	display: inline-block;
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 1.36;
	color: #535353;
	white-space: nowrap;
	margin: 0;
}

.fs-sort-select {
	appearance: none;
	display: inline-block;
	background: none;
	border: none;
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 1.36;
	color: #535353;
	cursor: pointer;
	margin: 0;
	padding: 0 24px 0 0;
	vertical-align: baseline;
}

.fs-sort__chevron {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	width: 16px;
	height: 8px;
}

/* --- Main Content: Sidebar + Grid --- */
.fs-produktuebersicht__content {
	display: flex;
	gap: 48px;
	align-items: flex-start;
}

/* --- Category Sidebar --- */
.fs-produktuebersicht__sidebar {
	width: 227px;
	flex-shrink: 0;
}

.fs-cat-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fs-cat-sidebar__parent {
	margin-bottom: 12px;
}

.fs-cat-sidebar__parent-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.fs-cat-sidebar__parent-link {
	display: block;
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.36;
	color: #535353;
	text-decoration: none;
	padding: 4px 0;
	transition: color 0.2s ease;
	flex: 1;
}

.fs-cat-sidebar__parent-link:hover,
.fs-cat-sidebar__parent--active .fs-cat-sidebar__parent-link {
	color: #E30613;
}

.fs-cat-sidebar__toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #535353;
	display: flex;
	align-items: center;
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.fs-cat-sidebar__parent--open .fs-cat-sidebar__toggle {
	transform: rotate(180deg);
}

.fs-cat-sidebar__children {
	list-style: none;
	margin: 4px 0 0;
	padding: 0 0 0 18px;
}

.fs-cat-sidebar__child {
	margin-bottom: 4px;
}

.fs-cat-sidebar__child a {
	display: block;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.36;
	color: #535353;
	text-decoration: none;
	padding: 2px 0;
	transition: color 0.2s ease;
}

.fs-cat-sidebar__child a:hover,
.fs-cat-sidebar__child--active a {
	color: #E30613;
}

/* --- Product Grid --- */
.fs-produktuebersicht__main {
	flex: 1;
	min-width: 0;
}

.fs-produktuebersicht__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 21px;
}

/* --- Product Card --- */
.fs-product-card {
	position: relative;
	background: #fff;
}

.fs-product-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.fs-product-card__image-wrap {
	position: relative;
	border: 1px solid #F0F0F0;
	border-radius: 0;
	overflow: hidden;
	aspect-ratio: 326 / 254;
	background: #F0F0F0;
}

.fs-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 10px;
}

.fs-product-card__info {
	background: #F0F0F0;
	padding: 16px 20px;
	min-height: 81px;
	display: flex;
	align-items: center;
}

.fs-product-card__title {
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.36;
	color: #535353;
	margin: 0;
}

.fs-product-card__actions {
	position: absolute;
	right: 12px;
	top: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fs-product-card__action {
	display: block;
	width: 48px;
	height: 48px;
}

.fs-product-card__action svg {
	width: 48px;
	height: 48px;
}

/* --- Load More --- */
.fs-produktuebersicht__loadmore {
	display: flex;
	justify-content: center;
	padding-top: 48px;
}

.fs-btn-loadmore {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.fs-btn-loadmore svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.fs-btn-loadmore__text {
	position: relative;
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.36;
	color: #535353;
	padding: 5px 30px;
}

.fs-btn-loadmore:hover .fs-btn-loadmore__text {
	color: #E30613;
}

.fs-btn-loadmore:hover svg rect {
	stroke: #E30613;
}

/* --- Anfrage CTA Box --- */
.fs-anfrage-box {
	margin-top: 64px;
}

.fs-anfrage-box__headline {
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 35px;
	line-height: 1.2;
	color: #E30613;
	margin: 0 0 28px;
	text-align: center;
}

.fs-anfrage-box__inner {
	background: #fff;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.16);
	padding: 62px 48px 58px;
	text-align: center;
}

.fs-anfrage-box__logo {
	margin: 0 0 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fs-anfrage-box__logo img {
	width: 55px;
	height: 55px;
	display: block;
}

.fs-anfrage-box__text {
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.36;
	color: #676C6E;
	margin: 0;
}

.fs-anfrage-box__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	text-decoration: none;
	margin-top: 24px;
}

.fs-anfrage-box__btn svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.fs-anfrage-box__btn span {
	position: relative;
	font-family: 'Azo Sans', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.33;
	color: #E30613;
	padding: 5px 16px;
}

.fs-anfrage-box__btn:hover span {
	color: #C30B16;
}

.fs-anfrage-box__btn:hover svg rect {
	stroke: #C30B16;
}

/* --- Empty State --- */
.fs-produktuebersicht__empty {
	grid-column: 1 / -1;
	text-align: center;
	font-family: 'Open Sans', sans-serif;
	font-size: 18px;
	color: #707070;
	padding: 80px 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	.fs-produktuebersicht__filterbar {
		padding: 24px 20px;
		margin-bottom: 26px;
	}

	.fs-filterbar__row {
		flex-wrap: wrap;
		row-gap: 16px;
		column-gap: 24px;
	}

	.fs-filterbar__show-all {
		margin-left: 0;
	}

	.fs-filterbar__row--extra {
		margin-top: 16px;
	}

	.fs-filterbar__panel--branchen {
		width: calc(100vw - 32px);
		padding: 36px 22px;
	}

	.fs-filterbar__branchen-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 14px;
		row-gap: 10px;
	}

	.fs-filterbar__branche-pill {
		width: 100%;
	}

	.fs-produktuebersicht__content {
		flex-direction: column;
	}

	.fs-produktuebersicht__sidebar {
		width: 100%;
	}

	.fs-cat-sidebar {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.fs-cat-sidebar__parent {
		margin-bottom: 0;
	}

	.fs-cat-sidebar__children {
		padding-left: 0;
	}

	.fs-produktuebersicht__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.fs-produktuebersicht__title {
		font-size: 32px;
	}

	.fs-produktuebersicht__grid {
		grid-template-columns: 1fr;
	}

	.fs-filterbar__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.fs-filterbar__show-all {
		margin-left: 0;
	}

	.fs-filterbar__control-button,
	.fs-filterbar__show-all {
		font-size: 16px;
	}

	.fs-filterbar__panel--default {
		left: 0;
		width: min(360px, calc(100vw - 44px));
		padding: 48px 22px 28px;
	}

	.fs-filterbar__panel--default::before {
		left: 26px;
	}

	.fs-filterbar__panel--branchen {
		padding: 24px 12px;
	}

	.fs-filterbar__branchen-grid {
		grid-template-columns: 1fr;
	}

	.fs-filterbar__branche-label {
		font-size: 16px;
	}

	.fs-produktuebersicht__active-filters {
		flex-direction: column;
		align-items: flex-start;
	}

	.fs-active-filters__sort {
		margin-left: 0;
	}

	.fs-anfrage-box__headline {
		font-size: 28px;
		line-height: 1.25;
		margin-bottom: 20px;
	}

	.fs-anfrage-box__inner {
		padding: 36px 22px 32px;
	}
}

.fs-filter-chip svg {
	flex-shrink: 0;
}

/* --- Siegel / Quality Badges --- */
.fs-product-card__siegel {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	gap: 4px;
	z-index: 2;
}

.fs-product-card__badge {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}
