/* Web24 Newsletter – themeneutral, gesteuert über CSS-Variablen. */
.w24nl {
	--w24nl-accent: #0f70ba;
	--w24nl-radius: 10px;
	--w24nl-border: rgba(0, 0, 0, 0.14);
	--w24nl-bg: rgba(0, 0, 0, 0.03);
	--w24nl-text: inherit;
	--w24nl-muted: rgba(0, 0, 0, 0.62);
	--w24nl-success-bg: #e6f4ea;
	--w24nl-success-text: #1a5d2b;
	--w24nl-error-bg: #fdecea;
	--w24nl-error-text: #8a1c1c;
	box-sizing: border-box;
	margin: 2rem 0;
	padding: 1.5rem;
	border: 1px solid var(--w24nl-border);
	border-radius: var(--w24nl-radius);
	background: var(--w24nl-bg);
	color: var(--w24nl-text);
	line-height: 1.5;
}

.dark .w24nl,
[data-theme="dark"] .w24nl {
	--w24nl-border: rgba(255, 255, 255, 0.18);
	--w24nl-bg: rgba(255, 255, 255, 0.05);
	--w24nl-muted: rgba(255, 255, 255, 0.7);
	--w24nl-success-bg: rgba(46, 160, 67, 0.2);
	--w24nl-success-text: #9be4a9;
	--w24nl-error-bg: rgba(220, 60, 60, 0.2);
	--w24nl-error-text: #f5a3a3;
}

.w24nl *,
.w24nl *::before,
.w24nl *::after {
	box-sizing: inherit;
}

.w24nl--widget {
	margin: 0;
	padding: 1.1rem;
}

.w24nl__heading {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.w24nl__intro {
	margin: 0 0 1rem;
	color: var(--w24nl-muted);
}

.w24nl__fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.w24nl__field {
	display: block;
	margin: 0;
}

.w24nl__label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.w24nl__label small {
	font-weight: 400;
	color: var(--w24nl-muted);
}

.w24nl input[type="text"],
.w24nl input[type="email"] {
	width: 100%;
	margin: 0;
	padding: 0.7rem 0.85rem;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid var(--w24nl-border);
	border-radius: calc(var(--w24nl-radius) - 3px);
	min-height: 2.9rem;
}

.dark .w24nl input[type="text"],
.dark .w24nl input[type="email"],
[data-theme="dark"] .w24nl input[type="text"],
[data-theme="dark"] .w24nl input[type="email"] {
	background: rgba(255, 255, 255, 0.08);
}

.w24nl input:focus-visible,
.w24nl button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--w24nl-accent) 45%, transparent);
	outline-offset: 2px;
}

.w24nl__consent {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin: 0;
	font-size: 0.85rem;
	color: var(--w24nl-muted);
	cursor: pointer;
}

.w24nl__consent input {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.2rem 0 0;
	accent-color: var(--w24nl-accent);
}

.w24nl__consent a {
	color: inherit;
	text-decoration: underline;
}

.w24nl__button {
	display: inline-block;
	width: 100%;
	margin: 0;
	padding: 0.8rem 1.4rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--w24nl-accent);
	border: 0;
	border-radius: calc(var(--w24nl-radius) - 3px);
	cursor: pointer;
	transition: filter 0.15s ease;
}

.w24nl__button:hover {
	filter: brightness(1.08);
}

.w24nl__button:disabled,
.w24nl__button.is-busy {
	opacity: 0.65;
	cursor: wait;
}

.w24nl__status {
	margin: 0 0 0.75rem;
	padding: 0.7rem 0.9rem;
	border-radius: calc(var(--w24nl-radius) - 3px);
	font-size: 0.95rem;
}

.w24nl__status[hidden] {
	display: none;
}

.w24nl__status.is-success {
	background: var(--w24nl-success-bg);
	color: var(--w24nl-success-text);
}

.w24nl__status.is-error {
	background: var(--w24nl-error-bg);
	color: var(--w24nl-error-text);
}

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ein normales Feld. */
.w24nl__hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (min-width: 640px) {
	.w24nl--post .w24nl__fields,
	.w24nl--shortcode .w24nl__fields {
		grid-template-columns: 1fr 1fr;
		align-items: end;
	}

	.w24nl--post .w24nl__consent,
	.w24nl--shortcode .w24nl__consent,
	.w24nl--post .w24nl__button,
	.w24nl--shortcode .w24nl__button {
		grid-column: 1 / -1;
	}

	.w24nl--post .w24nl__button,
	.w24nl--shortcode .w24nl__button {
		width: auto;
		justify-self: start;
	}
}

/*
 * Divi-Beitraege: dasselbe Raster wie .et_pb_row.
 *
 * Divi setzt seine Zeilen auf 80 % der Breite (ab 980 px Fensterbreite auf
 * 90 %), hoechstens auf die eingestellte Inhaltsbreite, zentriert. Das
 * angehaengte Formular steht ausserhalb dieser Zeilen und liefe sonst ueber
 * die volle Fensterbreite -- siehe divi_klasse() in class-w24nl-form.php. Die
 * Klasse vergibt nur PHP, und nur fuer Beitraege, die der Builder gebaut hat.
 */
.w24nl--divi {
	width: 80%;
	max-width: var(--w24nl-max, 1080px);
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 980px) {
	.w24nl--divi {
		width: 90%;
	}
}

/* Abmeldeseite: zweiter, zurueckhaltender Knopf neben dem Hauptknopf. */
.w24nl__button--ghost{background:#eee;color:#333}
.w24nl__button--ghost:hover{background:#e2e2e2}
.w24nl--unsub .w24nl__button{width:auto}
