html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
}

.header {
    overflow: hidden;
    padding: 20px 10px;
    background-color: lightgrey;
}

.header a {
    float: left;
    color: black;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;
}

.logo {
    width: 50%;
    padding: 0px;
}

.logo1 {
    padding: 0px;
    max-width: 50%;
    margin-left: -40%;
}

.header a:hover {
    background-color: lightgrey;
    color: black;
}

.header a.active {
    background-color: dodgerblue;
    color: white;
}

.header-right {
    float: right;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropbtn {
    font-size: 18px;
    border: none;
    outline: none;
    color: black;
    padding: 12px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
    text-align: left;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: lightgrey;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #ddd;
}

.maincontent {
    display: flex;
    flex-direction: column;
}

.mainheader {
    font-size: 2.5rem;
    text-align: center;
}

.flex4 {
    display: flex;
}

.minitxt1 {
    text-align: left;
    font-size: 1rem;
    max-width: 50%;
    margin-left: 5%;
    margin-top: 10%;
}

.mainimage {
    margin-top: 5%;
    max-width: 40%;
    max-height: auto;
    margin-left: 5%;
    border-radius: 15px;
}

.dienstleistungen {
    width: 100%;
    margin-top: 10%;
    margin-bottom: 5%;
}

.dheader {
    padding-top: 5%;
    padding-bottom: 4%;
    text-align: center;
    font-size: 2rem;
    color: black;
}

.flex {
    display: flex;
    gap: 50px;
}

.flex2 {
    max-width: 50%
}

.text1 {
    color: black;
    margin-left: 15%;
    margin-bottom: 10%;
    width: 70%;
}

.slideshow-wrapper {
    max-width: 50%;
}

.slideshow-container {
    margin-left: 15%;
    max-width: 100%;
    position: relative;
    margin: auto;
    margin-right: 0%;
}


.slideshow-container img {
    width: 100%;
    height: 500px;       
    object-fit: cover;     
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}


.mySlides, .mySlides1 {
    display: none;
}

.prev, .next, .prev1, .next1 {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.next1 {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover, .prev1:hover, .next1:hover {
    background-color: rgba(0,0,0,0.8);
}

.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.numbertext, .numbertext1 {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.dot, .dot1 {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover, .active1, .dot1:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.extracontent {
    display: flex;
    margin-top: 10%;
    margin-bottom: 10%;
    gap: 50px;
    flex-direction: column;
}

.extraheader {
    margin-top: 0px;
    font-size: 2rem;
    text-align: center;
}

.part1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.list {
    max-width: 100%;
}

footer {
    background-color: #333;
    color: #ffffff;
    padding: 40px 20px;
    position: relative;
    width: 100%;
    margin-top: 10%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer-section1, .footer-section2 {
    flex: 1;
    padding: 20px;
    min-width: 250px;
}

.footer-section h2 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section2 ul {
    list-style-type: none;
    padding: 0;
}

.footer-section2 ul li {
    margin-bottom: 10px;
}

.footer-section2 ul li a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section2 ul li a:hover {
    color: #ff8c00;
}

.footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #444;
    font-size: 14px;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
}

#IES {
    background-color: lightgrey;
}
@media screen and (max-width: 1024px) {
    .slideshow-wrapper{
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    .header a, .dropbtn {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: relative;
    }

    .flex4 {
        flex-direction: column;
    }

    .minitxt1 {
        max-width: 90%;
    }

    .mainimage {
        max-width: 90%;
    }

    .flex {
        flex-direction: column;
    }

    .flex2, .part1 {
        max-width: 90%;
        margin-left: 5%;
    }

    .header-right {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .dienstleistungen {
        padding: 15px 0;
    }

    .slideshow-wrapper {
        margin: 5% 10%;
        max-width: 80%;
    }

    .extracontent {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        text-align: center;
        padding: 10px;
        margin-bottom: 20px;
    }

    .logo1 {
        margin-left: 0%;
    }
}

@media screen and (max-width: 500px) {
    .header a {
        float: none;
        display: block;
        text-align: left;
    }

    .header-right {
        float: none;
    }
}

@media (max-width: 500px) {
    body {
        width: 100%;
    }

    .logo1 {
        margin-left: 0%;
    }

    .flex4 {
        flex-direction: column;
    }

    .minitxt1 {
        max-width: 80%;
        margin-left: 10%;
    }

    .mainimage {
        max-width: 80%;
        margin-left: 10%;
    }

    .flex {
        flex-direction: column;
    }

    .text1 {
        margin-left: 10%;
        max-width: 80%;
    }

    .flex2 {
        max-width: 100%;
    }

    .slideshow-wrapper {
        margin: 5% 10%;
    }

    .extracontent {
        flex-direction: column;
    }

    .part1 {
        max-width: 80%;
        margin-left: 10%;
    }

    .text1 {
        width: 90%;
    }

    footer {
        padding: 0%;
    }

    .dropbtn {
        text-align: left;
        width: 100%;
        display: block;
    }
}
