/*
	Neues Design 2026 — bennetklarhoelter.de
	Eigenständiges Stylesheet, ersetzt das HTML5UP-"Landed"-Template auf index.html & impressum.html
*/

:root {
	--bg: #F4F7F6;
	--surface: #FFFFFF;
	--ink: #13282C;
	--muted: #4E6367;
	--petrol: #0E6B6E;
	--petrol-dark: #0A4A4E;
	--deep: #0C2B2F;
	--deep-ink: #DFF0EC;
	--amber: #E9A23B;
	--line: #D9E3E1;
	--radius: 14px;
	--font-display: "Bricolage Grotesque", "Avenir Next", sans-serif;
	--font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--petrol); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
	outline: 3px solid var(--amber);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--petrol); color: #fff; }

.container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

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

h1, h2, h3 {
	font-family: var(--font-display);
	line-height: 1.12;
	letter-spacing: -0.015em;
	font-weight: 700;
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--petrol);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}
.eyebrow::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--amber);
	flex: none;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 68px;
}
.brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 19px;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--petrol); }
.brand .dot { color: var(--amber); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
}
.site-nav a:hover { color: var(--petrol); text-decoration: none; }
.site-nav .nav-cta {
	background: var(--petrol);
	color: #fff;
	padding: 9px 18px;
	border-radius: 999px;
	font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--petrol-dark); }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 8px 10px;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink);
	cursor: pointer;
}

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

.hero {
	position: relative;
	overflow: hidden;
	padding: 84px 0 96px;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 56px;
	align-items: center;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
	font-size: clamp(31px, 8.5vw, 64px);
	font-weight: 800;
	margin-bottom: 22px;
}
.hero h1 .accent { color: var(--petrol); }
.hero .lead {
	font-size: 19px;
	color: var(--muted);
	max-width: 480px;
	margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 16px;
	transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-2px); }
.button.primary { background: var(--petrol); color: #fff; }
.button.primary:hover { background: var(--petrol-dark); }
.button.ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.button.ghost:hover { border-color: var(--petrol); color: var(--petrol); }

.hero-portrait { position: relative; justify-self: center; }
.hero-portrait img.portrait {
	width: min(340px, 70vw);
	aspect-ratio: 5 / 6;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(12, 43, 47, 0.18);
}
.hero-portrait::before {
	content: "";
	position: absolute;
	inset: -16px -16px auto auto;
	width: 120px;
	height: 120px;
	border-radius: 28px;
	background: var(--amber);
	opacity: 0.9;
	z-index: -1;
}
.hero-portrait .cert {
	position: absolute;
	bottom: -22px;
	left: -22px;
	width: 108px;
	background: var(--surface);
	border-radius: 16px;
	padding: 10px;
	box-shadow: 0 10px 30px rgba(12, 43, 47, 0.15);
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	color: var(--petrol);
	opacity: 0.07;
}

/* ---------- Leistungen ---------- */

.section { padding: 96px 0; }

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 26px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(12, 43, 47, 0.1);
	border-color: color-mix(in srgb, var(--petrol) 40%, var(--line));
}
.card .icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--petrol) 10%, #fff);
	color: var(--petrol);
	display: grid;
	place-items: center;
	margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card.highlight { border-color: var(--petrol); border-width: 1.5px; }

/* ---------- KI / Agenten (dunkle Sektion mit Signatur-Graph) ---------- */

.section.dark {
	background: var(--deep);
	color: var(--deep-ink);
}
.section.dark .eyebrow { color: #7FD1C7; }
.section.dark .section-head p,
.section.dark p { color: color-mix(in srgb, var(--deep-ink) 78%, transparent); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: #8FD8CE; }

.ki-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}
.ki-copy p { margin-bottom: 18px; font-size: 17px; }
.ki-copy p b { color: #fff; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tags span {
	font-family: var(--font-mono);
	font-size: 13px;
	color: #9FE0D6;
	border: 1px solid rgba(159, 224, 214, 0.35);
	border-radius: 999px;
	padding: 5px 14px;
}

.agent-graph { width: 100%; height: auto; }
.agent-graph .node {
	fill: rgba(255, 255, 255, 0.05);
	stroke: rgba(159, 224, 214, 0.6);
	stroke-width: 1.2;
}
.agent-graph .node.core { stroke: var(--amber); fill: rgba(233, 162, 59, 0.1); }
.agent-graph text {
	font-family: var(--font-mono);
	font-size: 11px;
	fill: #C9E9E3;
}
.agent-graph .edge {
	stroke: rgba(159, 224, 214, 0.5);
	stroke-width: 1.4;
	fill: none;
	stroke-dasharray: 6 6;
	animation: edge-flow 1.6s linear infinite;
}
@keyframes edge-flow {
	to { stroke-dashoffset: -12; }
}

/* ---------- Web-Entwicklung ---------- */

.pillars {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px 40px;
}
.pillar {
	border-top: 2px solid var(--line);
	padding-top: 20px;
}
.pillar h3 { font-size: 18px; margin-bottom: 8px; color: var(--petrol-dark); }
.pillar p { color: var(--muted); font-size: 16px; }

/* ---------- Werdegang ---------- */

.career-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 64px;
}
.timeline { list-style: none; }
.timeline li {
	position: relative;
	padding: 0 0 28px 30px;
	border-left: 2px solid var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--surface);
	border: 3px solid var(--petrol);
}
.timeline .years {
	font-family: var(--font-mono);
	font-size: 13.5px;
	color: var(--petrol);
	display: block;
	margin-bottom: 3px;
}
.timeline .role { font-weight: 600; }

.knowhow h3 { font-size: 19px; margin-bottom: 16px; }
.knowhow-group { margin-bottom: 22px; }
.knowhow-group .label {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 5px 12px;
	font-size: 14px;
	color: var(--ink);
}

/* ---------- Referenzen ---------- */

.ref-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.ref-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--ink);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ref-card:hover {
	text-decoration: none;
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(12, 43, 47, 0.1);
}
.ref-logo {
	height: 74px;
	display: flex;
	align-items: center;
}
.ref-logo img { max-height: 64px; width: auto; max-width: 180px; }
.ref-card h3 { font-size: 17px; }
.ref-card .ref-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.ref-card .ref-tags span {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--petrol-dark);
	background: color-mix(in srgb, var(--petrol) 8%, #fff);
	border-radius: 999px;
	padding: 3px 10px;
}

/* ---------- Kontakt ---------- */

.contact-panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 56px;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 48px;
	align-items: center;
}
.contact-panel h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 16px; }
.contact-panel p { color: var(--muted); margin-bottom: 16px; }
.contact-panel .mail {
	font-family: var(--font-mono);
	font-size: 15px;
}
.contact-panel img {
	border-radius: 16px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--line);
	padding: 40px 0;
}
.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}
.site-footer nav { display: flex; gap: 22px; align-items: center; }
.site-footer a { color: var(--muted); font-size: 15px; }
.site-footer a:hover { color: var(--petrol); }
.site-footer .brand { font-size: 16px; }

/* ---------- Impressum / Unterseiten ---------- */

.page-content { padding: 72px 0 96px; max-width: 760px; }
.page-content h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 32px; }
.page-content h2 { font-size: 22px; margin: 32px 0 10px; }
.page-content p { margin-bottom: 14px; color: var(--muted); }
.page-content b { color: var(--ink); }

/* ---------- Scroll-Reveal ---------- */

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.agent-graph .edge { animation: none; }
	.button:hover, .card:hover, .ref-card:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.hero-grid, .ki-grid, .career-grid { grid-template-columns: 1fr; }
	.hero-grid { gap: 64px; }
	.hero-portrait { justify-self: start; margin-left: 22px; }
	.card-grid, .ref-grid { grid-template-columns: repeat(2, 1fr); }
	.contact-panel { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 720px) {
	.site-nav {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: 20px 24px 26px;
		gap: 18px;
	}
	.site-nav.open { display: flex; }
	.nav-toggle { display: block; }
	.section { padding: 72px 0; }
	.card-grid, .ref-grid, .pillars { grid-template-columns: 1fr; }
}
