section.m27_houses {
	background: #f6f4ed;
}

section.m27_houses .m27_objects {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
}

section.m27_houses .m27_item {
	position: relative;
	width: calc(50% - (50px / 2));
}

section.m27_houses .m27_item_inner {
	height: 455px;
	position: relative;
}

section.m27_houses .m27_item a {
	width: 100%;
}

section.m27_houses .m27_titel h3 {
	font-size: 2rem;
}

section.m27_houses .m27_item_content {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
}

section.m27_houses .m27_item_background {
	height: 455px;
}

section.m27_houses .m27_hintergrundbild_container img {
	display: flex;
	object-fit: cover;
	height: 455px;
}

section.m27_houses .m27_nohover_content {
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

section.m27_houses .m27_nohover_content .m27_logo_container img,
section.m27_houses .m27_nohover_content .m27_logo_container svg {
	max-width: 217px;
	max-height: 217px;
}

section.m27_houses .m27_overlay {
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background: rgba(31, 31, 31, .1);
	transition: all .4s;
	z-index: 1;
}

section.m27_houses .m27_button_container {
	position: absolute;
	right: 20px;
	top: 21px;
}

section.m27_houses .m27_link_button {
  height: 74px;
  width: 74px;
  border-radius: 50%;
  border: 1px solid rgba(246, 244, 237, .5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition-delay: 0s;
  transition: border-color .4s;
}

section.m27_houses .m27_item:hover .m27_link_button,
section.m27_houses .m27_link_button:hover {
	transition-delay: .6s;
	border-color: #66645f;
}

section.m27_houses .m27_link_button:before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #66645f;
	transform: scale(0);
	transform-origin: center;
	transition: transform 1.5s cubic-bezier(.19,1,.22,1), border-color .4s;
	z-index: 1;
}

section.m27_houses .m27_item:hover .m27_link_button:before,
section.m27_houses .m27_link_button:hover:before {
	transform: scale(1);
}

section.m27_houses .m27_link_button > * {
  position: relative;
  z-index: 1;
}

section.m27_houses .m27_link_button svg {
	width: 24px;
	fill: #f6f4ed;
	transition: transform .4s;
}

section.m27_houses .m27_item:hover .m27_link_button svg,
section.m27_houses .m27_link_button:hover svg {
	transform: rotate(-45deg);
}

/** start M27 Hover Content **/

section.m27_houses .m27_hover_content {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: absolute;
	left: 50%;
	width: 100%;
	transform: translateX(-50%);
	bottom: 47px;
}

section.m27_houses .m27_hover_content .m27_logo_hover_container img,
section.m27_houses .m27_hover_content .m27_logo_hover_container svg {
	max-width: 186px;
	max-height: 95px;
	fill: #f6f4ed;
}

section.m27_houses .m27_hover_content .m27_logo_hover_container img {
	width: auto;
	height: auto;
}

section.m27_houses .m27_hover_content .m27_trenner {
	height: 1px;
	min-width: calc(100% - (77px * 2));
	width: 85%;
	background: rgba(237, 232, 219, .3);
	margin-top: 38px;
	margin-bottom: 33px;
}

section.m27_houses .m27_hover_content .m27_beschreibung {
	max-width: 77%;
	text-align: center;
}

section.m27_houses .m27_hover_content .m27_beschreibung * {
	color: #f6f4ed;
	font-size: 1rem;
}

section.m27_houses .m27_hover_content {
	opacity: 0;
	height: 0;
	transition: all .4s;
	overflow: hidden;
}

section.m27_houses .m27_item:hover .m27_hover_content {
	opacity: 1;
	height: auto;
}

section.m27_houses .m27_nohover_content {
	transition: all .4s;
}

section.m27_houses .m27_item:hover .m27_nohover_content {
	opacity: 0;
}

section.m27_houses .m27_overlay_hover {
	-webkit-mask-image: url('/wp-content/uploads/2025/10/hover_background_m27.png');
	mask-image: url('/wp-content/uploads/2025/10/hover_background_m27.png');
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	overflow: hidden;
	width: 100%;
	height: 0;
	position: absolute;
	left: 0;
	bottom: 0;
	background: #1f1f1f;
	z-index: 2;
	transition: all .4s;
	opacity: 0;
}

section.m27_houses .m27_item:hover .m27_overlay_hover {
	height: 100%;
	opacity: 1;
}

section.m27_houses .m27_item:hover .m27_overlay {
	backdrop-filter: blur(10px);
	background: rgba(31, 31, 31, .7);
}

/** end M27 Hover Content **/

section.m27_houses .m27_nohover_content .m27_logo_container {
	display: none;
}

section.m27_houses .m27_nohover_content .m27_titel {
	position: absolute;
	background: #ede8db;
	padding: 11px 15px 15px 15px;
	left: 20px;
	bottom: 21px;
	max-width: calc(100% - 40px);
}

section.m27_houses .m27_nohover_content .m27_titel h4 {
	color: #615e57;
}

section.m27_houses .m27_copyright_text {
	position: absolute;
	left: 20px;
	top: 21px;
	background: #ede8db;
	padding: 0 5px 2px 5px;
}

section.m27_houses .m27_copyright_text p {
	color: #615e57;
	font-size: .689rem;
}

@media screen and (max-width: 1299px) {
	section.m27_houses .m27_hover_content {
		bottom: 30px;
	}
	
	section.m27_houses .m27_hover_content .m27_trenner {
		margin-top: 28px;
		margin-bottom: 23px;
	}
	
	section.m27_houses .m27_hover_content .m27_beschreibung {
		hyphens: auto;
	}
}

@media screen and (max-width: 991px) {
	section.m27_houses .m27_item {
		width: 100%;
	}
	
	section.m27_houses .m27_objects {
		gap: 30px;
	}
}

@media screen and (max-width: 575px) {
	section.m27_houses .m27_nohover_content .m27_logo_container img,
	section.m27_houses .m27_nohover_content .m27_logo_container svg {
		max-width: 167px;
		max-height: 167px;
	}
	
	section.m27_houses .m27_link_button {
		height: 54px;
		width: 54px;
	}
	
	section.m27_houses .m27_hover_content .m27_logo_hover_container img,
	section.m27_houses .m27_hover_content .m27_logo_hover_container svg {
		max-width: 136px;
		max-height: 70px;
	}
	
	section.m27_houses .m27_hover_content .m27_beschreibung {
		max-width: 90%;
	}
	
	section.m27_houses .m27_hover_content .m27_beschreibung * {
		font-size: .889rem;
	}
	
	section.m27_houses .m27_hover_content .m27_trenner {
		margin-top: 18px;
		margin-bottom: 13px;
	}
}

@media screen and (max-width: 350px) {
	section.m27_houses .m27_hover_content {
		bottom: 23px;
	}
}