/**
* Theme Name: Mirai Soft Theme
* Theme URI: https://mirai-soft.de
* Description: Theme der ersten Generation von Mirai Software.
* Author: Mirai Software
* Author URI: https://mirai-soft.de
* Version: 2.0
*/


html , body
{
    margin: 0;
    width: 100%;
}

#page-header
{
    width: 100%;
    padding-top: 1em;
    clear: both;
    display: inline-flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    BACKGROUND: #e7e7e7;
    border-bottom: lightgray;
    border-bottom-width: 0.1em;
    border-bottom-style: solid;
    height: fit-content;
}

#header-image{
   /* position: relative; */
    width: fit-content;
    margin: 0em 0em 0em 20em;
    height: fit-content;
}

#page-header img
{
    height:7em;
}

[class^='menu-hauptmenue']
{
    float: left;
}

#page-content
{
  margin-top: 7em;
  float:left;
  width: 99%;
  height: 90%;
  max-height: 90%;
  position:relative;
}

#page-header .widget
{
    width: fit-content;
    height: 3.3em;
    margin: 4.7em 0em 0em 2em;
    margin-top: auto;
}

#page-header .widget li
{
    text-decoration: none;

    float:left;
    display: block;
}

.widget li:has(.sub-menu) a:after
{
    font-size:15px;
    font-weight: bold;
    color:black;
    content:"\20\20\20 \A \21A7 ";
    /*white-space: pre;*/
}

.widget li:has(.sub-menu):hover a:after
{
    content:"\20\20\20 \A \21A5 ";
}

.widget li:has(ul) a
{
    pointer-events: none;
    width: 100%;
}

.widget li .sub-menu
{
    display:none;
}

.widget li .sub-menu li
{
    clear:both;
    width: 100%;
}

.widget li:has(.sub-menu):hover .sub-menu a:after
{
    content: none;
}

.widget li:hover .sub-menu
{
    display: block;
}

.widget li:hover a
{
    pointer-events: auto;
}

 #page-header .widget ul
{
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 0;
    background-color: white;
}



#page-header .widget a
{
    font-family:Myriad Pro;
    font-size: 1.5em;
    color: black;
    display:inline-block;
    text-decoration: none;
    text-align: center;
    padding-left:10px;
    padding-right:10px;
    padding-top: 20px;
    padding-bottom:15px;
    height: 20px;
    width: -moz-available;
    width: -webkit-fill-available;
}

.sub-menu a
{
    background-color:#f2f2f2;
    width: 100%;
}

#page-content .widget a:link, a:visited, a:active
{
  /*
    color: #CC0066;
    text-decoration: none;
  */
}


#page-header .widget a:hover
{
    color:black;
    text-decoration: none;
    border-bottom : #FC7D2B solid;
}


#page-content  .entry
{
   padding-left:19em;
   width:82%;
   float:left;
   height: 65%;
   max-height: 65%;
   overflow-y:auto;
   font-size: 18px;
}

#page-content  .entry .wp-block-image
{
   float:left;
}

#page-content  .entry p ,#page-content .entry .wp-block-table
{
   padding-right:20%;
}

#page-content h1
{
    margin-top:2em;
    text-align: center;
    font-size:2em;
}

.openbtn
{
    display: none;
    font-family:Myriad Pro;
    color: black;
    text-decoration: none;
    text-align: center;
    border: none;
    text-decoration: none;
    float:left;
}

.openbtn:hover
{
    background-color: lightgray;
    text-decoration: none;
}

@media screen and (max-device-width:1090px)
{
    body
    {
       /*font-size: 14px;*/
    }

    #page-header
    {
        margin: unset;
        width:100%;
    }

    #header-image
    {
        margin: unset;
       /* width:100%;*/
    }

    #page-header img
    {
        height:9em;
    }

    #page-header .widget
    {
        margin: unset;
       /* height: fit-content;  */
        width: 100%;
    }

    [class^='menu-hauptmenue']
    {
        float: right;
    }

    #page-header .widget a
    {
        font-size: 2.5em;
        height: fit-content;
    }
    #page-header .widget ul
    {
        border-left: lightgray solid;
    }
    .openbtn
    {
        float: right;
        display: block;
        width: 6vh;
        height: 6vh;
        font-size: 3vh;
        background-color: unset;
    }

    #page-content
    {
     
      max-height:100%;
      overflow-x: auto;

    }
    #page-content .widget
    {
       /*max-width: 50%;*/
        /* min-height:7em;*/

       /*background:#FC7D2B;*/
    }
     #page-header .widget li
    {
        clear:both;
        width:100%;
    }

    #page-header .widget a
    {
        text-align: left;
        font-size: 2.5vh;
        width:100%;
    }

    #page-header .widget .sub-menu a
    {
        padding-left: 10% !important;
    }

    .widget li:has(.sub-menu) a:after
    {
        font-size:1em;
    }

    .widget li .sub-menu
    {
        display:block;
    }

    .widget li:has(.sub-menu) a:after , .widget li:has(.sub-menu):hover a:after
    {
        content:none;
    }

    .sub-menu li a
    {
        width:100%;
    }

    .menu
    {
        overflow: hidden;
        position: relative;
        transition: 0.5s;
        display: none;
        height: 100vh;
        max-height:100vh;
    }


    #page-content .entry
    {
        padding-left:6em;
        width:85%;
    }


    #page-content  h1
    {
        margin-left: 2em;
        font-size: 2vh;
    }

    .active
    {
        background-color: #04AA6D;
        color: white;
    }

}

@media screen and (max-device-width:400px)
{
    body
    {
     /*background-color: #CC0000;*/  
	}

}