/* ============================================================
   ACHIM FISCHER - BLOG DESIGN (MOBILE OVERLAP FINAL)
   ============================================================ */

/* 1. HEADER & BRANDING */
.site-title, .site-description { display: none !important; }
.site-header { 
    position: relative; 
    min-height: 260px; 
    background-size: cover !important; 
    background-position: center center !important;
}
[class*="search"], [id*="search"], .search-toggle, .search-form, #search-container { display: none !important; }

/* 2. HAUPTMENÜ (DUNKELBLAU & BÜNDIG) */
.main-navigation, .menu-toggle, .main-navigation-container { 
    background-color: #345d82 !important; 
    margin: 0 !important;
    border: none !important;
}
.main-navigation a { color: #ffffff !important; font-weight: 700 !important; font-size: 18px !important; text-transform: uppercase; padding: 15px 20px !important; }

/* Hover & Aktiv Effekte */
.main-navigation li:hover > a, .main-navigation a:hover { background-color: #4a76a1 !important; }
.main-navigation .current_page_item > a, .main-navigation .current-menu-item > a { background-color: #264663 !important; }

/* 3. TEXT-OPTIK & NAMENS-HEADER */
.entry-content { font-size: 20px; line-height: 1.65; }
.entry-content a { color: #555555 !important; text-decoration: underline !important; }
.entry-header::before {
    content: "Achim Fischer"; display: block; margin-bottom: 1.5rem; font-size: 2.5rem; text-transform: uppercase; color: #555; font-weight: 500;
}



/* 4. SIDEBAR: PROFILBOX & SOCIAL-BUTTONS */
#secondary .widget, #secondary .widget ul, #secondary .widget li, #secondary .widget h4 {
    border: none !important; background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important;
}
#secondary .widget h4 { color: #345d82 !important; font-size: 20px !important; font-weight: 700 !important; margin-top: 15px !important; margin-bottom: 10px !important; }
#secondary .widget ul { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; list-style: none !important; margin: 10px 0 !important; padding: 0 !important; }
#secondary .widget ul li a {
    display: inline-block !important; background-color: #f1f5f9 !important; color: #345d82 !important; padding: 6px 12px !important; border-radius: 4px !important; font-size: 14px !important; font-weight: 600 !important; border: 1px solid #d1dbe5 !important; text-decoration: none !important;
}

/* 5. FOOTER & ÜBERSCHRIFTEN-FIX */
.site-footer, #colophon, #main, .site-main, article, #page { border: none !important; box-shadow: none !important; }
.site-footer { background-color: #f1f5f9 !important; padding: 20px 0 !important; border-top: none !important; }
.site-footer::before, .site-footer::after, #main::before, #main::after { display: none !important; content: none !important; }
.site-footer .widget-title, .site-footer .widget-title a { color: #345d82 !important; text-decoration: none !important; pointer-events: none !important; cursor: default !important; font-weight: 700 !important; }
.site-footer a, .site-footer .widget a { color: #345d82 !important; text-decoration: none !important; }
.entry-footer, .site-info { display: none !important; }

/* 6. BLOG-LISTE: BLAUE TITEL STATT GRÜN */
.blog .entry-title a, 
.archive .entry-title a,
.blog .entry-header h1 a {
    color: #345d82 !important; /* Dein Website-Blau */
    text-decoration: none !important;
}

/* Hover-Effekt: Wird beim Drüberfahren heller */
.blog .entry-title a:hover, 
.archive .entry-title a:hover {
    color: #4a76a1 !important; 
    text-decoration: underline !important;
}

/* Fix für den kleinen Pfeil am Ende */
.blog .entry-title a::after {
    color: #345d82 !important;
}

/* 7. FORCE FIX FÜR GRÜNE LINKS */

/* Erzwingt Blau für ALLE Links in der Blog-Übersicht */
.blog article a, 
.blog .more-link, 
.blog .entry-title a {
    color: #345d82 !important;
}

/* Speziell für den "Weiterlesen" Pfeil-Link */
a.more-link {
    color: #345d82 !important;
    text-decoration: none !important;
}

/* Hover-Effekt */
.blog article a:hover, 
.blog .more-link:hover {
    color: #4a76a1 !important;
    text-decoration: underline !important;
}

/* 8. DER LETZTE VERSUCH GEGEN DAS GRÜN */

/* Zielt exakt auf die Archiv-Links und deren Hover-Zustand */
.blog .entry-title a, 
.archive .entry-title a, 
.blog-entry-title a,
.post-navigation a,
a.post-link {
    color: #345d82 !important;
}

/* Der kleine Pfeil am Ende wird oft separat gefärbt */
.blog .entry-title a:after, 
.archive .entry-title a:after {
    color: #345d82 !important;
}

/* Hover-Zustand in deinem Hellblau */
.blog .entry-title a:hover, 
.archive .entry-title a:hover,
.blog-entry-title a:hover {
    color: #4a76a1 !important;
    text-decoration: underline !important;
}


/* 10. FIX: NEUESTE BEITRÄGE LISTE (KEINE BUTTON-OPTIK) */

/* Entfernt den Button-Look für die Beitragsliste in der Sidebar */
#secondary .widget_recent_entries ul,
#secondary .wp-block-latest-posts {
    display: block !important; /* Untereinander statt nebeneinander */
    margin-top: 20px !important;
}

#secondary .widget_recent_entries ul li,
#secondary .wp-block-latest-posts li {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 12px !important; /* Abstand zwischen den Titeln */
    display: block !important;
    width: 100% !important;
}

#secondary .widget_recent_entries ul li a,
#secondary .wp-block-latest-posts li a {
    display: block !important;
    background: none !important;
    border: none !important;
    color: #345d82 !important; /* Dein Website-Blau */
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    padding: 0 !important;
}

#secondary .widget_recent_entries ul li a:hover,
#secondary .wp-block-latest-posts li a:hover {
    background: none !important;
    text-decoration: underline !important;
    color: #4a76a1 !important;
}


/* ================================
   MOBILE HEADER FIX
   ================================ */
@media (max-width: 768px) {

  header,
  .site-header,
  .page-header {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 0 !important;
  }

  header img,
  .site-header img,
  .page-header img {
    width: 100%;
    height: auto;
    display: block;
  }
}