body>.dialog-off-canvas-main-canvas {
    overflow-x: hidden;
}

#navbar-main {
    justify-content: center;
}

@media (max-width: 1199px) {
    .navbar-brand {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.featured-top__inner {
    padding-inline: 0;
}

.views-element-container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.col-3-icon {
    background-image: url(/sites/default/files/uploads/icon_circle_flag.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FFA44B;
}

/* ===== COL 3 ===== */

div.view-hot-topics .view-content,
div.view-kongresse .view-content,
div.view-taxonomy-term .view-content {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(240px, 100%/3 - 4rem*2/3), 1fr));
    column-gap: 4rem;
    justify-items: center;
    padding-inline: 10px;
    --inner-gap: 25px;
    --outer-gap: 50px;
    --outer-extra-half: calc((var(--outer-gap) - var(--inner-gap)) / 2);
    row-gap: var(--inner-gap);

    @media (max-width: 720px) {
        max-width: none;
    }

    .col-3-wrapper {
        width: 100%;
        margin-inline: auto;
        display: contents;
    }

    .col-3-link-wrapper {
        text-decoration: none;
        text-align: center;
        width: fit-content;
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 4;
        height: 100%;
        max-width: clamp(240px, 100%, 350px);
        margin-block: var(--outer-extra-half);
    }

    .col-3-img {
        width: 100%;

        img {
            object-fit: cover !important;
            height: clamp(160px, 15vh + 10vw, 320px) !important;
            width: 100% !important;
        }
    }

    .col-3-icon-wrapper {

        display: flex;
        justify-content: center;
    }

    p,
    h3 {
        font-size: 1rem;
    }

    p {
        color: black !important;
        margin: 0;
    }

    h3 {
        color: #3D3D3D !important;
        margin: 0;
    }

    .col-3-title-wrapper h3 {
        font-weight: bold;
        margin: 0;
        line-height: 1.5rem;
    }

    .font-big h3 {
        font-size: 1.5rem;
        font-weight: normal;
    }
}

div.view-hot-topics .view-content,
.view-taxonomy-term {
    .col-3-link-wrapper {
        box-shadow: 0 5px 8px 0 rgba(0, 0, 0, .1);
        padding-bottom: 1rem;
        justify-items: center;
    }

    .col-3-titel,
    .col-3-body {
        padding-inline: 1rem;
        color: black;
        text-decoration: none;
    }
}

.view-taxonomy-term .field--name-name,
.node--type-page .field--name-title {
    display: flex;
    justify-content: center;
    margin-bottom: 5rem;
    font-size: 5rem;
    font-weight: 300;
    color: #FFA44B;
}

/* ===== ABOUT US ===== */

.about-us-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
    gap: 20px;
    width: clamp(10rem, 100%, 50rem);
    margin-inline: auto;
    padding-inline: 25px;
}

.about-us-wrapper:hover {
    color: black;
}

.about-us-content {
    text-align: center;
    line-height: 2rem;
}

.about-us-footer {
    display: flex;
    justify-content: center;
}

/* ===== TITLES ===== */

.block-views-blockhot-topics-block-1>h2,
.block-views-blockkongresse-block-1>h2,
.block-views-blockueber-uns-block-1>h2 {
    width: fit-content;
    margin: auto;
    position: relative;
    margin-bottom: 75px;
    font-weight: normal;
    color: #3D3D3D;
    font-weight: 300;

    &::after {
        content: '';
        width: 80px;
        height: 2px;
        position: absolute;
        bottom: -10px;
        left: 50%;
        background: #FFA44B;
        transform: translateX(-50%);
    }
}

/* ===== BANNER ===== */

.banner-wrapper {
    position: relative;
    display: grid;
    text-decoration: none;
}

.banner-content {
    grid-area: 1/1;
    justify-self: center;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
    scrollbar-gutter: stable;
    margin-right: 2rem;


    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: white;
    }

    @media (max-width: 700px) {
        img {
            width: calc(100dvw - 20px);
            max-width: fit-content;
            object-fit: contain;
        }
    }
}

.banner-img-wrapper {
    grid-area: 1/1;

    img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        margin: 0;
    }
}

#block-latinitatis-bannerarsdocendi {

    p {
        background: black;
        padding: 7px 15px;
        width: fit-content;
        margin-inline: auto;
        margin-block: 0;
        text-align: center;
    }

    .banner-arsdocendi-content-title {

        flex-direction: column;
        align-items: center;
        gap: 0;

        img {
            position: relative;
        }
    }

    @media (max-width: 740px) {
        .has-play-icon::after {
            display: none;
        }
    }

}

#block-latinitatis-bannerpinakes {

    .banner-content {
        position: relative;

        @media (min-width: 700px) {
            flex-direction: row;
        }
    }

    .banner-pinakes-text {
        text-align: center;
    }

    h2,
    p {
        color: black;
    }

    h2 {
        font-weight: 300;
        margin: 0;
    }

    p {
        font-weight: bold;
    }
}

.banner-aside {

    display: flex;
    justify-content: center;

    &+div {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    @media (min-width: 700px) {
        margin-right: -200px;

        &+div {
            margin-inline: 250px;
        }
    }

    img {
        width: clamp(140px, 24dvw, 200px);
        height: clamp(140px, 24dvw, 200px);
        object-fit: cover;
        max-width: none !important;
    }

}

.block-views-blockhot-topics-block-1 {
    background: #0000000A;
    padding-bottom: 100px;
    margin-top: var(--m-m);
}

.block-views-blockbanner-arsdocendi-block-1 {
    padding-top: 0;
}

#block-latinitatis-bannerlatinitatis {

    .banner-img-wrapper img {
        height: 200px;
    }

    .content-wrapper {
        --bg: rgba(255, 255, 255, .95);
        --play-icon-padding: 2rem;
        padding: 1rem 1rem 1rem 2rem;

        @media (max-width: 720px) {
            padding-left: 1rem;
        }

        h2,
        p {
            color: #3D3D3D !important;
        }

        h2 {
            margin: 0 0 .5rem 0 !important;
            font-size: clamp(25px, 7dvw, 45px);
        }

        p {
            font-size: clamp(12px, 4dvw, 20px);
            font-weight: 600;
            margin: 0 0 .5rem 0;
        }
    }
}

/* ===== FOOTER ===== */

footer.site-footer {
    background: white;
    padding: 0;
    text-align: center;
}

footer.site-footer .content * {
    color: white;
}

footer.site-footer h2 {
    margin-block: 1rem !important;
    color: white;
    font-weight: 300;
}

.site-footer__bottom {
    border: 0;
}

div#block-latinitatis-footerbottom {
    font-size: 1.35em;
    font-weight: bold;
    background: #FFA44B;
    margin: 0;
    padding-block: 0 1rem;

    a {
        text-decoration: none;
    }

    p {
        margin: 0;
        letter-spacing: .05rem;
        font-size: clamp(.75rem, 2vw + .5rem, 1rem);
    }
}

div#block-latinitatis-easycarouselbrandscarousel {
    background: #FFA44B;
    margin: 0;
    padding-block: 1rem 0;

    .content:not(:has(.view-content))>div,
    .content .view-content {
        padding-block: 1rem 2rem !important;
    }

    .slide-content {
        padding: 0;
    }
}

.site-footer__bottom {
    .block {
        margin: 0;
    }
}

div#block-latinitatis-cle-collaborators {
    background: #474747;

    h2 {
        margin: 0;
        margin-block: 0 !important;
        margin-inline: 0;
    }

    .collaborator-logos {
        padding-block: 1rem;
        display: flex;
        justify-content: center;
        column-gap: 30px;
        row-gap: 50px;
        flex-wrap: wrap;

        img {
            flex: 1 1 200px;
            height: auto;
            min-width: 0;
            max-width: 240px;
        }
    }

    .content:not(:has(.view-content))>div,
    .content .view-content {
        padding-block: 2em;
    }

}

.site-footer>.container {
    max-width: none;
}

/* ===== MAIN MENU ===== */

#navbar-main {
    background-color: white !important;

    .nav-item * {
        color: #959595;
        font-weight: 700;
    }
}

span.nav-link:is(.is-active) {
    display: none;
}

#navbar-main {

    @media (max-width: 1199px) {
        flex-direction: column;
    }

    #CollapsingNavbar {
        justify-content: space-between !important;
        max-width: 1000px;
        font-size: 1.1rem;

        .nav {
            max-width: 880px;
            justify-content: center;
        }
    }
}


#block-latinitatis-sprachumschalter {
    height: stretch;
    height: -moz-available;
    height: -webkit-fill-available;
    /* To prevent huge height in safari */
    max-height: 127px;
}

a.language-link {
    color: black !important;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 10px;
    font-weight: 600;

    &::before {
        display: block;
        content: "";
        width: 1px;
        height: 50%;
        background: black;
        float: left;
        top: 50%;
        position: relative;
        transform: translateY(-50%);
        box-shadow: black 0px 0px 1px 0px;
    }
}

/* ===== HERO AREA ===== */

div#block-latinitatis-heroarea {
    text-align: center;
    margin-top: var(--m-s);

    h2 {
        color: #FFA44B;
        font-weight: 300;
    }

    * {
        color: #3D3D3D;
        font-weight: 500;
        margin-bottom: 0;
    }

    img {
        width: auto;
        height: auto;
        padding: 0;
    }

    @media (max-width: 700px) {
        .row {
            flex-direction: column;
            align-items: center;
        }

        .col-3,
        .col-6 {
            width: 100%;
        }
    }
}

.has-play-icon {
    position: relative;
    z-index: 0;
    overflow: visible;
    background: transparent;
    --bg: transparent;
    --play-icon-size: clamp(2rem, 6dvw, 3rem);
    --play-icon-offset: 3rem;
    --play-icon-padding: 1rem;
    --play-icon-gap: 1rem;

    &::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--bg);
        z-index: -1;
        pointer-events: none;
    }

    &::after {
        content: "";
        width: var(--play-icon-size);
        height: var(--play-icon-size);
        border-radius: 50%;
        background-image: url(/sites/default/files/uploads/play.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: calc(var(--play-icon-size) / 2);
        background-color: #FFA44B;
        pointer-events: none;
    }

    &.play-icon--extend-bg:not(.play-icon--flow)::before {
        inset-inline-end: calc(-1 * (var(--play-icon-offset) + var(--play-icon-padding)));
    }

    &:not(.play-icon--flow)::after {
        position: absolute;
        top: 50%;
        right: calc(-1 * (var(--play-icon-size) + var(--play-icon-padding)/2));
        transform: translateY(-50%);
    }

    &.play-icon--flow {
        display: grid;
        grid-template-columns: 1fr var(--play-icon-size);
        align-items: center;
        column-gap: var(--play-icon-gap);

        @media (max-width: 740px) {
            grid-template-columns: 1fr;
            grid-auto-rows: auto;

            &::after {
                grid-column: 1 !important;
                justify-self: center !important;
            }
        }

        &::before {
            inset-inline-end: 0;
        }

        &::after {
            position: static;
            transform: none;
            grid-column: 2;
            justify-self: end;
        }
    }


}

/* ========== ARTIKEL ========== */

.node--type-article {
    margin-inline: auto;
    text-align: start;

    .node__content>* {
        margin-block: 1rem;
    }

    h1:has(.field--name-title) {
        font-weight: 300;
        /* margin-block: 20px; */
    }

    .article-author-date {
        justify-content: start;
        align-items: center;
        gap: 12px;
        opacity: .5;
        margin-top: 4rem;

        * {
            color: #3D3D3D;
            font-weight: bold;
        }
    }

    .article-bottom-border {
        height: 2px;
        width: 100%;
        background-color: #FFA44B;
        margin-top: 3rem;
    }
}

.block-better-social-sharing-buttons {

    .social-sharing-buttons {
        justify-content: end;
        margin-block: .5rem 2rem;
    }

    .social-sharing-buttons::before {
        content: 'Share on';
        margin-right: 10px;
        color: #3d3d3d;
        opacity: .5;
        font-weight: 600;
    }
}

.block-nextpre-endo7 {
    padding-inline: 0;
    height: 200px;
    background-color: #F5F5F5;

    .content {
        height: 100%;

        .nextpre-wrapper {
            display: flex;
            height: 100%;

            @media (max-width: 700px) {
                padding: 0 !important;
            }

            .prev,
            .prev:hover,
            .prev:focus,
            .prev:focus-visible,
            .next,
            .next:hover,
            .next:focus,
            .next:focus-visible {
                align-items: center;
                gap: 0;
                width: 100%;
                color: black;
                font-size: 1.6rem;
                font-weight: 300;
                text-decoration: none;
            }

            .prev {
                justify-content: start;
                text-align: start;
            }

            .next {
                justify-content: end;
                text-align: end;
            }

            i {
                color: #3E3E3E;
                font-size: 3rem;
            }

            .nextpre-txt {
                overflow: hidden;
                color: black;
                -webkit-line-clamp: 2;
                line-clamp: 2;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem);
            }
        }


    }


}

:has(> .slide-title.link) {
    position: relative;
}

.slide-title.link {
    width: 100%;
    height: 100%;
    position: absolute;
}

#block-latinitatis-matomo,
.page-view-frontpage #main-wrapper {
    display: none;
}

.content:not(:has(.view-content)):not(:has(.node__content))>div,
.content .view-content,
.content .node__content {
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 2rem;

    @media (max-width: 700px) {
        padding-inline: 1rem;
    }

    img {
        max-width: 100%;
        object-fit: contain;
        height: auto;
    }
}

.full-width {
    width: 100dvw !important;
    margin-left: -2rem;
}

.content:has(.banner-wrapper) {
    padding: 0 2rem;
}

figure.caption figcaption {
    text-align: center;
}

.navbar-wrapper-logo-btn {
    display: flex;
    align-items: center;
}

a .btn-continue,
/* Select all a tags that don't have any children
   and are not children of .header
   and are not children of elements with a class that contains "block", "node", "placeholder", "entity", "slide", "nav" or "file"
   can be negated by adding .no-btn class */
#page>:not(.header) :not(.field--name-body):not(.contextual-links)>:not([class*=block]):not([class*=node]):not([class*=placeholder]):not([class*=entity]):not([class*=slide]):not([class*=nav]):not([class*=file])>a:not(:has(*)):not(:empty):not(.no-btn),
.link-button {
    background-color: #FFA44B;
    color: white !important;
    border-radius: 25px;
    height: 50px;
    line-height: 50px;
    display: block;
    min-width: 150px;
    width: fit-content;
    text-align: center;
    margin-right: auto;
    text-decoration: none;
    padding-inline: 10px;

    &.center {
        margin-inline: auto;
    }

    &.end {
        margin-right: inherit;
        margin-left: auto;
    }

}

figcaption {
    background-color: #f7f7f7;
    caption-side: bottom;
    color: #333;
    font-size: .75em;
    padding: .6em;
    word-break: break-word;
}

button.navbar-toggler {
    display: none;
}

div#CollapsingNavbar {
    display: block;
}