/*
 * Contao 5 setzt die Klassen first/last/even/odd an Listeneinträgen, Suchergebnissen und
 * Inhaltselementen nicht mehr. Die Regeln aus dem Theme (files/template/lzg2018/css/lzg.scss),
 * die daran hängen, hier mit Strukturselektoren nachgebildet. Geladen nach dem Theme-CSS.
 */

/* Newslisten (news_aktuell) und Listen upcoming/themen */
.layout_news_aktuell:nth-child(1 of .layout_news_aktuell),
.layout_upcoming:nth-child(1 of .layout_upcoming),
.layout_themen:nth-child(1 of .layout_themen) {
    margin-top: 10px;
}

.layout_news_aktuell:nth-last-child(1 of .layout_news_aktuell),
.layout_upcoming:nth-last-child(1 of .layout_upcoming),
.layout_themen:nth-last-child(1 of .layout_themen) {
    border-bottom: 1px solid #00588c;
}

/* Suchergebnisse: Contao 5 vergibt statt first/even/odd den Templatenamen */
.mod_search div.search_default {
    border-top: 1px solid #00588c;
    padding-top: 14px;
    padding-bottom: 12px;
}

.mod_search div.search_default time {
    padding-left: 10px;
}

.mod_search div.search_default a {
    text-decoration: none;
}

.mod_search div.search_default a:before {
    margin: 0 10px;
}

.mod_search div.search_default:nth-child(1 of .search_default) {
    margin-top: 10px;
}

.mod_search div.search_default:nth-last-child(1 of .search_default) {
    border-bottom: 1px solid #00588c;
}

/* Team- und Shoplisten: kein Abstand, wenn der Block das letzte Element des Artikels ist
   (Contao 4 setzte last am letzten Inhaltselement, nicht am letzten Team-Block) */
.cmu_main .ce_text.team:last-child:after,
.cmu_main .ce_text.shopliste:last-child:after,
.cmu_main .ce_text.shoplisteohne:last-child:after {
    margin-bottom: 0;
}
