/**
 * Layout: containers, main area, page header, 404.
 * Breakpoints: 640px (tablet), 1024px (desktop), 1200px (full header menu), 1440px (wide).
 */

.container {
	width: min(100% - 2 * var(--gutter), var(--wide));
	margin-inline: auto;
}

.site-main {
	display: block;
	min-height: 60vh;
	/* Room for the fixed header; a hero slides underneath it instead. */
	padding-top: var(--header-h);
}

.has-hero .site-main {
	padding-top: 0;
}

.site-main:focus {
	outline: none;
}

/* ── Page header (pages without a hero) ─────────────────────── */

.page-header {
	padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem);
}

.page-header__title {
	max-width: 18ch;
	margin: 0;
	font-size: var(--fs-x-large);
	font-weight: 400;
}

.page-header__title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 1px;
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--c-wood);
}

/* ── Entry content ──────────────────────────────────────────── */

.entry-content {
	padding-bottom: var(--section);
}

.entry-content > :first-child {
	margin-top: 0;
}

/* A closing dark band (CTA / price) sits directly on the footer, without a paper gap. */
.entry-content:has(> .is-style-forest:last-child) {
	padding-bottom: 0;
}

/* A page that ends with a regular section (Kontakt) closes with one calm margin above
   the footer instead of section padding plus content padding stacked on each other. */
.entry-content:has(> .furra-section:last-child) {
	padding-bottom: 0;
}

.entry-content > .furra-section:last-child:not(.is-style-forest) {
	padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

/* ── 404 ────────────────────────────────────────────────────── */

.error-404 {
	max-width: 42rem;
	padding-block: clamp(4rem, 12vw, 9rem);
}

.error-404__title {
	font-size: var(--fs-x-large);
}
