/*
 * Inner-page nav bar: the e-mail address left of the circle, the phone number
 * right of it.
 *
 * The bar used to be ~76px tall with an "Anfrage stellen" button at its right
 * end. The button went on the customer's request, the phone number moved into
 * its place, and with a single line of small text either side the bar is now a
 * slim strip the circle stands on — see --navbar-h in tokens.css.
 */
.navbar-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 2.2vw, 40px);
}

/*
 * Fixed basis, and the circle inside is centred rather than auto-margined.
 * On hover the circle grows from --nav-size to --nav-size-full; centring lets
 * it overflow this holder symmetrically and ride over the stripes, whereas
 * `margin-inline: auto` would resolve to 0 once the box exceeds its container
 * and shove everything to the right.
 */
.navcircle-holder {
	flex: 0 0 var(--nav-size);
	display: flex;
	justify-content: center;
	min-width: 0;
}

.navcircle-holder > .navcircle {
	margin-inline: 0;
}

.navbar-stripe {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	font-family: 'Open Sans', sans-serif;
}

.navbar-stripe--right {
	justify-content: flex-end;
}

/* --- Contact ------------------------------------------------------------- */
/*
 * A quiet light grey, not a brand colour: these are reference details, not a
 * call to action. #d8d8d8 on the footer's #343a40 is 8.1:1.
 *
 * 24px tall at least — WCAG 2.5.8's minimum target, which is what a strip this
 * slim can still hold.
 */
.navbar-contact {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 24px;
	font-size: clamp(12px, 0.8vw, 13px);
	font-weight: 600;
	color: #d8d8d8;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 3px;
}

.navbar-contact i {
	color: #d8d8d8;
	font-size: 0.95em;
	width: 1em;
	text-align: center;
	flex: none;
	opacity: 0.8;
}

.navbar-contact:hover,
.navbar-contact:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.navbar-contact:hover i,
.navbar-contact:focus-visible i {
	color: #fff;
	opacity: 1;
}

.navbar-contact:focus-visible {
	outline: 2px solid var(--brand-teal);
	outline-offset: 2px;
}

/*
 * Narrow viewports: the circle alone is 145px of a 390px screen, which leaves
 * about 100px a side — not enough for the address or the number, so each link
 * shows just its icon.
 *
 * The label is clipped rather than display:none. It is the link's only text,
 * so hiding it outright left both links without an accessible name; this way a
 * screen reader still announces the address and the number.
 */
@media (max-width: 859px) {
	.navbar-contact-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.navbar-contact {
		justify-content: center;
		min-width: 40px;
	}

	.navbar-contact i {
		font-size: 14px;
	}
}
