/* ===== Vorstand Page – Standalone Override ===== */

/* Container: Flex-Wrap */
.page-id-36 .cont {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
}

/* Alles was NICHT .vorstand ist: volle Breite, linksbündig */
.page-id-36 .cont > *:not(.vorstand) {
    flex: 0 0 100% !important;
    float: none !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #384656 !important;
    padding: 12px 0 4px !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

/* Vorstand-Karten: vertikal, 3 pro Reihe */
.page-id-36 .vorstand {
    flex: 0 0 calc(33.333% - 16px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    float: none !important;
    width: auto !important;
    background: #fff !important;
    border: none !important;
    border-top: 4px solid #87b7ec !important;
    border-radius: 0 0 6px 6px !important;
    padding: 24px 16px 20px !important;
    box-shadow: 0 1px 4px rgba(56,70,86,0.08) !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.page-id-36 .vorstand:hover {
    border-top-color: #5a9de0 !important;
    box-shadow: 0 4px 14px rgba(135,183,236,0.22) !important;
}

/* Foto */
.page-id-36 .vorstand img {
    width: 180px !important;
    height: 220px !important;
    max-width: 180px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 0 0 14px 0 !important;
    flex-shrink: 0 !important;
}
/* Logos (nicht-Personen): contain statt cover */
.page-id-36 .vorstand img[src*="logo"],
.page-id-36 .vorstand img[src*="Logo"],
.page-id-36 .vorstand img[src*="wappen"],
.page-id-36 .vorstand img[src*="Wappen"] {
    object-fit: contain !important;
    background: #f8f9fb;
    padding: 16px !important;
}

/* Foto-Container (.left:first-child) */
.page-id-36 .vorstand > .col-md-6.left:first-child {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* Text-Container (.left:nth-child(2)) */
.page-id-36 .vorstand > .col-md-6.left:nth-child(2) {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Name – größer */
.page-id-36 .vorstand > .left:nth-child(2) > span:first-child b {
    color: #384656 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    display: block !important;
}

/* Position – größer */
.page-id-36 .vorstand > .left:nth-child(2) > span:not(:first-child) b {
    color: #87b7ec !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

/* Kontaktdaten – größer */
.page-id-36 .vorstand > .left:nth-child(2) > span:not(:first-child) {
    color: #576685 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    display: block !important;
    margin-top: 0 !important;
}

/* Spans in .weit / .ehren */
.page-id-36 .vorstand .weit > span,
.page-id-36 .vorstand .ehren > span {
    width: auto !important;
}

/* Zeilenumbruch-Element */
.page-id-36 .vorstand-row-break {
    flex: 0 0 100% !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

/* before_posts_head */
.page-id-36 .before_posts_head {
    clear: both !important;
    flex: 0 0 100% !important;
    border-bottom: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Cont > div span fix */
.page-id-36 .cont > div span {
    text-align: center !important;
}

/* Ehrenmitglieder-Kacheln: Stern-Icon statt Foto */
.page-id-36 .ehren-card .ehren-icon {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #87b7ec 0%, #5a9de0 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 14px 0 !important;
    flex-shrink: 0 !important;
}
.page-id-36 .ehren-card .ehren-icon i {
    font-size: 36px !important;
    color: #fff !important;
}
.page-id-36 .ehren-card {
    border-top-color: #c5a44e !important;
}
.page-id-36 .ehren-card:hover {
    border-top-color: #b08d30 !important;
}

/* HotelFriend Logo im Footer: Breite skalieren */
.copy_foot img,
.logo_foot img[src*="hotelfriend"],
.logo_foot img[src*="HotelFriend"],
img[alt*="HotelFriend"],
img[alt*="hotelfriend"] {
    width: 100% !important;
    height: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
}

/* ===== Tablet: 2 pro Reihe ===== */
@media screen and (max-width: 1200px) {
    .page-id-36 .vorstand {
        flex: 0 0 calc(50% - 12px) !important;
    }
}

/* ===== Mobile: 1 pro Reihe ===== */
@media screen and (max-width: 600px) {
    .page-id-36 .vorstand {
        flex: 0 0 100% !important;
    }
    .page-id-36 .vorstand img {
        width: 150px !important;
        height: 190px !important;
        max-width: 150px !important;
    }
}
