#topBtn {
  z-index: 1;
  position: fixed;
  bottom: 40px;
  right: 40px;
  font-size: 22px;
  width: 50px;
  height: 50px;
  background: skyblue;
  border-radius: 4px;
  color: white;
  border: none;
  cursor: pointer;
  display: none;
}

body, html {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #F1F1F1;
}

.BG-image-slide {
  background-image: url("../img/BG1.jpg");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  animation: bgChange 20s linear infinite;

}

@keyframes bgChange {
  0% {
    background-image: url("../img/BG1.jpg");
    }
  10% {
        background-image: url("../img/BG1.jpg");
    }
  20% {
        background-image: url("../img/BG2.jpg");
    }
  30% {
        background-image: url("../img/BG2.jpg");
    }
  40% {
        background-image: url("../img/BG2.jpg");
    }
  50% {
        background-image: url("../img/BG3.jpg");
    }
  60% {
        background-image: url("../img/BG3.jpg");
    }
  70% {
        background-image: url("../img/BG3.jpg");
    }
  80% {
        background-image: url("../img/BG3.jpg");
    }
  90% {
        background-image: url("../img/BG1.jpg");
    }
  100% {
        background-image: url("../img/BG1.jpg");
    }
  }


.image-slide-text {
  text-align: center;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 4px 4px 5px black;
}

.image-slide-text a {
  border: none;
  outline: 0;
  display: inline-block;
  font-size: 18px;
  padding: 10px 35px;
  color: black;
  background-color: #ddd;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  text-shadow: none;
}

.image-slide-text a:hover {
  background-color: #555;
  color: white;
}

.image-slide-text h1 {
  font-size: 60px;
}
.image-slide-text h2 {
  font-size: 30px;
}

@media(min-width: 900px) {
  .image-slide-text h1 {
    font-size: 70px;
  }
  .image-slide-text h2 {
    font-size: 40px;
  }
}

.welle{
  position: relative;
  height: 200px;
  bottom: 50px;
  width: 100%;
}

@media screen and (max-width: 799px) {
    .welle{
      width: 100%;
      height: 100px;
    }
}


#über-uns {
  padding-top: 40px;
  padding-bottom: 100px;
  background-color: #F1F1F1;
  overflow: auto;
}

#über-uns input {
  border-style: none;
  text-align: center;
  font-size: 20px;
  border-radius: 4px;
  box-shadow: 0px 4px 10px 4px #999;
  padding:3px;
}

.separator::after {
  display: block;
  content: '';
  width: 40px;
  height: 3px;
  border-radius: 100px;
  background: #363636;
  margin: 20px 0 10px 0;
}



.separator.center::after {
  margin: 20px auto 10px auto;
}

footer a {
  color: grey;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

footer {
  color: grey;

}

/* Leistungen */

#Leistungen {
  padding-top: 40px;
  padding-bottom: 100px;
  background-color: #F1F1F1;
  overflow: auto;
}

.tab {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}


.tab-bg {
  background-color: #f1f1f1; /* gleiches Grau wie die Buttons */
  padding: 15px;
  border-radius: 12px; /* optional für modernere Optik */
}

.tab button {
  background-color: #f1f1f1;
  border: 1.5px solid #ccc; /* subtilerer Rahmen */
  border-radius: 12px; /* moderner, größere Rundung */
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  font-size: 16px;
  box-shadow: 1px 2px 5px rgba(0,0,0,0.1); /* leichte Schatten */
}

.tab button.active {
  background-color: #555;
  color: white;
  border-color: #555;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.2); /* aktiver Tab hebt sich hervor */
}

.tab button:hover {
  background-color: #ddd;
  border-color: #999;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.15);
}

/* Tab-Inhalte */
.tabcontent {
  display: none;
  padding: 20px;
  border: 1.5px solid #ccc;
  border-radius: 12px;
  background-color: #fafafa;
  box-shadow: 1px 2px 8px rgba(0,0,0,0.1);
}

/* Responsive für Handys */
@media (max-width: 600px) {
  .tab {
    flex-direction: column;
  }

  .tab button {
    width: 100%;
    font-size: 14px;
    padding: 12px;
  }

  .tabcontent {
    padding: 15px;
  }
}

/* Ablauf */
#Ablauf {
  padding-top: 40px;
  padding-bottom: 100px;
  background-color: #F1F1F1;
  overflow: auto;
  }



  .separator::after {
    display: block;
    content: '';
    width: 40px;
    height: 3px;
    border-radius: 100px;
    background: #363636;
    margin: 20px 0 10px 0;
  }

  .centered-head.with-margin {
    margin-top: 40px;
    text-align: center;
  }

  .centered-head {
    width: 100%;
  }

  .separator.center::after {
    margin: 20px auto 10px auto;
  }


.aimg {
	width: 70%;
	align-self: center;
}

.ablauf  {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	padding: 40px 50px;
}

.ablauf h4 {
	letter-spacing: 1.2px;
}

.ablauf h4 {
	font-size: 1.6em;
}

.ablauf div {
	margin: 0 30px;
	font-size: 0.95em;
	line-height: 1.4em;
}

.invisible {
	visibility: hidden;
}


/* Responsive Ablauf*/

@media(min-width: 900px) {
	.aimg {
		width: 20%;
	}
	.ablauf {
		flex-wrap: nowrap;
	}
	.ablauf h4 {
		font-size: 1.8em;
	}
	.ablauf div {
		line-height: 1.5;
		font-size: 1.15em;
	}
}

/* Galerie */
#Galerie {
  padding-top: 40px;
  padding-bottom: 100px;
  background-color: #F1F1F1;
  overflow: auto;
}

.box {
  box-sizing: border-box;
}

.galerie-row > .Galerie-column {
  padding: 8px 8px;
}

.galerie-row:after {
  content: "";
  display: table;
  clear: both;
}

.Galerie-column {
  float: left;
  width: 25%;
}

/* Galerie (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.galerie-modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.mySlides {
  display: none;
}

.cursor {
  cursor: pointer;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.Galerie img {
  margin-bottom: -4px;
}

.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

.Galerie img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Beruf / Jobs */

#Job {
  padding-top: 40px;
  padding-bottom: 100px;
  background-color: #F1F1F1;
  overflow: auto;
}

/* Kontakt */

#Kontakt {
  padding-top: 40px;
  padding-bottom: 100px;
  background-color: #F1F1F1;
  overflow: auto;
}

.Kontakt form {
  max-width: 500px;
  margin: 0 auto;
  padding: 1em;
  background: #f9f9f9;
  border: 1px solid #ccc;
}

.Kontakt label {
  margin-top: 1em;
  display: block;
}

.Kontakt input, textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.5em;
  border: 1px solid #ccc;
}

.Kontakt button {
  margin-top: 1em;
  padding: 0.7em;
  background: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.Kontakt button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Impressum */

#Impressum {
  padding-top: 40px;
  padding-bottom: 100px;
  background-color: #F1F1F1;
  overflow: auto;
}

#Impressum a {
  color: Black;
  text-decoration: none;
}

#Impressum a:hover {
  color: grey;
}
/* Datenschutz */

#Datenschutz {
  padding-top: 40px;
  padding-bottom: 100px;
  background-color: #F1F1F1;
  overflow: auto;
}

#Datenschutz a {
  color: Black;
  text-decoration: none;
}

#Datenschutz a:hover {
  color: grey;
}
