@charset "utf-8";
/* Formatierung Überschrift */
h2 {
    width: 80%;
    max-width: 31.25rem;
    margin: 0 auto var(--fs-600) auto;
    text-align: center;
    font-weight: 300;
    line-height: 1.5;
    text-transform: uppercase;
    font-size: var(--fs-600);
    color: var(--grey);
    letter-spacing: 1px;
}



/* ab Bildschirmen über 430 Pixel Breite Doppelstriche */
@media only screen and (min-width: 430px) {
    h2 {
        /* Striche vor und nach Überschrift */
        display: grid;
        grid-template-columns: 1fr max-content 1fr;
        grid-template-rows: 27px 0;
        grid-gap: 20px;
        align-items: center;
    }    
    /*Striche vor und nach Überschrift*/
    h2:after, 
    h2:before {
        content: "";
        display: block;
        border-bottom: 1px solid var(--grey);
        border-top: 1px solid var(--grey);
        height: 5px;
    }
}

/* LAYOUT */
    /* Mobile Ansicht */
.aboutus {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 
    "linkMuehlberger"
    "linkCaroline"
    "linkGutenbrunner"
    "linkTrainerpool";
    place-items: center;
    gap: 2rem;
}

    /* Größere Bildschirme Ansicht (Bilder nebeneinander) */
@media only screen and (min-width: 1200px) {
    .aboutus {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas: 
        "linkMuehlberger linkCaroline linkGutenbrunner"
        "linkTrainerpool linkTrainerpool linkTrainerpool";
        max-width: 70rem;
        margin: 0 auto;
    }
}

/* Grid Areas benennen */
#linkMuehlberger {
    grid-area: linkMuehlberger;
}

#linkGutenbrunner {
    grid-area: linkGutenbrunner;
}

#linkTrainerpool {
    grid-area: linkTrainerpool;
}

#linkCaroline {
    grid-area: linkCaroline
}

/* Gestaltung Linkboxen */
.trainerLink {
    position: relative;
}

/* Link geht über ganze Box */
.trainerLink a {
    width: 100%;
    height: 100%;
    display: inline-block;
    position: absolute;
}

/* Bild */
.trainerLink img{
    height: 60vh;
    min-height: 25rem;
    max-height: 35rem;
    width: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* Name formatieren */
.trainerLink h3 {
    text-align: center;
    font-size: var(--fs-500);
    color: var(--grey);
    font-weight: 100;
    padding-top: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Hover Effekt */
.trainerLink:hover,
.trainerLink:focus {
    transform: scale(105%);
}


/* Trainerpool */
.trainerpool {
    width: 100%;
    height: 100px;
    text-align: center;
    margin-top: 3rem;
}