@font-face {
	font-family: "Hanken Grotesk";
	src: url("fonts/hanken-grotesk.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--bg: #eeebe4;
	--flaeche: #fff;
	--text: #1c1c1a;
	--grau: #6b6a65;
	--linie: #dad6cc;
	--band: #1d5c4f;
	--auf-band: #fff;
	--eingabe: #fff;
	--knopf: #eeebe4;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e100f;
		--flaeche: #151816;
		--text: #d6dbd4;
		--grau: #7d857e;
		--linie: #262b28;
		--band: #1a3a31;
		--auf-band: #d6dbd4;
		--eingabe: #0e100f;
		--knopf: #151816;
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 18px/1.6 "Hanken Grotesk", system-ui, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; }
.breit { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

.leiste { display: flex; gap: 1.5rem; padding: 1.5rem 0; }
.leiste a { text-decoration: none; }
.marke { margin-right: auto; font-weight: 700; }
.sozial { display: flex; align-items: center; color: var(--grau); }
.sozial:hover { color: var(--band); }
.sozial svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }

/* Schrumpft auf schmalen Bildschirmen, bis „Maßgeschneiderte“ (8em) in die Zeile passt */
h1 { max-width: 15ch; margin: 5rem 0 3.5rem; font-size: clamp(1.8rem, min(max(2.4rem, 6.5vw), 12vw - .5rem), 4.5rem); line-height: 1.05; letter-spacing: -.03em; }
h2 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--grau); }

/* Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 5rem; }
.kacheln a { display: flex; flex-direction: column; min-height: 12rem; padding: 1.5rem; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); text-decoration: none; transition: transform .2s, border-color .2s; }
.kacheln a:hover { transform: translateY(-3px); border-color: var(--text); }
.kacheln strong { display: flex; justify-content: space-between; margin-top: auto; font-size: 1.4rem; letter-spacing: -.01em; }
.nr { font-size: .85rem; color: var(--grau); font-variant-numeric: tabular-nums; }
.pfeil { transition: transform .2s; }
.kacheln a:hover .pfeil { transform: translateX(3px); }
.kacheln .betont { background: var(--band); border-color: var(--band); color: var(--auf-band); }
.kacheln .betont .nr { color: inherit; opacity: .7; }
.kacheln .betont:hover { border-color: var(--band); }

/* Abschnitte: Titel links, Inhalt rechts */
.block { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding: 4.5rem 0; border-top: 1px solid var(--linie); }
.gross { margin: 0 0 1.5rem; font-size: 1.6rem; line-height: 1.3; letter-spacing: -.015em; }
.liste { margin: 0; padding: 0; list-style: none; }
.liste li { padding: .75rem 0; border-top: 1px solid var(--linie); color: var(--grau); }

.links { margin: 0; padding: 0; list-style: none; }
.links a { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--linie); font-size: 1.4rem; text-decoration: none; }
.links a:hover { color: var(--band); }

/* Anfrage als grünes Band über die volle Breite */
#anfrage { border: 0; color: var(--auf-band); background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
#anfrage h2, #anfrage label, #anfrage .fussnote { color: color-mix(in srgb, var(--auf-band) 70%, transparent); }
#anfrage button, #anfrage .hinweis { background: var(--knopf); color: var(--text); }
#anfrage button:hover { background: var(--text); color: var(--bg); }

/* Formular */
form { display: grid; gap: 1rem; }
.zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .35rem; font-size: .9rem; color: var(--grau); }
input, textarea { font: inherit; font-size: 1rem; color: var(--text); padding: .75rem 1rem; border: 1px solid var(--linie); border-radius: 8px; background: var(--eingabe); }
textarea { resize: none; }
input:focus, textarea:focus { outline: 2px solid var(--band); outline-offset: -1px; }
button { justify-self: start; font: inherit; font-weight: 600; padding: .75rem 1.75rem; border: 0; border-radius: 8px; background: var(--band); color: var(--auf-band); cursor: pointer; }
button:hover { background: var(--text); color: var(--bg); }
.fussnote { margin: 0; font-size: .9rem; }
.honig { position: absolute; left: -9999px; }

.hinweis { display: none; padding: 1rem 1.25rem; border-radius: 8px; background: var(--band); color: var(--auf-band); }
.hinweis:target { display: block; }

footer { display: flex; justify-content: space-between; padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--linie); font-size: .9rem; color: var(--grau); }


@media (max-width: 45rem) {
	.kacheln, .block, .zeile { grid-template-columns: 1fr; }
	.kacheln a { min-height: 8rem; }
	.block { gap: 1rem; padding: 3rem 0; }
	h1 { margin-top: 3rem; }
	/* Footer zweizeilig: Copyright links, Links rechts untereinander */
	footer > * { display: flex; flex-direction: column; }
	footer > :last-child { align-items: flex-end; }
	.trenner { display: none; }
}

/* Unter der Mindestgröße passt das Wort nicht mehr und wird getrennt */
@media (max-width: 17.5rem) {
	h1 { hyphens: auto; }
}
