/* böhmler Newsletter Popup */

.bnp-overlay {
	--bnp-accent: #b55c22;
	--bnp-accent-2: #1f4e8c;
	--bnp-title-color: #b89a5a;
	--bnp-text-color: #333333;
	--bnp-button-text-color: #ffffff;
	--bnp-modal-bg: #ffffff;
	--bnp-footer-bg: #cbb27f;
	--bnp-overlay-color: rgba(20, 18, 14, 0.55);
	--bnp-radius: 2px;
	--bnp-button-radius: 999px;
	--bnp-font: Arial, sans-serif;

	position: fixed;
	inset: 0;
	z-index: 99999;
	background: var(--bnp-overlay-color);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.bnp-overlay.bnp-visible {
	opacity: 1;
}

.bnp-overlay[hidden] {
	display: none !important;
}

.bnp-modal {
	position: relative;
	width: 100%;
	max-width: 460px;
	background: var(--bnp-modal-bg);
	border-radius: var(--bnp-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	transform: translateY(12px);
	transition: transform 0.25s ease;
}

.bnp-overlay.bnp-visible .bnp-modal {
	transform: translateY(0);
}

/* Dauerhafte Einbindung (Shortcode/Widget): kein Overlay, kein Fixed-Layout,
   steht ganz normal im Seitenfluss. Nutzt dieselben Design-Variablen wie das Popup. */
.bnp-inline {
	--bnp-accent: #b55c22;
	--bnp-accent-2: #1f4e8c;
	--bnp-title-color: #b89a5a;
	--bnp-text-color: #333333;
	--bnp-button-text-color: #ffffff;
	--bnp-modal-bg: #ffffff;
	--bnp-footer-bg: #cbb27f;
	--bnp-radius: 2px;
	--bnp-button-radius: 999px;
	--bnp-font: Arial, sans-serif;

	position: static;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	box-shadow: none;
	border: 1px solid #e3e1da;
	transform: none;
}

.bnp-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #555;
	cursor: pointer;
	padding: 4px 8px;
}

.bnp-close:hover {
	color: #111;
}

.bnp-modal-body {
	padding: 36px 36px 28px;
}

.bnp-title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: var(--bnp-title-color);
	font-family: var(--bnp-font);
}

.bnp-intro {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--bnp-text-color);
	font-family: var(--bnp-font);
}

.bnp-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bnp-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #cfcfcf;
	border-radius: var(--bnp-radius);
	font-size: 14px;
	font-family: var(--bnp-font);
	background: #fff;
}

.bnp-field input:focus {
	outline: none;
	border-color: var(--bnp-accent);
}

.bnp-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bnp-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	line-height: 1.5;
	color: #444;
	font-family: var(--bnp-font);
	cursor: pointer;
}

.bnp-consent input {
	margin-top: 3px;
	flex-shrink: 0;
}

.bnp-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
	padding: 13px 28px;
	border: none;
	border-radius: var(--bnp-button-radius);
	background: linear-gradient(90deg, var(--bnp-accent) 0%, var(--bnp-accent) 65%, var(--bnp-accent-2) 65%, var(--bnp-accent-2) 100%);
	color: var(--bnp-button-text-color);
	font-size: 15px;
	font-weight: 600;
	font-family: var(--bnp-font);
	cursor: pointer;
	transition: filter 0.15s ease;
}

.bnp-submit:hover {
	filter: brightness(1.05);
}

.bnp-submit:disabled {
	opacity: 0.7;
	cursor: default;
}

.bnp-submit-text::after {
	content: " \2197"; /* kleiner Pfeil als Ersatz für das Icon */
}

.bnp-message {
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.5;
	font-family: var(--bnp-font);
}

.bnp-message.bnp-success {
	color: #2f6b3a;
}

.bnp-message.bnp-error {
	color: #a3312a;
}

.bnp-footer {
	background: var(--bnp-footer-bg);
	text-align: center;
	padding: 10px 20px;
}

.bnp-footer a {
	color: #fff;
	font-size: 12px;
	text-decoration: underline;
	font-family: var(--bnp-font);
}

@media (max-width: 480px) {
	.bnp-modal-body {
		padding: 28px 22px 22px;
	}
}
