/* =================================================================
   ESTILOS · FACHKRÄFTE
   Se carga SOLO en fachkraefte.php y de/fachkraefte.php
   Reutiliza las variables :root --empresa-color-* de styles.css
   ================================================================= */

/* ---------- Portada de sección (banner superior) ---------- */
.fachkraefte-portada-section {
    background: url('../../imagenes/candidatos-top.jpg') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 420px;
}

/* ---------- Intro superior ---------- */
.fachkraefte-intro-section {
    background-color: #d3d3d3;
    padding: 60px 20px 50px;
}

.fachkraefte-intro-title {
    font-family: 'Lato', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #4A4A49;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.fachkraefte-intro-text {
    font-size: 1.1rem;
    color: #333;
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Sección del listado ---------- */
.fachkraefte-listado-section {
    padding: 60px 15px 40px;
}

.fachkraefte-vacio {
    font-size: 1.2rem;
    color: #555;
    padding: 60px 0;
    text-align: center;
}

.fachkraefte-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ---------- Tarjeta candidato (es un enlace) ---------- */
.fachkraft-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.08);
    transition: filter 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.fachkraft-card:hover {
    filter: brightness(1.06);
    box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.13);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

.fachkraft-card:focus-visible {
    outline: 3px solid rgba(255,255,255,0.7);
    outline-offset: 2px;
}

/* Colores rotando igual que las ofertas */
.fachkraft-rojo    { background-color: var(--empresa-color-rojo); }
.fachkraft-naranja { background-color: var(--empresa-color-naranja); }
.fachkraft-amarillo{ background-color: var(--empresa-color-amarillo); }

/* ---------- Badge KNR ---------- */
.fachkraft-badge {
    flex: 0 0 auto;
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* ---------- Contenido principal ---------- */
.fachkraft-main {
    flex: 1 1 auto;
    min-width: 0;
}

.fachkraft-titulo {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.25;
    color: #ffffff;
}

/* ---------- Chips ---------- */
.fachkraft-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fachkraft-chip {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 999px;
    white-space: nowrap;
}

.fachkraft-chip-alter::before      { content: "👤 "; }
.fachkraft-chip-verfuegbar::before { content: "📅 "; }

/* ---------- Flecha externa ---------- */
.fachkraft-arrow {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color 0.25s ease;
}

.fachkraft-card:hover .fachkraft-arrow {
    background-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Bloque de contacto al final ---------- */
.fachkraefte-contacto-section {
    padding: 0 15px 60px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .fachkraefte-portada-section  { height: 280px; }
    .fachkraefte-intro-section    { padding: 44px 18px 36px; }
    .fachkraefte-intro-title      { font-size: 1.75rem; }
    .fachkraefte-intro-text       { font-size: 1rem; }
    .fachkraefte-listado-section  { padding: 36px 10px 30px; }

    .fachkraft-card {
        padding: 18px 16px;
        gap: 14px;
    }
    .fachkraft-titulo { font-size: 1.1rem; }
    .fachkraft-chip   { font-size: 0.78rem; padding: 4px 10px; }
    .fachkraft-arrow  { width: 30px; height: 30px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .fachkraft-badge { display: none; }
}
