/* Header */

header {
    height: 90px;
    position: relative;
    z-index: 4;
    top: 25px;
    font-size: 0.9em;
}


#block-topnavigation,
#block-kinderschutz-zentrum-berlin-topnavigation {
    /* background: rgba(0,67,136,0.56); */
    background: rgb(0,67,136);
    color: white;
}

#block-topnavigation > ul,
#block-kinderschutz-zentrum-berlin-topnavigation > ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    height: 45px;
    overflow: hidden;
}

#block-topnavigation > ul > li,
#block-kinderschutz-zentrum-berlin-topnavigation > ul > li {
    position: relative;
}

#block-topnavigation > ul > li:after,
#block-kinderschutz-zentrum-berlin-topnavigation > ul > li:after {
    content: "";
    width: 1px;
    height: 25px;
    position: absolute;
    top: 10px;
    right: 0;
    background: #3369a0;
}

#block-topnavigation > ul > li:hover:after,
#block-kinderschutz-zentrum-berlin-topnavigation > ul > li:hover:after {
    display: none;
}

#block-topnavigation > ul > li:last-child:after,
#block-kinderschutz-zentrum-berlin-topnavigation > ul > li:last-child:after {
    display: none;
}

#block-topnavigation > ul > li a,
#block-kinderschutz-zentrum-berlin-topnavigation > ul > li a {
    color: white;
    text-decoration: none;
    height: 45px;
    line-height: 45px;
    padding: 0 25px;
    display: block;
    font-weight: 400;
}

#block-topnavigation > ul > li a.foerdern-spenden,
#block-kinderschutz-zentrum-berlin-topnavigation > ul > li a.foerdern-spenden {
    color: black;
    background: url('../images/icon-kleeblatt.svg') no-repeat 15px center;
    background-size: 27px auto;
    background-color: var(--gelb);
    font-weight: 700;
    padding-left: 55px;
}

#block-topnavigation > ul > li a.foerdern-spenden:hover,
#block-kinderschutz-zentrum-berlin-topnavigation > ul > li a.foerdern-spenden:hover {
    background: url('../images/icon-kleeblatt-weiss.svg') no-repeat 15px center;
    background-color: var(--blau);
    background-size: 27px auto;
    color: white;
}

#block-topnavigation > ul > li a:hover,
#block-kinderschutz-zentrum-berlin-topnavigation > ul > li a:hover {
    background-color: white;
    color: black;
}

#block-hauptnavigation,
#block-kinderschutz-zentrum-berlin-hauptnavigation {
    background: white;
    color: black;
    height: 45px;
    overflow: hidden;
}

#block-hauptnavigation > ul,
#block-kinderschutz-zentrum-berlin-hauptnavigation > ul {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

#block-hauptnavigation > ul > li,
#block-kinderschutz-zentrum-berlin-hauptnavigation > ul > li {
    position: relative;
    align-self: stretch;
    flex: auto;
}

#block-hauptnavigation > ul > li:after,
#block-kinderschutz-zentrum-berlin-hauptnavigation > ul > li:after {
    content: "";
    width: 1px;
    height: 25px;
    position: absolute;
    top: 10px;
    right: 0;
    background: #cccccc;
}

#block-hauptnavigation > ul > li:hover:after,
#block-kinderschutz-zentrum-berlin-hauptnavigation > ul > li:hover:after {
    display: none;
}

#block-hauptnavigation > ul > li:last-child:after,
#block-kinderschutz-zentrum-berlin-hauptnavigation > ul > li:last-child:after {
    display: none;
}

#block-hauptnavigation > ul > li a,
#block-kinderschutz-zentrum-berlin-hauptnavigation > ul > li a {
    color: black;
    text-decoration: none;
    height: 45px;
    line-height: 45px;
    padding: 0 5px;
    text-align: center;
    display: block;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9em;
}

#block-hauptnavigation > ul > li a:hover,
#block-kinderschutz-zentrum-berlin-hauptnavigation > ul > li a:hover {
    background: var(--blau);
    color: white;
}

#block-topnavigation > ul > li a:focus-visible,
#block-kinderschutz-zentrum-berlin-topnavigation > ul > li a:focus-visible {
    outline: 4px solid #ffff00;
    outline-offset: -4px;
}

#block-topnavigation > ul > li a.foerdern-spenden:focus-visible,
#block-kinderschutz-zentrum-berlin-topnavigation > ul > li a.foerdern-spenden:focus-visible,
#block-hauptnavigation > ul > li a:focus-visible,
#block-kinderschutz-zentrum-berlin-hauptnavigation > ul > li a:focus-visible {
    outline: 4px solid #0000ff;
    outline-offset: -4px;
}

header .innerwidth > div {
	width: calc(100% - 160px);
	margin-left: 160px;
}

header .innerwidth > div.logo {
    width: 140px;
    height: 179px;
    background: url('../logo.svg') no-repeat center center;
    background-size: cover;
    text-indent: -9999px;
    position: absolute;
	top: 0;
	left: -160px;
}

header .innerwidth > div.logo a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

header .innerwidth > div.logo a:focus-visible {
    outline: 4px solid #0000ff;
}

#block-leichtesprache,
#block-kinderschutz-zentrum-berlin-leichtesprache {
    display: flex;
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
    align-self: flex-end;
}

#block-leichtesprache ul,
#block-kinderschutz-zentrum-berlin-leichtesprache ul {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding: 0;
    margin: 0;
    list-style: none;
    background: white;
}

#block-leichtesprache ul li,
#block-kinderschutz-zentrum-berlin-leichtesprache ul li {
    position: relative;
}

#block-leichtesprache ul li a,
#block-kinderschutz-zentrum-berlin-leichtesprache ul li a {
    color: black;
    text-decoration: none;
    padding: 7px 25px 7px 50px;
    box-sizing: border-box;
    display: block;
}

#block-leichtesprache ul li a:after,
#block-kinderschutz-zentrum-berlin-leichtesprache ul li a:after {
    content: "";
    width: 1px;
    height: 25px;
    position: absolute;
    top: 8px;
    right: -14px;
    background: #cccccc;
}

#block-leichtesprache ul li:last-child a:after,
#block-kinderschutz-zentrum-berlin-leichtesprache ul li:last-child a:after {
    content: initial;
}

#block-leichtesprache ul li a.gebaerdensprache,
#block-kinderschutz-zentrum-berlin-leichtesprache ul li a.gebaerdensprache {
    background: url('../images/icon-gebaerdensprache.svg') no-repeat left center;
    background-size: 40px auto;
}

#block-leichtesprache ul li a.leichte-sprache,
#block-kinderschutz-zentrum-berlin-leichtesprache ul li a.leichte-sprache {
    background: url('../images/icon-leichte-sprache.svg') no-repeat left center;
    background-size: 40px auto;
}

#block-leichtesprache ul li a.gebaerdensprache:hover,
#block-kinderschutz-zentrum-berlin-leichtesprache ul li a.gebaerdensprache:hover {
    background: rgb(0,67,136) url('../images/icon-gebaerdensprache-w.svg') no-repeat left center;
    background-size: 40px auto;
    color: white;
}

#block-leichtesprache ul li a.leichte-sprache:hover,
#block-kinderschutz-zentrum-berlin-leichtesprache ul li a.leichte-sprache:hover {
    background: rgb(0,67,136) url('../images/icon-leichte-sprache-w.svg') no-repeat left center;
    background-size: 40px auto;
    color: white;
}

.menu-trigger {
    display: none;
}

@media (min-width: 1580px) {
    header .innerwidth > div {
        width: 100%;
        margin-left: 0px;
    }

    header .innerwidth > div.logo {
        width: 170px;
        height: 220px;
        left: -200px;
    }
}

@media (max-width: 1024px) {
    header {
        z-index: 500;
        height: 0;
        overflow: visible;
    }
    
    header .innerwidth > div.region-header {
        position: fixed;
        top: 0px;
        left: 100vw;
        width: 100vw;
        height: auto;
        padding: 90px 20px;
        box-sizing: border-box;
        z-index: 9911;
        margin: 0;
        background: var(--gelb);
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: left 0.5s;
        overflow: auto;
    }

    header .innerwidth > div.region-header > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open header .innerwidth > div.region-header {
        left: 0;
    }

    header .innerwidth > div.logo {
        width: 70px;
        height: 100px;
        background: url('../logo.svg') no-repeat center center;
        background-size: cover;
        text-indent: -9999px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        transition: 0;
        margin: 0;
    }

    header .innerwidth > div.menu-trigger {
        position: fixed;
        width: 50px;
        height: 70px;
        background: var(--gelb);
        top: 5vw;
        right: 5vw;
        z-index: 99999999;
        display: block;
        left: inherit;
        transition: 0.5s;
        margin: 0;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
    }

    .menu-trigger:after {
        content: "Menü";
        position: absolute;
        left: 9px;
        bottom: 5px;
        font-size: 0.9em;
    }

    .menu-trigger span, 
    .menu-trigger span:before, 
    .menu-trigger span:after {
		content: "";
		position: absolute;
		top: 22px;
		left: 10px;
		background: black;
		width: 32px;
		height: 2px;
	}
	
	.menu-trigger span:before {
		top: -9px;
		transition: .3s;
		left: 0px;
	}
	
	.menu-trigger span:after {
		left: 0px;
		top: 9px;
		transition: 0.2s;
	}

	body.mobile-menu-open .menu-trigger {
		background: transparent !important;
        box-shadow: none !important;
	}
	
	body.mobile-menu-open .menu-trigger span {
		height: 0;
	}
	
	body.mobile-menu-open .menu-trigger span:before {
		transform: rotate(45deg);
		top: 0;
	}
	
	body.mobile-menu-open .menu-trigger span:after {
		transform: rotate(-45deg);
		top: 0;
	}
    
    #block-hauptnavigation,
    #block-kinderschutz-zentrum-berlin-hauptnavigation {
        background: transparent;
        height: auto;
        order: 1;
        margin-bottom: 5px; 
    }

    #block-topnavigation,
    #block-kinderschutz-zentrum-berlin-topnavigation {
        order: 2;
        background: transparent;
    }

    #block-leichtesprache,
    #block-kinderschutz-zentrum-berlin-leichtesprache {
        order: 3;
        margin-left: initial;
        margin-top: 25px;
        align-self: center;
    }

    #block-leichtesprache ul,
    #block-kinderschutz-zentrum-berlin-leichtesprache ul {
        background: transparent;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 17px;
    }

    #block-leichtesprache ul li a.gebaerdensprache,
    #block-kinderschutz-zentrum-berlin-leichtesprache ul li a.gebaerdensprache,
    #block-leichtesprache ul li a.gebaerdensprache:hover,
    #block-kinderschutz-zentrum-berlin-leichtesprache ul li a.gebaerdensprache:hover {
        background: transparent url('../images/icon-gebaerdensprache.svg') no-repeat left center;
        background-size: 40px auto;
        color: black;
    }

    #block-leichtesprache ul li a.leichte-sprache,
    #block-kinderschutz-zentrum-berlin-leichtesprache ul li a.leichte-sprache,
    #block-leichtesprache ul li a.leichte-sprache:hover,
    #block-kinderschutz-zentrum-berlin-leichtesprache ul li a.leichte-sprache:hover {
        background: transparent url('../images/icon-leichte-sprache.svg') no-repeat left center;
        background-size: 40px auto;
        color: black;
    }
    
    #block-topnavigation > ul,
    #block-kinderschutz-zentrum-berlin-topnavigation > ul,
    #block-hauptnavigation > ul,
    #block-kinderschutz-zentrum-berlin-hauptnavigation > ul {
        flex-direction: column;
        height: auto;
        text-align: center;
        gap: 5px;
    }
    
    #block-topnavigation > ul > li a,
    #block-kinderschutz-zentrum-berlin-topnavigation > ul > li a,
    #block-hauptnavigation > ul > li a,
    #block-kinderschutz-zentrum-berlin-hauptnavigation > ul > li a,
    #block-topnavigation > ul > li a:hover,
    #block-kinderschutz-zentrum-berlin-topnavigation > ul > li a:hover,
    #block-hauptnavigation > ul > li a:hover,
    #block-kinderschutz-zentrum-berlin-hauptnavigation > ul > li a:hover {
        font-weight: 700;
        font-size: 1.0em;
        color: black;
        text-transform: none;
        background: transparent;
        height: auto;
        line-height: 1.5;
    }

    #block-topnavigation > ul > li a.foerdern-spenden,
    #block-kinderschutz-zentrum-berlin-topnavigation > ul > li a.foerdern-spenden {
        background: transparent;
        padding: 0;
    }
    
}
