/* =====================================================
   BFSG Betroffenheits-Check – Stylesheet
   Farben: Navy #1d3557 | Kupfer #c78b5b
   Divi-kompatibel: kein !important-Spam, spezifische
   Klassen-Selektoren verhindern Konflikte mit Divi.
   ===================================================== */

/* ── Visually hidden (screen reader only) ── */
.bfsg-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ── Wrapper ── */
.bfsg-check-wrap {
	max-width: 680px;
	margin: 0 auto;
	padding: 2rem 0;
	font-family: inherit;
	color: inherit;
	line-height: 1.7;
}

/* ── Progress bar ── */
.bfsg-progress-bar {
	height: 1px;
	background: #1d3557;
	border-radius: 2px;
	margin-bottom: 2rem;
	overflow: hidden;
}
.bfsg-progress-fill {
	height: 4px;
	background: var(--bfsg-primary, #1d3557);
	border-radius: 2px;
	width: 0%;
	transition: width 0.4s ease;
}

/* ── Steps ── */
.bfsg-step {
	display: none;
}
.bfsg-step.bfsg-active {
	display: block;
}

.bfsg-step-indicator {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 0.75rem;
}

.bfsg-question {
	font-size: 19px;
	font-weight: 500;
	line-height: 1.45;
	margin-bottom: 0.5rem;
	color: var(--bfsg-primary, #1d3557);
}

.bfsg-sub {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 1.25rem;
	line-height: 1.65;
}

/* ── Info toggle button ── */
.bfsg-info-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--bfsg-primary, #1d3557);
	background: none;
	border: 1px solid var(--bfsg-primary, #1d3557);
	border-radius: 6px;
	padding: 5px 12px;
	cursor: pointer;
	margin-bottom: 0.75rem;
	margin-right: 0.5rem;
	opacity: 0.8;
	transition: opacity 0.15s, background 0.15s;
	line-height: 1.4;
}
.bfsg-info-toggle:hover,
.bfsg-info-toggle[aria-expanded="true"] {
	opacity: 1;
	background: rgba(29, 53, 87, 0.06);
}
.bfsg-info-icon {
	font-style: normal;
	font-size: 14px;
	line-height: 1;
}
.bfsg-warn-icon {
	color: var(--bfsg-accent, #c78b5b);
}

/* ── Info box ── */
.bfsg-info-box {
	display: none;
	background: #f9f7f4;
	border-left: 3px solid var(--bfsg-accent, #c78b5b);
	border-radius: 0 8px 8px 0;
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
	font-size: 14px;
	color: #374151;
	line-height: 1.75;
}
.bfsg-info-box.bfsg-open {
	display: block;
}
.bfsg-info-box strong {
	color: #111827;
	font-weight: 600;
}
.bfsg-info-box ul {
	margin: 0.5rem 0 0 1.25rem;
	padding: 0;
}
.bfsg-info-box li {
	margin-bottom: 0.3rem;
}

/* ── Choice buttons ── */
.bfsg-choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 0.5rem;
}
.bfsg-choice {
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 14px 18px;
	text-align: left;
	cursor: pointer;
	font-size: 15px;
	color: #111827;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	line-height: 1.5;
	font-family: inherit;
}
.bfsg-choice:hover {
	border-color: var(--bfsg-primary, #1d3557);
	background: rgba(29, 53, 87, 0.04);
	box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.08);
}
.bfsg-choice:focus-visible {
	outline: 2px solid var(--bfsg-primary, #1d3557);
	outline-offset: 2px;
}

/* ── Results ── */
.bfsg-result {
	border-radius: 12px;
	border: 1px solid #d1d5db;
	padding: 1.5rem;
	margin-bottom: 1.25rem;
}
.bfsg-result.bfsg-betroffen {
	border-color: #fca5a5;
	background: #fef2f2;
}
.bfsg-result.bfsg-nicht-betroffen {
	border-color: #86efac;
	background: #f0fdf4;
}
.bfsg-result.bfsg-grauzone {
	border-color: #fcd34d;
	background: #fffbeb;
}
.bfsg-result-icon {
	font-size: 26px;
	margin-bottom: 0.75rem;
	line-height: 1;
}
.bfsg-result-title {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 0.75rem;
	line-height: 1.4;
}
.bfsg-result.bfsg-betroffen .bfsg-result-title       { color: #991b1b; }
.bfsg-result.bfsg-nicht-betroffen .bfsg-result-title  { color: #166534; }
.bfsg-result.bfsg-grauzone .bfsg-result-title          { color: #92400e; }

.bfsg-result-body {
	font-size: 14px;
	line-height: 1.75;
	color: #374151;
}
.bfsg-result-body strong {
	color: #111827;
	font-weight: 600;
}
.bfsg-result-body ul {
	margin: 0.5rem 0 0 1.25rem;
	padding: 0;
}
.bfsg-result-body li {
	margin-bottom: 0.35rem;
}

/* ── Disclaimer ── */
.bfsg-disclaimer {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.65;
	margin-bottom: 1.25rem;
}
.bfsg-disclaimer strong {
	color: #374151;
}

/* ── CTA & Reset ── */
.bfsg-result-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.bfsg-cta-btn {
	display: inline-block;
	background: var(--bfsg-primary, #1d3557);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s;
	font-family: inherit;
}
.bfsg-cta-btn:hover {
	opacity: 0.88;
	color: #fff;
	text-decoration: none;
}
.bfsg-reset-btn {
	background: none;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 13px;
	color: #6b7280;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
	font-family: inherit;
}
.bfsg-reset-btn:hover {
	border-color: #9ca3af;
	color: #374151;
}

@media (max-width: 767px) {
	 h2.bfsg-title {font-size:24px}
}


/* ── Responsive ── */
@media (max-width: 600px) {
	.bfsg-question {
		font-size: 17px;
	}
	.bfsg-choice {
		font-size: 14px;
		padding: 12px 14px;
	}
	.bfsg-result-actions {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ── Stand-Anzeige ── */
.bfsg-stand {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 1rem;
}

/* ── Print-Button ── */
.bfsg-print-btn {
	background: none;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 13px;
	color: #6b7280;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
	font-family: inherit;
}
.bfsg-print-btn:hover {
	border-color: #9ca3af;
	color: #374151;
}

/* ── Print-Ansicht: nur Ergebnis ── */
@media print {
	.bfsg-check-wrap .bfsg-step:not([data-step="result"]),
	.bfsg-check-wrap .bfsg-progress-bar,
	.bfsg-check-wrap .bfsg-result-actions {
		display: none !important;
	}
	.bfsg-check-wrap .bfsg-step[data-step="result"] {
		display: block !important;
	}
	.bfsg-check-wrap .bfsg-result {
		border: 1px solid #ccc;
		page-break-inside: avoid;
	}
	.bfsg-stand {
		display: block !important;
	}
}
