/* ===== FMA Digital · Sagitta – statische Produktseite ===== */

:root {
	--ink: #0e1116;
	--ink-soft: #2c3440;
	--text: #3b4452;
	--text-muted: #6b7585;
	--bg: #ffffff;
	--bg-alt: #f6f8fa;
	--border: #e6e9ee;
	/* Metabase-Palette */
	--mb-blue: #509ee3;
	--mb-green: #88bf4d;
	--mb-purple: #a989c5;
	--mb-red: #ef8c8c;
	--mb-yellow: #f9d45c;
	--mb-teal: #98d9d9;
	--mb-axis: #949aab;
	--mb-grid: #eef0f3;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 12px 32px -12px rgba(14, 17, 22, .14);
	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ===== Buttons ===== */
.btn {
	display: inline-block;
	padding: 14px 26px;
	border-radius: 10px;
	font-weight: 700;
	font-size: .98rem;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px -6px rgba(14,17,22,.45); }
.btn-primary:hover { background: #1d242e; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: rgba(255,255,255,.75); }

/* ===== Header ===== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(14, 17, 22, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 44px; height: 33px; fill: #fff; }
.brand-name { color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: #fff; }
.site-header .btn-primary, .hero .btn-primary {
	background: var(--mb-blue);
	box-shadow: 0 6px 18px -6px rgba(80,158,227,.55);
}
.site-header .btn-primary:hover, .hero .btn-primary:hover { background: #3f8ed6; }

/* ===== Hero ===== */
.hero {
	background:
		radial-gradient(900px 480px at 85% -10%, rgba(80,158,227,.28), transparent 60%),
		radial-gradient(700px 420px at -5% 110%, rgba(136,191,77,.12), transparent 60%),
		var(--ink);
	color: rgba(255,255,255,.85);
	padding: 88px 0 96px;
	overflow: hidden;
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 56px;
	align-items: center;
}
.hero h1 { color: #fff; }
.hero .accent { color: var(--mb-blue); }
.badge {
	display: inline-block;
	background: rgba(80,158,227,.16);
	color: #8ec2ef;
	border: 1px solid rgba(80,158,227,.4);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin: 0 0 20px;
}
.lead { font-size: 1.13rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-points {
	display: flex; flex-wrap: wrap; gap: 8px 22px;
	list-style: none; padding: 0; margin: 30px 0 0;
	font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.65);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%;
	background: var(--mb-green); flex: 0 0 auto;
}

/* ===== Browser-/Dashboard-Mockup ===== */
.window-frame {
	background: #f2f4f7;
	border-radius: 16px;
	box-shadow: 0 30px 80px -24px rgba(0,0,0,.55);
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.12);
}
.window-bar {
	display: flex; align-items: center; gap: 7px;
	background: #e6e9ee; padding: 11px 14px;
}
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #c9ced6; }
.window-bar span:nth-child(1) { background: #f37267; }
.window-bar span:nth-child(2) { background: #f7bf45; }
.window-bar span:nth-child(3) { background: #5cc262; }
.window-bar em {
	font-style: normal; font-size: .78rem; font-weight: 600;
	color: #7a828f; margin: 0 auto; transform: translateX(-24px);
}
.window-body { padding: 16px; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.kpi-card {
	background: #fff; border: 1px solid var(--border); border-radius: 10px;
	padding: 12px 14px; display: flex; flex-direction: column; gap: 2px;
}
.kpi-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mb-axis); }
.kpi-value { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.kpi-delta { font-size: .72rem; font-weight: 600; }
.kpi-delta.up { color: #519a52; }
.kpi-delta.down { color: #519a52; } /* sinkende Churn-Rate ist positiv */

.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chart-card {
	background: #fff; border: 1px solid var(--border); border-radius: 10px;
	padding: 14px 16px 10px;
}
.chart-card h4 { font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 8px; }
.chart-card-lg { border-radius: var(--radius); padding: 22px 24px 16px; box-shadow: var(--shadow); }
.chart-card-lg h4 { font-size: 1.02rem; margin-bottom: 2px; }
.chart-sub { font-size: .82rem; color: var(--mb-axis); margin: 0 0 14px; }
.chart svg { display: block; width: 100%; height: auto; }

/* ===== Sektionen ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.kicker {
	color: var(--mb-blue); font-weight: 800; text-transform: uppercase;
	letter-spacing: .12em; font-size: .82rem; margin: 0 0 10px;
}
.section-lead { font-size: 1.1rem; color: var(--text-muted); max-width: 44em; margin-bottom: 0; }

/* ===== Features ===== */
.feature-grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	gap: 22px; margin-top: 48px;
}
.feature-card {
	background: var(--bg); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 26px 24px;
	box-shadow: var(--shadow);
}
.feature-card p { margin: 0; font-size: .95rem; color: var(--text-muted); }
.feature-icon {
	width: 46px; height: 46px; border-radius: 12px;
	background: rgba(80,158,227,.12);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 16px;
}
.feature-icon svg {
	width: 24px; height: 24px; fill: none;
	stroke: var(--mb-blue); stroke-width: 1.8;
	stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Use Cases ===== */
.usecase {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px; align-items: center; margin-top: 80px;
}
.usecase-flip .usecase-copy { order: 2; }
.usecase-flip .usecase-chart { order: 1; }
.usecase-tag {
	display: inline-block; font-size: .78rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: .08em;
	color: var(--mb-blue); background: rgba(80,158,227,.1);
	border-radius: 999px; padding: 5px 12px; margin-bottom: 14px;
}
.usecase h3 { font-size: 1.55rem; font-weight: 800; }
.usecase-copy p { color: var(--text-muted); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li {
	position: relative; padding-left: 30px; margin-bottom: 10px;
	font-size: .97rem;
}
.check-list li::before {
	content: ""; position: absolute; left: 0; top: 3px;
	width: 18px; height: 18px; border-radius: 50%;
	background: rgba(136,191,77,.18);
}
.check-list li::after {
	content: ""; position: absolute; left: 5px; top: 8px;
	width: 8px; height: 5px;
	border-left: 2px solid #5d9434; border-bottom: 2px solid #5d9434;
	transform: rotate(-45deg);
}
.donut-flex { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }

/* ===== Steps + Code ===== */
.steps-grid {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 56px; align-items: center; margin-top: 48px;
}
.step { display: flex; gap: 18px; margin-bottom: 30px; }
.step:last-child { margin-bottom: 0; }
.step h3 { margin-bottom: .25em; }
.step p { margin: 0; color: var(--text-muted); font-size: .97rem; }
.step-num {
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
	background: var(--ink); color: #fff; font-weight: 800; font-size: 1.05rem;
	display: flex; align-items: center; justify-content: center;
}
.code-card {
	background: #11161d; border-radius: var(--radius);
	box-shadow: 0 24px 60px -20px rgba(14,17,22,.5);
	overflow: hidden;
}
.code-bar {
	display: flex; align-items: center; gap: 7px;
	background: #1a212b; padding: 11px 14px;
}
.code-bar span { width: 10px; height: 10px; border-radius: 50%; background: #39434f; }
.code-bar em { font-style: normal; font-family: var(--mono); font-size: .75rem; color: #7d8896; margin-left: 8px; }
.code-card pre {
	margin: 0; padding: 20px 22px; overflow-x: auto;
	font-family: var(--mono); font-size: .82rem; line-height: 1.65;
	color: #d7dde5;
}
.code-card pre code { font-family: inherit; }
.code-card .k { color: #6fb3ec; font-weight: 500; }
.code-card .s { color: #a5d6a7; }
.code-card .c { color: #5d6a79; font-style: italic; }

/* ===== FAQ ===== */
.faq-item {
	background: var(--bg); border: 1px solid var(--border);
	border-radius: 12px; padding: 4px 22px; margin-top: 14px;
}
.faq-item summary {
	cursor: pointer; font-weight: 700; color: var(--ink);
	padding: 16px 0; list-style: none; position: relative; padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+"; position: absolute; right: 4px; top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem; font-weight: 400; color: var(--mb-axis);
	transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--text-muted); margin: 0 0 18px; font-size: .97rem; }

/* ===== CTA ===== */
.cta-section {
	background:
		radial-gradient(800px 400px at 50% -20%, rgba(80,158,227,.3), transparent 65%),
		var(--ink);
	color: rgba(255,255,255,.8);
	padding: 96px 0;
	text-align: center;
}
.cta-section h2 { color: #fff; }
.cta-inner p { max-width: 38em; margin: 0 auto 8px; }
.cta-inner .hero-actions { justify-content: center; }

/* ===== Footer ===== */
.site-footer { background: #0a0d11; color: rgba(255,255,255,.55); padding: 56px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 76px; height: 56px; fill: #fff; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
	margin-top: 44px; padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,.1);
	font-size: .78rem; color: rgba(255,255,255,.35);
}

/* ===== Responsive ===== */
@media (max-width: 1020px) {
	.hero-grid, .usecase, .steps-grid { grid-template-columns: 1fr; gap: 40px; }
	.usecase-flip .usecase-copy { order: 1; }
	.usecase-flip .usecase-chart { order: 2; }
	.feature-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
	.nav-links { display: none; }
	.section { padding: 64px 0; }
	.hero { padding: 56px 0 64px; }
	.kpi-row, .chart-row, .feature-grid { grid-template-columns: 1fr 1fr; }
	.chart-row { grid-template-columns: 1fr; }
	.donut-flex { grid-template-columns: 1fr; }
	.usecase { margin-top: 56px; }
}
