:root {
	--C0: #3851a3; /*1*/
	--C1: #5f73b5; /*3*/
	--C2: #9ba8d1; /*6*/
	--C3: #ebedf5; /*10*/
}

@media screen and (max-width: 850px) {
	#leistung{
	/*   display: none;*/
	}
	#navi {
		display:none;
	}
	#logo{
		width:130px;
	}
	/*#maybe{display:none;}*/
	
	textarea{
		max-width: 100%;
	}
	#container{
		margin-bottom: 30px;
	}
	body{
		margin-bottom: 30px;
	}
  #Formular{
    max-width: 95%;
  }
  .sidenav {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    background-color: Var(--C1);
    overflow:hidden;
    transition: 0.5s;
    border: 1px solid black;
  }
  .sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: black;
    display: block;
    transition: 0.3s;
	padding:6px;
  	transition: all 0.5s;
	border: 1px solid  var(--C1);
  box-shadow: 0px 0px 5px  var(--C1);
  }
  .sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  } 
	#container{
		padding: 1%;
		background-color:#FFFFFF;
		margin-left: 1%;
		margin-right: 1%;
	}
	#headtext{
		line-height:100%;
		display: flex;
		align-items:center;
		justify-content: space-around;
		margin-left: 20%;
		margin-right: 20%;
	}
	#tabelle {
		display: flex;
		flex-direction: column;
}


  @media screen and (max-height: 300px) {
    .sidenav {
      padding-top: 15px;
    }
    .sidenav a {
      font-size: 18px;
    }
  }
}

@media screen and (min-width: 850px) {
	.sidenav{display: none;}
	#NavSym{display: none;}
	  
	/*footer*/
	footer{
		z-index: 2;
		font-size: 13px;
	}
	footer > #container > a{
		color:black;
		text-decoration: none;
		padding-left: 5px;
		padding-right: 5px;
	}
	button {
		width: 20em;
		height: 15em;
		position: relative;
	}
	button img {
		border: 0;
		position: absolute;
		left: 0%;
		top: 0%;
		z-index: 1;
		width: 100%;
		height:100%;
		object-fit: cover;
		transition: all 0.5s;
	}
	button:focus img,
	button:hover img {
		border: 5px solid var(--C2);
		position: absolute;
		left: -10%;
		top: -170%;
		width: 300%;
		height:300%;
		z-index: 2;
		box-shadow: 1px 1px 5px var(--C2);
		transition: all 0.5s;
	}
	#container{
		padding: 1%;
		background-color:#FFFFFF;
		margin-left: 20%;
		margin-right: 20%;
	}
	header{
		display: flex;
		align-items:center;
		justify-content: space-around;
	}
	#logo{
		width:200px;
	}
	#headtext{
		line-height:100%;
		display: flex;
		align-items:center;
		justify-content: space-around;
		margin-left: 20%;
		margin-right: 20%;
		line-height:100%;
		min-width: 800px;
	}
}


html {
	background-color:var(--C3);
	background-size: 20%;
	height: 100%;
	font-size: 18px;
	overflow-y: scroll;
	text-align:justify;
	line-height: 140%;
}
body {
    height:100%;
}

h1{
	color: var(--C0);
	font-size:26pt;
}
h2{
	color: var(--C0);
	font-size:22pt;
	text-decoration-line: underline;
}
h3, th{
	font-size:18pt;
	color: var(--C0);
}
h4{
	font-size:14pt;
}
h5{
	font-size:32pt;
	color: var(--C0);
	margin-left: 13%;
}
#tabelle{
  	display: flex;
	justify-content: space-around;
}

#tabelle > div{
	margin: 2%;
	margin-top:0%;
	width:100%;
	
}
#tabelle > div > a:link, #tabelle > div > a:visited, #tabelle > div > a:active{
    text-decoration: none;	
	color: black;
}
header {
   	padding: 1%;
    background-size: cover;
  	z-index: 2;
    min-height:130px;
    list-style: none;
  	background-color: var(--C1);
    margin-bottom:1%;
    box-shadow: 0px 0px 5px black;
}
  footer{
    z-index: 2;
    font-size: 12px;
    text-align: center;
  }
  footer > a{
    color:black;
    text-decoration: none;
    padding-left: 5%;
    padding-right: 5%;
  }
/* Navigation */
nav {
  	display: flex;
  	justify-content: flex-end;
}
nav > li {
  	text-align: center;
  	font-size: 22px;
	color: black;
	margin:2%;
}
nav > li > a{
  color: black;
  text-decoration: none;
	padding:6px;
  transition: all 0.5s;
	border: 1px solid  var(--C1);
  box-shadow: 0px 0px 5px  var(--C1);
}
nav > li > a:hover {
	text-shadow: 0px 0px 7px  var(--C2);
	box-shadow: 0px 0px 5px var(--C3);
}
nav > li > a:active {
	border: 1px solid var(--C3);
	box-shadow: 0px 0px 5px var(--C2);
}
#aktiv{
	padding: 8px;
	border: 1px solid var(--C3);
	box-shadow: 0px 0px 5px var(--C2);
}
#containerGal{
  margin:1%;
  padding: 1%;
  border: 1px solid black;
}
#galText {
  margin:1%;
  padding:2%;
  background-color: lightgrey;
  border: black solid 1px;
}
ul#galerie{
  float:left;
  list-style: none;
}
/* Bilder */
#logo{
  	justify-content: flex-start;
	float:left; 
	margin-right:20%;
}
#leistung{
	float:right;
	max-width:40%;
	min-width:150px;	
	padding:1%;
	z-index: 1;
}
#logobot{
	float:right;
	max-width:30%;
	z-index: 1;
	margin:1%;
}
#index{
	float:right;
	height:30%;
}
#container{
	padding: 1%;
	background-color:#FFFFFF;
}
#Formular{padding:2%;}
#Adresse{padding:2%;}
#text{
	/*max-width:80%;*/
	padding: 3%;
}
#komp{margin-top: 2%;}
#logostart{width:20%;}
#sort{
	display: flex;
	align-items:center;
  	justify-content: float-around;
}
#start{
  	display: flex;
	align-items:center;
	justify-content: space-around;
	flex-direction: row;
}

#start > div{
	margin: 2%;
	margin-top:0%;
	width:100%;
}
#expert{
	height:200px;
	width: 200px;
}
#pass{
	margin-left:10%;
	max-height:200px;
	max-width: 200px;
}
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}