.wp-block-latest-posts__post-title {font-weight:bold;}

.wp-block-latest-posts.wp-block-latest-posts__list li {
	margin-top:50px;
}

/* Erdmannshain: ruhige Abstände und klare Terminübersicht */
@media (min-width: 922px) {
  .ast-desktop .ast-primary-header-bar .custom-logo-link img { width: 96px; max-width: 96px; }
  .ast-single-entry-banner[data-post-type="page"] { padding: 2em 3em; }
}
@media (max-width: 921px) {
  .ast-single-entry-banner[data-post-type="page"] { padding: 1.75em 1.25em; }
  .site-title { font-size: clamp(1.1rem, 4vw, 1.65rem); }
}
.page-id-3567 .wp-block-media-text { display: block; }
.page-id-3567 .wp-block-media-text__media { width: 120px; margin: 0 0 20px; }
.page-id-3567 .wp-block-media-text__content { display: none; }
.page-id-3567 .wp-block-table { overflow-x: auto; }
.page-id-3567 .wp-block-table table { min-width: 530px; }
.category-aktuelles .ast-article-post .ast-article-inner { border-top: 2px solid #057812; }

/* Archivnavigation und kompakter mobiler Kopfbereich */
.ast-breadcrumbs-wrapper { display: none !important; }
.erdmannshain-archive-years { margin: 0 0 32px; }
.erdmannshain-archive-years h2 { margin-bottom: 8px; }
.erdmannshain-archive-years p { margin-bottom: 16px; }
.erdmannshain-archive-year-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.erdmannshain-archive-year-links a { display: block; min-width: 64px; padding: 9px 14px; border: 1px solid #057812; border-radius: 4px; color: #014609; background: #FFFFFF; text-align: center; text-decoration: none; }
.erdmannshain-archive-year-links a:hover, .erdmannshain-archive-year-links a:focus-visible { background: #057812; color: #FFFFFF; }
@media (max-width: 921px) {
  #ast-mobile-header .ast-primary-header-bar { padding-top: 12px; padding-bottom: 12px; }
  #ast-mobile-header .site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
  #ast-mobile-header .site-logo-img { flex: 0 0 72px; }
  #ast-mobile-header .custom-logo-link img { width: 72px; max-width: 72px; height: auto; }
  #ast-mobile-header .ast-site-title-wrap { min-width: 0; }
  #ast-mobile-header .site-title { font-size: clamp(17px, 4.4vw, 23px); line-height: 1.18; }
  #ast-mobile-header .site-header-primary-section-right { margin-left: 8px; }
  #ast-mobile-header .main-header-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; }
  #ast-mobile-header .main-header-menu-toggle .ast-mobile-svg { width: 30px; height: 30px; }
  .ast-single-entry-banner[data-post-type="page"] .entry-title { font-size: clamp(25px, 6vw, 32px); line-height: 1.2; }
}
@media (max-width: 544px) {
  .erdmannshain-archive-year-links a { min-width: 58px; padding: 9px 11px; }
}

/* Jahresauswahl ohne unterstrichene Standardlinks */
.entry-content .erdmannshain-archive-year-links a,
.entry-content .erdmannshain-archive-year-links a:hover,
.entry-content .erdmannshain-archive-year-links a:focus-visible { text-decoration: none; font-weight: 600; }

/* Fester Kopfbereich und eindeutige Navigation */
#masthead { position: sticky; top: 0; z-index: 1000; background: #FFFFFF; border-bottom: 1px solid #057812; }
body.admin-bar #masthead { top: 32px; }
.ast-single-entry-banner[data-post-type="page"] { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
#ast-desktop-header .main-header-menu > .current-menu-item > .menu-link,
#ast-desktop-header .main-header-menu > .current-menu-ancestor > .menu-link,
#ast-desktop-header .main-header-menu > .erdmannshain-active-menu > .menu-link,
#ast-mobile-header .main-header-menu > .current-menu-item > .menu-link,
#ast-mobile-header .main-header-menu > .current-menu-ancestor > .menu-link,
#ast-mobile-header .main-header-menu > .erdmannshain-active-menu > .menu-link { color: #014609; text-decoration: underline !important; text-decoration-color: #057812 !important; text-decoration-thickness: 2px !important; text-underline-offset: 7px; }

/* Der vorhandene Startseitentext folgt auf einen klaren Einstieg */
.erdmannshain-home-intro { padding: 32px; margin-bottom: 32px; border-left: 3px solid #057812; background: #FCFCFC; }
.erdmannshain-home-intro h2 { margin: 0 0 12px; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.12; color: #014609; }
.erdmannshain-home-intro p { max-width: 680px; margin: 0 0 24px; font-size: 19px; line-height: 1.5; }
.erdmannshain-home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.erdmannshain-home-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 4px; font-weight: 600; text-decoration: none !important; }
.erdmannshain-home-action-primary { background: #057812; color: #FFFFFF !important; }
.erdmannshain-home-action-secondary { border: 1px solid #057812; color: #014609 !important; background: #FFFFFF; }
.erdmannshain-home-action-primary:hover, .erdmannshain-home-action-primary:focus-visible { background: #014609; }
.erdmannshain-home-action-secondary:hover, .erdmannshain-home-action-secondary:focus-visible { background: #FCFCFC; }
.home .entry-content > p:first-of-type { font-size: 19px; line-height: 1.55; }
.home .entry-content > .wp-block-heading { font-size: clamp(30px, 2.6vw, 38px); }

/* Eine einzige, gut erkennbare Footerzeile */
.site-below-footer-wrap { background: #014609; color: #FFFFFF; padding: 22px 0; }
.site-below-footer-wrap .site-footer-below-section-1 { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-below-footer-wrap .ast-footer-copyright p { margin: 0; color: #FFFFFF; }
.site-below-footer-wrap .footer-navigation .menu-link { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.site-below-footer-wrap .footer-navigation .menu-link:hover, .site-below-footer-wrap .footer-navigation .menu-link:focus-visible { color: #FFFFFF; text-decoration-thickness: 2px; }
@media (max-width: 921px) {
  body.admin-bar #masthead { top: 46px; }
  .erdmannshain-home-intro { padding: 24px; }
  .erdmannshain-home-intro h2 { font-size: clamp(29px, 7vw, 38px); }
  .erdmannshain-home-intro p { font-size: 17px; }
  .site-below-footer-wrap .site-footer-below-section-1 { flex-direction: column; text-align: center; gap: 12px; }
}
@media (max-width: 544px) {
  .erdmannshain-home-intro { padding: 20px; }
  .erdmannshain-home-actions a { width: 100%; justify-content: center; }
}

/* Footerfläche gegen die Astra Hintergrundregel durchsetzen */
.site-footer .site-below-footer-wrap { background: #014609 !important; color: #FFFFFF !important; }
.site-footer .site-below-footer-wrap a { color: #FFFFFF !important; }

/* Rechtliche Links nebeneinander im unteren Footer */
.site-below-footer-wrap .footer-widget-area { flex: 0 0 auto; width: auto; }
.site-below-footer-wrap #astra-footer-menu { flex-wrap: nowrap; gap: 18px; white-space: nowrap; }
.site-below-footer-wrap #astra-footer-menu li { width: auto; margin: 0; }
@media (max-width: 921px) {
  .site-below-footer-wrap #astra-footer-menu { justify-content: center; gap: 14px; }
}

/* Aktuelles ohne zweite Titelzeile, Überschrift bleibt für Screenreader */
.category-aktuelles .ast-archive-description { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

/* Pfeil oberhalb der rechtlichen Footerlinks */
#ast-scroll-top { bottom: 100px !important; right: 20px; }
@media (max-width: 921px) { #ast-scroll-top { bottom: 110px !important; right: 16px; } }
/* Im schmalen Footer Abstand zu den rechtlichen Links halten. */
@media (max-width: 921px) { #ast-scroll-top { bottom: 170px !important; } }


/* Suche und Konto unter dem Desktopmenü. */
@media (min-width: 922px) {
  #ast-desktop-header .site-below-header-wrap { min-height: 48px; }
  #ast-desktop-header .site-header-below-section-right { gap: 8px; }
  #ast-desktop-header .ast-below-header-wrap .astra-search-icon,
  #ast-desktop-header .ast-below-header-wrap .ast-header-account-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }
}
/* Suche und Konto unmittelbar neben dem mobilen Menü. */
@media (max-width: 921px) {
  #ast-mobile-header .site-header-primary-section-left { min-width: 0; }
  #ast-mobile-header .site-header-primary-section-right { gap: 4px; flex: 0 0 auto; }
  #ast-mobile-header .astra-search-icon,
  #ast-mobile-header .ast-header-account-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; }
}
@media (max-width: 544px) {
  #ast-mobile-header .site-branding { gap: 8px; }
  #ast-mobile-header .site-logo-img { flex: 0 0 56px; }
  #ast-mobile-header .custom-logo-link img { width: 56px; max-width: 56px; }
  #ast-mobile-header .site-title { font-size: clamp(14px, 3.7vw, 17px); line-height: 1.16; }
  #ast-mobile-header .site-header-primary-section-right { margin-left: 4px; gap: 2px; }
}
@media (max-width: 340px) {
  #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row { grid-template-columns: minmax(0, 1fr) !important; }
  #ast-mobile-header .site-header-primary-section-right { margin-left: 0; justify-content: flex-end; }
}
/* Mobile Kopfzeile ohne Login und mit stabiler Breitenverteilung */
@media (max-width: 921px) {
  #ast-mobile-header .ast-header-account-wrap,
  #ast-mobile-header .ast-header-account-link {
    display: none !important;
  }

  #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  #ast-mobile-header .site-header-primary-section-left,
  #ast-mobile-header .site-branding,
  #ast-mobile-header .ast-site-identity {
    min-width: 0;
  }

  #ast-mobile-header .site-header-primary-section-right {
    gap: 4px;
    margin-left: 8px;
  }
}

@media (max-width: 544px) {
  #ast-mobile-header .ast-primary-header-bar {
    padding-left: 16px;
    padding-right: 16px;
  }

  #ast-mobile-header .site-branding {
    gap: 10px;
  }

  #ast-mobile-header .site-logo-img {
    flex: 0 0 54px;
  }

  #ast-mobile-header .custom-logo-link img {
    width: 54px;
    max-width: 54px;
  }

  #ast-mobile-header .ast-site-title-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  #ast-mobile-header .site-title {
    max-width: 170px;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.18;
  }

  #ast-mobile-header .site-title a {
    display: block;
  }

  #ast-mobile-header .astra-search-icon {
    min-width: 40px;
  }

  #ast-mobile-header .main-header-menu-toggle {
    min-width: 48px;
  }
}

@media (max-width: 340px) {
  #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  #ast-mobile-header .site-title {
    max-width: 135px;
    font-size: 14px;
  }
}

/* Das Bilderwidget bleibt in der Desktop Seitenleiste und wird mobil ausgeblendet. */
@media (max-width: 921px) {
  aside#slideshow-3 {
    display: none !important;
  }
}


/* Lesetypografie für Hauptseiten und Veranstaltungsbereiche. */
:is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content {
  color: #4A4B4E;
}

:is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content :where(p, ul, ol) {
  max-width: 68ch;
  line-height: 1.72;
}

:is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content p {
  margin-bottom: 1.35em;
}

:is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content :where(h2, h3, h4) {
  color: #014609;
  line-height: 1.12;
  text-wrap: balance;
}

:is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content h2 {
  margin-top: 1.75em;
  margin-bottom: 0.55em;
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
}

:is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.45em;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

:is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content :where(ul, ol) {
  margin-bottom: 1.5em;
  padding-left: 1.35em;
}

:is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content li {
  margin-bottom: 0.45em;
}

:is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.page-id-30 .entry-content > p:first-child,
.page-id-32 .entry-content > p:first-child {
  max-width: 62ch;
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  line-height: 1.68;
}

.entry-content .erdmannshain-event-list {
  max-width: 760px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(5, 120, 18, 0.28);
}

.entry-content .erdmannshain-event-list li {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid rgba(5, 120, 18, 0.28);
}

.entry-content .erdmannshain-event-list strong {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.page-id-3567 .entry-content .wp-block-table {
  margin-top: 1.5em;
  margin-bottom: 2em;
}

.page-id-3567 .entry-content .wp-block-table th,
.page-id-3567 .entry-content .wp-block-table td {
  padding: 12px 14px;
  vertical-align: top;
}

@media (max-width: 921px) {
  :is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content :where(p, ul, ol) {
    line-height: 1.68;
  }

  :is(.home, .page-id-30, .page-id-28, .page-id-29, .page-id-31, .page-id-32, .page-id-3567, .post-type-archive-tribe_events, .single-tribe_events) .entry-content h2 {
    margin-top: 1.55em;
  }
}


/* Kompakter Desktopkopf und einheitliche Textkante auf der Startseite. */
@media (min-width: 922px) {
  #ast-desktop-header .site-branding {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #ast-desktop-header .ast-primary-header-bar .custom-logo-link img {
    width: 82px;
    max-width: 82px;
  }

  #ast-desktop-header .site-title {
    font-size: clamp(31px, 2.6vw, 35px);
    line-height: 1.08;
  }

  #ast-desktop-header .main-header-menu {
    flex-wrap: nowrap;
    align-items: center;
  }

  #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    padding-left: 14px;
    padding-right: 14px;
    white-space: nowrap;
  }
}

.home .entry-content > p {
  margin-left: 0;
  margin-right: auto;
}
