body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #333;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main {
    /*height: auto; /* Entferne feste Höhe, um natürlichen Fluss zu ermöglichen */
    width: 100%;
    background-image: url(../img/adrien-olichon-gOdavfpH-3s-unsplash.jpg);
    background-size: cover;
    padding-bottom: 200px; /* Platz für die Boxen */
}

.space {
    height: auto;
}

.company {
    color: black;
    height: auto;
    background-color: rgba(255, 255, 255, 0.7);
    margin: 5% 0 0 6%;
    padding: 25px;
    width: 35%;
    /*min-width: 223px;*/
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.company h1 {
    margin: 0;
    font-size: 2em;
}

.company p {
    margin: 10px 0 0;
    font-size: 1.1em;
}

/* Desktop Navbar (Default: Visible) */
.desktop-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.desktop-nav li {
    padding: 10px 20px;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #00bcd4;
}

/* Mobile 9-Dot Button (Default: Hidden) */
.menu-btn {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
}

/* Mobile Sidebar Menu (Default: Hidden) */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #222;
    transition: left 0.3s ease-in-out;
    padding-top: 50px;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    padding: 15px;
    text-align: center;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

.mobile-nav a:hover {
    background: #444;
}

#logo {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 150px;
}

/* Main-2 Box Styling */
.main-2 {
    width: 80%;
    margin: 20px auto; /* Zentriert die Boxen und fügt Abstand zum oberen Inhalt */
    padding: 20px;
    background: rgba(255, 255, 255, 0.9); /* Leichte Transparenz für besseren Kontrast */
    border-radius: 15px;
    margin-top: -100px;
    min-width: 750px;
}

.boxes {
    display: flex;
    justify-content: space-between;
    gap: 4%; /* Abstand zwischen den Boxen */
    margin: 0 auto;
}

.box {
    background: rgba(255, 255, 255, 1); /* Volle Deckkraft für die Boxen */
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    width: 30%;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.box img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.box p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #333;
}

/* About Section */
.about {
    padding: 40px 10%;
    text-align: center;
    background: #f9f9f9;
}

.about h2 {
    color: #333;
    font-size: 2em;
}

.about p {
    font-size: 1.1em;
    color: #666;
}

.about-img {
    max-width: 50%;
    height: 200px;
    margin-top: 20px;
    border-radius: 10px;
}

/* Services Section */
.services {
    padding: 40px 10%;
    background: #fff;
}

.services h2 {
    color: #333;
    font-size: 2em;
    text-align: center;
}

.services ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.services li {
    background: #e0e0e0;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    color: #333;
    box-sizing:border-box;
}

/* Contact Section */
.contact {
    padding: 40px 10%;
    background: #333;
    color: white;
    text-align: center;
}

.contact .resp_message {
	display:none;
	flex-direction: column;
	max-width: 400px;
	margin: 20px auto;
}

.contact h2 {
    font-size: 2em;
}

.contact p {
    font-size: 1.1em;
    margin: 10px 0;
}

.contact form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 20px auto;
}

.contact input, .contact textarea {
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.contact button {
    padding: 10px;
    background: #00bcd4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background: #0097a7;
}

#impressum {
	margin: 10px;
}

/* Footer */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
}

#about:target{ padding-top:80px; margin-top:-80px; }
#home:target{ padding-top:80px; margin-top:-80px; }
/*#services:target{ padding-top:80px; margin-top:-80px; }
#contact:target{ padding-top:80px; margin-top:-80px; }*/

/* Responsive Rules */
@media screen and (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .company {
        width: fit-content;
        margin: 5% 2% 0 2%;
    }
    .main-2 {
        width: 70%;
        min-width: 0
    }
    .boxes {
        flex-direction: column;
        align-items: center;
    }
    .box {
        width: 80%;
        margin-bottom: 20px;
    }
    .about-img {
        max-width: 100%;
    }
    .services ul {
        flex-direction: column;
        align-items: center;
    }
    .services li {
	width:90%;
	padding:5px 10px;
	text-align:center;
    }
    #logo {
        max-height: 40px;
        max-width: 120px;
    }
}
