/* FAQ Akkordeon (79891)
   Colors/spacing are driven by CSS variables. Style-tab controls set the
   variables on "{{WRAPPER}} .faq-acc"; skins set them with lower specificity
   via :where(), so every control always wins over the skin. */

.faq-acc {
	--faq-divider-color: #000;
	--faq-divider-width: 1px;
	--faq-accent: #cafa63;
	width: 100%;
}

/* ---------- Main heading ---------- */
.faq-acc .faq-acc__main-heading {
	margin: 0 0 32px;
	padding: 0;
	text-align: center;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 21px;
	line-height: 1.25;
	color: var(--faq-heading-color, #000);
}

/* ---------- Item ---------- */
.faq-acc .faq-acc__item {
	position: relative;
	overflow: hidden;
	background-color: var(--faq-item-bg, transparent);
	border-radius: var(--faq-item-radius, 0);
	box-shadow: var(--faq-item-shadow, none);
	transition: background-color .25s ease, box-shadow .25s ease;
}

.faq-acc .faq-acc__item.is-open {
	background-color: var(--faq-item-bg-open, var(--faq-item-bg, transparent));
	box-shadow: var(--faq-item-shadow-open, var(--faq-item-shadow, none));
}

.faq-acc .faq-acc__item + .faq-acc__item {
	margin-top: var(--faq-gap, 0px);
}

/* ---------- Dividers (class on widget wrapper via prefix_class) ---------- */
.faq-acc-divider-between .faq-acc__item + .faq-acc__item::before,
.faq-acc-divider-all .faq-acc__item:first-child::before,
.faq-acc-divider-bottom .faq-acc__item::after,
.faq-acc-divider-all .faq-acc__item::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1;
	height: var(--faq-divider-width, 1px);
	background-color: var(--faq-divider-color, #000);
	pointer-events: none;
}

.faq-acc-divider-between .faq-acc__item + .faq-acc__item::before,
.faq-acc-divider-all .faq-acc__item:first-child::before {
	top: 0;
}

.faq-acc-divider-bottom .faq-acc__item::after,
.faq-acc-divider-all .faq-acc__item::after {
	bottom: 0;
}

.faq-acc-skin-cards .faq-acc__item::before,
.faq-acc-skin-cards .faq-acc__item::after {
	display: none !important;
}

/* ---------- Header / button ---------- */
.faq-acc .faq-acc__header {
	margin: 0;
	padding: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.5;
	color: var(--faq-title-color, #000);
	background-color: var(--faq-title-bg, transparent);
	transition: color .2s ease, background-color .2s ease;
}

.faq-acc .faq-acc__header:hover {
	color: var(--faq-title-color-hover, var(--faq-title-color, #000));
	background-color: var(--faq-title-bg-hover, var(--faq-title-bg, transparent));
}

.faq-acc .faq-acc__item.is-open > .faq-acc__header {
	color: var(--faq-title-color-open, var(--faq-title-color, #000));
	background-color: var(--faq-title-bg-open, var(--faq-title-bg, transparent));
}

/* Hard reset against theme / kit button styles */
.faq-acc .faq-acc__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--faq-icon-gap, 16px);
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: var(--faq-title-pad, 15px 12px);
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-decoration: none;
	text-align: left;
	white-space: normal;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.faq-acc .faq-acc__title:hover,
.faq-acc .faq-acc__title:focus,
.faq-acc .faq-acc__title:active {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	outline: none;
	text-decoration: none;
}

.faq-acc .faq-acc__title:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.faq-acc .faq-acc__title-text {
	flex: 1 1 auto;
	min-width: 0;
}

.faq-acc--icon-left .faq-acc__icon {
	order: -1;
}

/* ---------- Icon ---------- */
.faq-acc .faq-acc__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--faq-icon-box, auto);
	height: var(--faq-icon-box, auto);
	border-radius: 50%;
	font-size: var(--faq-icon-size, 16px);
	line-height: 1;
	color: var(--faq-icon-color, currentColor);
	background-color: var(--faq-icon-bg, transparent);
	transition: color .2s ease, background-color .2s ease;
}

.faq-acc .faq-acc__header:hover .faq-acc__icon {
	color: var(--faq-icon-color-hover, var(--faq-icon-color, currentColor));
}

.faq-acc .faq-acc__item.is-open > .faq-acc__header .faq-acc__icon {
	color: var(--faq-icon-color-open, var(--faq-icon-color, currentColor));
	background-color: var(--faq-icon-bg-open, var(--faq-icon-bg, transparent));
}

.faq-acc .faq-acc__icon-closed,
.faq-acc .faq-acc__icon-opened {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform var(--faq-rotate-duration, .3s) ease;
}

.faq-acc .faq-acc__icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.faq-acc .faq-acc__icon--builtin svg {
	stroke-width: var(--faq-icon-stroke, 2);
}

.faq-acc .faq-acc__icon--custom svg {
	fill: currentColor;
}

.faq-acc .faq-acc__icon i {
	font-size: 1em;
	line-height: 1;
}

.faq-acc .faq-acc__icon-opened {
	display: none;
}

.faq-acc .faq-acc__item.is-open > .faq-acc__header .faq-acc__icon-closed {
	display: none;
}

.faq-acc .faq-acc__item.is-open > .faq-acc__header .faq-acc__icon-opened {
	display: inline-flex;
}

/* Single icon (rotating arrow / custom without "opened" icon) */
.faq-acc .faq-acc__item.is-open > .faq-acc__header .faq-acc__icon--single .faq-acc__icon-closed {
	display: inline-flex;
	transform: rotate(180deg);
}

/* ---------- Content ---------- */
.faq-acc .faq-acc__content {
	overflow: hidden;
	transition: height .3s ease;
	background-color: var(--faq-content-bg, transparent);
}

.faq-acc .faq-acc__content[hidden] {
	display: none;
}

.faq-acc .faq-acc__content-inner {
	padding: var(--faq-content-pad, 4px 12px 28px);
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: var(--faq-content-color, #1a1a1a);
}

.faq-acc .faq-acc__content-inner > :first-child {
	margin-top: 0;
}

.faq-acc .faq-acc__content-inner > :last-child {
	margin-bottom: 0;
}

.faq-acc .faq-acc__content-inner a {
	color: var(--faq-link-color, inherit);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.faq-acc .faq-acc__content-inner ul,
.faq-acc .faq-acc__content-inner ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

/* ---------- Skin: Lime-Akzent ---------- */
:where(.faq-acc-skin-accent) .faq-acc {
	--faq-icon-box: 2em;
	--faq-icon-bg: var(--faq-accent, #cafa63);
	--faq-icon-color: #000;
	--faq-icon-bg-open: #000;
	--faq-icon-color-open: var(--faq-accent, #cafa63);
	--faq-icon-size: 14px;
	--faq-title-pad: 18px 4px;
	--faq-content-pad: 0 4px 28px;
}

/* ---------- Skin: Karten ---------- */
:where(.faq-acc-skin-cards) .faq-acc {
	--faq-gap: 12px;
	--faq-item-bg: #f7f7f7;
	--faq-item-bg-open: #fff;
	--faq-item-radius: 12px;
	--faq-item-shadow-open: 0 0 0 1px rgba(0, 0, 0, .1), 0 10px 30px rgba(0, 0, 0, .06);
	--faq-title-pad: 20px 24px;
	--faq-content-pad: 0 24px 24px;
}

@media (prefers-reduced-motion: reduce) {
	.faq-acc .faq-acc__content,
	.faq-acc .faq-acc__icon-closed,
	.faq-acc .faq-acc__icon-opened {
		transition: none !important;
	}
}
