/* Alan & Julia Carter – ruhig und hell wie die bisherige Seite: Grün, Gelb, viel Weißraum. Mobile First. */

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans.woff2") format("woff2");
	font-weight: 100 1000;
	font-display: swap;
}
@font-face {
	font-family: "Forum";
	src: url("../fonts/forum.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

:root {
	--gruen: #536942;
	--gruen-dunkel: #45583a;
	--grau-hero: #4b4f55;
	--gelb: #ffd936;
	--gelb-dunkel: #dab200;
	--hell: #f6f8f5;
	--text: #4f5a46;
	--gedimmt: #6f7a66;
	--linie: #dfe5da;
	--schrift: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--schrift-zitat: "Forum", Georgia, serif;
	--inner: 1120px;
	--rand: 1.25rem;
}

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

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

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font: 400 1rem/1.7 var(--schrift);
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gruen); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--gelb-dunkel); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .6rem 1rem; background: var(--gelb); color: var(--gruen-dunkel); }
.skip:focus { top: 1rem; }

.inner { max-width: var(--inner); margin: 0 auto; padding: 0 var(--rand); }
.inner--schmal { max-width: 860px; }

/* ---------- Kopf und Menü ---------- */

.kopf {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .75rem var(--rand);
}
.kopf__name { color: #fff; text-decoration: none; font-size: 1rem; letter-spacing: .02em; }

.nav { position: relative; }
.nav__toggle {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	background: none;
	color: #fff;
	cursor: pointer;
}
.nav__toggle svg { width: 1.3rem; height: 1.3rem; }
.nav__liste {
	position: absolute;
	right: 0;
	top: calc(100% + .5rem);
	display: none;
	min-width: 15rem;
	margin: 0;
	padding: .5rem;
	list-style: none;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.nav.is-open .nav__liste { display: block; }
.nav__liste a { display: block; padding: .6rem .8rem; color: var(--text); text-decoration: none; font-size: .95rem; }
.nav__liste a:hover, .nav__liste a[aria-current="page"] { color: var(--gelb-dunkel); }

/* ---------- Kopfbereich mit Titel ---------- */

.hero {
	display: flex;
	align-items: center;
	min-height: 15rem;
	padding: 5.5rem 0 3rem;
	background: var(--gruen-dunkel);
	color: #fff;
	text-align: center;
}
.farbe-grau .hero { background: var(--grau-hero); }
.hero .inner { width: 100%; }
.hero__titel { font-size: clamp(2.1rem, 8vw, 3.4rem); line-height: 1.15; }
.hero--home { min-height: 22rem; }
.hero--home .hero__titel { font-size: clamp(2.6rem, 11vw, 6rem); line-height: 1.1; }
.hero--klein .hero__titel { font-size: clamp(1.8rem, 7vw, 2.8rem); }

/* ---------- Abschnitte und Text ---------- */

.abschnitt { padding: 3rem 0; }
.abschnitt--hell { background: var(--hell); }
.titel { margin-bottom: 1.25rem; color: var(--gruen); font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.25; }
.titel--gross { font-size: clamp(2rem, 7vw, 2.8rem); text-transform: uppercase; }
.titel--zitat { font-family: var(--schrift-zitat); }
.sammlung .titel, .kontakt-hinweis { text-align: center; }
.text { color: var(--gedimmt); }
.text a { color: var(--gelb-dunkel); }
.text ul { padding-left: 1.2rem; }

.aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.button {
	display: inline-block;
	padding: .8rem 1.6rem;
	border: 0;
	background: var(--gelb);
	color: var(--gruen-dunkel);
	font: inherit;
	font-size: .9rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s;
}
.button:hover { background: var(--gelb-dunkel); }

/* ---------- Galerie ---------- */

.kategorie { padding: 1.5rem 0; }
.kategorie__text { margin-top: -.5rem; color: var(--gedimmt); }
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; align-items: start; }
.galerie__bild { display: block; overflow: hidden; background: var(--hell); }
.galerie__bild img { width: 100%; transition: transform .4s, opacity .2s; }
.galerie__bild:hover img { transform: scale(1.03); }

.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
.lightbox::backdrop { background: rgba(20, 24, 18, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figur { margin: 0; display: grid; justify-items: center; gap: .75rem; }
.lightbox__bild { max-width: 94vw; max-height: calc(100dvh - 7rem); width: auto; object-fit: contain; }
.lightbox__nummer { color: #fff; font-size: 1.1rem; letter-spacing: .04em; }
.lightbox button {
	position: fixed;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	cursor: pointer;
}
.lightbox button svg { width: 1.3rem; height: 1.3rem; }
.lightbox button:hover { background: var(--gelb); border-color: var(--gelb); color: var(--gruen-dunkel); }
.lightbox__zu { top: 1rem; right: 1rem; }
.lightbox__zurueck { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox__weiter { right: .75rem; top: 50%; transform: translateY(-50%); }

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

.kontakt__raster { display: grid; gap: 2.5rem; }
.kontakt__intro { margin: 0; color: var(--gruen); font-family: var(--schrift-zitat); font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.35; }
.kontakt__form { display: grid; gap: 1.1rem; }
.feld { display: grid; gap: .35rem; font-size: .9rem; color: var(--gedimmt); }
.pflicht { color: var(--gelb-dunkel); }
.kontakt__form input, .kontakt__form textarea {
	width: 100%;
	padding: .7rem .2rem;
	border: 0;
	border-bottom: 1px solid var(--linie);
	background: transparent;
	color: var(--text);
	font: inherit;
}
.kontakt__form input:focus, .kontakt__form textarea:focus { outline: none; border-bottom-color: var(--gruen); }
.kontakt__form textarea { resize: vertical; min-height: 8rem; }
.kontakt__form .button { justify-self: start; }
.kontakt__datenschutz { margin: 0; font-size: .8rem; color: var(--gedimmt); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hinweis { display: none; margin-bottom: 1rem; padding: .8rem 1rem; font-size: .95rem; }
.hinweis:target { display: block; }
.hinweis--ok { background: #eef5e6; border-left: 3px solid var(--gruen); }
.hinweis--fehler { background: #fdf1e1; border-left: 3px solid var(--gelb-dunkel); }

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

.rechtliches { overflow-wrap: break-word; hyphens: auto; }
.rechtliches h2 { margin: 2.5rem 0 1rem; color: var(--gruen); font-size: 1.8rem; }
.rechtliches h3 { margin: 2rem 0 .75rem; color: var(--gruen); font-size: 1.3rem; }
.rechtliches__version { margin-top: 3rem; font-size: .85rem; color: var(--gedimmt); }

/* ---------- Fuß ---------- */

.fuss { padding: 2rem 0; border-top: 1px solid var(--linie); font-size: .9rem; }
.fuss__inner { display: grid; gap: 1rem; }
.fuss__nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.fuss__nav a { color: var(--gruen); text-decoration: none; }
.fuss__nav a:hover { color: var(--gelb-dunkel); }
.fuss__copy { margin: 0; color: var(--gedimmt); }

/* ---------- Ab 600px ---------- */

@media (min-width: 600px) {
	:root { --rand: 2rem; }
	.galerie { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* ---------- Ab 900px ---------- */

@media (min-width: 900px) {
	.abschnitt { padding: 4.5rem 0; }
	.hero { min-height: 20rem; }
	.hero--home { min-height: 28rem; }
	.kontakt__raster { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
	.fuss__inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Desktop ab 1025px: Menü als Zeile, Galerie fünfspaltig ---------- */

@media (min-width: 1025px) {
	.kopf { padding: 1rem 2.5rem; }
	.nav__toggle { display: none; }
	.nav__liste { position: static; display: flex; gap: .25rem; min-width: 0; padding: 0; background: none; box-shadow: none; }
	.nav__liste a { color: #fff; padding: .4rem .7rem; }
	.nav__liste a:hover, .nav__liste a[aria-current="page"] { color: var(--gelb); }
	.galerie { grid-template-columns: repeat(5, 1fr); }
}

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