
/*
    Logo hellgrün: #258f36
    Schrift Teaser dunkelgrün: #061a1a
    Schrift Teaser hellgrün: #228e35
    Hintergrund dunkel unter Teaser: #0d281b
    Footer: dunkel #2e8a39 + hell #72c247

    Wiese: #c4e45f

*/


/*<!--  Flexbox -->*/

* {
    font-family: Arial, sans-serif;
    /*font-size: large;*/
}

html {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
}

header {
    background: white;
    color: black;
    position: sticky;
    top: 0;
    
    min-height: 5em;
    max-height: 8em;

    z-index: 100;
}

header.shrink {
    height: 4em;
}

#logo {
    max-width: 50vw; max-height: 6em;
    transition: width 0.3s ease;
}

#logo.shrink {
    max-width: 50vw; max-height: 3.7em;
}

nav {
    position: fixed;
    top: 0;
    z-index: 100; /* nur notwendig um Label-Switcher zu verdecken */
}

main {
    flex: 1;
}

footer {
    background: white;
    color: black;
    text-align: center;
}

.container {
    margin: 1em auto;
    max-width: 800px;
    padding: 0 1em;
}

.placeholder {
    display: block;
    height: 2em;
}


/** Schnellzugriff **/

div#schnellzugriff {
    float: inline-end;
}

div#schnellzugriff span {
    padding-right: 1em;
}

@media only screen and (max-width: 340px) {
    div#schnellzugriff span.hidesmall {
        display: none;
    }
}



/** Navigation **/

    #sidebarMenu {
        z-index: 999;
        height: 100%;
        position: fixed;
        /*left: 0;*/ right: 0;
        width: 250px;
        margin-top: 80px;
        /*transform: translateX(-250px);*/ transform: translateX(250px);
        transition: transform 250ms ease-in-out;
        /*background: linear-gradient(180deg, #FC466B 0%, #3F5EFB 100%);*/
        background: white;
    }
    .sidebarMenuInner{
        margin:0;
        padding:0;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }
    .sidebarMenuInner li{
        list-style: none;
        color: black;
        text-transform: uppercase;
        font-weight: bold;
        padding: 10px;
        cursor: pointer;
        /*border-bottom: 1px solid rgba(255, 255, 255, 0.10);*/
        border-bottom: 1px solid grey;
    }
    .sidebarMenuInner li span{
        display: block;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.80);
    }
    .sidebarMenuInner li a{
        color: black;
        text-transform: uppercase;
        font-weight: bold;
        cursor: pointer;
        text-decoration: none;
    }
    nav input[type="checkbox"]:checked ~ #sidebarMenu {
        transform: translateX(0);
    }

    nav input[type=checkbox] {
        transition: all 0.3s;
        box-sizing: border-box;
        display: none;
    }
    .sidebarIconToggle {
        transition: all 0.3s;
        box-sizing: border-box;
        cursor: pointer;
        /*position: absolute;*/ position: fixed;
        z-index: 99;
        top: 25px;
        /*left: 15px;*/ right: 40px;
        height: 22px;
        width: 22px;
    }
    .spinner {
        transition: all 0.3s;
        box-sizing: border-box;
        position: absolute;
        height: 3px;
        width: 100%;
        background-color: green;
    }
    .horizontal {
        transition: all 0.3s;
        box-sizing: border-box;
        position: relative;
        float: left;
        margin-top: 3px;
    }
    .diagonal.part-1 {
        position: relative;
        transition: all 0.3s;
        box-sizing: border-box;
        float: left;
    }
    .diagonal.part-2 {
        transition: all 0.3s;
        box-sizing: border-box;
        position: relative;
        float: left;
        margin-top: 3px;
    }
    nav input[type=checkbox]:checked ~ .sidebarIconToggle > .horizontal {
        transition: all 0.3s;
        box-sizing: border-box;
        opacity: 0;
    }
    nav input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-1 {
        transition: all 0.3s;
        box-sizing: border-box;
        transform: rotate(135deg);
        margin-top: 8px;
    }
    nav input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-2 {
        transition: all 0.3s;
        box-sizing: border-box;
        transform: rotate(-135deg);
        margin-top: -9px;
    }



/** Formularfelder **/

    fieldset {
        margin-top: 0.4em;
        padding-bottom: 0.4em;
    }

    fieldset legend {
        font-weight: bold;
        padding: 0.5em;
    }

    label {
        display: inline-block;
        padding: 0.3em 0.2em;
    }

    label.small, input.small {
        width: 5em;
    }

    label.w14, input.w14 {
        width: 7.5em;
    }

    label.half, input.half {
        width: 10em;
    }

    label.full, input.full {
        width: 18em;
    }

    label.w34, input.w34 {
        width: 14em;
    }

    /*label.newprod, input.newprod {
        width: 12em;
    }*/

    input, select, button {
        min-height: 2em;
        margin: 0.2em;
    }

    button.ui-button {  /* Reset Größe für jquery-ui */
        min-height: 1em;
    }


    @media only screen and (max-width: 340px) {
        label.small, input.small {
            width: 4em;
        }

        label.w14, input.w14 {
            width: 6.5em;
        }

        label.half, input.half {
            width: 9em;
        }

        label.full, input.full {
            width: 15em;
        }

        label.w34, input.w34 {
            width: 12em;
        }

        label.small, label.w14, label.half, label.full, label.w34 {
            overflow: hidden;
            text-overflow: clip;
            white-space: nowrap;
        }
    }



/*  Preis hinzufügen  */
    div#artikel {
        min-height: 7em;
        /*border: 1px solid gray;*/
        margin-top: 0.5em;
    }
    div#artikel_img {
        display: inline-block;
        height: 6em;
        width:5em;
        text-align:center;
        margin-right: 0.8em;
    }
    div#artikel_info {
        display: inline-block;
        height: 5em;
        width: 65%;
        @media only screen and (max-width: 340px) {
            width: 55%;
        }
        vertical-align: top;
    }
    img#product_image {
        height: inherit;
        max-width: 5em;
    }

    div.prodLbl {
        background-color: rgb(174, 196, 249);
        border-radius: 0.5em;
        border: 1px solid rgb(63, 63, 244);
        padding: 0.2em 0.4em;
        margin: 0.1em;
        display: inline-block;
    }

    div.prodLblRed {
        border: 1px solid rgb(244, 63, 63) !important;
    }

    div#dialog-text {
        padding-top: 0.5em;
    }

    button.send {
        width: 100%;
        height: 3em;
        margin-top: 1em;
        margin-bottom: 1em;
    }

    img#scancode {
        vertical-align: middle;
        width: 2em;
    }

    div.toolimg {
        display:inline-block;
        vertical-align: middle;
        width: 2em;
    }

    .inputinfo {
        border: 1px solid #64FFFF;
        background-color: #D5FFFF;
    }

    .inputfehler {
        border: 1px solid #ff1111;
        background-color: #FDDFE0;
        color: #ff1111;
    }
    
    .inputsuccess {
        border: 1px solid #11ff11;
        background-color: #a0faa0;
    }

    span.pa_baseprice {
        background-color: white;
        font-size: small;
        position: absolute;
        left: 13em;
        @media only screen and (max-width: 340px) {
            left: 11em;
        }
        top: 0.8em; /*0.625em*/
        width: 4em;
        text-align: right;
        margin-right: -2.5em;
        padding: 0.1em;
    }


    /* Dialog neues Produkt anpassen */
    #dialog-newproduct.ui-dialog-content {
        padding: 0.5em 0.2em !important;
    }


    /* Auswahl Geschäft Formularfelder u.a. */
    #dialog-storeList input {
        min-height: 1.5em !important; /* ersetzt input height: 2em*/
        height: 1.5em;
        margin: 0.0em 0.8em 0.2em 0em;
        vertical-align: middle;
    }

    /* Store-Finder Geschäft hinzufügen */
    #storeFinderAdd input {
        height: 2em;
        margin-bottom: 0.6em;
        vertical-align: middle;
    }

    #storeName {
        display: inline-block;
        overflow: hidden;
        text-overflow: clip;
        white-space: nowrap;
        max-width: 16em;
        @media only screen and (max-width: 340px) {
            max-width: 14em;
        }
    }



h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.2em;
}

h3 {
    font-size: 1.1em;
}

h4 {
    font-size: 1.0em;
}


.bold {
    font-weight: bold;
}



/* Status-Dialogmeldungen */
    dialog.status {
        width:90vw;
        text-align:center;
        /*padding-left: 1em;*/
        bottom: 1em;
        margin: 0 auto;
        z-index: 1000;
        position: fixed;
    }
    dialog.success {
        background-color: #7ae07a;
        border: 2px solid rgb(20, 125, 20);
    }
    dialog.fail {
        background-color: #e07a86;
        border: 2px solid rgb(125, 20, 20);
    }


/* Infobox */
    .info {
        border: 1px solid #64FFFF;
        background-color: #D5FFFF;
        padding: 5px;
    }

    .fehler {
        border: 1px solid #ff1111;
        background-color: #FDDFE0;
        padding: 5px;
    }
    
    .success {
        border: 1px solid #11ff11;
        background-color: #a0faa0;
        padding: 5px;
    }



.top-space {
    margin-top: 0.5em;
}



/* Nicelabel anpassen, da IOS-Button i-wie falsches Format hat?! */
    .circle-nicelabel + label {
        width:/*64px*/ 55px !important;
        height:/*32px*/ 22px !important;
    }



/* Preisangaben farbig */
    .norm {
        color: black;
    }

    .sale {
        color: orangered;
    }

    .kuka {
        color: rgb(15, 96, 172);
    }


/* Startseite */
    div.startbutton {
        height: 3em;
        border: 1px solid grey;
        margin: 5px;
        padding: 10px;
        vertical-align: middle ;
    }

    div.startbutton div.img {
        width: 62px;
        @media only screen and (max-width: 340px) {
            width: 40px;
        }
        margin-left: 20px;
        display: inline-block;
    }
    

    div.startbutton div.lbl {
        display: inline-block;
        height: 100%;
        vertical-align: middle;
        margin-left: 50px;
    }


/* Suchergebnisse */
    div.searchResult {
        min-height: 5em;
        border: 1px solid grey;
        margin: 5px;
        padding: 5px;
        vertical-align: middle ;
    }

    div.searchResult div.img {
        width: 4em;
        display: inline-block;
        text-align: center;
        margin-left: 0.5em;
        /*border: 1px solid black*/
    }

    div.searchResult div.img img {
        max-width: 4em;
        max-height: 6em;
    }

    div.searchResult div.desc {
        display: inline-block;
        vertical-align: top;
        margin-left: 1em;
        max-width: 68%; /* Blockbreite damit neben Bild - TODO ggf. anders lösen */
    }

    div.prices {
        font-size: 0.8em;
        margin-top: 0.5em;
        line-height: 1.25em;
    }

    span.priceBlock {
        display: block;
        border-top: 1px solid #ccc;
        padding: 0.2em;
    }

    span.productTitle {
        display: inline-block;
        width: 12.5em; /*kl: 10.5em;*/
        @media only screen and (max-width: 340px) {
            width: 10em !important;
        }
    }


    span.price {
        display: inline-block;
        width: 3.5em;
        text-align: right;
        font-weight: bold;
    }
    
    span.price::after  {
        content: " €";
    }

    span.baseprice {
        display: inline-block;
        width: 3.3em; /* in Kombi mit padding-right! */
        text-align: right;
        font-weight: normal;
        font-size: 0.9em;
        padding-right: 0.6em; /* in Kombi mit width! */
    }
    
    span.notavail {
        width: 12em;
        text-align: center;
        display: inline-block;
        /*! border: 1px solid black; */
        /*! line-height: 2em; */
        /*! font-weight: bold; */
        font-style: italic;
    }

    span.storeAndDate {
        display: inline-block;
        width: 9em;
        height: 1.2em;
        overflow: hidden;
        word-break: break-all;
    }

    span.store {
        font-size: 0.9em !important;
        width: 9.9em !important;
    }

    

    .greenFilter {
        /* grüner Overlay für Icon
           Q: https://stackoverflow.com/questions/7415872/change-color-of-png-image-via-css
           erstellt mit https://codepen.io/sosuke/pen/Pjoqqp */
           /* funktioniert nur bedingt, Farbe wird über Banner oben gelegt! -> Ersatz: eigenes Icon, siehe prSrcEs */
        filter: invert(29%) sepia(46%) saturate(1053%) hue-rotate(75deg) brightness(93%) contrast(96%);        
    }


    span.strike {
        text-decoration: line-through;
    }


    /* zusätzliche Info via Hover/Touch
       verwende: Attribut data-info
       Q: https://jkorpela.fi/data-info.html */
    [data-info] {
        border-bottom: dashed thin;
        position: relative;
    }
    [data-info]::after {
	    display: block;
        width: 20ch;
        /**/position: absolute;
        z-index: 100;
        left: 1ch;
        top: 1em;
        content: "=\A0" attr(title);
        border: solid thin gray;
        padding: 0.2em;
        color: black;
        background: #ffa;
        visibility: hidden;
        line-height: 0.9;
    }
    [data-info]::after {
	    content: "=\A0" attr(data-info);
    }    
    [data-info]:hover::after {
	    visibility: visible;
    }




    




a {
    color: inherit;
}

/* https://blog.hubspot.com/website/remove-underline-from-links-css */
a:link { 
    text-decoration: none; 
} 
a:visited { 
    text-decoration: none; 
} 
a:hover { 
    text-decoration: none; 
} 
a:active { 
    text-decoration: none; 
}


.val-mid {
    vertical-align: middle;
}

.hideme {
    display: none;
}




/* Liste der Einkäufe */
    /* Tablet / Desktop */
    @media only screen and (min-width: 401px) {
        span.shopdate {
            width: 11em;
            display: inline-block;
        }

        span.shopblock {
            width:90vw;
            max-width: 400px;
            display:inline-block;
        }

        span.shopname {
            width:14em;
            display:inline-block;
        }

        span.shopprice {
            width: 4.5em;
            float: inline-end;
            text-align: right;
        }
    }

    /* (kleines) Handy */
    @media only screen and (max-width: 400px) {
        span.shopdate {
            width: 11em;
            display: inline-block;
        }

        span.shopblock {
            width:90vw;
            max-width: 800px;
            display:inline-block;
        }

        span.shopname {
            width:14em;
            display:inline-block;
        }

        span.shopprice {
            width: 4.5em;
            float: inline-end;
            text-align: right;
        }
    }

/* Dealliste */
    div.deal {
        border: 1px solid grey;
        padding: 0.5em;
    }

    .dealtitle {
        font-weight: bold;
        font-size: larger;
        display: block;
        margin-bottom: 5px;
    }

    .dealtitleend {
        text-decoration: line-through;
    }
    .dealtitleend:after {
        content: " - ABGELAUFEN";
        /*text-decoration-line: none !important;*/
        color: red;
    }

    .deallinktn {
        float: inline-end;
        width: 19em;
        margin-bottom: 5px;
    }

    .dealtn {
        border: 1px solid rgb(27, 27, 214);
        background-color: #7eade0;
        float: inline-end;
        font-size: small;
        padding: 0.1em;
    }

    .markred {
        color: red;
    }

    .dealparti {
        border: 1px solid rgb(186, 111, 19);
        background-color: #f8ea98;
        font-size: small;
        padding: 0.1em;
        clear: both;
    }

    .dealtext {
        font-size: small;
        min-height: 1.5em;
    }
    
    .dealtext ul {
        margin-left: -1.5em;
    }

    /*.dealtext ul li ul::before {
        content: "<span>mehr<span>";
    }*/
    .dealtext ul li ul {
        font-size: smaller;
        margin-left: -2em;
    }
    /*.dealtext ul li ul li {
        display: none;
    }*/
    .dealtext ul li ul li ul {
        font-size: inherit;
    }

    .dealtextend {
        color: #555;
    }

    .dealtext code {
        border: 1px solid rgb(93, 93, 93);
        background-color: #ccc;
        padding: 0.05em;
        white-space: nowrap;
    }

    .dealtext a:before {
        content: url("../img/external-link-20-333.svg");
        zoom:75%;
        margin-right: 0.2em;
    }

    .is-hidden { display: none; }


/* Statistik */
    .statdesc {
        display: inline-block;
        width: 12em;
    }

    .statcnt {
        display: inline-block;
        width: 5em;
        text-align: right;
    }


/* Icons */
    span.map-icon {
        content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0iZmVhdGhlciBmZWF0aGVyLW1hcC1waW4iPjxwYXRoIGQ9Ik0yMSAxMGMwIDctOSAxMy05IDEzcy05LTYtOS0xM2E5IDkgMCAwIDEgMTggMHoiPjwvcGF0aD48Y2lyY2xlIGN4PSIxMiIgY3k9IjEwIiByPSIzIj48L2NpcmNsZT48L3N2Zz4=");
        /*margin-left: 1em;*/
    }

    
    .lucide-flower { /* https://lucide.dev/icons/flower // size 16px / color #333  */
        content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1mbG93ZXIgcHJldmlldy1pY29uIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIzIi8+PHBhdGggZD0iTTEyIDE2LjVBNC41IDQuNSAwIDEgMSA3LjUgMTIgNC41IDQuNSAwIDEgMSAxMiA3LjVhNC41IDQuNSAwIDEgMSA0LjUgNC41IDQuNSA0LjUgMCAxIDEtNC41IDQuNSIvPjxwYXRoIGQ9Ik0xMiA3LjVWOSIvPjxwYXRoIGQ9Ik03LjUgMTJIOSIvPjxwYXRoIGQ9Ik0xNi41IDEySDE1Ii8+PHBhdGggZD0iTTEyIDE2LjVWMTUiLz48cGF0aCBkPSJtOCA4IDEuODggMS44OCIvPjxwYXRoIGQ9Ik0xNC4xMiA5Ljg4IDE2IDgiLz48cGF0aCBkPSJtOCAxNiAxLjg4LTEuODgiLz48cGF0aCBkPSJNMTQuMTIgMTQuMTIgMTYgMTYiLz48L3N2Zz4=");
    }



    div.rrb {
        background-color: #208c35;
        display: inline-block;
        padding: 0.7em 1.5em;
        margin: 0.5em;
        border-radius:2em;
        color:white;
        font-weight: bold;
    }

    div.rrb a {
        color:white;
    }