/* Footer — design: Figma "Home – Redesign Proposal V2" (node 41:968), mobile "Home-Redesign-Mobile" (node 41:1158) */

.fp-footer {
	--fp-footer-bg: #121212;
	--fp-footer-muted: #9a9fa0;
	--fp-footer-line: #243241;
	--fp-footer-accent: #1cc2ce;
	--fp-footer-yellow: #ffd500;
	--fp-footer-ink: #09141e;

	display: block;
	width: 100%;
	background: var(--fp-footer-bg);
	color: #fff;
	font-family: 'Prompt', sans-serif;
	font-weight: 400;
}

/* Theme styles for lists, paragraphs and links do not apply here */
.fp-footer *,
.fp-footer *::before,
.fp-footer *::after {
	box-sizing: border-box;
}

#fp-footer p,
#fp-footer ul,
#fp-footer li {
	margin: 0 !important;
	padding: 0 !important;
	font-family: inherit;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	list-style: none;
}

/* List items as flex boxes, so the theme's line height adds no space around the links */
#fp-footer li {
	display: flex;
	line-height: 1;
}

#fp-footer li::before {
	display: none;
}

#fp-footer a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

#fp-footer img {
	display: block;
	max-width: none;
}

/* Main row: about | navigation | school of flex | newsletter */

.fp-footer__main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	width: calc(100% - 80px);
	max-width: 1240px;
	margin: 0 auto;
	padding: 100px 0 36px;
	border-bottom: 1px solid var(--fp-footer-line);
}

.fp-footer__col {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.fp-footer__menus {
	display: flex;
	gap: 70px;
}

/* a column of "Footer-Menüs": several menus below each other */
.fp-footer__menu-col {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.fp-footer__about {
	gap: 0;
	max-width: 374px;
}

.fp-footer__logo {
	display: block;
	align-self: flex-start;
	margin-bottom: 53px; /* 102px logo box + 20px gap in the design */
}

/* Fixed height, width follows the logo (it can be exchanged in Optionen → Footer) */
#fp-footer .fp-footer__logo img {
	width: auto;
	max-width: 240px;
	height: 69px;
}

#fp-footer .fp-footer__text {
	font-size: 16px !important;
	line-height: 1.4 !important;
	color: var(--fp-footer-muted);
}

#fp-footer .fp-footer__about .fp-footer__text {
	min-height: 116px;
	margin-bottom: 32px !important;
}

.fp-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.fp-footer__contact a {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
}

.fp-footer__icon-linkedin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 12px;
}

#fp-footer .fp-footer__heading {
	font-size: 14px !important;
	line-height: 1 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	color: #fff;
	white-space: nowrap;
}

.fp-footer__links {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

#fp-footer .fp-footer__links a {
	font-size: 16px;
	line-height: 1.4;
	color: var(--fp-footer-muted);
	white-space: nowrap;
	transition: color 0.15s;
}

#fp-footer .fp-footer__links a:hover,
#fp-footer .fp-footer__links a:focus-visible,
#fp-footer .fp-footer__links .current-menu-item > a {
	color: #fff;
}

.fp-footer__newsletter {
	max-width: 326px;
}

#fp-footer .fp-footer__newsletter .fp-footer__text {
	margin-bottom: 8px !important; /* 40px to the button in the design */
}

#fp-footer .fp-footer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	height: 55px;
	padding: 14px 20px;
	background: var(--fp-footer-yellow);
	font-size: 16px;
	line-height: 1;
	color: var(--fp-footer-ink);
	white-space: nowrap;
	transition: background 0.15s;
}

#fp-footer .fp-footer__button:hover,
#fp-footer .fp-footer__button:focus-visible {
	background: #fff;
}

/* Bottom row: company, legal links, copyright (wider than the main row in the design) */

.fp-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px 40px;
	width: calc(100% - 80px);
	max-width: 1356px;
	min-height: 114px;
	margin: 0 auto;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

#fp-footer .fp-footer__company,
#fp-footer .fp-footer__copyright {
	font-size: 12px !important;
	line-height: 1 !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
}

#fp-footer .fp-footer__company {
	color: var(--fp-footer-accent);
}

#fp-footer .fp-footer__copyright {
	color: #fff;
}

#fp-footer .fp-footer__legal a {
	font-size: 12px !important;
	line-height: 1 !important;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.fp-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
}

/* Theme link colors are stronger than inheritance */
#fp-footer .fp-footer__contact a,
#fp-footer .fp-footer__legal a {
	color: #fff !important;
	transition: color 0.15s;
}

#fp-footer .fp-footer__legal a:hover,
#fp-footer .fp-footer__legal a:focus-visible,
#fp-footer .fp-footer__contact a:hover,
#fp-footer .fp-footer__contact a:focus-visible {
	color: var(--fp-footer-yellow) !important;
}

/* Tablet: about + newsletter side by side, menus below */

@media (max-width: 1100px) {
	.fp-footer__main {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 60px 40px;
	}

	.fp-footer__about {
		max-width: none;
	}

	.fp-footer__menus {
		grid-column: 1 / -1;
		order: 3;
	}

	.fp-footer__newsletter {
		order: 2;
	}

	.fp-footer__bottom {
		flex-wrap: wrap;
		justify-content: flex-start;
		padding: 30px 0;
	}
}

/* Mobile */

@media (max-width: 700px) {
	.fp-footer {
		padding-top: 40px;
	}

	.fp-footer__main {
		grid-template-columns: minmax(0, 1fr);
		gap: 80px;
		width: calc(100% - 40px);
		padding: 21px 0 80px;
		border-top: 1px solid var(--fp-footer-line);
		border-bottom: 0;
	}

	.fp-footer__logo {
		margin: 12px 0 42px;
	}

	#fp-footer .fp-footer__logo img {
		height: 60px;
	}

	#fp-footer .fp-footer__about .fp-footer__text {
		min-height: 0;
		margin-bottom: 30px !important;
	}

	.fp-footer__newsletter {
		gap: 20px;
		max-width: none;
	}

	#fp-footer .fp-footer__newsletter .fp-footer__text {
		margin-bottom: 22px !important;
	}

	#fp-footer .fp-footer__heading {
		font-size: 16px !important;
	}

	#fp-footer .fp-footer__nav .fp-footer__heading {
		font-size: 15px !important;
		line-height: 1.4 !important;
	}

	#fp-footer .fp-footer__button {
		padding: 14px 30px;
		font-size: 18px;
	}

	.fp-footer__menus {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	#fp-footer .fp-footer__heading,
	#fp-footer .fp-footer__links a,
	.fp-footer__contact a {
		white-space: normal;
	}

	.fp-footer__nav {
		gap: 10px;
	}

	.fp-footer__links {
		gap: 10px;
	}

	.fp-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		width: calc(100% - 40px);
		min-height: 0;
		padding: 17px 0 24px;
		border-top: 1px solid var(--fp-footer-line);
	}

	.fp-footer__legal {
		gap: 8px 16px;
	}

	#fp-footer .fp-footer__legal a {
		line-height: 17px !important;
	}
}

@media (max-width: 600px) {
	.fp-footer__menu-col {
		gap: 32px;
	}
}
