﻿#NewsFilter {
    width: 100% !important;
    height: 100% !important;
}

#NewsTR {
    width: 100% !important;
    height: 100% !important;
}


.mobileButton {
    display: none;
}


.NewsButton input[type=button]:hover,
.NewsButton input[type=submit]:hover,
.NewsButton button:hover {
    color: white;
    font: bold;
    border-color: black;
    border: solid 2px;
    background-color: black;
    height: auto;
    font-family: 'hsd sans';
    font-size: 20px;
    font-weight: normal;
    line-height: 22px;
    letter-spacing: 0px;
    text-transform: uppercase;
    padding-top: 10px;
}

.NewsButton input[type=button],
.NewsButton input[type=submit],
.NewsButton button {
    font: bold;
    border-color: black;
    border: solid 2px;
    background-color: white;
    height: auto;
    font-family: 'hsd sans';
    font-size: 20px;
    font-weight: normal;
    color: #000000;
    line-height: 22px;
    letter-spacing: 0px;
    padding-top: 10px;
    text-transform: uppercase;
    margin-left: 0px;
    margin-right: 10px;
}

.NewsTd {
    width: 70%;
    text-align: left;
}

.NewsTdTxt {
    width: 25%;
    text-align: center;
}

.NewsTdFilterButton {
    width: 30%;
    text-align: right;
}


.DPControl {
    border-style: solid;
    border-width: 1px;
    color: black;
    border-color: inherit;
    background-color: white;
    height: 80% !important;
    margin-left: 5%;
}

.FilterControl {
    padding-right: 5px;
}

.FilterControlButton {
    padding-left: 10px;
}


.style-div-result {
    float: left;
    width: 18%;
    margin-right: 20px;
}

select::-ms-expand {
    display: none;
}

select {
    -moz-appearance: none;
}


    select::-ms-value {
        background: none;
        color: #42413D;
    }

.styled select {
    background: transparent;
    width: 100%;
    padding-right: 40px;
    font-size: 16px;
    height: 34px;
    -webkit-appearance: none;
    overflow: hidden;
    border: 1px solid #ffffff !important;
}

.styled {
    width: auto;
    height: 35px;
    margin-bottom: 10px;
    border: 1px solid #000000;
    overflow: hidden;
    background: url(/_layouts/15/FHD.Internet/images/down_arrow_news.PNG) no-repeat 95% #ffffff;
    float: left;
    margin-right: 20px;
    margin-top: 10px;
    -moz-appearance: none;
    font-family: Arial,sans-serif;
    font-size: 13px;
    font-weight: normal;
    color: #000000;
    line-height: 16px;
    letter-spacing: 0px;
    text-decoration: none;
    text-transform: none;
}

.styledCategories select {
    background: transparent;
    width: 100%;
    font-size: 16px;
    height: 65px;
    -webkit-appearance: none;
}

.styledCategories {
    width: auto;
    margin-bottom: 10px;
    border: 1px solid #000000;
    overflow: hidden;
    float: left;
    margin-right: 20px;
    margin-top: 10px;
    -moz-appearance: none;
    font-family: Arial,sans-serif;
    font-size: 13px;
    font-weight: normal;
    color: #000000;
    line-height: 16px;
    letter-spacing: 0px;
    text-decoration: none;
    text-transform: none;
}

.styledlong select {
    background: transparent;
    width: 100%;
    font-size: 16px;
    height: 34px;
    -webkit-appearance: none;
    padding-right: 40px;
    overflow: hidden;
    border: 1px solid #ffffff !important;
}

.styledlong {
    width: auto;
    margin-bottom: 10px;
    border: 1px solid #000000;
    overflow: hidden;
    float: left;
    margin-right: 20px;
    margin-top: 10px;
    -moz-appearance: none;
    font-family: Arial,sans-serif;
    font-size: 13px;
    font-weight: normal;
    color: #000000;
    line-height: 16px;
    letter-spacing: 0px;
    text-decoration: none;
    text-transform: none;
    background: url(/_layouts/15/FHD.Internet/images/down_arrow_news.PNG) no-repeat 95% #ffffff;
    height: 35px;
}

.styledlongScopes select {
    background: transparent;
    width: 100%;
    padding-right: 40px;
    font-size: 16px;
    height: 34px;
    -webkit-appearance: none;
    overflow: hidden;
    border: 1px solid #ffffff !important;
}

.styledlongScopes {
    width: auto;
    height: 35px;
    margin-bottom: 10px;
    border: 1px solid #000000;
    overflow: hidden;
    background: url(/_layouts/15/FHD.Internet/images/down_arrow_news.PNG) no-repeat 95% #ffffff;
    float: left;
    margin-right: 20px;
    margin-top: 10px;
    -moz-appearance: none;
    font-family: Arial,sans-serif;
    font-size: 13px;
    font-weight: normal;
    color: #000000;
    line-height: 16px;
    letter-spacing: 0px;
    text-decoration: none;
    text-transform: none;
}


@-moz-document url-prefix() {
    .styled select {
        width: 120%;
    }

    .styledlong select {
    }

    .styledlongScopes select {
        width: 110%;
    }
}

.styleCheckbox {
    width: 150px;
    height: 40px;
    margin-bottom: 10px;
    overflow: hidden;
    float: left;
    margin-right: 20px;
    margin-top: 20px;
    -moz-appearance: none;
    font-family: Arial,sans-serif;
    font-size: 13px;
    font-weight: normal;
    color: #000000;
    line-height: 16px;
    letter-spacing: 0px;
    text-decoration: none;
    text-transform: none;
}

.txtSearchBox:focus {
    height: 29px;
    width: 100%;
    font-size: 16px;
    font-family: Arial;
    border: 1px solid blue !important;
}

.txtSearchBox {
    height: 29px;
    width: 100%;
    font-size: 16px;
    font-family: Arial;
    border: 1px solid #ffffff !important;
}

.styled-txtBox {
    width: 180px;
    overflow: hidden;
    margin-top: 10px;
    background: no-repeat right #ffffff;
    border: 1px solid #000000;
    border-radius: 2px;
    float: left;
    margin-right: 20px;
    height: 35px;
    font-family: Arial,sans-serif;
    font-size: 13px;
    font-weight: normal;
    color: #000000;
    line-height: 16px;
    letter-spacing: 0px;
    text-decoration: none;
    text-transform: none;
}

/*ininput[type="password"],  input[type="file"], select, textarea, .sp-peoplepicker-topLevel, .sp-peoplepicker-topLevelDisabled, .sp-peoplepicker-autoFillContainer, .ms-inputBox {
    border: 1px solid #ffffff !important;
}*/

input[type="password"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus,
.ms-inputBox:focus {
    border: 1px solid blue !important;
}
/*
    input[type="password"]:focus, input[type="file"]:focus,  textarea:focus, .ms-inputBox:focus {
      
         padding : 2px 3px !important;
    }
    input[type="text"], textarea, .ms-inputBox {
    padding : 2px 3px !important;
}
        */


.newsBox {
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 14px;
    line-height: 16px;
}

    .newsBox .linkA {
        --item-padding: 0.5rem 1.5rem;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto auto 1fr;
        grid-template-areas:
            "img img"
            "date top"
            "tags tags"
            "title title"
            "body body";
        background-color: #F2F2F2;
        text-decoration: none;
        height: 100%;
    }

.columns_4 .newsBody .linkA {
    --item-padding: 0.5rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas:
        "img img"
        "date top"
        "tags tags"
        "title title"
        "body body";
    background-color: #F2F2F2;
    text-decoration: none;
    height: 100%;
}


.newsBox.topNews .linkA {
    grid-template-columns: 48.5% 1fr auto;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
        "img date top"
        "img tags tags"
        "img title title"
        "img body body";
}

.topImp {
    font-size: 11px;
    padding: var(--item-padding);
}

.newsDate {
    font-size: 11px;
    padding-top: 0.5rem;
    padding-left: 1rem;
    grid-area: date;
    letter-spacing: 0px;
}
.topNews .newsDate {
    padding-left: 1.25rem;
}

.newsTags {
    font-size: 11px;
    padding: 0.5rem 1.0rem 0.5rem 1rem;
    grid-area: tags;
    letter-spacing: 0px;
}

.topNews .newsTags {
    padding-left: 1.25rem;
}

.topImp {
    grid-area: top;
    letter-spacing: 0px;
    font-weight: bold;
    padding-left: 1em;
    padding-right: 1em;
    display: none;
}

.newsDepartment {
    grid-area: dep;
    letter-spacing: 0px;
}

.newsContainer.tileMode .topImp {
    background: #000;
    color: #fff;
    display: block;
    /* Inset style; remove if unwanted */
    grid-area: top;
    top: 0;
    right: 0;
}

.newsBox h3 {
    grid-area: title;
    padding: 0.5rem 1.0rem 0.5rem 1.0rem;
    margin: 0;
}

.newsImage {
    grid-area: img;
    width: 100%;
}

.newsBox .newsBody {
    grid-area: body;
    font-family: 'Times New Roman',serif;
    font-size: 14px;
    line-height: 18px;
    padding: 0.5rem 1.0rem 0.5rem 1rem;
}
.newsBox.topNews .newsBody{
    padding-left: 1.25rem;
}

.newsBox .linkA:hover,
.newsBox .linkA:visited {
    color: #000 !important;
}


.newsBox .OverviewTitle {
    font-size: 30px;
    line-height: 1.1;
    padding-left: 1.0rem;
}
.newsBox.topNews .OverviewTitle {
    padding-left: 1.25rem;
}


.newsContainer * {
    box-sizing: border-box;
}

.newsContainer.tileMode {
    --gap-size: 20px;
    max-width: 1096px;
    display: grid;
    grid-gap: var(--gap-size);
}

    .newsContainer.tileMode.columns_2 {
        --gap-size: 40px;
        grid-template-columns: repeat(auto-fit, 528px);
    }

        .newsContainer.tileMode.columns_2 .newsBox.topNews {
            grid-column: span 2;
        }

    .newsContainer.tileMode.columns_3 {
        --gap-size: 38px;
        grid-template-columns: repeat(auto-fit, 151px);
    }

        .newsContainer.tileMode.columns_3 .newsBox {
            grid-column: span 2;
        }

            .newsContainer.tileMode.columns_3 .newsBox.topNews {
                grid-column: span 3;
            }

    .newsContainer.tileMode.columns_4 {
        grid-template-columns: repeat(auto-fit, 259px);
    }

        .newsContainer.tileMode.columns_4 .newsBox.topNews {
            grid-column: span 2;
        }

.topNewsContainer {
    margin-bottom: var(--gap-size);
}

.newsContainer.tileMode .newsBox.largeTitle .OverviewTitle {
    font-size: 40px;
}

.newsContainer.tileMode .newsBox.smallTitle .OverviewTitle {
    font-size: 16px;
    line-height: 19px;
}

.newsContainer.listMode .newsBox {
    margin-bottom: 0.5rem;
}

    .newsContainer.listMode .newsBox + .newsBox {
        border-top: none;
    }

    .newsContainer.listMode .newsBox .newsBody {
        padding: 0;
    }

    .newsContainer.listMode .newsBox .linkA {
        grid-template-rows: auto auto auto 1fr;
        grid-template-columns: 1fr 2fr;
        grid-template-areas:
            "top top"
            "date body"
            "dep body"
            "tags body";
        grid-gap: 1rem;
        margin: 0;
        padding: 0;
    }

.newsContainer.listMode .newsDate {
    margin-left: 0.5rem;
    padding: 0;
}

.newsContainer.listMode .newsDepartment {
    font-size: 11px;
    padding: 0;
    margin-left: 0.5rem;
    font-weight: bold;
}

.newsContainer.listMode .newsTags {
    margin-left: 0.5rem;
    font-weight: bold;
    font-size: 11px;
    padding: 0 0 0.3rem 0;
}

.newsContainer.listMode .topImp {
    margin-top: 0.5rem;
    justify-self: end;
}

.newsContainer.listMode .newsBox .OverviewTitle {
    padding: 0;
    border: none;
    font-size: 20px;
    margin-bottom: 1rem;
    grid-area: body;
}

.newsContainer.listMode .newsImage {
    max-width: 110px;
    margin: 0;
}

.newsContainer.listMode .newsBody {
    padding: 0;
}

.newsContainer.listMode .fakeLink {
    margin-bottom: 0.5rem;
    align-self: end;
}

.boxlistViewYear {
    font-family: 'hsd sans';
    font-size: 36px;
    line-height: 16px;
    margin-bottom: 1.4rem;
    padding-top: 4rem;
    padding-left: 0.3rem;
}

    .boxlistViewYear:first-child {
        padding-top: 1rem;
    }

@media screen and (max-width: 1225px),screen and (max-device-width: 1225px) {
    .newsContainer.tileMode {
        max-width: 100%;
    }

    .newsContainer.tileMode.columns_3,
    .newsContainer.tileMode.columns_4 {
        --gap-size: 14px;
        grid-template-columns: repeat(auto-fit, 160px);
        justify-content: space-evenly;
    }
    .newsContainer.tileMode.columns_3.topNewsContainer {
        justify-content: flex-start;
    }

    .newsContainer.tileMode.columns_3 .newsBox {
        grid-column: span 3;
    }
    .newsContainer.tileMode.columns_3 .newsBox.topNews{
        grid-column: span 4;
    }

    .newsContainer.tileMode.columns_4 .newsBox {
        grid-column: span 2;
    }
    .newsContainer.tileMode.columns_4 .newsBox.topNews {
        grid-column: span 3;
    }
}

@media screen and (max-width: 1170px),screen and (max-device-width: 1170px) {
    .newsContainer.tileMode {
        max-width: 100%;
    }

    .newsContainer.tileMode.columns_3 {
        --gap-size: 14px;
        grid-template-columns: repeat(auto-fit, 131px);
        justify-content: space-evenly;
    }
    .newsContainer.tileMode.columns_3.topNewsContainer{
        justify-content: flex-start;
    }

    .newsContainer.tileMode.columns_4 {
        --gap-size: 14px;
        grid-template-columns: repeat(auto-fit, 128px);
        justify-content: space-evenly;
    }

    .newsContainer.tileMode.columns_3 .newsBox {
        grid-column: span 3;
    }
    .newsContainer.tileMode.columns_3 .newsBox.topNews {
        grid-column: span 4;
    }


    .newsContainer.tileMode.columns_4 .newsBox {
        grid-column: span 2;
    }
    .newsContainer.tileMode.columns_4 .newsBox.topNews {
        grid-column: span 3;
    }
}

@media screen and (max-width: 1000px),screen and (max-device-width: 1000px) {
    #DivFilters,
    #DivFiltersButton {
        display: none;
        clear: both;
    }

    #DivFilters {
        width: auto !important;
    }

    #SearchDiv {
        height: auto !important;
    }

    #DivFiltersButton {
        float: left !important;
        width: 100% !important;
        margin-bottom: 20px;
    }

        #DivFiltersButton input {
            margin-left: 0px !important;
        }

        #DivFiltersButton div {
            float: left !important;
        }

    .NewsButton input[value=LISTVIEW],
    .NewsButton input[value=LISTENANSICHT] {
        display: none;
    }

    .styled-txtBox,
    .styledlong,
    .styled,
    .styledlongScopes,
    .styleCheckbox {
        display: inline-block;
        clear: both;
        width: auto !important;
    }

    .mobileButtonImg {
        display: inline-block;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-image: url('/_layouts/15/FHD.Internet/images/filter_schwarz.png');
        width: 40px;
        height: 40px;
    }

    .mobileButton {
        display: inline-block;
    }

    .newsContainer.tileMode.columns_3 {
        --gap-size: 40px;
        grid-template-columns: repeat(auto-fit, 378px);
        justify-content: space-evenly;
    }
    .newsContainer.tileMode.columns_3.topNewsContainer {
        justify-content: flex-start;
    }


    .newsContainer.tileMode.columns_4 {
        --gap-size: 30px;
        grid-template-columns: repeat(auto-fit, 370px);
        justify-content: space-evenly;
    }

    .newsContainer.tileMode.columns_3 .newsBox.topNews {
        grid-column: span 3;
    }

    .newsContainer.tileMode.columns_3 .newsBox,
    .newsContainer.tileMode.columns_4 .newsBox {
        grid-column: span 1;
    }

    .newsContainer.tileMode.columns_4 .newsBox.topNews {
        grid-column: span 2;
    }


}

@media screen and (max-width: 875px),screen and (max-device-width: 875px) {
    .newsContainer.tileMode.columns_3,
    .newsContainer.tileMode.columns_4 {
        --gap-size: 30px;
        grid-template-columns: repeat(auto-fit, 320px);
        justify-content: space-evenly;
    }
    .newsContainer.tileMode.columns_3 .newsBox.topNews {
        grid-column: span 3;
    }
       

    .newsContainer.tileMode.columns_3 .newsBox {
        grid-column: span 1;
    }
}

@media screen and (max-width: 750px),screen and (max-device-width: 750px) {
    .newsContainer.tileMode.columns_4 .newsBox,
    .newsContainer.tileMode.columns_3 .newsBox,
    .newsContainer.tileMode.columns_3 .newsBox.topNews {
        grid-column: span 2;
    }
}

/* Ugly but the fastest way to deal with differing gaps next to the top news tiles. */
@media screen and (max-width: 648px),screen and (max-device-width: 648px) {
    .newsContainer.tileMode.columns_2 {
        --gap-size: 20px;
        grid-template-columns: 1fr;
    }

        .newsContainer.tileMode.columns_2 .newsBox.topNews {
            grid-column: initial;
        }

            .newsContainer.tileMode.columns_2 .newsBox.topNews .linkA {
                position: relative;
                grid-template-columns: 1fr auto;
                grid-template-rows: auto auto auto auto 1fr;
                grid-template-areas:
                    "img img"
                    "date top"
                    "tags tags"
                    "title title"
                    "body body";
            }

        .newsContainer.tileMode.columns_2 .topImp {
            background: #000;
            color: #fff;
            display: block;
            /* Inset style; remove if unwanted */
            grid-area: unset;
            position: absolute;
            top: 0;
            right: 0;
            border: solid #fff;
            border-width: 0 0 2px 2px;
        }
}

@media screen and (max-width: 618px),screen and (max-device-width: 618px) {
    .newsContainer.tileMode.columns_4 {
        --gap-size: 20px;
        grid-template-columns: 1fr;
    }

        .newsContainer.tileMode.columns_4 .newsBox.topNews {
            grid-column: initial;
        }

            .newsContainer.tileMode.columns_4 .newsBox.topNews .linkA {
                position: relative;
                grid-template-columns: 1fr auto;
                grid-template-rows: auto auto auto auto 1fr;
                grid-template-areas:
                    "img img"
                    "date top"
                    "tags tags"
                    "title title"
                    "body body";
            }

        .newsContainer.tileMode.columns_4 .topImp {
            background: #000;
            color: #fff;
            display: block;
            /* Inset style; remove if unwanted */
            grid-area: unset;
            position: absolute;
            top: 0;
            right: 0;
            border: solid #fff;
            border-width: 0 0 2px 2px;
        }
}

@media screen and (max-width: 608px),screen and (max-device-width: 608px) {
    .newsContainer.tileMode.columns_3 {
        --gap-size: 20px;
        grid-template-columns: 1fr;
    }

        .newsContainer.tileMode.columns_3 .newsBox.topNews {
            grid-column: initial;
        }

            .newsContainer.tileMode.columns_3 .newsBox.topNews .linkA {
                position: relative;
                grid-template-columns: 1fr auto;
                grid-template-rows: auto auto auto auto 1fr;
                grid-template-areas:
                    "img img"
                    "date top"
                    "tags tags"
                    "title title"
                    "body body";
            }

        .newsContainer.tileMode.columns_3 .topImp {
            background: #000;
            color: #fff;
            display: block;
            /* Inset style; remove if unwanted */
            grid-area: unset;
            position: absolute;
            top: 0;
            right: 0;
            border: solid #fff;
            border-width: 0 0 2px 2px;
        }
}
