@charset "UTF-8";

:root {
	--blog-kat-chips-sticky-top-mobile: 0px;
	--blog-kat-chips-edge-pad: max(1rem, calc((100vw - min(100vw, 1200px)) / 2 + 25px));
	--blog-kat-chips-bar-bg: var(--olivgrau, #d0cabe);
	--blog-kat-hero-green: #203a1d;
	--mobile-fixed-header-total: 0px;
	--inflow-top-offset: 0px;
}

@media (min-width: 992px) {
	:root {
		/* Grün klebt nicht — Chips am Viewport-Rand, bis Overlay beide Leisten zeigt */
		--blog-kat-chips-sticky-top: 0px;
	}

	/* Overlay: Chips unter weisser Hauptnav + gruener Utility-Leiste */
	body.desktop-main-nav--overlay {
		--blog-kat-chips-sticky-top: calc(
			var(--desktop-main-nav-height, 62px) + var(--desktop-topbar-height, 36px)
		);
	}
}

/* Blog-Kategorie: Hero mit Kategoriename, Chips-Leiste darunter sticky */
#ueberschrift.page-hero-block--blogkat {
	display: block !important;
}

/* --- Standalone Chips (Blog-Detail, Startseite, Presseschau) --- */
.blog-kat-chips-bar {
	position: sticky;
	top: var(--blog-kat-chips-sticky-top-mobile);
	z-index: 1020;
	background: var(--blog-kat-chips-bar-bg);
	border-bottom: 1px solid rgba(32, 58, 29, 0.16);
	box-shadow: 0 2px 8px rgba(32, 58, 29, 0.07);
	margin-bottom: 0;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

@media (min-width: 992px) {
	.blog-kat-chips-bar {
		top: var(--blog-kat-chips-sticky-top);
		z-index: 1015;
		transition: top var(--desktop-main-nav-slide-duration, 0.34s)
			var(--desktop-main-nav-slide-ease, cubic-bezier(0.22, 1, 0.36, 1));
	}

	.blog-kat-chips-bar + .container.file-blog-detail,
	.blog-kat-chips-bar + .file-blogs > .container,
	.blog-kat-chips-bar + .file-blog-startseite > .container {
		background: #fff;
	}
}

.blog-kat-chips-scroll-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.blog-kat-chips-scroll-wrap::before,
.blog-kat-chips-scroll-wrap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2.5rem;
	pointer-events: none;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.blog-kat-chips-scroll-wrap::before {
	left: 0;
	background: linear-gradient(to right, var(--blog-kat-chips-bar-bg), rgba(208, 202, 190, 0));
}

.blog-kat-chips-scroll-wrap::after {
	right: 0;
	background: linear-gradient(to left, var(--blog-kat-chips-bar-bg), rgba(208, 202, 190, 0));
}

.blog-kat-chips-scroll-wrap.can-scroll-left::before,
.blog-kat-chips-scroll-wrap.can-scroll-right::after {
	opacity: 1;
}

.blog-kat-chips-scroll {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.75rem var(--blog-kat-chips-edge-pad);
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--blog-kat-chips-edge-pad);
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
	touch-action: pan-x;
	cursor: grab;
	outline: none;
}

.blog-kat-chips-scroll::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.blog-kat-chips-scroll.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.blog-kat-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(32, 58, 29, 0.25);
	background: #fff;
	color: #203a1d;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	scroll-snap-align: start;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.blog-kat-chips-scroll.is-dragging .blog-kat-chip {
	pointer-events: none;
}

.blog-kat-chip:hover,
.blog-kat-chip:focus {
	border-color: #79ad4b;
	color: #203a1d;
	background: rgba(121, 173, 75, 0.12);
}

.blog-kat-chip.is-active {
	background: #203a1d;
	border-color: #203a1d;
	color: #fff;
}

.blog-kat-chip.is-active:hover,
.blog-kat-chip.is-active:focus {
	background: #2a4f26;
	border-color: #2a4f26;
	color: #fff;
}

/* --- Blog-Kategorie: grüner Hero-Stack (Titel + Chips) --- */
.blog-kat-mobile-stack {
	display: none;
	position: relative;
	box-sizing: border-box;
	background: var(--blog-kat-hero-green);
	color: #fff;
}

.blog-kat-mobile-stack::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 0.85rem;
	pointer-events: none;
	background: linear-gradient(180deg, var(--blog-kat-hero-green) 0%, var(--sandbeige, #f4efe5) 100%);
}

.blog-kat-mobile-head {
	display: none;
	margin: 0;
	padding: 0.35rem 1rem 0.2rem;
	background: transparent;
	color: #fff;
	text-align: center;
}

.blog-kat-mobile-title {
	margin: 0;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.blog-kat-mobile-stack .blog-kat-chips-bar {
	position: relative;
	top: auto;
	z-index: 1;
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.blog-kat-mobile-stack .blog-kat-chips-scroll-wrap::before {
	background: linear-gradient(to right, var(--blog-kat-hero-green), rgba(32, 58, 29, 0));
}

.blog-kat-mobile-stack .blog-kat-chips-scroll-wrap::after {
	background: linear-gradient(to left, var(--blog-kat-hero-green), rgba(32, 58, 29, 0));
}

.blog-kat-mobile-stack .blog-kat-chips-scroll {
	justify-content: center;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

.blog-kat-mobile-stack .blog-kat-chips-scroll::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.blog-kat-mobile-stack .blog-kat-chip {
	border-color: rgba(255, 255, 255, 0.42);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.blog-kat-mobile-stack .blog-kat-chip:hover,
.blog-kat-mobile-stack .blog-kat-chip:focus {
	border-color: rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.blog-kat-mobile-stack .blog-kat-chip.is-active {
	background: #fff;
	border-color: #fff;
	color: var(--blog-kat-hero-green);
}

.blog-kat-mobile-stack .blog-kat-chip.is-active:hover,
.blog-kat-mobile-stack .blog-kat-chip.is-active:focus {
	background: #f4efe5;
	border-color: #f4efe5;
	color: var(--blog-kat-hero-green);
}

@media (max-width: 991.98px) {
	body:has(#marquee_devumgebung),
	body:has(#marquee_wartungsmodus),
	body:has(#marquee_mollie_testmodus) {
		--inflow-top-offset: 30px;
	}

	.blog-kat-mobile-stack {
		display: grid;
		grid-template-rows:
			calc(var(--mobile-fixed-header-total) - var(--inflow-top-offset))
			minmax(0.35rem, 1fr)
			auto
			auto
			minmax(0.35rem, 1fr);
		min-height: clamp(13.5rem, 42vw, 17.5rem);
		padding-top: 0;
	}

	.blog-kat-mobile-head {
		grid-row: 3;
		display: block;
	}

	.blog-kat-mobile-title {
		font-size: clamp(1.35rem, 5.5vw, 1.9rem);
	}

	.blog-kat-mobile-stack .blog-kat-chips-bar {
		grid-row: 4;
		position: sticky;
		top: var(--blog-kat-chips-sticky-top-mobile);
		margin: 0.2rem 0 0.85rem;
	}

	.blog-kat-mobile-stack .blog-kat-chips-scroll {
		padding: 0.45rem var(--blog-kat-chips-edge-pad) 0.65rem;
	}

	.file-blogs.blogs_asp > .container {
		padding-top: 0.85rem !important;
		padding-bottom: 2rem !important;
	}

	.file-blogs.blogs_asp > .container > .blog-kat-intro {
		margin-top: 0;
		margin-bottom: 1rem;
		max-width: 36rem;
		margin-left: auto;
		margin-right: auto;
		font-size: clamp(1.02rem, 3.8vw, 1.15rem);
		line-height: 1.55;
	}
}

@media (min-width: 992px) {
	.blog-kat-mobile-stack {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.55rem;
		padding: 1.35rem 0 1.15rem;
	}

	.blog-kat-mobile-head {
		display: block;
		width: 100%;
		max-width: 1200px;
		padding: 0 1.5rem;
	}

	.blog-kat-mobile-title {
		font-size: clamp(1.5rem, 2.5vw, 2rem);
	}

	.blog-kat-mobile-stack .blog-kat-chips-bar {
		width: 100%;
	}

	.blog-kat-mobile-stack .blog-kat-chips-scroll {
		padding: 0.35rem var(--blog-kat-chips-edge-pad) 0.55rem;
	}

	.file-blogs.blogs_asp > .container {
		background: #fff;
	}
}

@media (max-width: 575.98px) {
	:root {
		--blog-kat-chips-edge-pad: max(0.5rem, calc((100vw - min(100vw, 1200px)) / 2 + 5px));
	}
}

@media (max-width: 767.98px) {
	#main-content > .file-blogs.blogs_asp {
		padding-top: 0;
		padding-bottom: 0;
	}

	.file-blogs > .container,
	.file-blog-startseite > .container {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.file-blogs .row,
	.file-blog-startseite .row {
		margin-left: 0;
		margin-right: 0;
	}

	.file-blogs .blog-item,
	.file-blog-startseite .blog-item,
	.file-blogs .row > [class*="col-"],
	.file-blog-startseite .row > [class*="col-"] {
		padding-left: 0;
		padding-right: 0;
	}
}

/* Infinite-Scroll Sentinel (Blog-Kategorie + Presseschau) */
.blog-kat-load-sentinel {
	width: 100%;
	height: 1px;
	pointer-events: none;
}

.blog-kat-load-status {
	min-height: 2rem;
}

/* Presseschau-Übersicht: Intro-Überschrift */
.press-overview-intro-title {
	margin: 0 0 0.85rem;
	color: #203a1d;
	font-size: clamp(1.15rem, 2.4vw, 1.45rem);
	font-weight: 700;
	line-height: 1.35;
}
