/*
 * Inhaltselement "Jobfinder" (Startseite)
 * ---------------------------------------
 * Rendert \App\View\Cell\JobFinderCell.
 *
 * Alle Werte stammen aus webroot/less/variables.less und sind hier bewusst
 * ausgeschrieben: Das LESS wird im Projekt nicht mehr kompiliert und
 * CSS-Variablen scheiden aus, weil die Trefferkacheln noch IE11 (-ms-grid)
 * bedienen.
 *
 *   @brand-primary   #00305D
 *   @brand-secondary #264f75
 *   @gray-lighter    #f1f1f1
 *   @gray-dark       #333333
 *   @font-size-base  15px    @font-size-h3 19px    Kopfzeile 18px
 */

.jobfinder {
    margin-bottom: 40px;
}

/* Kopfbalken mit der projekttypischen Schräge, vgl. .nf-filter-head */
.jobfinder-head {
    display: inline-block;
    position: relative;
    height: 35px;
    margin: 0;
    padding: 0 15px;
    border: 0;
    background-color: #00305d;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 35px;
}

.jobfinder-head:after {
    content: "";
    position: absolute;
    top: 0;
    right: -35px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 35px 35px 0 0;
    border-color: #00305d transparent transparent transparent;
}

.jobfinder-form {
    padding: 15px;
    border: 1px solid #f1f1f1;
}

.jobfinder-row {
    margin-bottom: 10px;
}

.jobfinder-row > div {
    margin-bottom: 10px;
}

.jobfinder-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 15px;
}

/* Hauptaktion: Navy statt des sonst üblichen Bootstrap-Blaus */
.jobfinder-submit,
a.jobfinder-submit {
    display: inline-block;
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #002a52;
    border-radius: 0;
    background-color: #00305d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.428571429;
    text-align: center;
    transition: background-color 200ms;
}

.jobfinder-submit:hover,
.jobfinder-submit:focus,
a.jobfinder-submit:hover,
a.jobfinder-submit:focus {
    background-color: #264f75;
    color: #ffffff;
    text-decoration: none;
}

/* Aufklapper für die Zusatzfilter */
.jobfinder-toggle {
    margin-top: 5px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: #00305d;
    font-size: 15px;
    font-weight: 600;
}

.jobfinder-toggle:after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 0 2px 10px;
    border-right: 2px solid #00305d;
    border-bottom: 2px solid #00305d;
    transform: rotate(45deg);
    transition: transform 200ms;
}

.jobfinder-toggle[aria-expanded="true"]:after {
    margin-bottom: -2px;
    transform: rotate(-135deg);
}

.jobfinder-erweitert {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #f1f1f1;
}

.jobfinder-erweitert.is-collapsed {
    display: none;
}

.jobfinder-checks {
    margin: 0;
    padding: 0;
    border: 0;
}

.jobfinder-checks .checkbox {
    margin: 0 0 5px;
}

.jobfinder-checks label {
    display: inline-block;
    font-weight: 400;
}

/* Hinweis am Umkreisfeld, nur sichtbar solange keine PLZ eingetragen ist */
.jobfinder-hint {
    display: none;
    margin-top: 4px;
    color: #777777;
    font-size: 11px;
}

.jobfinder-hint.is-visible {
    display: block;
}

/*
 * Treffervorschau.
 *
 * Aussehen der Kacheln kommt aus webroot/css/stellen-kachel.css. Hier
 * wird nur verdichtet, damit fuenf Anzeigen auf die Startseite passen,
 * ohne die Teaser darunter zu verdraengen. In der Vorschau entfaellt die
 * Beschreibung (Parameter zeigeBeschreibung der Kachel).
 */
.jobfinder-results {
    margin-top: 25px;
}

.jobfinder-results .stellen-kachel {
    margin-bottom: 10px;
}

.jobfinder-more {
    text-align: right;
}

.jobfinder-more .jobfinder-submit {
    width: auto;
    min-width: 220px;
}

@media screen and (max-width: 767px) {
    .jobfinder-head {
        display: block;
    }

    .jobfinder-head:after {
        display: none;
    }

    .jobfinder-more .jobfinder-submit {
        width: 100%;
    }
}

@media print {
    .jobfinder-form,
    .jobfinder-more {
        display: none;
    }
}

/*
 * Gleiche Hoehe fuer alle Kacheln der Vorschau.
 *
 * Ohne diese Regeln richtet sich jede Kachel nach ihrem Inhalt und die
 * Liste wirkt unruhig. Zwei Dinge treiben die Hoehe auseinander: Titel,
 * die auf zwei Zeilen umbrechen, und die Firmenlogos.
 *
 * Rechnung (border-box): Rand 2px + Innenabstand 28px + Kopfzeile 24px +
 * Titel zwei Zeilen 50px + Abstand 4px + Firma 20px = 128px.
 *
 * Gilt nur hier. Die Trefferliste unter /stellenangebote.html behaelt
 * ihre inhaltsabhaengige Hoehe - dort ist Platz, und die Beschreibung
 * wird mit ausgegeben.
 */
.jobfinder-results .stellen-kachel {
    height: 128px;
    overflow: hidden;
}

/*
 * Lange Titel kappen statt die Kachel dehnen: 19px bei Zeilenhoehe 1.3
 * ergeben knapp 25px je Zeile, zwei Zeilen passen in 50px. `line-clamp`
 * gibt es im IE11 nicht.
 */
.jobfinder-results .stellen-kachel-titel {
    max-height: 50px;
    overflow: hidden;
}

.jobfinder-results .stellen-kachel-logo img {
    max-height: 56px;
}

/*
 * Mobil keine feste Hoehe: Dort steht das Logo unter dem Text, und die
 * Kacheln stehen ohnehin einspaltig untereinander.
 *
 * Steht bewusst am Dateiende: Bei gleicher Spezifitaet gewinnt die
 * spaetere Regel.
 */
@media screen and (max-width: 767px) {
    .jobfinder-results .stellen-kachel {
        height: auto;
        overflow: visible;
    }

    .jobfinder-results .stellen-kachel-titel {
        max-height: none;
    }
}
