/* ===========================================================================
   Footer (WKN-Wohnbau Child) — Figma 13:522
   =========================================================================== */

.footer {
	background: #333947;
	padding: 70px 0 0;
	position: relative;
}

.footer * {
	color: #fff;
}

.footer a {
	transition: color .4s;
}

.footer .current_page_item a,
.footer a:hover {
	color: #ec7328;
}

/* --- Main row ------------------------------------------------------------- */

.footer_main {
	position: relative;
	display: flex;
	align-items: stretch;
}

.footer_col {
	--padding_side: 2.5rem;
	padding: 0 var(--padding_side);
	min-height: 132px;
	align-items: end;
	padding-bottom: 130px;
}

.footer_col + .footer_col {
	/* border-left: 1px solid rgba(255, 255, 255, 0.18); */
}

.footer_logo_col {
	flex: 1;
	display: flex;
	align-items: flex-start;
	padding-top: 70px;
}

.footer_contact_col {
	flex: 1.5;
	display: flex;
	justify-content: space-between;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
	border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.footer_nav_col {
	flex: 1.7;
	padding-right: 0;
	align-self: flex-end;
	display: flex;
	flex-direction: column;
	align-items: start;
}

.footer_nav_col .footer_nav {
	width: 100%;
}
/* --- Logo ----------------------------------------------------------------- */

.footer_logo {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	max-width: 13rem;
	text-decoration: none;
}

.footer_logo img,
.footer_logo svg {
	max-width: 220px;
	height: auto;
	/* filter: brightness(0) invert(1); */
}

/* --- Contact column ------------------------------------------------------- */

.footer_address {
	font-style: normal;
	display: flex;
	flex-direction: column;
}

.footer_address strong {
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.footer_contact_lines {
	line-height: 1.6;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.footer_contact_lines a {
	display: inline-block;
	width: max-content;
	line-height: 1.1;
}

/* --- Nav + Social column -------------------------------------------------- */

.footer_menu_list,
.footer_fallback_menu {
	flex: 0 0 100%;
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
}

.footer_menu_list li,
.footer_fallback_menu li {
	flex: 0 0 50%;
	margin: 0;
	margin-top: 12px;
	/* margin-bottom: 12px; */
}

.footer_menu_list li:last-child,
.footer_fallback_menu li:last-child {
	margin-bottom: 0;
}

.footer_social {
	flex: 0 0 50%;
	align-self: flex-end;
	display: flex;
	gap: 0.75rem;
	margin-bottom: -60px;
	margin-top: 10px;
	width: 50%;
}

footer .social_icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background-color: transparent;
	text-decoration: none;
	transition: background-color 0.4s, border-color 0.4s;
}

.social_icon:hover {
	border-color: #fff;
}

.social_icon svg {
	fill: #fff;
	width: auto;
	height: 28px;
	transition: fill 0.4s;
}

.social_icon:hover svg {
	fill: #ec7328;
}

/* --- Back-to-top button --------------------------------------------------- */

.back_to_top {
	position: fixed !important;
	top: auto !important;
	bottom: 160px;
	right: 40px;
	z-index: 90;
	opacity: 0;
	pointer-events: none;
	transform: none !important;
	transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease !important;
}

@media screen and (max-width: 575px) {
	.back_to_top {
		right: 20px;
		bottom: 60px;
	}
}

@media screen and (max-height: 799px) {
	.back_to_top {
		bottom: 120px;
	}
}

@media screen and (max-height: 699px) {
	.back_to_top {
		bottom: 60px;
	}
}

@media screen and (max-height: 599px) {
	.back_to_top {
		bottom: 20px;
	}
}

.back_to_top.is_visible {
	opacity: 1;
	pointer-events: auto;
}

.back_to_top:hover {
	transform: translateY(-2px);
}

.back_to_top svg {
	transform: rotate(-90deg);
}

/* --- Subfooter ------------------------------------------------------------ */

.footer_subfooter_wrapper {
	background-color: #1f222b;
	clip-path: polygon(27px 0, 100% 0, 100% 100%, 0 100%, 0 27px);
}

.footer_subfooter {
	/* border-top: 1px solid rgba(255, 255, 255, 0.18); */
	padding: 1.25rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.5);
	flex-wrap: wrap;
}

.footer_subfooter a {
	color: rgba(255, 255, 255, 0.5);
	transition: color .4s;
}

.footer_subfooter .footer_copy,
.footer_subfooter .footer_credit span {
	opacity: 0.5;
}

.footer_subfooter a:hover,
.footer_subfooter a:hover {
	color: rgba(255, 255, 255, 1);
}

.footer_copy,
.footer_credit {
	margin: 0;
}

.footer_legal {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	white-space: nowrap;
}

.footer_legal span {
	opacity: 0.5;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1599px) {
	
}

@media (max-width: 1399px) {
	.footer_logo_col {
		flex: 0.6;
	}

	.footer_contact_col {
		flex: 0.9;
		display: flex;
		flex-direction: column;
		justify-content: end;
		align-items: start;
		gap: 1rem 0;
		padding-top: 50px;
	}

	.footer_nav_col {
		flex: 1.8;
	}
}

@media (max-width: 1199px) {
	.footer_col {
		--padding_side: 1.5rem;
	}
}

@media (max-width: 991px) {
	.footer_main {
		flex-wrap: wrap;
	}

	.footer_col {
		--padding_side: 0.5rem;
		padding-bottom: 0;
	}

	.footer_col + .footer_col {
		padding-top: 2rem;
	}

	.footer_col + .footer_contact_col {
		border-left: none;
	}

	.footer_logo_col {
		flex: 0 0 100% !important;
		padding-top: 0;
		padding-bottom: 2rem;
		--padding_side: 0rem;
		min-height: 0;
		border-left: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	}

	.footer_contact_col {
		flex: 0.8;
		padding-left: 0 !important;
		border-left: 0;
		padding-bottom: 100px;
	}
	
	.footer_nav_col {
		padding-right: 0 !important;
		flex: 1.7;
		align-self: flex-start;
	}

	.footer_subfooter {
		font-size: 0.889rem;
	}

	.footer_copy, 
	.footer_credit {
		order: 2;
		flex: 0 0 calc(50% - 0.5rem);
	}

	.footer_legal {
		justify-content: flex-start;
		order: 1;
		flex: 0 0 100%;
	}

	.footer_social {
		width: auto;
		margin-top: 20px;
		margin-bottom: 0;
		align-self: flex-start;
	}
}

@media (max-width: 767px) {
	.footer_col {
		padding-left: 2rem;
		padding-right: 2rem;
		flex: 1;
	}

	.footer_contact_col {
		align-self: flex-start;
	}

	.footer_fallback_menu {
		flex-direction: column;
	}
}

@media (max-width: 575px) {
	.footer {
		padding-top: 3rem;
	}

	.footer_main {
		flex-direction: column;
		padding-bottom: 3rem;
	}

	.footer_col {
		padding-left: 0;
		padding-right: 0;
		width: 100%;
	}
	
	.footer_logo_col {
		border: none;
	}

	.footer_logo {
		max-width: 8rem;
	}

	.footer_col + .footer_col {
		padding-top: 1.5rem;
		border-left: none;
		border-right: none;
		border-top: 1px solid rgba(255, 255, 255, 0.18);
	}
	
	.footer_col:has(+ .footer_col) {
		padding-bottom: 2rem;
	}

	.footer_menu_list li,
	.footer_fallback_menu li {
		flex: 0 0 100%;
	}

	.footer_subfooter {
		flex-direction: column;
		gap: 0.5rem;
		align-items: flex-start;
	}
}
