/* ============================================================
   GLAREAN MAGAZIN – FINALE OPTIMIERTE FASSUNG
============================================================ */

/* ============================================================
   1. EINHEITLICHE TYPOGRAFIE
============================================================ */
body, p, .entry-content, h1, h2, h3, h4, h5, h6, 
.widget-title, .site-title, .site-description, .menu-item a, 
.wp-block-heading, input, textarea, button {
    font-family: Georgia, "Times New Roman", serif !important;
}

/* ============================================================
   2. BRANDING & LOGO
============================================================ */
.site-logo-text .inner-wrap, .site-title, .site-title a, .nv-title-tag a {
    font-size: 42px !important;
    font-weight: bold !important;
    color: #e30000 !important;
    line-height: 1.05 !important;
}

header .site-description, .site-description {
    font-size: 20px !important;
    color: #e30000 !important;
    margin-top: -5px !important;
    padding-top: 0 !important;
    line-height: 1.1 !important;
}

.site-branding { line-height: 1 !important; }
.site-title { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* ============================================================
   3. TYPOGRAFIE & LESBARKEIT
============================================================ */
body, p, .entry-content {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: #1a1a1a !important;
}

p { margin-bottom: 1.25em !important; }

/* ============================================================
   4. TITEL & LINKS
============================================================ */
.entry-title, .entry-title a, .home article h2, .home article h2 a, 
.archive article h2, .archive article h2 a {
    color: #e30000 !important;
}

h1, h2, h3, .entry-title, .wp-block-heading {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.entry-title a:hover, .home article h2 a:hover, .archive article h2 a:hover {
    color: #990000 !important;
}

.home article h2, .archive article h2 { font-size: 22px !important; line-height: 1.2 !important; }
.home article p, .archive article p { font-size: 16px !important; line-height: 1.5 !important; }

/* ============================================================
   5. LAYOUT-STABILITÄT (DESKTOP GRID)
============================================================ */
@media (min-width: 992px) {
    .container { max-width: 1260px !important; }
    .nv-sidebar-wrap { flex: 0 0 340px !important; max-width: 340px !important; width: 340px !important; }
    .nv-index-posts, .nv-single-post-wrap {
        flex: 1 !important;
        max-width: calc(100% - 340px) !important;
        padding-right: 35px !important;
    }
}

/* ============================================================
   6. SIDEBAR (HAUPT-ELEMENTE)
============================================================ */
.widget-title {
    font-size: 19px !important;
    color: #2e7d32 !important;
    border-bottom: 1px solid #2e7d32 !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.5px !important;
}

.widget.widget_authors ul { column-count: 2 !important; column-gap: 15px !important; list-style: none !important; padding: 0 !important; }
.widget.widget_authors li, .widget.widget_authors a { font-size: 15px !important; line-height: 1.3 !important; }
.widget a { text-decoration-thickness: 1px !important; }

/* ============================================================
   7. SIDEBAR (SCHLAGWORT-RUBRIKEN & TAGS)
============================================================ */

/* NUR die Titel (Musik, Literatur etc.) schwarz und fett */
#secondary .widget h2, #secondary .widget h3, #secondary .widget h4,
#secondary .widget-title + p strong {
    font-size: 17px !important;
    font-weight: bold !important;
    color: #333333 !important;
    margin-top: 18px !important;
    margin-bottom: 5px !important;
    display: block !important;
}

/* NUR die Schlagwort-Links in der Tagcloud/Sidebar verkleinern (Mitarbeiter bleiben blau) */
#secondary .widget .tagcloud a, 
#secondary .widget .textwidget a {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

/* ============================================================
   8. META-DATEN & NAVIGATION
============================================================ */
.home .entry-meta, .archive .entry-meta, .home .nv-meta-list, .archive .nv-meta-list, 
.home .posted-on, .archive .posted-on, .home .entry-date, .archive .entry-date {
    display: none !important;
}

.header-main-inner { padding-top: 10px !important; padding-bottom: 10px !important; }
.nav-ul a { font-size: 18px !important; color: #222 !important; }
.nav-ul a:hover { color: #e30000 !important; }

/* ============================================================
   9. BILDER & BILDLEGENDEN (KOMPAKT & DEZENT)
============================================================ */
.wp-post-image, .entry-content img { border-radius: 2px !important; }

.single .wp-caption-text, .single figcaption, .single .caption, .single .gallery-caption {
    font-style: italic !important;
    color: #666666 !important;
    font-size: 0.85em !important; /* Etwas kleiner als vorher (0.92em) */
    margin-top: 0.4rem !important;
    margin-bottom: 0.3rem !important; /* Nochmals reduziert */
    line-height: 1.3 !important;
}

.single figure { margin-bottom: 1.1rem !important; } /* Kompakterer Anschluss an Text */

/* ============================================================
   10. EINZELBEITRAG – TITELBEREICH
============================================================ */
.single .nv-title-meta-wrap, .single .entry-header { display: flex !important; flex-direction: column !important; }

.single .nv-meta-list, .single .cat-links {
    order: -1 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 0.8rem !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #2e7d32 !important;
    font-weight: bold !important;
}

.single .cat-links a { color: #2e7d32 !important; text-decoration: none !important; }
.single .entry-title { text-align: center !important; margin-bottom: 0 !important; line-height: 1.25 !important; }
.single .entry-date, .single .posted-on, .single .byline, .single .comments-link { display: none !important; }

.single .artikel-untertitel {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    color: #333 !important;
    max-width: 760px !important;
    margin: -1.8rem auto 0.2rem auto !important;
    font-weight: bold !important;
    display: block;
}

.single .artikel-meta {
    text-align: center !important;
    font-style: italic !important;
    color: #555 !important;
    font-size: 1.1rem !important;
    margin: 0.85rem auto 2.2rem auto !important;
}

/* ============================================================
   11. EXCERPT & ABSOLUTE FONT OVERRIDE
============================================================ */
.nv-post-content p, .entry-summary, .entry-excerpt, .excerpt-wrap {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

html body, html body p, html body div, html body span, html body li, 
html body article, html body .entry-content {
    font-family: Georgia, "Times New Roman", serif !important;
}

/* ============================================================
   12. MOBILE OPTIMIERUNG
============================================================ */
@media (max-width: 768px) {
    .site-title, .site-title a { font-size: 32px !important; }
    .site-description { font-size: 16px !important; }
    body, p, .entry-content { font-size: 17px !important; }
    .home article h2 { font-size: 19px !important; }
    .single .artikel-untertitel { font-size: 1.2rem !important; margin: -1.4rem auto 0.3rem auto !important; }
}

/* ============================================================
   13. STARTSEITE & SIDEBAR-BUTTONS
============================================================ */
.home article p { margin-bottom: 8px !important; }
.home .entry-content p:last-of-type { font-style: italic !important; margin-top: -5px !important; color: #555 !important; }

.sidebar .wp-block-button__link, .sidebar button, .sidebar input[type="submit"] {
    background: #2e7d32 !important;
    border-color: #2e7d32 !important;
    color: #ffffff !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: bold !important;
}
.sidebar .wp-block-button__link:hover { background: #1b5e20 !important; }