/**
 * Newsletter-Anmeldung (Plugin „The Newsletter Plugin", Shortcode [newsletter])
 * im Corporate Design. Das Plugin-Standard-CSS ist abgeschaltet
 * (newsletter_main[css_disabled]) — hier steht das vollständige Styling.
 * Formsprache identisch mit Kontakt- und Widerrufsformular.
 */

.tnp-subscription {
	max-width: 34rem;
	margin: 0;
}

.tnp-field {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	margin: 0 0 var(--wp--preset--spacing--md, 24px);
}
.tnp-field label {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	color: var(--wp--preset--color--ink, #2c2823);
}

.tnp-field input[type="text"],
.tnp-field input[type="email"] {
	width: 100%;
	box-sizing: border-box; /* sonst sprengen Innenabstand + Rahmen die Zeile */
	padding: 0.7em 0.9em;
	border: 1px solid var(--wp--preset--color--line, #d9d3ca);
	border-radius: 10px;
	background: var(--wp--preset--color--paper, #f6f2ec); /* Formular liegt auf der Karte */
	color: var(--wp--preset--color--ink, #2c2823);
	font: inherit;
	font-size: 1rem; /* verhindert das Zoomen von iOS-Safari beim Fokus */
}
.tnp-field input:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-deep, #6a4d33);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--accent, #a6794e);
}

/* Datenschutz-Checkbox: Kästchen und Text nebeneinander, Text nicht fett */
.tnp-privacy-field {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.6em;
}
.tnp-privacy-field input[type="checkbox"] {
	flex: none;
	width: 1.375rem; /* 22 px — ausreichende Zielgröße am Touchscreen */
	height: 1.375rem;
	margin: 0 0 0;
	accent-color: var(--wp--preset--color--accent-deep, #6a4d33);
}
.tnp-privacy-field label {
	font-weight: 400;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--wp--preset--color--ink-soft, #615b52);
}
.tnp-privacy-field label a {
	/* Das Plugin verlinkt den ganzen Label-Text — dezent halten, sonst
	   dominieren zwei unterstrichene Zeilen die Karte. */
	color: inherit;
	text-decoration-color: var(--wp--preset--color--line, #d9d3ca);
	text-underline-offset: 0.18em;
}
.tnp-privacy-field label a:hover {
	color: var(--wp--preset--color--accent-deep, #6a4d33);
}

/* Absenden — dunkle Pille wie alle Primär-Buttons.
   flex-start: sonst streckt die Flex-Spalte (.tnp-field) den Button auf volle Breite. */
.tnp-field-button {
	margin-bottom: 0;
	align-items: flex-start;
}
.tnp-submit {
	display: inline-block;
	width: auto;
	padding: 0.875rem 1.625rem;
	border: 1px solid var(--wp--preset--color--ink, #2c2823);
	border-radius: var(--wp--custom--radius--btn, 999px);
	background: var(--wp--preset--color--ink, #2c2823);
	color: var(--wp--preset--color--paper, #f6f2ec);
	font-family: inherit;
	font-size: 0.90625rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.tnp-submit:hover,
.tnp-submit:focus-visible {
	background: var(--wp--preset--color--accent-deep, #6a4d33);
	border-color: var(--wp--preset--color--accent-deep, #6a4d33);
}

/* Karte um das Formular: Innenabstand großzügiger als die Standard-Karte */
.ebs-nl-karte {
	padding: var(--wp--preset--spacing--lg, 44px);
}
@media (max-width: 600px) {
	.ebs-nl-karte {
		padding: var(--wp--preset--spacing--md, 24px);
	}
}

/* Rückmeldungen des Plugins (Bestätigung ausständig / bestätigt / Fehler) */
.tnp-subscription-response,
.tnp-notification {
	padding: 0.9em 1.1em;
	border: 1px solid var(--wp--preset--color--accent, #a6794e);
	border-left-width: 4px;
	border-radius: 10px;
	background: var(--wp--preset--color--accent-soft, #efe6d8);
	color: var(--wp--preset--color--ink, #2c2823);
	line-height: 1.6;
}

/* Durchgängig breites Layout: Karte auf Lesebreite begrenzen und links bündig
   setzen (margin überschreibt die zentrierende Layout-Regel von WordPress). */
.entry-content > .ebs-nl-karte {
	max-width: 46rem;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
