/* ÄUSSERER MODULABSTAND */
.teamBoxenElementOuter {
    margin-top: 20px;
}

/* CONTAINER FÜR ALLE TEAM-ELEMENTE */
.teamBoxenElementOuter .team-outer {
    display: flex;
    flex-wrap: wrap;
    row-gap: 40px;
}

/* EINZELNE SPALTE */
.teamBoxenElementOuter .team-inner {
    position: relative;
}

/* ÄUSSERE BOX MIT RAHMEN */
.teamBoxenElementOuter .teamBoxenElementSelf {
    position: relative;
    margin-top: 0;
    border: 1px solid #DDD;
}

/* BILD BEREICH: KEIN ABSTAND, BILD VOLLFLÄCHIG */
.teamBoxenElementSelfPic {
    margin: 0;
    padding: 0;
}

.teamBoxenElementSelfPic img {
    display: block;
    width: 100%;
    height: auto;
}
    width: 100%;
    height: auto;
}

/* FLEX-LAYOUT FÜR DIE TEAM-KACHELN */
.team-outer {
    display: flex;
    flex-wrap: wrap;
}

.team-inner {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}

/* TEXTBLOCK UNTER DEM BILD, LEICHT ÜBER DEN RAND (TEASER) */
.teamBoxenElementOuter .teamBoxenElementSelf .teamBoxenElementSelfText {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -37px;                      /* wie ursprünglich: etwas aus dem Rahmen heraus */
    overflow: hidden;
    background-color: rgba(255,255,255,.9);
    padding: 6px 10px;
    max-height: 36px;                   /* TEASER-HÖHE: eine Zeile sichtbar */
    transition: all .4s ease;
}

.teamBoxenElementOuter .teamBoxenElementSelf .teamBoxenElementSelfText .teamBoxenElementSelfTextUe {
    font-weight: 700;
    color: #AF231C;
    font-size: 17px;
}

/* HOVER / TAP: KOMPLETTER TEXT SICHTBAR, LINKS KLICKBAR */
.team-inner:hover .teamBoxenElementSelfText {
    bottom: 0;                          /* Box in den Rahmen hochziehen */
    max-height: 1000px;                 /* groß genug, damit ALLES reinpasst */
    overflow: visible;                  /* nichts wird abgeschnitten, Links voll klickbar */
}

.teamBoxenElementOuter .teamBoxenElementSelf .teamBoxenElementSelfText .teamBoxenElementSelfTextInfo {
    margin-top: 10px;
    font-size: 14px;
}

.team-inner:hover .teamBoxenElementSelfText a {
    color: #AF231C;
}

/* RESPONSIVE ANPASSUNG FÜR MOBILE */
@media (max-width: 767px) {

    .team-inner {
        position: relative;
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Gleicher Mechanismus auf Mobile: Teaser + bei Tap/„Hover“ komplett geöffnet */
    .teamBoxenElementOuter .teamBoxenElementSelf .teamBoxenElementSelfText {
        bottom: -37px;
        max-height: 36px;               /* Teaser-Höhe */
    }

    .team-inner:hover .teamBoxenElementSelfText {
        bottom: 0;
        max-height: 1000px;             /* alles sichtbar */
        overflow: visible;
    }
}