/* Stille – Website. Dieselben Farben und Schriften wie die App (docs/06), keine externen Ressourcen. */

:root {
	--bg: #f7f3ec;
	--card: #fffdf8;
	--ink: #2b2722;
	--muted: #6b6258;
	--accent: #3f6b66;
	--accent-ink: #ffffff;
	--soft: #e9e2d4;
	--line: #e2d9c8;
	--sand: #c9b99a;
	--sel: #e3ece9;
	--serif: 'Literata', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--wrap: 1120px;
	--gutter: clamp(20px, 5vw, 48px);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--bg: #1c1b19;
		--card: #262420;
		--ink: #e8e2d6;
		--muted: #a89f92;
		--accent: #7fa8a2;
		--accent-ink: #1c1b19;
		--soft: #2f2c27;
		--line: #3a362f;
		--sand: #8a7c63;
		--sel: #2a3634;
		color-scheme: dark;
	}
}
:root[data-theme='dark'] {
	--bg: #1c1b19;
	--card: #262420;
	--ink: #e8e2d6;
	--muted: #a89f92;
	--accent: #7fa8a2;
	--accent-ink: #1c1b19;
	--soft: #2f2c27;
	--line: #3a362f;
	--sand: #8a7c63;
	--sel: #2a3634;
	color-scheme: dark;
}

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

html {
	scroll-behavior: smooth;
	/* Sprungziele nicht unter der fixierten Kopfzeile verstecken */
	scroll-padding-top: 84px;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
}

a {
	color: var(--accent);
	text-underline-offset: 3px;
}
a:hover {
	color: var(--ink);
}
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.narrow {
	max-width: calc(680px + 2 * var(--gutter));
}

.skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 10;
	background: var(--card);
	padding: 10px 16px;
	border-radius: 10px;
}
.skip:focus {
	left: 12px;
}

/* ---------- Typografie ---------- */

h1 {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(38px, 5.4vw, 64px);
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
	hyphens: manual;
}
h2 {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
h3 {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 21px;
	line-height: 1.3;
}
p {
	max-width: 62ch;
}
.lead {
	font-family: var(--serif);
	font-size: clamp(19px, 1.9vw, 22px);
	line-height: 1.55;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 12px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	border: 1px solid var(--accent);
}
.btn:hover {
	color: var(--accent-ink);
	filter: brightness(1.06);
}
.btn-quiet {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}
.btn-quiet:hover {
	color: var(--ink);
	border-color: var(--accent);
	filter: none;
}
.btn-small {
	min-height: 44px;
	padding: 0 18px;
	font-size: 15px;
}

/* ---------- Kopfzeile ---------- */

.top {
	position: sticky;
	top: 0;
	z-index: 5;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--serif);
	font-size: 24px;
	color: var(--ink);
	text-decoration: none;
	min-height: 44px;
}
.brand-mark {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.6;
	stroke-linecap: round;
}
.top-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}
.top-nav a:not(.btn) {
	color: var(--ink);
	text-decoration: none;
	font-size: 15px;
	padding: 0 12px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
.top-nav a:not(.btn):hover {
	color: var(--accent);
}
@media (max-width: 640px) {
	.top-nav a:not(.btn) {
		display: none;
	}
}

/* ---------- Hero ---------- */

.hero {
	padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 112px);
	overflow: hidden;
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}
.hero-text {
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.assure {
	color: var(--muted);
	font-size: 15px;
}

.hero-visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 560px;
}
.star {
	position: absolute;
	width: min(640px, 150%);
	height: auto;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
	overflow: visible;
}
.star-core {
	fill: none;
	stroke: var(--sand);
	stroke-width: 1.4;
}
.rays line {
	stroke: var(--sand);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-dasharray: 220;
	stroke-dashoffset: 0;
}
/* Der eine Moment: der Stern zeichnet sich beim Laden einmal – Mitte zuerst, dann die Strahlen. */
@media (prefers-reduced-motion: no-preference) {
	.star-core {
		animation: draw-core 900ms ease-out both;
		stroke-dasharray: 390;
	}
	.rays line {
		animation: draw-ray 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
	.rays line:nth-child(1) {
		animation-delay: 500ms;
	}
	.rays line:nth-child(2) {
		animation-delay: 580ms;
	}
	.rays line:nth-child(3) {
		animation-delay: 660ms;
	}
	.rays line:nth-child(4) {
		animation-delay: 740ms;
	}
	.rays line:nth-child(5) {
		animation-delay: 820ms;
	}
	.rays line:nth-child(6) {
		animation-delay: 900ms;
	}
	.rays line:nth-child(7) {
		animation-delay: 980ms;
	}
	.rays line:nth-child(8) {
		animation-delay: 1060ms;
	}
}
@keyframes draw-ray {
	from {
		stroke-dashoffset: 220;
	}
	to {
		stroke-dashoffset: 0;
	}
}
@keyframes draw-core {
	from {
		stroke-dashoffset: 390;
	}
	to {
		stroke-dashoffset: 0;
	}
}

/* ---------- Telefon ---------- */

.phone {
	position: relative;
	width: min(300px, 78vw);
	padding: 9px;
	border-radius: 44px;
	background: var(--card);
	border: 1px solid var(--line);
	box-shadow:
		0 1px 0 var(--line),
		0 30px 60px -30px rgba(43, 39, 34, 0.35);
}
.phone img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 35px;
}
.phone-hero {
	width: min(320px, 80vw);
}

/* ---------- Einleitung und Funktionen ---------- */

.intro {
	padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px);
	border-top: 1px solid var(--line);
}
.intro .wrap {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.intro p {
	font-family: var(--serif);
	font-size: clamp(18px, 1.8vw, 21px);
	line-height: 1.6;
}

.feature {
	padding: clamp(40px, 6vw, 72px) 0;
}
.feature-grid {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(32px, 7vw, 96px);
	align-items: center;
}
.feature-flip .feature-grid {
	grid-template-columns: minmax(0, 1fr) auto;
}
.feature-flip .phone {
	order: 2;
}
.feature-text {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 560px;
}
.feature-text h2 {
	margin-bottom: 4px;
}

/* ---------- Versprechen ---------- */

.promise {
	margin-top: clamp(32px, 5vw, 64px);
	padding: clamp(56px, 8vw, 96px) 0;
	background: var(--soft);
}
.promise h2 {
	margin-bottom: clamp(28px, 4vw, 44px);
}
.promise-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px clamp(24px, 4vw, 48px);
}
.promise-list div {
	padding-top: 16px;
	border-top: 1.5px solid var(--sand);
}
.promise-list dt {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.3;
	margin-bottom: 8px;
}
.promise-list dd {
	color: var(--ink);
	font-size: 16px;
}

/* ---------- Installation ---------- */

.install {
	padding: clamp(64px, 9vw, 112px) 0;
}
.section-lead {
	margin-top: 14px;
	color: var(--muted);
}
.install-grid {
	margin-top: clamp(28px, 4vw, 44px);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 32px);
}
.platform {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: clamp(22px, 3vw, 32px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.steps {
	list-style: none;
	padding: 0;
	counter-reset: step;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.steps li {
	counter-increment: step;
	position: relative;
	padding-left: 44px;
	min-height: 30px;
}
.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -1px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--sel);
	color: var(--accent);
	font-weight: 600;
	font-size: 14px;
	display: grid;
	place-items: center;
}
.inline-icon {
	width: 20px;
	height: 20px;
	vertical-align: -4px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.note {
	font-size: 15px;
	color: var(--muted);
}
.first-steps {
	margin-top: clamp(36px, 5vw, 56px);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.steps-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px clamp(20px, 3vw, 36px);
}

/* ---------- Fragen ---------- */

.faq {
	padding: clamp(56px, 8vw, 96px) 0;
	border-top: 1px solid var(--line);
}
.faq h2 {
	margin-bottom: 20px;
}
.faq details {
	border-bottom: 1px solid var(--line);
}
.faq summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--serif);
	font-size: 19px;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: '+';
	font-family: var(--sans);
	font-size: 24px;
	color: var(--accent);
	transition: transform 180ms ease;
}
.faq details[open] summary::after {
	transform: rotate(45deg);
}
.faq details p {
	padding: 0 0 20px;
	color: var(--ink);
}

/* ---------- Alle Funktionen ---------- */

.all {
	padding: clamp(56px, 8vw, 96px) 0;
	background: var(--card);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.all h2 {
	margin-bottom: clamp(28px, 4vw, 44px);
}
.all-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px clamp(20px, 3vw, 40px);
}
.all h3 {
	font-size: 18px;
	margin: 0 0 10px;
}
.all ul + h3 {
	margin-top: 28px;
}
.all ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 15px;
	line-height: 1.45;
}
.all li {
	padding-left: 18px;
	position: relative;
}
.all li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sand);
}

/* ---------- Abschluss und Fuß ---------- */

.closing {
	padding: clamp(72px, 10vw, 128px) 0;
	text-align: left;
}
.closing .wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}
.closing p {
	font-family: var(--serif);
	font-size: clamp(18px, 1.8vw, 21px);
}
.foot {
	border-top: 1px solid var(--line);
	padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
	color: var(--muted);
	font-size: 14px;
}
.foot-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 32px;
}
.foot strong {
	color: var(--ink);
	font-weight: 600;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 960px) {
	.all-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.promise-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.hero-grid,
	.feature-grid,
	.feature-flip .feature-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero-visual {
		min-height: 520px;
	}
	.feature-flip .phone {
		order: 0;
	}
	.feature .phone {
		justify-self: center;
	}
	.install-grid,
	.steps-row,
	.foot-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	body {
		font-size: 16px;
	}
	.promise-list,
	.all-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.cta .btn {
		flex: 1 1 100%;
	}
	.hero-visual {
		min-height: 470px;
	}
}
