html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.main-header {
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 100%;
}

/* Header-Bar - sorgt dafür, dass das Logo links bleibt und die Navigation zentriert wird */
.header-bar {
    display: flex;
    justify-content: center;  
    align-items: center;
    width: 100%;
}

/* Logo Container */
.logo-container {
    flex-shrink: 0; /* Verhindert das Schrumpfen des Logos */
    margin-right: 40px;  /* Fügt einen Abstand zwischen Logo und Navigation hinzu */
}

.logo {
    max-width: 200px;  /* Maximalbreite des Logos, kannst du nach Bedarf anpassen */
    height: auto;      /* Hält das Seitenverhältnis des Logos bei */
}

/* Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    font-size: 18px; /* Schriftgröße für die Navigationselemente */
    flex-grow: 1; /* Ermöglicht es der Navigation, den verfügbaren Platz einzunehmen */
    justify-content: center; /* Zentriert die Navigation innerhalb des verfügbaren Raums */
}


.nav-links a {
    color: #b29146;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero-section {
    width: 100%;
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-text {
    background-color: rgba(255,255,255,0.75);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 900px; /* mehr als vorher */
    margin: 0 auto;
}

.hero-text p {
    font-size: 1.5em;
    margin-top: 10px;
}

button {
    background-color: #b29146;
    color: white;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}



/* Section */
section {
    padding: 60px 20px;
    background: white;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

/* Align sections centrally */
#home, #services, #gallery, #contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

ul {
    list-style: disc inside;
    padding: 0;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input, textarea {
    margin-bottom: 15px;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 500px;
}

button {
    background-color: #b29146;
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background-color: #e67e22;
}

/* Gallery */
#gallery {
    padding: 60px 20px;
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf größeren Bildschirmen */
    gap: 20px;
    justify-items: center;
}

.gallery-item {
    width: 100%;
    max-width: 100%; /* Kein Maximalwert für die Breite der Bilder, damit sie die volle Breite der Spalten ausfüllen */
    border-radius: 8px;
    overflow: hidden;
}

.gallery img {
    width: 100%; /* Die Bilder nehmen die volle Breite ihrer Container ein */
    height: 300px; /* Festgelegte Höhe für alle Bilder */
    object-fit: cover; /* Die Bilder füllen den Container ohne Verzerrung */
    border-radius: 8px;
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr 1fr; /* 2 Spalten für kleinere Bildschirme */
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr; /* 1 Spalte für sehr kleine Bildschirme */
    }
}



/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #eee;
    font-size: 0.9em;
}

footer a {
    color: #333;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}

footer a:hover {
    color: #f39c12;
}

/* Contact Section - Handwerker Image and Form */
#contact {
    padding: 120px 20px;  /* Erhöht das Padding für eine deutlich größere Höhe */
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;  /* Erhöht den Abstand zwischen den Elementen */
    flex-wrap: wrap;  /* Sorgt dafür, dass sich die Elemente bei kleineren Bildschirmen neu anordnen */
}

.contact-info {
    flex: 1;
    text-align: left;
    padding: 20px;  /* Erhöht den Innenabstand der Kontaktinfos */
}

.contact-photo {
    flex: 0 0 auto;
}

.handwerker-img {
    width: 150px; /* Vergrößert das Bild */
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.google-map {
    margin-top: 30px;
    text-align: center;
}

.google-map iframe {
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1.2em;
    }

    section {
        padding: 40px 20px;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    /* Adjust Contact Section for smaller screens */
    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-photo {
        margin-bottom: 20px;
    }
}

.swiper-container {
    width: 100%;
    height: 80vh;
}

.swiper-wrapper {
    display: flex;  /* Stellt sicher, dass die Swiper-Slides nebeneinander angezeigt werden */
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100vh;
    background-size: contain;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide.slide1 {
    background-image: url('bilder/slide1.jpg');
    background-size: cover;
    background-position: center;
}

.swiper-slide.slide2 {
    background-image: url('bilder/slide1.jpg');
    background-size: cover;
    background-position: center;
}

.swiper-slide.slide3 {
    background-image: url('bilder/slide1.jpg');
    background-size: cover;
    background-position: center;
}
/* Für Smartphones mit einer maximalen Breite von 768px */
@media (max-width: 768px) {
    .swiper-container {
        height: 250px;  /* Kleinere Höhe für mobile Geräte */
    }
}

/* Für kleinere Smartphones mit einer maximalen Breite von 480px */
@media (max-width: 480px) {
    .swiper-container {
        height: 200px;  /* Noch kleinere Höhe für sehr kleine Bildschirme */
    }

    .swiper-slide img {
        object-fit: contain; /* Bild in den Container einpassen, ohne zu schneiden */
    }
}

.hero-text h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero-text button {
    background-color: #fff;
    color: #b29146;
    padding: 10px 20px;
    border: none;
    font-size: 1em;
    cursor: pointer;
}

.hero-text button:hover {
    background-color: #e67e22;
}
#services {
    padding: 60px 20px;
    background: white;
    margin-bottom: 20px;
    text-align: center;
}

#services h2 {
    color: #333;
    margin-bottom: 30px;
}

/* Neue Flexbox-Containerklasse */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Einzelne Service-Box */
.service-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* Einheitliche Bildverhältnisse */
    object-fit: cover;
    border-radius: 8px;
    display: block;
    max-width: 100%;
}


.service-item {
    flex: 1 1 22%;
    max-width: 22%;
    text-align: center;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .service-item {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (max-width: 600px) {
    .service-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .service-item img {
        aspect-ratio: auto;
        height: auto;
    }
}



.service-item:hover {
    transform: translateY(-10px); /* Hover effect */
}
/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #b29146; /* Farbe der Pfeile */
    width: 44px;
    height: 44px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px;
}
.intro-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #ffffff;
}

.intro-text h1 {
    font-size: 2.5em;
    color: #b29146;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.2em;
    color: #333;
}
