/*
	JA-ES CSS (FONTS)
*/
@font-face {
    font-family: 'HelveticaNeueLTStd75Bold';
    src: url('../m/fonts/helveticaneueltstd-bd.eot');
    src: url('../m/fonts/helveticaneueltstd-bd.eot?#iefix') format('embedded-opentype'),
         url('../m/fonts/helveticaneueltstd-bd.woff') format('woff'),
         url('../m/fonts/helveticaneueltstd-bd.ttf') format('truetype'),
         url('../m/fonts/helveticaneueltstd-bd.svg#HelveticaNeueLTStd75Bold') format('svg');
	font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'HelveticaNeueLTStd45Light';
    src: url('../m/fonts/helveticaneueltstd-lt.eot');
    src: url('../m/fonts/helveticaneueltstd-lt.eot?#iefix') format('embedded-opentype'),
         url('../m/fonts/helveticaneueltstd-lt.woff') format('woff'),
         url('../m/fonts/helveticaneueltstd-lt.ttf') format('truetype'),
         url('../m/fonts/helveticaneueltstd-lt.svg#HelveticaNeueLTStd45Light') format('svg');
	font-style: normal;
    font-weight: normal;
}

html {
	-webkit-font-smoothing: antialiased;
	min-height: 790px;
}

body {
	margin: 0 auto;
	padding: 0;
	color: #2f2f2f;
	font-family: 'HelveticaNeueLTStd45Light', Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: normal;
	text-decoration: none;
	text-transform: none;
	line-height: normal;
	letter-spacing: 0.075rem;
	background-color: #dcdcdc;
	-webkit-font-smoothing: antialiased;
	min-height: 790px;
}
h1, h1 a {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    color: #222222;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    font-size: 3rem;
    font-weight: normal;
    text-decoration: none;
    text-transform: none;
    line-height: 3.5rem;
    letter-spacing: 0.075em;
    display: block;
    -webkit-font-smoothing: antialiased;
}

h2, h2 a {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    font-size: 32px;
    color: #2f2f2f;
    line-height: normal;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    font-weight: normal;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.075em;
    -webkit-font-smoothing: antialiased;
}

h3, h3 a {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    color: #2f2f2f;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: normal;
    text-decoration: none;
    text-transform: none;
    line-height: normal;
    letter-spacing: 0.075em;
    -webkit-font-smoothing: antialiased;
}

h4, h4 a {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    color: #f7f7f7;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: normal;
    text-decoration: none;
    line-height: normal;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
}

h5, h5 a {
    margin: 24px 0 17px 0;
    padding: 0 0 0 0;
    color: #2f2f2f;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    text-decoration: none;
    text-transform: none;
    line-height: normal;
    letter-spacing: 0.075em;
    -webkit-font-smoothing: antialiased;
}


p, p a {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    color: #2f2f2f;
    font-family: 'HelveticaNeueLTStd45Light', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.075em;
    -webkit-font-smoothing: antialiased;
}

.clearfloat {
	clear: both;
	height: 0;
	font-size: 1px;
	line-height: 0px;
}

ul, ol, dl {
	padding: 0;
	margin: 0;
}

img {
	border: none;
	padding: 0 0 0 0;
	margin: 0 0 0 0;
}

a img {
	border: none;
	padding: 0 0 0 0;
	margin: 0 0 0 0;
}


/* LINKS -------------------------------------------------------------------------------------------------- */

a:link {
	color: #fff;
	text-decoration: none;
}

a:visited {
	color: #fff;
	text-decoration: none;
}

a:hover, a:active, a:focus {
	color: #fff;	
	text-decoration: none;
}

.txtcenter { text-align: center; }
.left { float: left;}
.right {float: right;}
.clearall { clear: both; }
.none { display: none;}

header, footer, div, span, a, p {
	font-size: 14px;
    line-height: normal;
}
p { margin-top: 20px; line-height: 22px;}

#ipad-wrapper { display: none; }

/* NAVIGATION */
section#navigation {
    position: fixed;
    top: 50px;
    left: 50px;
    width: 200px;
    height: auto;
    z-index: 60;
}
#nav-wrapper-logo-jaes {
    width: 200px;
    height: 200px;
    opacity: .9;
    background-color: #f7f7f7;
    text-align: center;
    display: table;
}
#nav-logo-jaes {
	background-image: url(../images/nav__logo_jaes.png);
	background-position: center center;
	background-repeat: no-repeat;
	width: 150px;
	height: 145px;
	display: block;
    margin: 27px auto 0 auto;
	box-sizing: border-box;
}
#nav-wrapper {
    width: 200px;
    height: 540px;
    opacity: .9;
    background-color: #ff6601;
    position: relative;
}
#nav-social {
    display: block;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 200px;
    height: 80px;
    opacity: .9;
    background: url('../images/nav__social_fb.png') #2f2f2f 144px bottom no-repeat;
    color: #f7f7f7;
    font-size: 12px;
    line-height: 18px;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    padding: 25px 25px 0 25px;
}
nav.navigation{ margin: 0; padding: 33px 0 0 0; box-sizing: border-box;}
nav.navigation ul {padding: 0; margin: 0; list-style-type: none;}
nav.navigation ul li { padding: 15px 0; margin: 0; text-align: center;}
/*nav.navigation ul li.active, nav.navigation ul li:hover { background: #f7f7f7; }*/
nav.navigation ul li a {
    padding: 0; margin: 0; text-align: center; font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;}
nav.navigation ul li a.active, nav.navigation ul li a:hover { color: #2f2f2f;  }
#nav-info {
    text-align: center;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    height: 177px;
    line-height: 16px;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    font-size: 12px;
}
#nav-info > p {
    margin-top: 20px;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    font-size: 10px;
    line-height: 16px;
    color: #f7f7f7;
    letter-spacing: 0;
}
#page-kontakt .subpage-menu { background: url('../images/kontakt__header_icon_fb.png') 94% bottom no-repeat rgba(255,102,1,0.9); }
#page-kontakt .sidebar-tilbud { background: url('../images/sidebar__icon_services.png') 100% bottom no-repeat rgba(255,102,1,0.9); }


/* CONTENT */
body { background-repeat: no-repeat; background-size: cover; background-position: top left; background-attachment: fixed; }
body.velkommen { background-image: url('../images/bg__velkommen.jpg'); }
body.services { background-image: url('../images/bg__velkommen.jpg'); }
body.referencer { background-image: url('../images/bg__velkommen.jpg'); }
body.kontakt { background-image: url('../images/bg__velkommen.jpg'); }

.subpage-column, .header-column { position: absolute; top: 50px; left: 340px; width: 770px;}

.subpage-header-substitute { width: 770px; height: 200px; position: relative; visibility: hidden; z-index: 1;}
.subpage-header-wrapper {
    position: absolute;
    top: 0;
    z-index: 2;
    height: 200px;
    width: 100%;
    -webkit-transition: height 0.3s;
    -moz-transition: height 0.3s;
    transition: height 0.3s;
}
.subpage-header {
    width: 100%;
    height: 110px;
    background: rgba(247,247,247,0.9);
    box-sizing: border-box;
    padding: 53px 0 0 37px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.subpage-menu {
    width: 100%;
    min-height: 50px;
	position: relative;
    opacity: .9;
    background-color: #ff6601;
    box-sizing: border-box;
    padding: 19px 0 0 37px;
    text-transform: uppercase;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    color: #fff;
}
.subpage-header-wrapper.fixed {
    top: -60px;
    position: fixed;

}
.subpage-header-wrapper .subpage-header h2 { -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; }
.subpage-header-wrapper.fixed .subpage-header h2 { font-size: 20px; }
.subpage-header-wrapper.fixed .subpage-header { padding: 76px 0 0 37px; }
.subpage-menu ul {
    list-style-type: none;
	display: block;
	clear: both;
}
.subpage-menu ul li {
    float: left;
    margin-right: 37px;
}
.subpage-menu ul li a { text-transform: uppercase; font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif; display:inline-block; margin: 0; padding: 0 0 19px 0;}
.subpage-menu ul li a.active, .subpage-menu ul li a:hover { color: #2f2f2f;}
#subpage-header-jeg-tilbyder { background: url('../images/jegtilbyder__header_icon.png') rgba(247,247,247,0.9) top right no-repeat;}
#subpage-header-referencer { background: url('../images/referencer__header_icon.png') rgba(247,247,247,0.9) top right no-repeat;}
#subpage-header-kontakt { background: url('../images/kontakt__header_icon.png') rgba(247,247,247,0.9) top right no-repeat;}

.subpage-content-box-wrapper { position: relative; margin-top: 50px;}
section.kontakt .subpage-content-box-wrapper { margin-top: 0;}
.subpage-content-box {
    width: 100%;
    height: auto;
    opacity: .9;
    background-color: #f7f7f7;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    line-height: 22px;
    padding: 53px 37px;
    font-size: 12px;
    margin-bottom: 40px;
}
.subpage-content-box p { font-size: 12px;}
.subpage-content-box ul {
    list-style-position:inside;
    font-size: 12px;
    line-height: 30px;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    padding-top: 20px;
}
.subpage-content-box ul li { font-size: 14px; }

/* RIGHT SIDE */
aside.subpage-rightside {
    position: absolute;
    top: 0;
    /*right: -320px;*/
    margin-left: 558px;
    width: 280px;
    height: auto;
}
aside.subpage-rightside.fixed { position: fixed; top: 50px;  }
aside.aside-referencer {
    /*visibility: hidden;*/
	display: inline-block;
	width: 690px;
	top: 50px;
	margin-left: 0;
	right: -692px;
	-webkit-transition: 0.32s right ease-out 0.2s;
	-moz-transition: 0.32s right ease-out 0.2s;
	-o-transition: 0.32s right ease-out 0.2s;
	transition: 0.32s right ease-out 0.2s;
}
aside.aside-referencer.gal-slide-in {
    right: 0;
}
.sidebar {
    height: 110px;
    background-color: rgba(255,102,1,0.9);
    box-sizing: border-box;
    padding: 18px 15px 0 15px;
    color: #2f2f2f;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    line-height: 22px;
}
.sidebar.sidebar-jeg-tilbyder { background: url('../images/sidebar__icon_referencer.png') top right no-repeat rgba(255,102,1,0.9); }
aside.aside-referencer .sidebar { padding-left: 20px;}

.sidebar-ul-wrapper ul, .sidebar-ul-wrapper ul li { list-style-type: none; padding: 0; margin: 0; width: 100%;}
.sidebar-ul-wrapper ul li {
    height: 82px;
    background: url('../images/sidebar__arrow-right.png') 92% center no-repeat rgba(247,247,247, 0.9);
}
.sidebar-ul-wrapper ul li a {
    display: block;
    color: #2f2f2f;
    font-size: 12px;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px rgba(47,47,47,0.07) solid;
    height: 100%;
}
.sidebar-ul-wrapper ul li:last-child a { border-bottom: 0; }
.sidebar-ul-wrapper ul li a span { color: #ff6601; font-size:10px;}
.sidebar-ul-wrapper ul li a img {
    padding-right: 20px;
    float: left;
    width: 82px;
    height: 82px;
}
.sidebar-tilbud {
    width: 100%;
    margin-top: 40px;
    height: 110px;
    background-color: rgba(255,102,1,0.9);
    padding: 18px 15px 0 15px;
    color: #2f2f2f;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    line-height: 22px;
    box-sizing: border-box;
    background: url('../images/sidebar__icon_kontakt.png') 92% center no-repeat rgba(255,102,1,0.9);
}

/* CONTENT SPECIFIC PAGES */
.velkommen-wr {
    width: 100%;
    height: 210px;
    opacity: .9;
    background-color: #f7f7f7;
    box-sizing: border-box;
    text-align: left;
    padding: 66px 46px 0 0;
}
.velkommen-gr {
    width: 100%;
    height: 12px;
    background-color: #2f2f2f;
}
.velkommen-or {
    width: 100%;
    height: 298px;
    opacity: .9;
    background-color: #ff6601;
    box-sizing: border-box;
    padding: 70px 0 0 45px;
}
.velkommen-or-text {
    color: #f7f7f7;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
}
#velkommen-logo {
    width: 100%;
    height: 618px;
    background: url('../images/velkommen__logo.png') top left no-repeat;
    position: absolute;
    z-index: 20;
    margin-top: -170px;
    margin-left: 45px;
}
#main-content.velkommen { position: fixed; top: 0; right: 0; width: 100%; height: 100%; z-index: 10;}
#page-velkommen.subpage { position: absolute; bottom: 190px; right: 0; width: 62.57%; }
#gallery-referencer { position: absolute; top: 320px; left: 340px; width: 1px; overflow: visible; white-space: nowrap;}
.gallery-relative { position: relative; height: auto; width: 589px; float: left;}
.gallery-relative img { width: 220px; height: 220px; display: block;}
.gallery-relative ul { padding: 0; margin: 0; list-style-type: none; overflow: visible; box-sizing: border-box; min-width: 810px;}
.gallery-relative ul li { padding: 10px; margin: 0 23px 23px 0; background: rgba(247,247,247,0.9); float: left; cursor: pointer;}
.gallery-relative ul li:hover { background: rgba(255,102,1,0.9); }

#gallery-content-box { background: rgba(247,247,247,0.9); width: 100%; height: auto; padding: 40px; box-sizing: border-box; font-size: 12px; white-space: normal; font-weight: normal; line-height: normal; display: none;}
#gallery-content-box p { font-size: 12px; font-weight: normal; line-height: normal;}

.image-wrapper { width: 100%; height: auto; position: relative; }
.image-wrapper img { width: 100%; display: block; }
.sharebox { width: 100%; text-align: right; box-sizing: border-box;}
.sharebox.addthis_default_style a { display: block; float: right;}
.sharebox.addthis_default_style a.addthis_button_tweet { width: 104px; overflow: hidden; }
.sharebox.addthis_default_style a.addthis_button_google_plusone { width: 59px; overflow: hidden; }
.sharebox.addthis_default_style a.addthis_button_linkedin_counter { margin-left: -27px; }

span.kontakt { font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif; font-weight: normal; }
span.kontakt a {color: #ff6601;}
.subpage-kontakt input {
    width: 251px;
    height: 38px;
    background-color: #2f2f2f;
    opacity: .7;
    color: #f7f7f7;
    box-sizing: border-box;
    padding: 6px 12px 0 12px;
    border: 0;
    outline: none;
    font-size: 16px;
    letter-spacing: 1px;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    font-weight: normal;
}
.subpage-kontakt textarea {
    width: 100%;
    height: 220px;
    background-color: #2f2f2f;
    opacity: .7;
    color: #f7f7f7;
    box-sizing: border-box;
    padding: 12px 12px 0 12px;
    border: 0;
    outline: none;
    font-size: 16px;
    letter-spacing: 1px;
    font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
    font-weight: normal;
}
.subpage-kontakt input[type="submit"] {
    background-color: #ff6601;
    color: #2f2f2f;
    width:170px;
    height: 50px;
    text-align: center;
    opacity: 0.9;
    float: right;
    cursor: pointer;
}
.subpage-kontakt input[type="submit"]:hover { color: #f7f7f7;}

/** CHANGE ALL PLACEHOLDERS COLOR **/
.subpage-kontakt input::-webkit-input-placeholder, .subpage-kontakt textarea::-webkit-input-placeholder { color: #f7f7f7; }
.subpage-kontakt input::-moz-placeholder, .subpage-kontakt textarea::-moz-placeholder {color: #f7f7f7;}
.subpage-kontakt input:-moz-placeholder, .subpage-kontakt textarea:-moz-placeholder {color: #f7f7f7;}
input::placeholder, textarea::placeholder { color: #f7f7f7; }



/* DO SOMETHING FOR DIFFERENT WIDE SCREENS WHEN SHOWING REFERENCER */
@media only screen
and (min-width: 1900px) {
	.gallery-relative { width: 810px; }
}
@media only screen
and (min-width: 2119px) {
	.gallery-relative { width: 1030px; }
}
@media only screen
and (min-width: 2339px) {
	.gallery-relative { width: 1250px; }
}
@media only screen
and (min-width: 2559px) {
	.gallery-relative { width: 1470px; }
}



/* SMALLER SCREENS (LIKE LAPTOPS) */
@media only screen
and (max-height: 900px) {
    h2 { font-size: 27px;}
    h4, h4 a { font-size: 18px; }
    #nav-wrapper {
        height: 380px;
    }
    nav.navigation ul li { padding: 10px 0; }
    #nav-info {
        height: 150px;
    }
    #nav-info > p {
        margin-top: 10px;
    }

    #page-velkommen.subpage { bottom: 90px; }
    #velkommen-logo { background-size: 740px 387px; margin-top: -106px; }
    .velkommen-wr { height: 130px; padding: 6px 20px 0 0; }
    .velkommen-or { height: 240px; padding-top: 50px;}
   

    .subpage-column, .header-column  { width: 565px; left: 300px;}
    .subpage-menu ul li { margin-right: 25px; }

    .subpage-header-substitute { width: 565px; }
    
    aside.subpage-rightside {
        /*right: -228px;
        width: 200px;*/
        /*right: -258px;*/
        width: 230px;
        margin-left: 558px;
    }
    aside.aside-referencer {
		width: 409px;
	}
    .sidebar {
        height: 75px;
        width: 100%;
    }
    .sidebar, .sidebar > span {
        font-size: 12px;
        font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
        line-height: 22px;
    }
    .sidebar.sidebar-jeg-tilbyder {
        background: url('../images/ipad__sidebar__icon_referencer.png') top right no-repeat rgba(255,102,1,0.9);
    }
    .sidebar-grayline {
        width: 100%;
        height: 10px;
        background-color: rgba(47,47,47,0.9);
    }
    .sidebar-ul-wrapper ul li {
        height: 60px;
        background: url('../images/ipad__sidebar__arrow-right.png') 95% center no-repeat rgba(247,247,247, 0.9);
    }
    .sidebar-ul-wrapper ul li a {
        font-size: 11px;
        line-height: 16px;
    }
    .sidebar-ul-wrapper ul li a img {
        width: 60px;
        height: 60px;
        padding-right: 12px;
    }
    .sidebar-tilbud {
        margin-top: 28px;
        height: 75px;
        font-size: 12px;
    }
    #gallery-referencer { left: 300px; }
    .gallery-relative { width: 589px; }
    .gallery-relative ul { min-width: 589px; }
    .gallery-relative img { width: 152px; height: 152px; }
	#gallery-content-box { height: auto; padding: 20px; }
	#related-images { min-height: 52px; height: auto; }
	#related-images img { display: inline-block; width: 52px; height: 52px; margin-left: 10px; }
	#related-images img:first-child { margin-left: 0; }

    .subpage-kontakt input {
        width: 234px;
        height: 38px;
    }

    /*.gallery-relative  {
        width: auto;
    }*/
}


/* IPAD */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {

    h2 { font-size: 27px;}
    h4, h4 a { font-size: 18px; }

    /* NAVIGATION */
    section#navigation {
        width:200px;
        top: 35px;
        left: 25px;
    }
    #nav-wrapper-logo-jaes {
        width: 180px;
        height: 180px;
    }
    #nav-logo-jaes {
        width: 132px;
        height: 128px;
        /*margin: 19px auto 0 auto;*/
        -webkit-background-size: 132px 128px;
        background-size: 132px 128px;
        /*background-image: url(../images/ipad__nav__logo_jaes.png);*/
    }
    #nav-wrapper {
        width: 180px;
        height: 350px;
    }
    #nav-social {
        width: 180px;
        height: 55px;
        padding: 12px 18px 0 18px;
        background: url('../images/ipad__nav__social_fb.png') #2f2f2f 134px bottom no-repeat;

    }
    nav.navigation ul li { padding: 5px 0; }
    nav.navigation ul li a.active, nav.navigation ul li a:hover { background: transparent; }
    #nav-info {
        height: 150px;
    }
    #nav-info > p {
        margin-top: 10px;
    }
    #nav-info > p, #nav-info > p a {
        font-size: 10px;
        font-weight: bold;
    }

    .subpage-content-box-wrapper { margin-top: 180px;}
    .subpage-header-wrapper { height: 180px; display: block; z-index: 30; transition: none; -webkite-transition: none;}


    /* CONTENT */
    body.velkommen { background-image: url('../images/ipad__bg__velkommen.jpg'); }
    /*body.services { background-image: url('../images/ipad__bg__jegtilbyder.jpg'); }*/
    body.services,
    body.referencer,
    body.kontakt { background: none; }

    body.services #ipad-wrapper {
        top: 0;
        left: 0;
        background-image: url('../images/ipad__bg__velkommen.jpg');
        background-size: cover;
        height: 100%;
        width: 100%;
        position: fixed;
        z-index: -1;
        display: block;

    }
    body.referencer #ipad-wrapper {
        top: 0;
        left: 0;
        background-image: url('../images/ipad__bg__velkommen.jpg');
        background-size: cover;
        height:100%;
        width:100%;
        position:fixed;
        z-index: -1;
        display: block;
    }
    body.kontakt #ipad-wrapper {
        top: 0;
        left: 0;
        background: none;
        background-image: url('../images/ipad__bg__velkommen.jpg');
        background-size: cover;
        height:100%;
        width:100%;
        position:fixed;
        z-index: -1;
        display: block;
    }

    /*
    body {
        background-repeat: no-repeat;
        background-position: top left;
        background-size: cover !important;
        background-attachment: fixed !important;
        margin-bottom: 100px;
    } */

    #main-content {
        -webkit-overflow-scrolling: touch;
        margin-bottom: 100px;
    }

    /* FRONT PAGE */
    #page-velkommen.subpage { width: 62.57%; }
    #velkommen-logo { background-size: 580px 303px; margin-top: -86px; margin-left: 30px; }
    .velkommen-wr { height: 95px; }
    .velkommen-or { height: 190px; padding-top: 34px; padding-left: 30px;}
    .velkommen-or-text { font-size: 13px; line-height:25px; }
    .velkommen-or-text h1 { font-size: 13px; line-height: 25px; }


    #page-velkommen.subpage { bottom: 90px; }
    .subpage-column { top: 35px;}
    .subpage-column {  left: 230px; width: 565px; margin-bottom: 100px;}
    .subpage-header { height: 65px; }
    .subpage-header { height: 100px; padding: 45px 0 0 37px;}
    .subpage-menu { height: 50px; }

    #subpage-header-jeg-tilbyder { background: url('../images/jegtilbyder__header_icon.png') rgba(247,247,247,0.9) top right no-repeat;}
    #subpage-header-referencer { background: url('../images/ipad__referencer__header_icon.png') rgba(247,247,247,0.9) top right no-repeat;}

    .subpage-header-wrapper.fixed .subpage-header {
        padding: 72px 0 0 37px;
    }
    .subpage-header-wrapper.fixed { top: -64px; }
    .subpage-content-box { margin-bottom: 60px; }

    aside.subpage-rightside {
        /*right: -228px;
        width: 200px;*/
    }
    aside.subpage-rightside.fixed {
        top: 36px;
    }
    .sidebar {
        height: 75px;
        font-size: 12px;
    }
    .sidebar.sidebar-jeg-tilbyder {
        background: url('../images/ipad__sidebar__icon_referencer.png') top right no-repeat rgba(255,102,1,0.9);
    }
    .sidebar-ul-wrapper ul li {
        height: 60px;
        background: url('../images/ipad__sidebar__arrow-right.png') 95% center no-repeat rgba(247,247,247, 0.9);
    }
    .sidebar-ul-wrapper ul li a img {
        width: 60px;
        height: 60px;
    }
    .sidebar-tilbud {
        margin-top: 28px;
        height: 66px;
    }
    
    .gallery-relative { width: 409px;}
	.gallery-relative img { width: 100px; height: 100px; }
	.gallery-relative ul li { margin: 0 27px 27px 0; }

	.subpage-kontakt input[type="submit"] {
        -webkit-appearance: none;
    }
}

/* IPAD RETINA */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (-webkit-min-device-pixel-ratio: 2) {
    #nav-logo-jaes {
        background-image: url('../images/ipad__nav__logo_jaes@2x.png');
        /*-webkit-background-size: 106px 102px;
        background-size: 106px 102px;*/
        -webkit-background-size: 132px 128px;
        background-size: 132px 128px;
    }
    #nav-social {
        background: url('../images/ipad__nav__social_fb@2x.png') #2f2f2f 134px bottom no-repeat;
        -webkit-background-size: 23px 44px;
        background-size: 23px 44px;
    }
    #subpage-header-jeg-tilbyder {
        background: url('../images/jegtilbyder__header_icon.png') rgba(247,247,247,0.9) top right no-repeat;
        -webkit-background-size: 272px 110px;
        background-size: 272px 110px;
    }
    #subpage-header-referencer {
        background: url('../images/ipad__referencer__header_icon.png') rgba(247,247,247,0.9) top right no-repeat;
        -webkit-background-size: 136px 65px;
        background-size: 136px 65px;
    }
    .sidebar.sidebar-jeg-tilbyder {
        background: url('../images/ipad__sidebar__icon_referencer.png') top right no-repeat rgba(255,102,1,0.9);
        -webkit-background-size: 119px 75px;
        background-size: 119px 75px;
    }
}

/* RETINA LAPTOPS */
@media only screen
and (min-device-width: 1025px)
and (-webkit-min-device-pixel-ratio: 2) {
    #velkommen-logo {
        background: url('../images/velkommen__logo@2x.png') top left no-repeat;
        -webkit-background-size: 740px 387px;
        background-size: 740px 387px;
    }
    .sidebar-ul-wrapper ul li {
        background: url('../images/ipad__sidebar__arrow-right@2x.png') 93% center no-repeat rgba(247,247,247, 0.9);
        -webkit-background-size: 6px 12px;
        background-size: 6px 12px;
    }
    .sidebar.sidebar-jeg-tilbyder {
        background: url('../images/ipad__sidebar__icon_referencer@2x.png') top right no-repeat rgba(255,102,1,0.9);
        -webkit-background-size: 119px 75px;
        -moz-background-size: 119px 75px;
        background-size: 119px 75px;
    }
    .sidebar-tilbud {
        background: url('../images/sidebar__icon_kontakt@2x.png') 92% center no-repeat rgba(255,102,1,0.9);
        -webkit-background-size: 207px 110px;
        -moz-background-size: 207px 110px;
        background-size: 207px 110px;
    }

    #page-kontakt .subpage-menu {
        background: url('../images/kontakt__header_icon_fb@2x.png') 94% bottom no-repeat rgba(255,102,1,0.9);
        -webkit-background-size: 23px 45px;
        -moz-background-size: 23px 45px;
        background-size: 23px 45px;
    }
    #page-kontakt .sidebar-tilbud {
        background: url('../images/sidebar__icon_services@2x.png') 100% bottom no-repeat rgba(255,102,1,0.9);
        -webkit-background-size: 207px 110px;
        -moz-background-size: 207px 110px;
        background-size: 207px 110px;
    }

    #nav-logo-jaes {
        background-image: url('../images/nav__logo_jaes@2x.png');
        -webkit-background-size: 150px 145px;
        -moz-background-size: 150px 145px;
        background-size: 150px 145px;
    }
    #nav-social {
        background: url('../images/nav__social_fb@2x.png') #2f2f2f 144px bottom no-repeat;
        -webkit-background-size: 32px 62px;
        -moz-background-size: 32px 62px;
        background-size: 32px 62px;
    }
    #subpage-header-jeg-tilbyder {
        background: url('../images/jegtilbyder__header_icon@2x.png') rgba(247,247,247,0.9) top right no-repeat;
        -webkit-background-size: 272px 110px;
        -moz-background-size: 272px 110px;
        background-size: 272px 110px;
    }
    #subpage-header-referencer {
        background: url('../images/referencer__header_icon@2x.png') rgba(247,247,247,0.9) top right no-repeat;
        -webkit-background-size: 207px 110px;
        -moz-background-size: 207px 110px;
        background-size: 207px 110px;
    }
    #subpage-header-kontakt {
        background: url('../images/kontakt__header_icon@2x.png') rgba(247,247,247,0.9) top right no-repeat;
        -webkit-background-size: 272px 110px;
        -moz-background-size: 272px 110px;
        background-size: 272px 110px;
    }

}








/*
#main-content {
	position: fixed;
	z-index: 10;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch; 
}
.subpage { 
	position: relative;
	top: 50px;
	left: 0;
	width: 100%;

	/*height: 100%;*
	display: none;
}

/* VELKOMMEN *
#velkommen-social {
	position: absolute;
	bottom: 58px;
	right: 0;
	width: 93.75%;
	height: 56px;
	opacity: .9; 
	background-color: #2f2f2f;
	font-size: 14px;
	font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
	letter-spacing: 0.100em;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	padding: 12px 18px 0 18px;
}
#velkommen-social > span { 
	letter-spacing: 0.100em;
	display: inline-block; 
	padding-top: 6px; 
	font-size: 14px; 
	font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
}
#velkommen-facebook {
	float: right;
	width: 23px;
	height: 44px;
	display: inline-block;
	background: url('../images/velkommen__social_fb.png') top left no-repeat;
}
#velkommen-orange {
	position: absolute;
	z-index: 4;
	bottom: 133px;
	right: 0;
	width: 93.75%;
	height: 110px;
	opacity: .9; 
	background-color: #ff6601;
	font-size: 1rem;
	font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	padding: 18px 18px 0 18px;
}
#velkommen-gray-line {
	position: absolute;
	z-index: 5;
	bottom: 243px;
	right: 0;
	width: 93.75%;
	height: 5px;
	background-color: #2f2f2f;
}
#velkommen-logo-wrapper {
	position: absolute;
	z-index: 6;
	bottom: 248px;
	right: 0;
	width: 93.75%;
	height: 60px;
	opacity: .9; 
	background-color: #f7f7f7;
	font-size: 1rem;
	font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	padding: 18px 18px 0 18px;
	overflow: visible;
}
#velkommen-logo {
	background: url('../images/velkommen__logo.png') top left no-repeat;
	display: block;
	float: left;
	width: 281px;
	height: 146px;
	margin-top: -76px;
}
#page-velkommen.subpage { position: absolute; height: 100%; }
body.velkommen #main-content { overflow: hidden; }

/*  JEG-TILBYDER *
div.subpage-wrapper {
	width: 87.5%;
	margin: 0 auto;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	padding-top: 35px;
}
header.subpage-header {
	width: 100%;
	height: 65px;
	opacity: .7; 
	background-color: #2f2f2f;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	padding: 25px 16px 0 16px;
}
div.orange-line {
	height: 7px;
	opacity: .9; 
	background-color: #ff6601;
}
header.subpage-jeg-tilbyder {
	background: url('../images/jegtilbyder__header_icon.png') #2f2f2f top right no-repeat;
}
header.subpage-referencer {
	background: url('../images/referencer__header_icon.png') #2f2f2f top right no-repeat;
}
header.subpage-kontakt {
	background: url('../images/kontakt__header_icon.png') #2f2f2f top right no-repeat;
}

div.subpage-body {
	margin-top: 20px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	padding: 20px 15px;
	height: auto;
	opacity: .9; 
	background-color: #f7f7f7;
	margin-bottom: 20px;
}
div.subpage-body ul { list-style-position:inside; }
div.subpage-body ul li {
	font-size: 14px;
	font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
}
#page-referencer .subpage-body img {
	width: 117px;
	height: 117px;
	margin-top: 10px
}
#page-referencer .subpage-body img:nth-child(odd) { margin-right: 10px; ; }
#page-jeg-tilbyder.subpage, #page-referencer.subpage, #page-kontakt.subpage { padding-bottom: 20px; }
footer.subpage-footer {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	padding: 9px 16px 0 16px;
	line-height: 27px;
	font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
}
footer.footer-ringnu {
	height: 66px;
	opacity: .9; 
	background: url('../images/footer__kontakt_icon.png') #ff6601 top right no-repeat;
	color: #2f2f2f;
}
footer.footer-kontakt {
	height: 105px;
	opacity: .9; 
	width: 100%;
	margin-top: 20px;
}
footer.footer-kontakt div.footer-kontakt-left {
	background: url('../images/footer__jaes_logo.png') #f7f7f7 center center no-repeat;
	/*background-color: #f7f7f7;*
	width: 50%;
	float: left;
	height: 105px;
}
footer.footer-kontakt div.footer-kontakt-right {
	text-align: center;
	background-color: #ff6601;
	color: #f7f7f7;
	font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
	width: 50%;
	float: right;
	height: 105px;
	box-sizing: border-box;
	padding-top: 4px;
}
footer.footer-kontakt div.footer-kontakt-right p, footer.footer-kontakt div.footer-kontakt-right a {font-size: 9px; line-height: 15px; }


/*  INPUT & TEXTAREA *
input, textarea {
	width: 100%;
	height: 38px;
	opacity: .7; 
	background-color: #2f2f2f;
	color: #f7f7f7;
	border: 0;
	font-size: 12px;
	box-sizing: border-box;
	padding: 2px 15px 0 15px;	
	font-family: 'HelveticaNeueLTStd75Bold', Helvetica, Arial, sans-serif;
	letter-spacing: 0.100rem;
}
textarea {
	height: 145px;
	padding: 13px 15px 0 15px;	
}
input[type="submit"] {
	background-color: #ff6601;
	color: #2f2f2f;
	width: 63.6%;
	margin: 0 auto;
	padding: 3px 15px 0 15px;	
}


/** CHANGE ALL PLACEHOLDERS COLOR **
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: #f7f7f7; }
input::-moz-placeholder, textarea::-moz-placeholder {color: #f7f7f7;}
input:-moz-placeholder, textarea:-moz-placeholder {color: #f7f7f7;}
input::placeholder, textarea::placeholder {color: #f7f7f7;}

/*	IPHONE RETINA RESOLUTION *

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
	
	#mobile-logo-jaes {
		background-image: url('../images/header__logo_jaes@2x.png');
		-webkit-background-size: 141px 28px;
		background-size: 141px 28px;
	}
	
	.nav-icon {
		background-image: url('../images/nav__icon@2x.png');
		-webkit-background-size: 16px 13px;
		background-size: 16px 13px;
	}
	
	#velkommen-facebook {
		background-image: url('../images/velkommen__social_fb@2x.png');
		-webkit-background-size: 23px 44px;
		background-size: 23px 44px;
	}
	#velkommen-logo {
		background: url('../images/velkommen__logo@2x.png') top left no-repeat;
		-webkit-background-size: 281px 146px;
		background-size: 281px 146px;
	}
	header.subpage-jeg-tilbyder {
		background: url('../images/jegtilbyder__header_icon@2x.png') #2f2f2f top right no-repeat;
		-webkit-background-size: 100 65px;
		background-size: 100px 65px;
	}
	header.subpage-referencer {
		background: url('../images/referencer__header_icon@2x.png') #2f2f2f top right no-repeat;
		-webkit-background-size: 100 65px;
		background-size: 100px 65px;
	}
	header.subpage-kontakt {
		background: url('../images/kontakt__header_icon@2x.png') #2f2f2f top right no-repeat;
		-webkit-background-size: 100 65px;
		background-size: 100px 65px;
	}
	footer.footer-ringnu {
		background: url('../images/footer__kontakt_icon@2x.png') #ff6601 top right no-repeat;
		-webkit-background-size: 100px 65px;
		background-size: 70px 66px;
	}
	footer.footer-kontakt div.footer-kontakt-left {
		background: url('../images/footer__jaes_logo@2x.png') #f7f7f7 center center no-repeat;
		-webkit-background-size: 84px 81px;
		background-size: 84px 81px;
	}

/*	HTML 5 support - Sets new HTML 5 tags to display:block so browsers know how to render the tags properly. */
header, section, footer, aside, nav, article, figure {
	display: block;
}