/*
 * EfK KlimaCheck – Gravity Forms styling
 * Brand colours taken from engagiert-fuer-klimaschutz.de (GeneratePress global colours).
 */
.gform_wrapper.efk-kc_wrapper,
.efk-kc-confirmation {
	--efk-navy: #1e2649;
	--efk-teal: #6daeb4;
	--efk-green-dark: #6b8c8f;
	--efk-green-light: #adc7c9;
	--efk-text: #222222;
	--efk-muted: #575760;
	--efk-surface: #f4f7f7;
	--efk-radius: 10px;

	/* Traffic light: strong tone for markers/borders, light tint for backgrounds */
	--efk-rot: #c8553d;
	--efk-rot-tint: #fbecE8;
	--efk-gelb: #e9a92b;
	--efk-gelb-tint: #fdf4e1;
	--efk-gruen: #4f9a5e;
	--efk-gruen-tint: #e7f3e9;

	font-family: 'Fira Sans', sans-serif;
	color: var(--efk-text);
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Progress bar ---------- */
.efk-kc_wrapper .gf_progressbar_wrapper {
	margin-bottom: 2rem;
}
.efk-kc_wrapper .gf_progressbar_title {
	font-size: .9rem;
	color: var(--efk-muted);
	font-weight: 400;
	letter-spacing: .02em;
}
.efk-kc_wrapper .gf_progressbar {
	background: var(--efk-surface);
	border-radius: 999px;
	padding: 0;
	overflow: hidden;
}
.efk-kc_wrapper .gf_progressbar_percentage {
	background: var(--efk-green-dark) !important;
	border-radius: 999px;
	height: 8px !important;
}
.efk-kc_wrapper .gf_progressbar_percentage span {
	display: none !important;
}

/* ---------- Page header (Teil / Frage) ---------- */
.efk-kc-eyebrow {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .25rem 1rem;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--efk-green-dark);
	border-bottom: 2px solid var(--efk-green-light);
	padding-bottom: .5rem;
	margin-bottom: .75rem;
}
.efk-kc-part-title {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--efk-navy);
	margin: 0 0 .25rem;
}

/* ---------- Questions ---------- */
.efk-kc_wrapper .gfield.efk-ampel > .gfield_label,
.efk-kc_wrapper .gfield.efk-ampel legend.gfield_label {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	line-height: 1.25;
	font-weight: 600;
	color: var(--efk-navy);
	margin-bottom: 1rem;
}
.efk-kc_wrapper .gfield.efk-ampel .gfield_required {
	display: none; /* every question is required – no asterisk clutter */
}
.efk-kc_wrapper .gfield.efk-ampel .gfield_description:not(.validation_message) {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--efk-muted);
	background: var(--efk-surface);
	border-left: 4px solid var(--efk-green-light);
	border-radius: 0 var(--efk-radius) var(--efk-radius) 0;
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
}
.efk-kc_wrapper .gfield.efk-ampel .gfield_description p:last-child {
	margin-bottom: 0;
}

/* ---------- Traffic-light answers ---------- */
.efk-kc_wrapper .efk-ampel .gfield_radio {
	display: grid;
	gap: .75rem;
}
.efk-kc_wrapper .efk-ampel .gchoice {
	--tone: var(--efk-green-dark);
	--tint: var(--efk-surface);
	position: relative;
	margin: 0;
}
.efk-kc_wrapper .efk-ampel .gchoice.efk-ampel--rot   { --tone: var(--efk-rot);   --tint: var(--efk-rot-tint); }
.efk-kc_wrapper .efk-ampel .gchoice.efk-ampel--gelb  { --tone: var(--efk-gelb);  --tint: var(--efk-gelb-tint); }
.efk-kc_wrapper .efk-ampel .gchoice.efk-ampel--gruen { --tone: var(--efk-gruen); --tint: var(--efk-gruen-tint); }

/* Hide the native radio but keep it focusable / accessible */
.efk-kc_wrapper .efk-ampel .gchoice input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.efk-kc_wrapper .efk-ampel .gchoice label {
	display: flex !important;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 1rem 1.25rem 1rem 1rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--efk-text);
	background: #fff;
	border: 2px solid #dfe5e6;
	border-left: 8px solid var(--tone);
	border-radius: var(--efk-radius);
	cursor: pointer;
	transition: background-color .15s, border-color .15s, box-shadow .15s;
}
/* Ampel dot: filled when selected */
.efk-kc_wrapper .efk-ampel .gchoice label::before {
	content: "";
	flex: 0 0 auto;
	width: 1.4rem;
	height: 1.4rem;
	margin-top: .05rem;
	border-radius: 50%;
	border: 3px solid var(--tone);
	background: #fff;
	box-sizing: border-box;
	transition: background-color .15s, box-shadow .15s;
}
.efk-kc_wrapper .efk-ampel .gchoice label:hover {
	background: var(--tint);
}
.efk-kc_wrapper .efk-ampel .gchoice input:checked + label {
	background: var(--tint);
	border-color: var(--tone);
	box-shadow: 0 2px 10px rgba(30, 38, 73, .08);
	font-weight: 600;
}
.efk-kc_wrapper .efk-ampel .gchoice input:checked + label::before {
	background: var(--tone);
	box-shadow: inset 0 0 0 3px #fff;
}
.efk-kc_wrapper .efk-ampel .gchoice input:focus-visible + label {
	outline: 3px solid var(--efk-navy);
	outline-offset: 2px;
}

/* ---------- Info pages (intro, Anregungen, Netzwerk) ---------- */
.efk-kc-info h2,
.efk-kc-info h3 {
	color: var(--efk-navy);
	font-weight: 600;
	line-height: 1.25;
}
.efk-kc-info h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	margin: 0 0 1rem;
}
.efk-kc-info p,
.efk-kc-info li {
	font-size: 1.05rem;
	line-height: 1.65;
}
.efk-kc-tip {
	background: var(--efk-surface);
	border-radius: var(--efk-radius);
	padding: 1.5rem 1.75rem;
	border-top: 6px solid var(--efk-teal);
}
.efk-kc-tip ul,
.efk-kc-network {
	margin: 0 0 0 1.25rem;
	padding: 0;
}
.efk-kc-tip li,
.efk-kc-network li {
	margin-bottom: .75rem;
}
/* Text links (info boxes, notes, consent text, confirmation): always underlined, with a hover state */
.efk-kc-info a,
.efk-kc_wrapper .gfield_description a,
.efk-kc_wrapper .gform_confirmation_message a:not([class*="button"]),
.efk-kc-email-box a:not([class*="button"]) {
	color: var(--efk-navy) !important;
	text-decoration: underline !important;
	text-decoration-color: var(--efk-teal) !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px;
	word-break: break-word;
	transition: color .15s, text-decoration-color .15s;
}
.efk-kc-info a:hover,
.efk-kc-info a:focus-visible,
.efk-kc_wrapper .gfield_description a:hover,
.efk-kc_wrapper .gfield_description a:focus-visible,
.efk-kc_wrapper .gform_confirmation_message a:not([class*="button"]):hover,
.efk-kc_wrapper .gform_confirmation_message a:not([class*="button"]):focus-visible,
.efk-kc-email-box a:not([class*="button"]):hover,
.efk-kc-email-box a:not([class*="button"]):focus-visible {
	color: var(--efk-navy) !important;
	text-decoration-color: var(--efk-navy) !important;
	text-decoration-thickness: 2px !important;
	background-color: rgba(173, 199, 201, .35);
}
.efk-kc-hint {
	background: var(--efk-surface);
	border-left: 4px solid var(--efk-teal);
	border-radius: 0 var(--efk-radius) var(--efk-radius) 0;
	padding: 1rem 1.25rem;
	margin: 1.75rem 0 0;
	font-size: 1rem;
	color: var(--efk-text);
}
.efk-kc-hint strong {
	color: var(--efk-navy);
}
.efk-kc-note {
	font-size: .9rem !important;
	color: var(--efk-muted);
	border-top: 1px solid #dfe5e6;
	padding-top: 1rem;
	margin-top: 1.5rem;
}

/* ---------- Buttons ---------- */
.efk-kc_wrapper .gform_page_footer,
.efk-kc_wrapper .gform_footer {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: space-between;
	align-items: center;
	border-top: 0 !important;
	margin-top: 2rem !important;
	padding-top: 0 !important;
}
.efk-kc_wrapper .gform_next_button,
.efk-kc_wrapper .gform_button,
.efk-kc_wrapper .gform_previous_button,
.efk-kc-confirmation .gravitypdf-download-link {
	font-family: inherit;
	font-size: 1rem !important;
	font-weight: 600;
	line-height: 1.2 !important;
	padding: .85rem 1.75rem !important;
	border-radius: 999px !important;
	cursor: pointer;
	transition: background-color .15s, color .15s;
	min-height: 0 !important;
}
.efk-kc_wrapper .gform_next_button,
.efk-kc_wrapper .gform_button,
.efk-kc-confirmation .gravitypdf-download-link {
	background: var(--efk-navy) !important;
	color: #fff !important;
	border: 2px solid var(--efk-navy) !important;
	order: 2;
	margin-left: auto !important;
}
.efk-kc_wrapper .gform_next_button:hover,
.efk-kc_wrapper .gform_button:hover,
.efk-kc-confirmation .gravitypdf-download-link:hover {
	background: var(--efk-green-dark) !important;
	border-color: var(--efk-green-dark) !important;
}
.efk-kc_wrapper .gform_previous_button {
	background: transparent !important;
	color: var(--efk-navy) !important;
	border: 2px solid var(--efk-green-light) !important;
	order: 1;
}
.efk-kc_wrapper .gform_previous_button:hover {
	border-color: var(--efk-navy) !important;
}

/* ---------- Validation ---------- */
.efk-kc_wrapper .gform_validation_errors {
	border-radius: var(--efk-radius);
}
.efk-kc_wrapper .gfield_error .gchoice label {
	border-color: var(--efk-rot);
}

/* ---------- Confirmation ---------- */
.efk-kc-confirmation h2 {
	color: var(--efk-navy);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	font-weight: 600;
}
.efk-kc-confirmation p {
	font-size: 1.05rem;
	line-height: 1.65;
}
.efk-kc-confirmation .gravitypdf-download-link {
	display: inline-block;
	text-decoration: none !important;
	margin: .5rem 0 2rem !important;
}
.efk-kc-email-box {
	background: var(--efk-surface);
	border-radius: var(--efk-radius);
	padding: 1.5rem 1.75rem;
	margin-top: 1rem;
}
.efk-kc-email-box h3 {
	color: var(--efk-navy);
	font-weight: 600;
	font-size: 1.25rem;
	margin: 0 0 .5rem;
}
.efk-kc-email-box .gform_wrapper.efk-kc_wrapper {
	max-width: none;
	margin-bottom: 0;
}
.efk-kc-email-box p {
	font-size: 1rem;
}

/* Fields */
.efk-kc-email-box .gfield_label {
	font-size: .95rem;
	font-weight: 600;
	color: var(--efk-navy);
}
.efk-kc-email-box input[type="email"] {
	width: 100% !important;
	padding: .7rem .9rem;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--efk-text);
	background: #fff;
	border: 1px solid #c5d0d1;
	border-radius: 6px;
	box-sizing: border-box;
}
.efk-kc-email-box input[type="email"]:focus {
	outline: 3px solid var(--efk-teal);
	outline-offset: 1px;
	border-color: var(--efk-green-dark);
}

/* Consent: same size as the surrounding text, checkbox aligned with the first line */
.efk-kc-email-box .ginput_container_consent {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
}
.efk-kc-email-box .ginput_container_consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin: .2rem 0 0 !important;
	accent-color: var(--efk-navy);
}
.efk-kc-email-box .gfield_consent_label {
	font-size: .95rem !important;
	line-height: 1.55 !important;
	font-weight: 400;
	color: var(--efk-text);
}
.efk-kc-email-box .gfield_consent_description,
.efk-kc-email-box .gfield_consent_description_text,
.efk-kc-email-box .gfield--type-consent .gfield_description {
	border: 0 !important;
	padding: 0 !important;
	margin-top: .5rem !important;
	max-height: none !important;
	overflow: visible !important;
	font-size: .9rem !important;
	color: var(--efk-muted);
	background: transparent !important;
}

.efk-kc-email-box .gfield_consent_description .gfield_consent_description_text {
	margin: 0 !important;
	font-size: inherit !important;
}

/* Secondary button – the PDF download stays the primary action */
.efk-kc-email-box .gform_footer {
	justify-content: flex-start;
}
.efk-kc-email-box .gform_wrapper.efk-kc_wrapper .gform_button {
	margin-left: 0 !important;
	background: transparent !important;
	color: var(--efk-navy) !important;
	border: 2px solid var(--efk-green-dark) !important;
}
.efk-kc-email-box .gform_wrapper.efk-kc_wrapper .gform_button:hover,
.efk-kc-email-box .gform_wrapper.efk-kc_wrapper .gform_button:focus-visible {
	background: var(--efk-green-light) !important;
	border-color: var(--efk-green-light) !important;
	color: var(--efk-navy) !important;
}

/* Space between the page hero and the form / results (the page has no content title) */
.entry-content > .gform_wrapper.efk-kc_wrapper,
.entry-content > .gform_confirmation_wrapper.efk-kc_wrapper {
	margin-top: 3.5rem;
}
@media (max-width: 600px) {
	.entry-content > .gform_wrapper.efk-kc_wrapper,
	.entry-content > .gform_confirmation_wrapper.efk-kc_wrapper {
		margin-top: 2rem;
	}
}

/* Space between the form / results and the site footer */
.gform_wrapper.efk-kc_wrapper,
.gform_confirmation_wrapper.efk-kc_wrapper,
.efk-kc-confirmation {
	margin-bottom: 4rem;
}
.efk-kc-email-box .gform_confirmation_wrapper,
.efk-kc-email-box .gform_confirmation_message {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.efk-kc_wrapper .efk-ampel .gchoice label {
		padding: .85rem 1rem .85rem .85rem;
		gap: .75rem;
	}
	.efk-kc-tip,
	.efk-kc-email-box {
		padding: 1.25rem;
	}
	.efk-kc_wrapper .gform_page_footer .button {
		flex: 1 1 auto;
	}
}
