html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}


body {
    padding: 0;
    margin: 0;
    font-family: Arial;
    overflow-x: hidden;
    background-color: whitesmoke !important;
    overflow-y: visible;
    background: url(/Bilder/background-top.png) right top no-repeat, url(/Bilder/dots.png) no-repeat right 5%, url(/Bilder/mid-backgrd.png) no-repeat left,
        url(/Bilder/Rectangle.png) 100% 80% no-repeat, url(/Bilder/dots1.png) 100% 75% no-repeat;
}


.nav {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    height: 40px;
    width: 40px;
    margin-left: 12px;
}

.nav .nav-btn {
    margin-left: auto;
    margin-right: 12px;
}

.nav-btn {
    float: right;
}

#nav-link-btn {
    text-decoration: none;
    color: white;
}


#ask-now-btn {
    background: #008000;
    font-size: 12px;
    border-radius: 40px;
    width: 110px;
    height: 32px;
    right: 32px;
    color: #FFFFFF;
    border: none;
}



.header {
    justify-content: center;
    text-align: center;
}

.header h1 {
    font-family: Arial;
    font-size: 28px;
}

.header h2 {
    margin-top: -16px;
    font-family: Arial;
}

.grid-container {
    box-sizing: border-box;
    padding: 5%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 12px;
    grid-auto-flow: dense;

}

.grid-container>img:nth-child(1) {
    grid-column: 1/span 2;
}

.grid-container>img:nth-child(2) {
    grid-column: 1/span 2;
}

.grid-container>img:nth-child(5) {
    grid-column: 1/span 2;
}

.grid-container>img:nth-child(7) {
    grid-column: 1/span 2;
}

.grid-container>img:nth-child(6) {
    display: none;
}

.grid-container>img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    align-self: center;
    max-height: 80vi;
}

.mein-service {
    font-family: Arial;
    padding-left: 32px;
    padding-right: 32px;
}

.services {
    padding-left: 32px;
    padding-right: 32px;
}

#service-icons {
    width: 50px;
    height: 50px;
}

#tel-link {
    text-decoration: none;
    color: #000000;
}

#tel-link:hover {
    color: #008000;
}

#service-headers {
    margin-top: 8px;
    margin-bottom: 8px;
}

.about-me {
    padding-left: 32px;
}

#theme-headers {
    font-size: 2em;
    font-weight: bold;
}

#ueber-mich-img {
    margin-top: -20px;
    width: 8em;
    height: auto;
}

#about-me-heading {
    font-size: 1em;
    font-weight: bold;
}

.contact {
    padding-left: 32px;
}

#mailto-link {
    text-decoration: none;
    color: black;

}

#mailto-link:hover {
    color: #008000;
}

.request-div {
    padding-left: 32px;
    padding-right: 32px;
}

.request-form {
    padding-right: 32px;
}

.input {
    width: 100%;
    height: 3em;
    border: 1px solid lightgray;
    border-radius: 12px;
    padding-left: 12px;
}

.input-text {
    width: 100%;
    height: 6em;
    border: 1px solid lightgray;
    border-radius: 12px;
    padding-left: 12px;
    font-family: 'Arial';
    padding-top: 8px;
    line-height: 2;
}

.input-div {
    padding-bottom: 12px;
}

.send-btn {
    width: 60%;
    background-color: #008000;
    border: none;
    border-radius: 40px;
    height: 3em;
    color: #FFFFFF;
    font-size: 16px;
}


.footer {
    bottom: 0;
    background-image: url(Bilder/Wave.png);
    height: 15em;
    position: relative;
    margin-top: 32px;
}

.footer-container {
    margin: auto;
    position: relative;
    bottom: -70px;
    left: 12px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.footer-col {
    width: 40%;
    margin-bottom: 30px;
    padding-left: 12px;
}

.footer-col h4 {
    font-size: 18px;
    text-transform: capitalize;
    position: relative;
}

.footer-col div a {
    text-decoration: none;
    color: #000000;
}


.footer-col div a:hover {
    color: #008000;
}

.impr-links a {
    padding-right: 12px;
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
    color: #FFFFFF;
    background-color: #008000;
}

/* Impressum/Datenschutz-Config*/
.impressum-header {
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 12px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Stil für den Zurück-Button */
.zurueck-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0, 128, 0, 0.3);
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
}

.zurueck-button:hover {
    background-color: rgba(0, 128, 0, 1);
}

.zurueck-button img {
    margin-right: 5px;
    height: 32px;
    width: auto;
}

.zurueck-button span {
    font-size: 16px;
}


@media only screen and (min-width: 768px) {

    .nav {
        max-width: 1280px;
        margin: 0 auto;
    }

    .header {
        max-width: 1280px;
        margin: 0 auto;
    }

    .header h1 {
        font-family: Arial;
        font-size: 3em;
        font-style: bold;
    }

    .header h2 {
        margin-top: -30px;
        margin-bottom: -24px;
        font-size: 2em;
    }

    .grid-container {
        max-width: 1280px;
        margin: 0 auto;
        display: grid;
        grid-gap: 10px;
        grid-template-areas:
            "eins zwei zwei drei vier"
            "eins fünf sechs sechs sieben"
        ;
        justify-content: center;
        align-self: center;
    }

    .grid-container>img {
        border-radius: 24px;
        box-shadow: 2px 2px 3px 3px rgba(0, 0, 0, 0.2);
        height: auto;
        transition: transform .3s;
    }


    .grid-container>img:hover {
        transform: scale(1.3);
    }

    #item1 {
        grid-area: eins;
        min-width: 10rem;
    }

    #item2 {
        grid-area: zwei;
        align-self: flex-end;
        margin: 0 auto;
        max-width: 25rem;
    }


    #item3 {
        grid-area: drei;
        align-self: flex-end;
        margin: 0 auto;
    }


    #item4 {
        grid-area: vier;
        align-self: end;
    }


    #item5 {
        grid-area: fünf;
        display: block;
        min-width: 13em;
    }

    #item6 {
        grid-area: sechs;
        align-self: flex-start;
    }

    #item7 {
        grid-area: sieben;
        align-self: flex-start;
    }

    .mein-service {
        max-width: 1280px;
        margin: 0 auto;
    }


    .services {
        display: flex;
        justify-content: space-between;
        max-width: 1280px;
        margin: 0 auto;
    }

    .services>div {
        flex: 1;
        /* Alle inneren div-Elemente nehmen den verfügbaren Platz gleichmäßig ein */
        margin: 0 5px;
        /* Optional: Fügen Sie horizontalen Abstand zwischen den Elementen hinzu */
    }

    .service-icons-div {
        display: flex;
        justify-content: space-between;
    }

    .service-icons-div>div {
        flex: 1;
        /* Alle inneren div-Elemente nehmen den verfügbaren Platz gleichmäßig ein */
        margin: 0 5px;
        /* Optional: Fügen Sie horizontalen Abstand zwischen den Elementen hinzu */
    }

    .about-me {
        max-width: 1280px;
        margin: 0 auto;
    }

    .contact {
        max-width: 1280px;
        margin: 0 auto;
    }

    .request-div {
        max-width: 1280px;
        margin: 0 auto;
    }

    .request-form {
        display: flex;
        flex-direction: column;
    }

    .form-columns {
        display: flex;
        width: 100%;
    }

    .form-column {
        flex: 1;
        display: flex;
        flex-direction: column;
        margin-right: 32px;
    }

    .input-div {
        flex: 1;
    }

    .input-textarea {
        flex: 1;
    }

    .input-text {
        height: 16em;
    }

    .send-btn {
        width: 20%;
        margin-top: 1em;
    }

    .footer-container {
        max-width: 1280px;
        margin: 0 auto;
    }

    .footer-col {
        width: 25%;
    }


}