/* Desktop layout: zweispaltiger Bild-und-Text-Block und größere Flächen. */
@media (min-width: 900px) {
	.belivo-header.belivo-header--topbar-desktop-hidden .belivo-header-topbar {
		display: none !important;
	}

	.belivo-header.is-scrolled.belivo-header--topbar-desktop-hide-scroll .belivo-header-topbar {
		max-height: 0;
		opacity: 0;
		margin-top: 0;
		pointer-events: none;
	}

	.belivo-header.is-scrolled.belivo-header--topbar-desktop-sticky-scroll {
		padding-block: 0 !important;
		min-height: 0 !important;
	}

	.belivo-header.is-scrolled.belivo-header--topbar-desktop-sticky-scroll > :not(.belivo-header-topbar) {
		display: none !important;
	}

	.belivo-header.belivo-header--topbar-desktop-hidden {
		padding-top: 0 !important;
	}

	.belivo-header.is-scrolled.belivo-header--topbar-desktop-hide-scroll {
		padding-top: 0 !important;
	}

	.belivo-header.is-topbar-hidden {
		padding-top: 0 !important;
		margin-top: calc(-1 * var(--wp--preset--spacing--40)) !important;
		min-height: 0 !important;
	}

	.is-style-sticky-desktop-header {
		position: sticky !important;
		top: 0 !important;
		z-index: 1000;
		align-self: flex-start;
		background: var(--wp--preset--color--base);
		box-shadow: 0 1px 0 rgb(24 43 36 / 0.12);
	}

	.wp-block-template-part.is-style-sticky-desktop-header {
		position: sticky;
		top: 0;
		z-index: 1000;
		background: var(--wp--preset--color--base);
		box-shadow: 0 1px 0 rgb(24 43 36 / 0.12);
	}

	.wp-block-template-part:has(> .is-style-sticky-desktop-header) {
		position: sticky;
		top: 0;
		z-index: 1000;
	}

	body.admin-bar .is-style-sticky-desktop-header,
	body.admin-bar .wp-block-template-part:has(> .is-style-sticky-desktop-header),
	body.admin-bar .wp-block-template-part.is-style-sticky-desktop-header {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

@media (min-width: 640px) {
	.belivo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.belivo-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.belivo-blog-round-grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
		column-gap: 3rem;
		row-gap: 2.5rem;
	}

	.belivo-footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

/* Dezente Hover-Bewegungen aus dem Bereich „Belivo Animationen“.
 * Die Mausabfrage reicht aus: So funktioniert die Vorschau auch bei einer
 * schmalen Editorfläche, bleibt auf Touch-Geräten aber deaktiviert. */
@media (hover: hover) and (pointer: fine) {
	.belivo-hover-lift,
	.belivo-hover-zoom,
	.belivo-hover-slide-right {
		transition: translate 240ms ease, scale 240ms ease, box-shadow 240ms ease;
		will-change: translate, scale;
	}

	.belivo-hover-lift:hover {
		translate: 0 -6px;
		box-shadow: 0 12px 28px rgb(24 43 36 / 0.14);
	}

	.belivo-hover-zoom:hover {
		scale: 1.025;
	}

	.belivo-hover-slide-right:hover {
		translate: 6px 0;
	}
}

@media (min-width: 900px) {

	.belivo-section {
		padding-block: clamp(3rem, 6vw, 5rem);
	}

	.belivo-split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.5rem;
	}

	.belivo-split.is-style-belivo-reverse > :first-child {
		order: 2;
	}

	.belivo-split.is-style-belivo-reverse > :last-child {
		order: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.belivo-hover-lift,
	.belivo-hover-zoom,
	.belivo-hover-slide-right {
		transition: none !important;
		translate: none !important;
		scale: none !important;
	}

	.belivo-hover-lift:hover,
	.belivo-hover-zoom:hover,
	.belivo-hover-slide-right:hover {
		translate: none !important;
		scale: none !important;
		box-shadow: none !important;
	}
}

@media (min-width: 1080px) {
	.belivo-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.belivo-blog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.belivo-blog-round-grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
		gap: 2.5rem;
	}

	.belivo-blog-round-card {
		flex-direction: row;
		align-items: center;
		text-align: left;
	}
}
