/* ── Variables ─────────────────────────────── */
:root {
	--color-primary: #A8003C;
	--color-primary-light: #C4174E;
	--color-bg: #EDEAF0;
	--color-white: #FFFFFF;
	--color-text: #2D2D2D;
	--color-text-muted: #666666;
	--color-footer-bg: linear-gradient(
		180deg, #4A4550 0%, #302C34 100%
	);
	--color-border: #E0DDE3;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
	--shadow-header: 0 2px 16px rgba(0, 0, 0, 0.06);
	--max-width: 1040px;
	--font-family: "Segoe UI", system-ui,
		-apple-system, sans-serif;
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-family);
	color: var(--color-text);
	background-color: var(--color-bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
}

input {
	font-family: inherit;
	border: none;
	outline: none;
}

/* ── Header ───────────────────────────────── */
.site-header {
	background: var(--color-white);
	box-shadow: var(--shadow-header);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	position: relative;
	z-index: 10;
	overflow: hidden;
}

.header-inner {
	padding: 0 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.logo {
	margin: -30px 0;
}

.logo img {
	height: 150px;
	width: auto;
}

.login-area {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.login-form {
	display: flex;
	align-items: center;
	gap: 12px;
}

.input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 14px;
	width: 18px;
	height: 18px;
	color: #999;
	pointer-events: none;
}

.input-group input {
	height: 44px;
	padding: 0 16px 0 42px;
	font-size: 14px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: var(--color-white);
	color: var(--color-text);
	width: 200px;
	transition: border-color 0.2s;
}

.input-group input::placeholder {
	color: #AAA;
}

.input-group input:focus {
	border-color: var(--color-primary);
}

.btn-login {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 28px;
	background: var(--color-primary);
	color: var(--color-white);
	font-size: 15px;
	font-weight: 600;
	border-radius: 999px;
	transition: background 0.2s;
	white-space: nowrap;
}

.btn-login:hover {
	background: var(--color-primary-light);
}

.btn-login svg {
	flex-shrink: 0;
}

.forgot-pw {
	font-size: 13px;
	color: var(--color-primary);
	text-decoration: none;
	transition: opacity 0.2s;
}

.forgot-pw:hover {
	text-decoration: underline;
	opacity: 0.85;
}

/* ── Mobile-Version Toggle ────────────────── */
.mobile-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.mobile-toggle input {
	display: none;
}

.mobile-toggle-slider {
	position: relative;
	width: 40px;
	height: 22px;
	background: var(--color-border);
	border-radius: 999px;
	transition: background 0.2s;
	flex-shrink: 0;
}

.mobile-toggle-slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: var(--color-white);
	border-radius: 50%;
	transition: transform 0.2s;
}

.mobile-toggle input:checked + .mobile-toggle-slider {
	background: var(--color-primary);
}

.mobile-toggle input:checked
	+ .mobile-toggle-slider::after {
	transform: translateX(18px);
}

.mobile-toggle-label {
	font-size: 13px;
	color: var(--color-text-muted);
}

/* ── Main ─────────────────────────────────── */
.site-main {
	flex: 1;
	position: relative;
	padding: 0 24px 48px;
}

/* ── Decorative background (Vanta.js) ──────── */
.bg-decoration {
	position: fixed;
	inset: 0;
	z-index: -1;
	opacity: 0.75
}

body.cloud-bg-off .bg-decoration {
	opacity: 0.85;
	background: linear-gradient(
		165deg,
		#81bbd8 0%,
		#ffffff 66%,
		#acacac 100%
	);
}

/* ── iFrame section ───────────────────────── */
.intro-section,
.iframe-section {
	margin: 40px 0 40px;
}

.intro-card,
.iframe-card {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card);
}

.intro-card,
.features-inner,
.smartentry-card,
.faq-card,
.content-card,
.footer-inner {
	max-width: var(--max-width);
	margin: 0 auto;
}

.intro-card {
	padding: 32px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.section-kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 10px;
}

.intro-copy h1 {
	font-size: 34px;
	line-height: 1.2;
	margin-bottom: 14px;
	max-width: 700px;
}

.intro-text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text-muted);
	max-width: 700px;
}

.intro-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.intro-tags span {
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(168, 0, 60, 0.08);
	color: var(--color-primary);
	font-size: 13px;
	font-weight: 600;
}

.intro-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	min-width: 240px;
}

.intro-note {
	font-size: 13px;
	color: var(--color-text-muted);
}

.iframe-card {
	overflow: hidden;
}

.iframe-card iframe {
	display: block;
	width: 100%;
	height: 700px;
	border: none;
}

/* ── Features ─────────────────────────────── */
.features {
	margin: 0;
}

.features-inner {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: 40px 48px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
}

.feature {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.feature-icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.feature-icon svg {
	width: 24px;
	height: 24px;
	color: var(--color-primary);
}

.feature-text strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 4px;
}

.feature-text p {
	font-size: 14px;
	color: var(--color-text-muted);
	line-height: 1.5;
}

/* ── SmartEntry section ───────────────────── */
.smartentry-section,
.faq-section {
	margin: 40px 0 0;
}

.smartentry-card,
.faq-card {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card);
	padding: 40px 48px;
}

.smartentry-card {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
	gap: 32px;
	align-items: center;
}

.smartentry-showcase {
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: stretch;
}

.smartentry-figure {
	margin: 0;
	padding: 16px;
	border-radius: var(--radius-lg);
	background: linear-gradient(145deg, #F6F6F8, #ECECF0);
	border: 1px solid var(--color-border);
	box-shadow: 0 12px 28px rgba(20, 16, 26, 0.14);
}

.smartentry-figure img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 460px;
	margin: 0 auto;
}

.smartentry-copy h2,
.faq-card h2 {
	font-size: 28px;
	line-height: 1.25;
	margin-bottom: 14px;
}

.smartentry-copy p,
.faq-item p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--color-text-muted);
}

.smartentry-list {
	margin: 18px 0 0 20px;
	color: var(--color-text);
	line-height: 1.8;
}

.smartentry-links {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sales-team {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.sales-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: #FBFAFC;
}

.sales-card img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.sales-details h3 {
	font-size: 18px;
	line-height: 1.3;
	margin-bottom: 2px;
}

.sales-details p {
	font-size: 14px;
	color: var(--color-text-muted);
	margin: 0 0 6px;
}

.sales-phone {
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sales-phone:hover {
	color: var(--color-primary-light);
}

.store-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--color-primary);
	color: var(--color-white);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	transition: background 0.2s, transform 0.2s;
}

.store-button:hover {
	background: var(--color-primary-light);
	transform: translateY(-1px);
}

.store-button.secondary {
	background: #302C34;
}

.store-button.secondary:hover {
	background: #4A4550;
}

.faq-clusters {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.faq-cluster-label {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--color-primary);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(168, 0, 60, 0.12);
}

.faq-grid {
	display: grid;
	grid-template-columns: repeat(
		auto-fit, minmax(280px, 1fr)
	);
	gap: 20px;
}

.faq-item {
	padding: 24px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: #FBFAFC;
}

.faq-item h3 {
	font-size: 17px;
	line-height: 1.35;
	margin-bottom: 10px;
}

/* ── Footer ───────────────────────────────── */
.site-footer {
	background: var(--color-footer-bg);
	color: var(--color-white);
	margin-top: auto;
}

.footer-inner {
	padding: 24px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.footer-left {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.footer-left strong {
	font-size: 14px;
	font-weight: 700;
}

.footer-left span {
	font-size: 13px;
	opacity: 0.8;
}

.footer-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.footer-links {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.footer-links a {
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: opacity 0.2s;
}

.footer-links a:hover {
	opacity: 0.8;
}

.footer-links .sep {
	opacity: 0.5;
}

.footer-hotline {
	font-size: 13px;
	opacity: 0.8;
}

.cloud-bg-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
	opacity: 0.95;
}

.cloud-bg-toggle input {
	width: 16px;
	height: 16px;
	margin: 0;
	cursor: pointer;
	accent-color: var(--color-white);
}

.cloud-bg-toggle span {
	opacity: 0.9;
}

/* ── Content pages (Impressum, Datenschutz) ─ */
.content-card {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card);
	padding: 48px;
	margin-top: 40px;
}

.content-card h1 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 24px;
	color: var(--color-primary);
}

.content-card h3 {
	font-size: 20px;
	margin-bottom: 16px;
	color: var(--color-primary);
}

.content-card p {
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 12px;
}

.content-card ul {
	margin: 0 0 16px 24px;
	font-size: 14px;
	line-height: 1.7;
}

.content-card b {
	font-weight: 600;
}

.content-card a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.content-card a:hover {
	opacity: 0.8;
}

/* ── Responsive: Tablet ───────────────────── */
@media (max-width: 900px) {
	.header-inner {
		padding: 16px 20px;
	}

	.input-group input {
		width: 170px;
	}

	.features-inner {
		padding: 32px 24px;
		gap: 24px;
	}

	.intro-card,
	.smartentry-card,
	.faq-card {
		padding: 32px 24px;
	}

	.content-card {
		padding: 32px 24px;
	}
}

/* ── Responsive: Small Tablet ─────────────── */
@media (max-width: 768px) {
	.header-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.logo {
		text-align: center;
	}

	.logo {
		margin: -20px 0;
	}

	.logo img {
		height: 100px;
		margin: 0 auto;
	}

	.login-area {
		align-items: center;
	}

	.login-form {
		width: 100%;
		flex-direction: column;
		gap: 8px;
	}

	.mobile-toggle {
		display: flex;
		width: 100%;
		justify-content: center;
	}

	.intro-card,
	.smartentry-card {
		grid-template-columns: 1fr;
		display: grid;
	}

	.smartentry-showcase {
		max-width: 520px;
		width: 100%;
	}

	.sales-card {
		align-items: flex-start;
	}

	.intro-copy h1 {
		font-size: 28px;
	}

	.smartentry-copy h2,
	.faq-card h2 {
		font-size: 24px;
	}

	.input-group {
		width: 100%;
	}

	.input-group input {
		width: 100%;
	}

	.btn-login {
		width: 100%;
		justify-content: center;
	}

	.features-inner {
		gap: 24px;
		padding: 32px 24px;
	}

	.iframe-card iframe {
		height: 500px;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 20px 24px;
	}

	.footer-right {
		align-items: flex-start;
	}
}

/* ── Responsive: Phone ────────────────────── */
@media (max-width: 480px) {
	.site-header {
		border-radius: 0;
	}

	.header-inner {
		padding: 12px 16px;
	}

	.login-form {
		flex-direction: column;
	}

	.input-group {
		width: 100%;
	}

	.btn-login {
		width: 100%;
		justify-content: center;
	}

	.site-main {
		padding: 0 12px 32px;
	}

	.iframe-card {
		border-radius: var(--radius-md);
	}

	.intro-card,
	.smartentry-card,
	.faq-card {
		border-radius: var(--radius-md);
	}

	.iframe-card iframe {
		height: 400px;
	}

	.features-inner {
		border-radius: var(--radius-md);
		padding: 24px 20px;
	}

	.intro-card,
	.smartentry-card,
	.faq-card {
		padding: 24px 20px;
	}

	.content-card {
		border-radius: var(--radius-md);
		padding: 24px 16px;
	}

	.footer-inner {
		padding: 16px;
	}

	.footer-links {
		flex-wrap: wrap;
	}
}
