/* Hero Section - Anpassungen für Slider */
.hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    overflow: hidden; /* Wichtig, damit die Slides richtig positioniert werden */
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Sanfter Übergang zwischen den Bildern */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.35); /* Dunkler Overlay für bessere Lesbarkeit des Textes */
    border-top: 2px solid #ea0000; /* Behält den roten Rand bei */
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-1 {
    background-image: url('../img/PV_Anlagen.png'); 
}

.hero-slide-2 {
    background-image: url('../img/Kasten.png'); 
}

.hero-slide-3 {
    background-image: url('../img/KNX1.jpg');
}

/* Hero Content (Text und Button) - bleibt über den Slides */
.hero-content {
    position: relative; /* Wichtig, damit es über den Slides liegt */
    z-index: 10;
    max-width: 600px;
    padding: 2rem 1rem;
    margin-left: 5%; /* Ursprünglicher Abstand */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7); /* Text besser lesbar machen */
}

.hero-text small {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ea0000;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* Navigation Pfeile */
.hero-prev, .hero-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px; /* Zentriert vertikal */
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 11; /* Über den Slides und Content */
}

.hero-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.hero-prev:hover, .hero-next:hover {
    background-color: #ea0000;
}

/* Navigationspunkte (Dots) */
.hero-nav-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparentes Weiß */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #ea0000; /* Rotes Dot bei Aktivität/Hover */
}