/* ==========================================================================
   Gipfellicht – Inhalte (nicht im Gipfelbuch geladen)
   1  Farben & Basis          7  Beitrag, Prosa, Ausrichtungen
   2  Rahmen & Abstände       8  Karten & Raster
   3  Buttons                 9  Partner, Unterkunft, Kommentare, Formulare
   4  Hero                    10 Fußbereich, Widgets, Seitennavigation
   5  Dolomiten-Szene         11 AdSense Auto Ads
   6  Kopf von Beiträgen      12 Mobil: kein horizontales Scrollen
   ========================================================================== */

/* 1 · Farben & Basis ===================================================== */

:root,
.gl-scheme-dark {
	--gl-bg: #0b0d10;
	--gl-surface: #13161b;
	--gl-surface-2: #1b1f26;
	--gl-line: #2a2f38;
	--gl-text: #e9edf1;
	--gl-text-2: #a9b2bc;
	--gl-text-3: #7d8692;
	--gl-link: #5aa8e6;
	--gl-shadow: 0 18px 40px rgba(0, 0, 0, .35);
	color-scheme: dark;
}
.gl-scheme-light {
	--gl-bg: #f4f6f8;
	--gl-surface: #ffffff;
	--gl-surface-2: #eceff3;
	--gl-line: #dbe0e6;
	--gl-text: #151b23;
	--gl-text-2: #4a5462;
	--gl-text-3: #6b7480;
	--gl-link: var(--gl-accent);
	--gl-shadow: 0 14px 34px rgba(20, 30, 45, .12);
	color-scheme: light;
}
@media (prefers-color-scheme: light) {
	.gl-scheme-auto {
		--gl-bg: #f4f6f8;
		--gl-surface: #ffffff;
		--gl-surface-2: #eceff3;
		--gl-line: #dbe0e6;
		--gl-text: #151b23;
		--gl-text-2: #4a5462;
		--gl-text-3: #6b7480;
		--gl-link: var(--gl-accent);
		--gl-shadow: 0 14px 34px rgba(20, 30, 45, .12);
		color-scheme: light;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--gl-header-total) + var(--gl-ad-top) + 16px);
	overflow-x: hidden;             /* letzte Sicherung gegen seitliches Scrollen */
}
@supports (overflow: clip) {
	html, body { overflow-x: clip; } /* clip statt hidden: position:sticky bleibt intakt */
}

body.gl-site {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: calc(var(--gl-header-total) + var(--gl-ad-top-shift));
	padding-bottom: var(--gl-ad-bottom);
	background: var(--gl-bg);
	color: var(--gl-text);
	font: 400 1.0625rem/1.7 var(--gl-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body.gl-site.gl-overlay-header { padding-top: var(--gl-ad-top-shift); }
body.gl-site.gl-bar-fixed { padding-bottom: calc(var(--gl-bar-total) + var(--gl-ad-bottom)); }

.gl-page {
	display: flex;
	flex-direction: column;
	min-height: calc(100svh - var(--gl-header-total));
	padding-left: var(--gl-ad-left);   /* Seitenleisten-Anzeigen (Side Rails) */
	padding-right: var(--gl-ad-right);
	transition: padding .2s ease;
}
.gl-main { flex: 1 0 auto; display: block; min-width: 0; }
.gl-overlay-header .gl-page { min-height: 100svh; }

a { color: var(--gl-link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gl-accent-2); }
:focus-visible { outline: 2px solid var(--gl-accent-2); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--gl-text);
	font-family: var(--gl-font);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.005em;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); }
h4 { font-size: 1.15rem; }

img, video, svg, canvas { vertical-align: middle; }
img { border-style: none; }
hr { border: 0; border-top: 1px solid var(--gl-line); margin: 2.5em auto; }
::selection { background: var(--gl-accent); color: #fff; }

/* 2 · Rahmen & Abstände ================================================== */

.gl-container {
	width: 100%;
	max-width: var(--gl-container);
	margin-inline: auto;
	padding-inline: var(--gl-gutter-l) var(--gl-gutter-r);
}
.gl-section { padding-block: clamp(28px, 4vw, 56px); }
.gl-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 20px;
	margin-bottom: 22px;
}
.gl-section__head h2 { margin: 0; }
.gl-section__more { font-weight: 600; text-decoration: none; }

/* 3 · Buttons ============================================================ */

.gl-btn,
.gl-prose .wp-block-button__link,
.gl-comment-form .submit {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--gl-accent);
	color: #fff;
	font: 600 1rem/1.2 var(--gl-font);
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
	max-width: 100%;
}
.gl-btn:hover,
.gl-prose .wp-block-button__link:hover,
.gl-comment-form .submit:hover { background: var(--gl-accent-2); color: #fff; }
.gl-btn:active { transform: translateY(1px); }
.gl-btn .gl-icon { width: 19px; height: 19px; }
.gl-btn--ghost { background: transparent; border-color: var(--gl-line); color: var(--gl-text); }
.gl-btn--ghost:hover { background: var(--gl-surface-2); color: var(--gl-text); }
.gl-btn--glow { background: var(--gl-glow); }
.gl-btn--glow:hover { background: color-mix(in srgb, var(--gl-glow) 82%, #fff); }

/* 4 · Hero =============================================================== */

.gl-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	color: #fff;
	background: #0a1020;
}
.gl-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;        /* nur die Hintergrundebene wird beschnitten, nie Inhalte/Anzeigen */
}
.gl-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}
.gl-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Startseite */
.gl-hero--front { min-height: clamp(440px, 40vw, 760px); }
.gl-hero--compact { min-height: clamp(360px, 32vw, 600px); }
.gl-hero--tall { min-height: min(88svh, clamp(520px, 52vw, 920px)); }
.gl-hero--screen { min-height: calc(100svh - var(--gl-header-total)); }
.gl-overlay-header .gl-hero--screen { min-height: 100svh; }
.gl-hero--front .gl-hero__content {
	justify-content: flex-start;
	padding-top: clamp(56px, 9vw, 130px);
	padding-bottom: clamp(140px, 17vw, 260px); /* Platz für die Gipfel */
}
.gl-overlay-header .gl-hero--front .gl-hero__content {
	padding-top: calc(var(--gl-header-total) + clamp(40px, 7vw, 110px));
}
.gl-hero--front::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48px;
	background: linear-gradient(to bottom, transparent, var(--gl-bg));
	pointer-events: none;
	z-index: 0;
}
.gl-hero--front.gl-hero--image::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 8, 14, .55), rgba(5, 8, 14, .15) 55%, rgba(5, 8, 14, .45));
	z-index: -1;
}
.gl-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-bottom: 14px;
	padding: 5px 12px 5px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font: 600 .78rem/1 var(--gl-font);
	letter-spacing: .08em;
	text-transform: uppercase;
}
.gl-hero__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--gl-sun, #ffd27a);
	box-shadow: 0 0 10px var(--gl-sun, #ffd27a);
	transition: background 1.6s ease, box-shadow 1.6s ease;
}
.gl-hero__title {
	max-width: 15ch;
	margin: 0;
	color: #fff;
	font-size: clamp(2.3rem, 1.2rem + 5.2vw, 5.4rem);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.02em;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
	overflow-wrap: anywhere;
}
.gl-hero__text {
	max-width: 46ch;
	margin-top: 16px;
	color: rgba(255, 255, 255, .9);
	font-size: clamp(1.02rem, .95rem + .4vw, 1.25rem);
	line-height: 1.5;
	text-shadow: 0 1px 14px rgba(0, 0, 0, .4);
}
.gl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
	max-width: 720px;
}
.gl-hero__actions .gl-search {
	flex: 1 1 300px;
	max-width: 520px;
	margin: 0;
	border-color: rgba(255, 255, 255, .22);
	background: rgba(8, 12, 20, .55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.gl-hero__actions .gl-btn { flex: 0 0 auto; }

/* Band über Beiträgen / Archiven */
.gl-hero--entry,
.gl-hero--band { min-height: clamp(220px, 26vw, 420px); }
.gl-hero--entry.gl-hero--image { min-height: clamp(280px, 42vw, 640px); }
.gl-hero--entry::before,
.gl-hero--band::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;              /* über dem Bild/der Szene (z-index -1), unter dem Text */
	background: linear-gradient(180deg, rgba(5, 8, 14, 0) 30%, rgba(5, 8, 14, .72) 100%);
	pointer-events: none;
}
.gl-hero--entry.gl-hero--image::before {
	background: linear-gradient(180deg, rgba(5, 8, 14, .2) 0%, rgba(5, 8, 14, 0) 35%, rgba(5, 8, 14, .78) 100%);
}

/* Einzelbeiträge/Seiten: langer, weicher Verlauf bis ganz in den Seitenhintergrund (Schwarz),
   damit Bild/Szene nahtlos in den Beitrag übergeht. Mehrere Stufen = "eased" Verlauf ohne Kante. */
.gl-hero--entry { min-height: clamp(300px, 34vw, 560px); }
.gl-hero--entry.gl-hero--image { min-height: clamp(380px, 52vw, 800px); }
.gl-hero--entry::before,
.gl-hero--entry.gl-hero--image::before {
	background: linear-gradient(180deg,
		rgba(5, 8, 14, .22) 0%,
		rgba(5, 8, 14, 0) 18%,
		color-mix(in srgb, var(--gl-bg) 8%, transparent) 32%,
		color-mix(in srgb, var(--gl-bg) 22%, transparent) 44%,
		color-mix(in srgb, var(--gl-bg) 42%, transparent) 56%,
		color-mix(in srgb, var(--gl-bg) 64%, transparent) 68%,
		color-mix(in srgb, var(--gl-bg) 82%, transparent) 79%,
		color-mix(in srgb, var(--gl-bg) 94%, transparent) 89%,
		var(--gl-bg) 100%);
}
.gl-hero--entry .gl-head { padding-bottom: clamp(30px, 4vw, 60px); }
.gl-hero--entry .gl-hero__img { object-position: center 40%; }
/* Helles Farbschema: Titel bleibt lesbar – Verlauf endet dunkel statt im hellen Hintergrund */
.gl-scheme-light .gl-hero--entry::before,
.gl-scheme-light .gl-hero--entry.gl-hero--image::before {
	background: linear-gradient(180deg, rgba(5, 8, 14, .2) 0%, rgba(5, 8, 14, 0) 25%, rgba(5, 8, 14, .45) 60%, rgba(5, 8, 14, .85) 100%);
}
@media (prefers-color-scheme: light) {
	.gl-scheme-auto .gl-hero--entry::before,
	.gl-scheme-auto .gl-hero--entry.gl-hero--image::before {
		background: linear-gradient(180deg, rgba(5, 8, 14, .2) 0%, rgba(5, 8, 14, 0) 25%, rgba(5, 8, 14, .45) 60%, rgba(5, 8, 14, .85) 100%);
	}
}

/* 5 · Dolomiten-Szene ====================================================
   Farben je Phase. Werte wechseln weich (Übergänge an den SVG-Teilen).
   --gl-sun-x / --gl-sun-y setzt das Head-Script nach Sonnenstand. */

html {
	--gl-sky1: #0a1430; --gl-sky2: #3b2b5c; --gl-sky3: #c46a6a;
	--gl-stars-o: 0; --gl-moon-o: 0; --gl-sun-o: 0; --gl-cloud-o: 0;
	--gl-sun: #ffe1a8; --gl-halo: #ff9a4d; --gl-halo-o: .9; --gl-cloud: #fff;
	--gl-far: #6e5577; --gl-snow: #ffc9b0; --gl-rock-top: #ff7d5c; --gl-rock-base: #2a1d2e;
	--gl-lit: #ffa070; --gl-lit-e: 0; --gl-lit-w: .9; --gl-lit-t: .7;
	--gl-mist: #ffb38a; --gl-mist-o: .3; --gl-near: #170f1b;
	--gl-sun-x: 1490; --gl-sun-y: 330;
}
html[data-gl-phase="night"] {
	--gl-sky1: #02040a; --gl-sky2: #070d1e; --gl-sky3: #121c34;
	--gl-stars-o: 1; --gl-moon-o: 1; --gl-sun-o: 0; --gl-cloud-o: 0;
	--gl-sun: #cfd8ff; --gl-halo: #9fb4ff; --gl-halo-o: 0;
	--gl-far: #1f2a48; --gl-snow: #8a9cc6; --gl-rock-top: #2a3757; --gl-rock-base: #0d1322;
	--gl-lit: #9fb2dc; --gl-lit-e: .16; --gl-lit-w: .16; --gl-lit-t: .3;
	--gl-mist: #8ea2d0; --gl-mist-o: .06; --gl-near: #05070d;
	--gl-sun-x: 800; --gl-sun-y: 640;
}
html[data-gl-phase="dawn"] {
	--gl-sky1: #0d1633; --gl-sky2: #3d4174; --gl-sky3: #d4919a;
	--gl-stars-o: .4; --gl-moon-o: .35; --gl-sun-o: 0; --gl-cloud-o: 0;
	--gl-sun: #ffd6b0; --gl-halo: #ffb08a; --gl-halo-o: .5;
	--gl-far: #3a3d63; --gl-snow: #e6c8d8; --gl-rock-top: #574463; --gl-rock-base: #1a1a2d;
	--gl-lit: #f0a3b5; --gl-lit-e: .38; --gl-lit-w: .04; --gl-lit-t: .4;
	--gl-mist: #f3c1c9; --gl-mist-o: .18; --gl-near: #0d0e1a;
	--gl-sun-x: 120; --gl-sun-y: 450;
}
html[data-gl-phase="sunrise"] {
	--gl-sky1: #3f6fb0; --gl-sky2: #e3a07f; --gl-sky3: #ffd69e;
	--gl-stars-o: 0; --gl-moon-o: 0; --gl-sun-o: 1; --gl-cloud-o: .55;
	--gl-sun: #fff1c9; --gl-halo: #ffcf86; --gl-halo-o: .9; --gl-cloud: #ffd9c4;
	--gl-far: #8c809f; --gl-snow: #fff0e2; --gl-rock-top: #f28e6c; --gl-rock-base: #2d2638;
	--gl-lit: #ffb48a; --gl-lit-e: .9; --gl-lit-w: .05; --gl-lit-t: .7;
	--gl-mist: #ffe0c4; --gl-mist-o: .35; --gl-near: #1c1a26;
	--gl-sun-x: 56; --gl-sun-y: 392;
}
html[data-gl-phase="day"] {
	--gl-sky1: #1d6cc4; --gl-sky2: #5aa6e6; --gl-sky3: #d2e9f9;
	--gl-stars-o: 0; --gl-moon-o: 0; --gl-sun-o: 1; --gl-cloud-o: .92;
	--gl-sun: #fffdf2; --gl-halo: #fff6d5; --gl-halo-o: .7; --gl-cloud: #ffffff;
	--gl-far: #94aac7; --gl-snow: #ffffff; --gl-rock-top: #a9afb9; --gl-rock-base: #4b5466;
	--gl-lit: #f4efe6; --gl-lit-e: .42; --gl-lit-w: .42; --gl-lit-t: .6;
	--gl-mist: #ffffff; --gl-mist-o: .25; --gl-near: #22303c;
	--gl-sun-x: 1260; --gl-sun-y: 20;
}
html[data-gl-phase="sunset"] {
	--gl-sky1: #23336e; --gl-sky2: #d4687a; --gl-sky3: #ffb35c;
	--gl-stars-o: 0; --gl-moon-o: 0; --gl-sun-o: 1; --gl-cloud-o: .55;
	--gl-sun: #ffe1a8; --gl-halo: #ff9a4d; --gl-halo-o: .95; --gl-cloud: #ffb59a;
	--gl-far: #6e5577; --gl-snow: #ffcab2; --gl-rock-top: #ff7d5c; --gl-rock-base: #2a1d2e;
	--gl-lit: #ffa070; --gl-lit-e: .05; --gl-lit-w: .95; --gl-lit-t: .75;
	--gl-mist: #ffb38a; --gl-mist-o: .3; --gl-near: #170f1b;
	--gl-sun-x: 1490; --gl-sun-y: 330;
}
html[data-gl-phase="dusk"] {
	--gl-sky1: #0a1030; --gl-sky2: #35295a; --gl-sky3: #b8647a;
	--gl-stars-o: .55; --gl-moon-o: .5; --gl-sun-o: 0; --gl-cloud-o: 0;
	--gl-sun: #ffb8a0; --gl-halo: #ff8a7a; --gl-halo-o: .4;
	--gl-far: #2d2645; --gl-snow: #c4a8d0; --gl-rock-top: #4d3155; --gl-rock-base: #151023;
	--gl-lit: #d98aa6; --gl-lit-e: .03; --gl-lit-w: .35; --gl-lit-t: .35;
	--gl-mist: #c98aa6; --gl-mist-o: .15; --gl-near: #0a0814;
	--gl-sun-x: 1490; --gl-sun-y: 450;
}
/* Hintergrund des Heros folgt dem Himmel (sichtbar, solange das SVG lädt) */
.gl-hero { background: var(--gl-sky1); }

.gl-scene {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	display: block;
}
.gl-scene__sky1 { stop-color: var(--gl-sky1); }
.gl-scene__sky2 { stop-color: var(--gl-sky2); }
.gl-scene__sky3 { stop-color: var(--gl-sky3); }
.gl-scene__rock-top { stop-color: var(--gl-rock-top); }
.gl-scene__rock-base { stop-color: var(--gl-rock-base); }
.gl-scene__halo1 { stop-color: var(--gl-halo); stop-opacity: var(--gl-halo-o); }
.gl-scene__halo2 { stop-color: var(--gl-halo); stop-opacity: 0; }
.gl-scene__mist0 { stop-color: var(--gl-mist); stop-opacity: 0; }
.gl-scene__mist1 { stop-color: var(--gl-mist); stop-opacity: var(--gl-mist-o); }
.gl-scene__stars { fill: #fff; opacity: var(--gl-stars-o); }
.gl-scene__moon { fill: #f3efe2; opacity: var(--gl-moon-o); transform: translate(300px, 40px); }
.gl-scene__sun {
	opacity: var(--gl-sun-o);
	transform: translate(calc(var(--gl-sun-x) * 1px), calc(var(--gl-sun-y) * 1px));
}
.gl-scene__disc { fill: var(--gl-sun); }
.gl-scene__clouds { fill: var(--gl-cloud); opacity: var(--gl-cloud-o); }
.gl-scene__far { fill: var(--gl-far); }
.gl-scene__snow { fill: var(--gl-snow); }
.gl-scene__lit { fill: var(--gl-lit); }
.gl-scene__lit--east { opacity: var(--gl-lit-e); }
.gl-scene__lit--west { opacity: var(--gl-lit-w); }
.gl-scene__lit--top { opacity: var(--gl-lit-t); }
.gl-scene__near { fill: var(--gl-near); }

.gl-scene stop,
.gl-scene__stars,
.gl-scene__moon,
.gl-scene__disc,
.gl-scene__clouds,
.gl-scene__far,
.gl-scene__snow,
.gl-scene__lit,
.gl-scene__near {
	transition: stop-color 2.4s ease, stop-opacity 2.4s ease, fill 2.4s ease, opacity 2.4s ease;
}
.gl-scene__sun { transition: transform 3s var(--gl-ease), opacity 2.4s ease; }
.gl-booting .gl-scene *,
.gl-booting .gl-hero__dot { transition: none !important; }

.gl-scene__twinkle { animation: gl-twinkle 4s ease-in-out infinite; }
.gl-scene__twinkle:nth-child(2n) { animation-delay: -1.7s; animation-duration: 5.5s; }
@keyframes gl-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.gl-scene__clouds path { animation: gl-drift 70s linear infinite alternate; }
.gl-scene__clouds > g:nth-child(2) path { animation-duration: 95s; animation-direction: alternate-reverse; }
@keyframes gl-drift { from { transform: translateX(-40px); } to { transform: translateX(60px); } }

/* 6 · Kopf von Beiträgen ================================================= */

.gl-head { padding-top: 28px; padding-bottom: 26px; }
.gl-hero .gl-head {
	width: 100%;
	justify-content: space-between;
	flex-direction: row;
	align-items: flex-end;
	gap: 20px;
	margin-top: auto;
}
.gl-head__text { flex: 1 1 auto; min-width: 0; }
.gl-head__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-bottom: 10px;
	color: var(--gl-text-2);
	font-size: .9rem;
	font-weight: 500;
}
.gl-hero .gl-head__meta { color: rgba(255, 255, 255, .85); }
.gl-head__meta a { color: inherit; text-decoration: none; }
.gl-head__meta a:hover { color: #fff; text-decoration: underline; }
.gl-head__title {
	max-width: 24ch;
	margin: 0;
	font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.6rem);
	line-height: 1.04;
	overflow-wrap: anywhere;
	hyphens: auto;
}
.gl-hero .gl-head__title { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.gl-head--plain { padding-top: clamp(28px, 5vw, 64px); padding-bottom: 8px; }
.gl-head__elev {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	color: #fff;
	font-size: clamp(1.6rem, 1rem + 2.4vw, 2.8rem);
	font-weight: 800;
	line-height: 1;
	text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}
.gl-head__elev small { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.gl-head__elev-inline { color: var(--gl-text-2); font-weight: 700; margin-top: 6px; }

/* 7 · Beitrag, Prosa, Ausrichtungen ===================================== */

.gl-entry-wrap { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(32px, 5vw, 64px); }

/* Gemeinsame Achse für Beitragskopf, Galerie und Inhalt
   Mit Sidebar: Text (Lesebreite) + Abstand + Sidebar, als Block zentriert.
   Ohne Sidebar: Titel auf Lesebreite über dem Text, Galerie "weit". */
:root { --gl-sb-w: 320px; --gl-sb-gap: clamp(32px, 4vw, 56px); }
.gl-layout-sidebar { --gl-axis: var(--gl-wide); --gl-head-axis: var(--gl-wide); --gl-gal-axis: var(--gl-wide); }
.gl-layout-full,
.gl-layout-edge { --gl-axis: none; --gl-head-axis: var(--gl-measure); --gl-gal-axis: var(--gl-wide); }
@media (max-width: 1099px) {
	.gl-layout-sidebar { --gl-axis: var(--gl-measure); --gl-head-axis: var(--gl-measure); --gl-gal-axis: var(--gl-measure); }
}
.single .gl-hero--entry .gl-head,
.page .gl-hero--entry .gl-head,
.single .gl-head--plain,
.page .gl-head--plain { max-width: calc(var(--gl-head-axis) + var(--gl-gutter-l) + var(--gl-gutter-r)); }
.gl-gallery-wrap { max-width: calc(var(--gl-gal-axis) + var(--gl-gutter-l) + var(--gl-gutter-r)); }
/* "Weitere Touren" unter dem Beitrag: zentriert, gleiche Breite wie Beitrag + Sidebar (bzw. "weit") */
.single .gl-related,
.page .gl-related {
	max-width: calc(var(--gl-gal-axis, var(--gl-wide)) + var(--gl-gutter-l) + var(--gl-gutter-r));
	margin-inline: auto;
}
.gl-related .gl-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.gl-related .gl-grid > .gl-card { max-width: 520px; width: 100%; justify-self: center; }
@media (max-width: 700px) {
	.gl-related .gl-grid > .gl-card:nth-of-type(n+3) { display: none; } /* mobil nur 2 weitere Touren */
}
.gl-layout-sidebar .gl-entry-wrap > .gl-layout { max-width: var(--gl-axis); margin-inline: auto; }
/* in der Textspalte stehen alle Teile bündig an derselben linken Kante */
.gl-layout--sidebar .gl-prose > :not(.alignfull):not(.alignleft):not(.alignright):not(.aligncenter):not(.google-auto-placed) { margin-left: 0; }
.gl-layout--sidebar .gl-entry__after,
.gl-layout--sidebar .gl-comments,
.gl-layout--sidebar .gl-edit { margin-left: 0; }
/* Ab 1100 px füllt der Text die ganze Beitragsspalte (Wrapper = Breite von "Weitere Touren") */
@media (min-width: 1100px) {
	.gl-layout--sidebar .gl-prose > :not(.alignleft):not(.alignright):not(.aligncenter):not(.alignfull):not(.google-auto-placed),
	.gl-layout--sidebar .gl-entry__after,
	.gl-layout--sidebar .gl-comments,
	.gl-layout--sidebar .gl-edit { max-width: none; }
	.gl-layout--sidebar .gl-prose > .alignleft { margin-left: 0; }
	.gl-layout--sidebar .gl-prose > .alignright { margin-right: 0; }
}

.gl-layout { display: block; }
.gl-entry { min-width: 0; }
.gl-layout--sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}
@media (min-width: 1100px) {
	.gl-layout--sidebar { grid-template-columns: minmax(0, 1fr) var(--gl-sb-w); gap: var(--gl-sb-gap); }
	.gl-layout--sidebar.gl-layout--sidebar-left { grid-template-columns: var(--gl-sb-w) minmax(0, 1fr); }
	.gl-layout--sidebar-left .gl-sidebar { order: -1; }
}
.gl-sidebar { min-width: 0; }
@media (max-width: 1099px) {
	.gl-stay--sidebar { display: none; } /* steht unter 1100 px schon im Beitrag */
}
.gl-sidebar__inner {
	position: sticky;
	top: calc(var(--gl-admin-bar) + var(--gl-ad-top) + var(--gl-header-total) + 20px);
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.gl-header-autohide .gl-sidebar__inner { top: calc(var(--gl-admin-bar) + var(--gl-ad-top) + 20px); }

/* Prosa: Fließtext auf Lesebreite; weite/volle Blöcke brechen aus (ohne 100vw-Überlauf) */
.gl-prose {
	--gl-vw: calc(100vw - var(--gl-sbw, 0px) - var(--gl-ad-left) - var(--gl-ad-right));
	font-size: clamp(1.02rem, .98rem + .2vw, 1.12rem);
	line-height: 1.78;
	overflow-wrap: break-word;
}
.gl-prose::after { content: ''; display: table; clear: both; }
.gl-prose > * {
	max-width: var(--gl-measure);
	margin-inline: auto;
	margin-block: 0 1.25em;
}
.gl-prose > :last-child { margin-bottom: 0; }
.gl-prose > h2, .gl-prose > h3, .gl-prose > h4 { margin-top: 1.9em; margin-bottom: .6em; }
.gl-prose > .alignwide { max-width: var(--gl-wide); }
.gl-prose > .alignfull { max-width: none; }
/* Ohne Sidebar: "Volle Breite" bis an den Fensterrand */
.gl-layout--full .gl-prose > .alignfull,
.gl-layout--edge .gl-prose > .alignfull {
	width: var(--gl-vw);
	margin-left: calc(50% - var(--gl-vw) / 2);
	margin-right: calc(50% - var(--gl-vw) / 2);
}
/* Mit Sidebar: "Volle Breite" = ganze Inhaltsspalte */
.gl-layout--sidebar .gl-prose > .alignfull { width: auto; margin-inline: 0; }

.gl-prose > .alignleft,
.gl-prose > .alignright { max-width: min(48%, 420px); margin-bottom: 1em; }
.gl-prose > .alignleft { float: left; margin-right: 1.5em; margin-left: max(0px, calc((100% - var(--gl-measure)) / 2)); }
.gl-prose > .alignright { float: right; margin-left: 1.5em; margin-right: max(0px, calc((100% - var(--gl-measure)) / 2)); }
.gl-prose > .aligncenter, .gl-prose .aligncenter { margin-inline: auto; text-align: center; }
.gl-prose .alignleft img, .gl-prose .alignright img { display: block; }

/* Randlos (Vorlage/Layout "edge") */
.gl-layout--edge .gl-prose > :not(p):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(ul):not(ol):not(blockquote):not(pre):not(.wp-block-table):not(table):not(.alignwide):not(.google-auto-placed) { max-width: none; }
.gl-prose--edge > * { max-width: none; margin-inline: 0; }
.gl-prose--edge > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, pre, table, .wp-block-table) {
	max-width: var(--gl-measure);
	margin-inline: auto;
	padding-inline: var(--gl-gutter-l) var(--gl-gutter-r);
	box-sizing: content-box;
}
.gl-prose--edge > ul, .gl-prose--edge > ol { padding-left: calc(var(--gl-gutter-l) + 1.3em); }
.gl-prose--edge > .alignwide { max-width: var(--gl-wide); margin-inline: auto; }
.gl-prose--edge > :first-child { margin-top: 0; }
.gl-entry--canvas { padding-bottom: clamp(32px, 5vw, 64px); }

/* Elemente */
.gl-prose a { overflow-wrap: anywhere; }
.gl-prose strong { color: var(--gl-text); font-weight: 700; }
.gl-prose ul, .gl-prose ol { padding-left: 1.3em; }
.gl-prose li { margin-bottom: .35em; }
.gl-prose li::marker { color: var(--gl-accent-2); }
.gl-prose blockquote,
.gl-prose .wp-block-quote {
	padding: 4px 0 4px 1.2em;
	border-left: 3px solid var(--gl-accent);
	color: var(--gl-text);
	font-size: 1.12em;
	font-style: italic;
}
.gl-prose blockquote cite { display: block; margin-top: .6em; color: var(--gl-text-3); font-size: .85em; font-style: normal; }
.gl-prose figure { margin-inline: auto; }
.gl-prose figcaption,
.gl-prose .wp-caption-text,
.gl-prose .wp-element-caption { margin-top: .6em; color: var(--gl-text-3); font-size: .88rem; line-height: 1.45; text-align: center; }
.gl-prose img { border-radius: 8px; }
.gl-prose .alignfull img, .gl-prose .alignfull.wp-block-image img { border-radius: 0; width: 100%; }
.gl-prose .wp-caption { max-width: 100%; }
.gl-prose code, .gl-prose kbd { padding: .1em .35em; border-radius: 5px; background: var(--gl-surface-2); font-size: .9em; }
.gl-prose pre {
	overflow-x: auto;
	padding: 16px 18px;
	border-radius: 10px;
	background: var(--gl-surface);
	border: 1px solid var(--gl-line);
	font-size: .9rem;
	line-height: 1.55;
	-webkit-overflow-scrolling: touch;
}
.gl-prose pre code { padding: 0; background: none; }
.gl-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.gl-prose th, .gl-prose td { padding: 10px 12px; border-bottom: 1px solid var(--gl-line); text-align: left; vertical-align: top; }
.gl-prose th { color: var(--gl-text); font-weight: 700; }
.gl-prose .wp-block-table,
.gl-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gl-prose .wp-block-separator { border-color: var(--gl-line); }
.gl-prose .wp-block-cover, .gl-prose .wp-block-group.has-background { padding: clamp(20px, 4vw, 48px); }
.gl-prose .wp-block-embed__wrapper iframe { width: 100%; }
.gl-page-links { clear: both; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; font-weight: 600; }

/* Fotogalerie (angehängte Bilder) =========================================
   Breites Mosaik direkt unter dem Beitragskopf, gleiche Kanten wie Titel und Text.
   Kachelmuster je nach Anzahl, damit keine Lücken entstehen. */
.gl-gallery-wrap { padding-top: clamp(18px, 3vw, 36px); }
.gl-gallery-wrap + .gl-entry-wrap { padding-top: clamp(22px, 3vw, 40px); }
.gl-gallery {
	--gl-row: clamp(110px, 12vw, 210px);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: var(--gl-row);
	grid-auto-flow: row dense;
	gap: 6px;
	border-radius: 14px;
	overflow: hidden;
}
.gl-gallery__item {
	position: relative;
	display: block;
	min-width: 0;
	overflow: hidden;
	background: var(--gl-surface-2);
	cursor: zoom-in;
}
.gl-gallery__item.is-hidden { display: none; }
.gl-gallery__item img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0;
	transition: transform .5s var(--gl-ease), opacity .2s ease;
}
.gl-gallery__item:hover img { transform: scale(1.04); }
.gl-gallery__item:focus-visible { outline: 3px solid var(--gl-accent-2); outline-offset: -3px; }
.gl-gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gl-gallery__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(6, 9, 14, .58);
	color: #fff;
	font-size: clamp(1.1rem, .9rem + 1vw, 1.6rem);
	font-weight: 700;
	letter-spacing: .02em;
}
/* Muster nach Anzahl sichtbarer Bilder */
.gl-gallery--n1 { grid-template-columns: 1fr; grid-auto-rows: clamp(220px, 42vw, 620px); }
.gl-gallery--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 26vw, 440px); }
.gl-gallery--n3 { grid-template-columns: 2fr 1fr; }
.gl-gallery--n3 .gl-gallery__item--big { grid-column: span 1; grid-row: span 2; }
.gl-gallery--n4 { grid-template-columns: 2fr 1fr; --gl-row: clamp(90px, 9vw, 160px); }
.gl-gallery--n4 .gl-gallery__item--big { grid-column: span 1; grid-row: span 3; }
.gl-gallery--n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gl-gallery--n7 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gl-gallery--n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gl-gallery--n8 .gl-gallery__item--big { grid-column: span 1; grid-row: span 1; }
@media (max-width: 700px) {
	.gl-gallery-wrap { padding-inline: 0; }            /* randlos auf dem Handy */
	.gl-gallery { --gl-row: 34vw; border-radius: 0; gap: 3px; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.gl-gallery--n1 { grid-template-columns: 1fr !important; grid-auto-rows: 66vw; }
	.gl-gallery .gl-gallery__item--big { grid-column: span 2 !important; grid-row: span 2 !important; }
	/* gerade Anzahl: letztes sichtbares Bild über beide Spalten → keine Lücke */
	.gl-gallery--n2 .gl-gallery__item:nth-child(2),
	.gl-gallery--n4 .gl-gallery__item:nth-child(4),
	.gl-gallery--n6 .gl-gallery__item:nth-child(6),
	.gl-gallery--n8 .gl-gallery__item:nth-child(8) { grid-column: span 2; }
	.gl-gallery--n2 { grid-auto-rows: 52vw; }
	.gl-gallery--n2 .gl-gallery__item--big { grid-row: span 1 !important; }
}

/* Galerien im Beitragstext: [gallery] und Galerie-Block, breit und gleichmäßig */
.gl-prose > .gallery,
.gl-prose > .wp-block-gallery,
.gl-prose > .tiled-gallery { max-width: var(--gl-wide); }
.gl-prose .gallery {
	display: grid;
	grid-template-columns: repeat(var(--gl-cols, 3), minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 1.6em;
}
.gl-prose .gallery-columns-1 { --gl-cols: 1; }
.gl-prose .gallery-columns-2 { --gl-cols: 2; }
.gl-prose .gallery-columns-4 { --gl-cols: 4; }
.gl-prose .gallery-columns-5 { --gl-cols: 5; }
.gl-prose .gallery-columns-6,
.gl-prose .gallery-columns-7,
.gl-prose .gallery-columns-8,
.gl-prose .gallery-columns-9 { --gl-cols: 6; }
.gl-prose .gallery br { display: none; }
.gl-prose .gallery-item {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: var(--gl-surface-2);
}
.gl-prose .gallery-icon a { display: block; cursor: zoom-in; }
.gl-prose .gallery-icon img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 0 !important;
	border-radius: 0;
	transition: transform .5s var(--gl-ease);
}
.gl-prose .gallery-item:hover img { transform: scale(1.04); }
.gl-prose .gallery-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 18px 8px 6px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7));
	color: #fff;
	font-size: .78rem;
	line-height: 1.3;
	text-align: left;
}
.gl-prose .wp-block-gallery { gap: 6px; --wp--style--gallery-gap-default: 6px; }
.gl-prose .wp-block-gallery img { border-radius: 8px; }
.gl-prose .tiled-gallery { margin-inline: auto; }
@media (max-width: 700px) {
	.gl-prose .gallery { grid-template-columns: repeat(min(var(--gl-cols, 3), 2), minmax(0, 1fr)); gap: 4px; }
	.gl-prose .gallery-columns-1 { grid-template-columns: 1fr; }
}

/* Lightbox (theme.js) */
.gl-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: rgba(4, 6, 10, .96);
	color: #fff;
	font-family: var(--gl-font);
	touch-action: pan-y;
	animation: gl-lb-in .2s ease;
}
@keyframes gl-lb-in { from { opacity: 0; } to { opacity: 1; } }
.gl-lb__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(56px + var(--gl-safe-top)) 12px 8px;
}
.gl-lb__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	user-select: none;
	-webkit-user-drag: none;
}
.gl-lb__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 6px 16px calc(10px + var(--gl-safe-bottom));
	font-size: .9rem;
}
.gl-lb__count { flex: 0 0 auto; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.gl-lb__cap { flex: 1 1 auto; min-width: 0; color: rgba(255, 255, 255, .9); overflow-wrap: anywhere; }
.gl-lb__btn {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
}
.gl-lb__btn:hover,
.gl-lb__btn:focus-visible { background: rgba(255, 255, 255, .22); }
.gl-lb__btn .gl-icon { width: 24px; height: 24px; }
.gl-lb__close { top: calc(8px + var(--gl-safe-top)); right: 12px; }
.gl-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.gl-lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
.gl-lb--single .gl-lb__prev,
.gl-lb--single .gl-lb__next { display: none; }
@media (max-width: 700px) {
	.gl-lb__prev, .gl-lb__next { top: auto; bottom: calc(64px + var(--gl-safe-bottom)); transform: none; width: 44px; height: 44px; }
	.gl-lb__stage { padding-inline: 0; }
	.gl-lb__img { border-radius: 0; }
}

/* Nach dem Beitrag */
.gl-entry__after { max-width: var(--gl-measure); margin: 40px auto 0; display: flex; flex-direction: column; gap: 28px; }
.gl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-tags a {
	padding: 5px 12px;
	border: 1px solid var(--gl-line);
	border-radius: 999px;
	color: var(--gl-text-2);
	font-size: .85rem;
	text-decoration: none;
}
.gl-tags a:hover { border-color: var(--gl-accent); color: var(--gl-text); }
.gl-postnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.gl-postnav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid var(--gl-line);
	border-radius: 12px;
	background: var(--gl-surface);
	color: var(--gl-text);
	text-decoration: none;
	min-width: 0;
}
.gl-postnav a:hover { border-color: var(--gl-accent); }
.gl-postnav small { color: var(--gl-text-3); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.gl-postnav span { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.gl-postnav__next { text-align: right; }
.gl-edit { max-width: var(--gl-measure); margin: 24px auto 0; font-size: .9rem; }

/* 8 · Karten & Raster ==================================================== */

.gl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(16px, 2vw, 28px);
}
.gl-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--gl-line);
	border-radius: 14px;
	background: var(--gl-surface);
	overflow: hidden;
	transition: transform .2s var(--gl-ease), border-color .2s ease, box-shadow .2s ease;
}
.gl-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gl-accent) 55%, var(--gl-line)); box-shadow: var(--gl-shadow); }
.gl-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--gl-surface-2);
	overflow: hidden;
}
.gl-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--gl-ease); }
.gl-card:hover .gl-card__media img { transform: scale(1.04); }
.gl-card__media--empty { display: flex; align-items: center; justify-content: center; color: var(--gl-text-3); }
.gl-card__media--empty .gl-icon { width: 48px; height: 48px; stroke-width: 1.4; }
.gl-card__elev {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(8, 12, 20, .72);
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
}
.gl-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; min-width: 0; }
.gl-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--gl-text-3); font-size: .82rem; font-weight: 500; }
.gl-card__meta a { color: var(--gl-accent-2); text-decoration: none; }
.gl-card__title { margin: 0; font-size: 1.22rem; line-height: 1.25; overflow-wrap: anywhere; }
.gl-card__title a { color: var(--gl-text); text-decoration: none; }
.gl-card__title a::after { content: ''; position: absolute; inset: 0; } /* ganze Karte klickbar */
.gl-card { position: relative; }
.gl-card__meta a { position: relative; z-index: 1; }
.gl-card__title a:hover { color: var(--gl-accent-2); }
.gl-card__excerpt {
	color: var(--gl-text-2);
	font-size: .95rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.gl-card--sticky { border-color: var(--gl-accent); }
.gl-archive-desc { margin-bottom: 28px; color: var(--gl-text-2); }
.gl-archive-desc > * { margin-inline: 0; }

/* 9 · Partner, Unterkunft, Kommentare, Formulare ========================= */

.gl-fit { max-width: 100%; text-align: center; }
.gl-fit img, .gl-fit iframe { max-width: 100%; height: auto; }
/* Partner-Banner: immer mittig, auf schmalen Bildschirmen proportional verkleinert */
.gl-partner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: var(--gl-wide);
	margin: 0 auto 28px !important;
	text-align: center;
}
.gl-entry__after .gl-partner { margin-bottom: 0 !important; }
.gl-partner .gl-fit { width: 100%; display: flex; flex-direction: column; align-items: center; }
.gl-partner .gl-fit > * { max-width: 100%; margin-inline: auto; }
.gl-partner .gl-fit > a { display: block; width: max-content; max-width: 100%; line-height: 0; }
.gl-partner .gl-fit img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 6px; }
.gl-partner__note { display: block; margin-top: 6px; color: var(--gl-text-3); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; text-align: center; }

.gl-stay {
	padding: 22px;
	border: 1px solid color-mix(in srgb, var(--gl-glow) 35%, var(--gl-line));
	border-radius: 14px;
	background: linear-gradient(180deg, var(--gl-glow-soft), transparent 70%), var(--gl-surface);
}
.gl-stay__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.gl-stay__head .gl-icon { width: 26px; height: 26px; stroke: var(--gl-glow); }
.gl-stay__title { margin: 0; font-size: 1.25rem; }
.gl-stay__text { color: var(--gl-text-2); margin-bottom: 14px; }
.gl-stay__widget { margin-bottom: 14px; }

/* Buchungs-Widget eines Plugins ([booking_widget]) – einheitliche, gut lesbare Felder,
   die umbrechen statt sich zu überlappen. Gilt unabhängig vom Markup des Plugins. */
.gl-stay__widget,
.gl-stay__widget * { box-sizing: border-box; max-width: 100%; }
.gl-stay__widget :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]), select, textarea) {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	height: 48px !important;
	min-height: 48px;
	margin: 0 !important;
	padding: 0 12px !important;
	padding-block: 0 !important;
	border: 1px solid #cfd6df !important;
	border-radius: 10px !important;
	background-color: #ffffff !important;
	color: #141a22 !important;
	-webkit-text-fill-color: #141a22 !important; /* Safari: readonly/disabled sonst grau */
	opacity: 1 !important;
	font: 500 16px/46px var(--gl-font) !important; /* 16px: kein Zoom auf iOS; Zeilenhöhe = Innenhöhe → Text exakt mittig */
	vertical-align: middle !important;
	text-align: left !important;
	box-shadow: none !important;
	color-scheme: light;
}
.gl-stay__widget textarea { height: auto !important; padding: 10px 12px !important; line-height: 1.4 !important; }
.gl-stay__widget select { padding-right: 32px !important; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23596270' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat !important; }
.gl-stay__widget input[type="date"] { -webkit-appearance: none; appearance: none; display: flex !important; align-items: center; }
.gl-stay__widget input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; line-height: 46px; }
.gl-stay__widget input[type="date"]::-webkit-datetime-edit,
.gl-stay__widget input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding: 0; line-height: 46px; }
.gl-stay__widget input[type="date"]::-webkit-calendar-picker-indicator { margin: 0 0 0 6px; padding: 0; opacity: .65; }
.gl-stay__widget input[type="number"]::-webkit-inner-spin-button,
.gl-stay__widget input[type="number"]::-webkit-outer-spin-button { height: 30px; align-self: center; }
.gl-stay__widget ::placeholder { color: #6b7480 !important; -webkit-text-fill-color: #6b7480 !important; opacity: 1; }
.gl-stay__widget :is(input, select, textarea):focus { outline: none !important; border-color: var(--gl-accent) !important; box-shadow: 0 0 0 3px var(--gl-accent-soft) !important; }
.gl-stay__widget :is(button, input[type="submit"], input[type="button"], .button, .btn) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--gl-accent) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font: 700 15px/1 var(--gl-font) !important;
	letter-spacing: .03em;
	text-align: center !important;
	vertical-align: middle !important;
	white-space: nowrap;
	cursor: pointer;
}
.gl-stay__widget :is(button, input[type="submit"]):hover { background: var(--gl-accent-2) !important; }
.gl-stay__widget label { color: var(--gl-text-2); font-size: .85rem; }

/* Zeile mit Feldern → umbrechendes Flex-Layout.
   Zwei getrennte Regeln (eine ungültige Teilliste würde sonst die ganze Regel verwerfen):
   A) Felder stehen direkt im Formular/Container, B) jedes Feld steckt in einem eigenen Container. */
.gl-stay__widget :is(form, div, fieldset, p):has(> :is(input:not([type="hidden"]), select) ~ :is(input:not([type="hidden"]), select, button)) {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	align-items: flex-end !important;
	justify-content: stretch !important;
	width: 100% !important;
	margin-inline: 0 !important;
}
.gl-stay__widget :is(form, div, fieldset):has(> :is(div, label, span, p) > :is(input:not([type="hidden"]), select)):has(> * ~ *) {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	align-items: flex-end !important;
	justify-content: stretch !important;
	width: 100% !important;
	margin-inline: 0 !important;
}
.gl-stay__widget :is(form, div, fieldset, p):has(> :is(input:not([type="hidden"]), select) ~ :is(input:not([type="hidden"]), select, button)) > * {
	flex: 1 1 128px !important;
	min-width: 0 !important;
	width: auto !important;
	margin: 0 !important;
}
.gl-stay__widget :is(form, div, fieldset):has(> :is(div, label, span, p) > :is(input:not([type="hidden"]), select)):has(> * ~ *) > * {
	flex: 1 1 128px !important;
	min-width: 0 !important;
	width: auto !important;
	margin: 0 !important;
}
/* Datumsfelder brauchen Platz für Datum + Kalender-Symbol */
.gl-stay__widget input[type="date"]:not(#gl-x) { flex: 1 1 150px !important; }
/* Ziel-Feld breiter, Button füllt den Rest der Zeile; Texte/Überschriften über die ganze Breite.
   :not(#gl-x) hebt die Spezifität über die :has()-Regeln oben. */
.gl-stay__widget :is(input[type="text"], input[type="search"]):first-of-type:not(#gl-x),
.gl-stay__widget :is(div, label, span, p):first-child:has(> :is(input[type="text"], input[type="search"])):not(#gl-x) { flex: 2 1 220px !important; }
.gl-stay__widget form > :is(button, input[type="submit"]):not(#gl-x),
.gl-stay__widget form > :is(div, p, span):has(> :is(button, input[type="submit"])):not(#gl-x) { flex: 1 1 170px !important; }
.gl-stay__widget form > :is(h1, h2, h3, h4, h5, h6, br, hr):not(#gl-x),
.gl-stay__widget form > p:not(:has(input, select, button)):not(#gl-x),
.gl-stay__widget form > div:not(:has(input, select, button, a, img)):not(#gl-x) { flex: 1 1 100% !important; }
.gl-stay__widget input[type="hidden"] { display: none !important; }
.gl-stay__cta { width: 100%; }
.gl-stay__note { margin-top: 10px; color: var(--gl-text-3); font-size: .78rem; line-height: 1.45; }

.gl-comments { max-width: var(--gl-measure); margin: 48px auto 0; }
.gl-comments__title { font-size: 1.5rem; }
.gl-comment-list, .gl-comment-list .children { list-style: none; margin: 0; padding: 0; }
.gl-comment-list .children { padding-left: clamp(12px, 4vw, 32px); border-left: 2px solid var(--gl-line); margin-left: 6px; }
.gl-comment__inner { padding: 16px 0; border-bottom: 1px solid var(--gl-line); }
.gl-comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.gl-comment__author { font-weight: 700; }
.gl-comment__date { color: var(--gl-text-3); font-size: .85rem; text-decoration: none; }
.gl-comment__badge { padding: 1px 8px; border-radius: 999px; background: var(--gl-accent-soft); color: var(--gl-accent-2); font-size: .72rem; font-weight: 700; }
.gl-comment__body { overflow-wrap: anywhere; }
.gl-comment__body > :last-child { margin-bottom: 0; }
.gl-comment__actions { display: flex; gap: 14px; margin-top: 8px; font-size: .88rem; font-weight: 600; }
.gl-comment__actions a { text-decoration: none; }

.gl-comment-form label { display: block; margin-bottom: 6px; color: var(--gl-text-2); font-size: .9rem; font-weight: 600; }
.gl-comment-form p { margin: 0 0 16px; }
.gl-site input[type="text"],
.gl-site input[type="email"],
.gl-site input[type="url"],
.gl-site input[type="password"],
.gl-site input[type="number"],
.gl-site input[type="tel"],
.gl-site textarea,
.gl-site select {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--gl-line);
	border-radius: 10px;
	background: var(--gl-surface);
	color: var(--gl-text);
	font: 400 16px/1.4 var(--gl-font);
}
.gl-site input:focus, .gl-site textarea:focus, .gl-site select:focus { border-color: var(--gl-accent); outline: none; box-shadow: 0 0 0 3px var(--gl-accent-soft); }
.gl-comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.gl-comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* 10 · Fußbereich, Widgets, Seitennavigation ============================= */

.gl-footer {
	margin-top: clamp(32px, 5vw, 64px);
	padding-block: clamp(32px, 5vw, 56px);
	background: var(--gl-surface);
	border-top: 1px solid var(--gl-line);
}
.gl-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.gl-widget { min-width: 0; font-size: .95rem; overflow-wrap: anywhere; }
.gl-widget + .gl-widget { margin-top: 26px; }
.gl-sidebar .gl-widget + .gl-widget { margin-top: 0; }
.gl-widget__title { margin-bottom: 12px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gl-text-3); }
.gl-widget ul { list-style: none; margin: 0; padding: 0; }
.gl-widget li { padding: 7px 0; border-bottom: 1px solid var(--gl-line); }
.gl-widget a { color: var(--gl-text); text-decoration: none; }
.gl-widget a:hover { color: var(--gl-accent-2); }
.gl-widget img, .gl-widget iframe { max-width: 100%; height: auto; }
.gl-sidebar .gl-widget { padding: 20px; border: 1px solid var(--gl-line); border-radius: 14px; background: var(--gl-surface); }

.gl-pagination { margin-top: 40px; }
.gl-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--gl-line);
	border-radius: 10px;
	color: var(--gl-text);
	font-weight: 600;
	text-decoration: none;
}
.gl-pagination .page-numbers.current { background: var(--gl-accent); border-color: var(--gl-accent); color: #fff; }
.gl-pagination a.page-numbers:hover { border-color: var(--gl-accent); }
#infinite-handle span { display: inline-flex; padding: 12px 22px; border-radius: 12px; background: var(--gl-accent); color: #fff; font-weight: 600; cursor: pointer; }
.infinite-scroll #posts + .gl-pagination { display: none; }

.gl-empty { max-width: 640px; margin: 24px auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; color: var(--gl-text-2); }
.gl-empty .gl-search { width: 100%; }

/* Die Bar am Seitenende braucht keinen Abstand nach unten */
.gl-site:not(.gl-bar-fixed) .gl-bar { margin-top: auto; }
.gl-site:not(.gl-bar-fixed) .gl-footer + .gl-bar { margin-top: 0; }

/* 11 · AdSense Auto Ads ==================================================
   Google fügt In-Page-Anzeigen als <div class="google-auto-placed"><ins class="adsbygoogle">
   ein. Diese Regeln sorgen dafür, dass sie sauber zwischen den Inhalten stehen:
   nicht neben Floats, nicht in eine Rasterzelle gequetscht, nie breiter als der Container. */

.google-auto-placed {
	clear: both;
	display: block;
	max-width: 100%;
	margin-block: clamp(20px, 3vw, 36px);
	margin-inline: auto;
	text-align: center;
}
.gl-prose > .google-auto-placed { max-width: var(--gl-wide); }
.gl-grid > .google-auto-placed,
.gl-footer__grid > .google-auto-placed,
.gl-postnav > .google-auto-placed,
.gl-layout--sidebar > .google-auto-placed { grid-column: 1 / -1; margin-block: 4px; }
.gl-hero__actions > .google-auto-placed,
.gl-tags > .google-auto-placed,
.gl-entry__after > .google-auto-placed,
.gl-sidebar__inner > .google-auto-placed { flex: 0 0 100%; width: 100%; margin-block: 0; }
.gl-head > .google-auto-placed { display: none; } /* nie im Titelbereich über dem Bild */
.google-auto-placed ins.adsbygoogle { margin-inline: auto !important; }
.gl-main iframe[id^="aswift"],
.gl-main iframe[id^="google_ads"] { max-width: none; }

/* Leere Flächen ausblenden (von Google empfohlen) */
.gl-ads-hide-unfilled ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.gl-ads-hide-unfilled .google-auto-placed:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }

/* 12 · Mobil: kein horizontales Scrollen ================================ */

.gl-main img,
.gl-main video,
.gl-main canvas,
.gl-main embed,
.gl-main object,
.gl-main iframe:not([id^="aswift"]):not([id^="google_ads"]),
.gl-footer img,
.gl-footer iframe {
	max-width: 100%;
}
.gl-main img:not(.gl-hero__img),
.gl-main video { height: auto; }
.gl-main svg:not(.gl-scene):not(.gl-icon) { max-width: 100%; height: auto; }
.gl-main .wp-block-image img { height: auto; }
.gl-main .wp-video, .gl-main .wp-video-shortcode, .gl-main .mejs-container { max-width: 100% !important; }
.gl-main [style*="width"]:not(ins):not(.google-auto-placed):not([id^="aswift"]) { max-width: 100%; }
.gl-main .wp-block-columns { flex-wrap: wrap; }
.gl-main .wp-block-column { min-width: 0; }

@media (max-width: 781px) {
	.gl-prose > .alignleft,
	.gl-prose > .alignright { float: none; max-width: 100%; margin: 0 auto 1.25em; }
	.gl-prose .wp-block-columns { gap: 1em; }
	.gl-hero .gl-head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.gl-head__elev { flex-direction: row; align-items: baseline; gap: 8px; font-size: 1.3rem; }
	.gl-head__elev small { margin: 0; }
	.gl-hero .gl-head { padding-bottom: 20px; }
}
@media (max-width: 760px) {
	/* Hochformat: Panorama nach Breite skalieren (Langkofel bis Drei Zinnen), unten bündig */
	.gl-scene--hero {
		inset: auto;
		left: 50%;
		bottom: 0;
		width: 200%;
		height: auto;
		aspect-ratio: 1600 / 820;
		transform: translateX(-50%);
	}
	.gl-hero--front .gl-hero__content { padding-bottom: calc(50vw + 32px); }
	.gl-hero--front { min-height: 0; }
	.gl-hero--screen { min-height: calc(100svh - var(--gl-header-total)); }
	.gl-overlay-header .gl-hero--screen { min-height: 100svh; }
}
@media (max-width: 600px) {
	body.gl-site { font-size: 1rem; }
	.gl-hero__actions { flex-direction: column; align-items: stretch; }
	.gl-hero__actions .gl-search { flex-basis: auto; max-width: none; }
	.gl-hero__actions .gl-btn { width: 100%; }
	.gl-postnav__next { text-align: left; }
	.gl-stay { padding: 18px; }
	.gl-prose th, .gl-prose td { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.gl-scene *,
	.gl-card,
	.gl-card__media img { animation: none !important; transition: none !important; }
	.gl-card:hover { transform: none; }
}

@media print {
	.gl-header, .gl-drawer, .gl-bar, .gl-sidebar, .gl-footer, .gl-related, .gl-partner, .gl-stay, .google-auto-placed { display: none !important; }
	body.gl-site { padding: 0; background: #fff; color: #000; }
	.gl-hero { min-height: 0 !important; background: none; color: #000; }
	.gl-hero__bg { display: none; }
	.gl-hero .gl-head__title { color: #000; text-shadow: none; }
}
