/*
|--------------------------------------------------------------------------
| 2026-08-27
| Author: Codex
| Änderung:
| Additiver Scrollvertrag für das geöffnete Astra-Mobile-Dropdown.
|--------------------------------------------------------------------------
*/



body.ast-main-header-nav-open .elementor-widget-hfe-breadcrumbs-widget {
    z-index: 9 !important;
}

body.ast-header-break-point.ast-main-header-nav-open {
	overflow-y: hidden;
}

body.ast-header-break-point.ast-main-header-nav-open #ast-mobile-header {
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
}

body.ast-header-break-point.ast-main-header-nav-open #ast-mobile-header .ast-primary-header-bar {
	flex: 0 0 auto;
}

body.ast-header-break-point.ast-main-header-nav-open #ast-mobile-header > .ast-mobile-header-content {
	position: static;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	/* 2026-09-08 | ChatGPT | Nur die freie Restfläche unterhalb der Menüpunkte leicht transparent halten. */
	background-color: rgba(15, 23, 42, 0.40);
}

/* 2026-09-08 | ChatGPT | Der tatsächliche Menüblock bleibt vollständig deckend. */
body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu {
	background-color: #0f172a;
}

/*
|--------------------------------------------------------------------------
| 2026-08-27
| Author: Codex
| Änderung:
| Vorhandene Astra-Submenu-Toggles teilen sich eine rechte Spalte, eine
| kreisförmige Geometrie und zentrale SVG-Zustandssymbole.
|--------------------------------------------------------------------------
*/

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .menu-item > .ast-menu-toggle {
	display: grid;
	place-items: center;
	position: absolute;
	/* 2026-08-28 | Codex | Toggle an der eigenen 61-px-Menüzeile statt am wachsenden Parent-li verankern. */
	top: 3px;
	right: 12px;
	width: 55px;
	min-width: 55px;
	max-width: 55px;
	height: 55px;
	min-height: 55px;
	max-height: 55px;
	padding: 0;
	border-radius: 50%;
	box-sizing: border-box;
	line-height: 1;
	flex-shrink: 0;
	transform: none;
}

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .sub-menu {
	width: 100%;
	min-width: 100%;
	box-sizing: border-box;
}

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .sub-menu > .menu-item {
	width: calc(100% - 5px);
}

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .menu-item > .ast-menu-toggle .ast-icon {
	display: none;
}

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .menu-item > .ast-menu-toggle::before {
	/* 2026-08-28 | Codex | Registriertes zentrales Chevron-SVG in der freigegebenen Small-Rolle verwenden. */
	content: "";
	display: block;
	width: var(--vt-icon-size-small);
	height: var(--vt-icon-size-small);
	background-color: currentColor;
	-webkit-mask-image: url("/wp-content/plugins/vt-liveconfig/inc-layout/assets/svg/chevron.svg");
	mask-image: url("/wp-content/plugins/vt-liveconfig/inc-layout/assets/svg/chevron.svg");
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .menu-item.ast-submenu-expanded > .ast-menu-toggle::before {
	/* 2026-08-28 | Codex | Registriertes zentrales Minus-SVG ohne Rotation verwenden. */
	content: "";
	-webkit-mask-image: url("/wp-content/plugins/vt-liveconfig/inc-layout/assets/svg/minus.svg");
	mask-image: url("/wp-content/plugins/vt-liveconfig/inc-layout/assets/svg/minus.svg");
}

/*
|--------------------------------------------------------------------------
| 2026-08-28
| Author: Codex
| Änderung:
| Mobile Submenu-Hierarchie mit den vorhandenen ruhigen Navy-Abstufungen
| der VisionThinks-Navigation statt der globalen CTA-blauen Fläche ausgeben.
|--------------------------------------------------------------------------
*/

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .sub-menu {
	/* Die vorhandene globale `.sub-menu`-Runtime-Regel ist selbst important. */
	background-color: rgba(15, 23, 42, 0.97) !important;
}

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .sub-menu .sub-menu {
	background-color: rgba(24, 34, 54, 0.98) !important;
}

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .sub-menu .menu-link {
	color: var(--ast-global-color-3);
	background-color: transparent;
}

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .menu-item > .ast-menu-toggle {
	/* Astras verschachtelter Toggle-Farbwert gewinnt im Runtime-CSS important. */
	color: var(--ast-global-color-3) !important;
	background-color: rgba(231, 246, 255, 0.04);
}

body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .menu-item.ast-submenu-expanded > .menu-link,
body.ast-header-break-point #ast-mobile-header #ast-hf-mobile-menu .menu-item.ast-submenu-expanded > .ast-menu-toggle {
	color: #ffffff;
	background-color: rgba(231, 246, 255, 0.06);
}


/* Strukturpunkte im mobilen Menü:
   kein Linkverhalten und kein vorangestellter Pfeil */
#ast-hf-mobile-menu
.menu-item-type-custom.menu-item-has-children
> a.menu-link[href="#"] {
    pointer-events: none;
    cursor: default;
}

#ast-hf-mobile-menu
.menu-item-type-custom.menu-item-has-children
> a.menu-link[href="#"]::before {
    content: "" !important;
    display: none !important;
}


/* Strukturpunkte: linken Astra-Pfeil entfernen */
#ast-hf-mobile-menu
.menu-item-type-custom.menu-item-has-children
> a.menu-link[href="#"]
> .ast-icon.icon-arrow:first-child {
    display: none !important;
}


/* Mobile Navigation: sofortige Ladebestätigung */

.vt-astra-mobile-loader {
	position: fixed;
	inset: 0;
	z-index: 7000;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;

	box-sizing: border-box;
	padding: 24px;

	background-color: rgba(15, 23, 42, 0.96);

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition:
		opacity .12s linear,
		visibility 0s linear .12s;
}


#ast-mobile-header.vt-mobile-navigation-is-loading
.vt-astra-mobile-loader {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;

	transition:
		opacity .12s linear,
		visibility 0s linear 0s;
}


@keyframes vtAstraMobileSpin {
	to {
		transform: rotate(360deg);
	}
}


.vt-astra-mobile-spinner {
	display: inline-block;

	width: 54px;
	height: 54px;

	box-sizing: border-box;

	border: 3px solid rgba(255, 255, 255, 0.16);
	border-top-color: #3DA3FF;
	border-radius: 50%;

	animation: vtAstraMobileSpin .7s linear infinite;
}


.vt-astra-mobile-loader-text {
	color: #ffffff;

	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}


@media (prefers-reduced-motion: reduce) {

	.vt-astra-mobile-loader {
		transition: none;
	}

	.vt-astra-mobile-spinner {
		animation: none;
	}
}

#ast-mobile-header .vt-astra-mobile-loader {
	position: fixed;
	inset: 0;

	z-index: 99999 !important;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;

	box-sizing: border-box;
	padding: 24px;

	background-color: #0f172a;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition:
		opacity .12s linear,
		visibility 0s linear .12s;
}


#ast-mobile-header.vt-mobile-navigation-is-loading
.vt-astra-mobile-loader {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto;

	transition:
		opacity 1.12s linear,
		visibility 0s linear 0s;
}

.ast-mobile-header-content {
    transition:
        opacity 1.8s ease,
        transform 1.8s ease;
}

.vt-mobile-navigation-is-closing .ast-mobile-header-content {
    opacity: 0;
    transform: translateY(-14px);
}
