/* Projektübersicht VS Mondweg */

.projekt-jahr {
    margin: 35px auto 55px auto;
    text-align: center;
}

.projekt-jahr h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    line-height: 1.2;
    color: #222222;
}

.projekt-jahr .schuljahr {
    margin-bottom: 25px;
    font-size: 15px;
    color: #555555;
}


/* Anordnung der Projekte */

.projekt-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
}


/* Einzelnes Projekt */

.projekt-grid > a,
.projekt-grid > a:link,
.projekt-grid > a:visited,
.projekt-grid > a:hover,
.projekt-grid > a:active {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 115px;
    padding: 10px;
    text-align: center;
    text-decoration: none !important;
    color: #333333 !important;
}


/* Projektbild */

.projekt-grid > a img {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 10px auto;
    border: 0;
}


/* Text unter dem Projektbild */

.projekt-grid > a span {
    display: block;
    width: 100%;
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}


/* Auch beim Darüberfahren keine blaue Linkschrift */

.projekt-grid > a:hover span,
.projekt-grid > a:visited span,
.projekt-grid > a:active span {
    color: #333333 !important;
    text-decoration: none !important;
}
/* Teaserbild auf der Artikelseite ausblenden */
.teaserbild-nur-backend {
    display: none;
}
/* Einleitung Projektübersicht */
.projekt-intro {
    box-sizing: border-box;
    max-width: 760px;
    margin: 10px auto 30px auto;
    padding: 22px 28px;
    background: #f4f8ff;
    border-radius: 18px;
}

.projekt-intro-kopf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 14px;
}

.projekt-intro-kopf img {
    display: block;
    width: 105px;
    height: 105px;
    object-fit: contain;
}

.projekt-intro-kopf h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #245fae;
    text-align: left;
}

.projekt-intro-text {
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
}

.projekt-intro-text p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: normal;
    color: #333333;
}

.projekt-intro-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 650px) {
    .projekt-intro {
        padding: 18px;
    }

    .projekt-intro-kopf {
        flex-direction: column;
        gap: 10px;
    }

    .projekt-intro-kopf h1 {
        font-size: 21px;
        text-align: center;
    }

    .projekt-intro-text {
        text-align: left;
    }
}
/* ========================================
   Neue Projektartikel 2026/27
   ======================================== */

.projektartikel {
    width: 92%;
    max-width: 900px;
    margin: 25px auto 50px auto;
    box-sizing: border-box;
}

/* Kopfbereich */
.projektartikel-kopf {
    background: #f2f7ff;
    border-radius: 18px;
    padding: 22px 30px;
    margin-bottom: 28px;
    text-align: center;
}

/* Hauptüberschrift */
.projektartikel-titel {
    color: #2864ad;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.25;
}

/* Unterüberschrift */
.projektartikel-untertitel {
    margin-top: 8px;
    color: #555555;
    font-size: 17px;
    line-height: 1.4;
}

/* Eigentlicher Artikel */
.projektartikel-inhalt {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    text-align: left;
}

/* Bilder im Artikel nicht über den Inhaltsbereich hinaus */
.projektartikel-inhalt img {
    max-width: 100%;
    height: auto;
}

/* Tabellen aus älteren Editor-Inhalten */
.projektartikel-inhalt table {
    max-width: 100%;
}
/* Neue Projektartikel – Text sauber ausrichten */
.projektartikel-inhalt,
.projektartikel-inhalt p,
.projektartikel-inhalt div {
    text-align: left !important;
}

/* ===================================
   Projektartikel NEU
   =================================== */

.projektartikel-neu {
    width: 850px;
    margin: 25px auto 50px auto;
    box-sizing: border-box;
}

/* Titelbereich: Bild links, Titel rechts */
.projektartikel-neu-kopf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;

    background: #f2f7ff;
    border-radius: 18px;
    padding: 20px 30px;
    margin-bottom: 30px;
}

/* Weißer Bildkasten */
.projektartikel-neu-titelbild {
    width: 170px;
    height: 170px;
    flex: 0 0 170px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

/* Bild im weißen Kasten */
.projektartikel-neu-titelbild img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Titel */
.projektartikel-neu-titel {
    width: auto;
    flex: 0 1 auto;

    color: #2864ad;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.25;
    text-align: left;
}

/* Artikelinhalt */
.projektartikel-neu-inhalt {
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    text-align: left;
    box-sizing: border-box;
}

.projektartikel-neu-inhalt p {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    text-align: left;
}
.projektartikel-neu-titel,
.projektartikel-neu-titel h1,
.projektartikel-neu-titel h2,
.projektartikel-neu-titel h3,
.projektartikel-neu-titel div,
.projektartikel-neu-titel span {
    font-size: 32px !important;
}
/* ===================================
   Projektgalerie
   =================================== */

.projektgalerie {
    width: 800px;
    margin: 25px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.projektgalerie-bild {
    width: calc(50% - 6px);
    text-align: center;
}

.projektgalerie-bild img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.projektgalerie .projektgalerie-bild img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
}