
/* LOGO */
header {
	background-color: #D3D3D3;
}

#logo {
   display: block;
   margin-left: auto;
   margin-right: auto;
   height: 6em;
}

.btncontact {
  background-color: DodgerBlue;
  border: none;
  color: white;
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
}

body {
  font-family: Raleway;
  background-color: #ffffff;
}

a {
text-decoration: none;
}


/* NAV */

nav {
  margin: auto;
  margin-top: 40px;
  margin-bottom: 50px;
  position: relative;
  width: clamp(250px, 40vw ,100%);
}

nav h2 {
  font-size: 1.5rem;
  border-radius: 2px;
  position: relative;
  background: tomato;
  height: 40px;
  text-transform: uppercase;
  margin-bottom: 0;
  color: #ffffff;
  font-weight: 200;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  box-shadow: 4px 4px 20px -2px rgba(0, 0, 0, 0.35);
  transition: all 0.4s;
}

nav:hover h2 {
  transform: translateY(-2px);
  box-shadow: 2px 2px 5px -1px rgba(0, 0, 0, 0.35);
  transistion: all 0.4s;
}

h5{
  font-size: 1.1rem;
  margin-top: 1em;
  }

#toggle {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
  height: 40px;
}

h2::before{
  position: absolute;
  right: 0;
  top: 0;
  height: inherit;
  aspect-ratio: 1;
  background: currentColor;
  display: flex;
  align-items: center;
  padding-right: 1rem;
  content: "";
  clip-path: polygon(50% 25%, 20% 80%, 80% 80%);
  transform: rotate(180deg) scale(0.75);
}

#toggle:not(:checked) ~ h2::before {
  transform: rotate(0deg) scale(0.75);
}

#toggle:focus ~ h2{
  background: mediumorchid;
  transition: background 0.45s;
}

#toggle:checked ~ ul {
  visibility: hidden;
  height: 0 px;
  opacity: 0;
}

#toggle:not(:checked) ~ ul {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

nav ul {
  padding-left: 0;
  padding-top: 1rem;
  margin-top: 0;
  background: #ece5da;
  list-style: none;
  overflow: hidden;
  text-align: right;
  text-align: center;
  transition: all 0.4s ease-out;
  width: 100%;
  position: absolute;
}

nav ul li {
  border-radius: 2px;
  position: relative;
  display: inline-block;
  line-height: 1.5;
  width: 100%;
  margin: 0 0 0.25rem 0;
  background: tomato;
  transition: background 3s;
  box-shadow: 2px 2px 10px -2px rgba(0, 0, 0, 0.35);
}

nav ul li:hover,
nav ul li a:focus {
  background: mediumorchid;
  transition: background 0.45s;
}

nav ul a {
  display: block;
  color:  #ffffff;
  font-size: 1.3rem;
  text-transform: lowercase;
  font-weight: 200;
  text-decoration: none;
}

/* NAV GALLERY */

nav2{
	display:block;
	height:2.3em;
	font-weight:200;
	background-color:none;
	text-align:center;
	letter-spacing:0.2em;
	word-spacing:0.2em;
	margin:0.5em;
	margin-top: 3em;
	margin-bottom: 2em;
	top: 0;
}

nav2 ul {
	border: 0.02em ;
	border-radius: 10px;
	background-color: hsla(10, 0%, 0%, .4);

}

nav2 ul li {
	display:inline;
	margin:0em 0.177em 0em 0.177em;
}

nav2 ul li a {
	color: white;
	font-size: 1.1em;
	line-height:2.3em;
	font-weight: 400;
	padding:0.563em 0.938em 0.375em 0.983em;
	transition:background 0.2s;
	-webkit-transition:background 0.2s;
}

nav2 ul li a:hover {
	color: hsla(170, 80%, 90%, .7);
}

nav2 ul li a:active {
	color: hsla(170, 80%, 90%, 1);
}

.nav_active{
	font-size: 1.3em;
	color: hsla(170, 100%, 70%, 0.8);
}

/* GALLERY */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.heading {
  text-align: center;
  font-size: 2.0em;
  letter-spacing: 1px;
  padding-top: 2em;
  color: #000000;
}

.gallery-image {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-image img {
  height: 350px;
  width: 350px;
  transform: scale(1.0);
  transition: transform 0.4s ease;
}

.img-box {
  box-sizing: content-box;
  margin: 10px;
  height: 350px;
  width: 350px;
  overflow: hidden;
  display: inline-block;
  color: white;
  position: relative;
  background-color: white;
}

.caption {
  position: absolute;
  bottom: 5px;
  left: 20px;
  opacity: 0.0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.transparent-box {
  height: 350px;
  width: 350px;
  background-color:rgba(0, 0, 0, 0);
  position: absolute;
  top: 0;
  left: 0;
  transition: background-color 0.3s ease;
}

.img-box:hover img {
  transform: scale(1.1);
}

.img-box:hover .transparent-box {
  background-color:rgba(0, 0, 0, 0.5);
}

.img-box:hover .caption {
  transform: translateY(-20px);
  opacity: 1.0;
}

.img-box:hover {
  cursor: pointer;
}

.caption > a:nth-child(2) {
  font-size: 0.8em;
}

.caption .button_pos{
  background-color: #2e9f82;
  color: white;
  padding: 10px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.caption .button_pos:hover{
  opacity: 0.5;
}

.caption .button_neg{
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
/* slider Info*/

#slider input[type="radio"] {
  order: 5;
}
#slider {
  width: 600px;
  height: 450px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
#slider div img {
  max-width: 100%;
  max-height: calc(100% - 20px);
  max-width: 100%;
  flex-basis: 100%;
  flex-grow: 0;
  flex-shrink: 1;
  margin: auto;
}
#slider div {
  width: 100%;
  height: calc(100% - 20px);
  display: flex;
  order: 1;
}
.toLeft,
.toRight {
  position: absolute;
  top: calc(50% - 25px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ddd;
  opacity: 0.7;
  line-height: 50px;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  transition: all 0.2s ease-in;
  cursor: pointer;
}
.toLeft:hover,
.toRight:hover {
  background-color: #eee;
}
.toLeft {
  left: 10px;
}
.toRight {
  right: 10px;
}
#slider div {
  display: none;
}
#slider input[type="radio"]:checked + div {
  display: flex;
}
#slider input[type="radio"]:checked + div img {
  flex-shrink: 0;
}

/* Blog und Info*/
.card .littleimg img{
  height: 200px;
}
/* Create two unequal columns that floats next to each other */
/* Left column */
.leftcolumn {
  float: left;
  width: 75%;
}

/* Right column */
.rightcolumn {
  float: left;
  width: 25%;
  padding-left: 20px;
}

.blogmargin {
  margin-left: 5em;
}
.card img {
  padding-right: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  height: 300px;
}

.card .igw img {
  padding-right: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  height: 200px;
}

.card .icon {
  vertical-align: text-bottom;
}

.card .icontxt {
  color: #000000;
}
/* contact form */
table {
   width: 100%;
   padding: 0px 50 px;
}

.col1 {
	height: 50px;
}

.col2 {
	height: 50px;
}

h4 {
  font-size: 1.5rem;
  padding: 1em;
  }

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

input[type=checkbox] {
    margin-bottom: 20px;
    box-sizing: border-box;
	background-color: #fff;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: inline-block;
	font-size: 14px;
}

input[type=text] {
   width: 250px;
    padding: 12px 20px;
    margin: 4px 0;
    box-sizing: border-box;
	background-color: #fff;
	box-shadow:none;
	border-width:0px;
	border-bottom:1px solid #008BD0;
    color: #000;
	-webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;

}

input[type=text]:focus {
   width: 250px;
    padding: 12px 20px;
    margin: 4px 0;
	background-color: #fff;
	border-width:0px;
	border:1px solid #008BD0;
    color: #000;
	-webkit-transition: width 0.5s ease-in-out;
    transition: width 0.1s ease-in-out;
}



input[type="text"]:focus + label[placeholder]:before {
  color: #000;
}
input[type="text"]:focus + label[placeholder]:before,
input[type="text"]:valid + label[placeholder]:before {
  transition-duration: .2s;
  transform: translate(0, -2.5em) scale(0.9, 0.9);	/* wie weit es hoch geht beimm focus */

}
input[type="text"]:valid + label[placeholder]:before{
	border-color: #000;
	background-color:#fff;
	border-width:0px;

}

input[type=text]:focus:invalid + label[placeholder]:before {
    color: red;
	background-color:#fff;

}


input[type=text]:invalid + label[placeholder]:before {
    background-color:#fff;

}


input[type="text"]:valid + label[placeholder]:before {
	color: #000;
}
input[type="text"]:invalid + label[placeholder][alt]:before {
  content: attr(alt);
}
input[type="text"] + label[placeholder] {
  display: block;
  pointer-events: none;
  line-height: 24px;
  margin-top: calc(-3em - 9px);
  margin-bottom: calc((4em - 1em) + 5px);


}
input[type="text"] + label[placeholder]:before {
  content: attr(placeholder);
  display: inline-block;
  margin-top: 14px;
  padding: 0 10px;
  margin-left:10px;
  color: #4D4F53;
  white-space: nowrap;
  transition: 0.3s ease-in-out;
  background-image: none;
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: center;
}

input.website[type=text] {
	width: 5px;
	max-width:5px;
	 padding: 0px 0px;
	 margin: 0px 0;
	 box-sizing: border-box;
	 color: #fff;
	 transition:none;
	 border:none;
	 background:transparent;
 }

 input.website[type=text]:focus {
 background-color:transparent;
 border-width:0px;
 border:none ;
 }

 .website {
	 z-index:999;
	 position:absolute;
	 height:5px;
	 width:5px;
	 max-width:5px;
	 border:none;
	 background:none;
	 margin:0;
	 top:0;
	 left:0;
	 clear:both;
	 font-size:0px;
	 line-height:0px;
 }


textarea {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: block;
	font-size: 14px;
	color: #000;
    margin-left: 0;
    margin-right: 0;
    font-weight: 400;
	line-height:15px;
	text-align:left;
	resize: none;
	width: 350px;
	height: 150px;
	padding: 12px 20px;
	border-width:0px;
	border:1px solid #008BD0;
	background-color:#fff;
}



select {
	border: 1px solid #008BD0;
	box-shadow:none;
}


input[type=submit]{
	background-color:#4F81BD;
    border: none;
	border-radius:2px;
    color: white;
    padding: 5px 20px;
    text-decoration: none;
    margin: 20px 2px;
	float:left;
	font-size:18px;
	width:180px;
}

input[type=submit]:hover{
	background-color:#4E98DF;
    border: none;
	border-radius:2px;
    color: white;
    padding: 5px 20px;
    text-decoration: none;
    margin: 20px 2px;
	float:left;
	font-size:18px;
	width:180px;
	cursor:pointer;
}


input[type=text] {
   width: 200px;
    padding: 12px 20px;
    margin: 4px 0;
    box-sizing: border-box;
	background-color: #fff;
	box-shadow:none;
	border-width:0px;
	border-bottom:1px solid #008BD0;
    color: #000;
	-webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}

input[type=number] {
   width: 200px;
    padding: 12px 20px;
    margin: 4px 0;
    box-sizing: border-box;
	background-color: #fff;
	box-shadow:none;
	border-width:0px;
	border-bottom:1px solid #008BD0;
    color: #000;
	-webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}

input[type=text]:focus {
   width: 200px;
    padding: 12px 20px;
    margin: 4px 0;
	background-color: #fff;
	border-width:0px;
	border:1px solid #008BD0;
    color: #000;
	-webkit-transition: width 0.5s ease-in-out;
    transition: width 0.1s ease-in-out;
}


.form-group{
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: block;
	font-size: 14px;
	color: #000;
    margin-left: 0;
    margin-right: 0;
    font-weight: 400;
	line-height:15px;
	text-align:left;
}


.inputField
{
    BORDER-RIGHT: #7f7f7f 1px solid;
    BORDER-TOP: #7f7f7f 1px solid;
    BORDER-LEFT: #7f7f7f 1px solid;
    BORDER-BOTTOM: #7f7f7f 1px solid;
    FONT-SIZE: 14px;
    WIDTH: 100px;
	background-color: #FFFFFF;
}

.errorField
{
    BORDER-RIGHT: #9F0004 2px solid;
    BORDER-TOP: #9F0004 2px solid;
    BORDER-LEFT: #9F0004 2px solid;
    BORDER-BOTTOM: #9F0004 2px solid;
    FONT-SIZE: 14px;
    WIDTH: 100px;
    background-color: #FFFFCC;
}
.errorTable
{
    BORDER-RIGHT: #9F0004 1px solid;
    BORDER-TOP: #9F0004 1px solid;
    BORDER-LEFT: #9F0004 1px solid;
    BORDER-BOTTOM: #9F0004 1px solid;
    FONT-SIZE: 9px;
    background-color: #E2E1E1;
}


select {
  width:250px;
  border: 1px solid #bbb;
  padding:.75em 1em .5em 1em;
  margin-top:10px;
  box-shadow: 0 2px 1px 0 rgba(0,0,0,0.2);
  background-color:#fff;
  background-image:url(select-arrow.png);
  background-position: right;
  background-repeat: no-repeat;
}

select:hover {
  box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
}
/* ENDE KONTAKTFORM */


/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
@media only screen and (max-width: 800px) {
  #logo {
   height: 4em;
  }

  body {
  font-size: 20px;
  }

  .leftcolumn, .rightcolumn {
  width: 100%;
  padding: 0;
  }

  video .long{
  height: 400px;
  }

  video .wide{
  height: 200px;
  }

  .card img {
  padding-right: 2px;
  padding-top: 2px;
  }

  .card .igw img {
  height: 150px;
  }


  .portrait {
  height: 200px;
  }

  .blogmargin {
  margin-left: 0.2em;
  }

  nav {
    margin: auto;
    margin-top: 40px;
    margin-bottom: 60px;
    width: clamp(350px, 40vw ,100%);
  }

  nav2 {
   margin-bottom: 10em;
  }

  nav2 ul li {
  position: relative;
  display: inline-block;
  }

  th {
  	width: 100%;
  	display: block;
  	margin: 10px 0px;
   }

	#slider {
	   width: 300px;
	   height: 225px;
	 }
}



/* Add a card effect for articles */
.card {
   background-color: white;
   padding: 20px;
   margin-top: 20px;
}

.card a:hover{
   opacity: 0.4;
}
/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}


/* FOOTER */

#container {
   position:relative;
}

#footer {
   position: fixed;
   bottom:0;
   width:100%;
   height:30px;   /* Height of the footer */
   background:#6cf;
   text-align: center;
   padding-top: 5px;
   opacity: 0.7;
}

#footer a{
	text-decoration: none;
	font-size: 1.1em;
	color: #000000;
	padding: 10px;
}

#footer a:hover{
	opacity: 0.4;
}
