header,
nav {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

ul {
    list-style: none;
    margin: 0;
}





/* ========================================
   NEWS BAR
======================================== */

.news-bar {
    width: 100%;
    height: 26px;

    background-color: #6e6e6e;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: 0 40px 0 15px;

    font-size: 13px;
    line-height: 26px;
    text-align: center;

    position: relative;
    overflow: hidden;
}

.news-bar a,
.news-bar a:visited {
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap;
}

.news-bar a:hover {
    text-decoration: underline;
}


/* Schließen-X der Newsbar */

.news-bar-close {
    position: absolute;
    right: 8px;
    top: 50%;

    transform: translateY(-50%);

    width: 22px;
    height: 22px;

    padding: 0;
    margin: 0;

    border: 0;
    background: transparent !important;

    color: #fff !important;

    font-size: 18px;
    font-family: Arial, sans-serif;
    line-height: 22px;

    text-align: center;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;
}

.news-bar-close:hover {
    opacity: 0.6;
}

.news-bar.closed {
    display: none;
}


.site-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(10px);
}


/* Desktop-Hülle */
.desktop-header {
    width: 100%;
}


/* Inhalt */
.header-inner {

    width: 100%;
    max-width: 2100px;

    margin: 0 auto;

    padding: 0.7em 2%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}



/* Logo */

.logo img {

    display: block;

    width: 85px;
    height: auto;

}



/* Navigation */

.main-nav > ul {

    display: flex;

    align-items: center;

    gap: 2em;

    margin: 0;
    padding: 0;

    list-style: none;
}


.main-nav a {

    color: #1a1a1a;

    text-decoration: none;

    font-size: 0.857em;

    border-bottom: 1px solid transparent;

    padding-bottom: 3px;

}

.main-nav a:hover,
.main-nav a:focus {

    border-bottom: 1px solid #222;

}


/* Dropdown */

.dropdown {
    position: relative;
}

.dropdown::after {

    content: "";

    position: absolute;

    left: 0;

    top: 100%;

    width: 100%;

    height: 10px;

}

.dropdown-menu {
    display: none;

    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    min-width: 180px;

    margin: 0;
    padding: 0.8em 0;

    background: rgba(255,255,255,0.95);

    list-style: none;
}


.dropdown:hover > .dropdown-menu {
    display: block;
}


.dropdown-menu li {

    padding: 0.5em 1.5em;

}

.dropdown-menu a {
    white-space: nowrap;
}


/* ========================================
   ALTE NAV-KLASSEN
======================================== */

.nav {
    width: 100%;

    margin-left: auto;
    margin-right: auto;

    z-index: 12;
}

.nav__list {
    width: 100%;

    padding: 0;
    margin: 0;
}

.nav__item {
    box-sizing: border-box;

    display: inline-block;

    width: 24%;

    text-align: center;

    line-height: 24px;

    padding: 0.5em;

    font-size: 0.857em;
}

.nav a {
    text-decoration: none;

    color: #1a1a1a;

    padding: 1.5em;
}

.nav a:hover,
.nav a:active {
    color: #1a1a1a;
}


/* ========================================
   MOBILE UNTERMENÜ – ALTE KLASSEN
======================================== */

.nav__submenu {
    display: none;

    margin: 0;
    padding: 0;
}

.nav__item--agentur.open .nav__submenu {
    display: block;
}

.nav__submenu li {
    list-style: none;

    margin: 0;
    padding: 0;
}

.nav__submenu a {
    display: block;

    padding-left: 3em;
}


/* ========================================
   HAMBURGER
======================================== */


.mobile-header__inner {
    height: 54px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 12px;
}


.menu-toggle {
    width: 40px;
    height: 40px;
	position: relative;
    flex: 0 0 40px;

    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.menu-toggle span {
    position: absolute;

    left: 6px;

    width: 28px;
    height: 1px;

    background: #222;

    transform-origin: center center;

    transition:
        transform 0.25s ease,
        top 0.25s ease;
}


/* ========================================
   HAMBURGER – GESCHLOSSEN
======================================== */

.menu-toggle span:first-child {
    top: 16px;
}

.menu-toggle span:last-child {
    top: 24px;
}


/* ========================================
   HAMBURGER – GEÖFFNET / X
======================================== */

.menu-toggle.is-open span:first-child {
    top: 20px;

    transform: rotate(45deg);
}

.menu-toggle.is-open span:last-child {
    top: 20px;

    transform: rotate(-45deg);
}


/* ========================================
   MOBILE MENU OPEN
======================================== */

body.menu-open .site-header {
    background: transparent;

    /*
     * Wichtig:
     * Der Header bleibt über dem Fullscreen-Menü,
     * damit der Hamburger anklickbar bleibt.
     */
    z-index: 10000;
}

body.menu-open .logo {
    color: #222;
}

body.menu-open .menu-toggle span {
    background: #222;
}


/* ========================================
   FULLSCREEN MOBILE MENU
======================================== */

.fullscreen-menu {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    background: #f5f4f6;

    color: #222;

    z-index: 9998;

    display: none;

    flex-direction: column;
}

.fullscreen-menu.is-open {
    display: flex;
}


/* ========================================
   MOBILE HEADER IM FULLSCREEN MENU
======================================== */


.fullscreen-menu .header__inner {
    position: relative;

    height: 54px;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: flex-start;
}

.fullscreen-menu .header__nav {
    margin: 0;
    padding: 0;
}

.fullscreen-menu .header__nav__item1 {
    padding: 0;
    margin: 0;
}

.fullscreen-menu .logo {
    display: block;

    margin-left: 12px;
}

.fullscreen-menu .logo img {
    display: block;

    width: 85px;
    height: auto;
}


/* ========================================
   MOBILE NAVIGATION
======================================== */

.menu-navigation {
    margin-left: 12px;
    margin-top: 16vh;

    display: flex;

    flex-direction: column;

    gap: 1rem;
}

.menu-navigation a,
.mobile-work-toggle {
    color: #222;

    text-decoration: none;

    font-size: 1.4rem;
    font-weight: 400;

    line-height: 1.1;

    padding: 0;
    margin: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    text-align: left;
}

.menu-navigation a:hover,
.mobile-work-toggle:hover {
    color: #000;
}


/* ========================================
   MOBILE WORK SUBMENU
======================================== */

.mobile-work-submenu {
    display: none;

    flex-direction: column;

    margin-left: 1rem;

    padding-top: 1rem;
    padding-bottom: 1rem;

    gap: 1.25rem;
}

.mobile-work-submenu.is-open {
    display: flex;
}

.mobile-work-submenu a {
    font-size: 1rem;
}


/* ========================================
   MOBILE FOOTER
======================================== */

.mobile-menu-footer {
    margin-top: auto;

    padding-left: 12px;
    padding-bottom: 35px;

    font-size: 0.8rem;
}

.mobile-menu-footer a {
    color: #222;

    text-decoration: none;
}

.footer-social,
.footer-legal {
    display: flex;

    gap: 15px;
}

.footer-social {
    margin-bottom: 12px;
}

.footer-legal {
    margin-bottom: 25px;
}

.mobile-menu-footer p {
    margin: 0;

    color: #222;

    opacity: 0.6;
}


/* ========================================
   MOBILE – BIS 610px
======================================== */

@media screen and (max-width: 610px) {

	.desktop-header {
        display: none;
        }

    /* Desktop-Navigation ausblenden */
    .logo__mit__navi {
        display: none;
    }
    
    .header__inner {
        position: relative;
    }


    .menu-toggle {
        width: 40px;
        height: 40px;
    }




     .header__inner {
        position: relative;

        width: 100%;
        height: 54px;

        padding: 0;

        display: flex;

        align-items: center;

        justify-content: flex-start;
    }

    .header__nav {
        margin: 0;
        padding: 0;
    }

    .header__nav__item1 {
        padding: 0;
        margin: 0;
    }

    .logo {
        display: block;

        margin-left: 12px;
    }

    .logo img {
        display: block;

        width: 85px;
        height: auto;
    }

}


/* ========================================
   611px – 849px
======================================== */

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

    .desktop-header {
        display: block;
        }

    .menu-toggle {
        display: none;
    }

    .mobile-header {
        display: none !important;
    }

    .nav {
    	display: none;
	}
    
    .header__nav {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header__nav__item1,
    .header__nav__item2 {
        display: flex;
        align-items: center;
    }

    .header__nav__item1 {
        padding-right: 1.2em;
    }

    .logo {
        display: block;
        width: 85px;
        height: auto;
    }
}


/* ========================================
   850px+
======================================== */

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



    .nav {
        display: none;

        width: 100%;

        position: relative;

        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }

    .nav__list {
        width: 100%;

        padding: 0;
        margin: 0;
    }

    .nav__item {
        box-sizing: border-box;

        display: block;

        float: left;

        width: 23%;

        text-align: center;

        line-height: 1rem;

        padding: 0.5em;

        font-size: 0.857rem;
    }
}


.header__inner,
.nav {
    width: 100%;
    max-width: 2100px;
    margin-left: auto;
    margin-right: auto;
}

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

    .fullscreen-menu {
        display: none !important;
    }

}

