:root {
    --site-orange-regular50: #d2960080;
}

/* body:after {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    content: url(../icons/HP_MiLo_RDot_Red.drawio.png) url(../icons/favicon.svg);
} */



.not-desktop {
    display: none;
}

.header-main-logo #menu-selector > .not-mobile {
    display: flex !important;
    /* width: 50px; */
}



/* -------------------
------ Header ------
---------------------- */
.header-margin {
    width: 100%;
    height: 25px;
    /* background-color: aqua; */
    /* background-color: rgba(200, 20, 20, 0.5); */
}

.header-main {
    width: 100%;
    height: 35px;
    color: #fff;
    /* background-color: #69696999;  /* debug */
    position: relative;
    /* left: 1%; */
    display: block;
    justify-content: space-between;
    z-index: 10;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* -------------------------------
------ Hamburger + Menu Bar ------
---------------------------------- */

/* gesamter Hauptmenue-Balken von left:0 bis Ende WORKS/ABOUT/... */
.header-main-logo {
    /* width: 60px; */
    width: fit-content;
    height: 100%;
    /* background-color: rgb(1, 23, 65); */
    display: flex;
    /* margin-right: 20px; */
    /* background-color: rgba(200, 20, 20, 0.5); */
}


/* .header-main-logo a{
    align-self: center;
} */
 /* .header-main-logo div{
    align-self: center;
} */



/* --------------------
------ Hamburger ------
----------------------- */

/* <div> Hintergrund des Hamburgers */
#menu-selector { 
    position: relative; 
    display: block;
    /* top: 15px;  */
    left: 27px; 
    /* font-size: 12px;  */
    /* font-weight: 200;  */
    /* letter-spacing: 0.5px;  */
    /* font-family: 'Roboto', sans-serif; */
    color: #e6e6e6b3; 
    text-align: left; 
    /* line-height: 7px;  */
    padding-left: 30px; 
    display: inline-block;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* <a> Hintergrund des Hamburgers */
#menu-selector a {
    font-size: 32px;
    height: 50px;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* #menu-selector:hover {color: rgba(20, 230, 230, 0.7);} */

/* <img> Hintergrund des Hamburgers */
.header-main-logo img {
    height: 20px;
    /* align-self: center; */
    margin: 5px 30px 5px 20px;
    opacity: 0.7;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* <img> Hintergrund des Hamburgers bei hovern */
.header-main-logo img:hover {
    height: 20px;
    /* align-self: center; */
    margin: 5px 30px 5px 20px;
    opacity: 0.9;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* bei hovern ueber Hamburger wird Hauptmenue rot WORKS/ABOUT/... */
/* bei weiterem hovern ueber Hautpmenue -> rot wieder weg */
/* #menu-selector:hover ~ .hidden {visibility: visible;} */
#menu-selector:hover ~ .hidden {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;  /* ← wichtig! */
    transition-delay: 75ms;  
    /* background-color: rgba(200, 20, 20, 0.5); */
}


/* ---------------------
------ Navigation ------
------------------------ */

/* Hauptmenue ohne Hamburger WORKS/ABOUT/... */
.header-main-nav {
    /* width: 120px; */
    width: fit-content;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.5);   /* debug  kein Effekt ??*/
    border-radius: 7px 7px 7px 7px;
    display: flex;
    /* flex-direction: column; */
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* .header-tmp {
    background-color: rgb(67, 67, 67);
    color: aliceblue;
} */

/* Hintergrund Hauptmenue gesamt  WORK/ABOUT/... (nicht Untermenues!)*/
.header-main-nav ul {
    list-style: none;
    display: flex;
    margin: 0 0px;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* alle Hintergruende von WORKS bis CANDY/LIFE/... */
.header-main-nav ul li {
    position: relative;
    display: inline;
    float: left;

    color: #ffffff;
    /*padding: 0 10px;    /* seamless link */
    /* margin-right: 10px; */ /* link - no link - link */
    font-family: 'Roboto', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 200;
    text-transform: uppercase;
    /* align-content: center;
    align-items: center; */
    text-align: center;
    line-height: 35px;
    /* display: flexbox; */
    display: block;
    height: 100%;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* Hintergrund alle einzeln  WORKS/ABOUT/... bis CANDY/LIFE/... */
.header-main-nav ul li:hover {
    font-weight: 200;
    /* background-color: rgba(210, 150, 0, 0.5);  */
    background-color: var(--site-orange-regular50);
    color: #ffffff;
    /* background-color: rgba(200, 20, 20, 0.5); */
}






/* ##########################################################
###### -- DIE BRUECKE - schliesst die Luecke -- #############
############################################################# */
/*  */

/* Ueberlauf aller Hintergruende von Hauptmenu WORKS/ABOUT/... (nicht Hamburger) bis CANDY/SHINY/...
/* base-menu: invisible frame for mouse getting out of the menu*/
.header-main-nav ul > li::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -20%;
    height: 150%;
    width: 140%;
    z-index: -30;
    /* left: 40px; */
    /* opacity: 0; */
    /* height: 40px;
    width: 100%; */
    /* background-color: #adff2f99; */
}

/* Ueberlauf nur Untermenue LL/Akemi/... */
/* sub-menu: invisible frame for mouse getring out of the menu*/
.header-main-nav ul li > ul.hidden-sub::before {
    content: "";
    position: absolute;
    top: 0;
    right: -20%;
    height: 200px;
    width: 140%;
    z-index: -20;
    /* background-color: greenyellow; */
}

/* Ueberlauf nur Unter-Untermenue CANDY/SHINY/... */
/* sub-sub-menu: invisible frame for mouse getting out of the menu*/
.header-main-nav ul li > div.hidden-sub-sub::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -20%;  /* ragt unsichtbar nach links in die Luecke */
    width: 140%;    /* wie weit man im untersten Menue mit der Mouse links raus kann */
    height: 120%;
    z-index: -10;
    /* background-color: crimson; */
}


.header-main-nav ul li:first-child { border-radius: 7px 0 0 7px;}
.header-main-nav ul li:last-child { border-radius: 0 7px 7px 0; border-right: 0px solid #444;}
/* .header-main-nav ul li:first {border-radius: 0 4px 4px 0; border-right: 0px solid #444;} */

.header-main-nav ul li ul li:first-child { border-radius: 7px 7px 0 0px;}
.header-main-nav ul li ul li:last-child { border-radius: 0 0px 7px 7px; border-right: 0px solid #444;}



/* TEXT alles -- alle LINKS --  (von WORK bis Candy/Sacre/... */
/* um Hober-Bereich zu erweitern */
.header-main-nav ul li a {
    /* text-align: center; */
    margin: 0 20px 0 20px;
    /* background-color: rgba(200, 20, 20, 0.5); */
}


/* ------------------------
---- Images und Icons -----
--------------------------- */

/* Icon fuer Link auf externe Website */
.img-menu-icon {
    position: relative;
    top: 10px;
    height: 20px;
    width: 31px;
    align-self: center;
    border: none;
    padding: 0;
}

.img-menu-icon30 {
    position: relative;
    top: 10px;
    height: 30px;
    /* width: 31px; */
    align-self: center;
    border: none;
    padding: 5px 0;
}


/* kleine Images fuers Menue */
.header-main-nav ul li ul li div ul li div img {
    margin: 0px 6px 5px 6px;

}

.header-main-nav ul li ul li div ul li div img:hover {
    height: 20px;
    margin: 0px 6px 5px 6px;

}



/* ##########################################################
################ MENUE WORKS/ABOUT/... ######################
############################################################# */

/* Hintergrund gesamt WORKS/ABOUT/... */
.hidden {
    visibility: hidden;
    padding-left: 0px;   /* 20 */
    pointer-events: none;  /* ← wichtig! */
    opacity: 0;
    /* transition: 300ms ease-in-out; */
    transition: opacity 0.3s, visibility 0.3s;
    transition-delay: 250ms;  /* ← erst nach 300 ms schliessen */
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* Hover Hintergrund gesamt > Hintergrund gesamt WORKS/ABOUT/... */
.hidden:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;  /* ← wichtig! */
    transition-delay: 75ms; 
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* -- Ebene 1: Sub-Menue (z. B. unter Work) -- */
/* Hover auf WORKS/ABOUT/... > Untermenue LL/Akemi/... */
.header-main-nav ul li > ul.hidden-sub {
    /* display: none; */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;  /* ← wichtig! */
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 180px;
    /* background: #fff; */
    transition: opacity 0.3s, visibility 0.3s;
    transition-delay: 250ms;  /* ← erst nach 300 ms schliessen */
    /* background-color: rgba(200, 20, 20, 0.5); */
}
/* Hover auf WORKS/ABOUT/... > Untermenue LL/Akeme/... */
.header-main-nav ul li:hover > ul.hidden-sub {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;  /* ← wichtig! */
    transition-delay: 175ms;  /* ← sofort einblenden / Untermenue LL/Akemi/etc. */
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* -- Ebene 2: Sub-Sub-Menue (Flyout nach rechts) -- */
/* .header-main-nav ul li > div.hidden-sub-sub {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;   direkt rechts an das <li> angelehnt
    width: fit-content;
} */



/* -------------------
------ SUB-MENU ------
---------------------- */
/* ##########################################################
################ Untermenue LL/Akemi/.... ####################
############################################################# */

/* Hover auf Untermenue LL/Akemi/... > Unter-Untermenue Hintergrund 1 CANDY/SHINY/... */
.header-main-nav ul li > div.hidden-sub-sub {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;  /* ← wichtig! */
    position: absolute;
    /* display: flex; */

    top: 0;
    left: 100%;
    transition: opacity 0.3s, visibility 0.3s;
    transition-delay: 250ms;  /* ← erst nach 300 ms schliessen */
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* Hover auf Untermenue LL/Akemi/... > Unter-Untermenue Hintergrund 1 CANDY/SHINY/... */
.header-main-nav ul li:hover > div.hidden-sub-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;  /* ← wichtig! */
    display: flex;
    width: fit-content;
    transition-delay: 175ms;  /* ← sofort einblenden */
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* Untermenue LL/Akemi/etc. */
.header-main-nav ul li ul {
    display: flex;
    flex-direction: column;
    height: min-content;
    /* align-items: center;
    align-self: center;
    justify-content: center; */
    text-align: center;
    /*background-color: gold;     /* debug */
    background-color: rgba(20, 20, 20, 0.6);   /*    0.5 */
    padding: 0px 10px 0 0;
}

/* auch Untermenue LL/Akemi/etc. */
.header-main-nav ul li ul li {
    width: 100%;
    font-family: 'Roboto', 'Arial';
    font-size: 14px;
    font-weight: 200;
    /* background-color: rgba(200, 20, 20, 0.5); */
    margin: 0px 10px 0 0;
    /* padding: 5px 5px; */
}

/* TEXT Untermenue LL/Akemi/etc. */
.header-main-nav ul li ul li a {
    margin: 3px 3px 0px 3px;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* Unter-Untermenue: Sacre/Life/Candy/Shiny/... */
/* Hover auf LL > Sacre/Life/Candy/Shiny/... */
.header-main-nav ul li ul li:hover > div{
    visibility: visible;
    opacity: 1;
    pointer-events: auto;  /* ← wichtig! */
    height: fit-content;
    /* display: block; */
    /* background-color: rgba(200, 20, 20, 0.5); */
    transition: opacity 0.3s, visibility 0.3s;
    transition-delay: 75ms;  
}



/* ##########################################################
##### Unter-Untermenue: Sacre/Life/Candy/Shiny/... ##########
############################################################# */

/* Hintergrund 1: Unter-Untermenue: Sacre/Life/Candy/Shiny/... */
.header-main-nav ul li ul li div ul {
    display: flex;
    flex-direction: column;
    /* justify-content: end; */
    width: max-content;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* Hintergrund 2: Unter-Untermenue: Sacre/Life/Candy/Shiny/... */
.sub-sub-align {
    vertical-align: bottom;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* Hintergrund 2: Unter-Untermenue: Sacre/Life/Candy/Shiny/... */
.header-main-nav ul li ul li div ul li {
    margin: 0 10px 0 10px;
    text-align: left;
    /* background-color: rgba(200, 20, 20, 0.5); */
}

/* Unter-Untermenue: Sacre/Life/Candy/Shiny/... */
/* Hover auf Sacre/Life/Candy/Shiny/... > Sacre/Life/Candy/Shiny/... */
.header-main-nav ul li ul li div ul li:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;  /* ← wichtig! */
    height: fit-content;
    /* display: block; */
    /* background-color: rgba(200, 20, 20, 0.5); */
    transition-delay: 75ms;
}


/* .hidden-sub {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
} */

/* .hidden-sub:hover {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s, visibility 0.3s;
} */

/* .hidden-sub-sub {
    visibility: collapse; */
    /*display: none;*/
    /* height: 0px;
    opacity: 0;
    transition: opacity 1.3s, visibility 1.3s, display 1.3s;
} */





  /* -----------------
  ----- MOBILE -------
  -------------------- */


/* ==========================================================================
   MOBILE RESPONSIVE MENue (fuer Bildschirme unter 768px)
   ========================================================================== */

/* @media only screen and (max-width: 600px) { */
@media only screen and (max-width: 767px) {

    .header-margin {
        width: 100%;
        height: 25px;
        /* background-color: aqua; */
    }

    .header-main {
        left: 0;
        padding: 0 0px;
        /* box-sizing: border-box; */
    }

    .not-mobile {
        position: absolute;
        display: none;
        display: inline-block;
    }


    .not-desktop {
        display: inline-block;
    }

    
    /* -------------------
    ------ Menu Bar ------
    ---------------------- */
    .header-main-logo {
        /* width: 60px; */
        width: fit-content;
        height: 100%;
        /* background-color: rgb(1, 23, 65); */
        /* display: flex; */
        /* margin-right: 20px; */
    }

    .header-main-logo img {
        height: 20px;
        /* align-self: center; */
        margin: 5px 10px 5px 10px;
        opacity: 0.7;
    }

    .header-main-logo img:hover {
        height: 20px;
        /* align-self: center; */
        margin: 5px 10px 5px 10px;
        opacity: 0.9;
    }

    /* .header-main-logo a{
        align-self: center;
    } */
    .header-main-logo div{
        align-self: left;
        /* display: inline; */
    }

    /* Der Burger Button bleibt fixiert sichtbar */
    #menu-selector {
        z-index: 1001;
        position: relative;     /* oder fixed */
        opacity: 0.7;
        padding: 0;
    }

    /* Verwandelt das Menue in ein modernes Full-Screen/Slide-In Overlay */
    .header-main-nav {
        position: fixed;
        top: 0;
        left: -100%; /* Versteckt ausserhalb des Bildschirms */
        width: 80%;  /* Schickes Off-Canvas-Design */
        /* max-width: 320px; */
        height: 100vh;
        background-color: rgba(20, 20, 20, 0.95); /* Dunkler, opaker Hintergrund mobil */
        backdrop-filter: blur(10px);
        border-radius: 0;
        z-index: 1000;
        transition: left 0.4s ease;
        padding-top: 60px; /* Platz fuer den Burger-Button oben */
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
        overflow-y: auto;  /* Scrollbar, falls Menue laenger als der Bildschirm ist */
    }

    /* Wenn das Menue geoeffnet ist */
    .header-main-nav.open {
        left: 0;
    }

    /* Menue-Listen untereinander statt nebeneinander */
    .header-main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .header-main-nav ul li {
        display: block;
        width: 100%;
        text-align: left;
        height: auto;
        line-height: normal;
        float: none;
    }

    .header-main-nav ul li a {
        display: block;
        padding: 12px 20px;
        margin: 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Deaktiviert die Desktop-Hover-Logik komplett */
    .header-main-nav ul li:hover {
        background-color: transparent;
    }
    .header-main-nav ul li:hover > ul.hidden-sub,
    .header-main-nav ul li:hover > div.hidden-sub-sub {
        display: none !important; 
        opacity: 0;
        visibility: hidden;
    }

    /* CSS-Inseln/Hover-Hilfen fuer Desktop mobil zuruecksetzen */
    .header-main-nav ul li::before,
    .header-main-nav ul li > ul.hidden-sub::before,
    .header-main-nav ul li > div.hidden-sub-sub::before {
        display: none !important;
    }

    /* Style fuer die Untermenues im Akkordeon-Stil */
    .header-main-nav ul li > ul.hidden-sub,
    .header-main-nav ul li > div.hidden-sub-sub {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        min-width: 100%;
        background-color: rgba(0, 0, 0, 0.2);
        max-height: 0; /* Standardmaessig eingeklappt */
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease-out, opacity 0.3s ease;
    }

    /* Wenn ein Untermenue aktiv geoeffnet ist */
    .header-main-nav ul li.active > ul.hidden-sub,
    .header-main-nav ul li.active > div.hidden-sub-sub {
        max-height: 1000px; /* Gross genug fuer alle Unterpunkte */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: block !important;
    }

    /* Sub-Sub-Menue eingerueckt darstellen */
    .header-main-nav ul li > div.hidden-sub-sub ul {
        background-color: rgba(0, 0, 0, 0.4);
    }
    
    .header-main-nav ul li > ul.hidden-sub li a {
        padding-left: 35px; /* Einrueckung Ebene 2 */
        font-size: 15px;
    }

    .header-main-nav ul li > div.hidden-sub-sub ul li a {
        padding-left: 50px; /* Einrueckung Ebene 3 (mit Bildern) */
        font-size: 14px;
        line-height: 1.4;
    }

    /* Die Mini-Bilder im mobilen Menue buendig machen */
    .img-menu-icon {
        top: 0;
        margin: 0 5px !important;
        vertical-align: middle;
        display: inline-block;
    }

    /* Visueller Indikator (Pfeil) fuer Menuepunkte mit Untermenue */
    .has-submenu > a::after {
        content: " ▾";
        font-size: 12px;
        float: right;
        opacity: 0.5;       /* kein Effekt ?? */
        transition: transform 0.3s;
    }
    .has-submenu.active > a::after {
        transform: rotate(-180deg);
    }

    /* Border-Radius-Korrekturen fuer Mobilgeraete entfernen */
    .header-main-nav ul li:first-child, .header-main-nav ul li:last-child,
    .header-main-nav ul li ul li:first-child, .header-main-nav ul li ul li:last-child {
        border-radius: 0;
    }
}
