/*
 * Zentrale Custom-Styles für das Theme demokratiegeschichte-2020.
 *
 * Hier liegen projekt-eigene Overrides, die vorher im Customizer unter
 * "Design → Zusätzliches CSS" gepflegt wurden. Quelle: Export 2026-04-16.
 * Geladen via wp_enqueue_style('dg-custom', ...) in functions.php nach
 * perfect-magazine-style, damit die Kaskade die Theme-Defaults überschreibt.
 *
 * WICHTIG: Sobald dieses File live verifiziert ist, muss das Customizer-Feld
 * "Zusätzliches CSS" geleert werden (Design → Customizer → Zusätzliches CSS),
 * sonst laufen die Regeln doppelt.
 */

/* CSS Stage 02.10.2020 */


/* Seite ausrichten */

.site-content {
    margin: 0 auto !important;
}

#content {
    max-width: 1200px
}

/* Schriften */

body {
    font-family: 'Alegreya Sans', sans-serif
}

h1, h2, h3 {
    font-family: 'Catamaran', sans-serif;
    hyphens: none;
    font-weight: 500;
}

ul, ol {
    margin: 0;
}

p {
    font-size: 1.1em
}


/* Zitate */
blockquote {
    color: #333;
    line-height: 1.2em;
}

.wp-block-quote {
    border-radius: 0
}

blockquote p {
    hyphens: auto;
}

@media (max-width: 499px) {
    blockquote p {
        font-size: 20px;
    }
}

@media (min-width: 500px) {
    blockquote p {
        font-size: 2em;
    }
}


/* Header */

@media (max-width: 399px) {
    .site-branding {
        width: 35%;
    }

    h2, h3 {
        font-size: 20px
    }

    p {
        font-size: 14px
    }
}

@media (min-width: 400px) {
    .site-branding {
        width: 17%;
    }
}

.site-branding {
    text-align: left;
    margin-left: 20px
}

@media (max-width: 399px) {
    .header-middle {
        height: 220px;
        margin: 0 16px;
    }
}

@media (min-width: 400px) {
    .header-middle {
        height: 420px;
    }
}

@media (max-width: 399px) {
    .startblock h2 {
        font-size: 20px
    }

    .startblock h3 {
        font-size: 14px;
        margin-top: -10px
    }

    .startblock p {
        font-size: 11px;
        margin-top: 30px
    }
}

@media (min-width: 400px) {
    .startblock h2 {
        font-size: 50px
    }

    .startblock p {
        margin: 50px auto;
        width: 50%;
    }

}

/* Navigation */

.home .navigation-area {
    border-bottom: 1px solid #ccc
}

.main-navigation .menu > ul {
    text-align: right;
}

/* Block auf Startseite */

.startblock {
    text-align: center;
}


/* Footer */

.feature-block.recent-blog, .feature-block.recent-blog .container {
    display: none;
}

/* Kacheln Startseite */

.entry-footer {
    display: none;
}

/* Einzelbeitrga Meta */

.entry-meta {
    display: none;
}

/* Text-Body und Randspalte Abstand */

aside#secondary {
    padding-left: 40px;
}

/* Einzel-Seiten */


.page.no-sidebar .site-content article.hentry {
    max-width: 800px;
    margin: 0 auto;
}

h1.entry-title {
    width: 100%;
    line-height: 2em;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 600;
    font-size: 42px;
    letter-spacing: 0.16px;
}

/* nav prev-next */

.nav-previous, .nav-next {
    background-color: #f5f5f5
}

.single-post .post-navigation {
    display: none;
}

/* Startseiten-Widget-Border */

.article-content-1 {
    border: 0;
}

@media (max-width: 399px) {
    .article-content-1 {
        background: #fff;
        border-bottom: 20px solid #fff;

    }

}


@media (min-width: 400px) {
    .widget-reihe {
        background: #f5f5f5;
        border: 0;
        margin-left: 2px;
        margin-right: 2px;
        border-bottom: 1px solid #aaa;
    }

    .widget-spalte-1, .widget-spalte-2 {
        margin: 0 !important;
        padding: 0 !important;
    }

    .widget-spalte-2:nth-of-type(-n+2) {
        border-right: 20px solid #fff;
        background: #f5f5f5;
        border-bottom: 1px solid #aaa;
    }

    .widget-spalte-1:nth-of-type(-n+3) {
        border-right: 20px solid #fff;
        background: #f5f5f5;
        border-bottom: 1px solid #aaa;
    }
}


.article-content, .homepage-widgetarea .widget-header-wrapper, .category .widget-header-wrapper {
    background: #f5f5f5;
    border-bottom: 1px solid #aaa;
}

.homepage-widgetarea .tm-widget:nth-child(even) {

    background: #fff;
}

.widget-header-wrapper .widget-title {
    margin-top: 10px
}

.widget-title {
    text-transform: none;
    font-family: Catamaran, sans-serif;
    font-size: 35px;
}

/* grauer Hintergrund */

#content {
    background-color: #fff;
    padding-top: 30px
}

.site-content {
    margin: 0;
    padding: 50px auto
}

.article-vertical-list {
    height: 100%;
    border-bottom: 1px solid #aaa;
    background-color: #f5f5f5;
}

/* Widgets in der Randspalte */
aside .widget {
    background-color: #fff;
}

.widget p, .widget .full-item-content {
    padding: 0 20px
}

.widget h3 {
    padding-top: 20px
}

.widget .post-description {
    border-bottom: 30px solid #fff;
    margin-bottom: 30px
}

.item-metadata {
    display: none
}

/* Excerpte in Widgets */

.home .widget p {
    padding: 0;
}

.tm-recent-widget .widget p {
    padding: 0 20px 20px 20px
}

/* Kommentare */

#comments {
    display: none;
}

/* Bildunterschriften */

.caption {
    font-size: 0.7em;
    padding-top: 4px
}

/* Toggle für Mitgliederliste */

#toggle-view {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 80%;
}

#toggle-view li {
    margin: 10px;
    border-bottom: 1px solid #ccc;
    position: relative;
    cursor: pointer;
}

#toggle-view span {
    position: absolute;
    right: 5px;
    top: 0;
    color: #ccc;
    font-size: 0.8em;
}

#toggle-view p {
    margin: 5px 0;
    display: none;
}

ul#toggle-view img {
    float: left;
    padding: 0 10px 10px 0;
}

/* Paginierung auf Category-Seiten */

.navigation.posts-navigation {
    clear: both;
}

/* Padding für Artikel-Seiten */
.entry-content {
    padding: 10px
}


/* grau outline für Randspalte */

#secondary .widget-title, .item-title, #secondary h4 {
    text-transform: none;
    color: #333;
    font-family: Catamaran, sans-serif;
    font-weight: 500;
}


#secondary .widget-title, .widget .full-item-content {
    background-color: #f5f5f5;
    border-bottom: 1px solid #aaa;
}

.widget .full-item-content {
    padding-bottom: 20px;
    border-bottom: 1px solid #aaa;
}

.widget .full-item-content h3 {
    font-weight: 600;
}

/* Blog-Übersichtsseiten */

.category {
    font-size: 100%
}

body.archive.no-sidebar #main article {
    float: left;
}

body.archive.no-sidebar #main article:nth-child(2n+1) {
    clear: none;
}

body.archive.no-sidebar #main article:nth-child(4n+1) {

}

body.archive.no-sidebar #main article {
    width: 25%;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.article-content-1 {
    height: 280px;
}

.col-sm-12 .article-content {
    min-height: 380px;
}

.widget-header-wrapper {
    padding-bottom: 0px;
}

/* neue Navigation für Köpfe */


.drop-nav.demgesch ul a:hover {
    color: #e20024 !important;
}


.entry-content {
    max-width: 950px;
}
