/* MARK: =global
--------------------------------------------------------------- */
.home-section-container {
    --_column-gap: 30px;
    position: relative;
    display: grid;
    grid-template-columns: 74.35897436% 23.07692308%; /* 870 270 / 1170 */
    gap: 4em var(--_column-gap);
}
.home-section-container h2,
.home-section-container h3,
.home-section-container .mod-entry-desc,
.home-section-container .card__desc {
    -webkit-hyphens: auto;
        hyphens: auto;
        hyphenate-limit-chars: 12 4 4;
}
.home-section--projects, 
.home-section--events, 
.home-section--teaser,
.home-section--facts {
    grid-column: span 2;
}
.home-section__header {
    display: flex;
    align-items: baseline;
    gap: 1em;
}
.home-section__header a {
    color: inherit;
}
.home-section__header a:hover,
.home-section__header a:focus {
    color: #004e86;
}

.home-section--news .mod-entry:hover,
.home-section--news .mod-entry:focus-within,
.home-section--projects .card:hover,
.home-section--projects .card:focus-within,
.home-section--events .mod-entry:hover,
.home-section--events .mod-entry:focus-within,
.home-section--teaser .teaser__item:hover,
.home-section--teaser .teaser__item:focus-within {
    box-shadow: 0 0.9px 1.5px rgba(0, 0, 0, 0.03),
        0 3.1px 5.5px rgba(0, 0, 0, 0.08),
        0 14px 25px rgba(0, 0, 0, 0.12)
}
.home-section--events .mod-entry-title a,
.home-section--news .mod-entry-title a {
    color: inherit;
    text-decoration: none;
}
.home-section--projects .card__desc,
.home-section--news .mod-entry-meta,
.home-section--events .mod-entry-meta,
.home-section--events .mod-entry-organisators,
.home-section--news .mod-entry-desc,
.crossiety {
    font-size: 0.82352941em; /* 14/17 */
}

/* MARK: =News
--------------------------------------------------------------- */
.tmpl-schule .all-news-link {
    display: none;
}

/* MARK: =Toplinks / Schnellzugriff
--------------------------------------------------------------- */
.home-section--toplinks {
    position: relative;
    margin-bottom: 0;
}
.sidebar__content {
    height: 100%;
}
.home-section--toplinks a {
    color: #fff;
}
.crossiety {
    margin: 3em 0 0;
}

/* MARK: =Projekte 2025
--------------------------------------------------------------- */
.home-section--projects .cards__lst {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em var(--_column-gap);
}
.home-section--projects .card {
    height: 100%;
    background: #004e86;
    color: #fff;
}
.home-section--projects .card__txt {
    padding: 0;
}
.home-section--projects .card__media {
    order: -1;
    aspect-ratio: 37 / 22;
    overflow: hidden;
}
.home-section--projects .card__img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.home-section--projects .card__title {
    margin-block: 0;
    padding: 1.05em;
    background: #ffed00;
    color: #004e86;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: bold;
    -webkit-hyphens: auto;
        hyphens: auto;
        hyphenate-limit-chars: 12 4 4;
}
.home-section--projects .card__desc {
        padding: 1.529412em;
}

/* MARK: =Ergänzungen Projekte 2026 mit Swiper JS
--------------------------------------------------------------- */
.home-section--projects .cards__lst.swiper-wrapper--projects {
    display: flex;
    gap: 0;

    .card--more {
        color: inherit;
        background-color: #fff;

        & a {
            color: inherit;
            text-decoration: none;
        }
    }
}

/* MARK: =Events
--------------------------------------------------------------- */
.home-section--events .event-lst {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em var(--_column-gap);
}
.home-section--events .mod-entry {
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 1em;
    background: #fff;
    border: 0;
}
.home-section--events .mod-entry:hover,
.home-section--events .mod-entry:focus-within {
    box-shadow: 0 0.9px 1.5px rgba(0, 0, 0, 0.03),
        0 3.1px 5.5px rgba(0, 0, 0, 0.08),
        0 14px 25px rgba(0, 0, 0, 0.12)
}

/* MARK: =kennzahlen
--------------------------------------------------------------- */
.home-section--facts .home-section__body {
    background-color: #fff;
    padding: 1.529412em;
}
.home-section--facts .cards {
    margin: 0
}
.home-section--facts .cards__lst {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5em var(--_column-gap);
    margin: 0;
}
:where(.tmpl-schule) .home-section--facts .cards__lst {
    grid-template-columns: repeat(4, 1fr);
}
.home-section--facts .card {
    text-align: center;
    color: #41464a;
}
.home-section--facts .card__media {
    order: -1;
    display: flex;
    align-self: center;
    width: 44%;
    aspect-ratio: 1;
}
.home-section--facts .card__txt {
    padding: 1em;
}
.home-section--facts .card__title {
    margin: 0;
}
.home-section--facts .card__desc {
    order: -1;
    font-size: 2em;
    font-weight: bold;
}

/* MARK: =swiper News & Projekte
--------------------------------------------------------------- */
.swiper:is(.swiper--news, .swiper--projects) {
    margin: -28px;
    padding: 28px;
}
.swiper .swiper-slide {
    display: flex;
    height: auto;
}
.swiper .swiper-button {
    --swiper-navigation-sides-offset: 0;
    --swiper-navigation-color: white;
    width: var(--swiper-navigation-size);
    padding: .75em;
    background-color: hsl(0 0% 50% / 0.75);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: background-color .2s;

    &.swiper-button-disabled {
        pointer-events: auto;
        background-color: hsl(0 0% 50% / 0.25);
        opacity: 1;
    }
}

@media screen and (max-width: 56.25em) {
    .swiper:is(.swiper--news, .swiper--projects) {
        margin: -15px;
        padding: 15px;
    }
    .home-section-container {
        --_column-gap: 16px;
    }
    .home-section--events .event-lst {
        grid-template-columns: 100%;
    }
    .home-section--projects .cards__lst {
        grid-template-columns: repeat(2, 1fr);
    }
    .sidebar {
        margin-top: calc(-1vw - 3.3rem);
        display: block;
    }
}

@media screen and (max-width: 48em) {
    .swiper .swiper-button {
        --swiper-navigation-top-offset: 30%;
    }

    .home-section-container,
    .home-section--projects .cards__lst,
    .home-section--facts .cards__lst {
        grid-template-columns: 100%;
    }
    .home-section--projects,
    .home-section--events,
    .home-section--teaser,
    .home-section--toplinks,
    .home-section--facts {
        grid-column: 1
    }
    .home-section--toplinks {
        margin: 2em 0 0;
    }
    .heading-decorated::before,
    .heading-decorated::after {
        content: none
    }
    .home-section--facts .card {
        text-align: left;
    }
    .home-section--facts .cards__item {
        justify-self: start;
    }
    .home-section--facts .card {
        flex-direction: row;
        gap: 1.5em;
    }
    .home-section--facts .card__media {
        width: 105px;
    }
}

@media screen and (max-width: 32.5em) {
    .home-section--news .mod-lst.news-lst>.mod-entry {
        flex-direction: column;
    }
}