/* Griffig – Filter Widget */

.griffig-filter {
	display: flex;
	flex-direction: column;
}

.griffig-filter__section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.griffig-filter__label {
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.griffig-filter__group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---- Filter-Button ---- */
.griffig-filter__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	cursor: pointer;
	border: 1px solid transparent;
	background: #f5f0eb;
	color: #1a1a1a;
	font-size: 1rem;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.griffig-filter__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.griffig-filter__btn--square  { border-radius: 0; }
.griffig-filter__btn--rounded { border-radius: 8px; }
.griffig-filter__btn--pill    { border-radius: 9999px; }

.griffig-filter__btn.is-active {
	background: #1a1a1a;
	color: #ffffff;
}

/* ---- Mobile Dropdowns ---- */
.griffig-filter__select {
	display: none;
	width: 100%;
	padding: 10px 16px;
	font-size: 1rem;
	line-height: 1.2;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 8px;
	background: #f5f0eb;
	color: #1a1a1a;
	cursor: pointer;
	appearance: auto;
}

.griffig-filter--mobile .griffig-filter__btn {
	display: none;
}

.griffig-filter--mobile .griffig-filter__select {
	display: block;
}

/* ---- Mobile: Labels ausblenden ---- */
.griffig-filter--mobile .griffig-filter__section--hide-label-mobile .griffig-filter__label {
	display: none;
}

/* ---- Dropdown-Wrapper (Expand/Collapse) ---- */
.griffig-filter__dropdown-wrapper {
	display: flex;
	flex-direction: column;
}

/* ---- Expand-Button ---- */
.griffig-filter__expand-btn {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	padding: 10px 20px;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font-size: 1rem;
	line-height: 1.2;
	align-self: flex-start;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.griffig-filter__expand-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* CSS-Chevron-Pfeil */
.griffig-filter__expand-btn::after {
	content: '';
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate( 45deg );
	transition: transform 0.2s ease;
	flex-shrink: 0;
	position: relative;
	top: -0.1em;
	margin-left: 6px;
}

.griffig-filter__expand-btn.is-open::after {
	transform: rotate( -135deg );
	top: 0.15em;
}

/* ---- Expand-Content (ausgeklappte Filter) ---- */
.griffig-filter__expand-content {
	height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: height 0.28s ease;
}

@keyframes griffigExpandIn {
	from { opacity: 0; transform: translateY( -6px ); }
	to   { opacity: 1; transform: translateY( 0 ); }
}

.griffig-filter__expand-content.is-open {
	animation: griffigExpandIn 0.22s ease;
}
