/*
Theme Name:   Jagdschlössle (Wald)
Theme URI:    https://www.jagdschloessle.de/
Description:  Theme for jagdschloessle.de. The front page is one day at the house:
              morning mist to starry night, behind a spruce treeline. Grenze Gotisch
              (Omnibus-Type) for display, Vollkorn (F. Althausen) for reading; both
              self-hosted under the SIL OFL.
Author:       Aaron
Template:     twentytwentyfive
Version:      1.0.1
Requires at least: 6.7
Requires PHP: 8.0
Tested up to: 7.1
Text Domain:  jagdschloessle-wald
*/

:root {
	--tinte: var(--wp--preset--color--tinte);
	--nebel: var(--wp--preset--color--fruehnebel);
	--mittag: var(--wp--preset--color--mittag);
	--gold: var(--wp--preset--color--goldstunde);
	--rot: var(--wp--preset--color--abendrot);
	--blau: var(--wp--preset--color--blaue-stunde);
	--nacht: var(--wp--preset--color--nacht);
	--schnee: var(--wp--preset--color--schnee);
	--licht: var(--wp--preset--color--fensterlicht);
	--gotisch: var(--wp--preset--font-family--grenze);
	--luft: clamp(4rem, 11vw, 9rem);
}

.wp-site-blocks > * { margin-block: 0; }
/* declared here, not on :root: WordPress defines its root padding on body */
body { --rand: max(var(--wp--style--root--padding-left), (100% - var(--wp--style--global--wide-size)) / 2); }
.wp-site-blocks { position: relative; }
body { font-variant-numeric: oldstyle-nums; }
p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px;
}

/* ── Grain: old timber and paper, over everything, never in the way ─────── */
body::after {
	content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
	opacity: 0.16; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
}

/* ── The treeline: an SVG used as a mask, painted in the colour below it ── */
.jsw-wald {
	position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
	height: clamp(5rem, 13vw, 11rem);
	background: var(--wald-farbe, var(--nebel));
	-webkit-mask: var(--wald) bottom center / auto 100% repeat-x;
	mask: var(--wald) bottom center / auto 100% repeat-x;
	pointer-events: none;
}

/* ── Hills: the calm horizon under every top photo. Two soft ridges, the far
   one translucent, painted in the colour of whatever comes below. ─────── */
.jsw-huegel {
	position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
	height: clamp(3.5rem, 8vw, 7rem);
	background: var(--huegel-farbe, var(--nebel));
	-webkit-mask: var(--h) bottom center / 100% 100% no-repeat;
	mask: var(--h) bottom center / 100% 100% no-repeat;
	pointer-events: none;
}
.jsw-huegel--hinten { height: clamp(5rem, 12vw, 10rem); opacity: 0.45; }
.jsw-held .jsw-huegel { --huegel-farbe: var(--tinte); }
body.jsw-nacht .jsw-kopfbild .jsw-huegel { --huegel-farbe: var(--blau); }

/* ── Header: floats over every page's photo ───────────────────────────── */
.jsw-kopf {
	position: absolute; top: 0; left: 0; right: 0; z-index: 20;
	padding-block: 1.1rem;
	color: var(--schnee);
	background: linear-gradient(rgb(14 20 16 / 0.55), transparent);
}
.jsw-kopf__zeile { gap: 1.5rem; }
.jsw-kopf .wp-block-site-title { margin: 0; white-space: nowrap; }
.jsw-kopf .wp-block-site-title a { color: inherit; text-decoration: none; }
.jsw-menue { gap: 0.2rem 1.5rem; text-shadow: 0 1px 8px rgb(0 0 0 / 0.5); }
.jsw-menue a { color: var(--schnee); text-decoration: none; }
.jsw-menue a:hover,
.jsw-menue .current-menu-item > a,
.jsw-menue .current-menu-ancestor > a {
	text-decoration: underline; text-decoration-color: var(--licht);
	text-decoration-thickness: 2px; text-underline-offset: 0.4em;
}
.jsw-menue > .wp-block-navigation-item:first-child { display: none; }
.jsw-kopf .jsw-menue > .wp-block-navigation-item:last-child > a {
	background: var(--licht); color: var(--nacht);
	padding: 0.4em 1em; border-radius: 999px; text-shadow: none;
	text-decoration: none; font-weight: 600;
	box-shadow: 0 0 1.5rem rgb(244 185 87 / 0.45);
}
.jsw-menue .wp-block-navigation__submenu-container {
	background: var(--nacht) !important; color: var(--schnee) !important;
	border: 0 !important; border-radius: 6px; padding: 0.5rem 0;
	min-width: 15rem !important; text-shadow: none;
	box-shadow: 0 1rem 2rem rgb(0 0 0 / 0.35);
}
.jsw-menue .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.45rem 1.1rem; }
.jsw-menue .wp-block-navigation__responsive-container-open { color: var(--schnee); }
.jsw-menue .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem clamp(1rem, 4vw, 2.5rem); }
.jsw-menue .is-menu-open .wp-block-navigation__container { gap: 0.9rem; font-family: var(--gotisch); font-size: 2rem; line-height: 1; }
.jsw-menue .is-menu-open .wp-block-navigation__submenu-container {
	font-family: var(--wp--preset--font-family--vollkorn); font-size: 1.125rem; box-shadow: none; padding: 0.6rem 0 0 0.25rem;
}
.jsw-menue .is-menu-open .wp-block-navigation-item:first-child { display: flex; }

/* ── Front page hero: morning in the clearing ─────────────────────────── */
.jsw-tag { padding-block: 0; }
html, body { overflow-x: clip; }
.jsw-held {
	position: relative; isolation: isolate;
	min-height: clamp(36rem, 100svh, 64rem);
	display: grid; align-content: end;
	color: var(--schnee); background: var(--tinte);
	overflow: hidden; margin-block: 0 !important;
}
.jsw-held__foto {
	position: absolute; inset: 0; z-index: -1;
	width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
	animation: jsw-morgen 3s cubic-bezier(.2,.7,.2,1) both;
}
.jsw-held::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to bottom, rgb(14 20 16 / 0.35), transparent 30%, transparent 62%, rgb(29 38 32 / 0.55) 100%);
}
.jsw-held__ort {
	position: absolute; top: clamp(6rem, 16svh, 9rem); left: var(--rand); margin: 0;
	font-style: italic; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.35;
	text-shadow: 0 1px 10px rgb(0 0 0 / 0.6);
}
/* The name stands in front of the hills. */
.jsw-held__name {
	position: relative; z-index: 3;
	margin: 0 0 clamp(2.5rem, 7vw, 6rem);
	padding-inline: var(--rand);
	font-size: clamp(4.5rem, 17vw, 15rem);
	font-weight: 700; line-height: 0.78; letter-spacing: -0.01em;
	color: var(--schnee);
	text-shadow: 0 0.04em 0.4em rgb(10 14 12 / 0.45);
	hyphens: manual;
	animation: jsw-auftauchen 1.8s 0.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes jsw-morgen { from { filter: brightness(0.55) saturate(0.6); transform: scale(1.06); } }
@keyframes jsw-auftauchen { from { opacity: 0; transform: translateY(0.35em); } }

/* ── The day: each section runs from its time into the next ──────────── */
.jsw-zeit {
	position: relative; isolation: isolate;
	padding-block: var(--luft);
	margin-block: 0 !important;
}
/* out of the dark forest floor, into the morning mist */
.jsw-morgens     { background: linear-gradient(var(--tinte), #3F4B40 3rem, #8E9A88 10rem, #C9D1C1 16rem, var(--nebel) 22rem, var(--mittag)); padding-top: calc(var(--luft) + 8rem); }
.jsw-mittags     { background: linear-gradient(var(--mittag), var(--gold)); }
.jsw-nachmittags { background: linear-gradient(var(--gold), var(--rot)); padding-bottom: calc(var(--luft) * 1.6); }
.jsw-abends {
	background: linear-gradient(var(--rot) 0, #C27A5A calc(2.5rem + var(--baum) * 0.6), #8E5A5A calc(2.5rem + var(--baum) - 2px), var(--blau) calc(2.5rem + var(--baum) - 2px));
	color: var(--schnee);
	padding-top: calc(2.5rem + var(--baum) + var(--luft) * 0.7);
}
.jsw-nachts {
	background: linear-gradient(var(--blau), var(--nacht) 40%);
	color: var(--schnee);
	padding-top: calc(var(--luft) * 0.6);
}
/* sunset: the forest stands dark against the sky at the top of the evening,
   and its ground is the evening's own colour */
.jsw-abends { --baum: clamp(9rem, 18vw, 15rem); }
.jsw-abends::before {
	content: ""; position: absolute; left: 0; right: 0; top: 2.5rem; z-index: 0;
	height: var(--baum); background: var(--blau);
	-webkit-mask: url("assets/img/wald-b.svg") bottom center / auto 100% repeat-x;
	mask: url("assets/img/wald-b.svg") bottom center / auto 100% repeat-x;
	pointer-events: none;
}


.jsw-zeit__raster {
	display: grid; gap: clamp(2.5rem, 6vw, 5rem);
	max-width: var(--wp--style--global--wide-size); margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left);
	box-sizing: content-box;
	position: relative; z-index: 3;
}
@media (min-width: 60rem) {
	.jsw-zeit__raster { grid-template-columns: 5fr 7fr; align-items: center; }
	.jsw-zeit__raster--gespiegelt { grid-template-columns: 7fr 5fr; }
	.jsw-zeit__raster--gespiegelt > .jsw-zeit__text { order: 2; }
}
.jsw-zeit__text { max-width: 34rem; }
.jsw-zeit h2 {
	margin: 0 0 0.6rem;
	font-size: clamp(3.75rem, 9vw, 7.5rem); font-weight: 600; line-height: 0.85;
}
.jsw-zeit .jsw-unterzeile {
	margin: 0 0 1.5rem;
	font-size: clamp(1.25rem, 2vw, 1.5rem); font-style: italic; font-weight: 400;
	line-height: 1.2; letter-spacing: 0;
}
.jsw-gross { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.35; }
.jsw-zeit a { color: inherit; }
/* …but the button keeps its own dark text on amber */
.jsw-zeit a.wp-block-button__link { color: var(--nacht); text-decoration: none; }
/* the page content starts right under the hero, no block gap (it showed as a light seam) */
.jsw-tag > .jsw-tag__inhalt { margin-block-start: 0; }
.jsw-abends a, .jsw-nachts a { text-decoration-color: var(--licht); }

/* ── Collages: photos laid on top of each other, not into a grid ──────── */
.jsw-collage { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); }
.jsw-collage .wp-block-image { margin: 0; }
.jsw-collage img { display: block; width: 100%; height: auto; border-radius: 3px;
	box-shadow: 0 1.25rem 2.5rem -1rem rgb(29 38 32 / 0.45); }
.jsw-collage .jsw-collage__gross { grid-column: 1 / 11; grid-row: 1; }
.jsw-collage .jsw-collage__klein { grid-column: 7 / 13; grid-row: 1; align-self: end; margin-bottom: -18%; outline: 6px solid var(--schnee); outline-offset: -1px; }
.jsw-collage--a .jsw-collage__klein { transform: rotate(2deg); }
.jsw-collage--b .jsw-collage__gross { grid-column: 3 / 13; }
.jsw-collage .jsw-collage__hoch { grid-column: 1 / 5; grid-row: 1; align-self: end; margin-bottom: -22%; transform: rotate(-2.5deg);
	outline: 6px solid var(--schnee); outline-offset: -1px; position: relative; z-index: 1; }
.jsw-collage--c .jsw-collage__gross { grid-column: 1 / 13; transform: rotate(-1.2deg); }
.jsw-collage--d .jsw-collage__gross { grid-column: 2 / 13; }
.jsw-collage--d .jsw-collage__klein { grid-column: 1 / 7; margin-bottom: -16%; outline-color: var(--blau); transform: rotate(-2deg); }
.jsw-collage .jsw-collage__dritt { grid-column: 8 / 13; grid-row: 1; align-self: start; margin-top: -14%; transform: rotate(2.5deg);
	outline: 6px solid var(--blau); outline-offset: -1px; }
.jsw-abends .jsw-collage img, .jsw-nachts img { box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / 0.6); }

/* ── Morning fog: two slow banks drifting across ──────────────────────── */
.jsw-morgens { overflow-x: clip; }
.jsw-morgens::before, .jsw-morgens::after {
	content: ""; position: absolute; width: 140%; height: 22rem; left: -20%;
	background: radial-gradient(50% 50% at 50% 50%, rgb(255 255 255 / 0.7), transparent 70%);
	filter: blur(10px); z-index: 1; pointer-events: none;
	animation: jsw-nebel 48s ease-in-out infinite alternate;
}
.jsw-morgens::before { top: 9rem; }
.jsw-morgens::after { top: 45%; height: 16rem; opacity: 0.6; animation-duration: 64s; animation-direction: alternate-reverse; }
@keyframes jsw-nebel { from { transform: translateX(-12%); } to { transform: translateX(12%); } }

/* ── Night: stars, the lit house, the booking ─────────────────────────── */
.jsw-nachts::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background-image:
		radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 27% 8%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 41% 26%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 73% 21%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 86% 6%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 93% 30%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 5% 38%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 35% 44%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 66% 40%, #fff 50%, transparent 51%);
	background-size: 520px 420px; opacity: 0.6; }
.jsw-nachts .jsw-nachtbild {
	position: relative; z-index: 3;
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto clamp(3rem, 8vw, 6rem);
	padding-inline: var(--wp--style--root--padding-left);
}
.jsw-nachtbild img { display: block; width: 100%; height: auto; border-radius: 3px;
	box-shadow: 0 0 6rem rgb(244 185 87 / 0.18), 0 2rem 4rem -1rem rgb(0 0 0 / 0.7); }
.jsw-buchen {
	align-self: start;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid rgb(244 185 87 / 0.45); border-radius: 6px;
	background: rgb(20 27 45 / 0.6);
}
.jsw-buchen h3 { margin-top: 0; font-family: var(--gotisch); font-weight: 600; font-size: clamp(2.25rem, 4vw, 3rem); line-height: 0.95; }
.jsw-fakten { margin: 0 0 1.75rem; font-size: 1.0625rem; }
.jsw-fakten table { width: 100%; border-collapse: collapse; }
.jsw-fakten td { border: 0; border-top: 1px solid rgb(243 241 234 / 0.2); padding: 0.6rem 0; vertical-align: top; }
.jsw-fakten td:first-child { width: 9.5rem; padding-right: 1rem; font-style: italic; opacity: 0.8; }
.jsw-buchen .wp-block-button__link { box-shadow: 0 0 2.5rem rgb(244 185 87 / 0.5); }
.jsw-buchen .wp-block-button__link:hover { box-shadow: 0 0 3.5rem rgb(244 185 87 / 0.8); }
.jsw-knopf {
	display: inline-block; padding: 0.85em 1.5em; border-radius: 999px;
	background: var(--licht); color: var(--nacht) !important; text-decoration: none !important;
	font-weight: 600; font-size: 1.125rem; line-height: 1.2;
	box-shadow: 0 0 2.5rem rgb(244 185 87 / 0.5);
	transition: box-shadow .3s, transform .3s;
}
.jsw-knopf:hover { box-shadow: 0 0 3.5rem rgb(244 185 87 / 0.8); transform: translateY(-1px); }

/* ── Inner pages: banner photo behind the forest, then mist ───────────── */
.jsw-seite { padding-block: 0 var(--luft); }
.jsw-kopfbild {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(22rem, 58svh, 34rem);
	display: grid; align-content: end;
	color: var(--schnee); background: var(--blau);
	margin-block: 0 !important;
}
.jsw-kopfbild__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.jsw-kopfbild::before { content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(rgb(14 20 16 / 0.45), rgb(14 20 16 / 0.05) 35%, rgb(14 20 16 / 0.2) 62%, rgb(228 232 223 / 0.5) 100%); }
body.jsw-nacht .jsw-kopfbild::before { background: linear-gradient(rgb(14 20 16 / 0.45), transparent 35%, rgb(38 48 74 / 0.6) 100%); }
.jsw-kopfbild.ohne-bild { min-height: clamp(16rem, 34svh, 22rem); background: linear-gradient(var(--nacht), var(--blau) 60%, #6E5560); }
.jsw-kopfbild__text {
	position: relative; z-index: 3;
	width: 100%; max-width: var(--wp--style--global--wide-size); margin-inline: auto; box-sizing: border-box;
	padding: 0 var(--wp--style--root--padding-left) clamp(4rem, 10vw, 8rem);
}
.jsw-kopfbild__titel {
	margin: 0; font-size: clamp(3.5rem, 10vw, 8rem); font-weight: 600; line-height: 0.85;
	text-shadow: 0 0.04em 0.5em rgb(10 14 12 / 0.5);
}
.jsw-kopfbild .jsw-wald { z-index: 2; }
.jsw-elternseite { margin: 0 0 0.75rem; font-style: italic; font-size: 1.125rem; }
.jsw-elternseite a { color: var(--schnee); text-decoration-color: var(--licht); }
.jsw-elternseite a::after { content: " /"; }

.jsw-seite__inhalt { padding-top: clamp(1.5rem, 4vw, 3rem); padding-inline: var(--wp--style--root--padding-left); }
.jsw-seite__inhalt h2 { margin-top: 1.6em; font-size: clamp(2.5rem, 5vw, 3.5rem); }
.jsw-seite__inhalt ul { padding-left: 1.1em; }
.jsw-seite__inhalt li { margin-block: 0.15em; }
.jsw-seite__inhalt li::marker { content: "✦  "; color: var(--rot); font-size: 0.7em; }
.jsw-seite__inhalt > p:first-child,
.jsw-seite__inhalt > .wp-block-image:first-child + p { font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.45; }

/* Inset photos: tilted prints hanging off the right edge of the text.
   The content wrapper is full width (so the gallery can be wide), so a float
   would run to the window edge. Its right margin therefore measures back to
   the text column: (100% - column) / 2, minus how far it may hang out. */
.jsw-seite__inhalt .wp-block-image img { border-radius: 3px; box-shadow: 0 1rem 2rem -0.8rem rgb(29 38 32 / 0.5); }
.jsw-seite__inhalt > .wp-block-image:not(.alignleft):not(.alignright) { max-width: min(56rem, 100%); margin-block: 2.5rem; }
.jsw-seite__inhalt > .wp-block-image.alignright,
.jsw-seite__inhalt > .wp-block-image.alignleft {
	float: right; clear: right;
	max-width: min(20rem, 46%);
	margin: 0.4rem max(0px, (100% - 38rem) / 2) 1.25rem 1.5rem;
}
.jsw-seite__inhalt .wp-block-image.alignright img,
.jsw-seite__inhalt .wp-block-image.alignleft img { outline: 6px solid var(--schnee); outline-offset: -1px; }
.jsw-seite__inhalt .wp-block-image.alignright { transform: rotate(2deg); }
.jsw-seite__inhalt .wp-block-image.alignleft { transform: rotate(-1.5deg); }
@media (min-width: 75rem) {
	.jsw-seite__inhalt > .wp-block-image.alignright,
	.jsw-seite__inhalt > .wp-block-image.alignleft {
		max-width: 24rem; margin-left: 2.5rem;
		margin-right: max(1.5rem, (100% - 38rem) / 2 - 16rem);
	}
	.jsw-seite__inhalt > .wp-block-image.alignleft {
		margin-right: max(1.5rem, (100% - 38rem) / 2 - 10rem); margin-top: -1rem;
	}
}
@media (max-width: 36rem) {
	.jsw-seite__inhalt > .wp-block-image.alignright,
	.jsw-seite__inhalt > .wp-block-image.alignleft { float: none; max-width: 100%; margin: 1.5rem 0; }
}
.jsw-seite__inhalt::after { content: ""; display: block; clear: both; }

/* ── Night pages: the gallery and booking live after dark ─────────────── */
body.jsw-nacht { background: var(--nacht); color: var(--schnee); }
body.jsw-nacht .jsw-seite { background: linear-gradient(var(--blau), var(--nacht) 30rem); position: relative; }
body.jsw-nacht .jsw-seite::before { content: ""; position: absolute; inset: 30rem 0 0; pointer-events: none;
	background-image: radial-gradient(1px 1px at 20% 10%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 35%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 45% 70%, #fff 50%, transparent 51%);
	background-size: 380px 300px; opacity: 0.35; }
body.jsw-nacht .jsw-kopfbild .jsw-wald { --wald-farbe: var(--blau); }
body.jsw-nacht::after { mix-blend-mode: overlay; opacity: 0.22; }
body.jsw-nacht .jsw-seite__inhalt a { color: var(--schnee); text-decoration-color: var(--licht); }

/* the gallery: an uneven wall, portrait shots two rows tall, every fifth large */
.jsw-seite__inhalt > .wp-block-gallery.has-nested-images {
	max-width: var(--wp--style--global--wide-size);
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(13rem, 45%), 1fr));
	grid-auto-rows: clamp(8rem, 15vw, 13rem);
	grid-auto-flow: dense;
	gap: clamp(0.4rem, 1vw, 0.8rem) !important;
	margin-block: 1rem 0;
	position: relative; z-index: 1;
}
.jsw-seite__inhalt > .wp-block-gallery.has-nested-images figure.wp-block-image {
	width: auto !important; margin: 0 !important; height: 100%; grid-row: span 1;
}
.jsw-seite__inhalt > .wp-block-gallery figure.wp-block-image.ist-hoch { grid-row: span 2; }
.jsw-seite__inhalt > .wp-block-gallery figure.wp-block-image:not(.ist-hoch):nth-child(5n+2) { grid-column: span 2; grid-row: span 2; }
.jsw-seite__inhalt > .wp-block-gallery figure.wp-block-image img {
	width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 3px;
	box-shadow: none; outline: 0;
	transition: filter .4s, transform .4s;
}
.jsw-seite__inhalt > .wp-block-gallery figure.wp-block-image:hover img { filter: brightness(1.12); transform: scale(1.015); }
@media (max-width: 36rem) {
	.jsw-seite__inhalt > .wp-block-gallery figure.wp-block-image:not(.ist-hoch):nth-child(5n+2) { grid-column: span 2; grid-row: span 1; }
}
/* lightbox overlay in night colours */
.wp-lightbox-overlay .scrim { background-color: var(--nacht) !important; opacity: 0.94 !important; }

/* ── Booking: calendar and form, on the night page ────────────────────── */
.belegungskalender { max-width: 40rem; margin-inline: auto; background: var(--schnee); padding: 0.75rem; border-radius: 6px; }
.belegungskalender iframe { display: block; width: 100%; height: 620px; border: 0; }
@media (min-width: 480px) { .belegungskalender iframe { height: 420px; } }
/* the provider shows 12 months in three rows of four */
@media (min-width: 640px) { .belegungskalender iframe { height: 600px; } }
.belegungskalender p, .belegungskalender p a { color: #4A5A48 !important; }
/* before loading: the notice and button sit on the calendar's light card */
.jsw-kalender { padding: clamp(1rem, 3vw, 2rem); text-align: center; color: var(--tinte); }
.belegungskalender .jsw-kalender p { color: var(--tinte) !important; font-size: 1.0625rem; }
.jsw-kalender__hinweis { max-width: 32rem; margin: 0 auto 1.25rem; }
.belegungskalender .jsw-kalender a { color: var(--tinte) !important; }
.jsw-kalender__laden { border: 0; cursor: pointer; font-family: inherit; }
.jsw-kalender__extern { display: inline-block; margin-left: 1rem; }
.wpforms-container { font-family: inherit; }
.wpforms-container .wpforms-field-label,
.wpforms-container .wpforms-field-label-inline,
.wpforms-container .wpforms-field-description { color: inherit !important; font-family: inherit !important; }
.wpforms-container .wpforms-field-label { font-weight: 600 !important; font-size: 1.0625rem !important; }
.wpforms-container input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpforms-container textarea {
	background: rgb(243 241 234 / 0.08) !important; color: var(--schnee) !important;
	border: 1px solid rgb(243 241 234 / 0.4) !important; border-radius: 6px !important;
	font-family: inherit !important; font-size: 1.0625rem !important;
}
.wpforms-container input:focus, .wpforms-container textarea:focus {
	border-color: var(--licht) !important; box-shadow: 0 0 0 1px var(--licht) !important;
}
.wpforms-container button[type="submit"] {
	background: var(--licht) !important; color: var(--nacht) !important; border: 0 !important;
	border-radius: 999px !important; padding: 0.85em 1.6em !important; height: auto !important;
	font-family: inherit !important; font-weight: 600 !important; font-size: 1.125rem !important;
	box-shadow: 0 0 2.5rem rgb(244 185 87 / 0.45);
}

/* ── Footer: deep night ───────────────────────────────────────────────── */
.jsw-fuss { background: var(--nacht); color: #C9CCD6; padding-block: clamp(3rem, 7vw, 5rem) 2rem; position: relative; }
.jsw-fuss__zeile { gap: 2rem 4rem; }
.jsw-fuss__name { margin: 0 0 0.5rem; font-size: clamp(2.5rem, 5vw, 3.5rem) !important; color: var(--schnee); }
.jsw-fuss__ort { margin: 0; font-style: italic; }
.jsw-fuss__recht { gap: 0.5rem 1.5rem; font-size: 1rem; }
.jsw-fuss__recht a { color: var(--schnee); text-decoration: underline; text-decoration-color: rgb(244 185 87 / 0.6); }
.jsw-fuss__copy { margin-top: 2.5rem !important; font-size: 0.9375rem; opacity: 0.7; }
body:not(.jsw-nacht) .jsw-seite + .wp-block-template-part .jsw-fuss,
.jsw-fuss { border-top: 0; }

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