/*
	Theme Bildhauer Juen.
	Werte nach der alten WordPress-Seite (Avada), gemessen am 26.11.2026:
	Seitenleiste 265px weiß, Raleway, Fließtext 14px/27px #4c4c4c, Menü 15px,
	Orange #e9a825 (Menü, Titelleiste 120px), Band #dd9933, Galerie-Reihen
	480px mit 3px Abstand, Kacheln 309x232, Slider 1135x586.
*/

@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('schriften/raleway-normal-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('schriften/raleway-normal-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Raleway';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('schriften/raleway-italic-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Raleway';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('schriften/raleway-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--text: #4c4c4c;
	--dunkel: #000000;
	--orange: #e9a825;
	--orange-band: #dd9933;
	--linie: #eaeaea;
	--leiste: 265px;
	--rand: 30px;
	--schrift: 'Raleway', Arial, Helvetica, sans-serif;
	/* Holz unter dem orangen Kontakt-Band, wie bisher (wood-1146640_1920.jpg) */
	--band-bild: url('/shared/kontaktband.jpg');

	/* Basis-Modul: Einwilligungsbanner im Orange der Seite */
	--cookie-main-color: #e9a825;
	--cookie-main-color-text: #ffffff;
	--cookie-main-second-color: #f3f1ed;
	--cookie-text-color: #393939;
	--cookie-bgimage: url('/shared/logo-quer.jpg');
	--cookie-font: 'Raleway', Arial, Helvetica, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #ffffff;
	color: var(--text);
	font-family: var(--schrift);
	font-size: 14px;
	line-height: 27px;
}

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

a {
	color: var(--dunkel);
}

/* ---------------------------------------------------------------- Seitenleiste */

.leiste {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	width: var(--leiste);
	overflow-y: auto;
	background: #ffffff;
	box-shadow: 1px 0 0 var(--linie);
}

.leiste__logo {
	display: block;
	padding: 0 40px;
}

.leiste__logo-hoch {
	width: 185px;
	margin: 0 auto;
}

.leiste__logo-quer,
.leiste__knopf {
	display: none;
}

.menue {
	display: flex;
	flex-direction: column;
	margin-top: 20px;
	border-top: 1px solid var(--linie);
}

.menue__link {
	display: block;
	padding: 5px 30px;
	border-bottom: 1px solid var(--linie);
	color: var(--text);
	font-size: 15px;
	line-height: 30px;
	text-decoration: none;
	transition: color 0.15s;
}

.menue__link:hover,
.menue__link--aktiv {
	color: var(--orange);
}

.menue__link--aktiv {
	box-shadow: inset -3px 0 0 var(--orange);
}

.leiste__siegel {
	width: 150px;
	margin: 40px auto 30px;
}

/* ---------------------------------------------------------------- Inhalt */

.seite {
	margin-left: var(--leiste);
}

.titelleiste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 30px;
	min-height: 120px;
	padding: 20px var(--rand);
	background: var(--orange);
	color: #ffffff;
}

.titelleiste__titel {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
}

.titelleiste__pfad {
	font-size: 13px;
}

.titelleiste__pfad a {
	color: #ffffff;
	text-decoration: none;
}

.titelleiste__pfad a:hover {
	text-decoration: underline;
}

.titelleiste__pfad span[aria-hidden] {
	margin: 0 6px;
}

.inhalt {
	max-width: 1135px;
	padding: 55px var(--rand) 40px;
}

/* Automad-Blöcke: Breite und Abstände über seine Variablen (siehe AUTOMAD-STANDARD.md) */
.text {
	--am-block-max-width: 100%;
	--am-block-margin-top: 0;
	--am-flex-min-block-width: 260px;
	--am-flex-gap: 40px;
	margin-bottom: 40px;
}

.text p {
	margin-block: 0;
}

.text h1,
.text h2 {
	margin: 0 0 20px;
	color: var(--dunkel);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.3;
}

.text h3 {
	margin: 0 0 10px;
	color: var(--dunkel);
	font-size: 21px;
	font-weight: 400;
}

.text--mitte {
	text-align: center;
}

.ueberschrift {
	margin: 0 0 30px;
	color: var(--dunkel);
	font-size: 21px;
	font-weight: 400;
	text-align: center;
}

/* Drei Kästen der Startseite: Spalten im Editor, Symbol im orangen Kreis */
.text--kaesten am-flex > * {
	text-align: center;
}

.text--kaesten am-flex > *::before {
	content: '';
	display: block;
	width: 42px;
	height: 42px;
	margin: 0 auto 12px;
	background: var(--symbol) center / contain no-repeat;
}

/* Stern, Schlüssel, Brief im orangen Kreis wie auf der alten Seite (dort FontAwesome).
   Farbe steht im SVG (%23e9a825 = #e9a825), weil Hintergrundbilder keine CSS-Farben erben. */
.text--kaesten am-flex > :nth-child(1) { --symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42' fill='none' stroke='%23e9a825' stroke-width='1.5' stroke-linejoin='round'%3E%3Ccircle cx='21' cy='21' r='20'/%3E%3Cpath d='M21 11.5l2.9 5.9 6.5 1-4.7 4.5 1.1 6.4L21 26.3l-5.8 3 1.1-6.4-4.7-4.5 6.5-1z'/%3E%3C/svg%3E"); }
.text--kaesten am-flex > :nth-child(2) { --symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42' fill='none' stroke='%23e9a825' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='21' cy='21' r='20'/%3E%3Ccircle cx='16' cy='21' r='4.5'/%3E%3Cpath d='M20.5 21H31M28 21v3.5M31 21v2.5'/%3E%3C/svg%3E"); }
.text--kaesten am-flex > :nth-child(3) { --symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42' fill='none' stroke='%23e9a825' stroke-width='1.5' stroke-linejoin='round'%3E%3Ccircle cx='21' cy='21' r='20'/%3E%3Crect x='11.5' y='14.5' width='19' height='13' rx='1.5'/%3E%3Cpath d='M12 15.5l9 7 9-7'/%3E%3C/svg%3E"); }

.text--kaesten h3 {
	margin-bottom: 6px;
	color: #747474;
	font-size: 16px;
}

/* Oranges Band unter dem Slider */
.band {
	margin: 0;
	padding: 20px var(--rand);
	background: var(--orange-band);
	color: var(--text);
	font-style: italic;
	text-align: center;
}

/* ---------------------------------------------------------------- Kacheln */

.kacheln {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.bereiche {
	margin-top: 20px;
}

.kachel {
	display: block;
	color: var(--dunkel);
	text-decoration: none;
}

.kachel__titel {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
	font-size: 15px;
	text-align: center;
}

/* Gepunktete Linien links und rechts vom Titel */
.kachel__titel::before,
.kachel__titel::after {
	content: '';
	flex: 1;
	border-top: 1px dotted #cccccc;
}

.kachel__bild {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: opacity 0.2s;
}

.kachel__bild--leer {
	display: block;
	background: #f3f1ed;
}

.kachel:hover .kachel__bild {
	opacity: 0.85;
}

.querverweise {
	display: flex;
	flex-wrap: wrap;
	gap: 0 12px;
	margin: 0 0 40px;
	padding: 6px 0;
	border-top: 1px solid #3f3f3f;
	border-bottom: 1px solid #3f3f3f;
}

.querverweise a {
	color: var(--dunkel);
	text-decoration: none;
}

.querverweise a:hover,
.querverweise .querverweise--aktiv {
	color: var(--orange);
}

/* ---------------------------------------------------------------- Arbeit und Galerie */

.zurueck {
	display: inline-block;
	margin-bottom: 20px;
	padding: 4px 16px;
	border-radius: 3px;
	background: #eeeeee;
	color: var(--text);
	font-size: 13px;
	text-decoration: none;
}

.zurueck:hover {
	background: var(--orange);
	color: #ffffff;
}

.arbeit__titel {
	margin: 0 0 15px;
	color: var(--dunkel);
	font-size: 21px;
	font-weight: 400;
}

/*
	Bündiges Raster nur mit CSS: Jedes Bild wächst im Verhältnis Breite zu
	Höhe (--seite, aus funktionen.php). Dadurch füllt jede Reihe die Breite,
	alle Bilder einer Reihe sind gleich hoch. Das unsichtbare ::after nimmt in
	der letzten Reihe den Rest auf, damit die letzten Bilder nicht riesig werden.
*/
.galerie {
	--reihe: 480px;
	--abstand: 3px;
	display: flex;
	flex-wrap: wrap;
	gap: var(--abstand);
	margin-top: 30px;
}

.galerie::after {
	content: '';
	flex-grow: 999999;
}

.galerie__bild {
	position: relative;
	display: block;
	flex-grow: calc(var(--seite) * 100);
	flex-basis: calc(var(--seite) * var(--reihe) * 0.75);
	height: var(--reihe);
	overflow: hidden;
	background: #f3f1ed;
	cursor: zoom-in;
}

.galerie__bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, opacity 0.2s;
}

.galerie__bild:hover img {
	transform: scale(1.03);
}

/* ---------------------------------------------------------------- Vollbild-Ansicht */

.ansicht {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	grid-template-rows: 1fr auto auto;
	background: rgba(0, 0, 0, 0.92);
	color: #ffffff;
	opacity: 0;
	transition: opacity 0.3s;
}

.ansicht--offen {
	opacity: 1;
}

.ansicht[hidden] {
	display: none;
}

.ansicht__buehne {
	position: relative;
	overflow: hidden;
	touch-action: pan-y;
}

.ansicht__bild {
	position: absolute;
	inset: 20px 70px;
	width: calc(100% - 140px);
	height: calc(100% - 40px);
	object-fit: contain;
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s;
}

/* Gleiten beim Blättern: das neue Bild kommt aus der Richtung, das alte geht in die andere */
.ansicht__bild--von-rechts { transform: translateX(60%); opacity: 0; }
.ansicht__bild--von-links { transform: translateX(-60%); opacity: 0; }
.ansicht__bild--nach-links { transform: translateX(-60%); opacity: 0; }
.ansicht__bild--nach-rechts { transform: translateX(60%); opacity: 0; }

.ansicht__knopf {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s;
}

.ansicht__knopf:hover,
.ansicht__knopf:focus-visible {
	background: rgba(255, 255, 255, 0.28);
	outline: none;
}

.ansicht__knopf--zurueck { top: 50%; left: 12px; transform: translateY(-50%); }
.ansicht__knopf--weiter { top: 50%; right: 12px; transform: translateY(-50%); }
.ansicht__knopf--schliessen { top: 12px; right: 12px; }
.ansicht__knopf--schau { top: 12px; left: 12px; font-size: 16px; }

.ansicht__fortschritt {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	width: 0;
	height: 3px;
	background: var(--orange);
}

.ansicht__zeile {
	padding: 6px 0 8px;
	font-size: 13px;
	text-align: center;
	opacity: 0.8;
}

.ansicht__leiste {
	display: flex;
	gap: 4px;
	padding: 0 10px 12px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.ansicht__mini {
	flex: 0 0 auto;
	width: 80px;
	height: 60px;
	padding: 0;
	border: 2px solid transparent;
	background: none;
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.2s, border-color 0.2s;
}

.ansicht__mini img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ansicht__mini:hover {
	opacity: 0.85;
}

.ansicht__mini--aktiv {
	border-color: var(--orange);
	opacity: 1;
}

body.ansicht-offen {
	overflow: hidden;
}

/* ---------------------------------------------------------------- Startseiten-Slider */

.slider {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1135 / 586;
	max-height: 80vh;
	background: #222222;
}

.slider__bild {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	opacity: 0;
}

.slider__bild--aktiv {
	opacity: 1;
}

/* Kachel-Übergang: slider.js legt ein Raster aus Kacheln mit dem neuen Bild darüber */
.slider__kacheln {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	pointer-events: none;
}

.slider__kachel {
	background-repeat: no-repeat;
	transform: scale(0);
	opacity: 0;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s;
}

.slider__kachel--da {
	transform: scale(1);
	opacity: 1;
}

.slider__pfeil {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s;
}

.slider__pfeil::before {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 10px;
	height: 10px;
	border-top: 2px solid #ffffff;
	border-right: 2px solid #ffffff;
}

.slider__pfeil--zurueck { left: 15px; }
.slider__pfeil--zurueck::before { transform: translateX(2px) rotate(-135deg); }
.slider__pfeil--weiter { right: 15px; }
.slider__pfeil--weiter::before { transform: translateX(-2px) rotate(45deg); }

.slider__pfeil:hover {
	background: var(--orange);
}

/* ---------------------------------------------------------------- Kontakt-Band und Fuß */

.kontaktband {
	padding: 65px var(--rand) 75px;
	background:
		/* Orange über Holz; 0.78 lässt die Maserung durch wie auf der alten Seite */
		linear-gradient(rgba(233, 168, 37, 0.78), rgba(233, 168, 37, 0.78)),
		var(--band-bild, none) center / cover;
	color: #ffffff;
	text-align: center;
}

.kontaktband__text {
	margin: 0 0 25px;
	font-size: 34px;
	line-height: 1.3;
}

.kontaktband__knopf {
	display: inline-block;
	padding: 13px 29px;
	border-radius: 2px;
	background: #ffffff;
	color: var(--dunkel);
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.kontaktband__knopf:hover {
	background: var(--dunkel);
	color: #ffffff;
}

.fuss {
	padding: 25px var(--rand) 20px;
	font-size: 14px;
}

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

.fuss a:hover {
	color: var(--orange);
}

.basis-cookie-link::before {
	content: '| ';
}

/* Angemeldet blendet Automad unten eine feste Leiste ein (siehe AUTOMAD-STANDARD.md) */
body:has(.am-inpage-dock) .fuss {
	padding-bottom: 130px;
}

/* ---------------------------------------------------------------- Kontaktformular
   Formular-Block von Automad: <am-mail class="am-form">, Knopf .am-button */

.text .am-form {
	display: block;
	max-width: 640px;
	/* .am-block zentriert mit margin: auto; das Formular steht linksbündig unter dem Text */
	margin-left: 0;
}

.text .am-form label {
	display: block;
	margin-top: 12px;
	font-size: 13px;
}

.text .am-form input,
.text .am-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d2d2d2;
	border-radius: 2px;
	background: #ffffff;
	color: var(--text);
	font: inherit;
}

.text .am-form input:focus,
.text .am-form textarea:focus {
	border-color: var(--orange);
	outline: none;
}

.text .am-form button,
.text .am-form [type='submit'] {
	margin-top: 16px;
	padding: 13px 29px;
	border: 0;
	border-radius: 2px;
	background: var(--orange);
	color: #ffffff;
	font: inherit;
	text-transform: uppercase;
	cursor: pointer;
}

.text .am-form button:hover,
.text .am-form [type='submit']:hover {
	background: var(--dunkel);
}

/* ---------------------------------------------------------------- Rechtstexte */

.rechtstext {
	max-width: 820px;
}

/* ---------------------------------------------------------------- Schmale Bildschirme */

@media (max-width: 1100px) {
	.galerie {
		--reihe: 320px;
	}

	.text h1,
	.text h2,
	.kontaktband__text {
		font-size: 28px;
	}
}

@media (max-width: 900px) {
	:root {
		--rand: 16px;
	}

	/* Seitenleiste wird zur Kopfzeile mit querformatigem Logo und Menüknopf */
	.leiste {
		position: sticky;
		bottom: auto;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		width: auto;
		overflow: visible;
		padding: 8px var(--rand);
		box-shadow: 0 1px 0 var(--linie);
	}

	.leiste__logo {
		padding: 0;
	}

	.leiste__logo-hoch,
	.leiste__siegel {
		display: none;
	}

	.leiste__logo-quer {
		display: block;
		width: auto;
		height: 48px;
	}

	.leiste__knopf {
		display: block;
		padding: 8px 14px;
		border: 1px solid var(--linie);
		border-radius: 3px;
		background: #ffffff;
		color: var(--text);
		font: inherit;
		cursor: pointer;
	}

	.menue {
		display: none;
		flex-basis: 100%;
		margin-top: 8px;
	}

	.leiste--offen .menue {
		display: flex;
	}

	.menue__link {
		padding: 5px 0;
	}

	.menue__link--aktiv {
		box-shadow: none;
	}

	.seite {
		margin-left: 0;
	}

	.titelleiste {
		min-height: 80px;
	}

	.inhalt {
		padding-top: 30px;
	}

	.slider {
		aspect-ratio: 4 / 3;
	}

	.galerie {
		--reihe: 200px;
	}

	.ansicht__bild {
		inset: 10px;
		width: calc(100% - 20px);
		height: calc(100% - 20px);
	}

	.ansicht__knopf--zurueck,
	.ansicht__knopf--weiter {
		top: auto;
		bottom: 8px;
		transform: none;
	}

	.text h1,
	.text h2,
	.kontaktband__text {
		font-size: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ansicht,
	.ansicht__bild,
	.slider__kachel,
	.galerie__bild img {
		transition: none;
	}
}
