/*
 * en2x Footer – module styles.
 *
 * Three bars: top (#250F51) and bottom (#250F51) use the headline colour,
 * middle (#221182) uses the primary colour. Font is inherited (Rubik from
 * Salient). Buttons use the project pill radius.
 */

.en2x-footer {
	font-family: inherit;
}

/* Shared inner wrapper: 1600px grid, horizontal padding, row layout. */
.en2x-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 40px;
}

/* ---------------------------------------------------------------------------
 * Top bar.
 * ------------------------------------------------------------------------- */

.en2x-footer__top {
	background: var(--en2x-color-headline, #250F51);
}

.en2x-footer__top .en2x-footer__inner {
	padding-top: 18px;
	padding-bottom: 18px;
}

.en2x-footer__logo img {
	display: block;
	max-height: 48px;
	width: auto;
}

.en2x-footer__top-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------------------------------------------------------------------------
 * Middle bar.
 * ------------------------------------------------------------------------- */

.en2x-footer__middle {
	background: var(--en2x-color-primary, #221182);
	color: #fff;
}

.en2x-footer__middle .en2x-footer__inner {
	align-items: flex-start;
	padding-top: 40px;
	padding-bottom: 40px;
}

.en2x-footer__firmierung {
	color: #fff;
	font-size: 16px;
	line-height: 1.6;
}

.en2x-footer__firmierung :first-child {
	margin-top: 0;
}

.en2x-footer__firmierung a {
	color: #fff;
	text-decoration: underline;
}

.en2x-footer__social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
 * Buttons (white pills) – top bar links + middle text buttons.
 * ------------------------------------------------------------------------- */

.en2x-footer__button {
	display: inline-block;
	padding: 9px 20px;
	background: #fff;
	color: var(--en2x-color-headline, #250F51);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--en2x-button-radius, 999px);
	transition: opacity 0.15s ease;
}

.en2x-footer__middle .en2x-footer__button {
	color: var(--en2x-color-primary, #221182);
}

.en2x-footer__button:hover,
.en2x-footer__button:focus {
	opacity: 0.88;
}

/* ---------------------------------------------------------------------------
 * Social icons – rounded squares (darker than the middle bar), white glyph.
 * ------------------------------------------------------------------------- */

.en2x-footer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: var(--en2x-color-headline, #250F51);
	color: #fff;
	transition: opacity 0.15s ease;
}

.en2x-footer__icon:hover,
.en2x-footer__icon:focus {
	opacity: 0.85;
}

.en2x-footer__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* ---------------------------------------------------------------------------
 * Bottom bar.
 * ------------------------------------------------------------------------- */

.en2x-footer__bottom {
	background: var(--en2x-color-headline, #250F51);
}

.en2x-footer__bottom .en2x-footer__inner {
	padding-top: 16px;
	padding-bottom: 16px;
}

.en2x-footer__copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * Responsive: stack the columns on tablet/mobile.
 * ------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.en2x-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		padding-left: 24px;
		padding-right: 24px;
	}

	.en2x-footer__middle .en2x-footer__inner {
		align-items: flex-start;
	}
}
