/* Atemschutztagebuch.de – Website */

:root {
	--red-50: #fef2f2;
	--red-100: #fee2e2;
	--red-600: #dc2626;
	--red-700: #b91c1c;
	--red-800: #991b1b;
	--red-900: #7f1d1d;

	--bg: #ffffff;
	--bg-alt: #f8fafc;
	--surface: #ffffff;
	--text: #0f172a;
	--muted: #475569;
	--border: #e2e8f0;
	--accent: var(--red-700);
	--accent-hover: var(--red-800);
	--accent-soft: var(--red-50);

	--ok: #16a34a;
	--warn: #d97706;
	--bad: #dc2626;
	--none: #94a3b8;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .08);
	--shadow-lg: 0 20px 50px rgb(15 23 42 / .18);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--max: 1160px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b1120;
		--bg-alt: #0f172a;
		--surface: #111a2e;
		--text: #e2e8f0;
		--muted: #94a3b8;
		--border: #1e293b;
		--accent: #ef4444;
		--accent-hover: #f87171;
		--accent-soft: rgb(239 68 68 / .12);
		--shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
		--shadow-lg: 0 20px 50px rgb(0 0 0 / .5);
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .65em 1.15em; border-radius: 999px; border: 1.5px solid transparent;
	font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .15s;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .85em 1.5em; font-size: 1.02rem; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-primary { background: var(--red-700); color: #fff; }
.btn-primary:hover { background: var(--red-800); }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--red-800); }
.btn-light:hover { background: var(--red-50); }
.btn-outline-light { border-color: rgb(255 255 255 / .6); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.eyebrow {
	display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--accent); margin-bottom: .8em;
}
.accent { color: var(--accent); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6em; font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.brand .tld { color: var(--accent); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5em .75em; border-radius: 8px; }
.nav > a:not(.btn):hover { color: var(--text); background: var(--bg-alt); }
.nav .btn { margin-left: .25rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 920px) {
	.nav-toggle { display: block; }
	.nav {
		position: absolute; top: 68px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--bg); border-bottom: 1px solid var(--border);
		padding: 8px 20px 20px; box-shadow: var(--shadow);
		display: none;
	}
	.nav.open { display: flex; }
	.nav > a:not(.btn) { padding: .8em 0; border-radius: 0; border-bottom: 1px solid var(--border); }
	.nav .btn { margin: .75rem 0 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
	position: relative; overflow: hidden;
	padding: 72px 0 88px;
	background:
		radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%),
		var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: .45em; }
.hero-points li::before {
	content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
	background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-visual { position: relative; min-height: 420px; }
.device { position: relative; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.device-laptop { border-radius: 14px; padding: 10px; aspect-ratio: 16 / 10.5; width: 100%; }
.device-laptop .placeholder { height: 100%; border-radius: 6px; padding-right: 30%; }
.device-phone {
	position: absolute; right: -10px; bottom: -40px; width: 34%; min-width: 150px; max-width: 210px;
	aspect-ratio: 9 / 19; border-radius: 30px; padding: 9px; background: #0f172a; border-color: #0f172a;
}
.device-phone .placeholder { height: 100%; border-radius: 22px; }
.status-chip {
	position: absolute; left: -16px; bottom: 24px;
	display: inline-flex; align-items: center; gap: .5em;
	background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
	padding: .55em 1em; border-radius: 999px; font-weight: 700; font-size: .9rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--none); flex: none; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 4px rgb(22 163 74 / .2); }

.device-browser { border-radius: 12px; overflow: hidden; }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.device-browser .placeholder { aspect-ratio: 16 / 10; border-radius: 0; border: 0; }

/* Placeholder for app screenshots */
.placeholder {
	position: relative; display: grid; place-items: center;
	border: 2px dashed color-mix(in srgb, var(--muted) 35%, transparent);
	background:
		repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--muted) 6%, transparent) 14px 28px),
		var(--bg-alt);
	color: var(--muted);
	min-height: 120px;
}
.placeholder::after {
	content: attr(data-label);
	font-size: .82rem; font-weight: 600; text-align: center; padding: 0 12px;
}

@media (max-width: 920px) {
	.hero { padding: 48px 0 72px; }
	.hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.hero-visual { min-height: 0; margin-right: 24px; }
	.status-chip { left: 8px; }
}
@media (max-width: 520px) {
	.device-phone { min-width: 110px; right: -16px; bottom: -28px; border-radius: 22px; padding: 6px; }
	.device-phone .placeholder { border-radius: 16px; }
	.device-phone .placeholder::after { font-size: .7rem; }
	.hero-cta .btn { width: 100%; }
}

/* Requirements strip */
.reqs { background: var(--red-800); color: #fff; }
.reqs-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.req { padding: 26px 22px; border-left: 1px solid rgb(255 255 255 / .15); }
.req:first-child { border-left: 0; }
.req strong { display: block; font-size: 1.05rem; margin-bottom: .2em; }
.req span { font-size: .9rem; opacity: .85; }
@media (max-width: 920px) {
	.reqs-grid { grid-template-columns: 1fr 1fr; }
	.req:nth-child(3) { border-left: 0; }
	.req:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .15); }
}
@media (max-width: 480px) {
	.reqs-grid { grid-template-columns: 1fr; }
	.req { border-left: 0; padding: 18px 4px; }
	.req + .req { border-top: 1px solid rgb(255 255 255 / .15); }
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 720px) { .section { padding: 68px 0; } .section-head { margin-bottom: 40px; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon {
	width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
	background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 920px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.showcase.reverse .showcase-copy { order: 2; }
.showcase-copy > p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 920px) {
	.showcase { grid-template-columns: 1fr; gap: 40px; }
	.showcase.reverse .showcase-copy { order: 0; }
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.steps li::before {
	content: counter(step); grid-row: span 2;
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: var(--red-700); color: #fff; font-weight: 800;
}
.steps strong { font-size: 1.08rem; }
.steps span { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; color: var(--muted); }
.checklist li strong { color: var(--text); }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Checker */
.checker {
	display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
	background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.checker-form { padding: 32px; display: grid; gap: 16px; align-content: start; border-right: 1px solid var(--border); }
.checker-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.checker-form small { color: var(--muted); font-weight: 400; }
.checker-form input {
	font: inherit; font-size: 1rem; padding: .6em .8em; border-radius: var(--radius-sm);
	border: 1.5px solid var(--border); background: var(--bg); color: var(--text); width: 100%; min-height: 44px;
}
.checker-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.checker-form .btn { justify-self: start; border: 1.5px dashed var(--border); }
.checker-result { padding: 32px; background: var(--bg-alt); }

.overall { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px; }
.overall .dot { width: 16px; height: 16px; }
.overall strong { display: block; font-size: 1.15rem; }
.overall span:not(.dot) { color: var(--muted); font-size: .92rem; }
.overall[data-state="ok"] { border-color: var(--ok); }
.overall[data-state="ok"] .dot { background: var(--ok); box-shadow: 0 0 0 5px rgb(22 163 74 / .2); }
.overall[data-state="warn"] { border-color: var(--warn); }
.overall[data-state="warn"] .dot { background: var(--warn); box-shadow: 0 0 0 5px rgb(217 119 6 / .2); }
.overall[data-state="expired"] { border-color: var(--bad); }
.overall[data-state="expired"] .dot { background: var(--bad); box-shadow: 0 0 0 5px rgb(220 38 38 / .2); }

.req-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.req-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.req-list .name { font-weight: 600; }
.req-list .sub { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.badge { font-size: .78rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: rgb(22 163 74 / .14); color: var(--ok); }
.badge-warn { background: rgb(217 119 6 / .15); color: var(--warn); }
.badge-expired { background: rgb(220 38 38 / .14); color: var(--bad); }
.badge-missing { background: color-mix(in srgb, var(--none) 20%, transparent); color: var(--muted); }
.req-list li[data-state="ok"] .dot { background: var(--ok); }
.req-list li[data-state="warn"] .dot { background: var(--warn); }
.req-list li[data-state="expired"] .dot { background: var(--bad); }
.fineprint { font-size: .8rem; color: var(--muted); margin: 0; }

@media (max-width: 820px) {
	.checker { grid-template-columns: 1fr; }
	.checker-form { border-right: 0; border-bottom: 1px solid var(--border); }
	.checker-form, .checker-result { padding: 22px; }
}

/* Security */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sec { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); border-top: 4px solid var(--accent); }
.sec p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 920px) { .security-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .security-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
	cursor: pointer; list-style: none; font-weight: 650; padding: 18px 32px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--red-700), var(--red-900)); color: #fff; padding: 88px 0; text-align: center; }
.cta-inner { max-width: 760px; }
.cta p { opacity: .9; font-size: 1.12rem; }
.cta .hero-cta { justify-content: center; margin-bottom: 0; }

/* Footer */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start; }
.footer-inner .brand { margin-bottom: .6em; font-size: 1rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-inner > .small { grid-column: 1 / -1; margin: 0; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.todo { background: #fef9c3; color: #713f12; padding: 0 .3em; border-radius: 4px; }
@media (prefers-color-scheme: dark) { .todo { background: #422006; color: #fde68a; } }
