/* ==========================================================================
   WHO Suite – Frontend Styles
   Enthält beide Layouts: Ansprechpartner (hell) und Team Members (dunkel)
   ========================================================================== */

/* ---- Shared utility ---- */
.who-icon {
    display: block;
    flex-shrink: 0;
}

/* ==========================================================================
   ANSPRECHPARTNER – White Card Layout  [ansprechpartner]
   ========================================================================== */

.who-ap-container {
    width: 100%;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.who-ap-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.who-ap-card {
    flex: 0 0 280px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.who-ap-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Image */
.who-ap-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.who-ap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

/* Text */
.who-ap-location {
    width: 100%;
    text-align: center;
    padding: 16px 12px 4px;
    color: #990000;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
}

.who-ap-name {
    width: 100%;
    text-align: center;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 17px;
    color: #1d2327;
}

.who-ap-position {
    width: 100%;
    text-align: center;
    padding: 4px 12px 14px;
    color: #646970;
    font-size: 13px;
}

/* Phone link */
.who-ap-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px 12px;
    color: #1d2327;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.who-ap-phone:hover {
    color: #990000;
    text-decoration: none;
}

.who-ap-phone .who-icon {
    width: 18px;
    height: 18px;
    color: #990000;
    flex-shrink: 0;
}

.who-ap-phone span {
    line-height: 1;
}

/* Email button */
.who-ap-email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #990000;
    color: #ffffff;
    padding: 11px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    width: 80%;
    max-width: 220px;
    line-height: 1;
    transition: background 0.2s ease;
}

.who-ap-email-btn:hover,
.who-ap-email-btn:focus {
    background: #770000;
    color: #ffffff;
    text-decoration: none;
}

.who-ap-email-btn .who-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.who-ap-email-btn span {
    line-height: 1;
}

/* Responsive */
@media (max-width: 1280px) {
    .who-ap-card { flex: 0 0 260px; }
    .who-ap-grid { gap: 20px; }
}

@media (max-width: 600px) {
    .who-ap-card {
        flex: 0 0 100%;
        max-width: 320px;
    }
    .who-ap-grid { justify-content: center; }
}

/* ==========================================================================
   TEAM MEMBERS – Dark Burgundy Layout  [team_members]
   Gleiche Struktur wie Ansprechpartner, aber Bordeaux-Farben
   ========================================================================== */

.who-tm-container {
    width: 100%;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Default: bis zu 4 Karten in einer Reihe */
.who-tm-card {
    flex: 0 0 calc(25% - 15px);
    background: #9c0f06 !important;
    border-radius: 6px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 0 22px 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.who-tm-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-3px);
}

/* Image */
.who-tm-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.who-tm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

/* Standort */
.who-tm-location {
    width: 100%;
    text-align: center !important;
    padding: 18px 16px 4px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Name */
.who-tm-name {
    width: 100%;
    text-align: center !important;
    padding: 4px 16px 6px !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    color: #fff !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Position */
.who-tm-position {
    width: 100%;
    text-align: center !important;
    padding: 0 16px 4px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Firma / Abteilung */
.who-tm-company {
    width: 100%;
    text-align: center !important;
    padding: 0 16px 16px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Telefon-Link */
.who-tm-phone {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    width: 100%;
    padding: 6px 16px 14px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.who-tm-phone:hover {
    opacity: 0.8;
    color: #fff !important;
    text-decoration: none !important;
}

.who-tm-phone svg {
    display: block;
    flex-shrink: 0;
    opacity: 0.85;
}

.who-tm-phone span {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* E-Mail-Button */
.who-tm-email-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    padding: 13px 28px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    width: 80% !important;
    max-width: 260px !important;
    margin: 0 auto !important;
    line-height: 1 !important;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.who-tm-email-btn:hover,
.who-tm-email-btn:focus {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.who-tm-email-btn svg {
    display: block;
    flex-shrink: 0;
}

.who-tm-email-btn span {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Column variants – überschreiben den Standard calc(25%) */
.who-tm-container.columns-1 .who-tm-card { flex: 0 0 280px; }
.who-tm-container.columns-2 .who-tm-card { flex: 0 0 calc(50% - 10px); max-width: 400px; }
.who-tm-container.columns-3 .who-tm-card { flex: 0 0 calc(33.333% - 14px); }
.who-tm-container.columns-4 .who-tm-card { flex: 0 0 calc(25% - 15px); }

/* Style variants */
.who-tm-container.style-rounded .who-tm-card      { border-radius: 12px; }
.who-tm-container.style-rounded .who-tm-image img { border-radius: 12px 12px 0 0; }
.who-tm-container.style-bordered .who-tm-card     { border: 1px solid rgba(255,255,255,.15); box-shadow: none; }
.who-tm-container.style-minimal  .who-tm-card     { box-shadow: none; }

/* Responsive – Tablet */
@media screen and (max-width: 900px) {
    .who-tm-card,
    .who-tm-container.columns-3 .who-tm-card,
    .who-tm-container.columns-4 .who-tm-card {
        flex: 0 0 calc(50% - 10px);
    }
    .who-tm-image { height: 240px; }
}

/* Responsive – Mobil */
@media screen and (max-width: 560px) {
    .who-tm-card,
    .who-tm-container.columns-2 .who-tm-card,
    .who-tm-container.columns-3 .who-tm-card,
    .who-tm-container.columns-4 .who-tm-card {
        flex: 0 0 100%;
        max-width: 340px;
    }
    .who-tm-image { height: 280px; }
}
