.menu-link font {
	display: inline-block;
}

/* Feste Mindestbreite: Hinweis mit Flagge, das zunächst leere Google-Element und das fertige Widget
   sind unterschiedlich breit. Die Navigation verteilt den Platz (space-between), ohne feste Breite
   rutschen die Menüpunkte beim Laden hin und her. */
@media only screen and (min-width: 992px) {
	#google_translate_container {
		min-width: 175px;
		display: flex;
		justify-content: flex-end;
	}
}

#google_translate_element * {
	display: flex;
	align-items: center;
}

#google_translate_element img {
	width: inherit;
}

.translate-fallback-dropdown {
	position: relative;
	display: inline-block;
}

.translate-fallback-dropdown .dropdown-content {
	position: absolute;
	background-color: #f9f9f9;
	width: 300px; /* Platz für bis zu 7 Flaggen in einer Reihe */
	text-align: center;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	padding: 12px 16px;
	z-index: 10000;
	border: 1px solid #ccc;
	top: 100%;
	left: -118px;
}

.translate-fallback-dropdown .dropdown-content:hover {
	cursor: default;
}

.translate-fallback-dropdown .flags img {
	border: 1px solid #aaa;
	width: 34px;
}

.fallback-link {
	padding: 16px 0;
	color: inherit;
	cursor: pointer;
	line-height: 0;
	text-decoration: none;
	touch-action: manipulation;
}

.fallback-link .dropdown-content {
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px); /* small downward shift, optional */
	transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
	line-height: 170%;
}

.fallback-link.is-open .dropdown-content {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media only screen and (min-width: 992px) and (max-width: 1203px) {
	.nav-menu .nav-link {
		padding: 5px 2px;
	}
}

@media only screen and (max-width: 991px) {
	#google_translate_container {
		max-width: 175px;
		margin-left: auto;
		margin-right: 20px;
	}

	.fallback-link {
		padding: 12px 0;
	}

	.translate-fallback-dropdown {
		position: initial;
	}

	.translate-fallback-dropdown .dropdown-content {
		position: absolute;
		left: 0;
		right: 0;
		width: 100%;
	}
}

/* Google Translate wraps text in <font> elements. Inside the flex container
   .text-span the <br> then no longer shares a flex item with the text, the
   empty first line disappears and the negative margin-top pulls the subtitle
   into the heading. Only applies while a translation is active. */
.translated-ltr .text-span {
	margin-top: 0;
}

.translated-ltr .text-span br {
	display: none;
}

/* Flaggen-Reihen im Hinweis (Aufteilung in backend/includes/frontend/google-translator.php) */
.translate-fallback-dropdown .flags .flag-row {
	display: block;
}
