/* SG Digital-Check. Farben und Schrift kommen über CSS-Variablen aus dem Theme (theme.json). */
.sgdc {
	--sgdc-accent: var(--wp--preset--color--accent, #2747c9);
	--sgdc-on-accent: var(--wp--preset--color--on-accent, #ffffff);
	--sgdc-ink: var(--wp--preset--color--ink, #1a1e23);
	--sgdc-muted: var(--wp--preset--color--muted, #555d66);
	--sgdc-line: var(--wp--preset--color--line, #b9bfc6);
	--sgdc-surface: var(--wp--preset--color--surface, #ffffff);
	--sgdc-green: #1e7a46;
	--sgdc-yellow: #8a5a00;
	--sgdc-red: #b3261e;
	color: var(--sgdc-ink);
	max-width: 760px;
	font-size: 1.05rem;
	line-height: 1.55;
}
.sgdc [hidden] { display: none !important; }
.sgdc-lead { margin: 0 0 1.25rem; }

.sgdc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: .75rem 1.4rem;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	border: 2px solid var(--sgdc-accent); border-radius: var(--wp--custom--radius, 0);
}
.sgdc-btn--primary { background: var(--sgdc-accent); color: var(--sgdc-on-accent); }
.sgdc-btn--ghost { background: transparent; color: var(--sgdc-ink); border-color: var(--sgdc-ink); }
.sgdc-btn:focus-visible, .sgdc input:focus-visible + label, .sgdc a:focus-visible, .sgdc-result:focus-visible {
	outline: 3px solid var(--sgdc-accent); outline-offset: 3px;
}

.sgdc-progress { height: 6px; background: var(--sgdc-line); margin-bottom: .75rem; }
.sgdc-progress__bar { display: block; height: 100%; width: 0; background: var(--sgdc-accent); transition: width .25s ease; }
.sgdc-step { margin: 0 0 .5rem; font-size: .9rem; color: var(--sgdc-muted); }

.sgdc-fieldset { border: 0; margin: 0; padding: 0; }
.sgdc-question { font-size: 1.35rem; font-weight: 700; line-height: 1.3; margin-bottom: 1rem; padding: 0; }
.sgdc-options { display: grid; gap: .5rem; }
.sgdc-option { position: relative; }
.sgdc-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgdc-option label {
	display: flex; align-items: center; gap: .75rem;
	min-height: 52px; padding: .7rem 1rem; cursor: pointer;
	background: var(--sgdc-surface); border: 1.5px solid var(--sgdc-line);
	border-radius: var(--wp--custom--radius, 0);
}
.sgdc-option label::before {
	content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid var(--sgdc-muted); box-sizing: border-box;
}
.sgdc-option input:checked + label { border-color: var(--sgdc-accent); box-shadow: inset 0 0 0 1px var(--sgdc-accent); }
.sgdc-option input:checked + label::before { border-color: var(--sgdc-accent); background: radial-gradient(var(--sgdc-accent) 45%, transparent 50%); }

.sgdc-error { color: var(--sgdc-red); font-weight: 600; margin: .75rem 0 0; }
.sgdc-nav { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin-top: 1.25rem; }
.sgdc-nav [data-sgdc-next] { margin-left: auto; }

.sgdc-result:focus { outline: none; }
.sgdc-result h2 { margin: 0 0 1rem; }
.sgdc-result h3 { margin: 1.75rem 0 .75rem; }
.sgdc-lights { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sgdc-light { display: flex; gap: .75rem; padding: 1rem; border: 1.5px solid var(--sgdc-line); background: var(--sgdc-surface); }
.sgdc-light__dot { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; margin-top: .2rem; }
.sgdc-light--gruen .sgdc-light__dot { background: var(--sgdc-green); }
.sgdc-light--gelb .sgdc-light__dot { background: var(--sgdc-yellow); }
.sgdc-light--rot .sgdc-light__dot { background: var(--sgdc-red); }
.sgdc-light__body { display: flex; flex-direction: column; }
.sgdc-light__label { font-weight: 600; }
.sgdc-light--gruen .sgdc-light__label { color: var(--sgdc-green); }
.sgdc-light--gelb .sgdc-light__label { color: var(--sgdc-yellow); }
.sgdc-light--rot .sgdc-light__label { color: var(--sgdc-red); }
.sgdc-light__text { font-size: .95rem; color: var(--sgdc-muted); }
.sgdc-tips { margin: 0; padding-left: 1.25rem; display: grid; gap: .75rem; }
.sgdc-tips__area { display: block; font-size: .85rem; font-weight: 600; color: var(--sgdc-muted); }
.sgdc-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.sgdc-onsite { margin-top: 1.25rem; }
.sgdc-note { font-size: .875rem; color: var(--sgdc-muted); }

@media (prefers-reduced-motion: reduce) {
	.sgdc-progress__bar { transition: none; }
}
