/* ============================================================
   KK FAQ – Frontend & Editor
   Marke: --kk-green #1B4D3E, --kk-orange #F39200
   ============================================================ */

.kk-faq {
	--kk-green: #1B4D3E;
	--kk-orange: #F39200;
	--kk-faq-border: #E2E6E4;
	--kk-faq-bg: #FFFFFF;
	--kk-faq-text: #2B2B2B;
	--kk-faq-radius: 8px;
}

.kk-faq__item {
	border: 1px solid var(--kk-faq-border);
	border-radius: var(--kk-faq-radius);
	background: var(--kk-faq-bg);
	margin: 0 0 0.75rem;
	overflow: hidden;
}

.kk-faq__item:last-child {
	margin-bottom: 0;
}

/* --- Frage / summary ------------------------------------------------- */
.kk-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	margin: 0;
	cursor: pointer;
	font-weight: 600;
	line-height: 1.4;
	color: var(--kk-green);
	list-style: none;
}

.kk-faq__question::-webkit-details-marker {
	display: none;
}

.kk-faq__question:hover {
	color: var(--kk-orange);
}

.kk-faq__question:focus-visible {
	outline: 3px solid var(--kk-orange);
	outline-offset: -3px;
}

.kk-faq__question-text {
	flex: 1 1 auto;
}

/* --- Plus/Minus-Icon (currentColor -> forced-colors-tauglich) -------- */
.kk-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 1.1em;
	height: 1.1em;
}

.kk-faq__icon::before,
.kk-faq__icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	border-radius: 2px;
}

.kk-faq__icon::before {
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	transform: translateY(-50%);
}

.kk-faq__icon::after {
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	transform: translateX(-50%);
	transition: transform 0.25s ease;
}

.kk-faq__item[open] .kk-faq__icon::after {
	transform: translateX(-50%) scaleY(0);
}

/* --- Antwort --------------------------------------------------------- */
.kk-faq__answer-inner {
	padding: 0 1.25rem 1.25rem;
	color: var(--kk-faq-text);
}

.kk-faq__answer-inner > :first-child {
	margin-top: 0;
}

.kk-faq__answer-inner > :last-child {
	margin-bottom: 0;
}

.kk-faq__answer-inner a {
	color: var(--kk-green);
	text-decoration: underline;
}

/* --- Reduced Motion -------------------------------------------------- */
@media ( prefers-reduced-motion: reduce ) {
	.kk-faq__icon::after {
		transition: none;
	}
}

/* --- High-Contrast / forced-colors ---------------------------------- */
@media ( forced-colors: active ) {
	.kk-faq__item {
		border-color: CanvasText;
	}
	.kk-faq__question {
		color: CanvasText;
	}
	.kk-faq__question:hover {
		color: LinkText;
	}
	.kk-faq__question:focus-visible {
		outline-color: Highlight;
	}
	.kk-faq__icon::before,
	.kk-faq__icon::after {
		background: CanvasText;
	}
}

/* ============================================================
   Editor
   ============================================================ */
.kk-faq--editor .kk-faq__item--editor {
	border: 1px solid var(--kk-faq-border, #E2E6E4);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin: 0 0 0.75rem;
}

.kk-faq__item--editor .kk-faq__question-text {
	font-weight: 600;
	color: #1B4D3E;
	margin-bottom: 0.5rem;
}

.kk-faq__item--editor .kk-faq__answer-inner {
	padding: 0;
	border-top: 1px dashed #E2E6E4;
	padding-top: 0.5rem;
}
