/*
 * Ordertune Newsletter (t1) — styles.
 *
 * 0.1.2: button selectors carry the class twice — the light theme rule
 * `.style-light button[type="submit"]` (0,2,1) beat `.otnl .otnl-button` (0,2,0).
 *
 * 0.1.1: every component selector is scoped under .otnl — the theme sets
 * button[type="submit"] (inline-block, padding) and form p (font-weight 600),
 * both more specific than a single class.
 *
 * The dark variant matches the current "content-newsletter" block on
 * ordertune.com (dark section, centred, outlined fields with a 25 % white
 * border and 2 px radius, 15 px text). The light variant is for the
 * confirmation and preferences pages. Everything is scoped under .otnl.
 */

.otnl {
	--otnl-ink: #ffffff;
	--otnl-muted: rgba(255, 255, 255, 0.65);
	--otnl-line: rgba(255, 255, 255, 0.25);
	--otnl-fill: transparent;
	--otnl-button-bg: #191b1e;
	--otnl-button-ink: #ffffff;
	--otnl-accent: #c1ff3d;
	--otnl-ok: #c1ff3d;
	--otnl-error: #ff8a80;

	max-width: 456px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.5;
	color: var(--otnl-ink);
	text-align: center;
}

.otnl--light {
	--otnl-ink: #1a1a1a;
	--otnl-muted: #6b6863;
	--otnl-line: #d1d1d1;
	--otnl-fill: #ffffff;
	--otnl-button-bg: #0a0a0a;
	--otnl-button-ink: #fafafa;
	--otnl-ok: #1e5f43;
	--otnl-error: #b32d2e;
}

.otnl *,
.otnl *::before,
.otnl *::after {
	box-sizing: border-box;
}

.otnl .otnl-sr,
.otnl .otnl-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ── Themen ─────────────────────────────────────────────────────────────── */

.otnl .otnl-topics {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	text-align: left;
}

.otnl .otnl-legend {
	margin: 0 0 10px;
	padding: 0;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--otnl-muted);
}

.otnl .otnl-check {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 14px;
	margin: 0 0 8px;
	border: 1px solid var(--otnl-line);
	border-radius: 2px;
	background: var(--otnl-fill);
	cursor: pointer;
}

.otnl .otnl-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.otnl .otnl-check-box {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	border: 1px solid var(--otnl-line);
	border-radius: 2px;
}

.otnl .otnl-check input:checked + .otnl-check-box {
	background: var(--otnl-accent);
	border-color: var(--otnl-accent);
	box-shadow: inset 0 0 0 3px var(--otnl-button-bg);
}

.otnl.otnl--light .otnl-check input:checked + .otnl-check-box {
	background: var(--otnl-ink);
	border-color: var(--otnl-ink);
	box-shadow: inset 0 0 0 3px #ffffff;
}

.otnl .otnl-check input:focus-visible + .otnl-check-box {
	outline: 2px solid var(--otnl-ink);
	outline-offset: 2px;
}

.otnl .otnl-check-text strong {
	font-weight: 600;
}

.otnl .otnl-check-text span {
	color: var(--otnl-muted);
}

/* ── Feld und Knopf (wie der Brevo-Block) ──────────────────────────────── */

.otnl .otnl-input {
	display: block;
	width: 100%;
	margin: 0 0 16px;
	padding: 10px 14px;
	font: inherit;
	text-align: center;
	color: var(--otnl-ink);
	background: var(--otnl-fill);
	border: 1px solid var(--otnl-line);
	border-radius: 2px;
	appearance: none;
}

.otnl .otnl-input::placeholder {
	color: var(--otnl-ink);
	opacity: 0.9;
}

.otnl .otnl-input:focus,
.otnl.otnl .otnl-button:focus-visible {
	outline: 2px solid var(--otnl-ink);
	outline-offset: 2px;
}

.otnl.otnl .otnl-button {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 24px;
	font: inherit;
	font-weight: 600;
	color: var(--otnl-button-ink);
	background: var(--otnl-button-bg);
	border: 1px solid var(--otnl-line);
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.otnl.otnl .otnl-button:hover:not(:disabled) {
	color: #1a1a1a;
	background: var(--otnl-accent);
	border-color: var(--otnl-accent);
}

.otnl.otnl .otnl-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.otnl .otnl-link {
	padding: 0;
	font: inherit;
	color: var(--otnl-muted);
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.otnl.otnl .otnl-notice {
	margin: 14px 0 0;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.6;
	color: var(--otnl-muted);
}

.otnl.otnl .otnl-notice a,
.otnl .otnl-lead a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.otnl.otnl .otnl-message {
	min-height: 1.5em;
	font-weight: 400;
	margin: 12px 0 0;
	font-size: 14px;
}

.otnl.otnl .otnl-message--ok {
	color: var(--otnl-ok);
}

.otnl.otnl .otnl-message--error {
	color: var(--otnl-error);
}

/* ── Seiten ─────────────────────────────────────────────────────────────── */

.otnl.otnl-page {
	max-width: 520px;
	padding: 48px 0;
	text-align: left;
}

.otnl.otnl .otnl-title {
	margin: 0 0 12px;
	font-size: 32px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--otnl-ink);
}

.otnl.otnl .otnl-lead {
	margin: 0 0 20px;
	font-weight: 400;
	color: var(--otnl-muted);
}

.otnl.otnl.otnl-page .otnl-button {
	width: auto;
	display: inline-block;
	border-radius: 999px;
	padding: 14px 30px;
	border-color: var(--otnl-button-bg);
}

.otnl .otnl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	margin-top: 8px;
}

@media (max-width: 480px) {
	.otnl.otnl .otnl-title {
		font-size: 26px;
	}
}
