/*  ==========================================================================
    hb_menubar.css
    by  Philip A. C. Ralph
    for Heimatbund Gelsenkirchen
    -----------------------------------------
    menubar at top of page
    Menueleiste oben
    -----------------------------------------
    https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_topnav
    https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_dropdown_navbar
    ==========================================================================
*/
/*  *****************************
        Menubar     class="menubar"
        contains >=0 link .menubar a
        and      >=0 menu .dropdown

        Menu        class="dropdown"
        contains 1      button      class="dropdown-button"
        and      >=1    menu item   class="dropdown-content"

     *****************************
*/


/*  ==========================================
**    NO SUPPORT FOR variables IN iExplore !!!
**  ==========================================
*/

/*
* -------------------------------------------
    :root {
      --gelsengruen:    #4CAF50;
      --anthrazit:      #333;
      --duenbier_rot:   #800000;
      --duenbier_lila:  rgb(128,0,128);
      --duenbier_grau:  #EEF1F6;
    }
* -------------------------------------------
*/

body {margin:0;}

.menubar {
    overflow: hidden;
    background-color: #800000; /* var(--duenbier_rot); */
    font-family: Arial,Helvetica,sans-serif;
    font-weight: bold;
    /*
    padding: 2px 4px 2px 2px;
    */
}

/*
    =====================
    Menu bar
    =====================
*/
.menubar a {
    font-size: 14px;
    font-weight: bold;
    float: left;
    display: block; 
    color: white; /* WAS #f2f2f2; */
    background-color: #800000; /*var(--duenbier_rot);*/
    /*  */
    padding: 12px 14px;
    text-decoration: none;
}
.menubar_left a {text-align: center;}
.menubar_center a {text-align: center;}
.menubar_right a {text-align: right;}

.menubar a:link { color:white; }
.menubar a:visited { color:white; }
.menubar a:hover, 
.menubar a:active {
    background-color: #800000;  /* var(--duenbier_rot); */
    color: white;
}

.menubar img {
    max-height: 28px;
}

.menubar_left {
    /* for link with text "<< Zurück" */
    width: 280px;
}

.menubar_spacer {
    /* for link with text "Verkaufsstellen >>" */
    width: 100px;
}
.menubar_right {
    /* for link with text "Verkaufsstellen >>" */
}

.menubar_center {
    /* for data record navigation buttons
       für Datensatz-Navigations-Schaltflächen
    */
}

.menubar_center a.active_test {
    /* for text in center, between the data record navigation buttons
       für Text in der Mitte, zwischen den Datensatz-Navigations-Schaltflächen
    */
    background-color: #800000; /*var(--gelsengruen);*/
    color:white; font-size: 20px;
}

/*
    ===============
    Dropdown menu
    ===============
*/

.dropdown,
.dropdown-active,
.submenu,
.submenu-active {
    float: left;
    overflow: hidden;
}

.dropdown .dropdown-button,
.dropdown .dropdown-button-active,
.submenu .submenu-button,
.submenu .submenu-button-active ,
.dropdown-subhead {
    font-size: 14px;
    font-weight: bold;
    border: none;
    outline: none;
    color: white;
    padding: 12px 14px;
    background-color: #800000; /* inherit ;*/
}

/*
The padding property is a shorthand property for the following individual padding properties:
    padding-top
    padding-right
    padding-bottom
    padding-left

*/

/*
    ====================================
    Colour active elemnts to show user position
    of the current page within the overall structure
    ====================================
*/
.dropdown-subhead a.active {
    background-color: #800000;  /* #07892F; var(--gelsengruen); */ /* previously #4CAF50; */
    font-weight: bold;
    color: white;
}
.menubar a.active,
.dropdown-active,
.dropdown .dropdown-button-active,
.dropdown-content a.active {
    background-color: #800000;  /* #07892F; var(--gelsengruen); */ /* previously #4CAF50; */
    font-weight: bold;
    color: white;
}


/* ----------------------------------------------------- */

/*
    ====================================
    Highlight on mouse hover
    ====================================
*/

/*
following is original definition from
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_dropdown_navbar
*/

.menubar a:hover,
.submenu:hover .submenu-button,
.submenu:hover .submenu-button-active {
    background-color: #800000; /* WAS #ddd */
    font-weight: bold;
    color: white; /* WAS  black */
}

.dropdown:hover .dropdown-button,
.dropdown:hover .dropdown-button-active,
.submenu:hover .submenu-button,
.submenu:hover .submenu-button-active {
    background-color: darkorange; /* WAS #ddd */
    font-weight: bold;
    color: white; /* WAS  black */
}

/* alternative colouring
**    .dropdown:hover .dropdown-button {
**        background-color: #3e8e41;
**}
*/

/*
    ===================
    Dropdown menu items
    ===================
*/

.dropdown-content,
.submenu-content {
    font-size: 14px;
    font-weight: normal;
    display: none;
    position: absolute;
    background-color: white; /* WAS #f9f9f9; */
    min-width: 160px;
    padding: 6px 14px 6px 12px;
    box-shadow: 0px 12px 14px 0px rgba(0,0,0,0.6);
    z-index: 1;
}

.dropdown-content a,
.submenu-content a {
    font-size: 14px;
    font-weight: normal;
    float: none;
    display: block;
    color: black;
    background-color: white;  /* WAS #f9f9f9; */
    padding: 6px 14px 6px 12px;
    /* padding: 6px 0px 0px 0px; */
    /* padding: 12px 14px; */
    text-decoration: none;
    text-align: left;
}

.dropdown-content a:link, 
.dropdown-content a:visited, 
.submenu-content a:link, 
.submenu-content a:visited {
    /* font-weight: bold; */
    color: black;
    background-color: white;  /* WAS #f9f9f9; */
}


/* unsupported attributes:
    target: "_top";
*/

.disabled, .disabled a:hover, .disabled:hover {
    background-color: rgb(64, 64, 64);
    color: rgb(64, 64, 64);
    font-style: italic;
}

.dropdown-content a:hover {
    background-color: #800000; /* WAS #ddd */
    color: white; /* WAS  black */
}
.dropdown-content.disabled a:hover {
    background-color: rgb(64, 64, 64);
    color: rgb(64, 64, 64);
    font-style: italic;
}

/* alternative colouring
.dropdown-content a:hover {
    background-color: #f1f1f1
}
*/

.dropdown:hover .dropdown-content,
.submenu:hover .submenu-content{
    display: block;
}

