div.top_image {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
  padding-top: 10px;
}

div.top_image a {
  height: 8vh;
  display:inline-block;
}

div.top_image a.icon {
  display: none;
  color: #333;
  background-color: #f2f2f2;
  position: absolute;
  height: auto;
  right: 0;
}

div.top_image a.icon:hover {
  background-color: #ddd;
  color: black;
}

img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

#topnav {
  overflow: hidden;
  background-color: #333;
}

#topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 36px;
  text-decoration: none;
  font-size: 17px;
}

#topnav a:hover {
  background-color: #ddd;
  color: black;
}

#topnav a.active {
  background-color: #04AA6D;
  color: white;
}

hr {
  margin: unset;
  border-top: 1px solid black;
  margin-bottom: 1em;
}

h1 {
  margin: 0;
  text-align: center;
  line-height: 1.5em;
  font-size: 50px;
  font-weight: lighter;
  color: darkred;
}

h2 {
  margin: 0;
  text-align: center;
  line-height: 1.5em;
  font-size: 40px;
  font-weight: lighter;
  color: darkred;
}

h3 {
  margin: 0;
  text-align: center;
  line-height: 1.5em;
  font-size: 30px;
  font-weight: lighter;
  color: black;
  margin-bottom: 0.4em;
}

h4 {
  margin: 0;
  text-align: center;
  line-height: 1.5em;
  font-size: 18px;
  font-weight: lighter;
  color: darkred;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  margin-top: 0;
  margin-bottom: 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeInAnimation ease 2s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.wrapper {
  background-color: #eee;
  min-height: 48vh;
  height: 100%;
}

.wrapper p {
  margin-block-start: 0em;
  margin-block-end: 0em;
  font-size: 18px;
  text-align: center;
  line-height: 1.5em;
  max-width: 600px;
  margin: auto;
  padding: 8px;
}

.img_ctr {
  min-height: 40vh;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

.col {
  float: left;
  width: 33.33%;
}

div#contact {
  margin-bottom: 10px;
}
div.form-group {
  text-align: center;
}

input, textarea {
  font: inherit;
  color: black;
  width: 50%;
  padding: 12px 12px;
  margin: 4px 0px;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: none;
}

input::placeholder, textarea::placeholder {
  font-family: Arial, sans-serif;
  font-size: 14px;
}

textarea#message {
  height: 24vh;
  overflow: auto;
}

input:required:valid, textarea:required:valid {
  border-color: green;
}

input.activated:invalid, textarea.activated:invalid, input.activated.isInvalid {
  border-color: red;
}

input.activated.away:invalid:not(:focus), textarea.activated.away:invalid:not(:focus), input.activated.away.isInvalid:not(:focus) {
  background-color: pink;
}

input:focus, textarea:focus {
  background-color: white;
}

button[type=submit], input[type=submit]{
  width: 20%;
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  //margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: inherit;
}

button:disabled {
  color: lightgrey;
  background-color: darkgrey;
  cursor: default;
}

#impressum a {
  text-decoration: none;
  font-size: inherit;
  color: black;
}

.footer {
  flex-direction: column;
  margin-bottom: 10px;
  margin-top: auto;
  white-space: nowrap;
}

.footer a {
  text-decoration: none;
  font-size: inherit;
  color: black;
}

#links {
  overflow: hidden;
}

#links a {
  float: left;
  text-align: center;
  padding-left: 10px;
}

#links img {
  height: 24px;
}

div.errors {
  text-align: center;
}

div.errors ul {
  color: red;
  display: inline-block;
  text-align: left;
}

@media (orientation: portrait) {
  body, .dropbtn, .wrapper p, h4, input::placeholder, textarea::placeholder {
    font-size: 3.5vw;
  }

  h3, h4 {
    font-size: 4vw;
    margin-block-start: 0em;
    line-height: 1em;
  }

  h3.home {
    line-height: 2.2em;
  }

  .wrapper p.home {
    padding: 10vh;
    font-size: 5vw;
  }

  h1 {
    font-size: 6vw;
  }

  h2 {
    font-size: 5vw;
  }

  div.top_image a {
    height: 8vh;
  }

  div.top_image a.icon {
    display: block;
  }

  #topnav a {
    font-size: 4vw;
  }

  div.center#topnav {
    display: none;
    flex-direction: column;
  }

  .col {
    width: 100%;
  }

  h1, h2, h3, h4 {
    font-weight: normal;
  }

  input, textarea {
    width: 90%;
  }

  #links a {
    padding-left: 30px;
  }

  #links img {
    height: 64px;
  }
}