:root {
    --primary: #284b64;
}

.intro{
    padding-bottom: 8vh;
    font-size: 1.5vw;
    font-weight: bold;
}

.intro a{
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
}

.skill_image{
    margin: 0vh -5.5vw;
    margin-bottom: 6vh;
    height: 35vh;
    background-size: 100% auto;
    background-repeat: no-repeat;
}

.skill_image#elektrische_antriebstechnik{
    background-image: url('../images/leistung_1.webp');
}

.skill_image#internet_der_dinge{
    background-image: url('../images/leistung_2.webp');
}

.skill_image#mathematische_modelle{
    background-image: url('../images/leistung_3.webp');
}

.skill_image#signalverarbeitung{
    background-image: url('../images/leistung_4.webp');
}

.skill_image#softwareentwicklung{
    background-image: url('../images/leistung_5.webp');
}

.posts_section{
    padding-bottom: 10vh;
}

.headline{
    padding-bottom: 4vh;
    font-size: 2.5vw;
    font-weight: bold;
    color: var(--primary);
    text-align: left;
}

.posts_subheadline{
    padding-bottom: 2vh;
    font-size: 1.6vw;
    font-weight: bold;
    color: var(--primary);
    text-align: left;
}

.posts_grid + .posts_subheadline{
    margin-top: 4.3vw;
}

.posts_grid{
    display: flex;
    flex-wrap: wrap;
    gap: 2vw;
    justify-content: space-between;
}

.post_card{
    width: 26vw;
    max-width: 504px;
    min-width: 230px;
}

.post_embed{
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    transition: max-height 0.4s ease;
}

.post_caption{
    padding-top: 1vh;
    font-size: 1.2vw;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
}

.post_embed.is-expanded{
    max-height: 2200px;
}

.post_embed iframe{
    width: 100%;
    border: none;
    display: block;
}

.post_toggle{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8em;
    border: none;
    background: linear-gradient(to top, rgba(255,255,255,0.97), rgba(255,255,255,0));
    color: var(--primary);
    font-weight: bold;
    font-family: inherit;
    font-size: 0.9vw;
    cursor: pointer;
    text-align: center;
}

.post_placeholder{
    width: 100%;
    aspect-ratio: 504 / 620;
    border: 2px dashed #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 1vw;
    font-weight: bold;
    text-align: center;
    padding: 2vw;
    box-sizing: border-box;
}

@media screen and (orientation:portrait){
    .intro{
        font-size: 4vw;
        padding-bottom: 4vh;
    }

    .skill_image{
        margin: 0vh -5vw;
        margin-bottom: 2vh;
        height: 12vh;
    }

    .posts_section{
        padding-bottom: 6vh;
    }

    .headline{
        font-size: 6.5vw;
        padding-bottom: 2vh;
    }

    .posts_subheadline{
        font-size: 5vw;
        padding-bottom: 2vh;
    }

    .posts_grid + .posts_subheadline{
        margin-top: 12.6vw;
    }

    .posts_grid{
        gap: 4vw;
    }

    .post_card{
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .post_embed{
        max-height: 240px;
    }

    .post_toggle{
        font-size: 3.5vw;
    }

    .post_caption{
        font-size: 3.8vw;
    }

    .post_placeholder{
        font-size: 3.5vw;
    }
}
