/*
 * Inhaltselement "Weitere Informationen und Downloads" (Seite Arbeitgeber)
 * -----------------------------------------------------------------------
 * Rendert \App\View\Cell\InfoDownloadsCell.
 *
 * Werte wie in den uebrigen eigenen Stylesheets aus
 * webroot/less/variables.less abgelesen und ausgeschrieben, weil das LESS
 * im Projekt nicht mehr kompiliert wird und CSS-Variablen wegen IE11
 * ausscheiden.
 *
 *   @brand-primary   #00305D
 *   @brand-secondary #264f75
 *   @gray-lighter    #f1f1f1
 *   @gray-dark       #333333
 *   @font-size-base  15px    @font-size-h2 24px
 */

/* Abstand nach oben, weil die Servicekacheln davor keinen mitbringen */
.infodl {
    margin-top: 40px;
    margin-bottom: 40px;
}

.infodl-titel {
    margin: 0 0 20px;
    color: #00305d;
    font-size: 24px;
    font-weight: 700;
}

.infodl-liste {
    margin: 0;
    padding: 0;
    border-top: 1px solid #f1f1f1;
    list-style: none;
}

.infodl-eintrag {
    border-bottom: 1px solid #f1f1f1;
}

/* Zeile mit Ziel: vollstaendig anklickbar */
a.infodl-link {
    display: block;
    padding: 14px 20px;
    color: #00305d;
    font-size: 15px;
    line-height: 1.428571429;
    text-decoration: none;
    transition: background-color 200ms;
}

a.infodl-link:hover,
a.infodl-link:focus {
    background-color: #f1f1f1;
    color: #00305d;
    text-decoration: none;
}

.infodl-name {
    display: inline-block;
    font-weight: 600;
}

/*
 * Schaltflaeche am rechten Rand. Der schraege Anschnitt ist die
 * wiederkehrende Formsprache des Projekts, siehe .more-link.
 */
.infodl-aktion {
    display: inline-block;
    float: right;
    margin-left: 20px;
    padding: 2px 18px;
    background-color: #00305d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transform: skew(-35deg);
}

/* Der Text selbst bleibt gerade - wie bei .more-link */
.infodl-aktion > span {
    display: block;
    transform: skew(35deg);
}

a.infodl-link:hover .infodl-aktion,
a.infodl-link:focus .infodl-aktion {
    background-color: #264f75;
}

/* Zeile ohne Ziel: sichtbar, aber nicht anklickbar */
.infodl-eintrag--folgt {
    padding: 14px 20px;
    color: #666666;
    font-size: 15px;
    line-height: 1.428571429;
}

.infodl-eintrag--folgt .infodl-name {
    font-weight: 600;
}

.infodl-hinweis {
    float: right;
    margin-left: 20px;
    color: #666666;
    font-size: 13px;
    font-style: italic;
}

/* Umbruch der Zeilen aufheben */
.infodl-eintrag:after,
a.infodl-link:after {
    display: table;
    clear: both;
    content: " ";
}

@media screen and (max-width: 767px) {
    a.infodl-link,
    .infodl-eintrag--folgt {
        padding: 12px 10px;
    }

    .infodl-aktion,
    .infodl-hinweis {
        display: block;
        float: none;
        margin: 8px 0 0;
    }

    .infodl-aktion {
        max-width: 110px;
        text-align: center;
    }
}
