/* --- Header / Hero --- */
header{
  background: url('../img/BlaichachLuftbild3.jpeg') center/cover no-repeat;
  height: 70vh;
}

.hero {
  position: relative;
  /* full screen height */
  display: flex;
  justify-content: center;
  /* centers content horizontally */
  align-items: center;
  /* centers content vertically */
  text-align: center;
  color: white;
  z-index: 1;
  text-shadow: 1px 1px 2px black;

  /* stays behind main content */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  /* 10% dark overlay */
  z-index: 1;
}

.hero-logo {
  position: absolute;
  top: 20px;
  /* distance from top */
  left: 20px;
  /* distance from left */
  width: 24em;
  /* adjust size as needed */
  height: auto;
  z-index: 3;
  /* make sure it’s above overlay and content */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
  padding-bottom: 2em;
  /* keeps text above overlay */
}

.hero-content p{
  font-size: 2.5em;
  color: white;
}

.hero-content {
  text-align: center;
  margin-bottom: 10%;
}

.hero-content h2 {
  font-size: 5rem;
  margin-bottom: 1rem;
  margin-top: 3em;
  color: white;
}


/* ----- Tablet (≤ 1024px) ----- */
@media (max-width: 1024px) {
  .hero-content h2 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.8rem;
  }

  .hero-logo {
    width: 28em;
  }
}

/* ----- Mobile (≤ 768px) ----- */
@media (max-width: 768px) {
  header {
    height: 50vh;
  }

  .hero-content {
    max-width: 90%;
  }

  .hero-content h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .hero-logo {
    width: 12em;
    top: 10px;
    left: 10px;
  }
}

/* ----- Very Small Phones (≤ 400px) ----- */
@media (max-width: 400px) {
  .hero-content h2 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-logo {
    width: 8em;
  }
}