/* Topbar (WIDURO, 04.11.2026) - Header-Umbau Teil A.1
   Dunkle Leiste ganz oben im Header. Inhalt: Elementtyp "Header-Punkt" (.wd-hp) im
   versteckten Artikel "topbar", ausgegeben vom Modul "Header – Topbar":

     <link rel="stylesheet" href="/files/template/css/topbar.css">
     <div class="wd-topbar"><div class="container wd-topbar__inner">{{insert_article::topbar}}</div></div>

   Flex-Zeile ist das Element, das die Punkte direkt enthaelt (per :has) - egal, wie viele
   Wrapper das Artikel-Template drumherum legt (04.11.: .mod_article war nicht direktes Kind).
   Alle Regeln fuer .wd-hp sind unter .wd-topbar eingegrenzt; dieselben Elemente stehen auch
   in der Header-Zeile (header-bar.css).
   Desktop ab 992 px: alle Punkte, verteilt, mit Trennstrichen.
   Darunter: nur Punkte mit "auch mobil zeigen", Text darf umbrechen. */

.wd-topbar {
	background: #05282c;
	color: #fff;
	font-size: 15px;
	line-height: 1.25;
}

.wd-topbar__inner:has(> .wd-hp),
.wd-topbar__inner :has(> .wd-hp) {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	min-height: 48px;
	margin: 0;
	padding: 0;
}

.wd-topbar .wd-hp {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	margin: 0;
	padding: 0 16px;
	border-left: 1px solid rgba(255, 255, 255, .28);
}

.wd-topbar .wd-hp:first-child {
	padding-left: 0;
	border-left: 0;
}

.wd-topbar .wd-hp:last-child {
	padding-right: 0;
}

.wd-topbar .wd-hp__link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	white-space: nowrap;
	font-weight: 500;
}

.wd-topbar .wd-hp__sub {
	margin-left: .4em;
	opacity: .8;
	font-weight: 400;
}

.wd-hp__link[data-href] {
	cursor: pointer;
}

.wd-topbar .wd-hp__link[data-href]:hover .wd-hp__text,
.wd-topbar .wd-hp__link[data-href]:focus-visible .wd-hp__text {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wd-hp__icon::before {
	content: attr(data-icon);
}

.wd-topbar .wd-hp__icon {
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
}

/* 992-1399 px: sechs Punkte passen nur kleiner in den Container */
@media (min-width: 992px) and (max-width: 1399.98px) {
	.wd-topbar {
		font-size: 13px;
	}

	.wd-topbar .wd-hp {
		padding: 0 10px;
	}

	.wd-topbar .wd-hp__link {
		gap: 6px;
	}

	.wd-topbar .wd-hp__icon {
		font-size: 18px;
	}
}

@media (max-width: 991.98px) {
	.wd-hp--desktop {
		display: none !important;
	}

	.wd-topbar {
		font-size: 13px;
	}

	.wd-topbar__inner:has(> .wd-hp),
	.wd-topbar__inner :has(> .wd-hp) {
		min-height: 56px;
		justify-content: space-around;
	}

	.wd-topbar .wd-hp {
		padding: 6px 10px;
		flex: 1 1 0;
		justify-content: center;
		border-left: 0;
	}

	/* Trennstrich nur zwischen sichtbaren Punkten */
	.wd-topbar .wd-hp:not(.wd-hp--desktop) ~ .wd-hp:not(.wd-hp--desktop) {
		border-left: 1px solid rgba(255, 255, 255, .28);
	}

	.wd-topbar .wd-hp__link {
		white-space: normal;
		gap: 8px;
	}

	.wd-topbar .wd-hp__icon {
		font-size: 22px;
	}

	/* Automatischer Wechsel (topbar.js, 05.11.2026): je 3 Punkte, alle 4 s die naechsten */
	.wd-topbar .wd-hp.is-off {
		display: none !important;
	}

	.wd-topbar .wd-hp.is-first {
		border-left: 0 !important;
	}

	.wd-topbar__inner:has(> .wd-hp),
	.wd-topbar__inner :has(> .wd-hp) {
		transition: opacity .35s ease;
	}

	.wd-topbar__inner.is-fading,
	.wd-topbar__inner .is-fading {
		opacity: 0;
	}
}
