/*
Theme Name: Agnello Immobilien
Template: twentytwentyfive
Description: Child-Theme von Twenty Twenty-Five für Agnello Immobilien.
Version: 1.2.2
Requires at least: 6.7
Requires PHP: 7.2
Text Domain: agnello
*/

/* Hauptnavigation im Header */
.agnello-nav {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--custom-dunkelbraun-text);
}

.wp-block-navigation.agnello-nav,
.agnello-nav .wp-block-navigation__container {
	gap: clamp(1.5rem, 4vw, 3.75rem);
}

.agnello-nav .wp-block-navigation-item__content {
	position: relative;
	padding: 0.4em 0 0.7em;
	text-decoration: none;
}

.agnello-nav .wp-block-navigation-item__content:hover,
.agnello-nav .wp-block-navigation-item__content:focus {
	text-decoration: none;
}

/* Goldener Unterstrich: aktive Seite dauerhaft, sonst beim Hover */
.agnello-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: -0.6em;
	right: -0.6em;
	bottom: 0;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--wp--preset--color--custom-mattes-gold-akzent) 10%,
		var(--wp--preset--color--custom-mattes-gold-akzent) 90%,
		transparent 100%
	);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.agnello-nav .wp-block-navigation-item__content:hover::after,
.agnello-nav .wp-block-navigation-item__content:focus-visible::after,
.agnello-nav .wp-block-navigation-item__content[aria-current="page"]::after {
	transform: scaleX(1);
}

/* Footer */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

.agnello-footer {
	background-color: var(--wp--preset--color--custom-creme-hintergrund);
	color: var(--wp--preset--color--custom-dunkelbraun-text);
	font-size: 0.9rem;
}

.agnello-footer .agnello-footer__row {
	gap: 0;
}

.agnello-footer__row > p {
	margin: 0;
	padding: 0 clamp(1.5rem, 5vw, 4.5rem);
	line-height: 1.4;
}

.agnello-footer__row > p + p {
	border-left: 1px solid color-mix(in srgb, var(--wp--preset--color--custom-mattes-gold-akzent) 55%, transparent);
}

.agnello-footer__copy {
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.agnello-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.agnello-footer a:hover,
.agnello-footer a:focus-visible {
	color: var(--wp--preset--color--custom-mattes-gold-akzent);
}

@media (max-width: 600px) {
	.agnello-footer .agnello-footer__row {
		flex-direction: column;
		gap: 0.5rem;
	}

	.agnello-footer__row > p + p {
		border-left: 0;
	}
}
