:root {
	--fon:        #fef7de;
	--fon-svet:   #fffdf5;
	--fon-tjomn:  #f6ecce;
	--tekst:      #1a1a1a;
	--tekst-tihi: #4a4437;
	--ssylka:     #1a4b8c;
	--granica:    #e0d6b8;
	--derevo:     #6b4f2a;
	--derevo-tjo: #4a3619;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: Arial, Helvetica, Verdana, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--tekst);
	background: var(--fon);
	-webkit-text-size-adjust: 100%;
}

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

a { color: var(--ssylka); }
img { max-width: 100%; height: auto; }

.kopf { background: var(--fon-svet); }

.kopf__zeile {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-block: 30px 24px;
	flex-wrap: wrap;
}

.kopf__marke-link { flex: 0 0 auto; display: block; line-height: 0; }
.kopf__marke-link:focus-visible { outline: 2px solid var(--derevo); outline-offset: 4px; }
.kopf__marke { width: 140px; }

.kopf__name { flex: 0 1 auto; min-width: 0; }

.kopf__titel {
	margin: 0 0 6px;
	font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.15rem);
	line-height: 1.1;
	font-weight: bold;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.kopf__titel a { color: inherit; text-decoration: none; }
.kopf__titel a:hover { color: var(--derevo); }

.kopf__meister {
	margin: 0 0 8px;
	font-size: 0.85rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--derevo);
}

.kopf__gewerk {
	margin: 0;
	font-size: 0.97rem;
	color: var(--tekst-tihi);
}

.kopf__zunft { flex: 0 0 auto; width: 150px; opacity: .9; }

.menu {
	background: var(--fon-svet);
	border-bottom: 2px solid var(--derevo);
}

.menu__zeile { display: flex; flex-wrap: wrap; gap: 2px 32px; }

.menu__zeile a {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 4px 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--tekst);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color .18s ease, border-color .18s ease;
}

.menu__zeile a:hover { color: var(--derevo); border-bottom-color: var(--granica); }
.menu__zeile a[aria-current="page"] { color: var(--derevo); border-bottom-color: var(--derevo); }
.menu__zeile a:focus-visible { outline: 2px solid var(--derevo); outline-offset: 2px; }

.einstieg {
	background: var(--fon-svet);
	border-bottom: 1px solid var(--granica);
}

.einstieg__zeile {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 44px;
	align-items: center;
	padding-block: 46px;
}

.einstieg__text p { margin: 0 0 16px; }
.einstieg__text p:last-child { margin-bottom: 0; }

.einstieg__haupt {
	font-size: clamp(1.1rem, 1rem + 0.55vw, 1.32rem);
	line-height: 1.5;
	font-weight: 600;
	color: var(--derevo-tjo);
}

.einstieg__foto { margin: 0; }

.einstieg__foto img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border: 1px solid var(--granica);
}

.band { padding-block: 48px; }
.band--dunkel { background: var(--fon-tjomn); }

.titel {
	margin: 0 0 24px;
	font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
	font-weight: bold;
	letter-spacing: -0.01em;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--derevo);
}

.band p { margin: 0 0 14px; }

.leistungen {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 0 32px;
}

.leistungen li {
	padding: 11px 0 11px 24px;
	border-bottom: 1px solid var(--granica);
	position: relative;
}

.leistungen li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 1.15em;
	width: 7px;
	height: 7px;
	border: 1.5px solid var(--derevo);
	transform: rotate(45deg);
}

.objekte {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 28px;
}

.objekt { margin: 0; display: flex; flex-direction: column; }

.objekt img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid var(--granica);
	background: #fff;
}

.objekt figcaption {
	margin-top: 11px;
	font-size: 0.93rem;
	line-height: 1.5;
}

.hinweis { color: var(--tekst-tihi); font-size: 0.88rem; }
.hinweis--zeile { margin-top: 18px; }

.betrieb__zeile {
	display: flex;
	gap: 36px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.betrieb__text { flex: 1 1 340px; }

.betrieb__foto { flex: 0 0 auto; margin: 0; max-width: 200px; }

.betrieb__foto img {
	display: block;
	width: 100%;
	border: 1px solid var(--granica);
}

.betrieb__foto figcaption {
	margin-top: 9px;
	font-size: 0.87rem;
	color: var(--tekst-tihi);
}

.weiter { margin: 0; padding-top: 24px; font-size: 0.95rem; }

.weiter a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 26px;
	font-weight: 600;
	color: var(--derevo);
	text-decoration: none;
	border-bottom: 1px solid var(--granica);
	padding-bottom: 2px;
}

.weiter a::after { content: "\203A"; font-size: 1.2em; line-height: 1; margin-left: 2px; }
.weiter a:hover, .weiter a:focus-visible { border-bottom-color: var(--derevo); }

main > .abschnitt,
main.rahmen { padding-block: 40px 10px; }

.abschnitt { margin-bottom: 40px; max-width: 70ch; }

.abschnitt h1 {
	margin: 0 0 18px;
	font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
	font-weight: bold;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--derevo);
}

.abschnitt p { margin: 0 0 14px; }
.abschnitt:has(.objekte), .abschnitt:has(.leistungen) { max-width: none; }
.einleitung { font-size: 1.1rem; line-height: 1.6; }

.fuss {
	padding-block: 24px 30px;
	border-top: 2px solid var(--derevo);
	background: var(--fon-svet);
	font-size: 0.92rem;
	color: var(--tekst-tihi);
}

.fuss p { margin: 0 0 6px; }

@media (max-width: 860px) {
	.einstieg__zeile {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-block: 32px;
	}
	.einstieg__foto { order: -1; }
}

@media (max-width: 640px) {
	.kopf__zeile { gap: 18px; padding-block: 22px 16px; }
	.kopf__marke { width: 112px; }
	.kopf__zunft { display: none; }
	.menu__zeile { gap: 0 20px; }
	.band { padding-block: 34px; }
	.betrieb__foto { max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

.pfad {
	margin: 0 0 4px;
	font-size: 0.88rem;
	letter-spacing: 0.04em;
	color: var(--tekst-tihi);
}

.pfad a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--derevo);
	font-weight: 600;
	text-decoration: none;
}

.pfad a::before { content: "\2039"; margin-right: 6px; font-size: 1.2em; line-height: 1; }
.pfad a:hover, .pfad a:focus-visible { color: var(--derevo-tjo); text-decoration: underline; text-underline-offset: 4px; }

.beitrag h1 { line-height: 1.3; text-wrap: balance; }
.beitrag h1 + .stand { margin: -6px 0 22px; font-size: 0.88rem; color: var(--tekst-tihi); }

.beitrag h2 {
	margin: 40px 0 12px;
	font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.3rem);
	line-height: 1.35;
	color: var(--derevo-tjo);
}

.beitrag h3 {
	margin: 26px 0 8px;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.4;
}

.beitrag ul, .beitrag ol { margin: 0 0 16px; padding-left: 1.25em; }
.beitrag li { margin-bottom: 6px; padding-left: 2px; }
.beitrag li::marker { color: var(--derevo); }
.beitrag a { text-underline-offset: 3px; }

.tabelle-box {
	margin: 8px 0 24px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tabelle-box:focus-visible { outline: 2px solid var(--derevo); outline-offset: 3px; }

.tabelle {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
	line-height: 1.5;
}

.tabelle caption {
	caption-side: top;
	text-align: left;
	padding-bottom: 8px;
	font-weight: 600;
	color: var(--tekst);
}

.tabelle th, .tabelle td {
	text-align: left;
	vertical-align: top;
	padding: 9px 14px 9px 0;
	border-bottom: 1px solid var(--granica);
}

.tabelle thead th {
	font-weight: 700;
	border-bottom: 2px solid var(--derevo);
}

.tabelle td { font-variant-numeric: tabular-nums; }

.schema { margin: 10px 0 28px; }

.schema svg {
	display: block;
	width: 100%;
	height: auto;
	background: var(--fon-svet);
	border: 1px solid var(--granica);
}

.schema--mittel svg { max-width: 600px; }

.schema figcaption {
	margin-top: 10px;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--tekst-tihi);
}

.schema figcaption > p { margin: 0 0 6px; color: var(--tekst); font-weight: 600; }

.legende {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: poz;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 4px 24px;
}

.beitrag .legende { padding-left: 0; }
.beitrag .legende li { margin: 0; padding-left: 30px; position: relative; }

.legende li::before {
	counter-increment: poz;
	content: counter(poz);
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--derevo);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.foto { margin: 8px 0 28px; }

.foto img {
	display: block;
	width: 100%;
	max-width: 640px;
	border: 1px solid var(--granica);
	background: #fff;
}

.foto figcaption {
	margin-top: 9px;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--tekst-tihi);
}

.faq h3 { margin-top: 22px; }
.faq h3:first-child { margin-top: 4px; }
.faq p { margin: 0 0 12px; }

.beitrag .normen {
	list-style: none;
	padding: 0;
	font-size: 0.94rem;
	border-top: 1px solid var(--granica);
}

.beitrag .normen li {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid var(--granica);
}

.beitraege {
	list-style: none;
	margin: 6px 0 30px;
	padding: 0;
	border-top: 2px solid var(--derevo);
}

.beitrag .beitraege { padding-left: 0; }

.beitraege li {
	margin: 0;
	padding: 12px 0 14px;
	border-bottom: 1px solid var(--granica);
}

.beitraege__titel {
	display: inline-block;
	padding-block: 10px;
	font-weight: 700;
	font-size: 1.04rem;
	line-height: 1.4;
	color: var(--tekst);
	text-decoration: underline;
	text-decoration-color: var(--granica);
	text-underline-offset: 5px;
}

.beitraege__titel::after { content: "\00a0\203A"; color: var(--derevo); }
.beitraege__titel:hover, .beitraege__titel:focus-visible { color: var(--derevo); text-decoration-color: var(--derevo); }

.beitraege p { margin: 2px 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--tekst-tihi); }

.inhalt {
	margin: 0 0 34px;
	padding: 14px 20px 12px;
	background: var(--fon-svet);
	border-left: 3px solid var(--derevo);
}

.inhalt p { margin: 0 0 2px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tekst-tihi); }
.beitrag .inhalt ol { margin: 0; padding-left: 1.3em; columns: 2 260px; column-gap: 32px; }
.beitrag .inhalt li { margin: 0; padding: 0; break-inside: avoid; font-size: 0.95rem; line-height: 1.4; }
.inhalt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tekst); text-decoration: underline; text-decoration-color: var(--granica); text-underline-offset: 4px; }
.inhalt a:hover, .inhalt a:focus-visible { color: var(--derevo); text-decoration-color: var(--derevo); }
.beitrag h2[id] { scroll-margin-top: 16px; }

.leistungen li:has(> a) { padding-top: 0; padding-bottom: 0; }

.leistungen li > a {
	display: block;
	padding-block: 11px;
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--granica);
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
	transition: color .18s ease, text-decoration-color .18s ease;
}

.leistungen li > a::after { content: "\00a0\203A"; color: var(--derevo); }
.leistungen li > a:hover, .leistungen li > a:focus-visible { color: var(--derevo); text-decoration-color: var(--derevo); }

.mehr-lesen h2 { margin: 0 0 14px; font-size: 1.1rem; color: var(--derevo-tjo); }

@media (max-width: 640px) {
	.beitrag h2 { margin-top: 32px; }
	.tabelle { font-size: 0.9rem; }
	.inhalt { padding-inline: 14px; }
}

.mehr-lesen .weiter a { min-height: 44px; }

.abschnitt.beitrag { max-width: 60ch; }
