/**
 * Newsletter-Ticker: 3 gleich breite Spalten pro Viewport → Abstände auch zwischen
 * den Segmenten gleichmäßig (kein „space-evenly“-Doppelabstand am Loop).
 */

.wolff-nt-spacer {
	height: var(--wolff-nt-height, 50px);
	pointer-events: none;
	flex-shrink: 0;
}

.wolff-nt.wolff-nt--link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.wolff-nt.wolff-nt--link:hover,
.wolff-nt.wolff-nt--link:focus {
	text-decoration: none;
	color: inherit;
}

.wolff-nt.wolff-nt--link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wolff-nt {
	box-sizing: border-box;
	position: fixed;
	left: 0;
	right: auto;
	top: 0;
	z-index: 999;
	width: 100vw;
	max-width: 100vw;
	overflow: hidden;
	contain: paint;
	background-color: var(--wolff-nt-bg, #97b5c4);
	color: #000;
	font-family: inherit;
	line-height: 1.2;
}

body.admin-bar .wolff-nt {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .wolff-nt {
		top: 46px;
	}
}

.wolff-nt__marquee {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	height: var(--wolff-nt-height, 50px);
}

.wolff-nt,
.wolff-nt__marquee {
	max-width: 100%;
	overflow: hidden;
}

.wolff-nt__track {
	display: flex;
	flex-wrap: nowrap;
	width: 200%;
	animation: wolff-nt-scroll linear infinite;
	animation-duration: var(--wolff-nt-duration, 45s);
	will-change: transform;
}

.wolff-nt__segment {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	box-sizing: border-box;
	flex: 0 0 50%;
	width: 50%;
	height: var(--wolff-nt-height, 50px);
	padding-inline: clamp(0.75rem, 3vw, 1.5rem);
	column-gap: 0;
}

.wolff-nt__item {
	min-width: 0;
	margin: 0;
	padding: 0;
	font-size: var(--wolff-nt-font-size, 15px);
	font-weight: 700;
	white-space: nowrap;
	line-height: 1;
	text-align: center;
}

@keyframes wolff-nt-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		/* Eine Viewport-Breite: zweites Segment übernimmt nahtlos */
		transform: translate3d(-50%, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wolff-nt__track {
		animation: none;
		transform: none;
	}
}

/* OYM — fixer Header unter dem Ticker */
body:not(.admin-bar) .oym-header:not(.elementor-sticky__spacer):is(.is-on-hero, .is-after-hero, .elementor-sticky--active, .elementor-sticky--effects) {
	top: var(--wolff-nt-height, 50px) !important;
}

body.admin-bar .oym-header:not(.elementor-sticky__spacer):is(.is-on-hero, .is-after-hero, .elementor-sticky--active, .elementor-sticky--effects) {
	top: calc(32px + var(--wolff-nt-height, 50px)) !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .oym-header:not(.elementor-sticky__spacer):is(.is-on-hero, .is-after-hero, .elementor-sticky--active, .elementor-sticky--effects) {
		top: calc(46px + var(--wolff-nt-height, 50px)) !important;
	}
}

@media (max-width: 767px) {
	.wolff-nt {
		--wolff-nt-font-size: 10px;
	}

	.wolff-nt__segment {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-inline: 0.5rem;
		overflow: hidden;
	}

	.wolff-nt__segment .wolff-nt__item:nth-child(n+3) {
		display: none;
	}

	.wolff-nt__item {
		font-size: var(--wolff-nt-font-size);
		white-space: nowrap;
		line-height: 1;
		overflow: hidden;
		text-overflow: clip;
	}
}