/* =========================================
   HOMEPAGE – HERO
   ========================================= */

.home-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background: #2868ad;
}

.home-hero-bild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

/* Dezenter Verlauf für gute Lesbarkeit */
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(20, 55, 90, 0.72) 0%,
        rgba(20, 55, 90, 0.48) 34%,
        rgba(20, 55, 90, 0.12) 62%,
        rgba(20, 55, 90, 0) 82%
    );
}

.home-hero-inhalt {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    color: #ffffff;
}

.home-hero-inhalt h1 {
    max-width: 650px;
    margin: 0 0 18px;
    font-size: 48px;
    line-height: 1.12;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.home-hero-inhalt p {
    max-width: 620px;
    margin: 0;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 400;
    color: #ffffff;
}


/* =========================================
   HERO – MOBIL
   ========================================= */

@media (max-width: 999px) {

    .home-hero {
        height: 440px;
    }

    .home-hero-bild {
        object-position: center center;
    }

    .home-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(20, 55, 90, 0.68) 0%,
            rgba(20, 55, 90, 0.38) 65%,
            rgba(20, 55, 90, 0.18) 100%
        );
    }

    .home-hero-inhalt {
        width: calc(100% - 32px);
        justify-content: flex-end;
        padding-bottom: 45px;
        box-sizing: border-box;
    }

    .home-hero-inhalt h1 {
        max-width: 520px;
        margin-bottom: 12px;
        font-size: 34px;
        line-height: 1.15;
    }

    .home-hero-inhalt p {
        max-width: 520px;
        font-size: 17px;
        line-height: 1.5;
    }
}

@media (max-width: 600px) {

    .home-hero {
        height: 390px;
    }

    .home-hero-inhalt h1 {
        font-size: 30px;
    }

    .home-hero-inhalt p {
        font-size: 16px;
    }
}
/* =========================================
   HOMEPAGE HERO
   sehr dezente Welle oben und unten
   ========================================= */

.home-hero {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 500' preserveAspectRatio='none'%3E%3Cpath d='M0 12 C300 4 500 4 800 12 C1100 20 1300 20 1600 12 L1600 488 C1300 496 1100 496 800 488 C500 480 300 480 0 488 Z' fill='white'/%3E%3C/svg%3E");

    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;

    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 500' preserveAspectRatio='none'%3E%3Cpath d='M0 12 C300 4 500 4 800 12 C1100 20 1300 20 1600 12 L1600 488 C1300 496 1100 496 800 488 C500 480 300 480 0 488 Z' fill='white'/%3E%3C/svg%3E");

    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

/* =========================================
   HOMEPAGE – AKTUELLES
   ========================================= */

.homepage-aktuelles {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 55px auto 0;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.homepage-aktuelles > h2 {
    margin: 0 0 28px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    color: #2868ad;
}


/* CONTENIDO Teaser */

.homepage-aktuelles-karten ul.images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.homepage-aktuelles-karten ul.images > li {
    overflow: hidden;
    margin: 0;
    padding: 0 0 22px;

    background: #ffffff;
    border-radius: 12px;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.09);
}


/* Teaserbild */

.homepage-aktuelles-karten ul.images > li img {
    display: block;
    width: 100% !important;
    height: 190px !important;

    object-fit: cover;

    margin: 0 0 20px;
}


/* Titel */

/* Titel */
.homepage-aktuelles-karten ul.images > li h2 {
    margin: 0 20px 12px;

    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;

    color: #333333;
}


/* Teasertext */
.homepage-aktuelles-karten ul.images > li h3 {
    margin: 0 20px 16px;

    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;

    color: #555555;
}


/* Text */

.homepage-aktuelles-karten ul.images > li p {
    margin: 0 20px 16px;

    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;

    color: #555555;
}


/* Link */

.homepage-aktuelles-karten ul.images > li > a {
    display: inline-block;
    margin: 0 20px;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    color: #2868ad;
    text-decoration: none;
}

.homepage-aktuelles-karten ul.images > li > a:hover {
    text-decoration: underline;
}


/* Tablet */

@media (max-width: 999px) {

    .homepage-aktuelles {
        width: calc(100% - 32px);
        margin-top: 42px;
    }

    .homepage-aktuelles-karten ul.images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Smartphone */

@media (max-width: 650px) {

    .homepage-aktuelles > h2 {
        font-size: 28px;
    }

    .homepage-aktuelles-karten ul.images {
        grid-template-columns: 1fr;
    }

    .homepage-aktuelles-karten ul.images > li img {
        height: 210px !important;
    }
}
/* =========================================
   HOMEPAGE – AKTUELLES + TERMINE
   ========================================= */

.homepage-aktuell-termine {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 55px auto 0;

    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 45px;

    align-items: start;
}


/* Aktuelles liegt jetzt im gemeinsamen Bereich */

.homepage-aktuell-termine .homepage-aktuelles {
    width: 100%;
    max-width: none;
    margin: 0;
}


/* Die drei Projektkarten innerhalb der linken Spalte */

.homepage-aktuell-termine
.homepage-aktuelles-karten ul.images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}


/* Zwischenbereich und Mobil */

@media (max-width: 999px) {

    .homepage-aktuell-termine {
        width: calc(100% - 32px);
        margin-top: 42px;

        grid-template-columns: 1fr;
        gap: 45px;
    }

    .homepage-aktuell-termine
    .homepage-aktuelles-karten ul.images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {

    .homepage-aktuell-termine
    .homepage-aktuelles-karten ul.images {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   HOMEPAGE – NÄCHSTE TERMINE
   ========================================= */

.homepage-termine {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.homepage-termine-ueberschrift {
    margin: 0 0 28px;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;

    color: #2868ad;
}


/* Einzelner Termin */

.homepage-termin {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    align-items: center;

    padding: 17px 0;

    border-bottom: 1px solid #e1e5e9;
}

.homepage-termin:first-of-type {
    padding-top: 0;
}


/* Datum links */

.homepage-termin-datum {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 66px;

    background: #e8f2fb;
    border-radius: 10px;

    color: #2868ad;
}

.homepage-termin-tag {
    display: block;

    font-size: 27px;
    line-height: 1;
    font-weight: 600;
}

.homepage-termin-monat {
    display: block;
    margin-top: 5px;

    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.8px;
}


/* Termintext */

.homepage-termin-titel {
    margin: 0 0 5px;

    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;

    color: #333333;
}

.homepage-termin-zeit {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;

    color: #666666;
}


/* Mobil */

@media (max-width: 999px) {

    .homepage-termine-ueberschrift {
        font-size: 28px;
    }

    .homepage-termin {
        grid-template-columns: 64px minmax(0, 1fr);
    }
}
.homepage-aktuelles-karten ul.images > li > div {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    color: #555555;
}
/* =========================================
   HOMEPAGE – UNSERE SCHULE
   ========================================= */

.homepage-schule-layout {
    margin-top: 65px;
    padding: 0;
    background: #eef7ff;
}

.homepage-schule {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr;

    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background: #eef7ff;
}


/* Textbereich links */

.homepage-schule-inhalt {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 550px;
    margin-left: auto;

    box-sizing: border-box;
    padding: 55px 55px 55px 20px;
}

.homepage-schule-inhalt h2 {
    margin: 0;

    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;

    color: #2868ad;
}

.homepage-schule-linie {
    width: 46px;
    height: 2px;

    margin: 15px 0 18px;

    background: #2868ad;
}

.homepage-schule-inhalt p {
    max-width: 480px;
    margin: 0 0 22px;

    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;

    color: #555555;
}


/* Button */

.homepage-schule-button {
    display: inline-block;

    padding: 11px 18px;

    background: #2868ad;
    border-radius: 7px;

    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    text-decoration: none;
}

.homepage-schule-button:hover {
    background: #205a96;
}


/* Schulhaus rechts */

.homepage-schule-bild {
    position: relative;
    min-height: 300px;
}

.homepage-schule-bild img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}


/* weicher Übergang vom Text zum Bild */

.homepage-schule-bild::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        #eef7ff 0%,
        rgba(238, 247, 255, 0.92) 8%,
        rgba(238, 247, 255, 0.55) 20%,
        rgba(238, 247, 255, 0) 42%
    );

    pointer-events: none;
}


/* Tablet / Mobil */

@media (max-width: 800px) {

    .homepage-schule {
        display: block;
    }

    .homepage-schule-inhalt {
        max-width: none;
        margin: 0;
        padding: 42px 24px 35px;
    }

    .homepage-schule-bild {
        min-height: 280px;
    }

    .homepage-schule-bild::after {
        background: linear-gradient(
            180deg,
            #eef7ff 0%,
            rgba(238, 247, 255, 0) 30%
        );
    }
}


@media (max-width: 600px) {

    .homepage-schule-inhalt h2 {
        font-size: 28px;
    }

    .homepage-schule-inhalt p {
        font-size: 15px;
    }

    .homepage-schule-bild {
        min-height: 230px;
    }
}
/* Aktuelles: MORE-Link ausblenden */
.homepage-aktuelles-karten ul.images > li > a {
    display: none !important;
}

/* Ganze Karte als klickbar erkennbar */
.homepage-aktuelles-karten ul.images > li {
    cursor: pointer;
}
/* Aktuelles – Karten Hover */

.homepage-aktuelles-karten ul.images > li {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.homepage-aktuelles-karten ul.images > li:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.10);
}