/* Grundlegende Stile */
body {
	font-family: 'Roboto', sans-serif;
	margin: 0;
	line-height: 1.6;
	color: #333;
	background-color: #f4f4f4;
	}

.container {
	width: 90%;
	max-width: 1200px;
	
	margin: auto;
	overflow: hidden; /* Für Float-Clearfix */
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

/* Header */
header {
    background: #fff;
    color: #333;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
}

.logo img {
    height: 50px; /* Logo-Größe anpassen */
    margin-right: 10px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav a {
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Hero Section */
.hero {
	/* background: url('image/bg/badezimmer.jpg') no-repeat center center/cover;  Diese Zeile entfernen */
	color: #fff;
	text-align: center;
	padding: 100px 0;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative; /* Für Overlay */
	overflow: hidden; /* Wichtig, um Überläufe der Bilder zu vermeiden */
	}

.hero-bg-slider {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0; /* Damit der Inhalt darüber liegt */
	}

.hero-bg-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0; /* Standardmäßig unsichtbar */
	transition: opacity 1s ease-in-out; /* Fading-Effekt */
	}

.hero-bg-item.active {
	opacity: 1; /* Aktives Bild sichtbar machen */
	}


.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Semi-transparentes Overlay */
	z-index: 1; /* Zwischen Hintergrundbildern und Inhalt */
	}

.hero-content {
	position: relative;
	z-index: 2; /* Über dem Overlay */
	}

.hero h2 {
	font-size: 3em;
	margin-bottom: 15px;
	color: #fff;
	}

.hero p {
	font-size: 1.2em;
	margin-bottom: 30px;
	}

/* Sections Allgemein */
section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

section:nth-of-type(even) { /* Abwechselnde Hintergrundfarben für Sektionen */
    background-color: #f9f9f9;
}


/* Services Section */
.services h2 {
    text-align: center;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: #007bff;
    margin-bottom: 10px;
}

/* Gallery Section */
.gallery h2 {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px; /* Einheitliche Höhe für Galeriebilder */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}









/* About Section */
.about {
    text-align: center;
	padding: 100px 0; /* Mehr Padding oben und unten */
}

.about p {
    max-width: 800px;
    margin: 0 auto 20px auto;
}
/* Über Uns-Sektion vergrößern */
#ueber-uns {
    padding: 250px 0; 
}

#ueber-uns .container {
    max-width: 800px; /* Textbreite begrenzen für bessere Lesbarkeit */
}












/* Contact Section */
.contact {
    text-align: center;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-info a {
    font-weight: bold;
}

#contact-form {
    max-width: 600px;
    margin: 30px auto 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button.btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
}


/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 20px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links ul li {
    display: inline-block;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.social-media {
    margin-bottom: 20px;
}

.social-media img {
    height: 30px;
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-media img:hover {
    opacity: 1;
}

footer p {
    font-size: 0.9em;
    opacity: 0.7;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
    }

    header nav ul li {
        margin: 0 10px;
    }

    .hero h2 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf kleineren Bildschirmen */
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5em;
    }

    header nav ul li {
        margin: 0 5px;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
}
/* Gallery section adjustments */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-preview {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-align: center; /* Center the image and title */
}

.project-preview:hover {
    transform: translateY(-5px);
}

.project-preview img {
    width: 100%;
    height: 200px; /* Fixed height for consistent previews */
    object-fit: cover; /* Ensures images cover the area without distortion */
    display: block;
}

.project-preview h3 {
    margin: 15px 0;
    color: #333;
    font-size: 1.2em;
}

/* Slideshow Overlay */
.slideshow-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.slideshow-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    background-color: transparent; /* No background, just the images */
}

/* Close button */
.close-slideshow {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above everything */
}

.close-slideshow:hover,
.close-slideshow:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    margin: auto;
    width: 100%; /* Adjust as needed */
    max-height: 80vh; /* Limit height to viewport height */
    display: flex; /* Use flexbox to center images */
    justify-content: center;
    align-items: center;
}

/* Hide the images by default */
.mySlides {
    display: none;
    width: 100%;
    text-align: center; /* Center images horizontally within their div */
}

.mySlides img {
    width: auto; /* Adjust width to fit */
    max-width: 100%; /* Ensure image doesn't overflow container */
    max-height: 80vh; /* Max height relative to viewport */
    object-fit: contain; /* Ensure entire image is visible */
    margin: auto; /* Center image within flex container */
    display: block; /* Remove extra space below image */
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Image Count (optional) */
.image-count {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}
/* CSS-Variablen für die Bilder im Hero-Bereich */
:root {
		--hero-image-1: url('image/bg/badezimmer.jpg'); /* Ersetzen Sie dies mit Ihren tatsächlichen Bildpfaden */
		--hero-image-2: url('image/bg/badezimmer-2.jpg'); /* Beispielbild 2 */
		--hero-image-3: url('image/bg/pool.jpg'); /* Beispielbild 3 */
		/* Fügen Sie hier weitere Bilder hinzu, falls gewünscht */
	}
	
/* Zusätzliche Slideshow-Styles */
.slideshow-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.9);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}
        
.slideshow-content {
	position: relative;
	width: 90%;
	max-width: 1200px;
	max-height: 90vh;
}
        
.close-slideshow {
	position: absolute;
	top: -40px;
	right: 0;
	color: white;
	font-size: 35px;
	cursor: pointer;
}

.project-slides {
	display: none;
}

.project-slides.active {
	display: block;
}

.project-slide {
	display: none;
	text-align: center;
}

.project-slide.active {
	display: block;
}

.project-slide img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
}

.prev, .next {
	cursor: pointer;
	position: absolute;
	top: 50%;
	width: auto;
	padding: 16px;
	margin-top: -22px;
	color: white;
	font-weight: bold;
	font-size: 18px;
	transition: 0.3s;
	user-select: none;
	background-color: rgba(0,0,0,0.5);
	border-radius: 0 3px 3px 0;
}

.next {
	right: 0;
	border-radius: 3px 0 0 3px;
}

.image-count {
	color: white;
	text-align: center;
	padding: 10px;
	font-size: 1.2em;
}





/* social-media-style */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
  }
  .social-icons img {
    transition: transform 0.3s;
  }
  .social-icons img:hover {
    transform: scale(1.1);
  }
