*{
  margin: 0;
  padding: 0;
}

body{
  overflow-y: hidden;
}

body.rechtlich{
  overflow-y:auto;
}

#all_slides{
    position: relative;
    height: 100vh;
    padding: 0px;
    margin: 0px;
    list-style-type: none;
}

.slide{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;
}

.active{
    opacity: 1;
    z-index: 2;
}


.controls{
    display: none;
}

.slide{
    font-size: 40px;
    padding: 40px;
    box-sizing: border-box;
    background: #333;
    color: #fff;
    background-size: cover;
}

.slide:nth-of-type(1){
  background-image: url('../images/wohnhaus1.jpg');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}


.slide:nth-of-type(2){
  background-image: url('../images/gewerbeimmobilie1.jpg');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat
}


.slide:nth-of-type(3){
  background-image: url('../images/wohnhaus2.jpg');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat
}

.slide:nth-of-type(4){
  background-image: url('../images/gewerbeimmobilie2.jpg');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat
}


.controls{
  display: inline-block;
  position: relative;
  top: 1rem;
  right: .5rem;
  border: none;
  outline: none;
  font-size: 20px;
  cursor: pointer;
  border: 2px solid #fff;
  border-radius: 1.5rem;
  background: gold;
  width: 3rem;
  height: 3rem;
  margin-left: .5rem;
}

.controls:hover,
.controls:focus{
  background: #eee;
  color: #333;
}

.container{
  position: relative;
}

.buttons{
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 10;
}


.fancy{
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 9;
  border-radius: 1rem;
}

@media only screen and (max-width: 599px) {
	.fancy {left: 50%; transform: translate(-50%);}
}

/* CUSTOM */

body{
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, "sans-serif";
	font-size: 18px;
	color: white;
}

body.rechtlich {color:black;}


ul{
	list-style: none;
}

li{
	margin-bottom: 20px;
}

a {
	color: white;
	text-decoration: none;
}

body.rechtlich a {color:black;}

a:hover {
	text-decoration:underline;
}

div.buttons ul {
	text-align: right;
}

.blackoverlay {
	position: absolute;
	z-index: 5;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0,0,0,0.30)
}

@media only screen and (max-width: 599px) {
	.buttons {
		top:auto;
		left: 50%;
		bottom: 80px;
		transform: translate(-50%);
	}
	div.buttons ul {
	text-align: center;
}
}

.impressum {
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
}
