/* Mysterra Hinweisleiste */
.ms-notice {
	position: relative; z-index: 60;
	background: var(--ms-n-bg, #1d4ed8); color: var(--ms-n-fg, #fff);
	font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px; line-height: 1.35;
	transition: opacity .25s, transform .25s;
}
.ms-notice--sticky { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
.ms-notice.is-closing { opacity: 0; transform: translateY(-100%); }
.ms-notice__inner {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
	max-width: 1600px; margin: 0 auto; padding: 11px 56px 11px clamp(16px, 3vw, 40px);
}
.ms-notice__icon {
	flex: none; display: inline-grid; place-items: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--ms-n-fg, #fff); color: var(--ms-n-bg, #1d4ed8);
	font: 800 15px/1 "Inter Tight", Arial, sans-serif;
}
.ms-notice--wichtig .ms-notice__icon { animation: ms-pulse 1.8s ease-in-out infinite; }
@keyframes ms-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 50% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }
.ms-notice__msg { margin: 0; }
.ms-notice__msg strong { font-weight: 700; margin-right: 4px; }
.ms-notice__link {
	color: inherit !important; font-weight: 600; text-decoration: none; white-space: nowrap;
	border: 1px solid currentColor; border-radius: 999px; padding: 4px 12px; font-size: 13px;
	transition: background .2s, color .2s;
}
.ms-notice__link:hover { background: var(--ms-n-fg, #fff); color: var(--ms-n-bg, #1d4ed8) !important; }
.ms-notice__close {
	position: absolute; right: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%);
	width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
	background: transparent; color: inherit; font-size: 24px; line-height: 1; opacity: .8;
}
.ms-notice__close:hover { opacity: 1; background: rgba(127,127,127,.2); }
@media (max-width: 600px) {
	.ms-notice { font-size: 14px; }
	.ms-notice__inner { justify-content: flex-start; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ms-notice--wichtig .ms-notice__icon { animation: none; } }

/* Fixierten Seiten-Header unter die Leiste schieben */
body .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
body.ms-has-sticky-notice .site-header { top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ms-notice-h, 0px)); }
