/* ==========================================================================
   Bleib Studio — Header
   Brand palette:
     --bleib-primary   #544134  (deep brown)
     --bleib-secondary #7ca4dd  (soft blue)
     --bleib-white     #ffffff
     --bleib-black     #000000
   ========================================================================== */

:root {
	--bleib-primary: #544134;
	--bleib-secondary: #7ca4dd;
	--bleib-white: #ffffff;
	--bleib-black: #000000;
	--bleib-header-height: 90px;
	--bleib-gray: #d4d3d3;
	--bleib-border: 1px solid var(--bleib-gray);
}

/* ---- Header bar --------------------------------------------------------- */
.bleib-header {
	width: 100%;
	background-color: var(--bleib-white);
	border-bottom: var(--bleib-border);
	position: relative;
	z-index: 100;
}

.bleib-header__inner {
	display: flex;
	align-items: stretch;
	min-height: var(--bleib-header-height);
	width: 100%;
}

/* Three columns: fixed sides, flexible center */
.bleib-header__left,
.bleib-header__right {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 120px;
	padding: 0 1rem;
	transition: background-color 0.2s ease;
}

/* Icon boxes (left/right) fill with the brand colour on hover */
.bleib-header__left:hover,
.bleib-header__right:hover {
	background-color: var(--bleib-primary);
}

.bleib-header__left:hover .bleib-iconbtn,
.bleib-header__right:hover .bleib-iconbtn {
	color: var(--bleib-white);
}

.bleib-header__center {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	padding: 0.5rem 1rem;
	border-left: var(--bleib-border);
	border-right: var(--bleib-border);
}

/* ---- Language switcher -------------------------------------------------- */
.bleib-lang {
	color: var(--bleib-primary);
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.bleib-lang:hover,
.bleib-lang:focus {
	color: var(--bleib-primary);
}

/* ---- Logo --------------------------------------------------------------- */
.bleib-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.bleib-logo__img {
	max-height: calc(var(--bleib-header-height) - 40px);
	width: auto;
	height: auto;
	display: block;
}

/* ---- Icon buttons (menu / bag) ------------------------------------------ */
.bleib-iconbtn,
.bleib-iconbtn:hover,
.bleib-iconbtn:focus,
.bleib-iconbtn:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	/* Override the theme's generic <button> background/border/shadow */
	background: transparent;
	background-color: transparent;
	border: none;
	box-shadow: none;
	cursor: pointer;
	color: var(--bleib-primary);
	text-decoration: none;
}

/* The SVG file is used as a mask so the colour follows currentColor */
.bleib-iconbtn__icon {
	display: block;
	width: 28px;
	height: 28px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.bleib-iconbtn__icon--menu {
	-webkit-mask-image: url( ../images/menu.svg );
	mask-image: url( ../images/menu.svg );
}

.bleib-iconbtn__icon--bag {
	-webkit-mask-image: url( ../images/bag.svg );
	mask-image: url( ../images/bag.svg );
}

/* Keyboard focus outline */
.bleib-iconbtn:focus-visible {
	outline: 2px solid var(--bleib-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---- Full-screen navigation overlay ------------------------------------- */
.bleib-nav {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: var(--bleib-primary);
	color: var(--bleib-white);
	z-index: 300;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-2%);
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.bleib-nav.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}

/* The overlay is a vertical stack: full-width top bar, then centered content */
.bleib-nav {
	display: flex;
	flex-direction: column;
}

.bleib-nav__inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 3rem 1rem;
	box-sizing: border-box;
}

/* Top bar: full width, mirrors the main header (ENG | logo | menu button) */
.bleib-nav__topbar {
	flex: 0 0 auto;
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Overlay variant of the header bar — light dividers on the dark background */
.bleib-header__inner--overlay .bleib-header__left,
.bleib-header__inner--overlay .bleib-header__right {
	border-color: rgba(255, 255, 255, 0.18);
}

.bleib-header__inner--overlay .bleib-header__center {
	border-left: 1px solid rgba(255, 255, 255, 0.18);
	border-right: 1px solid rgba(255, 255, 255, 0.18);
}

/* The brown logo is invisible on the dark overlay — invert it to white */
.bleib-header__inner--overlay .bleib-logo__img {
	filter: brightness(0) invert(1);
}

/* Icons sit on the dark overlay — keep them white */
.bleib-header__inner--overlay .bleib-iconbtn {
	color: var(--bleib-white);
}

/* ENG link is on a dark background here, so start it white */
.bleib-header__inner--overlay .bleib-lang {
	color: var(--bleib-white);
}

.bleib-header__inner--overlay .bleib-lang:hover,
.bleib-header__inner--overlay .bleib-lang:focus {
	color: rgba(255, 255, 255, 0.7);
}

/* Body: menu + sidebar */
.bleib-nav__body {
	display: flex;
	flex: 1 1 auto;
	gap: 2rem;
	padding: 2.5rem 0;
}

.bleib-nav__menu-wrap {
	flex: 1 1 auto;
	max-width: 900px;
	padding-right: 2rem;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.bleib-nav__aside {
	flex: 0 0 300px;
	padding-left: 2rem;
	display: flex;
	flex-direction: column;
}

/* Numbered menu list */
.bleib-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: bleib-menu;
}

.bleib-nav__menu > li {
	counter-increment: bleib-menu;
	margin: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bleib-nav__menu > li > a {
	position: relative;
	display: block;
	padding: 1.1rem 0 1.1rem 3.5rem;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.bleib-nav__menu > li > a::before {
	content: "0" counter(bleib-menu);
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	color: var(--bleib-white);
	font-size: 0.85rem;
	font-weight: 600;
}

.bleib-nav__menu > li > a:hover,
.bleib-nav__menu > li > a:focus,
.bleib-nav__menu > li.current-menu-item > a {
	color: var(--bleib-white);
	padding-left: 4rem;
}

.bleib-nav__empty {
	color: rgba(255, 255, 255, 0.75);
	font-size: 1rem;
}

/* Sidebar: get in touch */
.bleib-nav__aside-title {
	margin: 0 0 1.5rem;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.bleib-nav__contact {
	list-style: none;
	margin: 0 0 auto;
	padding: 0;
}

.bleib-nav__contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
	line-height: 1.5;
}

.bleib-nav__contact-icon {
	color: var(--bleib-white);
	flex: 0 0 auto;
	margin-top: 2px;
}

/* Email row uses the emailIcon.svg (masked so it follows currentColor) */
.bleib-nav__contact-icon--email {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url( ../images/emailIcon.svg ) center / contain no-repeat;
	mask: url( ../images/emailIcon.svg ) center / contain no-repeat;
}

.bleib-nav__contact a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	transition: color 0.2s ease;
	word-break: break-word;
}

.bleib-nav__contact a:hover,
.bleib-nav__contact a:focus {
	color: rgba(255, 255, 255, 0.7);
}

/* Login button — white on the dark overlay so it stands out */
.bleib-nav__login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
	padding: 0.85rem 1.5rem;
	background-color: var(--bleib-white);
	color: var(--bleib-primary);
	text-decoration: none;
	font-family: var(--bleib-font-heading, 'Syne', sans-serif);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 8px;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.bleib-nav__login:hover,
.bleib-nav__login:focus {
	opacity: 0.9;
	transform: translateY(-2px);
}

.bleib-nav__login-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url( ../images/arrowWithTail.svg ) center / contain no-repeat;
	mask: url( ../images/arrowWithTail.svg ) center / contain no-repeat;
}

/* Footer */
.bleib-nav__footer {
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.85rem;
}

.bleib-nav__footer p {
	margin: 0;
}

/* Prevent body scroll when the menu is open */
body.bleib-menu-open {
	overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet & below: stack the overlay body */
@media (max-width: 1024px) {
	.bleib-nav__inner {
		padding: 1.5rem 2rem 1rem;
	}

	.bleib-nav__body {
		flex-direction: column;
		gap: 0;
		padding: 1.5rem 0;
	}

	.bleib-nav__menu-wrap {
		max-width: 100%;
		padding-right: 0;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		padding-bottom: 1.5rem;
	}

	.bleib-nav__aside {
		flex: 1 1 auto;
		padding-left: 0;
		padding-top: 2rem;
	}
}

/* Tablet */
@media (max-width: 768px) {
	:root {
		--bleib-header-height: 70px;
	}

	.bleib-header__left,
	.bleib-header__right {
		width: 80px;
		padding: 0 0.5rem;
	}

	.bleib-header__center {
		padding: 0.5rem;
	}
}

/* Mobile */
@media (max-width: 480px) {
	:root {
		--bleib-header-height: 60px;
	}

	.bleib-header__left,
	.bleib-header__right {
		width: 60px;
		padding: 0 0.4rem;
	}

	.bleib-lang {
		font-size: 0.85rem;
	}

	.bleib-toggle {
		width: 34px;
		height: 34px;
	}

	.bleib-toggle__bar {
		width: 24px;
	}

	.bleib-nav__inner {
		padding: 1.25rem 1.25rem 1rem;
	}

	.bleib-nav__menu > li > a {
		padding-left: 2.75rem;
	}

	.bleib-nav__menu > li > a:hover,
	.bleib-nav__menu > li > a:focus,
	.bleib-nav__menu > li.current-menu-item > a {
		padding-left: 3rem;
	}

	.bleib-nav__login {
		width: 100%;
	}
}
