/* Astra: Rahmen am mobilen Burgerbutton */
.ast-header-break-point .ast-button-wrap .menu-toggle,
.ast-header-break-point .ast-button-wrap .menu-toggle:focus,
.ast-header-break-point .ast-button-wrap .menu-toggle:active {
    border: 0 !important;
    box-shadow: none !important;
}

.ast-header-break-point .ast-button-wrap .menu-toggle:focus:not(:focus-visible) {
    outline: none !important;
}

/* Sichtbare Markierung bei Bedienung mit Tastatur */
.ast-header-break-point .ast-button-wrap .menu-toggle:focus-visible {
    outline: 2px solid #4e7137 !important;
    outline-offset: 3px;
}

/* Astra: Fokusrahmen am X des mobilen Menüs */
.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close,
.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close:focus,
.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close:active {
    border: 0 !important;
    box-shadow: none !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close:focus:not(:focus-visible) {
    outline: none !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close:focus-visible {
    outline: 2px solid #4e7137 !important;
    outline-offset: 3px;
}

/* Mobile Menü: Pfeile ohne runde Buttonfläche */
.ast-header-break-point .ast-mobile-popup-drawer
.menu-item-has-children > .ast-menu-toggle,
.ast-header-break-point .ast-mobile-popup-drawer
.menu-item-has-children > .ast-menu-toggle:hover,
.ast-header-break-point .ast-mobile-popup-drawer
.menu-item-has-children > .ast-menu-toggle:focus {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ast-header-break-point .ast-mobile-popup-drawer
.menu-item-has-children > .ast-menu-toggle::before {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* X oben rechts grösser und leichter zu treffen */
.ast-header-break-point .ast-mobile-popup-drawer
.ast-mobile-popup-header .menu-toggle-close {
    width: 48px;
    height: 48px;
    padding: 8px !important;
    align-items: center;
    justify-content: center;
}

.ast-header-break-point .ast-mobile-popup-drawer
.ast-mobile-popup-header .menu-toggle-close svg {
    width: 30px !important;
    height: 30px !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .ast-mobile-popup-header {
    padding-top: 20px !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .ast-mobile-popup-header {
    position: static !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .ast-mobile-popup-content {
    margin-top: 48px !important;
}

.ast-header-break-point .ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close {
    position: absolute !important;
    top: var(--pw-close-top, 24px) !important;
    left: var(--pw-close-left, calc(100% - 64px)) !important;
    right: auto !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #728355 !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close svg {
    opacity: 0;
}

.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close::before,
.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close::after,
.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close > .ast-svg-iconset::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
    pointer-events: none;
}

.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close::before {
    transform: translate(-50%, -9px);
}

.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close::after {
    transform: translate(-50%, 7px);
}

.ast-header-break-point .ast-mobile-popup-drawer .menu-toggle-close > .ast-svg-iconset::before {
    transform: translate(-50%, -50%);
}

.ast-header-break-point .ast-mobile-popup-drawer.active .menu-toggle-close::before {
    animation: pw-menu-line-top .4s ease-out forwards;
}

.ast-header-break-point .ast-mobile-popup-drawer.active .menu-toggle-close::after {
    animation: pw-menu-line-bottom .4s ease-out forwards;
}

.ast-header-break-point .ast-mobile-popup-drawer.active .menu-toggle-close > .ast-svg-iconset::before {
    animation: pw-menu-line-middle .18s ease-out forwards;
}

@keyframes pw-menu-line-top {
    to { transform: translate(-50%, -50%) rotate(45deg); }
}

@keyframes pw-menu-line-bottom {
    to { transform: translate(-50%, -50%) rotate(-45deg); }
}

@keyframes pw-menu-line-middle {
    to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ast-header-break-point .ast-mobile-popup-drawer.active .menu-toggle-close::before,
    .ast-header-break-point .ast-mobile-popup-drawer.active .menu-toggle-close::after,
    .ast-header-break-point .ast-mobile-popup-drawer.active .menu-toggle-close > .ast-svg-iconset::before {
        animation-duration: .01ms;
    }
}
