header {
	z-index: 100;
	position: sticky;
	top: 0;
	background-color: var(--background-color);
	box-shadow: 0 0 10px #0005;
}

#Logo {
	display: inline-block;
	position: relative;
	vertical-align: middle;
	margin-bottom: -4px;
	padding: 0 0.5em;
	text-decoration: none;
	white-space: nowrap;
	color: var(--text-color);
}
#Logo .first-row {
	display: flex;
	flex-direction: column;
	align-items: center;
}
#Logo .first-row .logo {
	position: relative;
}
#Logo img {
	height: 54px;
	width: 54px;
	vertical-align: middle;
	filter: drop-shadow(-5px -3px 6px #fff);
}
#Logo .name {
	color: var(--highlight-color);
}
#Logo .name b {
	font-weight: bold;
	color: black;
}
#Logo .subtitle {
	display: none;
	text-align: center;
	font-size: 14px;
	line-height: 1em;
	color: black;
}
@media (min-width: 550px) {
	#Logo {
		margin-bottom: -2px;
	}
	#Logo .first-row {
		flex-direction: row;
	}
	#Logo .name {
		font-size: 34px;
		position: relative;
		left: -3px;
		top: 2px;
	}
	#Logo img {
		height: 64px;
		width: 64px;
	}
	#Logo .subtitle {
		display: block;
	}
}


#HeaderTop {
	padding: 8px 16px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1152px;
	box-sizing: border-box;
}
#HeaderLeft,
#HeaderRight {
	flex: 1 1 33%;
	align-self: center;
}
#HeaderLeft ul {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
	align-items: start;
	gap: 0.6em 0.3em;
}
@media (min-width: 700px) {
	#HeaderLeft ul {
		flex-direction: row;
		justify-content: left;
		align-items: center;
		gap: 0.3em 1em;
	}
}
#HeaderLeft li {
	list-style: none;
}
#HeaderLeft a {
	padding: 0.3em 0.5em;
	text-decoration: none;
	color: black;
}

#HeaderRight {
	z-index: 2;
	display: flex;
	flex-direction: row;
	justify-content: right;
	align-items: center;
	max-width: calc(50% - 2em);
}
#anfrageButton {
	position: relative;
	text-decoration: none;
	background-color: #333;
	color: var(--background-color);
	border-radius: 4px;
	padding: 8px 16px;
	font-weight: bold;
}
#anfrageButton:hover,
#anfrageButton:focus {
	--highlight-color: hsl(210, 100%, 55%);
	background-color: #888;
}
#anfrageButton:hover span:last-of-type,
#anfrageButton:focus span:last-of-type {
	border-radius: 4px;
	box-shadow: 0 0 8px #000a;
}

#anfrageButton span {
	position: absolute;
	display: block;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}
#anfrageButton span::before,
#anfrageButton span::after {
	content: "";
	position: absolute;
	border: solid 3px var(--highlight-color);
	transition: all 0.1s ease-in-out;
}
#anfrageButton span::before {
	left: -32px;
	top: 21px;
	width: 22px;
	height: 18px;
	border-radius: 20px 0 0 0;
	border-color: var(--highlight-color) transparent transparent transparent;
	transform: rotate(-10deg);
}
#anfrageButton:hover span::before,
#anfrageButton:focus span::before {
	left: -20px;
	top: 14px;
	transform: rotate(5deg);
}
#anfrageButton span::after {
	left: -16px;
	top: 14px;
	width: 10px;
	height: 10px;
	border-radius: 0 4px 0 0;
	border-width: 3px 3px 0 0;
	transform: rotate(25deg);
}
#anfrageButton:hover span::after,
#anfrageButton:focus span::after {
	left: 0px;
	top: 10px;
	transform: rotate(40deg);
}
#anfrageButton span:first-of-type {
	z-index: 2;
	overflow: hidden;
}
#anfrageButton span:last-of-type {
	z-index: -1;
}
#anfrageButton span:first-of-type::before {
	border-color: var(--background-color) transparent transparent transparent;
}
#anfrageButton span:first-of-type::after {
	border-color: var(--background-color);
}

#CategoryButtons {
	color: white;
	background-color: #1c1c1c;
	overflow: auto;
	white-space: nowrap;
	text-align: center;
	padding: 0.5em;
	margin: 0;
}
#CategoryButtons li {
	list-style: none;
	display: inline-block;
	margin-right: 0.5em;
}
#CategoryButtons li:last-of-type {
	margin-right: 0;
}
#CategoryButtons a {
	display: inline-block;
	padding: 0.3em 0.5em 0.15em;
	cursor: pointer;
	color: white;
	text-decoration: none;
}
#CategoryButtons a:hover {
	background-color: #444;
	border-radius: 4px;
}

#headerCollapseCheckbox {
	display: none;
}

#CategoryButtons .separator {
	margin: 0.5em auto;
	max-width: 100px;
	border-bottom: solid 1px white;
}
#HeaderLeft label,
#CategoryButtons .collapsed-only {
	display: none;
}
@media (max-width: 500px) {
	header {
		border-bottom: 3px solid #1c1c1c;
	}
	#HeaderLeft label {
		display: inline-block;
		position: relative;
		left: -0.5em;
		padding: 1em;
		min-width: 2em;
		min-height: 1.5em;
		box-sizing: content-box;
		cursor: pointer;
	}
	#HeaderLeft label::before,
	#HeaderLeft label::after {
		content: "";
		display: block;
		width: 2em;
		height: 0.75em;
		box-sizing: border-box;
		cursor: pointer;

		border-top-style: solid;
		border-bottom-style: solid;
		border-color: #1c1c1c;
		border-width: 2px;
	}
	#HeaderLeft label::before {
		border-bottom-width: 1px;
	}
	#HeaderLeft label::after {
		border-top-width: 1px;
	}
	#headerCollapseCheckbox:checked ~ #HeaderTop #HeaderLeft label::before,
	#headerCollapseCheckbox:checked ~ #HeaderTop #HeaderLeft label::after {
		position: absolute;
		top: 50%;
		height: 0;
		border-top: none;
		border-bottom-width: 2.5px;
		transform-origin: 50% 50%;
	}
	#headerCollapseCheckbox:checked ~ #HeaderTop #HeaderLeft label::before {
		transform: rotate(45deg);
	}
	#headerCollapseCheckbox:checked ~ #HeaderTop #HeaderLeft label::after {
		transform: rotate(-45deg);
	}

	#headerCollapseCheckbox:checked ~ #CategoryButtons {
		display: block;
	}

	#HeaderLeft ul,
	#CategoryButtons {
		display: none;
	}
	#CategoryButtons .collapsed-only {
		display: block;
	}
	#CategoryButtons li {
		display: block;
		margin-right: 0;
		font-size: 150%;
	}
}
