html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 95vh;
  margin: 0 auto;
  justify-content: center;
}

.hero-container {
  padding-top: 120px;
}

.hero-image {
  width: 50%;
  height: clamp(160px, 26vh, 280px);
  background: url('../img/Head1.webp') center/cover no-repeat;
  margin: 0 auto;
}

.hero-text {
  flex: 0 0 70%;
  padding: 2rem;
  color: black;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-label {
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.2rem;
}

.bg-light-gray {
  background-color: #f9f9f9;
}

.card-img-top {
  height: 180px;
  object-fit: cover;
}

.tech-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.tech-logo {
  height: 45px;
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1050;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
  }

  .hero-image,
  .hero-text {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
  }

  .hero-image {
    height: clamp(130px, 22vh, 210px);
  }

  .hero-text {
    padding: 1rem 0;
  }
}

/* Einstieg: Fragen oberhalb des Startbildes */
.hero-questions {
  max-width: 800px;
  margin: 0 auto 1rem;
  padding: 1rem 0;
  color: var(--bs-body-color);
  animation: hero-questions-in 650ms ease-out;
}

.hero-questions li {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.5;
}

.hero-questions li + li {
  margin-top: 0.75rem;
}

@keyframes hero-questions-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-questions {
    animation: none;
  }
}
.hero-text h1 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

.hero-text .lead {
  margin-bottom: 0;
}