.galerieslider {
    z-index: 12;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    -moz-overflow-scrolling: touch;
    overflow-scrolling: touch;
    margin-bottom: 3em;
}

@media screen and (max-width:2000px){
.galerieslider {
    padding: 1em;
}
}

.galeriesliderinnen {
    position: relative;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -moz-overflow-scrolling: touch;
    overflow-scrolling: touch;
    padding:2em 2em 3em 2em;
}

.galerieslider .galerie {
    position: relative;
    display: inline-block;
    vertical-align: top;
    white-space: normal;
    margin-right: 3em;
    width: min-content;
}


.galerie img {transition: all 0.3s ease;}
.galerietxt {height:auto;}

.galerie300 img {height: 300px;width: auto;}
.galerie400 img {height: 400px;width: auto;}


@media screen and (min-width:2001px){
.galerie700 img {height: 700px;width: auto;}
}
@media screen and (min-width:901px) and (max-width:2000px){
.galerie700 img {height: 35vw;width: auto;}
}
@media screen and (min-width:901px){
.galerie500 img {height: 500px;width: auto;}
.galerie600 img {height: 600px;width: auto;}
}
@media screen  and (max-width:900px){
.galerie400 img,
.galerie500 img,
.galerie600 img,
.galerie700 img {height: 350px;width: auto;}
}








.galeriesliderinnen.mittitel{padding-top: 3.8em;}
.galerie p {
    margin: 0.3em 0;
    text-align: left;
    line-height: 1.35em;
    font-size: .9em;
}

p.counter {
    background: #8d3e00;
    color: #fff;
    display: table;
    padding: .2em .4em;
    border-radius: .3em;
    bottom: 15px;
    left: 10px;
    position: relative;
    margin: -2em auto 0 0;
}

.galerie h3 {
    position: absolute;
    bottom: 100%;
    text-align: center;
    left: 0;
    right: 0;
    font-size: 1.3em;
    background: #f9f9f9;
    padding: 0.5em;
    margin-bottom: 0;
}
.galerietxt {padding: .5em .4em .2em .5em}
.galerietxt a {
    text-decoration: underline;
}
.galerietxt a:hover {
    text-decoration: none;
}
.galerie.diffschatten {
    box-shadow:0 0 1.2em rgb(5 40 1 / 25%);
}





/* --------------------------- fotogalerie -------------------- */



.fotogalerie .diffrahmen{
    padding: 0;
}
.fotogalerie .diffrahmen img{
    padding: 3px;
    background: #fff;
}
.fotogalerie .galerie {
    position: relative;
    width: auto;
    vertical-align: top;
    white-space: normal;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 2em;
}
.fotogalerie .galerie.diffschatten img {
    box-shadow: 0 0 1.2em rgb(5 40 1 / 25%);
}

.fotogalerie .galerie.diffschatten {
    box-shadow: none;
}

.fotogalerie .galerie400 img, .fotogalerie .galerie500 img, .fotogalerie .galerie600 img, .fotogalerie .galerie700 img {
    height: auto;
    width: 100%;
}

@media screen and (min-width:1401px) {
.fotogalerie .galerie {
    margin-right: 1.5em;
    margin-left: 1.5em;
    max-width: 300px;
}
}
@media screen and (max-width:1400px) {
.fotogalerie .galerie {
    margin-right: 2%;
    margin-left: 2%;
}
}
@media screen and (min-width:601px) and (max-width:1400px) {
.fotogalerie .galerie {
    width: 21%;
    max-width: 300px;
}
}
@media screen and (max-width:900px) {
.fotogalerie .galerie {
    width: 29%;
    max-width: 300px;
}
}
@media screen and (max-width:600px) {
.fotogalerie .galerie {
    width: 45%;
}
}



















