/* ============================================================
   DW – FAQ Akkordeon — style.css
   ============================================================ */

.dwm-faq-wrapper {
	width: 100%;
}

/* ── Eine Box um alle Items ──────────────────────────────── */
.dwm-faq-list {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 14px;
	border: 1.5px solid #f0f0f0;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

/* ── Item ────────────────────────────────────────────────── */
.dwm-faq-item {
	--dwm-faq-accent: #4361ee;
	border-bottom: 1.5px solid #f0f0f0;
	transition: background-color 0.2s ease;
}

.dwm-faq-item:last-child {
	border-bottom: none;
}

.dwm-faq-item.is-open {
	border-left: 4px solid var(--dwm-faq-accent);
	background-color: #fafbff;
}

/* ── Question Button ─────────────────────────────────────── */
.dwm-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 18px 22px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	outline: none;
}

.dwm-faq-question:focus-visible {
	outline: 2px solid #4361ee;
	outline-offset: -2px;
}

.dwm-faq-question-text {
	flex: 1;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	color: #1a1a2e;
	transition: color 0.2s ease;
}

.dwm-faq-item.is-open .dwm-faq-question-text {
	color: #4361ee;
}

/* ── Chevron Icon ────────────────────────────────────────── */
.dwm-faq-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: #eef0fd;
	color: #4361ee;
	transition:
		transform        0.3s cubic-bezier(0.4, 0, 0.2, 1),
		background-color 0.2s ease;
}

.dwm-faq-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

.dwm-faq-item.is-open .dwm-faq-icon {
	transform: rotate(180deg);
}

/* ── Answer Panel ────────────────────────────────────────── */
.dwm-faq-answer {
	height: 0;
	overflow: hidden;
}

.dwm-faq-answer-inner {
	padding: 0 22px 20px 22px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #555770;
	border-top: 1.5px solid #f0f0f0;
	margin-top: -1px;
}

.dwm-faq-item.is-open .dwm-faq-answer-inner {
	border-top-color: #f0f0f0;
}

/* ── Typografie im Antwort-Bereich ───────────────────────── */
.dwm-faq-answer-inner p:first-child {
	margin-top: 14px;
}

.dwm-faq-answer-inner p:last-child {
	margin-bottom: 0;
}

.dwm-faq-answer-inner ul,
.dwm-faq-answer-inner ol {
	padding-left: 20px;
	margin: 8px 0;
}

.dwm-faq-answer-inner a {
	color: #4361ee;
	text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
	.dwm-faq-question {
		padding: 16px 18px;
	}

	.dwm-faq-answer-inner {
		padding: 0 18px 18px 18px;
	}

	.dwm-faq-icon {
		width: 30px;
		height: 30px;
	}
}
