/* SIGES Newsletter — Form + Popup
   Barrierefrei: hoher Kontrast, sichtbare Focus-States, keyboard-navigierbar. */

/* ============ Form (inline embed) ============ */
.siges-nl {
	background: #f7f5f1;
	color: #3a3028;
	padding: 1.75rem;
	border-radius: 12px;
	max-width: 540px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.siges-nl__title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	color: #3a3028;
	line-height: 1.15;
}
.siges-nl__intro {
	margin: 0;
	font-size: 0.95rem;
	color: #6b6357;
	line-height: 1.45;
}

.siges-nl__row {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 0.6rem;
}
.siges-nl--inline .siges-nl__row {
	grid-template-columns: 1fr 2fr auto;
	align-items: end;
}

.siges-nl__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}
.siges-nl__field span {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b6357;
	font-weight: 600;
}
.siges-nl__field input {
	width: 100%;
	padding: 0.7rem 0.9rem;
	height: 44px;
	border: 1px solid #d9d2c8;
	border-radius: 4px;
	font-size: 0.95rem;
	background: #fff;
	color: #3a3028;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.siges-nl__field input:focus {
	outline: none;
	border-color: #BE9B53;
	box-shadow: 0 0 0 3px rgba(190, 155, 83, 0.18);
}

.siges-nl__consent {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.83rem;
	line-height: 1.45;
	color: #2C2825;
	cursor: pointer;
}
.siges-nl__consent input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: #BE9B53;
	cursor: pointer;
}
.siges-nl__consent a {
	color: #BE9B53;
	text-decoration: underline;
}
.siges-nl__consent a:hover { color: #2C2825; }

.siges-nl__submit {
	align-self: flex-start;
	padding: 0.85rem 1.75rem;
	background: #BE9B53;
	color: #fff;
	border: none;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, transform 0.15s ease;
}
.siges-nl__submit:hover { background: #a0824a; }
.siges-nl__submit:active { transform: scale(0.98); }
.siges-nl__submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(190, 155, 83, 0.4);
}
.siges-nl__submit[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.siges-nl__feedback {
	font-size: 0.9rem;
	min-height: 1.2em;
	margin-top: -0.3rem;
}
.siges-nl__feedback--ok    { color: #3a7a3a; font-weight: 600; }
.siges-nl__feedback--error { color: #a83a2a; font-weight: 600; }

/* ============ Compact (Sidebar-Variante, ~384px) ============ */
/* Weiße Card — identisch zu Map-/Makler-Cards in der Sidebar (nicht cremefarben). */
.siges-nl--compact {
	max-width: none;
	width: 100%;
	padding: 1.5rem;
	gap: 0.85rem;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--siges-border, #ECE9E4);
	border-radius: 12px;
}
/* Felder auf weißer Card: dezenter Cream-Fill, damit sie sich abheben */
.siges-nl--compact .siges-nl__field input {
	background: #faf8f4;
}
.siges-nl--compact .siges-nl__field input:focus {
	background: #fff;
}
.siges-nl--compact .siges-nl__title { font-size: 1.1rem; }
.siges-nl--compact .siges-nl__intro { font-size: 0.875rem; }
/* Felder gestapelt — kein 1fr/2fr nebeneinander in der schmalen Spalte */
.siges-nl--compact .siges-nl__row {
	grid-template-columns: 1fr;
	gap: 0.6rem;
}
.siges-nl--compact .siges-nl__consent { font-size: 0.78rem; }
.siges-nl--compact .siges-nl__submit {
	align-self: stretch;
	text-align: center;
}

@media (max-width: 600px) {
	.siges-nl__row { grid-template-columns: 1fr; }
	.siges-nl--inline .siges-nl__row { grid-template-columns: 1fr; }
}

/* ============ Popup ============ */
.siges-nl-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	animation: siges-nl-fadeIn 0.3s ease-out;
}
.siges-nl-popup[hidden] { display: none; }

.siges-nl-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(58, 48, 40, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	cursor: pointer;
}

.siges-nl-popup__card {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 540px;
	padding: 2rem;
	box-shadow: 0 24px 64px -16px rgba(58, 48, 40, 0.4);
	animation: siges-nl-slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	max-height: 90vh;
	overflow-y: auto;
}

.siges-nl-popup__card .siges-nl {
	background: transparent;
	padding: 0;
	max-width: none;
}

.siges-nl-popup__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 1.8rem;
	line-height: 1;
	color: #6b6357;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s ease, color 0.2s ease;
	font-family: inherit;
}
.siges-nl-popup__close:hover {
	background: #ECE9E4;
	color: #3a3028;
}
.siges-nl-popup__close:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(190, 155, 83, 0.4);
}

body.siges-nl-popup-open { overflow: hidden; }

@keyframes siges-nl-fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes siges-nl-slideUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.siges-nl-popup,
	.siges-nl-popup__card { animation: none; }
}
