

/*
orange: #F5A812
grau:   #F5F5F7
blue: #0076BA
*/


@font-face {
    font-family: avenir;
    src: url("../assets/fonts/Avenir.otf") format("opentype");
}

@font-face {
    font-family: avenir;
    font-weight: bold;
    src: url("../assets/fonts/AvenirBlack.otf") format("opentype");
}


body {

    /*font-family: "Open Sans", sans-serif; 
    font-family: "sfpro", sans-serif;*/

    font-family: "avenir", sans-serif;

    line-height: 1.5;
    color: black;
    padding: 0;
    margin: 0;

    font-size: 20px;
    text-align: center;
    color: black;

    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;

    background: white;



    /*    -moz-hyphens: auto;
        -o-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto; */

    box-sizing: border-box;

}


* {
    box-sizing: border-box;
}

a {
    color: black;
    text-decoration: none;
    cursor: pointer
}

h1, h2, h3, h4 {
    color: black;
    line-height: 1.3;
    margin: .6em 0;
}


h1 a {
    background: none;
    color: rgba(0,0,0,.5);
    display: inline;
    font-size: 70%;
    border-radius: 4px
}



h2 {
    font-weight: bold;
    font-size: 1.3em
}

h5 {
    text-transform: uppercase;
    font-weight: normal;
    font-size: 85%;
    color: rgba(255,255,255,.7)
}

p {
    margin: 0.3em 0
}

input, select{
    width: 100%;
    font-size: 18px;
    border: none;
    border-bottom: 1px solid black;
    color: black;
    background: none;
    padding: 6px 0;
    margin-bottom: 10px
}

/* passwords with eye icon*/
input.pass {
    width: 90%;
    margin: 0 10px 10px 0
}

textarea, input, select, .boxSelect {
    background: none ;
    padding: 5px 3px;
}
fieldset {
    border: none
}

input[type=checkbox] {
    zoom: 2.5;
    width: 15px;
    margin: 5px;
    xaccent-color: white;
}

#boxRegister {
    margin-bottom: 10px;
    padding-bottom: 10px;

}

.logo {
    width: 60%;
    max-width: 400px;
    margin: 7% auto
}

#nav {margin-top: 50px}

#nav .logo {
    width: 30%
}

#btnBack {
    position: absolute;
    left: 18px;
    top: -13px;
}

#btnBack .ic-back {
    width: 22px;
    height: 22px
}

#version {
    position: absolute;
    top: 5px;
    right: 5px;
    font-family: "Courier", monospace;
    font-size: 12px;
    color: white;
    z-index: 9
}


div.menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    background: white;
    height: 60px;
    padding-top: 6px;
    font-size: 12px;
    border-top: 1px solid silver;
}

div.menu>div {
    text-align: center;
}


#menuMain a {
    color: black;
    opacity: 0.7
}
#menuMain a img {
    opacity: 0.5
}
#menuMain a.active, #menuMain a:hover {
    color: #111;
    opacity: 1;
    font-weight: bold
}
#menuMain a.active img {
    opacity: 1;
}
#menuMain img {
    width: 25px;
}


#wrapper {
    xposition:relative;
    width: 100vw;
    max-width: 1000px;
    margin: 0 auto;
    height: 100vh;
    background: white;
    overflow: hidden; /* section scrolls */
}

section {
    padding: 30px 30px 100px 30px;
    background: #F5F5F7;
/*    background-image: url(../assets/bg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;*/
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 100vh;  /*calc(100vh - 60px); */
    overflow-y: auto; /* scrolling only .slide or .inner*/
    border-top: 3px solid #F5A812
}




.header {
    background:  white;
    border-bottom: 1px solid silver;
    padding: 10px 0 0 0;
}

.header h2 {
    margin: 0
}


.sectionHead {
    text-align: left
}
.sectionHead h1 {
    font-size: 2em;
    margin-top: 0
}

.sectionHead h1 i {font-size: 115%; vertical-align: text-bottom; font-weight: bold; color: #F5A812}


button, .btn , .popup a.btn{
    display: block;
    padding: 10px 20px;
    margin: 20px auto;
    font-weight: normal!important;
    color:  black!important;
    background: #F5A812;
    border: none;
    border-radius: 30px;
    outline: none;
    cursor: pointer;
    opacity: 1;
    transition: opacity 500ms
}

button {
    display: block;
    width: 100%;
    margin-top: 20px
}


.btnSecondary {
    font-size: .9em;
    padding: 10px 15px;
    background: silver
}

.btnSmall {
    display: inline-block;
    font-size: 1.4em;
    padding: 5px;
    margin: 10px;
    width: 42px;
    border-radius: 6px;
}


.btnBig {
    display: inline-block;
    padding: 8px;
    background: #F5A812;
    border-radius: 8px;
    font-size: 2em;
    margin-top: -3px;
    xborder: 2px solid white;
    box-shadow: 2px 2px 0 rgba(0,0,0,.15);
    transition: box-shadow 0.3s ease-in-out;
}

.btnBig:focus {
    box-shadow: 5px 5px 0 rgba(0,0,0,.15);
}

.btnSquare {aspect-ratio: 1/1}

#btnDeleteAccount {
    background: none; 
    border: 1px solid crimson;
    color: crimson;
    padding: 5px 15px;
    border-radius: 4px
}

.disabled {background: #999!important; }

[data-section] {cursor: pointer}


/* section specific ============================================================   */


/* 
solving the problem of equally sized boxes that match width and wrapp
    The auto-fill function allows the grid to line up as many grid tracks (columns or rows) as possible without overflowing the container. This can create similar behavior to flex layout's flex-wrap: wrap.
    The minmax() function allows you to set a minimum and maximum size range for a grid track. In the code above, the width of column tracks will be a minimum of 100px and maximum of whatever free space is available.
*/
.squareGrid {
    max-width: 600px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-gap: 1em;

}


.squareGrid div {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center; /* vertically centering content */
    justify-content: center;
    border: 1px solid black;
    color: black;
    border-radius: 20px;
    padding: 10px;

}





/* listing -----------------------------------------------------------------  */

#boxListing {
    margin: 0 -10px
}

.filterItem {
    width: calc(100% - 35px)
}
#filterCat {
    display: inline-block;
}
.styleFilterCat {
    padding: 10px 15px;
    text-align: left;
    margin: 0 0 20px 0;
}
.clearSearch {
    float: right;
    margin: 10px 0 0 0
}




section#nav div.square img {
    display: block;
    width: 35%;
    margin: 20px auto;
}

#nav .grid i {
    display:inline-block;
    font-size: 40px;
    background: #F5A812;
    border-radius: 8px;
    padding: 8px;
    margin-top: -80px;

}

#detail .inner {
    background: white
}

#detail img {
    width: 100%;
    height: 90vh;
    object-fit: contain;
    margin: auto
}



/* chat  -----------------------------------------------------------------  */

#boxChats {margin: 0 -10px}

#btnNew {
    float: right;
}

input[name='title'] {
    font-size: 1.5em;
    font-weight: bold;
    background: white;
    width: 100%;
    border-radius: 4px;
    border: 1px solid silver
}

.write {
    background: white;
    padding: 6px;
    font-size: 1.3em;
    width: 100%;
    height: 35vh;
    border-radius: 4px;
    border: 1px solid silver
}

.chat {
    background: white;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 5px;
}

.chat h3 {
    padding-bottom: 5px;
    margin: 0 -5px 5px -5px;
    border-bottom: 1px solid #f5f5f5;
}

.chat .btn {text-align: center}

.chat img {max-width: 90%}

.msg {
    color: #666
}
.msgUser {
    text-align: left;
    margin-right: 30px;
}
.msgAdmin {
    color: #0076BA;
    text-align: right;
    margin-left: 30px;
}

.boxManual {
    padding: 25px;
    background: #e5e5e5;
    border-radius: 4px;
    margin-top: 30px;
    text-align: left;
    color: #666;
    font-size: 85%
}


/* settings  -----------------------------------------------------------------  */
.card {
    border: 1px solid black;
    border-radius: 10px;
    padding: 12px 20px;
    margin: 5px auto;
    text-align: left;
}

.blogDetail {
    opacity: 0.8
}


.bigIcon {
    display: inline-block;
    padding: 8px;
    background: #F5A812;
    border-radius: 8px;
    font-size: 40px;
}




/* footer  -----------------------------------------------------------------  */


#footermenu {
    position: absolute;
    width: 100vw;
    bottom: 0px;
    display: flex;
    height: 53px;
    background: black;
    z-index: 10;

}

#footermenu div {
    background-repeat: no-repeat;
    background-size: 35px;
    background-position: center
}

.nav-listing {
    background-image: url(../assets/icons/order.svg)
}
.nav-cart {
    background-image: url(../assets/icons/cart.svg)
}
.nav-settings {
    background-image: url(../assets/icons/settings.svg)
}
.nav-history {
    background-image: url(../assets/icons/history.png);
    background-size: 42px!important;

}
.nav-cats {
    background-image: url(../assets/icons/sortiment.svg)
}

.nav-listing.active {
    background-image: url(../assets/icons/order_on.svg)
}
.nav-cart.active {
    background-image: url(../assets/icons/cart_on.svg)
}
.nav-settings.active {
    background-image: url(../assets/icons/settings_on.svg)
}
.nav-history.active {
    background-image: url(../assets/icons/history_on.png)
}
.nav-cats.active {
    background-image: url(../assets/icons/sortiment_on.svg)
}


/*
#footermenu img {
height: 35px;
margin: 8px auto;
}*/

#boxMenuCart {
    position: relative
}
.numberNew {
    position: absolute;
    right: 5px;
    top: 9px;
    padding-right: 1px;
    background: #ed4605;
    color: white;
    border-radius: 30px;
    font-size: 75%;
    text-align: center;
    height: 20px;
    width: 20px;
    line-height: 20px;
    z-index: 2
}

.numberNewAccount {
    right: 25px;
    top: 16px;
}








.hollow {
    border: 1px solid silver;
    background: none;
    color: #333
}



input::placeholder {
    color: black;
    opacity: 0.5
}

input:disabled, button:disabled, .btn:disabled, input:read-only, input.readonly {
    background: none!important;
    border: none!important
}


input:focus, input:focus-visible, input:active {
    border: none;
    border-radius: 0;
    outline: none;
    border-bottom: 1px solid black;
    background: none
}




table {
    text-align: left;
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}


table.striped tr:nth-child(odd) th, table.striped tr:nth-child(odd) td {
    background: rgba(0,0,0,.075)
}

table.data th {
    text-align: left
}
table.data td {
    font-size: 18px
}

table.borderRight td:last-child {
    border-right: 1px dotted silver
}

hr {
    border: none;
    height: 1px;
    background: silver
}


th {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;

}


ul.plain {
    list-style-type: none;
    margin: 0;
    padding: 0 0 0 20px
}
ul.plain li {
    text-align: left;
    margin-bottom: 6px
}

xxx.datepicker {
    width: 12ch
}




section .title {
    margin: 2em 0
}

.debug {
    font-size: 80%;
    line-height: 1em;
    max-height: 60px;
    overflow: hidden;
    padding: 5px;
    background: black;
    color: greenyellow;
    font-family: monospace
}

/*label {
    font-size: 90%;
    font-weight: bold;
    color: #111;
    text-transform: uppercase;
    text-align: left;
    display: block;
    margin: 10px 0 0 0
}*/


#offlineWarning {
    position: fixed;
    right: 10px;
    top: 10px;
    background: crimson;
    color: white;
    border-radius: 10px;
    padding: 5px 15px;
}


#popup, .popup {
    position: fixed;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(7px);
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5
}

#popup2 .inner, .popup .inner {
    background: #F5F5F7;
    width: 95%;
    max-width: 600px;
    margin: 2.5% auto;
    min-height: 15vh;
    max-height: 96vh;
    overflow-y: scroll;
    border-radius: 10px;
    padding: 20px;
}

.popup {
    font-size: 90%;
}


.popup button {
    font-size: 125%
}



.popup h2 {
    margin: 0;
    line-height: 38px;
}

.popup h2 img {
    float: left;
    margin-right: 10px;
    height: 32px;
}

.popup a {
    display: inline;
    color: #e59802;
    font-weight: bold;
}


    



/*  ---   F O R M S -------------------------------------*/
form  {
    max-width: 1400px;
    margin: 20px auto;

}

input, textarea {
    font-family: "aventir", sans-serif
}

form > div {
    margin: 10px;
}

#settings .fieldset {
    background: white;
    border-radius: 10px;
    padding: 5px 15px;
    margin: 10px auto;
}

#settings .fieldset img, #settings .fieldset input {
    display: inline-block;
}

#settings .fieldset img {
    height: 20px;
    margin-right: 10px;
    margin-bottom: -3px
}

#settings .fieldset input {
    height: 26px;
    font-size: 18px;
    padding: 0;
    margin: 0;
    width: calc(100% - 50px);
    background: none;
    border: none;
    outline: none;
}


.invalid, #wood input.invalid {
    border: 2px solid red
}
.invalidSwitch div {
    color: red
}

#wood input.invalid {
    margin-right: 5px
}

.inline label{
    float: left;
    font-weight: bold;
}


.grid {
    display:grid;
    width: calc(100% - 20px);
    grid-template-columns: 50% 50%;
    grid-row: auto auto;
    grid-column-gap: 20px;
    grid-row-gap: 20px;

}



.box, .grid > div {
    background: white;
    
    xborder: 1px solid #888;
    box-shadow: 6px 6px 0 rgba(0,0,0,.05);
    padding: 20px;
}


.box {
    border: none
}


.box2 {
    width: auto;
    background: #0076BA;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
    border: none;
}

.bgDarker {
    margin: 0 20px 0 0!important;
    padding: 20px;
    background: rgba(0,0,0,.5);
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px
}


.borderBottom {
    border-bottom: 1px solid black;
    padding-bottom: 30px;
    margin-bottom: 30px
}



.icon {
    width: 50px
}


/* common styles -------------------------------------------------------- */
.flex {
    display: flex;
    flex-wrap: wrap
}

.row {
    flex-wrap: nowrap
}


.flex1 {
    flex: 1!important
} /**/
.flexRow .flex4 {
    flex: 4!important
}

.flexRow>div img {
    max-width: 100%
}



.error {
    border: 1px solid crimson;
    color: crimson
}

.flex>div {
    flex: 1 1 0;

}

.square {
    aspect-ratio: 1 / 1;

}

.flexEven {
    flex: 1 1 0
}
.flexEven img {
    max-width: 80%;
    margin: 5px auto;
}


.twoCol>div {
    flex: 1 1 300px
} /* make it 1 col in mobile, 2 col on tablet*/
.twoCol .rightCol {
    margin-left: 60px
} /* make it 1 col in mobile, 2 col on tablet*/



.white {
    color: rgba(255,255,255,.9)
}

.hidden {
    display: none!important
}
.tiny {
    font-size: 60%
}
.small, .small a {
    font-size: 75%;
    margin: 2px 0;
    line-height: 1.2em;
    font-weight: normal!important
}

.big {
    font-size: 120%
}
.huge {
    font-size: 160%
}
.pad {
    padding: 30px
}
.vcenter {
    display: flex;
    justify-content: center
}
.left {
    text-align: left
}
.right {
    text-align: right
}
.center {
    text-align: center
}
.block {
    display: block!important;
    float: none!important
}
.red {
    color: red
}
.vertical {
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    transform: rotate(270deg);
}

.space10 {
    margin: 15px auto;
    padding: 15px 0;
    border-bottom: 1px dotted silver
}

.unselected {
    opacity: 0.7
}

.border {
    border: 1px solid black;
    border-radius: 10px;
}

.blur {
    backdrop-filter: blur(10px)
}

.noBorder, .noBorder td, .noBorder th {
    border: none!important
}

.closer {
    float: right;
    font-size: 20px;
    margin: -10px
}

#msg {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    border-radius: 0px;
    z-index: 9;
}

#msg p {
    padding: 10px;
    margin: 5px;
    border-radius: 8px;
    color: white;
    background: black;
    margin-bottom: 5px;
    box-shadow: 0 2px 3px rgba(0,0,0,.3);
}

#msg p.alert {
    background: #F5A812;
    font-weight: bold
}



.loadIndicator {
    display: block;
    width: 40px;
    margin: 0 auto 12px auto;
}



input.noneditable, textarea.noneditable {
    color: #777;
    background: none;
    border: 1px dotted silver;
    font-size: 18px
}

.relative {
    position: relative
} /* to position content absolute */

#onlineStatus {
    width: 200px;
    float: right;
    font-size: 80%;
    border-radius: 5px;
    padding: 3px 8px
}

.offline {
    color: darkred;
    border: 1px solid darkred
}
.online {
    color: #41ad1a;
    border: 1px solid #41ad1a
}

.pale {
    background: #dbd7d0
} /* vorbestellartikel */


/* resets */
:focus-visible, :focus {
    outline: none;
}