@charset "utf-8";

:root {
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #333;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  background: #fff url(../images/hintergrund.jpg) no-repeat top center;
  background-size: cover;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
}

#wrapper {
  position: relative;
  max-width: 50rem;
  margin: 1rem auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.2);
}

h1,
h2 {
  font-family: 'Fira Sans Condensed', Arial, sans-serif;
  font-weight: 500;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2rem 0 2rem;
  text-align: center;
  text-transform: uppercase;
  position: relative;
}
h1::after {
  display: block;
  content: "";
  width: 62px;
  height: 3px;
  background-color: #007c3a;
  position: absolute;
  bottom: -10px;
  left: calc(50% - 31px);
}

h2 {
  font-size: 1.2rem;
  margin: 2rem 0 .5rem;
  color: #007c3a;
}

:is(a:link, a:visited, a:hover, a:active) {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

a.link {
  text-decoration: underline;
}
a.link:hover {
  text-decoration: none;  
  color: #007c3a;
}

p {
  margin: 0 0 1rem;
}

span {
  white-space: nowrap;
}

ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

ul li {
  padding-left: 1.375rem;
}

ul li:before {
  content: "\25AC";
  color:#007c3a;
  font-weight: bold;
  float: left;
  margin-left: -1.375rem;
  font-size: 10px;
  line-height: 2;
}

header {
  padding: 1rem 3rem;
}

header img {
 width: 8rem;
}

article {
  padding: 2rem 3rem;
}

footer {
  background-color: #007c3a;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
}

footer p {
  color: #fff;
  margin: 0;
}

a.color {
  color: #fff;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer a.link2 {
  color: #fff;
}
a.link2:hover {
    color: #c5c2c2;
}

.button {
    display: flex;
    margin: 3rem 0 2rem;
}

a.apply {
  background-color: #007c3a;
  color: #fff;
  border: 1px solid #007c3a;
  padding: 0.75rem 3rem;
  font-weight: 700;
}
a.apply:hover {
  background-color: #fff;
  color: #007c3a;
}

.slider {
  position: relative;
}

.slider > img {
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: imageAnimation 18s linear infinite 0s;
  }

  .slider > img:nth-of-type(1) {
    position: static;
    opacity: 1;
  }

  .slider > img:nth-of-type(2) {
    animation-delay: 6s;
  }
 
  .slider > img:nth-of-type(3) {
    animation-delay: 12s;
  }
 
  
  @keyframes imageAnimation {
    4% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }
  }
  

@media only screen and (max-width: 49.937rem) {
  #wrapper {
    border: none;
    margin: 0 auto;
    padding: 1rem;
  }

  p,
  ul {
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    margin: 0 0 1rem;
  }

  h1 {
    font-size: 1.35rem;
  }

  h1 + p {
    margin: 0 0 1rem;
  }

  article {
    padding: 1rem;
  }

  footer {
    padding: 1rem;
  }
}

@media only screen and (max-width: 30rem) {
  header {
    display: flex;
    justify-content: center;
  }
  
  article {
    padding: 1rem 0 0;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  footer p {
    text-align: center;
  }
  .button {
    justify-content: center;
  }
}