@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100;
    src: url('/files/themes/andreasmahnel/fonts/outfit/outfit-v15-latin-100.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 200;
    src: url('/files/themes/andreasmahnel/fonts/outfit/outfit-v15-latin-200.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    src: url('/files/themes/andreasmahnel/fonts/outfit/outfit-v15-latin-300.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    src: url('/files/themes/andreasmahnel/fonts/outfit/outfit-v15-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    src: url('/files/themes/andreasmahnel/fonts/outfit/outfit-v15-latin-500.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    src: url('/files/themes/andreasmahnel/fonts/outfit/outfit-v15-latin-600.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    src: url('/files/themes/andreasmahnel/fonts/outfit/outfit-v15-latin-700.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    src: url('/files/themes/andreasmahnel/fonts/outfit/outfit-v15-latin-800.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 900;
    src: url('/files/themes/andreasmahnel/fonts/outfit/outfit-v15-latin-900.woff2') format('woff2');
}
body {
    font-family: 'Outfit', sans-serif !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #7f7f7f !important;
}
body,
#links,
#footer,
#footer ul {
    background-color: #e0e0e0 !important;
    color: #7f7f7f !important;
}
#footer ul li a,
#footer ul li span {
    color: #7f7f7f !important;
}
#footer .inside nav:after {
    background-color: #7f7f7f !important;
}
#links {
    max-height: 100vh;
}
#links .navigation ul ul{
    width: calc(100% - 2em);
}
#links .logo-container {
    color: #7f7f7f;
    margin-block: 0 1rem !important;
    font-size: 1.6rem;
    font-weight: 400;
    text-align: left !important;
    text-decoration: none;
}
.viewport-element {
    background-color: #e0e0e0 !important;
    * {
        color: #7f7f7f !important;
        text-shadow: none !important;
    }
}
.viewport-element .links {
    background-size: contain;
}
.viewport-element .overlay {
    display: none;
}
.viewport-multitext {
    .rechts {
        display: flex !important;
        flex-flow: column;
        justify-content: center;
        gap: 1rem;
        height: inherit;
        width: initial !important;
        .headline {
            float: initial !important;
        }
        .block {
            .headline {
                margin-block-start: 0;
                margin-block: 1rem;
                &:last-child {
                    margin-block-end: 0;
                }
            }
            * {
                text-align: left;
            }
        }
    }
}
strong {
    color: #7f7f7f !important;
}
#fp-nav ul li,
.fp-slidesNav ul li {
    margin-block: 12px !important;
}
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
    background: #7f7f7f !important;
    border-color: #7f7f7f !important;
    height: 8px !important;
    width: 8px !important;
    margin: -4px 0 0 -4px !important;
}
#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span,
#fp-nav ul li:hover a.active span,
.fp-slidesNav ul li:hover a.active span {
    background: transparent !important;
    border-color: #7f7f7f !important;
    border-width: 5px;
    height: 18px !important;
    width: 18px !important;
    margin: -9px 0 0 -9px !important;
}
.mod_eventlist {
    display: flex;
    flex-flow: column;
    gap: 1.5rem;
    .event.layout_list {
        h2 {
            margin: 0;
        }
        p {
            margin: 0;
        }
    }
}
.mod_subscribe, .mod_unsubscribe {
    .confirm {
        font-weight: bold;
    }
    form {
        .formbody {
            display: flex;
            flex-flow: column;
            gap: 0.5rem;
            .widget {
                width: 100%;
                input,
                button {
                    background-color: transparent;
                    border: 1px solid #7f7f7f;
                    color: #7f7f7f !important;
                    padding: 0.5rem 1rem;
                    width: 100%;
                }
                button {
                    cursor: pointer;
                    padding: 0.25rem 0.75rem;
                    text-align: center;
                    transition: all 0.3s ease;
                    &:hover {
                        background-color: #7f7f7f;
                        color: white !important;
                    }
                }
            }
        }
    }
}

#rechts {
    .contact {
        .booking {
            a {
                aspect-ratio: 1/1;
                background-color: #ccc;
                border: 1px solid currentColor;
                border-radius: 50%;
                color: #49474e;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                text-decoration: none;
                padding: 1.5rem;
                transition: background-color 0.25s ease;
            }
            a:hover {
                background-color: #dfdfdf;
            }
        }
    }
}
.ce_rsce_inhaltsuebersicht .inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: space-between;
    height: 100vh;
}
.ce_rsce_inhaltsuebersicht .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 0 0 33%;
    margin-right: 5rem;
    .headline{margin-block: 0;}
}
.ce_rsce_inhaltsuebersicht .image-grid {
    display: grid;
    height: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-auto-flow: column;
}
.ce_rsce_inhaltsuebersicht .image-grid .grid-item {
    width: 100%;
    display: flex;
    align-items: center;
    max-height: calc(20vh - (2rem / 5));
    padding: .5rem;
    background-color: #cccbc8;
    transition: all 0.3s ease;
}
.ce_rsce_inhaltsuebersicht .image-grid .grid-item:hover {
    background-color: #7f7f7f;
}
.ce_rsce_inhaltsuebersicht .image-grid .grid-item img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    height: auto;
}

.hl-kursiv h2.headline {
    font-style: italic;
    margin-block-start: 0 !important;
}
.hl-kursiv .rechts {
    gap: 0 !important;
}
.past-events {
    .block {
        .headline {
            margin-block-start: 0;
            margin-block-end: 1rem;
            &:last-child {
                margin-block-end: 0;
            }
        }
        .event * {
            text-align: left;
        }
        .event .ce_text.block {
            padding: 0 !important;
        }
    }
}
.past-events > h2 {
    margin-block: 0 !important;
    font-style: italic;
    font-size: 2em;
}

.no-dots #fp-nav {
    display: none !important;
}

@media (max-width: 1299px) {
    .ce_rsce_inhaltsuebersicht .inner {
        flex-direction: column;
        height: initial;
    }
    .ce_rsce_inhaltsuebersicht .image-grid {
        display: flex;
        flex-flow: row wrap;
        align-content: center;
        justify-content: center;
    }
    .ce_rsce_inhaltsuebersicht .image-grid .grid-item {
        width: 16%;
        max-height: calc(20vh - (2rem / 5));
    }
    .ce_rsce_inhaltsuebersicht .text {
        flex: 1;
        margin-right: 1rem;
        margin-left: 1rem;
        align-items: center;
        text-align: center;
    }
}
@media (max-width: 899px) {
    .viewport-element .table-container {
        display: flex;
        flex-direction: column;
    }
    .viewport-element .links {
        background-position-y: bottom;
        height: 100%;
        flex: 1 1 70%;
        min-height: 60vh;
    }
    .viewport-element .rechts {
        flex: 1 1 30%;
        .block * {
            text-align: center;
        }
    }
    .viewport-element {
        margin-block-end: 3rem;
        margin-inline-start: .75rem;
    }
}
@media (max-width: 767px) {
    #links .inside .logo-container {
        width: max-content;
        margin-block-end: 0 !important;
        text-align: center !important;
    }
    #links .inside .instagram {
        width: 2rem;
        height: 2rem;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    #links .inside .instagram img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    #links .nav-mobile {
        bottom: 50%;
        transform: translateY(50%);
    }
    .viewport-element {
        margin-block: 1.5rem;
        margin-inline: 0;
    }
}

@media (min-width: 768px) {
    #links {
        box-shadow: none !important;
        overflow-y: auto;
        overflow-x: hidden;
        max-width: 100vw;
    }
    #links .navigation ul li > a {
        color: #7f7f7f !important;
    }
    #links .navigation ul li.active > a,
    #links .navigation ul li.active > span,
    #links .navigation ul li.trail > a {
        border: none !important;
        color: #7f7f7f !important;
        font-weight: 300 !important;
        padding: 0 !important;
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }
}

@media (min-height: 700px) and (min-width: 1100px) {
    .contact .booking {
        margin-right: 5em !important;
    }
}
@media (min-width: 900px) and (min-height: 720px) {
    .contact .booking {
        margin-top: 2em !important;
    }
    .past-events > h2 {font-size:3.3vw;}
}
@media (min-width: 900px) {
    .ce_text.align-right {
        width: 50%;
        margin-left: auto;
        padding: 2em;
    }
}
@media (min-width: 1500px) {
    .ce_text.align-right {
        padding: 2em 5em;
    }
}