/* noncalcul.at — Landingpage */

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #f7f7f7;
	color: #232629;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: .875rem;
	line-height: 1.5;
}

a {
	color: #0854a0;
}

a:hover {
	color: #0a6ed1;
}

img {
	max-width: 100%;
}

/* Topbar */

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	height: 2.75rem;
	background: #fff;
	box-shadow: inset 0 -1px 0 0 #d9d9d9, 0 2px 2px 0 rgba(0, 0, 0, .05);
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0 1rem;
}

.topbar__logo {
	height: 1.25rem;
	width: 1.25rem;
}

.topbar__brand {
	font-size: 1rem;
	color: #232629;
	white-space: nowrap;
}

.topbar__nav {
	display: flex;
	gap: 1rem;
	margin-left: auto;
	align-items: center;
	overflow-x: auto;
}

.topbar__nav a {
	text-decoration: none;
	white-space: nowrap;
}

@media (max-width: 40rem) {
	.topbar {
		box-shadow: none;
	}

	/* Nav bleibt wischbar, aber ohne sichtbare Scrollleiste (sonst ein grauer Strich unter der Topbar) */
	.topbar__nav {
		scrollbar-width: none;
	}

	.topbar__nav::-webkit-scrollbar {
		display: none;
	}
}

/* Layout */

.wrap {
	max-width: 60rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

main.wrap {
	padding-top: 3rem;
	padding-bottom: 4rem;
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

section {
	scroll-margin-top: 3.5rem;
}

section h2 {
	font-size: 1.5rem;
	font-weight: 400;
	margin: 0 0 .25rem;
}

.section-tagline {
	font-style: italic;
	color: #6a6d70;
	margin: 0 0 1.5rem;
}

.panel {
	background: #fff;
	border: 1px solid #d9d9d9;
	padding: 2rem;
}

/* Hero */

.hero {
	background: #fff;
	border-bottom: 1px solid #d9d9d9;
}

.hero__inner {
	padding: 4rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 3rem;
	align-items: center;
}

.hero__icon {
	width: 8rem;
	height: 8rem;
	flex: none;
}

.hero__text {
	flex: 1 1 20rem;
	min-width: 0;
}

.hero__text h1 {
	font-size: 2.25rem;
	font-weight: 400;
	margin: 0 0 .5rem;
	line-height: 1.2;
}

.hero__slogan {
	font-size: 1.25rem;
	color: #6a6d70;
	margin: 0 0 2rem;
}

.hero__lead {
	font-size: 1rem;
	margin: 0 0 2rem;
	max-width: 34rem;
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.hero__hint {
	color: #6a6d70;
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	height: 2.75rem;
	padding: 0 1.5rem;
	text-decoration: none;
	border-radius: 4px;
	font-size: 1rem;
	border: 1px solid transparent;
}

.btn--small {
	height: 2.25rem;
	padding: 0 1rem;
}

.btn--primary {
	background: #0a6ed1;
	color: #fff;
	border-color: #0a6ed1;
}

.btn--primary:hover {
	background: #0854a0;
	border-color: #0854a0;
	color: #fff;
}

.btn--secondary {
	background: #fff;
	color: #0854a0;
	border-color: #0854a0;
}

.btn--secondary:hover {
	background: #ebf5fe;
}

/* Rechner grid */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
}

.card {
	display: block;
	background: #fff;
	border: 1px solid #d9d9d9;
	padding: 1.5rem;
	text-decoration: none;
	color: #232629;
}

a.card:hover {
	background: #f5f5f5;
}

.card--disabled {
	color: #6a6d70;
	cursor: default;
}

.card__title {
	font-size: 1.125rem;
	margin-bottom: .5rem;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.card__desc {
	color: #6a6d70;
}

/* Rechner-Kachel mit Aktionen: Aktionszeile unten buendig, auch bei ungleich langen Texten */

.card--actions {
	display: flex;
	flex-direction: column;
}

.card__actions {
	margin-top: auto;
	padding-top: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	align-items: center;
}

.card__actions .btn {
	height: 2rem;
	padding: 0 .75rem;
	font-size: .875rem;
}

.card--disabled .card__desc {
	color: #8a8d90;
}

.badge {
	font-size: .75rem;
	font-weight: 400;
	white-space: nowrap;
	color: #6a6d70;
	border: 1px solid #d9d9d9;
	border-radius: 3px;
	padding: .0625rem .375rem;
}

.hint {
	color: #6a6d70;
	margin: 1rem 0 0;
}

/* Zielgruppe */

.list {
	margin: 0;
	padding-left: 1.25rem;
	color: #232629;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	max-width: 44rem;
}

/* FAQ */

.faq-item {
	padding: 1.5rem;
	border-bottom: 1px solid #e5e5e5;
}

.faq-item:last-child {
	border-bottom: none;
}

.faq-item__q {
	font-size: 1rem;
	margin-bottom: .5rem;
}

.faq-item__a {
	color: #6a6d70;
	max-width: 44rem;
}

/* Aufklappbare Variante (details/summary), z. B. "Was der Rechner berechnet" */

details.faq-item > summary {
	cursor: pointer;
}

details.faq-item:not([open]) > summary {
	margin-bottom: 0;
}

.faq-item__a p {
	margin: 0 0 .5rem;
}

.faq-item__a p:last-child {
	margin-bottom: 0;
}

/* Status */

.status-row {
	display: flex;
	gap: 1rem;
	align-items: baseline;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #e5e5e5;
}

.status-row:last-child {
	border-bottom: none;
}

.status-row__name {
	flex: 1 1 auto;
}

.status-row__state {
	white-space: nowrap;
}

.status-row__state--ok {
	color: #107e3e;
}

.status-row__state--pending {
	color: #6a6d70;
}

/* Impressum */

.impressum-panel {
	padding: 2rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 2rem;
}

.person {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.person__photo {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.person__name {
	font-size: 1rem;
	margin: 0 0 .125rem;
}

.person__tagline {
	color: #6a6d70;
	margin: 0 0 .25rem;
}

.field-label {
	color: #6a6d70;
	margin-bottom: .25rem;
}

/* Footer */

.site-footer {
	background: #354a5f;
	color: #fff;
}

.site-footer .wrap {
	padding: 2rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
}

.site-footer a {
	color: #fff;
	text-decoration: underline;
}
