html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #4a4a4a;
}

nav {
  z-index: 1000;
  background-color: lightslategray;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* Hamburger Menu Styling */
.menu-icon {
  display: none;
  position: relative;
  cursor: pointer;
}

.menu-icon .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px auto;
  background-color: #fff;
  transition: 0.3s;
}

/* Regular Menu Styling */
.menu {
  list-style-type: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 15px 10px;
}

.menu li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
}

.website-title {
  color: #fff;
}

/* Hamburger to Cross transformation */
#menu-toggle-checkbox:checked + .menu-icon .bar:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

#menu-toggle-checkbox:checked + .menu-icon .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle-checkbox:checked + .menu-icon .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Responsive */
@media (max-width: 768px) {
  #main-menu {
    z-index: 1000;
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: lightslategray;
    position: absolute;
    top: 60px;
    left: 0;
  }

  #menu-toggle-checkbox:checked + .menu-icon + #main-menu {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}

#menu-toggle-checkbox {
  display: none;
}

.content-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#section1 {
  position: relative;
  overflow: hidden;
}

.section1-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  animation: fadeInOut 12s infinite;
}

@keyframes fadeInOut {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.bg-image1 {
  background-image: url("background-1.jpg");
  animation-delay: 5s;
}

.bg-image2 {
  background-image: url("background-2.jpg");
  opacity: 0;
}

.section-title {
  position: relative;
  font-size: 2em;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

#section2 {
  background-color: whitesmoke;
  height: auto;
  padding: 50px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-leistungen {
  text-align: left;
  max-width: 60%;
  margin-left: 20%;
  margin-right: 20%;
  color: #4a4a4a;
}

#section2 .text-leistungen p {
  text-align: justify;
}

#section3 {
  background-color: #e8e8e8;
  height: auto;
  padding: 50px 0;
}

#projects-container {
  text-align: left;
  max-width: 60%;
  margin-left: 20%;
}

#section3 .project {}

#section3 h3 {
  cursor: pointer;
}

#section3 .details {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  background-color: whitesmoke;
  margin: -10px 10px 35px;
  padding-left: 10px;
}

.arrow-right {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid black;
  margin-right: 7px;
  position: relative;
  top: -2px;
}

#section4 {
  background-color: whitesmoke;
  height: auto;
  padding: 50px 0;
}

#section4 .impressum-text {
  max-width: 60%;
  margin-left: 20%;
  margin-right: 20%;
  overflow: hidden; /* hide overflow of large images */
}

#section4 .impressum-text img {
  display: block;
  width: auto;    /* keep natural size */
  max-width: none;/* prevent scaling */
}

#section5 {
  max-width: 60%;
  margin-left: 20%;
  margin-right: 20%;
}
