.clear {
    clear: both;
}

body.referenzen_projekte h3, body.vorschauseite h3 {
	color: #e84626;
    margin-bottom: 20px;
    text-align: center;
}

.projektvorschau_bild {
    position: relative;
    margin-bottom: 10px;
    margin-right: 20px;
    height: 300px;
    background-position: center;
    background-size: cover;
    transition: 0.5s;
}
.projektvorschau_bild:hover {
    opacity: 0.7;
}


.projektvorschau_bild img{
	width: 100%;

}

.projektvorschau_name {
    position: absolute;
    display: block;
    bottom: 0px;
    width: 100%;
    padding: 15px;
    padding-bottom: 20px;
    font-size: 22px;
    line-height: 25px;
    color: white;
    vertical-align: bottom;
    background: rgba(0,0,0,0.5);
}

.projektkategorie, .projektkachel {
    width: 33%;
    display: block;
    float: left;
    padding: 0;
    text-align: left;
    margin-top: 10px;
}

.projektteaser {
    min-height: 50px;
}

a.button.bundesbauten {
	background-color: #5e6066;
    padding: 1em 0em;
}
a.button.bundesbauten:hover {
    background-color: #45464a;
    padding: 1em 0em;
}
a.button.bundesbauten:before {
	content: '';
}

.bundesbauten .bilderrahmen {
    margin-top: 1em;
    padding-top: 0;
}



/* Popup */

.projektvorschau {
    cursor: pointer;
}

.projektkachel .projektdetails {
    display: none;
    position: fixed;
    background-color: rgba(51, 51, 51, 0.9);
    top: 0;
    left: 0;
    padding: 5% 10% 0;
    bottom: 0;
    right: 0;
    z-index:100;
    overflow-y: scroll;
    padding-bottom: 5%;
}

.projektkachel .projektdetails .inner {
    width: 80%;
    max-width: 1200px;
    background: #fff;
    margin: 0 auto;
    box-shadow: 0px 0px 6px 3px rgba(0,0,0,0.3);
    position:relative;
}
.projektkachel .projektdetails .inner .closedetails {
    content: 'x';
    position: fixed;
    top: 30px;
    right: 50px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}
.projektkachel .projektdetails .inner .closedetails:after {
    content: 'X';
}
.projektkachel .projektdetails .bilder {
    line-height: 0;
    float: left;
    width: 50%;
}
.projektkachel .projektdetails img {
    width: auto;
    box-sizing: border-box;
    padding: 0;
    display: inline;
    max-width: 100%;
}
.projektkachel .projektdetails .daten {
    padding: 3rem;
}


.projektdetails-header {
    border-bottom: 15px solid #e84626;
    width: 100%;
    display: table;
}

.projektdetails-header-logo {
    display: table-cell;
    width: 33%;
    border-right: 2px solid #5e6066;
    padding: 50px 50px 10px 50px;
    height: 100%;
    vertical-align: bottom;
}

.projektdetails-header-title {
    display: table-cell;
    width: 65%;
    text-align: left;
    font-weight: bold;
    color: #e84626;
    font-size: 23px;
    line-height: 30px;
    padding: 30px 30px 15px 30px;
    height: 100%;
    vertical-align: bottom;
    word-break: normal;

}
.projektdetails-header-number {
    color: #5e6166;
    font-size: 18px;
}


.projektdetails-main.nocontent .projektdetails-main-pics {
    margin-left: 20px;
    display: block;
    width: 100%;
}
.projektdetails-main.nocontent .projektdetails-pic-wrapper {
    float: left;
    width: 32%;
    max-width: initial;
}

/*IE Fix*/
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
     /* IE10+ CSS styles go here */
    .projektdetails-header-title {
        word-break: break-all;

    }
}

@media \0screen {
    .projektdetails-header-title {
        word-break: break-all;
    }
}

.projektdetails-main {
    width: 100%;
}

.projektdetails-main-pics {
    display: inline-block;
    width: 33%;
    margin-top: 40px;
    vertical-align: top;
}

.projektdetails-pic-wrapper {
    display: block;
    position: relative;
    max-width: 320px;
    width: 100%;
    padding: 0 10px 30px;
    margin: 0 auto;
}

.projektdetails-pic-wrapper:hover .projektdetails-lupe {
    transform: scale(1.1);
    transition-duration: 0.5s;
}

.projektdetails-lupe {
    position: absolute;
    bottom: 40px;
    right: 20px;
    color: #ffffff;
    font-size: 40px;
    transition-duration: 0.5s;
    text-shadow: black 0px 0px 20px;
}

.projektdetails-main-content {
    display: inline-block;
    width: 100%;
    padding: 40px 30px 0;
    text-align: left;
}

.projektdetails-main-content h3 {
    color: #e84626;
    margin-top: 50px;
    margin-bottom: 10px;
}
.projektdetails-main-content h3:first-child {
    margin-top: 0;
}

.projektdetails-main-content table tr td {
    padding: 3px 15px;
}

.projektdetails-main-content table {
    margin-left: -15px
}


/*Responsive*/
@media screen and (max-width: 1400px) {
    .projektkategorie, .projektkachel {
        width: 50%;
    }
    .projektvorschau_bild {
        margin: 0;
        margin-right: 10px;
    }
}

@media screen and (max-width: 1200px) {

    p.projektteaser {
        height: 70px;
    }
    .projektkategorie h3 {
        height: 30px;
    }


    .projektdetails-header {
        display: block;
    }

    .projektdetails-header-logo {
        display: none;
    }

    .projektdetails-header-title {
        display: block;
        width: 100%;
    }

    .projektdetails-main-pics {
        /*margin-left: 20px;*/
        margin: 0 10px !important;
        display: block;
        width: 100%;
    }

    .projektdetails-pic-wrapper {
        float: left;
        width: 32%;
    }
    .projektkachel .projektdetails img.projektdetails-nopic {
        display: none;
    }

    .projektdetails-main-content {
        display: inline-block;
        width: 100%;
    }

}


@media screen and (max-width: 850px) {

    .projektkategorie, .projektkachel {
        width: 100%;
        /*padding: 20px 50px 80px 50px;*/
    }
    .projektkategorie h3 {
        height: inherit;
    }
    p.projektteaser {
        height: inherit;
    }
    .projektvorschau_bild img {
        width: 100%;
        max-width: none !important;
    }

    .projektkachel .projektdetails .inner {
        width: 100%;
    }

    .projektkachel .projektdetails {
        padding: 20px;
    }

    .projektkachel .projektdetails .inner .closedetails {
        top: 40px;
        right: 60px;
        font-size: 40px;
        color: #fff;
        background-color: rgba(95, 97, 102, 0.5);
        padding: 10px;
    }

    .projektdetails-header-title {
        font-size: 20px;
        padding-right: 70px;
    }
    .projektdetails-main.nocontent .projektdetails-pic-wrapper {
        width: 48% !important;
    }

    .projektvorschau_bild {
        margin-right: 0;
    }

@media screen and (max-width: 600px) {

    .projektdetails-main-content table tr td {
        width: 100%;
        float: left;
        padding: 3px 15px;
    }

    .projektdetails-main-content-kategorie {
        font-weight: bold;
    }
}

@media screen and (max-width: 500px) {
    .projektkategorie, .projektkachel {
        /*padding: 20px 20px 50px 20px;*/
    }
}
