* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background: #f9f9f9;
  scroll-behavior: smooth;
}

p{
  font-size: large;
}


.main-content {
  position: relative;
  max-width: 65%;
  margin: -100px auto 0 auto;
  padding: 2rem;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  z-index: 2;
 
}

.main-content h1,
h2, h3 {
  color: #4A4A49;
  margin-top: 1em;
  margin-bottom: 1em;
}


/* --- Header / Hero --- */
header{
  background: url('../img/BlaichachLuftbild2.jpeg') center/cover no-repeat;
  height: 70vh;
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 1;
  text-shadow: 1px 1px 2px black;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 20em;
  height: auto;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
  padding-bottom: 2em;
}

.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: 1em;
  color: white;
}

/* ----- Tablet (≤ 1024px) ----- */
@media (max-width: 1024px) {
  .hero-content h2 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.8rem;
  }

  .hero-logo {
    width: 14em;
  }

  .main-content {
    max-width: 85%;
    margin-top: -150px;
    padding: 1.5rem;
  }

  .footer-content {
    width: 80%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    height: auto;
    padding: 1rem 0;
  }

  footer {
    height: auto;
  }
}

/* ----- 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: 10em;
    top: 10px;
    left: 10px;
  }

  .main-content {
    max-width: 95%;
    margin-top: -100px;
    padding: 1rem;
    border-radius: 12px;
  }

  

  /* Footer stacked layout */
  .footer-content {
    flex-direction: column;
    width: 90%;
    text-align: center;
    align-items: center;
  }

  .contact-info,
  .legal-info {
    text-align: center;
  }

  .icon {
    width: 18px;
    height: 18px;
  }

  p {
    font-size: 1rem;
  }
}

/* ----- 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;
  }
}