:root {
	color-scheme: dark;
	--bg: #090909;
	--surface: #141414;
	--surface-2: #1c1c1c;
	--text: #f2f2f2;
	--muted: #a6a6a6;
	--line: rgba(255, 255, 255, 0.14);
	--accent: #e5e5e5;
	--accent-strong: #bdbdbd;
	--max: 1180px;
	--radius: 20px;

	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--accent);
}

button,
input {
	font: inherit;
}

button {
	cursor: pointer;
}

img {
	display: block;
	max-width: 100%;
}

.container {
	width: min(var(--max), calc(100% - 44px));
	margin-inline: auto;
}

/* Header und Navigation */

.site-header {
	position: sticky;
	z-index: 20;
	top: 0;
	border-bottom: 1px solid var(--line);
	background: rgba(9, 9, 9, 0.88);
	backdrop-filter: blur(18px);
}

.nav {
	min-height: 86px;
	display: flex;
	align-items: center;
	gap: 26px;
}

.brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
}

.brand img {
	width: 164px;
	height: auto;
	max-height: 58px;
	object-fit: contain;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 26px);
	margin-left: auto;
}

.nav-links a {
	color: #d0d0d0;
	font-size: 0.91rem;
	transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
	color: #fff;
}

.nav-links a.active::after {
	content: "";
	display: block;
	height: 2px;
	margin-top: 5px;
	background: var(--accent);
}

.nav-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}

.language-switch {
	display: flex;
	gap: 3px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 99px;
}

.language-switch button {
	padding: 4px 8px;
	color: var(--muted);
	border: 0;
	border-radius: 99px;
	background: transparent;
	font-size: 0.75rem;
	font-weight: 700;
}

.language-switch button.is-active {
	color: #111;
	background: var(--accent);
}

.icon-btn {
	width: 38px;
	height: 38px;
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--text);
	background: transparent;
	font-size: 1.15rem;
	transition:
		background 0.2s ease,
		border-color 0.2s ease;
}

.icon-btn:hover {
	background: #202020;
	border-color: #777;
}

.menu-btn {
	display: none;
}

/* Suche */

.search-panel {
	display: none;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}

.search-panel.is-open {
	display: block;
}

.search-form {
	display: flex;
	gap: 10px;
}

.search-form input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--text);
	background: var(--surface);
}

.search-form button {
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	color: #111;
	background: var(--accent);
	font-weight: 700;
	transition: background 0.2s ease;
}

.search-form button:hover {
	background: #fff;
}

/* Hero-Bereich */

.hero {
	position: relative;
	display: flex;
	min-height: 620px;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	border-bottom: 1px solid var(--line);
}

.hero::before {
	position: absolute;
	z-index: -2;
	inset: 0;
	content: "";
	background:
		linear-gradient(
			90deg,
			rgba(7, 7, 7, 0.96) 0%,
			rgba(7, 7, 7, 0.77) 45%,
			rgba(7, 7, 7, 0.2) 100%
		),
		url("https://www.bawacon.at/img/research/bawacon-idee.jpg") center / cover
			no-repeat;
	filter: grayscale(100%);
}

.hero::after {
	position: absolute;
	z-index: -1;
	right: -150px;
	bottom: -280px;
	width: 650px;
	height: 650px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	content: "";
	box-shadow:
		0 0 0 60px rgba(255, 255, 255, 0.025),
		0 0 0 120px rgba(255, 255, 255, 0.02);
}

.hero-inner {
	padding-block: 100px;
}

.eyebrow {
	margin: 0 0 16px;
	color: var(--accent);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.19em;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	max-width: 850px;
	margin-bottom: 22px;
	font-size: clamp(3.2rem, 8vw, 6.5rem);
	font-weight: 650;
	line-height: 0.99;
	letter-spacing: -0.065em;
}

h2 {
	font-size: clamp(2rem, 4vw, 3.3rem);
	line-height: 1.1;
	letter-spacing: -0.04em;
}

.hero p:not(.eyebrow) {
	max-width: 590px;
	color: #c5c5c5;
	font-size: 1.1rem;
}

/* Buttons */

.btn {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 19px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-weight: 750;
	transition:
		transform 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	color: #111;
	background: var(--accent);
}

.btn-primary:hover {
	color: #000;
	background: #fff;
}

.btn-outline {
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
	background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* Allgemeine Abschnitte */

.section {
	padding-block: 100px;
}

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 36px;
}

.section-head p {
	max-width: 600px;
	margin-bottom: 0;
	color: var(--muted);
}

.section-head h2 {
	margin-bottom: 12px;
}

/* Leistungen */

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.service-card {
	min-height: 280px;
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(
		145deg,
		rgba(34, 34, 34, 0.9),
		rgba(17, 17, 17, 0.9)
	);
	transition:
		transform 0.25s ease,
		border-color 0.25s ease,
		background 0.25s ease;
}

.service-card:hover {
	transform: translateY(-5px);
	border-color: rgba(255, 255, 255, 0.4);
	background: linear-gradient(145deg, #292929, #141414);
}

.card-number {
	display: inline-block;
	margin-bottom: 40px;
	color: var(--accent);
	font-size: 0.82rem;
	letter-spacing: 0.1em;
}

.service-card h3 {
	margin-bottom: 12px;
	font-size: 1.35rem;
}

.service-card p {
	color: var(--muted);
}

.text-link {
	color: var(--accent);
	font-weight: 700;
}

.text-link:hover {
	color: #fff;
}

/* Referenzen */

.references-section {
	background: #101010;
	border-block: 1px solid var(--line);
}

.ref-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ref-card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	transition:
		transform 0.25s ease,
		border-color 0.25s ease;
}

.ref-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.45);
}

.ref-photo {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #202020;
}

.ref-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: transform 0.5s ease;
}

.ref-card:hover .ref-photo img {
	transform: scale(1.035);
}

.ref-copy {
	padding: 18px 20px 20px;
}

.ref-copy h3 {
	margin-bottom: 3px;
	font-size: 1.12rem;
}

.ref-copy p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
}

/* Über uns */

.about-panel {
	display: grid;
	grid-template-columns: 0.7fr 1.3fr;
	gap: 70px;
	align-items: start;
}

.about-panel p {
	max-width: 720px;
	color: var(--muted);
	font-size: 1.08rem;
}

/* Kontakt-CTA */

.cta-band {
	padding-block: 60px;
	background: linear-gradient(110deg, #252525, #111 72%);
	border-block: 1px solid var(--line);
}

.cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.cta-inner h2 {
	margin-bottom: 10px;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cta-inner p {
	margin-bottom: 0;
	color: var(--muted);
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Unterseiten */

.page-hero {
	padding-block: 86px 70px;
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(
			ellipse at 78% 20%,
			rgba(255, 255, 255, 0.07),
			transparent 48%
		),
		linear-gradient(120deg, #171717, #090909 70%);
}

.page-hero h1 {
	font-size: clamp(3rem, 7vw, 5.2rem);
}

.page-hero p:last-child {
	max-width: 680px;
	color: var(--muted);
	font-size: 1.08rem;
}

.page-content {
	padding-block: 70px 100px;
}

/* Kontaktkarten und Impressum */

.info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.info-card,
.legal-copy {
	padding: clamp(24px, 4vw, 42px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.info-card h2,
.legal-copy h2 {
	margin-bottom: 18px;
	font-size: 1.4rem;
	letter-spacing: -0.02em;
}

.info-card p,
.info-card address,
.legal-copy p {
	color: var(--muted);
	font-style: normal;
}

.info-card a,
.legal-copy a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.35);
	text-underline-offset: 3px;
}

.info-card a:hover,
.legal-copy a:hover {
	color: #fff;
}

.legal-copy {
	max-width: 900px;
}

.legal-copy h2:not(:first-child) {
	margin-top: 36px;
}

.reference-note {
	margin-top: 24px;
	color: var(--muted);
	font-size: 0.9rem;
}

/* Footer */

.site-footer {
	padding-block: 42px 22px;
	border-top: 1px solid var(--line);
	background: #070707;
}

.footer-main {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1.2fr 1fr;
	gap: 28px;
	padding-bottom: 34px;
}

.footer-logo {
	width: 150px;
	border-radius: 3px;
}

.footer-contact {
	color: var(--muted);
	font-size: 0.9rem;
}

.footer-contact a {
	color: var(--text);
}

.footer-contact a:hover {
	color: #fff;
}

.footer-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 16px;
	align-content: start;
	font-size: 0.9rem;
}

.footer-links a:hover {
	color: #fff;
}

.back-top {
	width: 34px;
	height: 34px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--text);
	background: transparent;
	transition: background 0.2s ease;
}

.back-top:hover {
	background: #242424;
}

.copyright {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: #858585;
	font-size: 0.78rem;
}

/* Animationen */

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.65s ease,
		transform 0.65s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

mark.site-search-match {
	padding: 2px 0;
	color: #111;
	background: var(--accent);
}

:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

/* Weniger Animationen, wenn gewünscht */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}

/* Tablet */

@media (max-width: 1000px) {
	.nav {
		gap: 14px;
	}

	.brand img {
		width: 138px;
	}

	.nav-links {
		gap: 13px;
	}

	.nav-links a {
		font-size: 0.82rem;
	}

	.service-grid,
	.ref-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Smartphone */

@media (max-width: 760px) {
	.container {
		width: min(var(--max), calc(100% - 32px));
	}

	.nav {
		min-height: 74px;
	}

	.brand img {
		width: 132px;
	}

	.nav-links {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		align-items: stretch;
		gap: 0;
		padding: 10px 16px 18px;
		border-bottom: 1px solid var(--line);
		background: rgba(9, 9, 9, 0.98);
	}

	.nav-links.is-open {
		display: flex;
		flex-direction: column;
	}

	.nav-links a {
		padding: 11px 4px;
		font-size: 0.98rem;
	}

	.nav-links a.active::after {
		display: none;
	}

	.nav-tools {
		gap: 5px;
		margin-left: auto;
	}

	.menu-btn {
		display: inline-grid;
	}

	.search-btn {
		display: none;
	}

	.hero {
		min-height: 560px;
	}

	.hero-inner {
		padding-block: 80px;
	}

	.hero::before {
		background-position: 62% center;
	}

	.section {
		padding-block: 72px;
	}

	.section-head,
	.cta-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.service-grid,
	.ref-grid,
	.info-grid,
	.about-panel {
		grid-template-columns: 1fr;
	}

	.service-card {
		min-height: auto;
	}

	.card-number {
		margin-bottom: 24px;
	}

	.about-panel {
		gap: 18px;
	}

	.page-hero {
		padding-block: 66px 50px;
	}

	.page-content {
		padding-block: 42px 72px;
	}

	.footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 24px 16px;
	}

	.copyright {
		flex-direction: column;
		gap: 6px;
	}
}

@media (max-width: 420px) {
	.language-switch button {
		padding: 4px 6px;
	}

	.icon-btn {
		width: 34px;
		height: 34px;
	}

	.footer-main {
		grid-template-columns: 1fr;
	}

	h1 {
		font-size: clamp(2.8rem, 16vw, 4rem);
	}
}
