.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem; /* Mehr Platz oben und unten */
    background-color: #f5f5f5;
}
  
.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: auto;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text .intro {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #fff;
    line-height: 1.5;
}

.hero-image {
    flex: 1;
    max-width: 800px; /* Noch größere maximale Breite */
    position: relative;
}

.hero-image-full {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 50%; /* Der Textblock beginnt bei 50% der Bildhöhe */
    transform: translateY(-25%); /* Leichte Korrektur nach oben */
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}



.hero-text {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 10px;
    max-width: 90%;
}

.hero-text .intro {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-title {
    font-size: 2.2rem;
    line-height: 1.5;
    font-weight: bold;
}

@media (max-width: 1023px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-text {
        padding: 1rem;
    }
    .hero-text .intro {
        font-size: 1.2rem;
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-text {
        padding: 1rem;
    }
    .hero-text .intro {
        font-size: 1.2rem;
    }
}

.hero-credit {
    position: absolute;
    bottom: 10px; /* Abstand vom unteren Rand */
    right: 10px; /* Abstand vom rechten Rand */
    font-size: 0.8rem; /* Schriftgröße */
    color: #fff; /* Weiße Schriftfarbe */
    background: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
    padding: 5px 10px; /* Abstand innen */
    border-radius: 5px; /* Abgerundete Ecken */
    font-style: italic; /* Kursivschrift */
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        overflow: hidden;
        padding: 0;
    }
    .hero-image-full img {
        width: 500px;
    }
    .hero-title {
        font-size: 0.8rem;
        padding: 0.1rem;
        margin-bottom: 0.3rem;
        font-weight: normal;
    }
    .hero-text {
        padding: 0.4rem;
        font-weight: normal;
    }
    .hero-text .intro {
        font-size: 1rem;
    }
}
