/* debug */
/* theme */

body {
    -webkit-font-smoothing: subpixel-antialiased;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 14px;
    background: #FFFFFF;
}
a {
    text-decoration: none;
    color: #000;
}
a img {
    border: 0;
}
div.mobil {
    display: none;
}
div.site {
    width: 988px;
    margin: 0 auto 0 auto;
    padding: 0 10px;
    min-height: calc(100vh - 9.3em);
}
div.section {
    clear: both;
    padding: 0;
    margin: 0 0 20px 0;
}
.span4of4 {
    width: 988px;
}
.span3of4 {
    width: calc(75% - 0.5em);
}
.span2of4 {
    width: calc(50% - 0.5em);
}
.span1of4 {
    width: calc(25% - 0.5em);
}
button {
    cursor: pointer;
}
.aligncenter {
    text-align: center;
    clear: both;
    display: block;
    margin: auto;    
}
figure {
    background: #f2f2f2;
    padding: 0.75em;
}
/* kopf */

.headnav, .logorow, .menuerow {
    width: 100%;
}
div.headnav {
    position: relative;
    color: #878787;
    margin-top: 1em;
}
div.logorow a.home-link {
    float: left;
}
div.logorow a.home {
    float: right;
}
div.logorow a.home-link h2 {
    font-size: 1.8em;
    font-weight: 200;
    margin: 0 0 0.25em 0;
}
div.logorow a.home-link h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 0.75em 0;
}
.blink {
    animation: blink-animation 20s steps(50, start) infinite;
    -webkit-animation: blink-animation 20s steps(50, start) infinite;
}

.klar {
    float: right;
}
form.search-form {
    
}
div.breadcrumb {
    margin-bottom: 0.25em;   
}
div.breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .7em;
    color: #878787;
    text-transform: uppercase;
}
div.breadcrumb li {
    display: inline-block;
    margin-right: 1.6em;
}
div.breadcrumb li:not(:first-child):before {
    content: '';
    width: 10px;
    height: .9em;
    background-image: url(../img/pfeilsprite2.png);
    background-position: -1217px -12px;
    background-repeat: no-repeat;
    display: inline-block;
}
div.breadcrumb li a {
    color: #878787;
    text-decoration: none;
}
header {
    clear: both;
    margin-bottom: 1em;
}
header.fixed {
    position: fixed;
    background: #FFFFFF;
    z-index: 100;
    border-top: 1px solid #fff;
    float: left;
    width: 988px;
}
div.suchbutton {
    cursor: pointer;
    background-position: -576px 2px;
    float: left;
    height: 15px;
    width: 20px;
    background-image: url(../img/pfeilsprite2.png);
    background-repeat: no-repeat;
    padding: 5px 0 5px 5px;
}
div.suchbutton.active {
    background-position: -606px 2px;
    background-color: #e50046;
}
div.search_form_wrapper {
    display: none;
    position: absolute;
    top: 2em;
    box-shadow: 2px 2px 2px #ccc;
    height: 3em;
    background-color: #fff;  
    padding-top: 1em;
}
div.search_form_wrapper form {
    display: block;            
}
input.search-field {
    float: left;
    padding: 0.25em 0.5em;
    border: 1px solid #f2f2f2;
    background-color: #f2f2f2;
    min-width: 300px;
}
div.search_form_wrapper button {
    border: none;
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;
    background: #ccc;
    position: relative;
    right: -3px;
    padding: 0.25em 1em;
    margin-left: 10px;
    float: right;
    z-index: 100;
}
div.search_form_wrapper button:after {
    content: '';
    bottom: -5px;
    right: 0;
    border-color: transparent #90908f;
    border-style: solid;
    border-width: 0 0 5px 3px;
    position: absolute;
}
/* main */
ul.nav-menu * ul.sub-menu {
    display: none;
}
/* banner */

div.banner {
    height: 400px;
    width: 988px;
    margin-bottom: 1.5em;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
}
div.banner:before {
    content: '';
    width: 5px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e50046;
}
div.banner div.desc {
    width: calc(100% - 4em);    
    background-color: rgba(255,255,255,.9);
    position: absolute;
    bottom: 0;
    margin: 1em;
    padding: 1em;
    z-index: 600;
}
div.banner div.desc h2 {
    font-size: 1.75em;
    margin: 0 0 0.75em 0;
}
div.banner div.desc h3 {
    font-weight: 400;
    margin: 0 0 0.5em 0;
}
/* main */
div.site-main {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
div.site-main div#primary {
    width: 100%;
}
div.site-main.sidebar div#primary {
    width: 75%;
}
div.site-main div#tertiary{
    width: 25%;
}
div.site-main h1.entry-title,
div.site-main h1.archive-title{
    font-size: 1.6em;
    margin: 0;
    margin-bottom: 0.5em;
}
div.entry-header {
    margin-top: 1em;
}
div.entry-header i,
article.comment-body i {
    color: #e50046;
}
div.entry-header h2 {
    font-size: 1em;
    margin: 0;
    font-weight: 600;
}
div.entry-content {
    font-weight: 300;
}
div.entry-content a {
    color: #5f5e5e;
}
div.entry-content a {
    color: #5f5e5e;
    text-decoration: underline;
}
div.entry-content h1 {
    font-size: 1.4em;
}
div.entry-content h2 {
    font-size: 1.35em;
}
div.entry-content h3 {
    font-size: 1.25em;
    line-height: 1.5em;
    font-weight: 400;
    margin: .5em 0 .2em 0;
}
div.entry-content h4 {
    line-height: 1.5em;
    font-size: .8em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
}
div.entry-content p {   
    margin: 0 0 .6em;
}
div.entry-content hr {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    border: 0;
    width: 100%;
    height: 1px;
    border-top: #878787 dotted 1px;
    color: #FFFFFF;
    background-color: #FFFFFF;
    margin-left: 0;
}
div.entry-content img {
    max-width: 736px;
}
div.entry-footer {
    padding: 0.5em;
    border-top: 1px dotted #878787;
}
div#tertiary aside {
    margin: 0 0 1em 1em;
    background: #f2f2f2;
    padding: 0.75em;
}
div#tertiary aside table {
    margin: auto;
}
nav.paging-navigation {
    background: #f2f2f2;
    padding: 0.5em 0;
    height: 2em;
    width: calc(100% - 6px);
    margin: auto;
}
nav.paging-navigation div.nav-links div {
    background: #CCCCCC;
    padding: 0.25em 1em;
    position: relative;
    display: inline-block;  
}
nav.paging-navigation div.nav-links div:before {
    content: '';
    bottom: -5px;
    border-style: solid;
    position: absolute;
}
nav.paging-navigation div.nav-links div.nav-previous {
    float: left;
    -webkit-border-radius: 0 5px 5px 0;
    -moz-border-radius: 0 5px 5px 0;
    border-radius: 0 5px 5px 0;
    margin-left: -3px;   
}
nav.paging-navigation div.nav-links div.nav-previous:before {
    left: 0;
    border-color: #90908f transparent;
    border-width: 5px 0 0 3px;
}
nav.paging-navigation div.nav-links div.nav-next {
    float: right;
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;
    margin-right: -3px;
}
nav.paging-navigation div.nav-links div.nav-next:before {
    right: 0;
    border-color: transparent #90908f;
    border-width: 0 0 5px 3px;
}

/* comments */
nav.post-navigation {
    background: #f2f2f2;
    padding: 0.5em 0;
    height: 2em;
    width: calc(100% - 6px);
    margin: auto;
}
nav.post-navigation div.nav-links {
    
}
nav.post-navigation div.nav-links a {
    background: #CCCCCC;
    padding: 0.25em 1em;
    position: relative;
}
nav.post-navigation div.nav-links a span.meta-nav {
    width: 1em;
    display: inline-block;    
}
nav.post-navigation div.nav-links a:before {
    content: '';
    bottom: -5px;
    border-style: solid;
    position: absolute;
}
nav.post-navigation div.nav-links a[rel="prev"] {
    float: left;
    -webkit-border-radius: 0 5px 5px 0;
    -moz-border-radius: 0 5px 5px 0;
    border-radius: 0 5px 5px 0;
    margin-left: -3px;   
}
nav.post-navigation div.nav-links a[rel="prev"]:before {
    left: 0;
    border-color: #90908f transparent;
    border-width: 5px 0 0 3px;
}
nav.post-navigation div.nav-links a[rel="next"] {
    float: right;
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;
    margin-right: -3px;
}
nav.post-navigation div.nav-links a[rel="next"]:before {
    right: 0;
    border-color: transparent #90908f;
    border-width: 0 0 5px 3px;
}
nav.post-navigation div.nav-links a[rel="next"] span.meta-nav {
    text-align: right;
}
div.comments-area {
    /*background: #f2f2f2;
    padding: 0.5em;*/
}
div.comments-area h2.comments-title {
    font-size: 1.25em;
    font-weight: 400;
    font-style: italic;
}

div.comments-area article.comment-body {
    border-bottom: 1px dotted #878787;
    padding: 0.5em 0.5em 1em 0.5em;
}
div.comments-area article.comment-body h3 {
    margin: 0;
}
div.comments-area article.comment-body a.comment-permalink {
    font-size: .8em;
    text-transform: uppercase;
    font-weight: 600;
    color: #878787;
}
div.comments-area article.comment-body div.reply {
    float: right;
}
div.comment-respond {
    background: #f2f2f2;
    padding: 1.5em;
    position: relative;
    margin-top: -1px;
}
div.comments-area ol.comment-list, 
div.comments-area ol.children {
    list-style: none;    
}
div.comments-area ol.comment-list {
    margin: 0;
    padding: 0;
}
div.comment-respond h3.comment-reply-title {
    margin: 0;
}
div.comment-respond h3.comment-reply-title small a {
    display: inline-block;
    float: right;
    height: 2em;
    overflow: hidden;
    width: 1.25em;
    margin-top: -0.25em;
}
div.comment-respond h3.comment-reply-title small a:before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 200;
    font-size: 2em;
}
div.comment-respond p.comment-notes,
div.comment-respond p.logged-in-as {
    font-style: italic;
}
div.comment-respond p.comment-notes a {
    text-decoration: underline;
}
div.comment-respond label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25em;
}
div.comment-respond textarea {
    font-family: 'Open Sans', sans-serif;
    display: block;
    width: calc(100% - 2em);;
    padding: .375rem .75rem;    
    line-height: 1.5;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
}
div.comment-respond input {
    font-family: 'Open Sans', sans-serif;
    display: block;
    width: calc(100% - 2em);;
    padding: .375rem .75rem;    
    line-height: 1;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
}
div.comment-respond p.form-submit {
    margin-bottom: 2em;
}
div.comment-respond button.comment {
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;
    margin-right: -3px;
    font-weight: 600;
    background: #CCCCCC;
    border: none;
    padding: 0.4em 2em 0.4em 1em;
    position: absolute;
    right: 0;
} 
div.comment-respond button.comment i {
    margin-right: 0.5em;
}
div.comment-respond button.comment:after {
    content: '';
    bottom: -5px;
    border-style: solid;
    position: absolute;
    right: 0;
    border-color: transparent #90908f;
    border-width: 0 0 5px 3px;
    
}
/* not single */
div.teaser-container {
    display: flex;
    flex-wrap: wrap;
    padding-left: 15px;    
    position: relative;
    margin-bottom: 30px;
}
div.teaser-container:before {
    content: '';
    width: 5px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e50046;    
}
div.teaser-container:after {
    content: '';
    border-bottom: 1px dotted #c6c6c6;
    display: block;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -15px;
}
div.teaser-container i.fas,
div.teaser-container i.far {
    color: #e50046;
}
div.teaser-container div.teaser-thumbnail {
    margin-right: 15px;
    flex: 0 0 200px;
}
div.teaser-container div.teaser-content {
    flex: 1 1 calc(100% - 215px);
}
div.teaser-container span.featured-post {
    display: none;
}
div.teaser-container div.teaser-meta {
    font-size: .8em;
    text-transform: uppercase;
    font-weight: 600;        
}
div.teaser-container div.teaser-meta a {
    color: #878787;
}
div.teaser-container h2.teaser-title {
    margin: 0 0 .2em 0;
    font-size: 1.35em;    
}
div.teaser-container div.teaser-summary a.more {
    white-space: nowrap;
    font-weight: 600;
}
div.teaser-container div.teaser-summary a.more:before {
    content: '';
    width: 10px;
    height: .9em;
    background-position: -315px -6px;
    display: inline-block;
    background-image: url(../img/pfeilsprite2.png);
    background-repeat: no-repeat;
}
div.teaser-container div.teaser-footer {
    flex: 0 0 100%;
}
div.teaser-container div.teaser-footer span.categories-links,
div.teaser-container div.teaser-footer span.tags-links {
    font-style: italic;
    font-size: 0.9em;
    margin-left: 0.2em;
}
div.teaser-container div.teaser-footer span.categories-links i,
div.teaser-container div.teaser-footer span.tags-links i{
    margin: 0 0.2em;
    font-size: 0.9em;
}
div.teaser-container div.teaser-footer span.categories-links a
div.teaser-container div.teaser-footer span.tags-links a {
    margin-right: 0.2em;
}
div.teaser-container div.teaser-footer span.categories-links a:hover
div.teaser-container div.teaser-footer span.tags-links a:hover {
    text-decoration: underline;
    color: #CCCCCC;
    transition: 0.5s ease;
}
div.teaser-container div.teaser-footer div.comments-link,
div.entry-header div.entry-meta div.edit-link {
    float: right;
}
div.teaser-container div.teaser-footer div.comments-link i,
div.entry-header div.entry-meta div.edit-link i,
div.comment-header a.comment-reply-link i {
    position: relative;
}
div.teaser-container div.teaser-footer div.comments-link i span,
div.entry-header div.entry-meta div.edit-link i span,
div.comment-header a.comment-reply-link i span {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    background: #e50046;
    color: #FFFFFF;
    position:  absolute;
    bottom: 0;
    right: -4em;
    padding: 0.5em 0.75em;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    transition: all .4s;    
    border-radius: 0.25em;
    width: 8em;
    line-height: 1.2em;
}
div.teaser-container div.teaser-footer div.comments-link i:hover span,
div.entry-header div.entry-meta div.edit-link i:hover span,
div.comment-header a.comment-reply-link i:hover span {
    bottom: 2em;
    visibility: visible;
    opacity: 1;
}
div.teaser-container div.teaser-footer div.comments-link i span:before,
div.entry-header div.entry-meta div.edit-link i span:before,
div.comment-header a.comment-reply-link i span:before {
  content: '';
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #e50046;
  position: absolute;
  bottom: -5px;
  left: 4.5em;
}
/* author */
div.author-info {
    display: flex;
    flex-wrap: wrap;
    background-color: #f2f2f2;
    padding: 1em;
    position: relative;
    margin-bottom: 1em;
}
div.author-info div.author-avatar {
    margin-right: 15px;
    flex: 0 0 100px;
}
div.author-info div.author-avatar img {
    border-radius: 10em;
    width: 8em;
    height: 8em;
}
div.author-info div.author-description {
    flex: 1 1 calc(100% - 215px);
    margin-bottom: 1em;
}
div.author-info div.author-description h3 {
    margin: 0;
}
div.author-info div.author-more {
    position: absolute;
    background: #ccc;
    right: -0.25em;
    bottom: 0.5em;
    padding: 0.25em 1em;
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;    
}
div.author-info div.author-more a {
    font-weight: 600;
}
div.author-info div.author-more span.meta-nav {
    width: 1em;
    display: inline-block;    
    text-align: right;
}
div.author-info div.author-more:after {
    content: '';
    right: 0;
    bottom: -5px;
    border-color: transparent #90908f;
    border-style: solid;
    border-width: 0 0 5px 3px;
    position: absolute;
}
/* sidebar */
aside#category-list,
aside#author {
    padding: 1em;
}
aside.widget h3 {
    margin: 0 0 0.75em 0;
    padding: 0;
}
aside.widget h4 {
    margin: 0;
    padding: 0;
}
aside.widget ul {
    margin: 0;
    padding-left: 1.75em;
}
aside#category-list ul.post-categories {
    list-style: none;
    margin:0;
    padding: 1em 0 0 1em;
}
aside#category-list ul.post-categories li {
    margin-bottom: .5em;
    padding-left: 0.5em;
    position: relative;
}
aside#category-list ul.post-categories li:before {
    content: '';
    width: 15px;
    height: 10px;
    background-position: -315px -10px;
    background-image: url(../img/pfeilsprite2.png);    
    background-repeat: no-repeat;
    left: -15px;
    position: absolute;
    top: .3em;
}
aside#author a {
    margin-left: 0.25em;
}
div#calendar_wrap a {
    color: #e50046;
    font-weight: 600;
}
/* footer */

footer.site-footer:not(:empty) {
    margin-top: 60px;
    padding: 20px 0 50px 0;
    clear: both;
    border-top: 1px dotted #878787;
    position: relative;    
}
footer.site-footer div.sidebar-container aside.widget {
    margin-bottom: 2em;
}
footer.site-footer div.sidebar-container aside.widget a,
footer.site-footer div.sidebar-container aside.widget h3,
footer.site-footer div.sidebar-container aside.widget li {
    color: #878787;    
}
footer.site-footer div.sidebar-container aside.widget h3 {
    margin: 0;
    font-weight: normal;
    min-height: 1.35em;    
    padding-bottom: 10px;
}   
footer.site-footer div.sidebar-container ul {
    list-style: none;
    margin: 0;
    padding: 0;    
}
footer.site-footer div.sidebar-container ul li {
    font-size: .95em;
    padding-bottom: 5px;
}
div#foot {
    margin: 20px 0 50px 0;
}
div#foot div.widget-area {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch;    
}
div#foot div.widget-area aside {
    flex: 1 1 20%;
    margin-right: 1em;
}
div#foot div.widget-area aside h3 {
    color: #878787;
    font-weight: 300;
    margin: 0 0 1em 0;    
}
div#foot div.widget-area aside ul {
    list-style: none;
    margin: 0;
    padding: 0;        
}
div#foot div.widget-area aside ul li {
    padding-bottom: 0.5em;
}
div#foot div.widget-area aside ul li a {
    color: #878787;
}
/* seitenende */

div.seitenende {
    width: 100%;
    background-color: #878787;
    clear: both;
    padding: 1em 0;
    min-height: 4em;
}
div.seitenende div.content {
    margin: 0 auto;
}
div.seitenende div.content a {
    color: #fff;
    margin-right: 20px;
}
div.main, div.complementary {
    float: left;
}
div.seitenende div.complementary {
    margin-left: 1em;
}
.mobil.changecss {
    margin-top: 1em;
}
.totop, .changecss {
    float: right;
    clear: right;
    position: relative;
    cursor: pointer;
}
.mobil.changecss:before, .desktop.changecss div span:after {
    float: left;
    position: relative;
    content: '';
    background-position: -538px 2px;
    width: 30px;
    height: 18px;
    background-image: url(../img/pfeilsprite2.png);
    background-repeat: no-repeat;
}
@media only screen and (min-width: 780px) {
    /* menu */
    div.navbar {
        border-top: 1px dotted #000;
    }
    header.fixed div.navbar {
        border-top: none;
        box-shadow: 0 2px 6px #666;
    }
    header.fixed:before, 
    header.fixed:after {
        content: '';
        bottom: 0;
        border-color: #fff;
        border-style: solid;
        border-width: 5px;
        position: absolute;
        height: 100%;
        background-color: #fff;
        z-index: 1001;
    }
    header.fixed:before {
        left: -10px;
    }
    header.fixed:after {
        right: -10px;
    }
    header.fixed div.navbar:before,
    header.fixed div.navbar:after {
        content: '';
        bottom: -3px;
        border-color: transparent #90908f;
        border-style: solid;
        position: absolute;
        z-index: 999;
    }
    header.fixed div.navbar:before {    
        border-width: 0 4px 3px 0;    
        left: -4px;

    }
    header.fixed div.navbar:after {    
        border-width: 0 0 3px 4px;    
        right: -4px;    
    }
    header.fixed div.navbar div.ndslogo {
        width: 3.5em;
        height: calc(100% - 0.5em);
        max-height: 2.75em;
        position: absolute;
        top: 4px;
        right: 0;
        background: #fff url(../img/niedersachsen.png) no-repeat 9px top;
        background-size: auto 100%;
    }
    div.navbar a.home {
        background: url(../img/home.gif) 0 10px no-repeat;
        height: 40px;
        width: 24px;    
        display: inline-block;
        margin-right: 1em;
    }
    div.navbar div.hauptmenue {
        display: inline-block;
        vertical-align: top;
        max-width: calc(100% - 3em);
    }
    div.navbar ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    ul.nav-menu > li.menu-item {
        vertical-align: top;
        display: inline-block;
    }
    ul.nav-menu > li.menu-item > .menu-link {
        display: block;
        min-height: 2.5em;
        padding: 0.75em;
        margin-top: -3px;
        position: relative;
        cursor: pointer;
    }
    ul.nav-menu > li.menu-item-has-children > .menu-link:after{
        content: '';
        width: 20px;
        height: 12px;
        background: url(../img/pfeile2.png) center -28px no-repeat;
        margin-top: 0.5em;
        display: block;    
        float: right;
    }
    ul.nav-menu > li.current-menu-item > .menu-link,
    ul.nav-menu > li.menu-item > .menu-link:hover,
    ul.nav-menu > li.menu-item.active > .menu-link {
        background-color: #e50046;    
        box-shadow: 2px 2px 6px #cccccc;
        color: #FFFFFF;
    }
    ul.nav-menu > li.current-menu-item > .menu-link:before,
    ul.nav-menu > li.menu-item > .menu-link:hover:before,
    ul.nav-menu > li.menu-item.active > .menu-link:before{
        content: '';
        position: absolute;
        top: 0;
        right: -4px;
        border-color: transparent #b11233;
        border-style: solid;
        border-width: 3px 0 0 4px;
    }
    ul.nav-menu > li.menu-item-has-children.current-menu-item > .menu-link:after{
        background-position: center -42px;
    }
    ul.nav-menu > li.menu-item-has-children.menu-item > .menu-link:hover:after, 
    ul.nav-menu > li.menu-item-has-children.active > .menu-link:after{
        background-position: center 0;
    }
    ul.nav-menu > li.menu-item-has-children > ul.sub-menu {    
        position: absolute;
        max-width: 32em;
        min-width: 22em;
        box-shadow: 2px 2px 6px #666;    
        background-color: rgba(255,255,255,.98);   
        z-index: 1000;
    }

    ul.nav-menu > li.menu-item-has-children.active * ul.sub-menu.active {
        background-color: #c8c8c8;    
    }
    ul.nav-menu > li.menu-item-has-children.active * li.menu-item  {
        border-bottom: 1px dotted #878787;
    }
    ul.nav-menu > li.menu-item-has-children.active * li.menu-item:last-child,
    ul.nav-menu > li.menu-item-has-children.active * li.menu-item.active {
        border-bottom: none;
    } 
    ul.nav-menu > li.menu-item-has-children * li.menu-item .menu-link {
        padding: .5em;
        display: block;
        position: relative;
        cursor: pointer;
    }
    ul.nav-menu > li.menu-item-has-children * li.menu-item-has-children > .menu-link:after{
        content: '';
        background-image: url(../img/pfeile2.png);
        background-position: 6px -12px;
        margin-top: .25em;
        display: block;
        float: right;
        width: 20px;
        height: 12px;
        position: absolute;
        right: 0.5em;
        top: 0.5em;
    }
    ul.nav-menu > li.menu-item-has-children.active * li.menu-item:not(.active) .menu-link:hover{
        background: #878787;
        color: #FFFFFF;
    }
    ul.nav-menu > li.menu-item-has-children.active * li.menu-item.active > .menu-link {
        background-color: #d7d7d7;
        background-image: linear-gradient(to top, #d7d7d7 0%, #ededed 80%);
        margin-top: -1px;
    }
    ul.nav-menu > li.menu-item-has-children.active * ul.sub-menu.active > li:first-child {
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ababab),color-stop(20%,rgba(221,221,221,0)));
        background: -moz-linear-gradient(top, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: -o-linear-gradient(top, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: -webkit-linear-gradient(top, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: linear-gradient(to bottom, rgba(171,171,171,1) 0%,rgba(221,221,221,0) 5px,rgba(221,221,221,0) 100%);
    }
    ul.nav-menu > li.menu-item-has-children.active * ul.sub-menu.active > li:last-child {
        background: -webkit-gradient(linear, left bottom, left top, color-stop(0%,#ababab),color-stop(20%,rgba(221,221,221,0)));
        background: -webkit-linear-gradient(bottom, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: -moz-linear-gradient(bottom, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: -o-linear-gradient(bottom, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: linear-gradient(to top, rgba(171,171,171,1) 0%,rgba(221,221,221,0) 5px,rgba(221,221,221,0) 100%);
    }    
}
@media only screen and (max-width: 1010px){
    div.banner,
    div.site,
    header.fixed,
    .span4of4 {
        width: 736px;
    }
}
@media only screen and (max-width: 768px) {
    div.site,
    .span4of4,
    div.site-main div#primary {
       width: calc(100% - 3em);
    }
    div.banner,
    header {
        width: 100%;
    }
    div.site-main div#tertiary {
        display: none;
    }
}

@media only screen and (max-width: 780px) {
    body {
        font-size: 18px;
    }
    /*mobiles layout*/
    div.navbar div.hauptmenue,
    div.breadcrumb,
    div.logorow,
    div.headnav,
    header.fixed div.navbar div.ndslogo {
        display: none;
    }
    header.site-header {
        position: absolute;
        height: 3em;
        top: 0px;
        z-index: 1000;
        width: calc(100% - 3em);
    }
    div.site {
        margin-top: 4em;
    }
    header.site-header.fixed {
        position: fixed;
        border: none;
    }
    div.navbar {
        border: none;
        padding: 0 1.5em;
        box-shadow: 0 2px 6px #666;
        left: -1.5em;
        position: relative;
        background-color: #fff;
        width: 100%;
    }
    nav#site-navigation {
        display: flex;
        width: 100%;
    }
    div.navbar div.mobil {
        display: inline-block;
    }
    div.navbar a.home {
        background: url(../img/home.gif) 0 10px no-repeat;
        height: 40px;
        width: 24px;
        display: inline-block;   
        flex: 0 0 20px;
        background-position: 0 8px;
        background-size: contain;                
    }
    div.navbar div.suchbutton.mobil {
        background-position: -490px 8px;
        height: 35px;
        width: 30px;
        float: none;
        flex: 0 0 30px;
    }
    div.navbar div.hamburger {
        cursor: pointer;
        width: 40px;
        margin: 0 12px;
        height: 40px;     
        background-image: url(../img/pfeilsprite2.png);
        background-position: -387px 10px;
        background-repeat: no-repeat;
        flex: 0 0 40px;
    }
    div.navbar div.hamburger.active {
        background-color: #e50046;
        background-position: -442px 10px;
    }
    div.navbar div.logo.mobil {
        flex: 1 1 auto;
        text-align: right;
        margin-top: 2px;
    }    
    div.navbar div.logo.mobil,
    span.klar.mobil{
        height: 38px;
        float: none;
    }
    div.navbar div.logo.mobil img {
        height: 100%;
    }
    header.fixed:before, 
    header.fixed:after, 
    header.fixed div.navbar:before,
    header.fixed div.navbar:after {
        display: none;
    }
    div.navbar div.hauptmenue {        
        padding: 0;
        left: 0;
        top: 2.2em;
        width: 100%;
        position: absolute;
        background: #FFFFFF;        
    }
    div.navbar div.hauptmenue:after {
        content: '';
        background: #FFFFFF;
        box-shadow: 2px 2px 6px #666;
        width: 100%;
        height: 2em;
        bottom: -1.5em;
        position: absolute;
        z-index: -1;
    }
    div.navbar div.hauptmenue ul.nav-menu {
        list-style: none;
        margin: 0 1.5em;
        padding: 0;
        position: relative;
        z-index: 1000;
    }    
    div.navbar div.hauptmenue ul.nav-menu li.menu-item {
        display: block;
        border-bottom: 1px dotted #878787;
    }          
    div.navbar div.hauptmenue ul.nav-menu li.menu-item:last-of-type {
        border-bottom: none;
    }
    div.navbar div.hauptmenue ul.nav-menu li.menu-item .menu-link {
        padding: 0.5em;     
        display: block;        
    }
    div.navbar div.hauptmenue ul.nav-menu li.menu-item.menu-item-has-children {
        cursor: pointer;
        position: relative;
    }   
    div.navbar div.hauptmenue ul.nav-menu li.menu-item.menu-item-has-children:after {
        content: '';
        position: absolute;
        top: 0.75em;        
        right: 0;
        width: 1em;
        height: 1em;
        background-image: url(../img/pfeile2.png);
        background-position: center -9px;
        background-repeat: no-repeat;
        display: block;
    }
    div.navbar div.hauptmenue ul.nav-menu li.menu-item.menu-item-has-children.active:after {
        background-position: center -53px;
    }
    div.navbar div.hauptmenue ul.nav-menu > li.menu-item > .menu-link:hover {        
        box-shadow: none;
        color: #000000;
    }
    div.navbar div.hauptmenue ul.nav-menu > li.menu-item.active {
        background-color: #e50046;        
    }
    div.navbar div.hauptmenue ul.nav-menu > li.menu-item.active > .menu-link {
        color: #FFFFFF;
    }
    div.navbar div.hauptmenue ul.sub-menu {
        margin: 0 0 -1px 0;
        padding: 0;
        background: #e2e2e2;
    }    
    div.navbar div.hauptmenue ul.nav-menu li.menu-item ul.sub-menu li.menu-item:not(.active):hover {
        background: #878787;        
    } 
    div.navbar div.hauptmenue ul.nav-menu li.menu-item ul.sub-menu li.menu-item:not(.active):hover .menu-link {
        color: #FFFFFF;
    }
    ul.nav-menu > li.menu-item-has-children.active * ul.sub-menu.active {
        background-color: #c8c8c8;    
    }
    ul.nav-menu > li.menu-item-has-children.active * li.menu-item.active > .menu-link {
        background-color: #d7d7d7;
        background-image: linear-gradient(to top, #d7d7d7 0%, #ededed 80%);        
    }
    ul.nav-menu > li.menu-item-has-children.active * ul.sub-menu.active > li:first-child {
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ababab),color-stop(20%,rgba(221,221,221,0)));
        background: -moz-linear-gradient(top, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: -o-linear-gradient(top, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: -webkit-linear-gradient(top, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: linear-gradient(to bottom, rgba(171,171,171,1) 0%,rgba(221,221,221,0) 5px,rgba(221,221,221,0) 100%);
    }
    ul.nav-menu > li.menu-item-has-children.active * ul.sub-menu.active > li:last-child {
        background: -webkit-gradient(linear, left bottom, left top, color-stop(0%,#ababab),color-stop(20%,rgba(221,221,221,0)));
        background: -webkit-linear-gradient(bottom, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: -moz-linear-gradient(bottom, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: -o-linear-gradient(bottom, #ababab 0%, RGBA(221,221,221,0) 5px) no-repeat;
        background: linear-gradient(to top, rgba(171,171,171,1) 0%,rgba(221,221,221,0) 5px,rgba(221,221,221,0) 100%);
    }
    
    
    
    div.navbar div.hauptmenue div.menu-close {
        width: 1.7em;
        height: 1.7em;        
        position: absolute;
        right: 1em;
        bottom: -1.7em;               
        -webkit-border-radius: 4px 4px 0 0;
        -moz-border-radius: 4px 4px 0 0;
        border-radius: 4px 4px 0 0;        
        background-image: url(../img/pfeilsprite2.png);
        background-repeat: no-repeat;
        background-position: -894px 6px;
        background-color: #e50046;        
        cursor: pointer;
    }    
    div.navbar div.hauptmenue div.menu-close:after {
        content: '';
        bottom: 0;
        right: -4px;
        border-color: transparent #90908f;
        border-style: solid;
        border-width: 0 0 3px 4px;
        position: absolute;
    }
}
@media only screen and (max-width: 390px) {
    span.klar.mobil {
        display: none;
    }
}