/*css file, gehoert zum index.html file*/
/*transparenz-hinweis: dieses css file wurde mit hilfe von codecademy, w3 und chatgpt erstellt. letzteres wurde ausschliesslich zur informationsbeschaffung verwendet.*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*allgemiene bestimmungen, z.b. breite, schrift und schriftfarbe*/
body,
html {
  height: 100%;
  font-family: "Poppins", sans-serif;
  color: white;
}

/*style vorgaben fuer den header*/
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #0a73ba;
}

/*logo im header mit einer "fixen" position*/
.logo {
  height: 80px;
  width: auto;
}

/*es folgen nun die informationen fuer den bereich mit dem video*/
section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/*spezifische informationen fuer das video*/
section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}

/*container fuer den text auf dem video. z-index sorgt dafuer, dass der text ueber dem video steht und folglich angezeigt wird*/
section div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  padding: 20px;
}

/*spezifische informationen fuer den text auf dem video. margin ist der abstand gegen aussen. zudem hat der text fuer eine bessere lesbarkeit einen leichten schatten*/
section h1 {
  font-size: 2.5rem; /* Groß */
  margin-bottom: 16px;
  text-shadow: #000000;
}

/*abstand nach unten*/
section p {
  font-size: 32px;
  margin-bottom: 24px;
}

/*es folgen nun die styling vorgaben fuer den button*/
section .button-link {
  display: inline-block;
  background-color: #0a73ba;
  color: #ffffff;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  box-shadow: none;
  transition: none;
}

/*es folgen nun die styling vorgaben fuer den footer*/
.site-footer {
  background-color: #0a73ba;
  text-align: center;
  padding: 32px 16px;
  font-family: "Poppins", sans-serif;
  font-size: 15.2 px;
  margin-top: 10px;
  margin-bottom: 0px;
  width: 100vw;
  font-weight: 600;
}

/*vorgaben fuer die links (disclaimer und broschuere) im footer*/
.disclaimer-link {
  font-family: "Poppins", sans-serif;
  font-weight: 400; /*leicht duennere schrift fuer die links, damit diese besser erkennbar sind*/
  color: #ffffff;
  text-decoration: none; /* Kein Unterstrich */
  font-size: 15.2px;
}

footer.site-footer {
  margin-top: 0; /*buendige darstellzng direkt an das video angeschlossen*/
  background-color: #0a73ba;
}

/*nun folgen die spezifischen angaben fuer die mobile ansicht. diese habe ich mit hilfe von chatgpt erstellt.*/

/*mobile (bis 768px)*/
@media (max-width: 768px) {
  header,
  .site-header {
    padding: 10px 16px;
  }

  .logo {
    height: 50px;
  }

  section h1 {
    font-size: 24px;
  }

  section p {
    font-size: 16px;
  }

  section button {
    font-size: 13.6px;
    padding: 10px 20px;
  }

  footer,
  .site-footer {
    padding: 16px 8px;
    font-size: 12.8px;
  }

  .disclaimer-link {
    font-size: inherit; /*gleiche groesse wie der footer-text*/
  }
}

/*tablet (ab 769px)*/
@media (min-width: 769px) {
  section div {
    max-width: 480px;
    padding: 25px;
  }

  section h1 {
    font-size: 40px;
  }

  section p {
    font-size: 19.2px;
  }

  section button {
    font-size: 17.6px;
    padding: 14px 28px;
  }

  header {
    justify-content: flex-start;
    padding: 20px 40px;
  }

  .site-footer {
    font-size: 14px;
  }

  .disclaimer-link {
    font-size: inherit;
  }
}

/*desktop (ab 1024px)*/
@media (min-width: 1024px) {
  section div {
    max-width: 600px;
    padding: 30px;
  }

  section h1 {
    font-size: 48px;
  }

  section p {
    font-size: 22.4px;
  }

  section button {
    font-size: 19.2px;
    padding: 16px 32px;
  }

  .site-footer {
    font-size: 16px;
    padding: 32px 64px;
  }

  .disclaimer-link {
    font-size: inherit;
  }
}

/*ende*/
