/*
 * Stellen-Kachel (Element Stellenangebote/kachel.ctp).
 *
 * Trefferliste unter /stellenangebote.html, Vorschau des Jobfinders auf
 * der Startseite und Liste der Stellengesuche (Stellengesuche/liste.ctp). Seit 20.10.2026 im neuen Aussehen: weisse Kachel mit
 * hellem Rahmen und farbigem Streifen links, ohne graue Flaechen und
 * Trennlinien.
 *
 * Eigene Klassen statt `.nf-event`: Die alten Regeln in finder.less /
 * nf-styles.css haengen an `#produkte .nf-event` und greifen hier nicht.
 * Wer hier etwas aendert, muss deshalb NICHT gegen `#produkte` anschreiben.
 *
 * Farben aus webroot/less/variables.less: Navy #00305D, Sekundaer #264f75.
 * Das Gruen des TOP-Kennzeichens ist eine dunklere Stufe von #58a618 -
 * mit weisser Schrift erreicht #58a618 nur 3,1:1, #458213 dagegen 4,7:1
 * (WCAG AA). Gruen bleibt Statusfarbe, die Aktion "Details" ist Navy.
 *
 * IE11: Flexbox statt Grid, keine CSS-Variablen, kein line-clamp.
 */

.stellen-kachel {
    display: -ms-flexbox;
    display: flex;
    margin: 0 0 12px;
    padding: 14px 18px 14px 16px;
    background-color: #ffffff;
    border: 1px solid #dfe4ea;
    border-left: 4px solid #c5ced8;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 48, 93, 0.05);
    color: #5b6774;
    text-decoration: none;
    -webkit-transition: box-shadow 0.15s, border-color 0.15s;
    transition: box-shadow 0.15s, border-color 0.15s;
}

/* Erste Kachel der Trefferliste mit Abstand zum Filterkasten daneben */
#produkte .stellen-kachel:first-child {
    margin-top: 30px;
}

.stellen-kachel:hover,
.stellen-kachel:focus {
    border-color: #b9c6d4;
    border-left-color: #8fa1b5;
    box-shadow: 0 3px 10px rgba(0, 48, 93, 0.12);
    color: #5b6774;
    text-decoration: none;
}

.stellen-kachel:focus {
    outline: 2px solid #00305D;
    outline-offset: 2px;
}

.stellen-kachel:hover .stellen-kachel-details,
.stellen-kachel:focus .stellen-kachel-details {
    text-decoration: underline;
}

/* TOP: hellblaue Flaeche, Navy-Streifen */
.stellen-kachel--top {
    background-color: #eef4fa;
    border-color: #d3e0ed;
    border-left-color: #00305D;
}

.stellen-kachel--top:hover,
.stellen-kachel--top:focus {
    border-color: #b9cce0;
    border-left-color: #00305D;
}

/* Initiativ: Streifen im Sekundaer-Navy */
.stellen-kachel--initiativ,
.stellen-kachel--initiativ:hover,
.stellen-kachel--initiativ:focus {
    border-left-color: #264f75;
}

/* ---- Linke Spalte: Text ---------------------------------------------- */

.stellen-kachel-inhalt {
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
    padding-right: 20px;
}

.stellen-kachel-meta {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 20px;
}

.stellen-kachel-angabe {
    display: inline-block;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #ccd4dd;
    white-space: nowrap;
}

.stellen-kachel-angabe:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
}

.stellen-kachel-symbol {
    width: 14px;
    height: 14px;
    margin: -2px 5px 0 0;
    vertical-align: middle;
    fill: currentColor;
}

.stellen-kachel-marke {
    display: inline-block;
    margin-right: 10px;
    padding: 0 7px;
    border-radius: 3px;
    background-color: #458213;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: top;
}

.stellen-kachel-marke--initiativ {
    background-color: #264f75;
    letter-spacing: 0;
    text-transform: none;
}

/* body h2 in nf-styles.css setzt eine Linie darunter - hier nicht */
.stellen-kachel-titel {
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    color: #00305D;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

/*
 * Hoechstens zwei Zeilen Text. Gekuerzt wird serverseitig
 * (beschreibungLaenge), die Hoehe kappt nur, was bei schmalen Spalten
 * trotzdem umbricht - line-clamp kennt der IE11 nicht.
 */
.stellen-kachel-text {
    max-height: 3em;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
}

.stellen-kachel-firma {
    color: #2b3a4a;
    font-size: 13px;
    font-weight: 700;
}

/* ---- Rechte Spalte: Logo und "Details" ------------------------------- */

.stellen-kachel-seite {
    display: -ms-flexbox;
    display: flex;
    -ms-flex: 0 0 200px;
    flex: 0 0 200px;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* Steht auch ohne Logo, damit "Details" immer unten rechts sitzt */
.stellen-kachel-logo {
    display: -ms-flexbox;
    display: flex;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 40px;
    overflow: hidden;
    font-size: 12px;
    word-wrap: break-word;
}

.stellen-kachel-logo img {
    max-width: 170px;
    max-height: 70px;
    height: auto;
}

.stellen-kachel-details {
    -ms-flex-item-align: end;
    align-self: flex-end;
    color: #00305D;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.stellen-kachel-details .stellen-kachel-symbol {
    margin: -2px 0 0 4px;
}

/*
 * Ohne Logo-Spalte: Stellengesuche haben nie ein Logo. "Details" rutscht
 * nach unten rechts (Spalte) bzw. nach rechts (Zeile, mobil).
 */
.stellen-kachel--ohne-logo .stellen-kachel-seite {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

/* ---- Mobil: einspaltig, Logo unter dem Text -------------------------- */

@media screen and (max-width: 767px) {
    .stellen-kachel {
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 12px 14px 12px 12px;
    }

    .stellen-kachel-inhalt {
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        padding-right: 0;
    }

    .stellen-kachel-titel {
        font-size: 17px;
    }

    .stellen-kachel-seite {
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        -ms-flex-direction: row;
        flex-direction: row;
        -ms-flex-align: end;
        align-items: flex-end;
        margin-top: 8px;
    }

    .stellen-kachel-logo {
        -ms-flex-pack: start;
        justify-content: flex-start;
        min-height: 0;
    }

    .stellen-kachel-logo img {
        max-width: 140px;
        max-height: 50px;
    }
}

/*
 * Hinweis statt Liste ("keine Treffer", "nur fuer Firmen") - in der
 * Spalte der Liste, oben buendig mit dem Filterkasten daneben.
 */
.stellen-hinweis {
    margin: 30px 0;
}

@media screen and (max-width: 991px) {
    .stellen-hinweis {
        margin-top: 15px;
    }
}

@media print {
    .stellen-kachel {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
