html.touch .dropnavUL li > a + ul.navsub {
    visibility: hidden !important;
    opacity: 0 !important;
}

html.touch .dropnavUL li.active > a + ul.navsub {
    visibility: visible !important;
    opacity: 1 !important;
}

header > .mainmUL,
html.touch .article-toolbar {
    display: none;
}

header > .mainmUL.active {
    display: block;
}

.r-form .captcha-container {
    width: 100% !important;
    border: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.r-form .captcha-container .captcha {
    display: block;
}

.r-form .captcha-container td input[name="formcaptcha"] {
    width: 100% !important;
    margin: 0 !important;
}

.r-form table,
table.r-form {
    width: 100%;
    table-layout: fixed;
}

.r-form td {
    padding: 3px;
    vertical-align: top;
    text-align: left;
}

.r-form td input[type="text"],
.r-form td input[type="password"],
.r-form td input[type="tel"],
.r-form td input[type="search"],
.r-form td input[type="email"],
.r-form td textarea {
    width: 100%;
}

input[type="button"] {
    max-width: 100%;
    white-space: pre-wrap;
}

.r-form td input[type="text"]:first-child:nth-last-child(2),
.r-form td input[type="text"]:last-child:nth-child(2) {
    width: 49%;
}

.r-form td input[type="text"]:first-child:nth-last-child(2) {
    margin-right: 2%;
}

@media screen and (max-width: 1199px) {
    body.outofbox .asidemUL > li > a {
        margin-left: 10px;
    }

    .result-list-thumb + .result-list-content {
        max-width: 407px;
    }

    .article-overview.more .thumb {
        width: auto;
    }

    .immobiliendatenbank .result-list-diashow {
        float: none;
        width: 100%;
        height: auto;
        margin-top: 10px;
    }

    .bbox-noborder a.result-list-diashow,
    .bbox-noborder a.result-list-diashow span {
        width: 100%;
        height: auto;
    }

    .sortopts.immobiliendatenbank .sortopt {
        width: 203px;
    }

    .sortopts.immobiliendatenbank .sortopt.gmap-switch {
        width: 291px;
    }

    .immobiliendatenbank .result-list-diashow:first-child {
        margin-top: 0;
    }

    .immobiliendatenbank .result-list-diashow span {
        width: auto;
        height: auto;
        text-align: center;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
    .mainmUL > li > a {
        font-size: 15px;
    }
}


@media screen and (max-width: 991px) {
    /* Menu */
    .head_navigation {
        float: left;
        z-index: 1;
    }

    .headmenu {
        display: inline-block;
    }

    .mainmUL {
        display: none;
    }

    header {
        position: relative;
    }

    .head_wrap,
    body.outofbox .head_wrap {
        margin-bottom: 0;
    }

    main {
        padding-top: 30px;
    }

    header > .mainmUL {
        position: absolute;
        top: 100%;
        right: 0;
        bottom: auto;
        left: 0;
        z-index: 3;
        padding: 15px;
        background-color: #313131;
    }

    body.outofbox header > .mainmUL {
        background-color: #bbb !important;
    }

    header > .mainmUL:after {
        display: block;
        content: "";
        clear: both;
    }

    header > .mainmUL.active {
        display: block;
    }

    header > .mainmUL li {
        float: none;
        margin-right: 40px;
        margin-bottom: 6px;
    }

    header > .mainmUL > li:after {
        top: 0;
        right: auto;
        bottom: 0;
        left: 0;
        width: 4px;
        height: auto;
    }

    header > .mainmUL li a {
        border-right: none;
    }

    header > .mainmUL .cls_btn {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
        width: 40px;
        height: 40px;
        text-align: center;
        font-size: 2rem;
        font-weight: bold;
        color: #ffffff;
        transition: 0.25s all ease-in-out 0s;
    }

    header > .mainmUL .cls_btn.active {
        -ms-transform: rotate(90deg);
        -moz-transform: rotate(90deg);
        -o-transform: rotate(90deg);
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
    }

    header > .mainmUL .navsub {
        position: relative;
        top: auto;
        display: none;
        margin-top: 0;
        border: none;
        color: #ffffff;
        background-color: transparent;
    }

    header > .mainmUL li > a + ul.navsub.active {
        display: block;
        opacity: 1 !important;
        visibility: visible !important;
    }

    header > .mainmUL li > a + ul.navsub.active .navsub {
        display: block;
        opacity: 1 !important;
        visibility: visible !important;
        left: 0;
        padding-bottom: 0;
        padding-top: 0;
    }

    header > .mainmUL .navsub li,
    header > .mainmUL .navsub li a {
        color: #ffffff;
    }

    header > .mainmUL .navsub .cls_btn {
        display: none;
    }

    .head_search {
        margin-left: 70px;
    }

    /* Menu ENDE */
    .sm-talign-right {
        text-align: right;
    }

    .mainmUL > li:first-child > a {
        border-left: 0;
    }

    .mainmUL > li:last-child > a {
        border-right: 0;
    }

    .diashow:nth-child(2n+2) {
        clear: both;
    }

    .diashow:nth-child(3n+2) {
        clear: none;
    }

    body.outofbox .head_wrap {
        margin-bottom: 50px;
    }

    .head_search > .spsearch {
        padding: 15px;
    }

    body.outofbox .head_search > .spsearch {
        padding: 0;
        background-color: transparent;
    }

    .head_search .spsearch .x-form-field-wrap input {
        margin: 0;
    }

    .head_search .spsearch .glyphicon {
        top: 22px;
        right: 25px;
    }

    body.outofbox .head_search > .spsearch .glyphicon {
        top: 7px;
        right: 10px;
    }

    body.outofbox .head_content {
        position: relative;
    }

    body.outofbox .further_navigation {
        position: absolute;
        top: 100%;
        right: 0;
        bottom: auto;
        left: 0;
        z-index: 1;
    }

    body.outofbox .asidemUL > li > a {
        color: #bbb;
    }

    body.outofbox .asidemUL > li > a:focus,
    body.outofbox .asidemUL > li > a:hover,
    body.outofbox .asidemUL > li > a:active,
    body.outofbox .asidemUL > li > a.asidema {
        color: #bc012e;
    }

    body.outofbox .asidemUL > li > a:after {
        display: none;
    }

    .resSlider {
        margin-bottom: 30px;
    }

    .mainrow {
        padding-bottom: 0;
    }

    .result-list-thumb + .result-list-content {
        max-width: 100%;
        margin-top: 15px;
    }

    .kt_select_cnt {
        float: none;
        width: 100%;
        margin-bottom: 15px;
    }

    .kt_select_cnt:nth-child(even) {
        margin-right: 0;
    }

    .kt_select_cnt:last-child {
        margin-bottom: 0;
    }

    .ktcatlink {
        min-width: 100%;
        margin-right: 0;
    }

    .article-overview.wide .thumb {
        float: none;
    }

    .article-overview.wide .thumb + .content {
        margin-left: 0;
    }

    .result-detail-content,
    .more-themes .article-box {
        margin-bottom: 30px;
    }

    .furtherrow {
        padding-top: 0;
    }

    .furtherrow .bbox {
        margin-top: 30px;
    }

    .r-form table,
    .r-form tr,
    .r-form td {
        display: block;
    }

    .immobiliendatenbank .result-list-diashow,
    .bbox-noborder a.result-list-diashow {
        float: left;
        width: 145px;
        height: 145px;
        margin-top: 0;
    }

    .immobiliendatenbank .result-list-diashow span {
        width: 130px;
        height: 130px;
    }

    .bbox-noborder a.result-list-diashow {
        width: 144px;
        height: 144px;
    }

    .bbox-noborder a.result-list-diashow span {
        width: 129px;
        height: 129px;
    }

    .bbox-katalog,
    .bbox-ansprechpartner {
        margin-top: 30px;
    }

}

@media (min-width: 768px) {

    .form-horizontal .control-label {
        padding-top: 7px;
        margin-bottom: 0;
        text-align: left;
        font-weight: 400;
    }
}

@media screen and (max-width: 767px) {
    body.outofbox .further_navigation {
        position: absolute; /* war static */
        top: auto;
        /*right: auto;*/
        bottom: auto;
        /*left: auto;*/
        z-index: 0; /* war z-index: 1 */
        /*margin-left: 90px;*/
    }

    body.outofbox .asidemUL > li > a {
        height: 75px;
        line-height: 75px;
        color: #ffffff !important;
    }

    body.outofbox .asidemUL > li > a:after {
        display: block;
    }

    body.outofbox .head_search {
        margin-left: 0;
    }

    .article-overview.more {
        float: none;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .article-overview.more,
    .article-overview.more .thumb {
        text-align: center;
    }

    .article-detail {
        margin-bottom: 30px;
    }

    .more-themes .article-box .content .teaser {
        min-height: 0;
    }

    #evend {
        margin-left: 0;
    }

    .event-listing-thumb-container {
        margin: 0 auto 10px auto;
        float: none;
        max-width: 100%;
    }

    .event-listing-thumb a.thumb {
        max-width: 100%;
    }

    .logo-lkr-foot {
        margin-top: 0;
        margin-bottom: 30px;
    }

    .result-list-thumb,
    .result-list-thumb + .result-list-content {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

    .result-list-thumb + .result-list-content {
        width: auto;
    }

    .sortopts.immobiliendatenbank .sortopt {
        width: 50%;
    }

    .sortopts.immobiliendatenbank .sortopt.gmap-switch {
        width: 100%;
        margin-bottom: 1rem;
        text-align: right;
    }

    .immobiliendatenbank .result-list-diashow {
        float: left;
        width: 130px;
        height: 130px;
        margin-top: 0;
    }

    .immobiliendatenbank .result-list-diashow span {
        width: 115px;
        height: 115px;
    }

    .bbox-noborder a.result-list-diashow {
        width: 140px;
        height: 140px;
    }

    .bbox-noborder a.result-list-diashow span {
        width: 125px;
        height: 125px;
    }

    .foerderer-icons {
        margin-bottom: 1rem;
    }

    .foerderer-icons > * {
        float: none;
        margin-left: 0;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .result-list-adress-block {
        display: inline-block;
        width: 100%;
    }

    .result-list-adress-block:after {
        display: none;
    }

    #event-form {
        width: 100%;
    }

    table.table-br-480,
    .table-br-480 thead,
    .table-br-480 tbody,
    .table-br-480 tr,
    .table-br-480 td {
        display: block;
        width: 100%;
    }

    .article-detail img {
        width: 100%;
        height: auto;
        max-width: none;
        margin-right: 10px;
    }

    .kt-list-wrap img {
        width: auto;
        height: auto;
    }

    .imgextlink {
        display: none;
    }

    .result-list-thumb {
        padding-bottom: 0;
    }

    .result-list-thumb + .result-list-content {
        margin-top: 0;
    }

    body.outofbox .asidemUL > li > a {
        font-size: 13px !important;
    }
}

@media screen and (max-width: 360px) {
    .more-themes .article-box .thumb {
        height: auto;
    }

    .more-themes .article-box .thumb img,
    .result-list-thumb {
        width: 100%;
        height: auto;
    }

    .immobiliendatenbank .result-list-diashow,
    .bbox-noborder a.result-list-diashow {
        float: none;
        margin: 0 auto 15px auto;
        width: 100%;
        height: auto;
    }

    .immobiliendatenbank .result-list-diashow span,
    .bbox-noborder a.result-list-diashow span {
        width: 100%;
        height: auto;
    }
}