@font-face {
  font-family: "AlegreyaSans-Regular";
  src: url("/fonts/alegreyasans/AlegreyaSans-Regular.woff") format("woff");
}

/* Basis */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: AlegreyaSans-Regular, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.45;
  background-color: #e9cfad;

  /* Platz für fixen Header + Footer (Desktop) */
  padding-top: 80px;
  padding-bottom: 60px;
}

/* Header */
#header {
  background-color: #4d1200;
  background-image: url(/images/belantis-bg-headline.jpg);
  background-repeat: repeat-x;
  background-position: top center;
  color: #fff;

  position: fixed;
  left: 0;
  right: 0;
  top: 0;

  height: 80px;
  z-index: 1030;

  display: flex;
  align-items: center;
}

#belantis_logo {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

#belantis_logo img {
  /* Fix: "relativ" -> "relative" */
  position: relative;
  display: block;
  width: 150px;
  max-width: 45vw;
  height: auto;
}

/* Page Layout */
.page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

.content {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 18px;
}

/* Text */
.headline {
  font-weight: bold;
  font-size: 28px;
  margin: 0 0 10px 0;
}

.intro {
  margin: 0 0 18px 0;
}

/* Job-Block Wrapper (Joboffers selbst wird NICHT verändert) */
#biteblock_main {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

#biteblock {
  width: 100%;
  max-width: 1000px; /* vorher hard 1000px -> jetzt responsiv */
  margin: 0 auto;
}

/* Footer */
#cust_footer {
  font-size: 16px;
  text-align: center;
  background-color: #000000;
  color: #ffffff;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 10px 12px;
  height: auto;
  z-index: 1031;
}

#cust_footer a:link,
#cust_footer a:visited {
  color: #ffffff;
  text-decoration: none;
}

#cust_footer a:hover,
#cust_footer a:focus {
  text-decoration: underline;
}

/* Mobile Feinschliff */
@media (max-width: 640px) {
  body {
    font-size: 18px;
    padding-top: 72px;

    /* Footer auf Mobile lieber "normal" (kein Überdecken) */
    padding-bottom: 20px;
  }

  #header {
    height: 72px;
  }

  #belantis_logo img {
    width: 130px;
    max-width: 55vw;
  }

  .page {
    padding: 18px 12px;
  }

  .content {
    padding: 14px;
    border-radius: 14px;
  }

  .headline {
    font-size: 22px;
  }

  /* Footer wird mobil nicht fixed -> kein Overlay */
  #cust_footer {
    position: static;
    margin-top: 18px;
    border-radius: 0;
  }
}