/* ---------- Eigene Werte ---------- */

.unyer-footer {
	--unyer-focus-width: 0.1875rem;
	--unyer-focus-offset: 0.25rem;
	--unyer-focus-color: var(--wp--preset--color--base);
	--unyer-social-icon: 2.25rem;
	--unyer-underline: 0.25em;
}

/* ---------- Band ---------- */

.unyer-footer {
	padding-block: var(--wp--preset--spacing--80);
	padding-inline: var(--unyer-kante);
}

.unyer-footer__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--wp--preset--spacing--40);
	row-gap: var(--wp--preset--spacing--70);
	inline-size: 100%;
	max-inline-size: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.unyer-footer__inner > * {
	margin-block: 0;
}

.unyer-footer__column--experts {
	grid-column: span 2;
}

/* ---------- Marken-Spalte ---------- */

.unyer-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.unyer-footer__brand > * {
	margin-block: 0;
}

.unyer-footer__logo {
	margin-block-end: var(--wp--preset--spacing--40);
}

.unyer-footer__logo a {
	display: block;
	border-radius: var(--wp--custom--radius--small);
}

.unyer-footer__logo img {
	display: block;
	inline-size: clamp(9rem, 18vw, 15.0625rem);
	block-size: auto;
	aspect-ratio: 296 / 91;
	object-fit: contain;
	object-position: left center;
}

.unyer-footer__follow {
	margin-block-end: var(--wp--preset--spacing--10);
	line-height: 1.5;
}

.unyer-footer .unyer-footer__social {
	gap: var(--wp--preset--spacing--30);
	margin-inline-start: calc((var(--unyer-social-icon) - var(--wp--custom--target--min)) / 2);
	font-size: var(--unyer-social-icon);
}

.unyer-footer__social .wp-block-social-link {
	color: var(--wp--preset--color--outline);
}

.unyer-footer__social .wp-block-social-link-anchor {
	padding: calc((var(--wp--custom--target--min) - var(--unyer-social-icon)) / 2);
	border-radius: var(--wp--custom--radius--round);
}

/* ---------- Überschriften und Listen ---------- */

.unyer-footer .unyer-footer__heading {
	margin-block: 0;
	font-weight: 600;
	line-height: 1.333;
}

.unyer-footer .unyer-footer__list {
	margin-block-start: calc(var(--wp--preset--spacing--30) - (var(--wp--custom--target--min) - 1.5em) / 2);
}

.unyer-footer__list .wp-block-navigation__container {
	display: block;
	gap: 0;
}

.unyer-footer__list--experts .wp-block-navigation__container {
	columns: 2;
	column-gap: var(--wp--preset--spacing--40);
}

.unyer-footer__list .wp-block-navigation-item {
	margin-block: 0;
	break-inside: avoid;
}

.unyer-footer__list .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-block-size: var(--wp--custom--target--min);
	color: var(--wp--preset--color--outline);
	font-weight: 300;
	line-height: 1.5;
	text-decoration: none;
	transition: color var(--wp--custom--duration--fast) var(--wp--custom--easing--base);
}

/* ---------- Zustände ---------- */

.unyer-footer__list .wp-block-navigation-item__content:hover,
.unyer-footer__list .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
	text-underline-offset: var(--unyer-underline);
	text-decoration-thickness: 0.0625rem;
}

.unyer-footer__list .current-menu-item > .wp-block-navigation-item__content,
.unyer-footer__list .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
	text-underline-offset: var(--unyer-underline);
	text-decoration-thickness: 0.125rem;
}

.unyer-footer__social .wp-block-social-link {
	transition: color var(--wp--custom--duration--fast) var(--wp--custom--easing--base);
}

.unyer-footer__social .wp-block-social-link:hover,
.unyer-footer__social .wp-block-social-link:has(:focus-visible) {
	transform: none;
	color: var(--wp--preset--color--base);
}

.unyer-footer :is(a, button):focus-visible {
	outline: var(--unyer-focus-width) solid var(--unyer-focus-color);
	outline-offset: var(--unyer-focus-offset);
}

/* ---------- Schmale Ansichten ---------- */

@media (width < 75rem) {
	.unyer-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.unyer-footer__brand {
		grid-area: 1 / 1;
	}

	.unyer-footer__column--service {
		grid-area: 1 / 2;
	}

	.unyer-footer__column--experts {
		grid-area: 2 / 1 / auto / -1;
	}
}

@media (width < 40rem) {
	.unyer-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.unyer-footer__brand,
	.unyer-footer__column--service,
	.unyer-footer__column--experts {
		grid-area: auto;
	}

	.unyer-footer__list--experts .wp-block-navigation__container {
		columns: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.unyer-footer .wp-block-navigation-item__content,
	.unyer-footer .wp-block-social-link {
		transition: none;
	}
}

/* ---------- Trefferflaechen ---------- */

.unyer-footer__list .wp-block-navigation-item__content {
	align-items: center;
	display: flex;
	min-block-size: var(--wp--custom--target--min);
	min-inline-size: var(--wp--custom--target--min);
}
