/* mobile devices ----------- */
@media (min-width: 320px) and (max-width: 1024px)
{
    header, #contentWrapper, footer, #contentBottomWrapper {
        width: 100%;
    }

    #jux_megamenucss3 .jux-fa.jux-fa-bars {
        background: #fff16f;
        color: #272628 !important;
        border-radius: 5px;
        width: 35px;
        height: 33px;
        padding: 6px 0 2px 8px;
        font-size: 21px !important;
    }

    #jux_megamenucss3 .megamenu.noJS #css3-megaMenuToggle {
        padding: 0 !important;
        margin: 0 0 40px !important;
    }

    #jux_megamenucss3 .megamenu.noJS #css3-megaMenuToggle i {
        position: absolute;
        right: 5px;
    }

}


/* Smartphones and iPad Portrait (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 768px)

{
    #footer1, #footer2, #footer3 {
        width: 100%;
    }

     footer::after {
         content: ".";
         clear: both;
         display: block;
         visibility: hidden;
         height: 0;
     }

     #footerWrapper {
         height: auto;
         padding-bottom: 20px;
     }

    #footer1, #footer2 {
        border-right: 0 none;
    }

    #footer1, #footer2 {
        border-bottom: 1px dashed #fff;
    }

    #footer1, #footer2, #footer3 {
        margin-top: 5px;
        margin-bottom: 5px;
        height: auto;
        padding: 10px 10px 25px;
    }

    #contentLeft, #contentRight  {
        float: none;
        width: 100%;
    }

    #contentRight {
        border-bottom: 1px solid #ededee;
    }

    article, aside {
        min-height: 0;
        padding-top: 0;
    }

    #contact a span {
        display: none;
    }

    #contact a img {
        width: auto;
        height: 33px;
    }

    .pull-left.item-image {
        width: 20%;
    }
    .pull-left.item-image img {
        width: 100%;
    }

    h1 {
        font-size: 16px;
    }
}


/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 767px)

{

   #logo {
       margin-left: 20px;
       margin-top: 20px;
       width: 150px;
   }

    #logo span {
        font-size: 8px;
    }

   #logo img, #notdienst img {
       width: 100%;
   }

   #notdienst {
    display: none;
   }

   nav {
       padding-left: 0;
      }


    #jux_megamenucss3 .megamenu.noJS #css3-megaMenuToggle i {

    }

    #contact, nav {
        margin-top: 40px;
    }

    #contact {
        position: absolute;
        right: 30px;
    }

    #contact p a {
        float: left;
    }

    #contact p a:first-child {
        margin-right: 10px;
    }

    #headerWrapper {
        height: 128px;
    }

    #slider {
        padding: 10px 20px;
    }

    article {
        padding: 20px;
    }

    #footer3 .custom p img {
        margin-top: -60px !important;
    }

    #headerTop {
        display: block;
        position: absolute;
        width: 100%;
        top: 85px;
    }

    #headerTop .custom a {
        display: block;
        text-align: center;
        background-color: rgb(255, 242, 101);
        padding: 10px;
        font-size: 14px;
        font-weight: bold;
        color: rgb(0, 0, 0);
        border-bottom: 1px solid rgb(255, 255, 255);
        border-top: 1px solid rgb(255, 255, 255);
    }

    #headerTop .custom a span {
        font-size: 15px;
    }

    #headerTop .custom a:hover, #headerTop .custom a:active {
        text-decoration: none;
    }

    #contentBottomWrapper {
        display: none;
    }

    .djslider-loader {
        padding-bottom: 0 !important;
    }

}


/* iPads (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) 
{
    #logo {
        padding-left: 10px;
    }

    #notdienst {
        margin-right: 5px;
    }

    #jux_megamenucss3 .megamenu.noJS #css3-megaMenuToggle i {
        right: 105px;
    }

}

/* iPads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) 
{
    #jux_megamenucss3 .megamenu ul.level0 li.megacss3 a.megacss3 {
        padding: 30px 33px !important;
    }

    article {
        padding-left: 35px;
    }

    #contentRight {
             width: 220px;
    }

    #contentLeft {
             width: 790px;
    }

    article, aside {
        min-height: 360px;
    }

    #contentBottomWrapper {
        padding: 45px 35px 55px 35px;
    }

    #contentBottomWrapper .navigation-container {
        display: none;
    }

    #contentBottomWrapper .djslider-loader {
        padding-bottom: 0 !important;
    }



    #footer1 {
        width: 500px;
    }
}


/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) 
{
    nav {
        padding-left: 60%;
    }

    nav, #contact {
        margin-top: 75px;
    }

    #contact {
        margin-right: 40px;
    }

    #contact p a {
        float: left;
        margin-right: 10px;
    }

    #logo {
        margin-top: 30px;
        padding-left: 30px;
    }

    #headerWrapper {
        height: 140px;
    }

    #footer3 .custom p img {
        margin-top: -60px !important;
    }

}



/* iPhone 6 and 6+ ----------- */
@media only screen 
    and (max-device-width: 640px), 
    only screen and (max-device-width: 667px), 
    only screen and (max-width: 480px)
{


}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5)
{
    #jux_megamenucss3 .megamenu.noJS #css3-megaMenuToggle i {
        margin-left: 235px;
    }


}


/* iPhone 5 ----------- */
@media only screen 
     and (device-width: 320px) 
	 and (device-height: 568px) 
	 and (-webkit-device-pixel-ratio: 2)
{ 
/* Styles */
}

/* Samsung S3 ----------- */
@media screen 
	and (device-width: 320px) 
	and (device-height: 640px) 
	and (-webkit-device-pixel-ratio: 2)
{ 
/* Styles */
}


