/* ═══════════════════════════════════════════════════════════
   TEAM – page-team.css
   CI: Rot #d4121c | Gelb #FFDE12 | Dunkel #161922
   ═══════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────── */
.tm-hero {
    position: relative;
    min-height: 900px;
    display: flex;
    align-items: center;
    background: var(--dark, #161922);
    padding: 120px 0 80px;
    overflow: hidden;
}
.tm-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 1;
}
/* kein Overlay auf der Team-Seite */
.tm-hero__overlay { display: none; }
.tm-hero--bg .tm-hero__bg { opacity: 1; }
/* Hero hat keinen Text-Content mehr */

/* ── TEAM SECTION ─────────────────────────────────────────── */
.tm-section {
    padding: 80px 0 60px;
    background: #fff;
}

/* ── ABTEILUNG ────────────────────────────────────────────── */
.tm-abteilung {
    margin-bottom: 72px;
}
.tm-abteilung:last-child { margin-bottom: 0; }

.tm-abt-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--dark, #161922);
    margin-bottom: 75px;
    text-align: center;
    position: relative;
}

/* ── MEMBER GRID ──────────────────────────────────────────── */
/* Basis: bis 4 Spalten, zentriert wenn weniger als 4 */
.tm-members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 32px;
}

/* Genau 1 Person */
.tm-members-grid--1 .tm-member { flex: 0 0 240px; max-width: 240px; }

/* Genau 2 Personen */
.tm-members-grid--2 .tm-member { flex: 0 0 240px; max-width: 240px; }

/* Genau 3 Personen */
.tm-members-grid--3 .tm-member { flex: 0 0 240px; max-width: 240px; }

/* 4 oder mehr */
.tm-members-grid--4 .tm-member { flex: 0 0 240px; max-width: 240px; }

/* ── MEMBER CARD ──────────────────────────────────────────── */
.tm-member {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ── BILD + HOVER ─────────────────────────────────────────── */
/* Die Bilder sind vorgeschnittene PNGs mit Transparenz (Play-Button Form)
   → kein clip-path, einfach normal anzeigen mit object-fit: contain */
.tm-member__img-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.tm-member__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    transition: opacity 0.35s ease;
}

.tm-member__img--hover {
    opacity: 0;
}

.tm-member__img-wrap.has-hover:hover .tm-member__img--primary {
    opacity: 0;
}
.tm-member__img-wrap.has-hover:hover .tm-member__img--hover {
    opacity: 1;
}

/* Placeholder wenn kein Bild */
.tm-member__img-placeholder {
    position: absolute;
    inset: 0;
    background: #e8e8e6;
    border-radius: 8px;
    z-index: 1;
}

/* ── MEMBER INFO ──────────────────────────────────────────── */
.tm-member__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 4px;
}
.tm-member__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark, #161922);
    display: block;
    margin-bottom: 2px;
}
.tm-member__role {
    font-size: 14px;
    color: #555;
    display: block;
    line-height: 1.4;
    margin-bottom: 2px;
}
.tm-member__phone,
.tm-member__email {
    font-size: 14px;
    font-weight: 500;
    color: var(--red, #d4121c);
    text-decoration: none;
    display: block;
    transition: opacity 0.2s;
}
.tm-member__phone:hover,
.tm-member__email:hover { opacity: 0.75; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .tm-members-grid--4 .tm-member { flex: 0 0 210px; max-width: 210px; }
    .tm-member__img-wrap { width: 210px; height: 210px; }
}

@media (max-width: 900px) {
    .tm-members-grid { gap: 32px 24px; }
    .tm-members-grid--4 .tm-member,
    .tm-members-grid--3 .tm-member { flex: 0 0 200px; max-width: 200px; }
    .tm-member__img-wrap { width: 200px; height: 200px; }
}

@media (max-width: 640px) {
    .tm-hero { padding: 90px 0 60px; min-height: 380px; }
    .tm-section { padding: 56px 0 40px; }
    .tm-abteilung { margin-bottom: 56px; }
    .tm-members-grid { gap: 28px 20px; }
    .tm-members-grid--1 .tm-member,
    .tm-members-grid--2 .tm-member,
    .tm-members-grid--3 .tm-member,
    .tm-members-grid--4 .tm-member {
        flex: 0 0 160px;
        max-width: 160px;
    }
    .tm-member__img-wrap { width: 160px; height: 160px; }
    .tm-member__name { font-size: 14px; }
    .tm-member__role,
    .tm-member__phone,
    .tm-member__email { font-size: 12px; }
}

@media (max-width: 380px) {
    .tm-members-grid--1 .tm-member,
    .tm-members-grid--2 .tm-member,
    .tm-members-grid--3 .tm-member,
    .tm-members-grid--4 .tm-member {
        flex: 0 0 140px;
        max-width: 140px;
    }
    .tm-member__img-wrap { width: 140px; height: 140px; }
}



/* ── ABTEILUNGS-TITEL (2-Wort, Story-Style) ──────────────── */
.tm-abt-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 75px;
    justify-content: center;
}

.tm-abt-title__left {
    display: inline-block;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--dark, #161922);
    line-height: 1.0;
}

.tm-abt-title__right {
    display: inline-block;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--dark, #161922);
    background: var(--yellow, #FFDE12);
    padding: 2px 14px 2px 8px;
    border-radius: 3px;
    line-height: 1.0;
    /* clip-path wird per JS gesetzt, nicht CSS */
}

@media (max-width: 640px) {
    .tm-abt-title__left,
    .tm-abt-title__right { font-size: clamp(22px, 7vw, 36px); }
}
