/* ==========================================================================
   FHG Newsletter
   Design: Figma FHG_Website / Modul_Newsletter_1_Onepager_desktop
   Colors: Dark Forest #0D2102, Sun #F4EE8F, Glade 50% #E3E6D3, Light 70% #F3F4EB
   Version: 1.3.0
   ========================================================================== */

/* --- Container --- */

.fhg-newsletter {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

/* --- Überschrift --- */

.fhg-newsletter__heading {
	font-family: 'SangBleu Kingdom', serif;
	font-weight: 500;
	font-size: 60px;
	line-height: 60px;
	letter-spacing: -1.8px;
	color: #0A1A01;
	margin: 0;
	padding: 0;
}

/* --- Beschreibung --- */

.fhg-newsletter__description {
	font-family: 'SangBleu Kingdom', serif;
	font-weight: 400;
	font-size: 45px;
	line-height: 50px;
	letter-spacing: -0.45px;
	color: #0A1A01;
	margin: 0;
	padding: 0;
	max-width: 903px;
}

.fhg-newsletter__description em,
.fhg-newsletter__description i {
	font-family: 'SangBleu Kingdom', serif;
	font-style: italic;
}

/* --- Form Group (Form + Datenschutz) --- */

.fhg-newsletter__form-group {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

/* --- Form --- */

.fhg-newsletter__form {
	position: relative;
}

/* --- Input Wrap (Pill-Container) --- */

.fhg-newsletter__input-wrap {
	display: flex;
	align-items: center;
	background-color: #E3E6D3;
	border-radius: 80px;
	max-width: 730px;
	min-height: 65px;
	padding-right: 6px;
}

/* --- Input (starke Selektoren gegen Elementor/Theme-Overrides) --- */

.fhg-newsletter .fhg-newsletter__input-wrap input[type="email"].fhg-newsletter__input,
.fhg-newsletter__input {
	flex: 1;
	min-width: 0;
	background: transparent !important;
	border: none !important;
	border-radius: 80px;
	padding: 15px 10px 15px 27px;
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: -0.18px;
	color: #0D2102;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	height: auto;
	margin: 0;
}

.fhg-newsletter .fhg-newsletter__input-wrap input[type="email"].fhg-newsletter__input:focus,
.fhg-newsletter__input:focus {
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	background: transparent !important;
}

.fhg-newsletter__input::placeholder {
	color: #0D2102;
	opacity: 0.7;
}

/* --- Button (gegen Theme-Overrides) --- */

.fhg-newsletter .fhg-newsletter__button,
.fhg-newsletter__button {
	flex-shrink: 0;
	background-color: #F4EE8F;
	border: none !important;
	border-radius: 80px;
	padding: 11px 25px 13px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
	-webkit-tap-highlight-color: transparent;
	box-shadow: none !important;
	margin: 0;
}

.fhg-newsletter__button-text {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 24px;
	line-height: 30px;
	letter-spacing: -0.72px;
	color: #0D2102;
	text-align: center;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.fhg-newsletter .fhg-newsletter__button:hover,
.fhg-newsletter__button:hover {
	background-color: #0D2102;
}

.fhg-newsletter .fhg-newsletter__button:hover .fhg-newsletter__button-text,
.fhg-newsletter__button:hover .fhg-newsletter__button-text {
	color: #F4EE8F;
}

.fhg-newsletter__button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* --- Datenschutz --- */

.fhg-newsletter__privacy {
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: -0.18px;
	color: #0D2102;
	opacity: 0.7;
	margin: 0;
	padding: 0;
}

.fhg-newsletter .fhg-newsletter__privacy-link,
.fhg-newsletter__privacy a.fhg-newsletter__privacy-link {
	color: #0D2102 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	opacity: 1;
}

.fhg-newsletter .fhg-newsletter__privacy-link:hover,
.fhg-newsletter__privacy a.fhg-newsletter__privacy-link:hover {
	opacity: 0.7;
}

/* --- Feedback --- */

.fhg-newsletter__feedback:empty {
	display: none;
}

.fhg-newsletter__feedback {
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: -0.18px;
	padding-left: 27px;
}

.fhg-newsletter__feedback--success {
	color: #0D2102;
}

.fhg-newsletter__feedback--error {
	color: #c62828;
}

/* --- Success State --- */

.fhg-newsletter__success {
	display: none;
	flex-direction: column;
	gap: 50px;
	position: relative;
}

.fhg-newsletter--success .fhg-newsletter__form-group {
	display: none;
}

.fhg-newsletter--success .fhg-newsletter__description {
	display: none;
}

.fhg-newsletter--success .fhg-newsletter__success {
	display: flex;
}

.fhg-newsletter__success-description {
	font-family: 'SangBleu Kingdom', serif;
	font-weight: 400;
	font-size: 45px;
	line-height: 50px;
	letter-spacing: -0.45px;
	color: #0A1A01;
	margin: 0;
	padding: 0;
	max-width: 903px;
}

.fhg-newsletter__success-description em,
.fhg-newsletter__success-description i {
	font-family: 'SangBleu Kingdom', serif;
	font-style: italic;
}

.fhg-newsletter__star {
	display: inline-block;
	width: 1.8em;
	height: 1.8em;
	vertical-align: baseline;
	position: relative;
	top: 0.25em;
	margin-left: 0.15em;
}

.fhg-newsletter__star svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* --- Focus (nur keyboard, nicht click) --- */

.fhg-newsletter .fhg-newsletter__input:focus-visible {
	outline: 2px solid #0D2102 !important;
	outline-offset: -2px;
}

.fhg-newsletter .fhg-newsletter__button:focus-visible {
	outline: 2px solid #0D2102 !important;
	outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
	.fhg-newsletter {
		gap: 30px;
	}

	.fhg-newsletter__heading {
		font-size: 42px;
		line-height: 42px;
		letter-spacing: -1.26px;
	}

	.fhg-newsletter__description {
		font-size: 33px;
		line-height: 38px;
		letter-spacing: -0.33px;
	}

	.fhg-newsletter__input-wrap {
		max-width: 350px;
		min-height: 55px;
		padding-right: 5px;
		border-radius: 65px;
	}

	.fhg-newsletter .fhg-newsletter__input-wrap input[type="email"].fhg-newsletter__input,
	.fhg-newsletter__input {
		padding: 10px 8px 10px 20px;
		font-size: 18px;
		line-height: 28px;
		letter-spacing: -0.18px;
		border-radius: 65px;
	}

	.fhg-newsletter .fhg-newsletter__button,
	.fhg-newsletter__button {
		padding: 9px 21px 11px;
		border-radius: 67px;
	}

	.fhg-newsletter__button-text {
		font-size: 20px;
		line-height: 25px;
		letter-spacing: -0.6px;
	}

	.fhg-newsletter__form-group {
		gap: 20px;
	}

	.fhg-newsletter__feedback {
		padding-left: 0;
	}

	.fhg-newsletter__success {
		gap: 30px;
	}

	.fhg-newsletter__success-description {
		font-size: 33px;
		line-height: 38px;
		letter-spacing: -0.33px;
	}

	.fhg-newsletter__star {
		width: 0.85em;
		height: 0.85em;
	}
}
