/* Abschnittsrahmen & Abstand einheitlich */
#termine, #news, #berichte {
  padding: 2rem 1rem;
  border-radius: 12px;
  margin-bottom: 4rem;
}

/* Termine-Layout */
.termine-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.termin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.termin-title {
  font-weight: 600;
}

.termin-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.termin-body {
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* News-Layout */
#news .news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 Spalten */
  gap: 1rem;
}

/* Nur maximal 4 News anzeigen */
#news .news-card:nth-child(n+5) {
  display: none;
}

/* Mobile: 1 Spalte */
@media (max-width: 600px) {
  #news .news-list {
    grid-template-columns: 1fr;
  }
}

.news-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.news-body p + p {
  margin-top: 0.5rem;
}

/* Berichte-Layout */
.berichte-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.bericht-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.bericht-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.bericht-body p + p {
  margin-top: 0.5rem;
}

.back-link {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.back-link a {
  color: var(--primary-dark);
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

/* Karten innerhalb der Bereiche harmonisieren */
#termine .termin-card,
#news .news-card,
#berichte .bericht-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  justify-content: flex-start;
}

/* Anker-Sprung sauber unter sticky Header einrasten */
.termin-card, .news-card, .bericht-card { scroll-margin-top: 110px; }

@media (max-width: 600px) {
  .termin-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================
  Bildformatierung für alle figures
  ================================= */

figure[class^="fig_aktuell_"] {
    display: block;
}

figure[class^="fig_aktuell_"] img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ------------------------------
    RECHTS – QUER
----------------------------------- */
.fig_aktuell_rechts_quer {
    float: right;
    margin: 0 0 8px 8px;
    max-width: 50%;
}

/* klein */
.fig_aktuell_rechts_quer_klein {
    float: right;
    margin: 0 0 8px 8px;
    max-width: 30%;
}

/* ------------------------------
    LINKS – QUER
----------------------------------- */
.fig_aktuell_links_quer {
    float: left;
    margin: 0 8px 8px 0;
    max-width: 50%;
}

.fig_aktuell_links_quer_klein {
    float: left;
    margin: 0 8px 8px 0;
    max-width: 30%;
}

/* ------------------------------
    RECHTS – HOCH
----------------------------------- */
.fig_aktuell_rechts_hoch {
    float: right;
    margin: 0 0 8px 8px;
    max-width: 30%;
}

.fig_aktuell_rechts_hoch_klein {
    float: right;
    margin: 0 0 8px 8px;
    max-width: 20%;
}

/* ------------------------------
    LINKS – HOCH
----------------------------------- */
.fig_aktuell_links_hoch {
    float: left;
    margin: 0 8px 8px 0;
    max-width: 30%;
}

.fig_aktuell_links_hoch_klein {
    float: left;
    margin: 0 8px 8px 0;
    max-width: 20%;
}

/* ------------------------------
    MITTE – QUER
----------------------------------- */
.fig_aktuell_mitte_quer {
    display: block;
    float: none;
    margin: 8px auto;
    max-width: 50%;
    text-align: center;
}

.fig_aktuell_mitte_quer_klein {
    display: block;
    float: none;
    margin: 8px auto;
    max-width: 40%;
    text-align: center;
}

/* ------------------------------
    MITTE – HOCH
----------------------------------- */
.fig_aktuell_mitte_hoch {
    display: block;
    float: none;
    margin: 8px auto;
    max-width: 40%;
    text-align: center;
}

.fig_aktuell_mitte_hoch_klein {
    display: block;
    float: none;
    margin: 8px auto;
    max-width: 25%;
    text-align: center;
}

/* ------------------------------
    WICHTIG DAMIT NICHTS ÜBERLÄUFT
----------------------------------- */
.bericht-body::after {
    content: "";
    display: block;
    clear: both;
}
