/*Navbar2*/
section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
nav {
  position: relative;
  width: 600px;
  height: 55px;
  background: #000;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-evenly;
}

nav a {
  position: relative;
  display: inline-block;
  font-size: 1.25em;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 0 23px;
  z-index: 1;
}
nav span {
  margin-left: 147px;
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 100%;
  background: linear-gradient(45deg, darkblue, blue);
  border-radius: 8px;
  transition: 0.6s;
}
nav a:nth-child(1):hover ~ span {
  left: -147px;
}
nav a:nth-child(2):hover ~ span {
  left: 0px;
}
nav a:nth-child(3):hover ~ span {
  left: 161px;
}
nav a:nth-child(4):hover ~ span {
  left: 303px;
}

/*Dropdownlist*/
summary {
  padding: 1em;
  background: rgb(0, 17, 85);
  box-shadow: 0 10px 20px rgba(0, 17, 85);
  margin-bottom: 1em;
  cursor: pointer;
  outline: none;
  border-radius: 15px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  font-size: 3vh;
}
details[open] summary ~ * {
  animation: sweep 0.5s ease-in-out;
}
@keyframes sweep {
  from {
    opacity: 0;
    margin-top: -10px;
  }
  from {
    opacity: 1;
    margin-top: 0;
  }
}

body {
  padding: 2em;
  margin: 0;
  height: 100vh;
}

.Lebenslauf {
  display: flex;
  justify-content: center;
  margin-left: 30%;
  position: relative;
  width: 40%;
  height: 0;
  padding-top: 56.55%;
  padding-bottom: 0;
  box-shadow: 0 2px 8px 0 rgba(63, 69, 81, 0.16);
  margin-top: 1.6em;
  margin-bottom: 0.9em;
  overflow: hidden;
  border-radius: 8px;
  will-change: transform;
}
iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0%;
  border: none;
  padding: 0;
  margin-left: 0%;
}
/*Allgemein*/

body {
  width: 80%;
  height: 100%;
  margin-left: 10%;
  margin-right: 10%;
}
body {
  background-color: rgb(38, 163, 212);
  background-image: linear-gradient(
    to right,
    rgb(174, 210, 230),
    rgb(67, 147, 212),
    rgb(87, 87, 255)
  );
}
