/* Responsive Menu - Desktop */
@media (min-width: 600px) {
    .navcontainer {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        background-color: #f9f9f9;
        padding: 10px 20px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    .mytitle {
        padding-right: 2%;
        color: #3c3c3c;
    }

    header {
        border-bottom: #ddd 1px solid;

    }

    .logo img {
        height: 40px;
        margin-right: 10px;
    }

    .ulnav {
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .ulnav li {
        margin-right: 20px;
    }

    .ulnav a {
        text-decoration: none;
        font-weight: bold;
    }

    .ulnav a:hover {
        color: #555;
    }

    .container {
        width: 90%;
        margin: auto;
        overflow: hidden;
    }
}

/* Responsive Menu - mobile*/
@media (max-width: 600px) {
    .navcontainer {
        background-color: #f9f9f9;
        padding: 10px 20px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .mytitle {
        padding-right: 2%;
        color: #3c3c3c;
        width: 50%;
        margin-right: 25%;
        margin-left: 25%;
        
        display: none;
    }
    header {
        border-bottom: #ddd 1px solid;

    }

    .logo img {
        width: 50%;
        margin-right: 25%;
        margin-left: 25%;
    }

    .ulnav {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;      
        text-align: center;
        white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    }

    .ulnav li {
        margin-right: 20px;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .ulnav a {
        text-decoration: none;
        font-weight: bold;
    }

    .ulnav a:hover {
        color: #555;
    }
    h2{
        text-align: center;
    }
    
    .container{
        width: 80%;
        margin-right: 10%;
        margin-left: 10%;
        text-align: center;
    }

    
    p{
        width: 80%;
        margin-right: 10%;
        margin-left: 10%;
        text-align: center;
    }

    .placeholder {
        height: 100px;
    }

}


/* Globale Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
}

.pic1 {
    overflow: hidden;
    height: 300px;
    padding-top: 2%;
}

.pic1img {
    height: 100%;
    object-fit: "scale-down";
    margin-left: 20%;
}



.logo {
    display: flex;
    align-items: center;
    padding-right: 1%;
}

a {
    color: inherit;
    text-decoration: none;
}




.logo h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    color: #333;
    margin-right: 20px;
}






.location {
    margin-bottom: 40px;
}

.location h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.location p {
    color: #666;
    line-height: 1.8;
}

.sub-heading {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #555;
}

footer {

    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 3em;
}

/* Kontaktformular */
#contact {
    padding: 50px 0;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

#contact textarea {
    height: 200px;
}

#contact button[type="submit"] {
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#contact button[type="submit"]:hover {
    background-color: #555;
}

#contact input[type="text"]::placeholder,
#contact input[type="email"]::placeholder,
#contact textarea::placeholder {
    color: #999;
}

/* Projekte */
#projects {
    padding: 50px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
}

.project {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
}

.project img {
    width: auto;
    height: 260px;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.project h3 {
    padding: 15px;
    margin: 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.selectedNav {
    color: black;
}

.notselectedNav {
    color: #747474;
}

.placeholder {
    padding-bottom: 10%;
}