/*
 * Bürgerinitiative/Petition widget — new, reusable widget (no source prototype) for
 * campaign/call-to-action pages ("#MedizinalhanfJetzt" and similar). Uses only the
 * plugin's established brand tokens: accent green, Montserrat/Amiko, checkmark lists,
 * pill buttons/badges (same language as the Start-Hero badge and buttons).
 */

.ac-petition {
	font-family: 'Amiko', sans-serif;
	max-width: 800px;
}

.ac-petition > * + * {
	margin-top: 30px;
}

.ac-petition-hashtag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #f0f0f0;
	color: var( --ac-accent, #2e6741 );
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 8px 18px;
	border-radius: 50px;
}

/*
 * The eyebrow-position hashtag (above the main heading) drops the pill/badge look in
 * favour of the plain CI eyebrow-label typography (see .ac-eyebrow in ac-fonts.css) —
 * a compound selector so this only affects that instance, not the CTA-band hashtag
 * pill below (.ac-petition-cta .ac-petition-hashtag), which keeps its badge styling.
 */
.ac-petition-hashtag.ac-eyebrow {
	background-color: transparent;
	color: var( --ac-accent, #2e6741 );
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 0;
	border-radius: 0;
}

.ac-petition-hashtag-icon {
	display: inline-flex;
	font-size: 0.95em;
	line-height: 1;
}

.ac-petition-hashtag-icon svg {
	width: 1em !important;
	height: 1em !important;
	fill: currentColor !important;
}

/* Font/size/weight/color come from the shared .ac-heading class (see ac-fonts.css). */
.ac-petition-heading {
	margin: 0 0 15px;
}

.ac-petition-intro {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #333;
}

.ac-petition-subheading {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.25rem;
	font-weight: 800;
	color: #111;
	margin: 0 0 16px;
}

.ac-petition-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ac-petition-checklist li {
	position: relative;
	padding: 6px 0 6px 30px;
	color: #444;
	line-height: 1.6;
}

/*
 * Elementor ICONS control (see checklist_icon) instead of a hardcoded CSS ::before
 * checkmark character — lets the icon be swapped (including for an uploaded SVG) and
 * independently sized/colored via Style-tab controls, same pattern as every other icon
 * in this plugin.
 */
.ac-petition-check-icon {
	position: absolute;
	left: 0;
	top: 6px;
	display: inline-flex;
	color: var( --ac-accent, #2e6741 );
	font-size: 0.85em;
	line-height: 1;
}

.ac-petition-check-icon svg {
	width: 1em !important;
	height: 1em !important;
	fill: currentColor !important;
}

.ac-petition-howto-lead {
	font-weight: 600;
	color: #111;
	margin: 0 0 16px;
}

.ac-petition-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: ac-petition-step;
}

.ac-petition-step {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
}

.ac-petition-step:last-child {
	margin-bottom: 0;
}

.ac-petition-step-num {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var( --ac-accent, #2e6741 );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
}

.ac-petition-step-text {
	padding-top: 5px;
	color: #444;
	line-height: 1.6;
}

.ac-petition-motivation {
	font-size: 1.1rem;
	font-weight: 600;
	color: #111;
	line-height: 1.6;
}

.ac-petition-note {
	background-color: #f7f9fc;
	border-left: 4px solid var( --ac-accent, #2e6741 );
	border-radius: 0 10px 10px 0;
	padding: 18px 24px;
	font-size: 0.92rem;
	line-height: 1.6;
	color: #555;
}

.ac-petition-note strong {
	color: #111;
}

.ac-petition-cta {
	text-align: center;
	background: var( --ac-accent, #2e6741 );
	border-radius: 10px;
	padding: 40px 30px;
	color: #fff;
}

.ac-petition-cta-text {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.4rem;
	font-weight: 800;
	margin: 0 0 12px;
}

.ac-petition-cta .ac-petition-hashtag {
	background-color: rgba( 255, 255, 255, 0.15 );
	color: #fff;
	margin-bottom: 25px;
}

.ac-petition-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 25px;
}

.ac-petition-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: all 0.3s;
}

/* Basis + alle Link-States gepinnt — Kit-Regeln für a/a:hover/:visited dürfen
   die Buttons nie umfärben (etablierte Hausregel gegen Theme-Bleed-Through). */
.ac-petition-btn-primary,
.ac-petition-btn-primary:link,
.ac-petition-btn-primary:visited {
	background-color: #fff !important;
	color: var( --ac-accent, #2e6741 ) !important;
}

.ac-petition-btn-primary:hover,
.ac-petition-btn-primary:focus,
.ac-petition-btn-primary:active {
	background-color: #fff !important;
	color: var( --ac-accent, #2e6741 ) !important;
	transform: translateY( -4px );
	box-shadow: 0 10px 20px rgba( 0, 0, 0, 0.2 );
}

.ac-petition-btn-secondary,
.ac-petition-btn-secondary:link,
.ac-petition-btn-secondary:visited {
	background-color: transparent !important;
	color: #fff !important;
	border: 2px solid rgba( 255, 255, 255, 0.5 ) !important;
}

.ac-petition-btn-secondary:hover,
.ac-petition-btn-secondary:focus,
.ac-petition-btn-secondary:active {
	background-color: transparent !important;
	color: #fff !important;
	border-color: #fff !important;
	transform: translateY( -4px );
}

@media ( max-width: 600px ) {
	.ac-petition-cta-text {
		font-size: 1.15rem;
	}
}
