/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

body {
  border:16px solid #fff; 
  background: #dfdfdf; 
  color: #444;
  font-family: 'Cormorant Garamond', serif;
  height:100%;
}
.bottomborder {height:16px;background:white;width:100%; z-index:996; position: fixed;bottom:0;left:0;}

a {
  color: #888;
  transition: 0.5s;
}

a:hover,
a:active,
a:focus {
  color: #0a98c0;
  outline: none;
  text-decoration: none;
}

a.promo-more {display: inline-block;padding:3px 10px; border:1px solid #888; color:#888;}
a.facebook, a.instagram {font-size:1.75em;margin-right: 16px;}
a.linkedin {font-size:1.65em;}
p {
  padding: 0;
  margin: 0 0 30px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding: 0;
}

.center {text-align: center;}

/* Back to top button */

.back-to-top {
  position: fixed;
  display: none;
  background: #000;
  color: #fff;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 1;
  font-size: 16px;
  border-radius: 50%;
  right: 25px;
  bottom: 25px;
  transition: background 0.5s;
  z-index: 11;
}

.back-to-top i {
  padding-top: 12px;
  color: #fff;
}

/* Prelaoder */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #f2f2f2;
  border-top: 6px solid #1bb1dc;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/

#topbar {
  padding: 0 0 10px 0;
  font-size: 14px;
  transition: all 0.5s;
}

#topbar .social-links {
  text-align: right;
}

#topbar .social-links a {
  color: #535074;
  padding: 4px 12px;
  display: inline-block;
  line-height: 1px;
}

#topbar .social-links a:hover {
  color: #1bb1dc;
}

#topbar .social-links a:first-child {
  border-left: 0;
}

.fa-facebook:before {content: '\f230';}
.fa-instagram:before {content: "\f16d";}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header {
	background: white;
  height: 126px;
  transition: all 0.5s;
  z-index: 997;
  transition: all 0.5s;
  padding: 10px 0;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  transition: all 0.5s;
  z-index: 997;
}

#header.header-scrolled,
#header.header-pages {
  height: 70px;
  padding: 15px 0;
  background-color: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.3);
}

#header.header-scrolled #topbar,
#header.header-pages #topbar {
  display: none;
}

#header .logo h1 {
  font-size: 36px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: #413e66;
  text-decoration: none;
}
#header .logo {width:140px;margin:20px 0 0 40px;transition: all ease-in-out .7s;}
#header .logo img {
  padding: 0;
  width: 100%; transition: all ease-in-out 500ms;
  height:auto;
}

#header.header-scrolled .logo img
{  margin: -15px 0 0 0;max-height: 70px;width: auto; transition: all ease-in-out 500ms}

.main-pages {
  margin-top: 60px;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/

#main {padding-top:0px;position: relative;}
.subpage #main {margin-top:110px;}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/


.main-nav,
.main-nav * {
  margin: 2px 0 0 0;
  padding: 0;
  list-style: none;
}

.main-nav > ul > li {
  position: relative;
  white-space: nowrap;
  float: left;
}

.main-nav a {
  display: block;
  position: relative;
  color: #fff;
  padding: 10px 15px;
  transition: 0.3s;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
}
header.header-scrolled .main-nav a {
	color:#333;
	}

.main-nav a:hover,
.main-nav .active > a,
.main-nav li:hover > a {
  color: #1bb1dc !important;
  text-decoration: none;
}

.main-nav .drop-down ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% - 30px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  padding: 10px 0;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: ease all 0.3s;
}

.main-nav .drop-down:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.main-nav .drop-down li {
  min-width: 180px;
  position: relative;
}

.main-nav .drop-down ul a {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  color: #065e77;
}

.main-nav .drop-down ul a:hover,
.main-nav .drop-down ul .active > a,
.main-nav .drop-down ul li:hover > a {
  color: #1bb1dc;
}

.main-nav .drop-down > a:after {
  content: "\f107";
  font-family: FontAwesome;
  padding-left: 10px;
}

.main-nav .drop-down .drop-down ul {
  top: 0;
  left: calc(100% - 30px);
}

.main-nav .drop-down .drop-down:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
}

.main-nav .drop-down .drop-down > a {
  padding-right: 35px;
}

.main-nav .drop-down .drop-down > a:after {
  content: "\f105";
  position: absolute;
  right: 15px;
}

#nav-icon {
    display: inline-block;
    cursor: pointer;
    margin: 50px 16px 0 0;
    float: right;
    transition: all .4s;
}
#nav-icon.change  {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
}
@media (min-width: 992px) { 
	#nav-icon {display: inline-block !important;}
	.d-lg-block {display: none !important;}	
	}
.ham-bar1, .ham-bar2, .ham-bar3 {
    height: 3px;
    margin: 5px 0;
    transition: 0.4s;
    float:right;
    clear:both;
}
.ham-bar1 {
    width: 34px;
}
.ham-bar2 {
    width: 44px;
}
.ham-bar3 {
    width: 38px;
}
/* Rotate first bar */
.change .ham-bar1 {
    -webkit-transform: rotate(-45deg) translate(-10px, 10px);
    transform: rotate(-45deg) translate(-10px, 10px);
}
/* Fade out the second bar */
.change .ham-bar2 {
    opacity: 0;
}
/* Rotate last bar */
.change .ham-bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}

.ham-bar1, .ham-bar2, .ham-bar3 {background-color: #333;}

#nav-icon:hover .ham-bar1,#nav-icon:hover .ham-bar2,#nav-icon:hover .ham-bar3,#nav-icon.change .ham-bar1, #nav-icon.change .ham-bar2,#nav-icon.change .ham-bar3 {width:44px;}
#nav-icon.change .ham-bar1, #nav-icon.change .ham-bar2,#nav-icon.change .ham-bar3 {background-color:white !important}

/* Mobile Navigation */

.mobile-nav {
  position: fixed;
  top: 0;
  left:0;
  bottom: 0;
  z-index: 998;
  overflow-y: auto;
  opacity:0;
  width: 0;
  padding-top: 18px;
  background: rgba(51, 51, 51, 1);
  transition: all 0.4s;
  display:block !important; 

}
.mobile-nav-active .mobile-nav {display:block !important; width:100%;opacity:1;}
.mobile-nav-active .mobile-nav a {display:inline-block;font-family:'Montserrat', sans-serif;font-weight: 700;}
.mobile-nav-active .mobile-nav a:after {height:4px;background: white;content:'';width:100%;display: block;height:4px;transform: scale(0);transition: all .4s }
.mobile-nav-active .mobile-nav a:hover:after {transform: scale(1)}

.mobile-nav * {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-nav ul {margin-top:140px;}
.mobile-nav li {text-align: center;transition: transform .2s ease-in-out;transform: scale(0);opacity:0;}
.mobile-nav.change li {transform: scale(1);opacity:1;}
.mobile-nav li:nth-child(1) {transition-delay: .3s;}
.mobile-nav li:nth-child(2) {transition-delay: .5s;}
.mobile-nav li:nth-child(3) {transition-delay: .7s;}

.mobile-nav a {
  display: block;
  position: relative;
  color: #fff !important;
  padding: 10px 0px;
  font-weight: 700;
  font-size: 2.5em;
}

.mobile-nav a:hover,
.mobile-nav .active > a,
.mobile-nav li:hover > a {
  color: #8dc2fa;
  text-decoration: none;
}

.mobile-nav .drop-down > a:after {
  content: "\f078";
  font-family: FontAwesome;
  padding-left: 10px;
  position: absolute;
  right: 15px;
}

.mobile-nav .active.drop-down > a:after {
  content: "\f077";
}

.mobile-nav .drop-down > a {
  padding-right: 35px;
}

.mobile-nav .drop-down ul {
  display: none;
  overflow: hidden;
}

.mobile-nav .drop-down li {
  padding-left: 20px;
}

.mobile-nav-toggle {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}

.mobile-nav-toggle i {
  margin: 18px 18px 0 0;
  color: #fff;
}
body.scroll .mobile-nav-toggle i {
  color: #333;
}

.mobile-nav-overly {
  width: 100%;
  height: 100%;
  z-index: 997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(51,51,51, 0.5);
  overflow: hidden;
  display: none;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .mobile-nav {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle i {
  color: #fff;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/

/* Sections Header
--------------------------------*/

.section-header h3 {
  font-size: 36px;
  color: #333;
  text-align: center;
  font-weight: 700;
  position: relative;
  font-family: "Montserrat", sans-serif;
}

.section-header p {
  text-align: center;
  margin: auto;
  font-size: 15px;
  padding-bottom: 60px;
  color: #535074;
  width: 50%;
}

/* Section with background
--------------------------------*/

.section-bg {
  background: #f5f8fd;
}

/* Projects Section
--------------------------------*/
.projects {padding-left:60px; padding-right:60px;}
.projektbild img {width:100%;}
.projektname {padding:0 !important;}
.projektname h2 {font-size: 3.5em;}
.right {text-align: right;}
.bildtext {font-family: 'Montserrat', sans-serif;font-size: 1.35em;font-weight: 500;margin-left:50px;margin-top:-70px;width:50%;position: absolute; }
.bildtext:after {content:''; display: block;width:20%;height:8px;background: #333;margin-top:20px}
.shortinfo {font-family: 'Montserrat', sans-serif;font-size: .9em;}
.bildtext.imgtextright {right:50px;}
.projects .promo-inner .col-12 {padding:0;}
.projects .promo-inner > .col-12 {padding:0 0 20px;}
.projects .promo-inner h5.promo-subtitle {margin-bottom:10px;display: inline-block;border-bottom: 1px solid #999;padding: 0 70px 10px 0;}
.projects .promo-inner .shortinfo p > strong {font-weight: 600;}
.projects .bildtext.transbg {background: rgba(255,255,255,.5);padding: 0 1em 1em 1em;}

#projects .projects.pb-5  {padding-bottom:8em !important;}
#projects .projects.pt-5  {padding-top:8em !important;}


.projects.new .smalimg .img_a {width:70% !important;float:right;margin-bottom:2rem;margin-top:3rem;}
.projects.new .smalimg .img_b {width:70% !important;float:left;}

.projects .floatright {float:right;}
.projects .floatleft {float:left;}

/* Other Section
--------------------------------*/
.storrubrik {padding:0 0 2em 0 !important;}
.storrubrik h2 {font-size: 5.5em;}
.lightbg .storrubrik h2 {color:white;}
.white .storrubrik h2 {color:#dfdfdf;}
.brottext {padding-right:3em;}
#contact .brottext p {font-size: 1.25rem;}
#contact a {color:white; display: inline-block;}
#contact a:after {height: 1px;
background: white;
content: '';
width: 100%;
display: block;
transform: scale(0);
transition: all .4s;}
#contact a:hover:after {transform: scale(1)}

/*--------------------------------------------------------------
# Responsive Media Queries
--------------------------------------------------------------*/

@media (min-width: 991px) {
 }

@media (min-width: 992px) {
}

@media (max-width: 991px) {
 #header .logo h1 {font-size: 28px;padding: 8px 0; }
  .projects {padding-left:16px;padding-right:16px;}
  .bildtext {font-size:1em;}
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
  }
}

@media (max-width: 767px) {
  .section-header p {width: 100%;}
  #projects .projects .order-2 {-ms-flex-order: 1;order: 1;}
#projects .projects .order-1 {-ms-flex-order: 2;order: 2;}
.projektname {padding:0 0 4.5em 0 !important;}
.bildtext {right: 50px;}
#projects .projects.pt-5:first-of-type {padding-top:2em !important;}
#projects .projects.pt-5:first-of-type > .feature-item {display:none;}
.projektname.right {text-align: left;}
#projects .projects.pt-5:first-of-type > .storrubrik {padding: 0 0 1em !important;}
}

@media (max-width: 574px) {
	.storrubrik h2 {font-size:4.5em;}
	.projects {padding-left: 0px;padding-right: 0px;}
	#about .projects, #contact .projects {padding-left: 16px;padding-right: 16px;}
 }

@media (min-width:992px) {
	.center50 { -ms-flex: 0 0 66.666667% !important;
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
        margin:auto !important;}
	}
@media (max-width:991px) {
	.center_no { 
        text-align: left;}
	}
/*--------------------------------------------------------------
# Parallax bilder
--------------------------------------------------------------*/	
 section.fullimage { height: 550px; }
      .parallax-window {
	min-height: 450px;
	height: 550px; width:100%;
	background: transparent;
}

#header .container {width:95% !important;max-width:95% !important;}


/*--------------------------------------------------------------
# Backgrounds
--------------------------------------------------------------*/
.white {background-color: #fff;}
.lightbg { background-color: #dfdfdf; color:#333;}
.darkbg { background-color: #5d5d5d; color:#dfdfdf;}


/*--------------------------------------------------------------
# Responsive settings
--------------------------------------------------------------*/
body.scroll #nav-icon {margin:20px 16px 0 0;}
body.scroll #header.header-scrolled .logo {margin:6px 0 0 20px}
@media (max-width:742px) {
	.hero-slider .container {max-width:92%;}
	.hero-slider .slides li h1 {font-size:2.5em;}
#header .logo img {}
	}
	
	@media (max-width:420px) {
	#header .logo img {}
	#header .logo {margin: 20px 0 0 16px;}
	body.scroll #header.header-scrolled .logo {margin:6px 0 0 -6px} 
	.slides li p {font-size:.9em;text-shadow: 2px 2px 6px rgba(0, 0, 0, .65);font-weight:700;}
	.overlay {opacity:0 !important}
body.scroll #nav-icon {margin:20px 16px 0 0;}
	}
