header {
  position: relative;
  color: white;
  padding: 4rem 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 440px;
  --scroll: 0px;
}

header::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  background-image: url('../images/poehlansicht.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: -2;
  transform: translateY(calc(var(--scroll) * -1));
  will-change: transform;
}

header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 95, 45, 0.3) 0%, rgba(44, 95, 45, 0.2) 100%);
  z-index: -1;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

header h1 .logo {
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

header h1 .logo img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

header p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 1rem;
  }

  header h1 .logo img {
    height: 60px;
  }
}
