/**
 * Orphit – natives Newsletter-Popup.
 * Design-System: Orphit26-Tokens (Knowledge/design) + self-hosted Fonts
 * (Signika = Display, Golos Text = Body, fonts.css global).
 * Zweispaltig (Bild links 35% / Inhalt rechts), Breite 700px.
 * Kein Mautic, kein Bricks.
 */

.orphit-nl-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-5, 1.25rem);
}

.orphit-nl-popup[hidden] {
	display: none;
}

.orphit-nl-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.43);
}

.orphit-nl-popup__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 700px;
	max-height: 92vh;
	overflow: auto;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	background: var(--surface, #faf7f2);
	border-radius: var(--radius-lg, 20px);
	box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.2);
	font-family: "Golos Text", system-ui, sans-serif;
	animation: orphitNlIn var(--duration-base, 250ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.orphit-nl-popup__media {
	flex: 0 0 35%;
	width: 35%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: #2f3e46;
}

.orphit-nl-popup__content {
	flex: 1 1 65%;
	width: 65%;
	position: relative;
	padding: 26px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.orphit-nl-popup__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 34px;
	line-height: 1;
	color: var(--text, #25211f);
	cursor: pointer;
	padding: 6px;
	opacity: 0.75;
	transition: opacity var(--duration-fast, 150ms) ease;
}

.orphit-nl-popup__close:hover {
	opacity: 1;
}

.orphit-nl-popup__close:focus-visible {
	opacity: 1;
	outline: none;
}

.orphit-nl-popup__title {
	margin: 0 0 12px;
	padding-right: 44px;
	font-size: clamp(18px, 16.35px + 0.513vw, 22.5px) !important;
	line-height: 1.25;
	font-weight: 700;
	color: var(--text, #25211f);
	font-family: "Signika", system-ui, sans-serif !important;
}

.orphit-nl-popup__text {
	margin: 0;
	font-size: clamp(16px, 15.2px + 0.25vw, 18px) !important;
	line-height: 1.5;
	color: var(--textmuted, #5e676b);
	font-family: "Golos Text", system-ui, sans-serif !important;
}

.orphit-nl-popup__text + .orphit-nl-popup__text {
	margin-top: 10px;
}

.orphit-nl-popup__text:last-of-type {
	margin-bottom: 20px;
}

.orphit-nl-popup__form .orphit-nl-form {
	max-width: 100%;
	margin: 0;
}

body.orphit-nl-lock {
	overflow: hidden;
}

@keyframes orphitNlIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 767px) {
	.orphit-nl-popup__dialog {
		flex-direction: column;
		max-width: 460px;
	}

	.orphit-nl-popup__media {
		flex: 0 0 auto;
		width: 100%;
		height: 140px;
	}

	.orphit-nl-popup__content {
		width: 100%;
		padding: 24px 18px;
	}
}

/* Teaser: unaufdringlicher Einstieg, öffnet das Popup per Klick.
   Bewusst KEIN Fullscreen-Interstitial → Google-safe (Mobile). */
.orphit-nl-teaser {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99998;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	max-width: min(320px, calc(100vw - 36px));
	padding: 10px 16px;
	border: 0;
	border-radius: var(--radius-lg, 16px);
	background: var(--primary, #36787b);
	color: #fff;
	cursor: pointer;
	text-align: left;
	font-family: "Golos Text", system-ui, sans-serif;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
	animation: orphitNlTeaserIn var(--duration-base, 250ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.orphit-nl-teaser[hidden] {
	display: none;
}

.orphit-nl-teaser__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.8;
}

.orphit-nl-teaser__text {
	font-size: 15px;
	line-height: 1.3;
	font-weight: 600;
}

.orphit-nl-teaser:hover,
.orphit-nl-teaser:focus-visible {
	background: var(--primary-dark, #2c6467);
}

@keyframes orphitNlTeaserIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 767px) {
	.orphit-nl-teaser {
		right: 12px;
		bottom: 12px;
		max-width: calc(100vw - 24px);
	}
}

