/* TSP Landingpage: gemeinsame Basis (Schriften, Tokens, Anmelde-Komponente).
   Alle Klassen mit Praefix tsp-, Regeln mit mindestens zwei Klassen Spezifitaet, damit das Theme nicht dazwischenfunkt.
   Breakpoint Desktop: min-width 768px. Werte aus Figma (d0oIVKmZHpenATxNvwl6HR). */

@font-face {
	font-family: "TSP Outfit";
	font-style: normal;
	font-weight: 300 500;
	font-display: swap;
	src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "TSP Outfit";
	font-style: normal;
	font-weight: 300 500;
	font-display: swap;
	src: url("../fonts/outfit-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "TSP Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "TSP Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens (Figma-Variablen) */
.tsp-lp,
.tsp-popup {
	--tsp-text: #233559;
	--tsp-text-2: #566073;
	--tsp-page: #fcfbfa;
	--tsp-soft: #f8f7f4;
	--tsp-band-cool: #f0f1f3;
	--tsp-band-warm: #f0ede7;
	--tsp-accent-soft: #f8ebe4;
	--tsp-hairline: #dcd7cc;
	--tsp-functional: #fff;
	--tsp-error: #a6553a;
	--tsp-btn-hover: #1a2943;
	--tsp-font: "TSP Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tsp-font-serif: "TSP Instrument Serif", Georgia, "Times New Roman", serif;

	font-family: var(--tsp-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--tsp-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-size-adjust: 100%;
}

.tsp-lp *,
.tsp-lp *::before,
.tsp-lp *::after,
.tsp-popup *,
.tsp-popup *::before,
.tsp-popup *::after {
	box-sizing: border-box;
}

.tsp-lp h1, .tsp-lp h2, .tsp-lp h3, .tsp-lp p, .tsp-lp ul, .tsp-lp li,
.tsp-popup h1, .tsp-popup h2, .tsp-popup h3, .tsp-popup p, .tsp-popup ul, .tsp-popup li {
	margin: 0;
	padding: 0;
}

.tsp-lp img,
.tsp-popup img {
	display: block;
	max-width: 100%;
}

.tsp-lp [hidden],
.tsp-popup [hidden] {
	display: none !important;
}

.tsp-lp .tsp-sr,
.tsp-popup .tsp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Anmelde-Komponente ---------- */

.tsp-signup {
	--tsp-gap: 16px;
	width: 100%;
}

.tsp-signup .tsp-panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--tsp-gap);
	width: 100%;
	min-width: 0;
}

.tsp-signup .tsp-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.tsp-signup .tsp-overline,
.tsp-lp .tsp-overline {
	font: 400 10px/1.3 var(--tsp-font);
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--tsp-text-2);
	width: 100%;
}
.tsp-signup .tsp-top .tsp-overline {
	width: auto;
}

.tsp-signup .tsp-title {
	font: 300 30px/1.25 var(--tsp-font);
	letter-spacing: -0.25px;
	color: var(--tsp-text);
	width: 100%;
}
.tsp-signup .tsp-title:focus {
	outline: none;
}

.tsp-signup .tsp-lead {
	font: 400 15px/1.65 var(--tsp-font);
	letter-spacing: 0.1px;
	color: var(--tsp-text);
	width: 100%;
}

.tsp-signup .tsp-micro {
	font: 400 12px/1.5 var(--tsp-font);
	letter-spacing: 0.2px;
	color: var(--tsp-text-2);
	width: 100%;
}
.tsp-signup .tsp-micro a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tsp-signup .tsp-check {
	width: 40px;
	height: 40px;
}

/* Formulare */
.tsp-signup .tsp-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin: 0;
}

.tsp-signup .tsp-form__row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.tsp-signup .tsp-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.tsp-signup .tsp-label {
	display: block;
	font: 400 11px/1.3 var(--tsp-font);
	letter-spacing: 1px;
	color: var(--tsp-text-2);
}

.tsp-signup .tsp-input {
	display: block;
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--tsp-hairline);
	border-radius: 0;
	background-color: var(--tsp-functional);
	color: var(--tsp-text);
	font: 400 16px/1.65 var(--tsp-font); /* 15px in Figma, 16px mobil gegen iOS-Zoom, ab 768px 15px */
	letter-spacing: 0.1px;
	box-shadow: none;
}
.tsp-signup .tsp-input::placeholder {
	color: var(--tsp-text-2);
	opacity: 1;
}
.tsp-signup .tsp-input:focus {
	outline: none;
	border-color: var(--tsp-text);
	box-shadow: inset 0 0 0 1px var(--tsp-text);
}

.tsp-signup .tsp-select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23233559' stroke-width='1.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}
.tsp-signup .tsp-select:has(option[value=""]:checked) {
	color: var(--tsp-text-2);
}
.tsp-signup .tsp-select option {
	color: var(--tsp-text);
}

.tsp-signup .tsp-bday {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* Fehlerstil: Rand 1,5 Pixel Terrakotta, Meldung darunter */
.tsp-signup .tsp-field--error .tsp-input {
	border-color: var(--tsp-error);
	box-shadow: inset 0 0 0 0.5px var(--tsp-error);
}
.tsp-signup .tsp-msg {
	font: 400 12px/1.5 var(--tsp-font);
	letter-spacing: 0.2px;
	color: var(--tsp-error);
	width: 100%;
}
.tsp-signup .tsp-form > .tsp-msg {
	margin: 0;
}

/* WhatsApp-Einwilligung */
.tsp-signup .tsp-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	font: 400 12px/1.5 var(--tsp-font);
	letter-spacing: 0.2px;
	color: var(--tsp-text);
	cursor: pointer;
}
.tsp-signup .tsp-consent input {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	display: grid;
	place-content: center;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid var(--tsp-text);
	border-radius: 0;
	background: #fff;
	cursor: pointer;
}
.tsp-signup .tsp-consent input:checked::before {
	content: "";
	width: 10px;
	height: 5px;
	margin-top: -2px;
	border-left: 1.5px solid var(--tsp-text);
	border-bottom: 1.5px solid var(--tsp-text);
	transform: rotate(-45deg);
}
.tsp-signup .tsp-consent input:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--tsp-page), 0 0 0 4px var(--tsp-text);
}
.tsp-signup .tsp-field--error .tsp-consent input {
	border-color: var(--tsp-error);
}

/* Buttons */
.tsp-signup .tsp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: var(--tsp-text);
	color: var(--tsp-band-warm);
	font: 500 12px/1 var(--tsp-font);
	letter-spacing: 0.4px;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.tsp-signup .tsp-btn:hover {
	background: var(--tsp-btn-hover);
}
.tsp-signup .tsp-btn:focus-visible,
.tsp-signup .tsp-link-btn:focus-visible,
.tsp-popup .tsp-close:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--tsp-page), 0 0 0 4px var(--tsp-text);
}
.tsp-signup .tsp-btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.tsp-signup .tsp-link-btn {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 4px 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--tsp-text);
	font: 500 12px/1 var(--tsp-font);
	letter-spacing: 0.4px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.tsp-signup .tsp-close,
.tsp-popup .tsp-close {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	flex: none;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	cursor: pointer;
}

@media (min-width: 768px) {
	.tsp-signup .tsp-input {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsp-signup .tsp-btn {
		transition: none;
	}
}
