html, body {
    height: 100%;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    background-color: #FFFFF0;
    color: #333;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 14px;
    hyphens: auto;
    line-height: 1.4;
}

a {
    color: #333;
    text-decoration: underline;
}

h1, .h1 {
    color: #F5DEB3;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

main h1,
h2, .h2 {
    color: #BE101D;
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
}

h3, .h3 {
    color: #BE101D;
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
}

h4, .h4,
h5, .h5 {
    color: #BE101D;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

/*------------------------------------*\
  #SEITENHEADER
\*------------------------------------*/
header#seitenheader .header {
    background: #BE101D;
    margin-bottom: 10px;
    padding-left: 210px;
    padding-right: 210px;
    height: 90px;
}

header#seitenheader .header h1 {
    padding: 10px 10px 0 10px;
}

header#seitenheader .header .slogan {
    color: #FFF8DC;
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    padding: 0 10px 10px 10px;
    text-align: right;
}

/* header#seitenheader .logo {
    text-align: center;
    margin-top: 10px;
} */

.logo-header-wrap .logo {
    position: absolute;
    left: 10px;
    top: 5px;
}

.logo-header-wrap .logo img {
    width: 75px;
    height: auto;
}

/*------------------------------------*\
  #CONTENT
\*------------------------------------*/
.rechte-spalte {
    background-color: #FFF8DC;
    border: 1px solid #BE101D;
    padding: 0.5em;
}

.rechte-spalte img {
    width: 100%;
    height: auto;
}

.relative {
    position: relative;
}

.logo-heimatpflege {
    position: absolute;
    top: 10px;
    right: 10px;
}

.logo-heimatpflege img {
    width: 50px;
    height: auto;
}

/*------------------------------------*\
  #FOOTER
\*------------------------------------*/
footer {
    background: #BE101D;
    color: #FFF8DC;
    padding: 10px;
}

footer .footer-inhalt {
    text-align: center;
}

footer .footer-inhalt a {
    color: #FFF8DC;
    font-size: 12px;
}


/*------------------------------------*\
  #TYPO3
\*------------------------------------*/
main {}

p {
    margin-bottom: 15px;
}

.frame-rahmen,
.news .news-list-view .news-list-item,
.news.news-single {
    background-color: #FFF8DC;
    border: 1px solid #BE101D;
    padding: 0.5em;
}

strong {
    font-weight: 600;
}

.frame-space-before-extra-small {
    margin-top: 20px;
}

.frame-space-before-small {
    margin-top: 40px;
}

.frame-space-before-medium {
    margin-top: 60px;
}

.frame-space-before-large {
    margin-top: 80px;
}

.frame-space-before-extra-large {
    margin-top: 100px;
}

.frame-space-after-extra-small {
    margin-bottom: 20px;
}

.frame-space-after-small {
    margin-bottom: 40px;
}

.frame-space-after-medium {
    margin-bottom: 60px;
}

.frame-space-after-large {
    margin-bottom: 80px;
}

.frame-space-after-extra-large {
    margin-bottom: 100px;
}

.ce-gallery .image img {
    width: 100%;
    height: auto;
}

#cboxTitle {
    position: absolute;
    bottom: -3px;
    left: 0;
    text-align: center;
    width: 100%;
    color: #555;
}

#cboxCurrent {
    position: absolute;
    bottom: 1px;
    left: 58px;
    color: #949494;
    font-size: 14px;
}

#cboxSlideshow {
    position: absolute;
    bottom: 2px;
    right: 30px;
    color: #555;
    font-size: 14px;
}

.ce-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top {
    display: inline-block;
    background-color: #555;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: 15px;
    right: 30px;
    transition: background-color .3s, opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#back-to-top::after {
    content: "\f077";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    font-size: 2em;
    line-height: 50px;
    color: #fff;
}

figcaption {
    font-size: 10px;
    color: #666;
    padding: 1px 3px;
    text-align: center;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(107, 112, 92, 0), rgba(107, 112, 92, 0.75), rgba(107, 112, 92, 0));
    background-color: unset;
    text-align: center;
    overflow: visible;
    opacity: 1;
}

hr:after {
    content: url(/typo3conf/ext/hv_memmingen_template/Resources/Public/Images/Template/Edelweiss.svg);
    display: inline-block;
    position: relative;
    top: -0.95em;
    font-size: 1.5em;
    padding: 0 0.25em;
    background: white;
    width: 60px;
    height: 60px;
}

/*------------------------------------*\
  #MASK
\*------------------------------------*/
/*---------- BILDERGALERIE -----------*/
.mask-bildergalerie {
    clear: both;
    margin-bottom: 20px;
}

.mask-bildergalerie .mask-bildergalerie-wrapper {
    margin-bottom: 15px;
    -webkit-box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.5);
}

.mask-bildergalerie .bildspalte {
    margin-bottom: 15px;
}

.mask-bildergalerie .bildspalte img {
    width: 100%;
    height: auto;
}

.bildspalte .zoom {
    overflow: hidden;
    position: relative;
}

.bildspalte .zoom img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease-in-out;
}

.bildspalte .zoom:hover img {
    width: 100%;
    height: auto;
    transform: scale(1.1);
}

.bildspalte figcaption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background: url(/typo3conf/ext/bim_template/Resources/Public/Images/Template/trans-60-schwarz.png);
}

.bildspalte:hover figcaption {
    opacity: 1;
}

.bildspalte figcaption div {
    text-align: center;
    font-size: 18px;
    line-height: 1.2;
    color: #fff;
    padding: 0 10px;
    position: absolute;
    width: 100%;
    bottom: 20px;
}

.mask-infobox-icon-wrap {
    position: relative;
}

.mask-infobox-icon-wrap .mask-infobox-icon-icon {
    position: absolute;
    left: 50%;
    margin-left: -30px;
    top: -30px;
}

.mask-infobox-icon-wrap .mask-infobox-icon-inhalt .mask-infobox-icon-ueberschrift {
    color: #fff;
    font-family: 'Neucha';
    font-size: 48px;
    text-align: center;
}

.mask-infobox-icon-wrap .mask-infobox-icon-icon i {
    color: #A3B482;
    font-size: 60px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}

.mask-infobox-icon-wrap .mask-infobox-icon-inhalt {
    padding: 40px 15px 15px 15px;
}

.mask-infobox-icon-wrap .mask-infobox-icon-inhalt .mask-infobox-icon-text {
    color: #fff;
    text-align: center;
}

.mask-infobox-icon-wrap .mask-infobox-icon-inhalt a {
    color: #fff;
}

.mask-infobox-icon-wrap .mask-infobox-icon-inhalt a span {
    background: #2E485E;
    padding: 10px 30px;
    border: 1px solid #fff;
}

.mask-infobox-icon-wrap .mask-infobox-icon-inhalt a:hover span {
    background: #A3B482;
}

.mask-infobox-icon-wrap .mask-infobox-icon-inhalt .mask-infobox-icon-link {
    text-align: center;
    margin: 40px 0 20px 0;
}

/*------------------------ MASK-LINKBOX -----------------*/
.mask-linkbox-wrap .mask-linkbox-inhalt .mask-linkbox-bild {
    position: relative;
}

.mask-linkbox-wrap .mask-linkbox-inhalt .mask-linkbox-bild img {
    width: 100%;
    height: auto;
}

.mask-linkbox-wrap .mask-linkbox-inhalt .mask-linkbox-bild .mask-linkbox-ueberschrift {
    color: #fff;
    font-family: 'Bilbo Swash Caps';
    font-size: 36px;
    position: absolute;
    bottom: 0;
    line-height: 1.6;
    width: 100%;
    text-align: center;
    z-index: 99;
}

.mask-linkbox-wrap .mask-linkbox-inhalt .mask-linkbox-link {
    background: #89A81F;
    text-align: center;
    padding: 5px;
    transition: all 0.25s ease-in-out;
}

.mask-linkbox-wrap .mask-linkbox-inhalt .mask-linkbox-link:hover {
    background: #555;
}

.mask-linkbox-wrap .mask-linkbox-inhalt .mask-linkbox-link a {
    color: #fff;
    text-decoration: none;
}

.mask-linkbox-wrap .mask-linkbox-inhalt .mask-linkbox-bild .linkbox-berge {
    background-image: url(/typo3conf/ext/hv_memmingen_template/Resources/Public/Images/Template/Berge-Box.svg);
    width: 100%;
    position: absolute;
    min-height: 100px;
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 100%;
    bottom: -1px;
    z-index: 4;
}

/*------------------------ MASK-INFOBOX -----------------*/
.mask-infobox-wrap .mask-infobox-item.dunkelblau,
.mask-infobox-wrap .mask-infobox-item.hellblau,
.mask-infobox-wrap .mask-infobox-item.grau {
    background: #eee;
    border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.65);
    -moz-box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.65);
    box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.65);
    margin-top: 55px;
    width: 100%;
    position: relative;
}

.mask-infobox-wrap .mask-infobox-item.dunkelblau {
    border: 1px solid #2D475D;
}

.mask-infobox-wrap .mask-infobox-item.hellblau {
    border: 1px solid #678EAA;
}

.mask-infobox-wrap .mask-infobox-item.grau {
    border: 1px solid #555;
}

.mask-infobox-wrap .mask-infobox-item.dunkelblau .mask-infobox-icon,
.mask-infobox-wrap .mask-infobox-item.hellblau .mask-infobox-icon,
.mask-infobox-wrap .mask-infobox-item.grau .mask-infobox-icon {
    background: #fff;
    border-radius: 50%;
    left: 50%;
    margin-left: -55px;
    margin-top: -52px;
    width: 110px;
    height: 110px;
    position: absolute;
}

.mask-infobox-wrap .mask-infobox-item.dunkelblau .mask-infobox-icon {
    border: 3px solid #2D475D;
}

.mask-infobox-wrap .mask-infobox-item.hellblau .mask-infobox-icon {
    border: 3px solid #678EAA;
}

.mask-infobox-wrap .mask-infobox-item.grau .mask-infobox-icon {
    border: 3px solid #555;
}

.mask-infobox-wrap .mask-infobox-item.dunkelblau .mask-infobox-icon i,
.mask-infobox-wrap .mask-infobox-item.hellblau .mask-infobox-icon i,
.mask-infobox-wrap .mask-infobox-item.grau .mask-infobox-icon i {
    color: #2D475D;
    font-size: 48px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

.mask-infobox-wrap .mask-infobox-item.dunkelblau .mask-infobox-icon i {
    color: #2D475D;
}

.mask-infobox-wrap .mask-infobox-item.hellblau .mask-infobox-icon i {
    color: #678EAA;
}

.mask-infobox-wrap .mask-infobox-item.grau .mask-infobox-icon i {
    color: #555;
}

.mask-infobox-wrap .mask-infobox-item.dunkelblau .mask-infobox-inhalt,
.mask-infobox-wrap .mask-infobox-item.hellblau .mask-infobox-inhalt,
.mask-infobox-wrap .mask-infobox-item.grau .mask-infobox-inhalt {
    padding: 70px 15px 15px 15px;
}

.mask-infobox-wrap .mask-infobox-item.dunkelblau .mask-infobox-inhalt h3,
.mask-infobox-wrap .mask-infobox-item.hellblau .mask-infobox-inhalt h3,
.mask-infobox-wrap .mask-infobox-item.grau .mask-infobox-inhalt h3 {
    font-family: 'Neucha';
    font-size: 32px;
    text-align: center;
}

.mask-parallax-wrap {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.mask-parallax-wrap .inhalt {
    background-image: url(/typo3conf/ext/hv_memmingen_template/Resources/Public/Images/Template/trans-60-schwarz.png);
    color: #fff;
    padding: 15px 20px;
    position: absolute;
    width: 600px;
    top: 200px;
}

.mask-parallax-wrap img {
    width: 100%;
    height: auto;
}

.mask-parallax-wrap .inhalt h3 {
    color: #fff;
    font-family: 'Neucha';
    font-size: 48px;
}

.mask-parallax-wrap .inhalt .inhalt-button {
    margin-top: 30px;
    margin-bottom: 15px;
}

.mask-parallax-wrap .inhalt a {
    background: #678EAA;
    border: 1px solid #fff;
    color: #fff;
    display: inline-block;
    padding: 10px 40px;
}

.mask-parallax-wrap .inhalt a:hover {
    background: #333;
}

.mask-linkbutton-wrap a {
    background: #678EAA;
    border: 1px solid #fff;
    color: #fff;
    display: inline-block;
    padding: 10px 40px;
}

.mask-linkbutton-wrap a i {
    font-size: 24px;
}

.mask-linkbutton-wrap a span {
    margin-left: 15px;
}

/*------------------------ BILD-TEXT-ASYMMETRISCH -----------------*/
.mask-textelement-bild-text-asymmetrisch-wrap .mask-textelement-bild-text-asymmetrisch-text h2 {
    text-align: center;
}

.mask-textelement-bild-text-asymmetrisch-wrap .mask-textelement-bild-text-asymmetrisch-text.links {
    padding-left: 20px;
    position: relative;
}

.mask-textelement-bild-text-asymmetrisch-wrap .mask-textelement-bild-text-asymmetrisch-text.links:before {
    content: "";
    border-left: 5px solid #FFC72D;
    position: absolute;
    left: 0;
    height: 100px;
    top: 62px;
}

.mask-textelement-bild-text-asymmetrisch-wrap .mask-textelement-bild-text-asymmetrisch-text.rechts {
    padding-right: 20px;
    text-align: right;
    position: relative;
}

.mask-textelement-bild-text-asymmetrisch-wrap .mask-textelement-bild-text-asymmetrisch-text.rechts:before {
    content: "";
    border-right: 5px solid #FFC72D;
    position: absolute;
    right: 0;
    height: 100px;
    top: 62px;
}

.mask-textelement-bild-text-asymmetrisch-wrap .mask-textelement-bild-text-asymmetrisch-bild img {
    width: 100%;
    height: auto;
}

/*---------- COPYRIGHT-HINWEIS -----------*/
.copyright {
    top: 85vh;
    position: absolute;
    left: 50px;
    z-index: 1;
    line-height: 1;
}

.mask-teaserbox-ohne-rollover-wrap .copyright {
    bottom: 5px !important;
    right: 10px;
    top: unset;
}

.copyright i {
    font-size: 1.3em;
}

.copyright i .hoverbox {
    opacity: 0;
    position: absolute;
    width: 300px;
    left: 30px;
    top: 3px;
    text-align: left;
    font-weight: 300;
    font-size: 0.7em;
    transition: all 0.25s ease-in-out;
}

.copyright i:hover .hoverbox {
    opacity: 1;
}

/*------------------------------------*\
  #TABELLEN
\*------------------------------------*/
.contenttable {
    width: 100%;
}

.contenttable tr {
    border-bottom: 1px solid #ccc;
}

.contenttable tr:last-child {
    border-bottom: 0;
}

.contenttable tr td {
    padding: 5px;
}

.CookieTable {
    margin-top: 30px;
    margin-bottom: 30px;
}

.CookieTable p {}

.CookieTable table {
    border: 1px solid #555;
    width: 100%;
}

.CookieTable table thead tr th {
    font-size: 100%;
    background: #eee;
    border-bottom: 1px solid #555;
    padding: 5px;
}

.CookieTable table thead tr th:first-child {
    padding-left: 15px;
}

.CookieTable table tbody tr {
    border-bottom: 1px solid #555;
}

.CookieTable.essentiell table tbody tr:last-child {
    border-bottom: none;
}

.CookieTable table tbody tr td {
    padding: 5px;
}

.CookieTable table tbody tr td:first-child {
    padding-left: 15px;
}

.CookieTable table tbody tr td a {}

.dp--overlay .dp--overlay-inner .dp--overlay-description a {
    color: #fff;
    font-weight: 600;
}

.dp--overlay .dp--overlay-inner .dp--overlay-button button.db--overlay-submit {
    background: #fff !important;
    border-radius: 5px;
    color: #2D475E !important;
}

.dp--overlay .dp--overlay-inner .dp--overlay-button button.db--overlay-submit:hover {
    background: #ccc !important;
}

/*------------------- Sticky Box --------------*/
.mask-textelement-stickybox-wrap {
    display: flex;
    display: -ms-flexbox;
    align-items: center;
    -ms-flex-align: center;
    height: auto;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 350px;
    padding: 10px 0 10px 0;
}

.mask-textelement-stickybox-box {
    height: 500px;
    display: flex;
    align-items: flex-start;
    padding: 30px 0;
}

.sticky-item {
    background: url(/typo3conf/ext/hv_memmingen_template/Resources/Public/Images/Template/trans-60-schwarz.png);
    color: #fff;
    position: sticky;
    top: 100px;
    width: 100%;
    padding: 15px 15px 15px 15px;
}

.mask-textelement-stickybox-box .sticky-item ul {
    margin: 0;
    padding-left: 20px;
}

.mask-textelement-stickybox-box .sticky-item ul li {
    list-style: none;
}

.mask-textelement-stickybox-box .sticky-item ul li:before {
    font: var(--fa-font-solid);
    content: "\f058";
    margin-right: 10px;
}

/*------------------------------------*\
  #FORMULAR
\*------------------------------------*/
/*------------------------------------*\
  #NEWS
\*------------------------------------*/
.news {
    padding-left: 10px;
    padding-right: 10px;
}

.news .news-list-view .row.news-list-item img,
.news.news-single img {
    width: 100%;
    height: auto;
}

.news .news-list-view .news-list-item .headline-wrap {
    border-bottom: 2px solid #BE101D;
    padding: 10px 0 0 0;
    margin-bottom: 20px;
}

.news .news-list-view .news-list-item h3 {
    font-size: 14px;
    margin: 0;
}

.news .news-list-view .news-list-item time {
    font-size: 12px;
    margin: 0;
}

.news .news-list-view .news-list-item time {
    color: #BE101D;
}

.news .news-list-view .news-list-item h3 {
    background: #BE101D;
    color: #fff;
    padding: 5px;
}

.news .news-list-view .news-list-item h3 a {
    color: #fff;
}

.news .news-list-view .news-list-item .lead,
.news .news-list-view .news-list-item .btn-read-more {
    font-size: 12px;
}

.news.news-single h2 {
    color: #BE101D;
    font-size: 12px;
    margin: 10px 0 20px 0;
}

.news.news-single time {
    color: #333;
    font-size: 12px;
}

.news.news-single .autor {
    font-size: 12px;
    margin-bottom: 10px;
}

.news.news-single .news-text-wrap,
.news.news-single .btn-default {
    font-size: 12px;
}

/*------------------------------------*\
  #MAP
\*------------------------------------*/
.map {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.map .privacy-msg.privacy-map-msg {
    background-image: url(/typo3conf/ext/hv_memmingen_template/Resources/Public/Images/Template/Mapdummy.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100% !important;
}

.map .privacy-msg.privacy-map-msg::after {
    content: "© OpenStreetMap contributors";
    position: absolute;
    left: 15px;
    bottom: 0;
}

.map .privacy-msg.privacy-map-msg p {
    background-image: url(/typo3conf/ext/hv_memmingen_template/Resources/Public/Images/Template/trans-80-schwarz.png);
    width: auto;
    position: absolute;
    margin-top: 20px;
    color: #fff;
    text-align: center;
}

.map iframe {
    width: 100%;
    margin-bottom: -6px;
}

.privacy-msg.privacy-script-msg a,
.privacy-msg.privacy-map-msg a {
    color: #89A81F;
}

.privacy-msg a.btn {
    background: #89A81F;
    border-color: #89A81F;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 20px;
}

.privacy-script-msg p {
    background-image: url(/typo3conf/ext/hv_memmingen_template/Resources/Public/Images/Template/trans-80-schwarz.png);
    position: relative;
    margin-top: 50px;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

.privacy-msg.privacy-video-msg {
    background-image: url(/typo3conf/ext/hv_memmingen_template/Resources/Public/Images/Template/Video-Dummy.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100% !important;
}

.privacy-msg.privacy-video-msg p {
    background-image: url(/typo3conf/ext/hv_memmingen_template/Resources/Public/Images/Template/trans-80-schwarz.png);
    width: 900px;
    position: absolute;
    left: 50%;
    margin-top: 50px;
    margin-left: -450px;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

/*------------------------------------*\
  #MEDIA-QUERIES
\*------------------------------------*/
@media (max-width: 1199px) {
    .container {
        max-width: 100%;
    }

    h1, .h1 {
        font-size: 24px;
    }

    header#seitenheader .header .slogan {
        font-size: 16px;
    }

    .rechte-spalte {
        margin-top: 130px;
    }

    .rechte-spalte img {
        width: 100%;
        height: auto;
    }

    header#seitenheader .header {
        padding-left: 100px;
        padding-right: 100px;
    }

    .logo-header-wrap .logo img {
      width: 65px;
      height: auto;
    }
    .logo-heimatpflege {
        top: 0;
    }
}

@media (max-width: 991px) {
    #seitenheader {
        padding-top: 60px;
    }

    .rechte-spalte {
        margin-top: 20px;
    }

    .rechte-spalte img {
        width: 50%;
        height: auto;
    }
}

@media (max-width: 767px) {
    h1, .h1 {
        font-size: 24px;
    }
    
    header#seitenheader .header .slogan {
      font-size: 14px;
    }
}

@media (max-width: 660px) {
  h1, .h1 {
      font-size: 20px;
  }

  header#seitenheader .header .slogan {
    display: none;
  }
}

@media (max-width: 575px) {
    .ce-gallery {
        margin-right: 0;
        width: 100%;
    }
}
