/* Fragebogen im Stil Navy und Kupfer (wie Startseite v2). Schriften Young Serif und Inter sind auf der Website lokal eingebunden. */
.afb {
	--afb-card: #F4F1EA;        /* Kreide */
	--afb-field: #FFFFFF;
	--afb-fg: #0A1A2B;          /* Navy */
	--afb-muted: #3A4552;       /* Fließtext */
	--afb-line: #D8D2C6;        /* Sandlinie */
	--afb-accent: #B8693A;      /* Kupfer */
	--afb-accent-dark: #8A4A26; /* Kupfer dunkel, kleine Texte auf Hell */
	--afb-accent-soft: #EAE5DB; /* Sand */
	--afb-navy: #0A1A2B;
	--afb-warn: #8A4A26;
	--afb-warn-soft: #EAE5DB;
	--afb-titel: "Young Serif", Georgia, serif;

	max-width: 680px;
	margin: 0 auto;
	box-sizing: border-box;
	background: var(--afb-card);
	color: var(--afb-fg);
	border: 1px solid var(--afb-line);
	border-radius: 2px;
	padding: 40px clamp(20px, 5vw, 48px);
	display: flex;
	flex-direction: column;
	gap: 24px;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	scroll-margin-top: 100px;
}
.afb *, .afb *::before, .afb *::after { box-sizing: border-box; }
.afb [hidden] { display: none !important; }
.afb h2 { margin: 0; font-family: var(--afb-titel); font-weight: 400; font-size: clamp(28px, 4vw, 36px); line-height: 1.15; text-wrap: balance; color: var(--afb-fg); }
.afb p { margin: 0; color: var(--afb-muted); }
.afb a { color: var(--afb-accent-dark); text-underline-offset: 3px; }
.afb a:hover { color: var(--afb-navy); }
.afb-step { display: flex; flex-direction: column; gap: 20px; }
.afb-lead { color: var(--afb-muted); }
.afb-progress { display: flex; flex-direction: column; gap: 10px; }
.afb-steplabel { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--afb-accent-dark); font-variant-numeric: tabular-nums; }
.afb-bar { height: 3px; background: var(--afb-line); overflow: hidden; }
.afb-bar span { display: block; height: 100%; width: 0; background: var(--afb-accent); transition: width .3s; }
.afb-field { display: flex; flex-direction: column; gap: 8px; }
.afb-field > label, .afb-q { font-weight: 500; color: var(--afb-fg); }
.afb input[type=text], .afb input[type=email], .afb input[type=tel], .afb input[type=number], .afb textarea {
	font: inherit; color: var(--afb-fg); background: var(--afb-field);
	border: 1px solid var(--afb-line); border-radius: 2px; padding: 12px 14px; min-height: 48px; width: 100%; margin: 0;
}
.afb input:hover, .afb textarea:hover { border-color: var(--afb-navy); }
.afb textarea { min-height: 110px; resize: vertical; }
.afb input:focus-visible, .afb textarea:focus-visible, .afb button:focus-visible, .afb-opt:focus-within, .afb-scale label:focus-within {
	outline: 2px solid var(--afb-accent-dark); outline-offset: 2px;
}
.afb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .afb-grid { grid-template-columns: 1fr; } }
.afb-type { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--afb-accent-dark); font-weight: 500; }
.afb-opts { display: flex; flex-direction: column; gap: 8px; }
.afb-chips { flex-direction: row; flex-wrap: wrap; }
.afb-opt { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--afb-line); border-radius: 2px; background: var(--afb-field); cursor: pointer; font-weight: 400; margin: 0; color: var(--afb-fg); transition: border-color .15s, background .15s; }
.afb-opt:hover { border-color: var(--afb-navy); }
.afb-opt input { margin: 4px 0 0; accent-color: var(--afb-navy); flex: none; width: 18px; height: 18px; }
.afb-opt:has(input:checked) { border-color: var(--afb-navy); background: var(--afb-accent-soft); }
.afb-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.afb-scale label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; aspect-ratio: 1; border: 1px solid var(--afb-line); border-radius: 2px; background: var(--afb-field); cursor: pointer; font-weight: 500; font-variant-numeric: tabular-nums; margin: 0; color: var(--afb-fg); transition: background .15s, color .15s, border-color .15s; }
.afb-scale label:hover { border-color: var(--afb-navy); }
.afb-scale input { position: absolute; opacity: 0; pointer-events: none; }
.afb-scale label:has(input:checked) { background: var(--afb-navy); color: #F4F1EA; border-color: var(--afb-navy); }
@media (max-width: 520px) { .afb-scale { grid-template-columns: repeat(5, 1fr); } .afb-scale label { aspect-ratio: auto; } }
.afb-scaleends { display: flex; justify-content: space-between; font-size: 14px; color: var(--afb-muted); }
.afb-crisis { background: var(--afb-warn-soft); border-left: 3px solid var(--afb-accent); padding: 14px 18px; font-size: 15px; }
.afb-crisis strong { color: var(--afb-fg); font-weight: 500; }
.afb-err { color: var(--afb-warn); font-size: 15px; font-weight: 500; }
.afb-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--afb-line); }
.afb-nav button { font: inherit; font-weight: 500; border-radius: 2px; min-height: 52px; padding: 0 28px; cursor: pointer; border: 1px solid var(--afb-navy); line-height: 1.2; margin-top: 16px; }
.afb-next { background: var(--afb-accent); border-color: var(--afb-accent) !important; color: var(--afb-navy); }
.afb-next:hover { background: #CF8A5A; border-color: #CF8A5A !important; }
.afb-back { background: transparent; color: var(--afb-navy); }
.afb-back:hover { background: var(--afb-accent-soft); }
.afb-next:disabled { opacity: .6; cursor: wait; }
.afb-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 28px; background: var(--afb-accent); color: var(--afb-navy) !important; text-decoration: none !important; font-weight: 500; border-radius: 2px; }
.afb-cta:hover { background: #CF8A5A; }
.afb-cta:focus-visible { outline: 2px solid var(--afb-accent-dark); outline-offset: 3px; }
.afb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .afb-bar span, .afb-opt, .afb-scale label { transition: none; } }
