/*
 * Logo tab, front page only.
 *
 * Sizing comes from --logo-h / --logo-inset / --logo-w in tokens.css so the
 * clearance the hero reserves for it (--logo-clear) stays correct
 * automatically. The tab holds the square mark (logo.png); its right corners
 * are rounded by half its height, so the mark sits in a lozenge that reads as
 * a continuation of the circular logo rather than a box around it.
 *
 * The mark is centred with flexbox. It used to be absolutely positioned with a
 * hand-tuned `margin-top: 4px`, which only looked centred at the one aspect
 * ratio the old wordmark happened to have.
 */
.Logo_mit_Balken {
	position: absolute;
	width: var(--logo-w);
	height: var(--logo-h);
	left: 0px;
	top: var(--logo-top);
	overflow: visible;
	background-color: white;
	border-top-right-radius: calc(var(--logo-h) / 2);
	border-bottom-right-radius: calc(var(--logo-h) / 2);
	filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.6));
	z-index: var(--z-logo);
}

.Logo_mit_Balken a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 100%;
	/* Optical, not geometric: the tab's right edge is a semicircle, so an
	   equal padding on both sides would push the mark visibly left of centre
	   within the shape it actually occupies. */
	padding-left: calc(var(--logo-inset) * 0.75);
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.Logo_mit_Balken a:hover {
	transform: scale(1.03);
}

.Logo_mit_Balken a:focus-visible {
	outline: 3px solid #00B8AE;
	outline-offset: 4px;
	border-radius: calc(var(--logo-h) / 2);
}

.logo {
	display: block;
	height: calc(var(--logo-h) - var(--logo-inset));
	width: auto;
	max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.Logo_mit_Balken a {
		transition: none;
	}
	.Logo_mit_Balken a:hover {
		transform: none;
	}
}
