/* ================================
   MOBILE NAVIGATION (max-width 880px)
   ================================ */

@media (max-width: 880px) {

    /**********************************
     * BASIC RESET OF OLD MEGA MENU
     **********************************/

    /* kill desktop floats/layout inside toolbar on mobile */
    #toolbar-wrapper .toolbar,
    #toolbar-wrapper .toolbar * {
        float: none !important;
        background-image: none !important;
    }

    /* hide old mobile toggle if still there */
    #toolbar-wrapper a.mobile-nav {
        display: none !important;
    }

    /* hide desktop logo, keep blue bar small */
    #nav-logo-wrapper,
    #logo {
        display: none !important;
    }

    #nav {
        height: auto !important;
        padding: 0 !important;
        background: #005098;
    }

    #nav-inner {
        padding: 0 !important;
        height: auto !important;
    }


    /**********************************
     * MOBILE HEADER (LOGO + BURGER)
     **********************************/

    #mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 18px;
        background: #005098;
        height: 70px;
        position: relative;
        z-index: 10000;
    }

    #mobile-header .mobile-logo img {
        height: 48px;
        width: auto;
    }


    /**********************************
     * BURGER BUTTON
     **********************************/
  
   #burger-button {
        width: 40px;
        height: 32px;
        background: transparent !important;
        border: none !important;
        position: relative;
        cursor: pointer;
        z-index: 10001;
        padding: 0;
    }

    #burger-button span {
        position: absolute;
        top: 50%;
        left: 4px;
        width: 32px;
        height: 4px;
        background: #ffffff !important;
        border-radius: 2px;
        transform: translateY(-50%);
        display: block !important;
    }

    /* Force pseudo-elements to appear */
    #burger-button span::before,
    #burger-button span::after {
        content: "" !important;       /* CRITICAL */
        position: absolute !important;
        left: 0 !important;
        width: 32px !important;
        height: 4px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        display: block !important;
    }

    #burger-button span::before {
        top: -10px !important;
    }

    #burger-button span::after {
        top: 10px !important;
    }

    /* Transform into X */
    #burger-button.active span {
        background: transparent !important;
    }

    #burger-button.active span::before {
        top: 0 !important;
        transform: rotate(45deg);
    }

    #burger-button.active span::after {
        top: 0 !important;
        transform: rotate(-45deg);
    }

        /* hide ALL menu content by default */
    #toolbar-wrapper .toolbar {
        display: none;
    }

    /* show it only when JS adds .is-open */
    #toolbar-wrapper .toolbar.is-open {
        display: block;
    }

    /* also hide ALL default mega-menu positioning */
    #toolbar-wrapper .toolbar .menu > li.level_1 {
        display: none !important;
    }

    /* show them again in mobile overlay */
    #toolbar-wrapper .toolbar.is-open .menu > li.level_1 {
        display: block !important;
    }


    /**********************************
     * FULLSCREEN OVERLAY PANEL
     **********************************/

    .toolbar {
        position: fixed;
        inset: 0; /* top:0; right:0; bottom:0; left:0 */
        background: rgba(0,0,0,0.95);
        overflow-y: auto;
        padding: 90px 0 40px;  /* space for header */
        max-height: 0 !important;          /* collapsed by default (inline 0px is overridden) */
        transition: max-height 0.4s ease;
        z-index: 9999;
    }

    .toolbar.is-open {
        max-height: 100vh !important;
    }


    /**********************************
     * MENU LEVEL 1 – TEXT ONLY
     **********************************/

    .toolbar ul.menu {
        list-style: none;
        margin: 0 auto;
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .toolbar ul.menu > li.level_1 {
        display: block;
        width: 100% !important;
        clear: both;
        margin: 0;
        padding: 0;
        border: none !important;
        text-align: left;
    }

    .toolbar ul.menu > li.level_1 > a {
        display: block;
        padding: 14px 0;
        font-size: 24px;
        line-height: 1.3;
        color: #ffffff !important;
        text-transform: uppercase;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.18);
    }


    /**********************************
     * HIDE ALL ICONS / IMAGES
     **********************************/

    .toolbar .menu img,
    .toolbar .toolbar-info,
    .toolbar .submenu-image::before {
        display: none !important;
    }


    /**********************************
     * SUBMENU LEVEL 2 – INDENTED TEXT
     **********************************/

    /* ensure submenu is just stacked content */
    .toolbar .submenu {
        position: static !important;
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0;
        margin: 0;
        width: 100% !important;
    }

    .toolbar .submenu-wrapper,
    .toolbar .submenu-inner {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .toolbar .submenu-inner h3 {
        display: none !important;  /* hide headings inside dropdowns */
    }

    .toolbar ul.level_2 {
        list-style: none;
        margin: 8px 0 12px 12px;
        padding: 0;
    }

    .toolbar ul.level_2 > li {
        margin: 0;
        padding: 0;
        border: 0;
    }

    .toolbar ul.level_2 > li > a {
        display: block;
        padding: 8px 0;
        font-size: 18px;
        line-height: 1.3;
        color: #dddddd !important;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-transform: none;
    }
  
      /* hide ALL menu content by default */
    #toolbar-wrapper .toolbar {
        display: none;
    }

    /* show it only when JS adds .is-open */
    #toolbar-wrapper .toolbar.is-open {
        display: block;
    }

    /* also hide ALL default mega-menu positioning */
    #toolbar-wrapper .toolbar .menu > li.level_1 {
        display: none !important;
    }

    /* show them again in mobile overlay */
    #toolbar-wrapper .toolbar.is-open .menu > li.level_1 {
        display: block !important;
    }
}

/* Hide the custom entry by default everywhere */
.mobile-head-entry {
    display: none;
}

/* Show only IN MOBILE INSIDE THE OPEN MENU */
@media (max-width: 880px) {
    .toolbar.is-open .mobile-head-entry {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 22px 20px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        background: #003366;
    }

    .mobile-head-entry a {
        display: flex;
        align-items: center;
        gap: 14px;
        color: white;
        font-size: 22px;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-head-entry img {
        width: 42px;
        height: auto;
    }
}

@media (max-width: 880px) {

    /* Make main card full width */
    #maininfo {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 10px !important; /* optional small padding so text isn’t flush */
        box-sizing: border-box;
    }

    /* Remove rounded borders unless you want to keep them */
    #maininfo > .section,
    #maininfo > div {
        border-radius: 0 !important;
    }
}

@media (max-width: 880px) {

    /* Hide sidebar completely */
    #sidebar {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
  
      #sponsoren {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Main content should use full width when sidebar is gone */
    #maininfo {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box;
    }
}

@media (max-width: 880px) {



    /* Remove top spacing */
    #header-top,
    #header-foot {
        display: none !important;
    }

    /* Reduce top padding inside layout if needed */
    #content {
        padding-top: 5px !important;  /* or 0 */
    }

    /* The rounded main card */
    #content > .section,
    #content > div.section,
    #maininfo,
    #content > div {
        margin-top: 0 !important;
    }
  

        #wrapper {
		padding: 10px !important;
    }
      /* Make main content full width */
    #content-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
          margin-top: 100px !important;
    }

}




