@font-face {
    font-family: "pressura";
    src: url("fonts/GT-Pressura-Light.woff") format('woff');
}
@font-face {
    font-family: "davidlibre";
    src: url("fonts/DavidLibre-Medium.ttf") format('truetype');
}
@font-face {
    font-family: "davidlibreregular";
    src: url("fonts/DavidLibre-Regular.ttf") format('truetype');
}

body, html{
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}
html {
    overflow: -moz-scrollbars-vertical; 
    overflow-y: scroll;
    width: 100%;  
}
html.admintop {
    overflow: hidden; 
    overflow-y: hidden;
    width: 100%;  
}

body{
  color: #666;
  font-size: 20px;
}
 
h1, h2 {
    color: #888;
}

h2 a {
    text-decoration: none;
    display: inline-block;
}

h2 a:hover {
    background: rgba(0, 0, 0, 0.15); 
}

.content-wrapper{
    display: flex;
    flex-direction: column;
    width: 1280px;
    min-width: 900px;
    min-height:100vh;
	background: #eee;
}

body.admin-wrapper{
    display: flex;
    flex-direction: column;
    color: #0D1117;
    background: #EBEBEB;
}

header{
    width: 100%;
    height: 338px;
    margin-top: 100px;
    position: relative;
	background: #DCAE56 url(./headerbg.jpg) top 30px right no-repeat; 

}

header .logo{
	margin: 50px 31px;
    padding-left: 40px;
}
header svg{
    position: absolute;
    top: 0; left:0;
	height: 220px;
    width: 100%;	
}

header .dot  {
	transition: cx 2s, cy 2s, r 2s;
	transition-timing-function: ease-in-out;
}

header label{
    position: absolute;
    left: 70px;

    bottom: 0;
}

header label a{
    font-size: 2em;
    font-family: davidlibre;
    color: white;
    text-decoration: none;    
}

body.admin-wrapper > header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-grow:1;
    padding-left: 20px;
    max-height: 40px;
    width: 100%;
}

nav, .articles, .admin{
    font-family: pressura; 
    text-transform: uppercase;
  
}

footer{
    font-family: pressura;
    font-size: 0.7em;
	margin: 31px;
    padding-left: 40px;
}

footer a{
		text-decoration: none;
		color: #990000
	
}

nav{
  font-size: 1em;
}

.content-wrapper nav{
    text-align: right;
	background: #eee;
	width: 100%;
	justify-content: right;
}

.content-wrapper nav ul {
    display: flex; 
	justify-content: right;
}


nav a{
    text-decoration: none;
    color: #660000;
}

.navbar-brand {
font-size: unset;
}

nav li{
  margin-right:31px;
  position: relative;
  margin-bottom: 6px;
}

nav li.active::before{
    width: 10px;
    content: " ";
    background-image: url(dot.svg);
    left: -20px;
    top: 4px;
    height:10px;
    position: absolute;
}

nav a{
    display: inline-block;
    width: 100%;
    padding: 2px 6px;
}

nav a.active{
    border-left: 2px #f9a66c solid; 
}

nav a.nav-link:link {
  /*background-color: transparent;*/
  /*font-weight: bold;*/
}

.navbar form{
    margin-block-end: 0;
    font-size:.8vw;
}

nav.menu {
    display: none;
    -webkit-transition: var(--transition) ease;
    -moz-transition: var(--transition) ease;
    -o-transition: var(--transition) ease;
    transition: var(--transition) ease;
}

nav.menu.is-nav-visible {
    display: block;
}

nav.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}


.nav-trigger {
    position: relative;
    height: 32px;
    width: 32px;
    border: none;
    background: none;
    outline: none;
    margin: 0 0 0 29px;
    display: inline-block;
}

.nav-trigger span{
    top: calc(50% - 2px);
    right: 4px;
    transition: background .2s;
}

.nav-trigger span:before, .nav-trigger span:after {
    content: '';
    right: 0;
    -webkit-transform-origin: 0 50%;
    -ms-transform-origin: 0 50%;
    transform-origin: 0 50%;
    transition: -webkit-transform .2s;
    transition: transform .2s;
    transition: transform .2s,-webkit-transform .2s;
}

.nav-trigger span:before {
    top: -6px;
}
.nav-trigger span:after {
    top: 6px;
}
.nav-trigger span, .nav-trigger span:before, .nav-trigger span:after{
    position: absolute;
    height: 3px;
    width: 24px;
    background: grey;
}

.is-nav-visible span {
    background: transparent;
    background: hsla(1,0%,0%,0);
}

.is-nav-visible span:before {
    -webkit-transform: translateX(4px) translateY(-3px) rotate(45deg);
    -ms-transform: translateX(4px) translateY(-3px) rotate(45deg);
    transform: translateX(4px) translateY(-3px) rotate(45deg);
}

.is-nav-visible span:after {
    -webkit-transform: translateX(4px) translateY(2px) rotate(-45deg);
    -ms-transform: translateX(4px) translateY(2px) rotate(-45deg);
    transform: translateX(4px) translateY(2px) rotate(-45deg);
}
  
.home{
    margin: 30px;
}
.homepage-blok{
    background: #eee;
    padding: 0 20px 20px;
    margin-bottom: 20px;
}
.home>a, .home>a>img {
    display: block;
    width: 120px;
}

.socials{
    display: flex;
    flex-wrap: wrap; 
    margin: 10px 0 0 0;   
}

.socials a{
    display: block;
    margin: 0 10px 0 0;    
}

/*  ------------------------------------------- Admin */
.admin{
  /*width:80%;
  height: 80%;*/
  flex-grow:1;
  margin: 10px auto;
  border:1px solid silver;
  display: flex;
  flex-direction: row;
  flex-basis: 15;
  width: 100%;
  overflow-y: scroll;

}

.admin .menu{
  background: #eee;
  width: 320px;
  height: 100%;
  margin-left: 10px;
  overflow-y: scroll;
}

.admin .menu ul{
    list-style: none;
    padding: 0;
    margin-left: 10px;
}

.admin .menu a.nav-link{
    display: inline-block;
}

.admin .content{
margin-left:20px;
 height: 100%;
 width:100%;
 /*overflow: scroll;*/
}
.admin a.article {
color: #d54545;
}
.admin .article-name{
  margin-left: 1vw;
  /*font-size:.6vw;*/
    
}


.admin .flex-div{
  display: flex;
  flex-flow: row;
  /*align-items: flex-start;*/
  margin-bottom:10px;
}
.admin .flex-div>div{
  padding: 0 20px;
}

.admin .flex-div div.legend{
  flex: 1;
}

.admin .flex-div div.field{
  flex:15;
  flex-wrap: wrap; 
}

.admin .flex-div input[type=text], 
.admin .flex-div textarea{
  width:100%;
  padding:0 10px;
}

.admin .flex-div textarea {
height:200px;
}



.dropzone {
    border: 2px dashed #0087F7;
    border-radius: 5px;
    background: white;
}
.dropzone {
    min-height: 150px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    background: white;
    padding: 54px 54px;
}
.dropzone, .dropzone * {
    box-sizing: border-box;
}

.admin .one-image{
  height: 100px;
  width: 100px;
  background-position: center 50%;
  background-repeat: no-repeat;
  background-size: auto 100%; 
  border: 1px silver dotted; 
  display:inline-block;
}

.admin .one-image span{
  font-size:9px;
  background: white;
}

.images{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 15;
    padding: 0 20px;
}

.clickable-span{
	cursor: pointer;
	color: #cc0000;
}

/* --------------------------------------------- Articles etc.*/
.articles{
  margin:31px;
  padding-left:40px;
  flex:1;
  max-width: 1100px;
  display: flex;
    flex-direction: column;
}

.heading{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
  
.articles .projects h1{
    margin-top: 8px;
    font-size: 1.5em;
    margin-bottom:0;
}

.articles .rok{
  font-size:1.1em;
}

.articles article.projects{
  width: 23%;
  height: 40%;
  display: inline-block;
  vertical-align: top; 
}

.articles article.projects .content{
  margin:6px;
}

.img-wrapper{
  position: relative;
}

.overlay{
  background: rgba(0,0,0,0.4);
  position: absolute;
  width: 100%;
  height: 100%;
  top:0;
  left:0;
  opacity: 0;
  -webkit-transition: opacity .35s ease-in-out;
  -moz-transition: opacity .35s ease-in-out;
  -ms-transition: opacity .35s ease-in-out;
  -o-transition: opacity .35s ease-in-out;
  transition: opacity .35s ease-in-out;
}

.overlay:hover{
  opacity: 1;
}

.overlay .overlay-content{
  position: relative;
  width:100%;
  height:100%;
}

.overlay .plus {
opacity: 1;
  border-radius: 50%;
  background: black;
  width:20%;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.overlay .plus:after{
  content: "";
  display: block;
  padding-bottom: 100%;
}

.articles .image{
  width: 100%;
  height: 60%;
  background-size: 100% auto !important;
  background-position: center 75%;
  background-repeat: no-repeat;
  background-clip: border-box;
  border-image-repeat: stretch;
}

/* text / articles */

.articles .content.textual{
  /*margin:6px 14px;*/
}

.articles .content.textual a{
  text-decoration: none;
  color: #990000;
}

.articles .content.textual a:hover{
  color: #009900;  
}

.articles .content.textual section hr{
  //margin-bottom: 40px;
  margin-top: 25px;
}

.articles .content.textual h1{
  font-size:1.4em;
  margin-bottom: 0.2em;
  color: #A6ACB5;
}

.articles .content.textual h2{
  font-size:1.1em;
  margin-bottom: 0.1em;
  color: #B5A7A6;
}

.articles .pixs{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    list-style-type: none;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.articles .pixs img{
  margin: 0 20px 20px 0; 
}

.articles .content.textual h2{
    font-family: davidlibreregular;
    font-size: 1.5em;
  /*text-transform:uppercase;*/
}

.textcontent p{
  margin: 0 0 4px 0;  
  line-height:1.5;
}

.articles .textcontent, .textcontent{
    text-transform: none;
}

.detail img{
float: left;
margin-right:8px;
margin-bottom:20px;
}

.detail .subdetail{
  float: left;
  margin: 20px 20px 0 0;
}

.detail .subdetail.kontakt{
  width:200px;
}

.detail .subdetail.map{
  min-width: 600px;
  width: calc(100% - 440px);
  height:calc(100% - 360px);
}

.menu-admin-table{
    border-top: 1px solid silver;
    border-left: 1px solid silver;
    width: 1100px;
}

.menu-admin-table td{
    border-right: 1px solid silver;
    border-bottom: 1px solid silver;
}
.menu-admin-table .actions a{
    display: inline-block;
    margin-right: 10px;
}

.menu-admin-table tr.disabled{
    color: silver;
}

.input-label{
    width: 300px;
    display: inline-block;
}

.menu-input{
    width: 600px;
}

@media only screen 
  and (max-width: 900px) { 
  
  .content-wrapper{
    width: 100%;
    min-width: unset;    
    }
    
  .content-wrapper nav{    
    margin-top: 0;
    width:40%;
    background: rgba(255,255,255,.9);
  }
  .content-wrapper nav ul{
    display: flex; flex-wrap: wrap;
  }
  
  header{
    background-size: auto 100%;
    background-position: top right;
    height: 180px;
	margin-top:0;
	display: flex;
    justify-content: space-between;
  }
  
  header label{
    font-size: 0.8em;
  }
  .articles article.projects{
    width:100%;
    height:60%;
  }  

  .detail .subdetail.map{
    width: 100%;
    min-width: unset;
    height:60%;
    float: none;
  }  
  
  header .logo{
	  margin:6px;
	  height: 70%;
  }
  
}
@media (max-width: 1280px) { 
    .content-wrapper{
        width: 100%;
    }
}

@media (min-width: 600px) {

    nav.menu, .home {
        display: inline-block;
    }
     
    .nav-trigger{
        display: none;
    }
         
    header a:after {
        content: "";
        display: block;
        width: 100%;
        height: 3px;
        bottom: 0;
        left: 0;
        position: absolute;
        -webkit-transition: all var(--transition);
        -moz-transition: all var(--transition);
        -o-transition: all var(--transition);
        transition: all var(--transition);
    }

    nav a:hover {
        background: rgba(0, 0, 0, 0.15);
    }
    

}

@media (max-width: 600px) { 
    body{
        flex-direction: column;
            flex: 1 1 auto;
    }    

    .articles{
        margin-top: 0;
    }
    
    .home{
        margin-bottom: 0;
        margin-top: 0;
    }
    
    .menu{
        margin-top: 20px;
    }
    .content-wrapper{
        flex-direction: column;
    }
}