:root {
	--k2child-header-height: 8rem;
	--k2child-header-height-scroll: 5rem;
}

@media (max-width: 820px) {
	:root {
		--k2child-header-height: 5rem;
		--k2child-header-height-scroll: 5rem;
	}
}

@media (max-width: 450px) {
	:root {
		--k2child-header-height: 4rem;
		--k2child-header-height-scroll: 4rem;
	}
}

.k2header {
	position: fixed;
	z-index: 30;
	top: var(--wp-admin--admin-bar--height, 0);
	left: 0;
	width: 100%;
	height: var(--k2child-header-height);
	background-color: #fff;
	box-shadow: var(--k2-child-shadow);
	transition: 200ms ease-in-out;
}

.k2header .container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.k2header .logo {
	height: var(--k2child-header-height);
	width: auto;
	transition: 200ms ease-in-out;
}

.k2header--scrolling .logo {
	height: var(--k2child-header-height-scroll);
}

@media (min-width: 821px) {
	.k2header--scrolling {
		height: 5rem;
	}
}

.k2header__placeholder {
	height: var(--k2child-header-height);
}

.k2header__navigation-wrapper {
	z-index: 6;
	position: absolute;
	left: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: row-reverse;
	justify-content: center;
	align-items: center;
	gap: 2rem;
}

@media (max-width: 500px) {
	.k2header__navigation-wrapper {
		gap: 1rem;
	}
}

.stadt__leipzig {
	position: absolute;
	right: 0;
	bottom: -46px;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
}

:where(.k2header--scrolling) .stadt__leipzig {
	bottom: -29px;
}


.stadt__leipzig .text {
	font-family: var(--wp--preset--font-family--leipzig-sans) !important;
	font-weight: 500;
	font-size: 21px;
	line-height: 1;
	margin-top: 53px;
}

:where(.k2header--scrolling) .stadt__leipzig .text {
	font-size: 14px;
	margin-top: 33px;
}


@media (max-width: 1200px) {
	.stadt__leipzig {
		position: absolute;
		right: 0;
		bottom: -46px;
		display: flex;
		flex-direction: column;
	}

	.stadt__leipzig .text {
		margin-top: unset;
		font-size: 14px;
		margin-left: 40px;
	}

	:where(:not(.k2header--scrolling) ) .stadt__leipzig .text {
		font-size: 21px;
		margin-left: 64px;
	}

	:where(.k2header--scrolling) .stadt__leipzig .text {
		font-size: 14px;
		margin-left: 40px;
		margin-top: unset;
	}
}

@media (max-width: 820px) {

	.stadt__leipzig {
		bottom: -29px;
	}

	.stadt__leipzig .text {
		margin-top: unset;
		font-size: 14px;
		margin-left: 40px;
	}

}

@media (max-width: 500px) {
	.stadt__leipzig .text {
		font-size: 13px;
		margin-left: 35px;
	}
}

@media (max-width: 450px) {
	.stadt__leipzig .text {
		font-size: 12px;
		margin-left: 28px;
	}
}


/**
Burger Menu Button
 */
.k2header__burger {
	--thickness: 2px;
	position: relative;
	background: none;
	border: none;
	color: var(--secondary-color);
	height: 1.4rem;
	width: 2.3rem;
	cursor: pointer;
	margin-top: 2px; /* Looks more horizontally centered */
}

.k2header__burger:focus-visible {
	border: dashed 1px #000;
}

.k2header__burger span {
	height: var(--thickness);
	width: 100%;
	background: currentColor;
	display: block;
	position: absolute;
	opacity: 1;
	transition: 200ms ease-in-out;
}

.k2header__nav button {
	background: none;
	border: none;
}

.k2header__burger span:nth-child(1) {
	top: 0;
	left: 0;
}

.k2header__burger span:nth-child(2) {
	top: calc(50% - var(--thickness) / 2);
	left: 0;
}

.k2header__burger span:nth-child(3) {
	top: calc(100% - var(--thickness));
	left: 0;
}

/* Menu open state */
.k2header--open .k2header__burger span {
	top: calc(50% - var(--thickness) / 2);
}

.k2header--open .k2header__burger span:nth-child(1) {
	transform: rotate(45deg);
}

.k2header--open .k2header__burger span:nth-child(2) {
	opacity: 0;
}

.k2header--open .k2header__burger span:nth-child(3) {
	transform: rotate(-45deg);
}


/**
Languages
*/

.k2header__languages {
	position: relative;
}

@media (max-width: 500px) {
	.k2header__languages {
		display: flex;
		flex-direction: column;
	}
}

.k2header__language {
	font-size: 1.25rem;
}

.k2header__language--active {
	font-weight: 500;
}

.k2header__language:is(:hover,:focus-visible) {
	font-weight: 500;
}

/**
Navigation
*/
.k2header__nav {
	display: none;
	position: fixed;
	z-index: 5;
	top: 0;
	left: 0;
	background: white;
	width: 100%;
	height: 100vh;
	font-size: 1.2rem;
	padding-top: 5rem;
	overflow: scroll;
}

.k2header__nav .container {
	flex-direction: column;
	text-align: center;
}

.k2header__navlink-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}

.k2header__navlink-wrapper i {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2rem;
	height: 2rem;
	cursor: pointer;
	color: var(--primary-color);
	transition: all 0.3s ease-in-out;
	margin-left: -1rem;
}

.k2header__navlink-wrapper i.rotate {
	transform: rotate(180deg);
}

.k2header__navlink {
	display: block;
	width: 100%;
	padding: 1rem 1.5rem;
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 300;
	font-size: 1.6rem;
	text-transform: uppercase;
}

.k2header__navlink:hover {
	color: var(--primary-color-hover);
}

.k2header__navlink--current {
	color: var(--primary-color-hover);
}

.k2header__navlink--current:hover {
	color: var(--primary-color-hover);
}

/* Submenu */
.k2header__submenu {
	height: 0;
	opacity: 0;
	overflow: hidden;
	display: block;
	margin-bottom: 0;
	transition: all 0.3s ease-in-out;
}

.k2header__submenu.open {
	opacity: 1;
}

.k2header__submenu-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	padding-bottom: 1.5rem;
}

.k2header__sublink {
	display: block;
	width: 100%;
	padding: 0.3rem 1.5rem;
	color: var(--secondary-color);
	text-decoration: none;
	font-weight: 300;
	font-size: 1.2rem;
}

.k2header__sublink:hover {
	color: var(--secondary-color-hover);
}

.k2header__sublink--current {
	color: var(--secondary-color-hover);
}

.k2header__sublink--current:hover {
	color: var(--secondary-color-hover);
}

/* Menu open state */
.k2header--open .k2header__nav {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	animation: k2header-menu 200ms ease-in-out;
}

/**
Animation
*/
@keyframes k2header-menu {
	from {
		opacity: 0;
		transform: translateY(-1rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
