/*
 * Bausteine der redaktionellen Unterseiten
 * ----------------------------------------
 * Gemeinsame Grundformen von Pages/ausbildung, Pages/azubirekrutierung
 * und Pages/job-und-karrierepartner: Ueberschrift, Fliesstext,
 * Aufzaehlung, Hinweiszeile, abgesetzter Kasten und Schaltflaeche.
 * Seitenspezifisches steht in der jeweils eigenen Datei.
 *
 * Werte aus webroot/less/variables.less abgelesen und ausgeschrieben,
 * weil das LESS im Projekt nicht mehr kompiliert wird und
 * CSS-Custom-Properties wegen IE11 ausscheiden.
 *
 *   @brand-primary   #00305D
 *   @brand-secondary #264f75
 *   @gray-lighter    #f1f1f1
 *   @gray-dark       #333333
 *   @font-size-base  15px   @font-size-h2 24px   @font-size-h3 19px
 */

.inhalt {
    margin-bottom: 40px;
}

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

.inhalt-text {
    margin: 0 0 12px;
    color: #333333;
    font-size: 15px;
    line-height: 1.428571429;
}

.inhalt-vorspann {
    margin: 0 0 8px;
    color: #00305d;
    font-size: 15px;
    font-weight: 700;
}

.inhalt-liste {
    margin: 0 0 15px;
    padding: 0;
    list-style: none;
}

.inhalt-liste > li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 18px;
    color: #333333;
    font-size: 15px;
    line-height: 1.428571429;
}

/* Aufzaehlungszeichen als kleines Navy-Quadrat */
.inhalt-liste > li:before {
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #00305d;
    content: "";
}

/*
 * Hinweiszeile ("Tipp", "Wichtig") - abgesetzt ueber eine Navy-Kante,
 * ohne Sonderzeichen, damit sie auch im IE11 sauber steht.
 */
.inhalt-hinweis {
    margin: 0 0 12px;
    padding: 10px 15px;
    border-left: 4px solid #00305d;
    background-color: #f1f1f1;
    color: #333333;
    font-size: 15px;
    line-height: 1.428571429;
}

/*
 * Abgesetzter Abschnitt auf hellem Grund - fuer Inhalte, die aus dem
 * Fliesstext herausstechen sollen, ohne die Navy-Flaechen der Kacheln
 * zu wiederholen.
 */
.inhalt-infobox {
    margin: 30px 0 0;
    padding: 25px 25px 20px;
    border-top: 4px solid #00305d;
    background-color: #f1f1f1;
}

.inhalt-infobox-titel {
    margin: 0 0 15px;
    color: #00305d;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

/*
 * Schaltflaeche mit schraegem Anschnitt - Formsprache wie .more-link
 * und .infodl-aktion. Der Versatz links gleicht den Anschnitt aus, damit
 * die Unterkante buendig zum Text steht.
 */
a.inhalt-aktion {
    display: inline-block;
    margin: 4px 0 16px 13px;
    padding: 8px 22px;
    background-color: #00305d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transform: skew(-35deg);
    transition: background-color 200ms;
}

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

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

/* In einem Kasten steht die Schaltflaeche am Absatzende */
.inhalt-infobox a.inhalt-aktion {
    margin-bottom: 5px;
}

.inhalt-vorteile {
    margin-top: 30px;
}

/*
 * Nummerierter Block, z. B. die drei Angebote auf der Seite zur
 * Ausbildungsplatz-Suche.
 */
.inhalt-block {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f1f1;
}

.inhalt-block:last-of-type {
    border-bottom: 0;
}

.inhalt-block-titel {
    margin: 0 0 12px;
    color: #00305d;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.inhalt-nummer {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    background-color: #00305d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    vertical-align: 2px;
}

@media screen and (max-width: 767px) {
    .inhalt-block-titel {
        font-size: 17px;
    }

    .inhalt-infobox {
        padding: 18px 15px 15px;
    }

    .inhalt-infobox-titel {
        font-size: 19px;
    }

    a.inhalt-aktion {
        display: block;
        max-width: 260px;
        text-align: center;
    }
}

/*
 * Titelbild einer Inhaltsseite.
 *
 * Steht zwischen Hauptueberschrift und Einleitung und laeuft ueber die
 * volle Inhaltsbreite. Die Dateien liegen bereits im Seitenverhaeltnis
 * der Flaeche vor, damit kein object-fit noetig ist - das kennt der
 * IE11 nicht.
 */
.inhalt-titelbild {
    margin: 0 0 25px;
}

.inhalt-titelbild picture,
.inhalt-infobox-bild picture {
    display: block;
}

.inhalt-titelbild img,
.inhalt-infobox-bild img {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * Bild innerhalb einer Infobox. Zieht sich ueber deren Innenabstand hinweg
 * bis an die Kanten, damit es nicht wie eingeklebt wirkt.
 */
.inhalt-infobox-bild {
    margin: -25px -25px 20px;
}

/*
 * "Weiter lesen" - Aufklapper ueber Bootstrap-Collapse.
 *
 * Kein eigenes Skript noetig, jQuery und bootstrap.min liegen im Layout.
 * Das Dreieck dreht sich mit, gesteuert ueber aria-expanded - dasselbe
 * Vorgehen wie beim Aufklapper des Jobfinders.
 */
.inhalt-mehr-link,
.inhalt-mehr-link:link,
.inhalt-mehr-link:visited {
    color: #00305d;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.inhalt-mehr-link:hover,
.inhalt-mehr-link:focus {
    color: #264f75;
    text-decoration: underline;
}

.inhalt-mehr-link:after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 0 2px 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 200ms;
}

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

/*
 * Hinweis auf der Detailseite einer Initiativ-Anzeige - dieselbe
 * Kennzeichnung wie in der Kachel der Trefferliste (finder.less,
 * .nf-event.initiativ). Farbe: @brand-secondary aus variables.less.
 */
.job-initiativ-hinweis {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 10px;
    background-color: #264f75;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
}
