* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    overflow-y: hidden;
}

body {
    font-family: pt_sansregular, Helvetica, Arial, sans-serif;
    overflow-y: auto;
    background: url("../images/bg_signatur.png") fixed no-repeat center;
    -webkit-background-size: contain, auto;
    -moz-background-size: contain, auto;
    -o-background-size: contain, auto;
    background-size: contain, auto;
    background-color: #F0F0F0;
}

.headline {
    font-size: 2em;
    font-weight: bold;
    position: fixed;
    background-color: #658165;
    color: #eeeeee;
    width: 100%;
    height: 75px;
    box-shadow: 0.3rem 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
    padding: 17px 0 0 20px;
    z-index: 100;
    display: table-cell;
}

.teaser {
    background-color: #e1e1e1;
    color: #555555;
    box-shadow: 0.3rem 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 4px;
    max-width: 78rem;
    margin: 100px auto 0 auto;
}

.sammlungtext {
    font-size: 1rem;
}

.histdat {
    display: block;
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 5px;
}

h1 {
    font-size: 1.5rem;
    font-weight: normal;
    color: #444;
    text-align: left;
    margin-bottom: 0.75rem;
}

.subtitle {
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    background-color: transparent;
    color: #585858;
}

a.lnkbigimg {

    float: right;
    z-index: 20;
}

.wrapper {
    width: 90%;
    /*margin: 100px auto 50px auto;*/
    margin: 10px auto 50px auto;
    max-width: 80rem;
}

.cols {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.col {
    width: calc(25% - 2rem);
    margin: 1rem;
    cursor: default;
}

.container {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.singleimg {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    opacity: 0.6;
}

.front,
.back {
    box-shadow: 0.3rem 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
    background-position: center;
    background-color: rgba(255, 255, 255, .85);
    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    text-align: center;
    min-height: 288px;
    height: auto;
    border: 1px solid #969696;
    border-radius: 4px;
    color: #fff;
    font-size: 1.3rem;
    background-size: contain;
    background-repeat: no-repeat;
}

.back {
    background: #658165;
    background: -webkit-linear-gradient(45deg, #ffffff 20%, #658165 100%);
    background: -o-linear-gradient(45deg, #ffffff 20%, #658165 100%);
    background: linear-gradient(45deg, #ffffff 20%, #658165 100%);
}

.front::after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    content: '';
    display: block;
    /*opacity: .1;
    background-color: #000;*/
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
}

.back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
    transform: translateY(-50%) translateZ(60px) scale(0.94);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    top: 50%;
    position: absolute;
    left: 0;
    padding: 0.5rem;
    color: #555555;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 1px solid transparent;
    -webkit-perspective: inherit;
    perspective: inherit;
    z-index: 2;
}

.container:hover .front,
.container:hover .back {
    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    visibility: visible;
}

.container .back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.container .front {
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.container:hover .back {
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.container:hover .front {
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.front .inner p {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.front .inner p::after {
    content: '';
    width: 4rem;
    height: 2px;
    position: absolute;
    background: #C6D4DF;
    display: block;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -.75rem;
}

/*.front .inner span {
color: rgba(255, 255, 255, 0.7);
font-weight: 300;
}*/

@media screen and (max-width: 64rem) {
    .col {
        width: calc(33.333333% - 2rem);
    }
}

@media screen and (max-width: 48rem) {
    .col {
        width: calc(50% - 2rem);
    }
}

@media screen and (max-width: 32rem) {
    .col {
        width: 100%;
        margin: 0 0 2rem 0;
    }
}

.ribbon-holder {
    overflow: hidden;
}

.ribbon {
    position: absolute;
    background: #658165;
    color: #eeeeee;
    transform: rotate(-45deg);
    text-align: center;
    top: 23px;
    left: -30px;
    width: 130px;
    opacity: .85;
    box-shadow: 0 0 20px rgba(0, 0, 0, .8);
}

.ribhistory {
    transform: rotate(0deg);
    top: 0;
    left: 0;
    width: 100%;
}

/* ----- Modal ----- */
.modalDialog {
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 75px;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(120, 129, 120, 0.75);
    z-index: 99999;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}

.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}

.modalDialog>div {
    max-width: 610px;
    position: relative;
    text-align: center;
    margin: 6% auto;
    padding: 3px 3px 3px 3px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0.5rem 0.5rem 0.7rem rgba(0, 0, 0, 0.4);
    /*background: -moz-linear-gradient(#fff, #999);
    background: -webkit-linear-gradient(#fff, #999);
    background: -o-linear-gradient(#fff, #999);*/
}

.modalImage {
    max-width: 600px;
    margin-top: 3px;
}

.modalBGImage {
    /*min-height: 600px;*/
    padding-top: 100%;
    background-size: contain;
    /*: auto;*/
    background-repeat: no-repeat;
    background-position: center;
}

.modalText {
    border-top: 1px solid #aaaaaa;
    color: #555555;
    background-color: #eeeeee;
    padding: 3px 0 2px 0;
    font-weight: bold;
    border-radius: 0 0 4px 4px;
}

.header {
    border-top: 0;
    border-bottom: 1px solid #aaaaaa;
    border-radius: 4px 4px 0 0;
    padding: 2px 34px;
}

.btnclose {
    background: #606061;
    color: #FFFFFF;
    line-height: 30px;
    position: absolute;
    right: 5px;
    top: 4px;
    text-align: center;
    width: 33px;
    text-decoration: none;
    font-weight: bold;
    -webkit-border-radius: 0 4px 0 0;
    -moz-border-radius: 0 4px 0 0;
    border-radius: 0 4px 0 0;
    -moz-box-shadow: 1px 1px 3px #000;
    -webkit-box-shadow: 1px 1px 3px #000;
    box-shadow: 1px 1px 3px #000;
}

.btnclose:hover {
    background: #658165;
}

/* ----- ----- ----- */