.bd-hero-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust default height as needed */
    overflow: hidden;
    background: #000;
}

.bd-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    box-sizing: border-box;
    padding: 5%; /* Prevents text from touching edges on mobile */
}

.bd-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Intelligent Overlay container preventing overflow */
.bd-slide-overlay {
    background: rgba(255,255,255,0.7); /* Optional readability background */
    padding: 1.5rem;
    color: #424242;
    max-width: 90%;
    word-wrap: break-word;
    border-radius: 8px;
}

/* Positioning Rules */
.pos-top-left { align-self: flex-start; margin-right: auto; }
.pos-center { align-self: center; margin: auto; text-align: center; }
.pos-bottom-right { align-self: flex-end; margin-left: auto; text-align: left; }

/* Responsive Styles Rules (Klein, Mittel, Gross) using clamp */
.style-klein .bd-title { font-size: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 0.5rem; }
.style-klein .bd-subtitle { font-size: clamp(0.9rem, 2vw, 1.2rem); margin-bottom: 1rem; }

.style-mittel .bd-title { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 0.5rem; line-height: 1.2; }
.style-mittel .bd-subtitle { font-size: clamp(1rem, 2.5vw, 1.5rem); margin-bottom: 1.5rem; }

.style-gross .bd-title { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 0.5rem; line-height: 1.1; font-weight: bold; }
.style-gross .bd-subtitle { font-size: clamp(1.2rem, 3vw, 2rem); margin-bottom: 2rem; }

.bd-cta {
    display: inline-block;
    background: #7e775c; color: #fff;
    padding: 10px 24px; text-decoration: none;
   border-radius: 4px;
    transition: background 0.3s;
}
.bd-cta:hover { opacity:0.8; }

/* Mobile Height Adjustment */
@media (max-width: 768px) {
    .bd-hero-slider { height: 400px;  margin-top: 30px; }
	
	.bd-title {
		font-weight:bold;
	}
	       
			
}





/* --- Slider Dots Navigation --- */
.bd-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.bd-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Leichtes Shadow für bessere Lesbarkeit auf hellen Bildern */
}

.bd-dot:hover, 
.bd-dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* Mobile Height & Dots Adjustment */
@media (max-width: 768px) {
    .bd-hero-slider { height: 400px;  margin-top: 30px; }
	
    .bd-title {
        font-weight: bold;
    }
    
    /* Touch-freundliche Dots auf dem Smartphone */
    .bd-slider-dots {
        bottom: 15px;
        gap: 16px; 
    }
    
    .bd-dot {
        width: 16px;
        height: 16px;
    }
}