/* WoW Mitmachen – Frontend-Styles (an das Divi-Theme angelehnt) */

@import url( 'https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600&display=swap' );

.wow-mitmachen,
.wow-unterzeichner {
	max-width: 780px;
	margin: 0 auto;
	font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
	color: #000;
	line-height: 1.5em;
}

.wow-mitmachen *,
.wow-unterzeichner * {
	box-sizing: border-box;
}

/* Überschriften wie im Theme */
.wow-mitmachen legend,
.wow-mitmachen .wow-du-kannst,
.wow-unterzeichner .wow-signers-heading {
	font-family: 'Archivo Black', Helvetica, Arial, Lucida, sans-serif;
	font-weight: 600;
	text-transform: none;
	color: #333;
	line-height: 1em;
	padding-bottom: 10px;
}

.wow-intro p {
	margin: 0 0 1em;
}

.wow-du-kannst {
	font-size: 26px;
	margin: 0.6em 0 0.4em;
}

/* Optionsliste */
.wow-options {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
}

.wow-option {
	border: 0;
	border-radius: 6px;
	margin: 0 0 4px;
	padding: 0 14px;
	background: transparent;
}

/* Jede zweite Möglichkeit leicht grün hinterlegen (Ton der Buttons) */
.wow-option:nth-child( even ) {
	background: #e8efe1;
}

.wow-option-head {
	display: flex;
	align-items: flex-start;
	gap: 0.7em;
	padding: 0.95em 0.2em;
	cursor: pointer;
	line-height: 1.4;
	color: #2c3e37;
	font-size: 1.15em;
}

/* Native Steuerelemente in Markenfarbe: Checkboxen = eckig, Radios = rund */
.wow-mitmachen input[type="checkbox"],
.wow-mitmachen input[type="radio"] {
	accent-color: #4c6b45;
	flex: 0 0 auto;
	cursor: pointer;
	width: 1.5em;
	height: 1.5em;
	margin-top: 0.1em;
}

/* Die 8 Interaktions-Ankreuzfelder etwas größer hervorheben */
.wow-option-head input[type="checkbox"] {
	width: 1.7em;
	height: 1.7em;
	margin-top: 0.05em;
}

.wow-option-body {
	padding: 0 0 1.2em 1.85em;
}

.wow-option-intro {
	margin: 0.4em 0 1em;
}

.wow-pledge-text {
	font-style: italic;
	border-left: 3px solid #8ba07d;
	padding-left: 1em;
	color: #333;
}

/* Datenfelder – beige Vollbreit-Zeilen mit Label im Feld */
.wow-fields-grid {
	display: block;
}

.wow-field,
.wow-extra-field {
	margin: 0 0 14px;
}

/* Nur die reinen Text-Feld-Labels visuell ausblenden (Label steht im Feld als
   Placeholder). Radio-/Checkbox-Labels NICHT ausblenden! */
.wow-mitmachen .wow-field > label,
.wow-mitmachen .wow-extra-field > label:not( .wow-radio-label ):not( .wow-checkbox-label ) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
	border: 0;
}

.wow-shared-fields {
	border: 0;
	padding: 0;
	margin: 1.5em 0;
}

.wow-shared-fields legend {
	font-size: 22px;
	padding: 0;
	margin-bottom: 0.5em;
}

/* Divi-fest: gleiche, hohe Spezifität für ALLE Felder (oben wie unten),
   damit das Theme die Eingabefelder nicht mehr überschreibt. */
.wow-mitmachen .wow-field input,
.wow-mitmachen .wow-shared-fields input,
.wow-mitmachen .wow-extra-field input[type="text"],
.wow-mitmachen .wow-extra-field input[type="tel"],
.wow-mitmachen .wow-extra-field input[type="email"] {
	width: 100% !important;
	padding: 20px 22px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #edece4 !important;
	font-size: 18px !important;
	font-family: inherit !important;
	color: #333 !important;
	line-height: 1.3 !important;
	box-sizing: border-box !important;
	height: auto !important;
	margin: 0 !important;
	box-shadow: none !important;
}

.wow-mitmachen .wow-field input::placeholder,
.wow-mitmachen .wow-shared-fields input::placeholder,
.wow-mitmachen .wow-extra-field input::placeholder {
	color: #6b6b64 !important;
	opacity: 1 !important;
}

.wow-mitmachen .wow-field input:focus,
.wow-mitmachen .wow-shared-fields input:focus,
.wow-mitmachen .wow-extra-field input:focus {
	outline: 2px solid #8ba07d !important;
	outline-offset: -2px !important;
	background: #e7e6dd !important;
}

/* Options-spezifische Extra-Felder */
.wow-extra-fields {
	margin: 1em 0;
}

.wow-group-label {
	display: block;
	font-weight: 600;
	color: #333;
	margin: 0.6em 0 0.4em;
}

.wow-radio-label,
.wow-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	font-weight: 400;
	margin: 0.5em 0;
	cursor: pointer;
	color: #2c3e37;
	line-height: 1.45;
}

/* Datenschutz-Einwilligung */
.wow-consent {
	margin: 1.5em 0;
}

.wow-consent::before {
	content: 'Einwilligung';
	display: block;
	font-family: 'Archivo Black', Helvetica, Arial, Lucida, sans-serif;
	color: #8a8674;
	font-size: 20px;
	padding-bottom: 10px;
}

/* Absenden */
.wow-submit-row {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-top: 1.5em;
}

.wow-btn {
	display: inline-block;
	background: #4c6b45;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.85em 2em;
	font-size: 1.05em;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease;
}

.wow-btn:hover {
	background: #3a5335;
	color: #fff;
}

.wow-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.wow-spinner {
	width: 1.2em;
	height: 1.2em;
	border: 3px solid #ccc;
	border-top-color: #4c6b45;
	border-radius: 50%;
	animation: wow-spin 0.8s linear infinite;
}

@keyframes wow-spin {
	to { transform: rotate( 360deg ); }
}

/* Meldungen + Fehler */
.wow-message {
	margin-top: 1.2em;
	padding: 1em 1.2em;
	border-radius: 4px;
}

.wow-message-success {
	background: #e9efe2;
	border: 1px solid #4c6b45;
	color: #2f4429;
}

.wow-message-error {
	background: #fdecea;
	border: 1px solid #c0392b;
	color: #922;
}

.wow-field-error {
	display: block;
	color: #c0392b;
	font-size: 0.85em;
	margin-top: 0.3em;
	font-weight: 600;
}

.wow-has-error input {
	outline: 2px solid #c0392b;
	outline-offset: -2px;
}

.wow-required-mark {
	color: #c0392b;
}

/* Honeypot */
.wow-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Unterzeichner-Ansicht */
.wow-counter {
	font-size: 1.35em;
	text-align: center;
	margin: 0 0 1em;
	color: #333;
}

.wow-counter-number,
.wow-count-number {
	font-family: 'Archivo Black', Helvetica, Arial, Lucida, sans-serif;
	font-size: 1.3em;
	color: #4c6b45;
}

.wow-map {
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 1.5em;
	z-index: 0;
}

/* Inline-SVG-Pin ohne Standard-Kasten */
.wow-pin {
	background: transparent;
	border: 0;
}

.wow-pin svg {
	display: block;
	filter: drop-shadow( 0 1px 1.5px rgba( 0, 0, 0, 0.35 ) );
}

/* Marker-Cluster einheitlich in Orange (#F6A32E) statt grün/gelb/orange */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
	background-color: rgba( 246, 163, 46, 0.35 ) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
	background-color: rgba( 246, 163, 46, 0.9 ) !important;
}

.marker-cluster span {
	color: #ffffff !important;
	font-weight: 700;
}

.wow-signers-heading {
	font-size: 26px;
	margin-top: 1em;
}

.wow-signers-list {
	list-style: none;
	padding: 0;
	margin: 0;
	columns: 2;
	column-gap: 2em;
}

.wow-signer {
	break-inside: avoid;
	padding: 0.35em 0;
	border-bottom: 1px solid #e3e1d9;
}

.wow-signer-ort {
	color: #666;
	font-size: 0.9em;
	margin-left: 0.4em;
}

@media ( max-width: 600px ) {
	.wow-signers-list {
		columns: 1;
	}

	.wow-mitmachen .wow-field input,
	.wow-mitmachen .wow-shared-fields input,
	.wow-mitmachen .wow-extra-field input {
		padding: 16px 18px !important;
		font-size: 16px !important;
	}
}
