/*
 * DF FAQ — styles for the "FAQ - Modul" element. Colours reference the
 * "DataFacility" design-system CSS variables, with hex fallbacks mirroring
 * mock-styles.css. The accordion uses native <details>/<summary>.
 */

.df-faq {
	--df-section-bg: var(--papir, #f5f4f1);
	--df-heading:    var(--petrol, #0f2e33);
	--df-marker:     var(--petrol, #0f2e33);
	--df-q:          var(--petrol, #0f2e33);
	--df-a:          var(--tekst-lys, #5c6e71);
	--df-line:       var(--faq-linje, #dedcd6);
	--df-icon:       var(--petrol, #0f2e33);

	padding: 72px 5%;
	background-color: var(--df-section-bg);
}

/* ── Indre wrapper: maks-bredde 1600px, centreret ───────────── */
.df-faq__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: var(--container, 1600px);
	margin-inline: auto;
}

/* ── Farvetema: Blå (tonet flade) ───────────────────────────── */
.df-faq--blaa {
	--df-section-bg: var(--tonet, #e6eeed);
}

/* ── Farvetema: Grøn (petrol flade) ─────────────────────────── */
.df-faq--groen {
	--df-section-bg: var(--petrol, #0f2e33);
	--df-heading:    var(--creme, #eaf0ef);
	--df-marker:     var(--creme, #eaf0ef);
	--df-q:          var(--creme, #eaf0ef);
	--df-a:          var(--muted, #9db0b2);
	--df-line:       var(--ikonflade, #1e4a50);
	--df-icon:       var(--creme, #eaf0ef);
}

/* ── Hoved (overskrift) ─────────────────────────────────────── */
.df-faq__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}

.df-faq__marker {
	display: block;
	color: var(--df-marker);
}

.df-faq__heading {
	margin: 0;
	font-family: var(--font-heading, 'Space Grotesk', sans-serif);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.936px;
	color: var(--df-heading);
}

/* ── Liste ──────────────────────────────────────────────────── */
.df-faq__list {
	width: 100%;
	border-top: 1px solid var(--df-line);
}

.df-faq__item {
	border-bottom: 1px solid var(--df-line);
}

/* ── Spørgsmål (summary) ────────────────────────────────────── */
.df-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 4px;
	cursor: pointer;
	list-style: none;
}

.df-faq__q::-webkit-details-marker {
	display: none;
}

.df-faq__qtext {
	font-family: var(--font-heading, 'Space Grotesk', sans-serif);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	color: var(--df-q);
}

/* Plus/minus-ikon */
.df-faq__icon {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.df-faq__icon::before,
.df-faq__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background-color: var(--df-icon);
}

.df-faq__icon::before {
	width: 14px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.df-faq__icon::after {
	width: 2px;
	height: 14px;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

.df-faq__item[open] .df-faq__icon::after {
	transform: translate(-50%, -50%) scaleY(0);
}

/* ── Svar ───────────────────────────────────────────────────── */
.df-faq__a {
	padding: 0 4px 22px;
}

.df-faq__a p {
	margin: 0 0 10px;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 15px;
	line-height: 1.6;
	color: var(--df-a);
}

.df-faq__a p:last-child {
	margin-bottom: 0;
}

/* WYSIWYG-svar: links, lister og fremhævninger arver afsnittets typografi. */
.df-faq__a ul,
.df-faq__a ol {
	margin: 0 0 10px;
	padding-left: 20px;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 15px;
	line-height: 1.6;
	color: var(--df-a);
}

.df-faq__a li {
	margin-bottom: 4px;
}

.df-faq__a a {
	color: var(--df-accent, #f78e1e);
	text-decoration: underline;
}

.df-faq__a a:hover {
	text-decoration: none;
}

/* ── Responsiv ──────────────────────────────────────────────── */
@media (max-width: 767px) {
	.df-faq {
		padding: 60px 5% !important;
	}
	.df-faq__qtext {
		font-size: 16px;
	}
}
