/* Schrift – lokal gehostet, keine externen Anfragen */
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Farben aus dem Logo */
	--gruen: #429343;
	--gruen-hell: #84b753;
	--gruen-dunkel: #2c6a30;
	--gruen-zart: #eef5e6;
	--orange: #e07b29;
	--orange-mittel: #e59358;
	--orange-hell: #edb987;
	--orange-dunkel: #b4541a;

	--hintergrund: #fbfaf7;
	--flaeche: #ffffff;
	--text: #1d2a20;
	--text-leise: #56635a;
	--linie: #e4e6df;

	--radius: 20px;
	--radius-klein: 12px;
	--schatten: 0 1px 2px rgba(29, 42, 32, .04), 0 8px 24px rgba(29, 42, 32, .06);
	--breite: 1160px;
	--kopf-hoehe: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--kopf-hoehe) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--hintergrund);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--gruen-dunkel); text-underline-offset: 3px; }
a:hover { color: var(--orange-dunkel); }

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

h1, h2, h3 {
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 650;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
	width: 100%;
	max-width: var(--breite);
	margin: 0 auto;
	padding: 0 16px;
}
@media (min-width: 640px) { .container { padding: 0 32px; } }

.sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--gruen-dunkel); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.ueberzeile {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gruen);
	margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.button {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 22px;
	border-radius: 999px;
	font: inherit; font-weight: 600; font-size: 1rem;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background-color .2s, color .2s, border-color .2s;
	cursor: pointer;
}
.button svg { width: 20px; height: 20px; flex: none; }
.button-primaer { background: var(--orange-dunkel); color: #fff; }
.button-primaer:hover { background: #9a4714; color: #fff; }
.button-sekundaer { border-color: var(--gruen); color: var(--gruen-dunkel); background: transparent; }
.button-sekundaer:hover { background: var(--gruen-zart); color: var(--gruen-dunkel); }

/* ---------- Kopfzeile ---------- */
.kopf {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 250, 247, .9);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--linie);
}
.kopf-inhalt {
	height: var(--kopf-hoehe);
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marke {
	display: flex; align-items: center; gap: 12px;
	text-decoration: none; color: var(--text);
}
.marke img { width: auto; height: 60px; flex: none; }
.marke-text { display: flex; flex-direction: column; line-height: 1.2; }
.marke-text strong { font-weight: 650; font-size: 1.02rem; letter-spacing: -0.01em; }
.marke-text small { font-size: .8rem; color: var(--text-leise); }

.navigation ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 4px;
}
.navigation a {
	display: block; padding: 8px 14px; border-radius: 999px;
	text-decoration: none; color: var(--text); font-weight: 500; font-size: .97rem;
}
.navigation a:hover { background: var(--gruen-zart); color: var(--gruen-dunkel); }

.kopf-aktionen { display: flex; align-items: center; gap: 6px; }
.icon-link {
	display: grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%;
	color: var(--gruen-dunkel); background: transparent; border: 0; cursor: pointer;
}
.icon-link:hover { background: var(--gruen-zart); color: var(--gruen-dunkel); }
.icon-link svg { width: 22px; height: 22px; }
.menue-knopf { display: none; }

@media (max-width: 900px) {
	.menue-knopf { display: grid; }
	.navigation {
		position: absolute; top: var(--kopf-hoehe); left: 0; right: 0;
		background: var(--hintergrund);
		border-bottom: 1px solid var(--linie);
		box-shadow: 0 12px 24px rgba(29, 42, 32, .08);
		display: none;
	}
	.navigation.offen { display: block; }
	.navigation ul { flex-direction: column; padding: 8px 16px 16px; }
	.navigation a { padding: 12px 14px; font-size: 1.05rem; }
}
@media (max-width: 420px) {
	.marke img { height: 48px; }
	.marke-text small { display: none; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 88px 0; }
.abschnitt-hell { background: var(--flaeche); }
.abschnitt-kopf { max-width: 680px; margin-bottom: 48px; }
.abschnitt-kopf p { color: var(--text-leise); font-size: 1.1rem; }
@media (max-width: 640px) { .abschnitt { padding: 64px 0; } }

/* ---------- Start ---------- */
.start { padding: 56px 0 88px; }
.start-raster {
	display: grid; gap: 48px; align-items: center;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.start-raster { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}
.start h1 span { color: var(--gruen); }
.start-lead { font-size: 1.15rem; color: var(--text-leise); max-width: 34em; }
.start-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.start-fakten {
	display: flex; flex-wrap: wrap; gap: 8px 24px;
	margin: 36px 0 0; padding: 0; list-style: none;
	font-size: .95rem; color: var(--text-leise);
}
.start-fakten li { display: flex; align-items: center; gap: 8px; }
.start-fakten li::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen-hell);
}
.start-logo { display: flex; justify-content: center; }
.start-logo img { width: 100%; max-width: 560px; }
@media (max-width: 899px) {
	.start-logo img { max-width: 340px; }
}

/* ---------- Über mich ---------- */
.ueber-raster {
	display: grid; gap: 48px; align-items: start;
}
@media (min-width: 900px) {
	.ueber-raster { grid-template-columns: 440px 1fr; gap: 64px; }
}
.portrait { margin: 0; }
.portrait img {
	width: 100%;
	border-radius: var(--radius);
}
.portrait figcaption {
	text-align: center; margin-top: 16px; font-weight: 600;
}
.portrait figcaption small { display: block; font-weight: 400; color: var(--text-leise); }

/* ---------- Leistungen ---------- */
.leistungen-raster {
	display: grid; gap: 20px; align-items: stretch;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.leistung {
	background: var(--flaeche);
	border: 1px solid var(--linie);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--schatten);
	border-top: 4px solid var(--gruen-hell);
	display: flex; flex-direction: column;
	min-height: var(--kachel-hoehe, auto);
}
/* „Mehr erfahren“ sitzt immer unten in der Kachel */
.leistung details { margin-top: auto; }
.leistung h3 { margin-bottom: .3em; }
.leistung-untertitel { color: var(--text-leise); margin-bottom: 1em; }
.leistung details summary {
	cursor: pointer; list-style: none;
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 600; color: var(--orange-dunkel);
}
.leistung details summary::-webkit-details-marker { display: none; }
.leistung details summary::after {
	content: ""; width: 8px; height: 8px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s;
}
.leistung details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.leistung details[open] summary { margin-bottom: 12px; }
.leistung details p { font-size: .98rem; }
.leistung details p:last-child { margin-bottom: 0; }
.leistung details .weniger { display: none; }
.leistung details[open] .mehr { display: none; }
.leistung details[open] .weniger { display: inline; }

/* ---------- Ablauf ---------- */
.ablauf-raster { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .ablauf-raster { grid-template-columns: 1fr 1fr; gap: 72px; } }
.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; gap: 28px; }
.schritte li {
	counter-increment: schritt;
	display: grid; grid-template-columns: 48px 1fr; gap: 18px;
}
.schritte li::before {
	content: counter(schritt);
	display: grid; place-items: center;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--gruen-zart); color: var(--gruen-dunkel);
	font-weight: 700; font-size: 1.1rem;
}
.schritte h3 { margin: 10px 0 4px; font-size: 1.15rem; }
.schritte p { margin: 0; color: var(--text-leise); }
.ablauf-bilder { display: grid; gap: 20px; }
.ablauf-bilder img {
	width: 85%; aspect-ratio: 3 / 2; object-fit: cover;
	border-radius: var(--radius);
}
.ablauf-bilder img:last-child { justify-self: end; }

/* ---------- Kontakt ---------- */
.kontakt-raster {
	display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.kontakt-karte {
	display: flex; flex-direction: column; gap: 6px;
	background: var(--flaeche);
	border: 1px solid var(--linie);
	border-radius: var(--radius);
	padding: 28px;
	text-decoration: none; color: var(--text);
	box-shadow: var(--schatten);
	transition: border-color .2s, transform .2s;
}
a.kontakt-karte:hover { border-color: var(--gruen-hell); color: var(--text); transform: translateY(-2px); }
.kontakt-karte svg { width: 28px; height: 28px; color: var(--gruen); margin-bottom: 10px; }
.kontakt-karte span { color: var(--text-leise); font-size: .95rem; }
.kontakt-karte strong { font-size: 1.15rem; font-weight: 600; word-break: break-word; }
.kontakt-karte em { font-style: normal; color: var(--orange-dunkel); font-weight: 600; font-size: .95rem; margin-top: 8px; }

/* ---------- Fußzeile ---------- */
.fuss {
	background: var(--gruen-dunkel); color: #e4efdd;
	padding: 48px 0 32px;
	font-size: .95rem;
}
.fuss a { color: #fff; }
.fuss a:hover { color: var(--orange-hell); }
.fuss-inhalt {
	display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center;
}
.fuss-marke { display: flex; align-items: center; gap: 14px; }
.fuss-logo { flex: none; }
.fuss-logo img { width: auto; height: 90px; }
.fuss nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fuss-unten { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); color: #bcd3b4; font-size: .88rem; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.rechtstext { max-width: 760px; padding: 64px 0 88px; }
.rechtstext h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1em; }
.rechtstext h2 { font-size: 1.3rem; margin-top: 2em; }
.rechtstext address { font-style: normal; margin-bottom: 1em; }
.rechtstext ul { padding-left: 1.2em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

/* Geöffnete Leistung nutzt die volle Breite */
.leistung-text { max-width: 72ch; }
.leistung-text h4 { font-size: 1.05rem; font-weight: 650; margin: 1.6em 0 .4em; color: var(--gruen-dunkel); }
.leistung-text ul { margin: 0 0 1em; padding-left: 1.2em; font-size: .98rem; }
.leistung-text li { margin-bottom: .35em; }
.leistung-text li::marker { color: var(--gruen-hell); }
.leistung-text > :last-child { margin-bottom: 0; }

/* Leistungstext klappt über die volle Breite unter der Reihe auf (per JavaScript) */
.leistung.aktiv {
	background: var(--gruen-zart);
	border-color: var(--gruen-hell);
	box-shadow: none;
}
.leistung.aktiv summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.leistung.aktiv .mehr { display: none; }
.leistung.aktiv .weniger { display: inline; }
.leistung-panel {
	position: relative;
	grid-column: 1 / -1;
	background: var(--flaeche);
	border: 1px solid var(--linie);
	border-top: 4px solid var(--gruen-hell);
	border-radius: var(--radius);
	padding: 28px 32px 32px;
	box-shadow: var(--schatten);
	animation: panel-auf .25s ease;
}
.leistung-panel h3 { margin: 0 0 1em; font-size: 1.35rem; }
/* Pfeil zeigt auf die geöffnete Kachel; Position setzt main.js */
.leistung-panel::before {
	content: "";
	position: absolute;
	top: -17px;
	left: var(--pfeil-x, 50%);
	transform: translateX(-50%);
	border: 14px solid transparent;
	border-top: 0;
	border-bottom: 14px solid var(--gruen-hell);
}
.leistung-panel p, .leistung-panel ul { font-size: 1rem; }
.leistung-panel h4:first-of-type { margin-top: 0; }
@keyframes panel-auf {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}
@media (max-width: 640px) { .leistung-panel { padding: 22px 20px 24px; } }
@media (min-width: 900px) {
	.leistung-panel.zweispaltig .leistung-text { max-width: none; columns: 2; column-gap: 56px; column-rule: 1px solid var(--linie); }
	.leistung-panel.zweispaltig .leistung-text h4 { break-after: avoid; }
	.leistung-panel.zweispaltig .leistung-text li { break-inside: avoid; }
	.leistung-panel.zweispaltig .leistung-text > :first-child { margin-top: 0; }
}
