@font-face {
  font-family: 'Open Sans';
  src: url('../schriften/OpenSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------- */
/* Beratung Section – Layout    */
/* ----------------------------- */
.beratung-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  background: transparent; /* wichtig: kein grauer Container */
}

.beratung-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  visibility: hidden;
  transform: translateY(40px);
  transition: transform 1.0s ease, opacity 1.0s ease;
  opacity: 0;
}

.beratung-img.animate-in {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.beratung-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.3);
  pointer-events: none;
  z-index: 1;
}

.beratung-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(30px);
  color: white;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.0s ease 1.0s, transform 1.0s ease 1.0s; /* Verzögerung: 2.5s */
}

.beratung-text-overlay.animate-in {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.beratung-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* ----------------------------- */
/* Responsive ab 768px (Web)    */
/* ----------------------------- */
@media (min-width: 768px) {
  .beratung-section {
    height: 50vh;
  }

  .beratung-img {
    height: 100%;
    object-fit: cover;
  }

  .beratung-title {
    font-size: 3rem;
  }
}