/**
 * Custom Menu Pro - Frontend Styles
 * Desktop & Mobile responsive
 */

/* ==========================================================================
   FontAwesome 6 Override - Sicherstellen dass Icons angezeigt werden
   ========================================================================== */

/* Alle Plugin-Icons: Basis-Styles */
.cmp-wrapper i[class*="fa-"],
.cmp-topbar i[class*="fa-"],
.cmp-mobile-menu i[class*="fa-"],
.cmp-search-overlay i[class*="fa-"] {
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Solid Icons (fas) */
.cmp-wrapper i.fas,
.cmp-topbar i.fas,
.cmp-mobile-menu i.fas,
.cmp-search-overlay i.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Brand Icons (fab) - Social Media etc. */
.cmp-wrapper i.fab,
.cmp-topbar i.fab,
.cmp-mobile-menu i.fab,
.cmp-mobile-social i.fab,
.cmp-search-overlay i.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   CSS Reset für Plugin-Elemente
   ========================================================================== */

.cmp-wrapper,
.cmp-wrapper *,
.cmp-mobile-menu,
.cmp-mobile-menu *,
.cmp-search-overlay,
.cmp-search-overlay * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Top Bar - Basis Styles
   ========================================================================== */

#cmp-wrapper .cmp-topbar {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 0 !important;
    z-index: 99998 !important;
    overflow: hidden !important;
    display: block !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    position: relative !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
}

/* ==========================================================================
   Top Bar - Slider Modus (animiert)
   ========================================================================== */

#cmp-wrapper .cmp-topbar.cmp-topbar-mode-slider .cmp-topbar-inner {
    height: 24px !important;
    min-height: 24px !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-slider {
    position: relative !important;
    width: 100% !important;
    height: 24px !important;
    min-height: 24px !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 24px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    -webkit-transform: translateY(-100%) !important;
    -ms-transform: translateY(-100%) !important;
    transform: translateY(-100%) !important;
    -webkit-transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease !important;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-transform: translateY(0) !important;
    -ms-transform: translateY(0) !important;
    transform: translateY(0) !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-slide.exit {
    opacity: 0 !important;
    visibility: hidden !important;
    -webkit-transform: translateY(100%) !important;
    -ms-transform: translateY(100%) !important;
    transform: translateY(100%) !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-slide i {
    font-size: 16px !important;
    -ms-flex-negative: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-slide span {
    white-space: nowrap !important;
    font-size: inherit !important;
    line-height: 1.2 !important;
}

/* ==========================================================================
   Top Bar - Inline Modus (alle Items nebeneinander)
   ========================================================================== */

#cmp-wrapper .cmp-topbar.cmp-topbar-mode-inline .cmp-topbar-inner {
    height: auto !important;
    min-height: auto !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-items-inline {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    gap: 30px !important;
    width: 100% !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-item {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-item i {
    font-size: 16px !important;
    -ms-flex-negative: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

#cmp-wrapper .cmp-topbar .cmp-topbar-item span {
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/* Responsive: Inline Modus */
@media (max-width: 767px) {
    #cmp-wrapper .cmp-topbar .cmp-topbar-items-inline {
        gap: 15px !important;
    }

    #cmp-wrapper .cmp-topbar .cmp-topbar-item {
        gap: 5px !important;
    }

    #cmp-wrapper .cmp-topbar .cmp-topbar-item span {
        font-size: 0.85em !important;
    }
}

@media (max-width: 480px) {
    #cmp-wrapper .cmp-topbar .cmp-topbar-items-inline {
        gap: 10px !important;
    }

    #cmp-wrapper .cmp-topbar .cmp-topbar-item span {
        display: none !important;
    }
}

/* Legacy Support für alte Items-Struktur */
.cmp-topbar-items {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
}

.cmp-topbar-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.cmp-topbar-item i {
    font-size: 1em !important;
}

.cmp-topbar-item span {
    white-space: nowrap !important;
}

/* ==========================================================================
   Hauptmenü
   ========================================================================== */

.cmp-main-menu {
    width: 100% !important;
    z-index: 99997 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.cmp-main-menu-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
}

/* Linker Bereich - Hamburger */
.cmp-menu-left {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* Mittlerer Bereich - Logo */
.cmp-menu-center {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Rechter Bereich - Icons */
.cmp-menu-right {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 5px !important;
}

/* Hamburger Button */
.cmp-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.cmp-hamburger:hover {
    opacity: 0.7;
}

.cmp-hamburger i {
    font-size: 24px !important;
    line-height: 1 !important;
}

/* ==========================================================================
   FontAwesome Icons - Divi Override Fix
   ========================================================================== */

/* Solid Icons (fas) */
.cmp-wrapper .fas,
.cmp-wrapper i.fas,
.cmp-topbar .fas,
.cmp-topbar i.fas,
.cmp-main-menu .fas,
.cmp-main-menu i.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Brand Icons (fab) - Social Media */
.cmp-wrapper .fab,
.cmp-wrapper i.fab,
.cmp-topbar .fab,
.cmp-topbar i.fab,
.cmp-main-menu .fab,
.cmp-main-menu i.fab,
.cmp-mobile-menu .fab,
.cmp-mobile-menu i.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Logo */
.cmp-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    max-height: 100% !important;
}

.cmp-logo img {
    display: block !important;
    height: auto !important;
    max-height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
}

.cmp-site-title {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

/* Icon Buttons */
.cmp-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cmp-icon-btn:hover {
    opacity: 0.7;
}

.cmp-icon-btn i {
    font-size: 20px;
}

/* ==========================================================================
   Mobile Menü Overlay
   ========================================================================== */

.cmp-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99998;
}

.cmp-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Mobile Menü Panel
   ========================================================================== */

.cmp-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99999;
    overflow: hidden;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
}

.cmp-mobile-menu.active {
    transform: translateX(0);
}

/* Fade Animation */
.cmp-mobile-menu.animation-fade {
    opacity: 0;
    transform: translateX(0);
    visibility: hidden;
}

.cmp-mobile-menu.animation-fade.active {
    opacity: 1;
    visibility: visible;
}

/* Push Animation */
body.cmp-menu-push {
    transition: transform 0.3s ease;
}

body.cmp-menu-push.menu-open {
    transform: translateX(300px);
}

.cmp-mobile-menu.animation-push {
    transform: translateX(-100%);
}

.cmp-mobile-menu.animation-push.active {
    transform: translateX(0);
}

/* Inner Container */
.cmp-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* Header mit Menü Text und Close Button */
.cmp-mobile-menu-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.cmp-mobile-menu-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.cmp-mobile-close {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 10px !important;
    font-size: 24px !important;
    transition: opacity 0.2s ease !important;
}

.cmp-mobile-close:hover {
    opacity: 0.7 !important;
}

.cmp-mobile-close i {
    font-size: 24px !important;
}

/* Mobile Menu Icons Override */
.cmp-mobile-menu .fas,
.cmp-mobile-menu i.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.cmp-mobile-menu .fab,
.cmp-mobile-menu i.fab,
.cmp-mobile-social .fab,
.cmp-mobile-social i.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Navigation */
.cmp-mobile-menu-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.cmp-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cmp-mobile-nav-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cmp-mobile-nav-list li:last-child {
    border-bottom: none;
}

.cmp-mobile-nav-list a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.cmp-mobile-nav-list a:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Submenu */
.cmp-mobile-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.02);
}

.cmp-mobile-nav-list .sub-menu a {
    padding-left: 40px;
    font-size: 0.95em;
}

.cmp-mobile-nav-list .sub-menu .sub-menu a {
    padding-left: 55px;
    font-size: 0.9em;
}

/* Menü Hinweis */
.cmp-menu-notice {
    padding: 15px 25px;
    font-size: 0.85em;
    opacity: 0.7;
    font-style: italic;
}

/* Footer */
.cmp-mobile-menu-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: auto;
}

.cmp-mobile-account {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.cmp-mobile-account:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.cmp-mobile-account i {
    font-size: 18px;
}

.cmp-mobile-social {
    display: flex !important;
    gap: 15px !important;
    padding-top: 10px !important;
}

.cmp-mobile-social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.cmp-mobile-social a:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.1) !important;
}

.cmp-mobile-social i,
.cmp-mobile-social i.fab {
    font-size: 20px !important;
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* ==========================================================================
   Such-Overlay
   ========================================================================== */

.cmp-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    overflow-y: auto;
}

.cmp-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cmp-search-overlay-inner {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
}

/* Close Button */
.cmp-search-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 15px !important;
    font-size: 28px !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    z-index: 10 !important;
}

.cmp-search-close:hover {
    opacity: 0.7 !important;
    transform: scale(1.1) !important;
}

.cmp-search-close i {
    font-size: 28px !important;
}

/* Search Overlay Icons Override */
.cmp-search-overlay i,
.cmp-search-overlay .fa,
.cmp-search-overlay .fas,
.cmp-search-overlay .far,
.cmp-search-overlay .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important;
    font-style: normal !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Such-Content */
.cmp-search-content {
    padding-top: 40px;
}

/* Fallback Such-Formular */
.cmp-search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.cmp-search-field {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 18px;
    outline: none;
    transition: border-color 0.2s ease;
}

.cmp-search-field:focus {
    border-color: rgba(0, 0, 0, 0.3);
}

.cmp-search-submit {
    padding: 15px 25px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.cmp-search-submit:hover {
    background-color: #555;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 991px) {
    .cmp-topbar-items {
        gap: 20px;
    }

    .cmp-topbar-item span {
        font-size: 0.9em;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .cmp-topbar {
        padding: 6px 0;
    }

    .cmp-topbar-items {
        gap: 15px;
    }

    .cmp-topbar-item {
        gap: 5px;
    }

    .cmp-topbar-item span {
        font-size: 0.8em;
    }

    .cmp-main-menu-inner {
        padding: 0 15px;
    }

    .cmp-hamburger i {
        font-size: 22px;
    }

    .cmp-icon-btn i {
        font-size: 18px;
    }

    .cmp-menu-right {
        gap: 10px;
    }

    .cmp-search-close {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }

    .cmp-search-overlay {
        padding-top: 80px;
    }

    .cmp-search-field {
        padding: 12px 15px;
        font-size: 16px;
    }

    .cmp-search-submit {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Kleine Mobile */
@media (max-width: 480px) {
    .cmp-topbar-items {
        gap: 10px;
    }

    .cmp-topbar-item span {
        display: none;
    }

    .cmp-topbar-item i {
        font-size: 1.1em;
    }

    .cmp-logo img {
        max-width: 120px !important;
    }

    .cmp-site-title {
        font-size: 18px;
    }

    .cmp-search-form {
        flex-direction: column;
    }

    .cmp-search-submit {
        width: 100%;
    }
}

/* ==========================================================================
   Body Lock (verhindert Scrollen wenn Menü offen)
   ========================================================================== */

body.cmp-menu-open {
    overflow: hidden;
}

/* ==========================================================================
   Divi Theme Kompatibilität - Header komplett ausblenden
   ========================================================================== */

/* Divi Header KOMPLETT ausblenden wenn Plugin aktiv */
#main-header,
#top-header,
.et-fixed-header,
#et-top-navigation,
.et_header_style_left #et-top-navigation,
.et_header_style_centered #et-top-navigation,
.et_header_style_split #et-top-navigation,
#et_mobile_nav_menu,
.et_mobile_menu,
.mobile_menu_bar,
.mobile_nav,
.et_pb_menu,
.et_pb_fullwidth_menu,
#et-secondary-menu,
.et_slide_in_menu_container,
.et_header_style_slide,
#page-container > header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Stelle sicher, dass der Body-Margin für Divi-Header entfernt wird */
body.et_header_style_left,
body.et_header_style_centered,
body.et_header_style_split,
body.et_fixed_nav {
    padding-top: 0 !important;
}

/* Entferne Divi Top-Header Spacing */
#page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Z-Index Korrekturen */
.cmp-wrapper {
    z-index: 99999 !important;
    position: relative !important;
}

.cmp-topbar {
    z-index: 99998 !important;
}

.cmp-main-menu {
    z-index: 99997 !important;
}

.cmp-mobile-menu {
    z-index: 999999 !important;
}

.cmp-mobile-overlay {
    z-index: 999998 !important;
}

.cmp-search-overlay {
    z-index: 9999999 !important;
}

/* ==========================================================================
   Animationen
   ========================================================================== */

@keyframes cmp-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cmp-slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes cmp-slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cmp-search-overlay.active .cmp-search-content {
    animation: cmp-slideInUp 0.3s ease forwards;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.cmp-hamburger:focus,
.cmp-icon-btn:focus,
.cmp-mobile-close:focus,
.cmp-search-close:focus,
.cmp-mobile-nav-list a:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .cmp-wrapper,
    .cmp-mobile-menu,
    .cmp-mobile-overlay,
    .cmp-search-overlay {
        display: none !important;
    }
}

/* ==========================================================================
   Submenu Toggle (Mobile)
   ========================================================================== */

.cmp-mobile-nav-list .menu-item-has-children {
    position: relative !important;
}

.cmp-mobile-nav-list .menu-item-has-children > a {
    padding-right: 55px !important;
    display: block !important;
}

.cmp-submenu-toggle {
    position: absolute !important;
    right: 15px !important;
    top: 12px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    z-index: 5 !important;
}

.cmp-submenu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

.cmp-submenu-toggle i {
    font-size: 14px !important;
    transition: transform 0.25s ease !important;
}

.cmp-submenu-toggle[aria-expanded="true"] i {
    transform: rotate(180deg) !important;
}

/* Parent item styling when submenu open */
.cmp-mobile-nav-list .menu-item-has-children.submenu-open > a {
    font-weight: 600 !important;
    background-color: rgba(0, 0, 0, 0.02) !important;
}
