@charset "UTF-8";

/* ========================================
   Vorstand
   ======================================== */

.vorstand-kategorie {
    font-weight: 600;
    font-size: 110%;
    background-color: var(--companycolor2);
    padding: 1rem;
    border-top: 1px solid #9D9D9D;
}

/* ========================================
   Grid Container
   ======================================== */

.vorstand-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

/* ========================================
   Karte
   ======================================== */

.vorstand-card {
    display: flex;
    flex-direction: column;

    background: #fff;
    overflow: hidden;

    box-shadow: 0 0 5px rgba(0,0,0,.5);

    height: 100%;
    transition: box-shadow .2s ease;
}

.vorstand-card:hover {
    box-shadow: 0 0 5px rgba(0,0,0,.3);
}

/* ========================================
   Bildbereich
   ======================================== */

.vorstand-card-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        #f2f2f2 0%,
        #e6e6e6 100%
    );
}

.vorstand-card-image a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.vorstand-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center top;
}

/* ========================================
   Inhalt
   ======================================== */

.vorstand-card-content {
    padding: 1rem;

    display: flex;
    flex-direction: column;
    gap: .35rem;

    flex-grow: 1;
}

/* Nur Textstruktur, keine Kontaktzeilen zerstören */
.vorstand-funktion,
.vorstand-name {
    display: block;
}

.vorstand-telefon,
.vorstand-email {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    line-height: 1.4;
}

.vorstand-funktion {
    font-weight: 600;
}

.vorstand-name {
    font-size: 1.05rem;
}

/* ========================================
   Fall: Es existieren keine Bilder
   ======================================== */

.vorstand-box.no-images .vorstand-card-image {
    display: none;
}

/* =========================
   Kontakt-Icons (SVG)
   ========================= */

.vorstand-contact {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    line-height: 1.4;

    color: inherit;
    text-decoration: none;
}

.vorstand-contact:hover {
    text-decoration: underline;
}

.vorstand-contact svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    display: block;
    fill: currentColor;
    opacity: .6;
}



/* ========================================
   Responsive
   ======================================== */

@media screen and (max-width: 650px) {

    .vorstand-box {
        grid-template-columns: 1fr;
    }

}

@media screen and (max-width: 450px) {

    .vorstand-card-image {
        height: 240px;
    }

}