@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600&display=swap');

@font-face {
  font-family: Ink Free;
  src: url("fonts/ink-free.woff");
}

html {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  color: #ffffff;
  background-color: #95b7d1;
  user-select: none;
}

body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: relative;
  top: -1em;
}

body:before {
  content: '';
  display: block;
  position: fixed;
  inset: -2em;
  background-image: url('niederwetter.jpg');
  background-position: center center;
  background-size: cover;
  z-index: -1;
  filter: blur(1em)
}

img {
  max-width: 50vw;
  max-height: 50vh;
  filter: drop-shadow(0.2em 0.2em 0.4em rgba(0, 0, 0, 0.8));
}

h1 {
  font-family: "IBM Plex Sans", sans-serif;
  color: #ffffff;
  font-size: 500%;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1em;
  text-align: center;
  text-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.8);
  margin: 0.4em 0;
}

h1 span:first-child {
  color: #ccdddd;
  font-weight: 400;
}

a {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 1em;
  background-color: #ffffff;
  color: #111111;
  border-radius: 1em;
  text-decoration: none;
  transition: all linear 400ms;
  box-shadow: 0.2em 0.2em 0.4em rgba(0, 0, 0, 0.2);
}

a:hover {
  scale: 1.1;
}

footer {
  position: fixed;
  bottom: 2em;
}

@media (max-aspect-ratio: 1/1) {
  body {
    top: -2em;
  }

  h1 {
    display: flex;
    flex-direction: column;
    font-size: 700%;
  }

  footer {
    font-size: 175%;
  }
}

@keyframes panBackground {
  from {
    background-position-x: left;
    background-position-y: 20%;
  }
  to {
    background-position-x: right;
    background-position-y: 80%;
  }
}

body:before {
  animation-name: panBackground;
  animation-duration: 40s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}

form {
  box-sizing: border-box;

  width: 80vw;
  max-height: calc(100vh - 6em);

  overflow: auto;

  padding: 2em;
  margin: 1em 0 3em;

  background-color: rgba(255, 255, 255, 0.75);

  font-family: "Ink Free";
  font-size: 150%;
  color: #222222;

  border-radius: 0.2em;
}

form h1 {
  font-size: 300%;
  margin-top: 0;
  margin-bottom: 1em;
}

form h1 span:first-child {
  color: #00529f;
}


form img {
  position: fixed;
  height: 8em;
  left: 2.5em;
  top: 2em;
}

@media (max-aspect-ratio: 1/1) {
  form {
    font-size: 250%;
    margin: 1em 0 4em;
    max-height: calc(100vh - 12em);
  }

  form h1 {
    font-size: 250%;
  }

  form img {
    position: fixed;
    height: 5em;
    left: 0.2em;
    top: 3em;
  }
}

form textarea, form input {
  font-family: inherit;
  font-size: inherit;
}

form em {
  font-style: normal;
}

form h2, form p:first-of-type em {
  color: #00529f;
}

form p:first-of-type em {
  font-size: 120%;
}

form p:first-of-type, form em {
  font-weight: bold;
}

form .interessen {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  margin: 2em 0;
}

form .interesse {
  display: flex;
  gap: 0.4em;
  align-items: center;
}

form .checkbox-wrapper {
  box-sizing: border-box;
  display: inline-block;
  border-radius: 50%;
  border: 0.2em solid #999999;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

form .checkbox-wrapper:has(input:checked) {
  background-color: #00529f;
}

form .checkbox-wrapper input {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

form label {
  cursor: pointer;
  text-align: center;
}

form textarea {
  display: block;
  width: 100%;
  min-height: 10em;
  line-height: 1.3em;
  border-radius: 0.2em;
  border: none;

  background-color: rgba(255, 255, 255, 0.8);
  background-image: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.05) 50%);
  background-size: 100% 2.6em;
}

form .submit-wrapper {
  text-align: center;
}

form input[type=submit] {
  border: none;
  color: #ffffff;
  background-color: #00529f;
  cursor: pointer;
  padding: 0.2em 1em;
  margin: 1em 0;
  border-radius: 0.2em;
  font-size: 150%;
}