.leipert-spines {
	display: flex;
	height: 100vh;
}
.leipert-spine {
	width: 56px;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 18px;
	padding: 32px 0;
	color: #b5651d;
	text-decoration: none;
	box-sizing: border-box;
	background: #fff;
	transition: all .2s linear;
	background-color: #fff;
}

.leipert-spines--left  .leipert-spine { border-right: 1px solid #B16F4A; }
.leipert-spines--right .leipert-spine { border-left:  1px solid #B16F4A; }
.leipert-spine__num {
	font-size: 25px;
	line-height: 1;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transform: rotate(180deg);
	color: #b5651d;
	font-weight: 300;
}
.leipert-spine__label {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transform: rotate(180deg);
	letter-spacing: .12em;
	font-size: 25px;
	font-weight: 300;
	white-space: nowrap;
	text-transform: uppercase;
	margin-top: auto;
	transition: all .2s linear;
	color: #b5651d !important;
}
.leipert-spine.is-active {
	font-weight: 500;
}
.leipert-spine:hover {
	color: #bb5e0b6b !important;
}
#site-header,
#site-footer {
	display: none !important;
}

/* ---- Desktop: fixed spines ---- */
@media (min-width: 768px) {
	.leipert-spines--left {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		z-index: 100;
	}
	.leipert-spines--right {
		position: fixed;
		top: 0;
		right: 0;
		height: 100vh;
		z-index: 100;
	}

	/* ===== CONTENT GUTTERS — single source of truth ===== */

	/* Text pages (Über uns, etc.): clear the spines. */
	body:not(.home) #desktop-content {
		padding-left: 224px !important;
		padding-right: 168px !important;
		box-sizing: border-box !important;
	}

	/* Full-bleed pages: flush against the left spines, flush right.
	   2 = Leistungen/Fachbereiche, 14 = Referenzprojekte, 16 = Kontakt und Jobs */
	body.page-id-2 #desktop-content,
	body.page-id-14 #desktop-content,
	body.page-id-16 #desktop-content {
		padding-left: 56px !important;
		padding-right: 0 !important;
		box-sizing: border-box !important;
	}

	/* Single project pages: no wrapper gutter — .lp-detail handles it. */
	body.single-projekt #desktop-content {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Project text column: +56px for the Home spine (216 -> 272).
	   !important beats the shortcode's inline <style>. */
	body.single-projekt .lp-detail__text {
		padding-left: 272px !important;
	}
}

/* Project pages, in-between widths: 180 -> 236 for the Home spine. */
@media (min-width: 768px) and (max-width: 1100px) {
	body.single-projekt .lp-detail__text {
		padding-left: 236px !important;
	}
}

/* ---- Mobile bottom menu ---- */
.leipert-mobile {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
}
.leipert-mobile__trigger {
	position: relative;
	z-index: 2;
	display: block;
	padding: 18px 20px;
	color: #b5651d;
	font-size: 17px;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-top: 1px solid #d8d8d8;
	cursor: pointer;
	background: #fff;
}
.leipert-mobile__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
}
.leipert-mobile__toggle:checked ~ .leipert-mobile__panel {
	max-height: 70vh;
	overflow-y: auto;
}
.leipert-mobile__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	color: #b5651d;
	text-decoration: none;
	font-size: 17px;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-top: 1px solid #d8d8d8;
}
.leipert-mobile__num {
	font-size: 17px;
	opacity: .9;
}
.leipert-mobile__trigger-close { display: none; }
.leipert-mobile__toggle:checked ~ .leipert-mobile__trigger .leipert-mobile__trigger-open { display: none; }
.leipert-mobile__toggle:checked ~ .leipert-mobile__trigger .leipert-mobile__trigger-close { display: inline; }

/* ---- Responsive visibility ---- */
@media (max-width: 767px) {
	#hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
	#hide-desktop { display: none !important; }
}

.team-email,
.team-phone {
	color: #000;
	text-decoration: none;
}
.team-email:hover,
.team-phone:hover {
	text-decoration: underline;
}

.referenze-link:hover {
	opacity: 0.6;
	transition: all .2s;
}
.reference-sub-link:hover {
	text-decoration: underline;
	transition: all .2s linear;
	opacity: 0.6;
}

@media (min-width: 768px) {
	/* Impressum: pull the "right" spines over next to Home */
	body.page-id-1876 .leipert-spines--right {
		left: 56px;
		right: auto;
	}
	body.page-id-1876 .leipert-spines--right .leipert-spine {
		border-left: 0;
		border-right: 1px solid #B16F4A;
	}

	/* clear all five spines: 5 × 56 = 280, + the usual 168 gap */
	body.page-id-1876:not(.home) #desktop-content {
		padding-left: 448px !important;
	}
}

