/* CRELALA Newsletter (crelala-core 0.50.0): window (design „F1“), newsletter page, footer form, picture check.
   Dark card with large rounding, bold heading, e-mail field + button as one pill, red = CRELALA red. */
.crelala-nl,
.crelala-newsletter,
.crelala-nl-pop {
	--nl-card: #1c1c1c;
	--nl-foot: #181818;
	--nl-field: #2a2a2a;
	--nl-line: rgba(255, 255, 255, 0.1);
	--nl-text: #f2f2f2;
	--nl-muted: #b4b4b4;
	--nl-faint: #8a8a8a;
	--nl-red: #e30613;
	--nl-red-dark: #c30511;
	--nl-ok: #5cc46e;
	--nl-err: #ff8a8a;
	--nl-radius: 24px;
}
.crelala-nl *, .crelala-newsletter *, .crelala-nl-pop * { box-sizing: border-box; }

/* ------------------------------------------------------------ the form (all variants) */
.crelala-newsletter { position: relative; color: var(--nl-text); font-size: 16px; line-height: 1.5; text-align: left; -webkit-font-smoothing: antialiased; }
.crelala-newsletter__title { margin: 0 0 18px !important; color: #ffffff; font-size: 22px; font-weight: 700; line-height: 1.2; }
.crelala-newsletter__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.crelala-newsletter__label { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.crelala-newsletter__row {
	display: flex;
	align-items: center;
	height: 60px;
	padding: 6px;
	background: var(--nl-field);
	border: 1px solid var(--nl-line);
	border-radius: 999px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.crelala-newsletter__row:focus-within { border-color: var(--nl-red); box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.25); }
.crelala-newsletter__email {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 18px;
	border: 0 !important;
	background: transparent !important;
	color: #ffffff;
	font: inherit;
	font-size: 16px;
	outline: none !important;
	box-shadow: none !important;
}
.crelala-newsletter__email::placeholder { color: var(--nl-faint); opacity: 1; }
.crelala-newsletter__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--nl-red);
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.crelala-newsletter__btn:hover { background: var(--nl-red-dark); }
.crelala-newsletter__btn[disabled] { opacity: 0.6; cursor: wait; }
.crelala-newsletter__btn.is-small { height: 42px; padding: 0 22px; }
.crelala-newsletter button:focus-visible, .crelala-newsletter a:focus-visible, .crelala-nl-pop__close:focus-visible { outline: 3px solid #ffd700; outline-offset: 2px; }

/* „Ich bin kein Roboter“ */
.crelala-newsletter__robot {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0 0;
	padding: 12px 18px 12px 14px;
	background: #262626;
	border: 1px solid var(--nl-line);
	border-radius: 12px;
	color: #dddddd;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	text-align: left;
}
.crelala-newsletter__robot:hover { border-color: rgba(255, 255, 255, 0.25); }
.crelala-newsletter__box { position: relative; flex: 0 0 22px; height: 22px; background: #ffffff; border: 2px solid #777777; border-radius: 5px; }
.crelala-newsletter__robot.is-open { border-color: var(--nl-red); }
.crelala-newsletter__robot.is-done { border-color: rgba(92, 196, 110, 0.6); cursor: default; }
.crelala-newsletter__robot.is-done .crelala-newsletter__box { background: var(--nl-ok); border-color: var(--nl-ok); }
.crelala-newsletter__robot.is-done .crelala-newsletter__box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 12px;
	border: solid #ffffff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
.crelala-newsletter__robot.is-error { border-color: var(--nl-err); }

/* picture check */
.crelala-newsletter__puzzle { max-width: 360px; margin-top: 10px; padding: 12px; background: #262626; border: 1px solid var(--nl-line); border-radius: 16px; }
.crelala-newsletter__puzzle-head { margin: 0 0 10px; padding: 12px 14px; background: var(--nl-red); color: #ffffff; border-radius: 10px; font-size: 14px; line-height: 1.35; }
.crelala-newsletter__puzzle-head span, .crelala-newsletter__puzzle-head strong { display: block; }
.crelala-newsletter__puzzle-head strong { font-size: 22px; }
.crelala-newsletter__puzzle-head em { display: block; margin-top: 4px; font-style: normal; font-weight: 700; }
.crelala-newsletter__puzzle-wait { margin: 0; padding: 30px 0; text-align: center; color: var(--nl-muted); }
.crelala-newsletter__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.crelala-newsletter__tile { position: relative; display: block; padding: 0; aspect-ratio: 1; border: 0; border-radius: 8px; background: #333333; cursor: pointer; overflow: hidden; }
.crelala-newsletter__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.12s ease; }
.crelala-newsletter__tile[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--nl-red); }
.crelala-newsletter__tile[aria-pressed="true"] img { transform: scale(0.84); }
.crelala-newsletter__tile[aria-pressed="true"]::after {
	content: "✓";
	position: absolute;
	top: 6px;
	left: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--nl-red);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}
.crelala-newsletter__tile:focus-visible { outline: 3px solid #ffd700; outline-offset: -3px; }
.crelala-newsletter__puzzle-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.crelala-newsletter__link { padding: 6px 0; border: 0; background: none; color: var(--nl-muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

.crelala-newsletter__msg { margin: 14px 0 0 !important; font-weight: 700; }
.crelala-newsletter__msg:empty { display: none; }
.crelala-newsletter__msg.is-ok { color: var(--nl-ok); }
.crelala-newsletter__msg.is-error { color: var(--nl-err); }
.crelala-newsletter__consent { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 0 !important; color: var(--nl-faint); font-size: 12.5px; line-height: 1.5; }
.crelala-newsletter__consent svg { flex: 0 0 auto; margin-top: 2px; }
.crelala-newsletter a { color: inherit; text-decoration: underline; }
.crelala-newsletter__more { margin-top: 10px; color: var(--nl-faint); font-size: 12.5px; }
.crelala-newsletter__more summary { cursor: pointer; text-decoration: underline; }
.crelala-newsletter__more p { margin: 8px 0 0; line-height: 1.55; }

/* ------------------------------------------------------------ window (F1) */
.crelala-nl-pop { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 24px; font-family: inherit; }
.crelala-nl-pop[hidden] { display: none; }
.crelala-nl-pop__backdrop { position: absolute; inset: 0; background: rgba(15, 15, 15, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s ease; }
.crelala-nl-pop__card {
	position: relative;
	width: min(680px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 52px 60px 0;
	color: var(--nl-text);
	background: var(--nl-card);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--nl-radius);
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transform: translateY(14px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.crelala-nl-pop.is-open .crelala-nl-pop__backdrop { opacity: 1; }
.crelala-nl-pop.is-open .crelala-nl-pop__card { opacity: 1; transform: none; }
.crelala-nl-pop__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #dddddd;
	font-size: 22px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
}
.crelala-nl-pop__close:hover { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.crelala-nl-pop__logo { display: block; width: auto; height: 58px; margin: 0 0 26px; }
.crelala-nl-pop__head { margin: 0 0 14px !important; padding-right: 40px; color: #ffffff; font-size: 46px; font-weight: 700; line-height: 1.05 !important; letter-spacing: -0.025em; }
.crelala-nl-pop__lead { max-width: 520px; margin: 0 0 30px !important; color: var(--nl-muted); font-size: 17px; font-weight: normal; line-height: 1.6 !important; }
.crelala-newsletter.is-popup .crelala-newsletter__consent { margin: 34px -60px 0 !important; padding: 16px 60px; background: var(--nl-foot); border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ------------------------------------------------------------ newsletter page */
.crelala-nl--page {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
	max-width: 1080px;
	margin: 8px 0 56px;
	color: var(--nl-text);
	text-align: left;
}
.crelala-nl__head { margin: 0 0 16px !important; color: #ffffff !important; font-size: clamp(32px, 3.6vw, 46px); font-weight: 700 !important; line-height: 1.05 !important; letter-spacing: -0.025em; }
.crelala-nl__lead { margin: 0 0 24px !important; color: #d6d6d6; font-size: 17px; line-height: 1.65; }
.crelala-nl__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crelala-nl__perks li { position: relative; padding-left: 22px; font-size: 16px; }
.crelala-nl__perks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--nl-red); }
.crelala-newsletter.is-page { padding: 40px 40px 0; background: var(--nl-card); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--nl-radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); overflow: hidden; }
.crelala-newsletter.is-page .crelala-newsletter__consent { margin: 28px -40px 0 !important; padding: 14px 40px; background: var(--nl-foot); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.crelala-newsletter.is-page .crelala-newsletter__more { margin: 0 -40px; padding: 0 40px 16px; background: var(--nl-foot); }

/* ------------------------------------------------------------ footer band */
.crelala-newsletter-band { padding: 0 16px; }
.crelala-newsletter.is-footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: 0 40px;
	align-items: start;
	max-width: 1080px;
	margin: 32px auto;
	padding: 30px 36px 26px;
	background: var(--nl-card);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--nl-radius);
}
.crelala-newsletter.is-footer .crelala-newsletter__title { grid-row: span 5; margin: 6px 0 0 !important; }
.crelala-newsletter.is-footer .crelala-newsletter__title span { display: block; margin-top: 6px; color: var(--nl-muted); font-size: 15px; font-weight: normal; }
.crelala-newsletter.is-footer .crelala-newsletter__consent { margin-top: 14px !important; }
.crelala-newsletter.is-footer .crelala-newsletter__robot { justify-self: start; }
@media (min-width: 821px) {
	.crelala-newsletter.is-footer > :not(.crelala-newsletter__title) { grid-column: 2; }
}

/* ------------------------------------------------------------ small screens */
@media (max-width: 820px) {
	.crelala-nl--page { grid-template-columns: 1fr; gap: 28px; }
	.crelala-newsletter.is-footer { grid-template-columns: 1fr; }
	.crelala-newsletter.is-footer .crelala-newsletter__title { grid-row: auto; margin-bottom: 16px !important; }
}
@media (max-width: 600px) {
	.crelala-newsletter__row { height: auto; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 22px; }
	.crelala-newsletter__email { flex: 1 1 100%; height: 48px; }
	.crelala-newsletter__btn { flex: 1 1 100%; justify-content: center; height: 48px; }
	.crelala-newsletter__btn.is-small { flex: 0 0 auto; }
	.crelala-newsletter__puzzle { max-width: none; }
	.crelala-newsletter.is-page { padding: 26px 20px 0; }
	.crelala-newsletter.is-page .crelala-newsletter__consent { margin: 24px -20px 0 !important; padding: 14px 20px; }
	.crelala-newsletter.is-page .crelala-newsletter__more { margin: 0 -20px; padding: 0 20px 14px; }
	/* window = sheet from below; the page stays visible above (no full-screen pop-up on phones) */
	.crelala-nl-pop { place-items: end stretch; padding: 0; }
	.crelala-nl-pop__card { width: 100%; max-height: 88vh; padding: 28px 20px 0; border-radius: 24px 24px 0 0; transform: translateY(30px); }
	.crelala-nl-pop__logo { height: 44px; margin-bottom: 18px; }
	.crelala-nl-pop__head { font-size: 30px; }
	.crelala-nl-pop__lead { font-size: 16px; margin-bottom: 22px !important; }
	.crelala-newsletter.is-popup .crelala-newsletter__consent { margin: 24px -20px 0 !important; padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.crelala-nl-pop__backdrop, .crelala-nl-pop__card, .crelala-newsletter__tile img { transition: none; }
}
