/* Das WordPress-Untermenü behält seinen eigenen Öffnen-/Schließen-Mechanismus. */
header .ai-kopf nav .aan-leistungsmenue { color: #302038; background: #fff; }
header .ai-kopf nav .aan-menue-gruppe {
	display: block; box-sizing: border-box; min-width: 0; padding: .75rem 0 0;
	border-top: 0; list-style: none; text-align: start;
}
header .ai-kopf nav .aan-menue-gruppe > strong {
	display: block; font-size: .94rem; line-height: 1.32; font-weight: 720; color: #472154;
	padding-bottom: .4rem; border-bottom: 1px solid #decfe6;
}
header .ai-kopf nav .aan-menue-gruppe > ul { display: block; margin: .45rem 0 0; padding: 0; list-style: none; }
header .ai-kopf nav .aan-menue-gruppe > ul > li { display: block; width: auto; margin: 0; padding: 0; list-style: none; }
header .ai-kopf nav .aan-menue-gruppe > ul > li > a {
	display: flex; align-items: center; width: auto; min-height: 39px; padding: .34rem .4rem; margin-inline: -.4rem 0;
	box-sizing: border-box; border-radius: .35rem; color: #3b2e42; font-size: .93rem; font-weight: 540;
	line-height: 1.35; text-decoration: none; text-wrap: wrap; overflow-wrap: anywhere;
}
header .ai-kopf nav .aan-leistungsmenue a:hover { color: #512369; background-color: #f5eff8; text-decoration: underline; text-underline-offset: .17em; }
header .ai-kopf nav .aan-leistungsmenue a:focus-visible { outline: 2px solid #703a8a; outline-offset: 0; }
@media (min-width: 960px) {
	header .ai-kopf nav:has(.aan-leistungsmenue) { position: relative; }
	header .ai-kopf nav:has(.aan-leistungsmenue) :is(.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-dialog,.wp-block-navigation__responsive-container-content,.wp-block-navigation__container),
	header .ai-kopf nav .has-child:has(> .aan-leistungsmenue) { position: static; }
	.wp-site-blocks header .ai-kopf nav .has-child > .aan-leistungsmenue {
		display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start;
		column-gap: 1.4rem; row-gap: .35rem; top: 100%; left: auto; right: 0;
		text-align: start; border-radius: .8rem; border-color: #dcd0e2; box-shadow: 0 12px 32px #2d18322b;
	}
	.wp-site-blocks header .ai-kopf nav .has-child:hover > .aan-leistungsmenue,
	.wp-site-blocks header .ai-kopf nav .has-child > button[aria-expanded="true"] ~ .aan-leistungsmenue,
	.wp-site-blocks header .ai-kopf nav .has-child:focus-within > button:not([aria-expanded]) ~ .aan-leistungsmenue {
		width: min(49rem,calc(100vw - 2rem)); padding: .65rem 1.15rem 1.05rem;
	}
	.wp-site-blocks header .ai-kopf nav .aan-menue-gruppe > strong { min-height: 2.65em; }
}
@media (max-width: 959px) {
	.wp-site-blocks header .ai-kopf .is-menu-open .has-child:has(> .aan-leistungsmenue) { align-items: flex-start; }
	.wp-site-blocks header .ai-kopf nav .is-menu-open .has-child > .aan-leistungsmenue {
		display: block; width: min(25rem,100%); min-width: 0; box-sizing: border-box;
		padding: .25rem .75rem .75rem; border-inline-start: 2px solid #decee5; border-radius: 0; box-shadow: none;
	}
	header .ai-kopf nav .is-menu-open .aan-menue-gruppe { padding-block: .6rem .35rem; }
	header .ai-kopf nav .is-menu-open .aan-menue-gruppe > ul { margin-top: .12rem; }
	header .ai-kopf nav .is-menu-open .aan-menue-gruppe > ul > li > a { min-height: 44px; }
	.wp-site-blocks header .ai-kopf nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .aan-menue-gruppe > ul > li {
		align-items: stretch;
	}
	.wp-site-blocks header .ai-kopf nav .is-menu-open .aan-menue-gruppe > ul > li > a {
		width: 100%; align-self: stretch; justify-content: flex-start;
	}
}

/* Heller Bereichshintergrund auch bei Tastaturbedienung. Das exakte Ziel ist zusätzlich unterstrichen. */
.wp-site-blocks header .ai-kopf nav a[aria-current="page"],
.wp-site-blocks header .ai-kopf nav a.aan-menue-bereich,
.wp-site-blocks header .ai-kopf nav .has-child:has(> .aan-leistungsmenue a[aria-current="page"]) > a {
	color: #4c285f; background-color: #eee5f4; border-radius: .32rem;
}
.wp-site-blocks header .ai-kopf nav a[aria-current="page"] {
	text-decoration: underline; text-decoration-color: #8c689f; text-underline-offset: .2em;
}
.wp-site-blocks header .ai-kopf nav .wp-block-navigation__container > li > :is(a[aria-current="page"], a.aan-menue-bereich),
.wp-site-blocks header .ai-kopf nav .has-child:has(> .aan-leistungsmenue a[aria-current="page"]) > a {
	box-shadow: 0 0 0 .19rem #eee5f4;
}
.wp-site-blocks header .ai-kopf :is(.ai-wortmarke a, nav a, nav button):focus-visible {
	outline: 2px solid #70408a; outline-offset: 3px;
}
