.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
}

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 75px;
    max-width: 100%; /* Neu hinzugefügt */
    text-align: center; /* Neu hinzugefügt */
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .menu {
        display: none;
    }

    .menu.open {
        display: flex;
        flex-direction: column;
    }

    .submenu {
        display: none;
    }

    .submenu.open {
        display: block;
    }

    nav ul.menu > li {
        display: none;
    }

    nav ul.menu.open > li {
        display: block;
    }
	

.logo-container img {
    max-height: 35px; /* Höhe des Logos auf kleinen Bildschirmen anpassen */
    width: auto; /* Breite automatisch anpassen */
}
	.logo-container {
        max-width: 66%; /* Reduziert die maximale Breite des Logo-Containers auf 66% */
    }
}

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

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #000;
}

.menu li:hover > a {
    background-color: #f2f2f2;
}

.submenu {
    list-style-type: none;
    position: absolute;
    display: none;
    margin-top: 10px;
    padding: 0;
    background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.submenu li {
    width: 100%;
}

.submenu li a {
    padding: 12px 16px;
}

.menu li:hover .submenu {
    display: block;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    position: relative;
    z-index: 1000;
	height: 70px; /* Höhe auf 100px festlegen */
}
.close-btn {
    background-color: transparent;
    border: none;
    color: black; /* Ändern Sie die Farbe hier */
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

/* For better accessibility on small devices */
@media screen and (max-width: 767px) {
    .close-btn {
        font-size: 32px;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    height: 22px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
}

.main-nav {
    display: flex;
    gap: 15px;
}

.nav-list {
    display: flex;
    gap: 15px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-list li a {
    text-decoration: none;
    color: black;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    position: relative;
    z-index: 1000;
}


.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    height: 22px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
}

.main-nav {
    display: flex;
    gap: 15px;
}

.nav-list {
    display: flex;
    gap: 15px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-list li a {
    text-decoration: none;
    color: black;
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .search-container {
        position: static;
        transform: none;
        margin-left: 15px;
    }
}

@media screen and (max-width: 768px) {
  .form-containerSearch {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
}


.search-container {
    order: -1;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.search-icon {
    cursor: pointer;
}

.fas {
    font-size: 24px;
}

.search-bar {
    display: none;
    position: relative;
    background-color: #3d93dc;
    border: 1px solid #ccc;
    padding: 6px;
    width: 260px;
    box-sizing: border-box;
    border-radius: 25px; /* Abgerundete Ecken hinzugefügt */
    margin-left: 10px; /* Suchfeld rechts neben der Lupe positioniert */
}

.search-bar input {
        font-size: 16px;
    padding: 6px 16px;
    padding-right: 45px;
    border: 1px solid #ccc;
    border-radius: 15px;
    width: 100%;
    max-width: 182px; /* Ändern Sie den max-width Wert auf 350px */
}
