/* Hinweisleiste auf englischen Seiten: „Sie kommen aus Deutschland? → zur deutschen Seite“ */

:root {
	--de-hint-h: 38px;
	--de-hint-bg: #F39200;
	--de-hint-ink: #1C1E21;
	--de-hint-blue: #164194;
}

.has-de-hint #page { padding-top: var(--de-hint-h); }
.has-de-hint.has-bf-topbar #page { padding-top: calc(var(--de-hint-h) + var(--bf-bar-h, 0px)); }
.has-de-hint .site-header { top: var(--wp-admin--admin-bar--height, 0px); }

.de-hint {
	/* Sitzt oben im fixierten Header (padding-top 15px), wie die Black-Friday-Leiste. */
	position: relative;
	margin: -15px 0 15px;
	height: var(--de-hint-h);
	background: var(--de-hint-bg);
}

/* Beide Leisten: die zweite schließt direkt an. */
.de-hint + .bf-topbar { margin-top: -15px; }

.de-hint-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 100%;
	margin: 0;
	padding: 0 52px;
	color: var(--de-hint-ink);
	font-size: 15px;
	line-height: 1;
	white-space: nowrap;
}

.de-hint-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.de-hint-short { display: none; }

.de-hint a,
.de-hint a:visited {
	flex: 0 0 auto;
	color: var(--de-hint-ink);
	font-family: var(--body-font-bold);
	text-decoration: underline;
	text-decoration-color: var(--de-hint-ink);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.de-hint a:hover { color: var(--de-hint-blue); text-decoration-color: var(--de-hint-blue); }
.de-hint a:focus-visible,
.de-hint-close:focus-visible { outline: 2px solid var(--de-hint-ink); outline-offset: 3px; }

.de-hint-close {
	position: absolute;
	top: 50%;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--de-hint-ink);
	cursor: pointer;
}

.de-hint-close:hover { color: var(--de-hint-blue); }

@media (max-width: 767px) {
	:root { --de-hint-h: 34px; }
	.de-hint-inner { font-size: 14px; gap: 10px; padding: 0 44px 0 16px; justify-content: flex-start; }
	.de-hint-close { right: 6px; }
}

@media (max-width: 420px) {
	.de-hint-long { display: none; }
	.de-hint-short { display: inline; }
}
