/* Lernhappen – gemeinsame Grundlage (Schrift lokal eingebunden, DSGVO-freundlich) */
@font-face { font-family: "Jakarta"; src: url(fonts/jakarta-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(fonts/jakarta-600.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(fonts/jakarta-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(fonts/jakarta-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
	--lh-primary: #5b4cf0;
	--lh-primary-600: #4636dc;
	--lh-primary-50: #efedff;
	--lh-primary-100: #e1ddff;
	--lh-accent: #ff7a59;
	--lh-ok: #12a974;
	--lh-ok-50: #e2f7ee;
	--lh-bad: #e5405f;
	--lh-bad-50: #fde9ed;
	--lh-warn: #f2a516;
	--lh-ink: #17153a;
	--lh-ink-2: #3b3960;
	--lh-muted: #6e6c8c;
	--lh-line: #e8e6f4;
	--lh-bg: #f5f4fc;
	--lh-card: #ffffff;
	--lh-radius: 18px;
	--lh-radius-sm: 12px;
	--lh-shadow: 0 1px 2px rgba(23, 21, 58, .05), 0 8px 24px rgba(23, 21, 58, .06);
	--lh-shadow-lg: 0 2px 6px rgba(23, 21, 58, .06), 0 24px 60px rgba(23, 21, 58, .12);
	--lh-font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--lh-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--lh-ink);
	background: var(--lh-bg);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--lh-primary); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Buttons */
.lh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: .7em 1.3em;
	border: 0; border-radius: 999px;
	background: var(--lh-primary); color: #fff;
	font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	box-shadow: 0 6px 16px rgba(91, 76, 240, .28);
}
.lh-btn:hover { background: var(--lh-primary-600); }
.lh-btn:active { transform: translateY(1px) scale(.99); }
.lh-btn:disabled { opacity: .5; cursor: not-allowed; }
.lh-btn--ghost { background: transparent; color: var(--lh-ink); box-shadow: none; border: 1.5px solid var(--lh-line); }
.lh-btn--ghost:hover { background: #fff; border-color: var(--lh-primary-100); }
.lh-btn--soft { background: var(--lh-primary-50); color: var(--lh-primary); box-shadow: none; }
.lh-btn--soft:hover { background: var(--lh-primary-100); }
.lh-btn--danger { background: var(--lh-bad-50); color: var(--lh-bad); box-shadow: none; }
.lh-btn--danger:hover { background: #fbd5dd; }
.lh-btn--sm { min-height: 36px; padding: .45em 1em; font-size: 14px; }
.lh-btn--block { width: 100%; }

/* Formular */
.lh-field { display: block; margin-bottom: 14px; }
.lh-field > span { display: block; font-size: 13px; font-weight: 600; color: var(--lh-ink-2); margin-bottom: 6px; }
.lh-input {
	width: 100%; min-height: 48px; padding: .7em 1em;
	border: 1.5px solid var(--lh-line); border-radius: var(--lh-radius-sm);
	background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.lh-input:focus { border-color: var(--lh-primary); box-shadow: 0 0 0 4px var(--lh-primary-50); }

.lh-card { background: var(--lh-card); border-radius: var(--lh-radius); box-shadow: var(--lh-shadow); }

.lh-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--lh-ink); text-decoration: none; letter-spacing: -.01em; }
.lh-logo__mark {
	width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--lh-primary), #8f6bff 60%, var(--lh-accent));
	color: #fff; font-size: 17px; box-shadow: 0 6px 14px rgba(91, 76, 240, .3);
}

.lh-alert { padding: 12px 14px; border-radius: var(--lh-radius-sm); font-size: 14px; margin-bottom: 14px; }
.lh-alert--error { background: var(--lh-bad-50); color: #a5213c; }
.lh-alert--info { background: var(--lh-primary-50); color: var(--lh-primary-600); }

/* Zentrierte Einzelseiten (Login, Code-Eingabe) */
.lh-center {
	min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px;
	background:
		radial-gradient(1200px 600px at 10% -10%, #e5e0ff 0%, transparent 60%),
		radial-gradient(900px 500px at 110% 110%, #ffe3d9 0%, transparent 55%),
		var(--lh-bg);
}
.lh-panel { width: 100%; max-width: 420px; padding: 34px 30px 28px; }
.lh-panel h1 { font-size: 26px; line-height: 1.2; margin: 20px 0 6px; letter-spacing: -.02em; }
.lh-panel p.lead { color: var(--lh-muted); margin: 0 0 22px; }
.lh-panel .lh-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--lh-muted); }
.lh-panel .lh-foot a { color: var(--lh-muted); }

.lh-code-input {
	text-align: center; font-size: 30px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; min-height: 68px;
}
.lh-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--lh-ink-2); margin: 4px 0 18px; }
.lh-check input { width: 18px; height: 18px; accent-color: var(--lh-primary); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
