/* Kontaktleiste Smartphone: schlanker, mit Symbolen, blendet sich beim Herunterscrollen aus. */

/* Seite darf nie seitlich verrutschen (schneidet nur ab, ohne eigenen Scrollbereich). */
.wp-site-blocks {
	overflow-x: clip;
}

@media (max-width: 781px) {
	html body {
		padding-bottom: 60px;
	}

	html body .wp-block-buttons.nordstern-mobile-cta {
		gap: 0.4rem;
		padding: 0.4rem 0.6rem calc(0.4rem + env(safe-area-inset-bottom));
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
		transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.32s ease;
		will-change: transform;
	}

	html body .wp-block-buttons.nordstern-mobile-cta.ist-versteckt {
		transform: translateY(calc(100% + 2px));
		box-shadow: none;
	}

	html body .nordstern-mobile-cta .wp-block-button__link {
		min-height: 44px;
		gap: 0.4rem;
		padding: 0.45rem 0.4rem;
		border-radius: 10px;
		font-size: 0.875rem;
		line-height: 1.1;
		white-space: nowrap;
	}

	html body .nordstern-mobile-cta .wp-block-button:nth-child(1) .wp-block-button__link::before,
	html body .nordstern-mobile-cta .wp-block-button:nth-child(2) .wp-block-button__link::before {
		content: "";
		flex: none;
		width: 1rem;
		height: 1rem;
		background: currentColor;
		-webkit-mask: var(--ns-symbol) center / contain no-repeat;
		mask: var(--ns-symbol) center / contain no-repeat;
	}

	html body .nordstern-mobile-cta .wp-block-button:nth-child(1) .wp-block-button__link {
		--ns-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
	}

	html body .nordstern-mobile-cta .wp-block-button:nth-child(2) .wp-block-button__link {
		--ns-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 21l2.1-5.4A8.4 8.4 0 1 1 21 11.5z'/%3E%3C/svg%3E");
	}

	/* Platz für die Leiste beim Wisch-Effekt anpassen */
	html body .nordstern-wipe-track.is-wipe-ready > .nordstern-wipe {
		padding-bottom: calc(60px + var(--wp--preset--spacing--50)) !important;
	}
	html body .nordstern-wipe.is-wipe-ready > .nordstern-wipe__hint {
		bottom: calc(60px + 1rem) !important;
	}
}

@media (max-width: 781px) and (prefers-reduced-motion: reduce) {
	html body .wp-block-buttons.nordstern-mobile-cta {
		transition: none;
	}
}
