/* Kartenraster der Uebersichten und Kopf einzelner Beitraege.
   Die Akzentfarbe setzt jede Site im Branding-CSS: --akzent. */

.hb-abschnitt {
  margin: 2rem 0 0;
  color: var(--akzent, #444);
}

.hb-karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.25rem 0 2.5rem;
}

.hb-karte {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.hb-karte-bild img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top;
}

.hb-karte-text {
  padding: 0.9rem 1rem 1.1rem;
}

.hb-karte-datum {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.35;
}

.hb-karte-titel {
  margin: 0.3rem 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.hb-karte-titel a {
  text-decoration: none;
}

.hb-karte-titel a:hover {
  text-decoration: underline;
}

.hb-karte p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.hb-vergangen {
  margin: 1rem 0 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.hb-vergangen > summary {
  padding: 0.9rem 0;
  color: var(--akzent, #444);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

/* Bilder nebeneinander in gleicher Hoehe. Im Beitrag:
   ![Text](bild.jpg?classes=hb-bild) */
.hb-bild {
  width: auto;
  max-width: 100%;
  height: 180px;
  margin: 0 1.25rem 1rem 0;
  object-fit: cover;
}

.hb-beitrag-datum {
  margin-bottom: 0.5rem;
  color: #555;
}

.hb-beitrag-zurueck {
  margin-top: 2rem;
}

/* karten_bild: ganz - Plakate im Hochformat ganz zeigen statt 3:2 beschnitten */
.hb-karten-ganz {
  align-items: start;
}

.hb-karten-ganz .hb-karte-bild img {
  aspect-ratio: auto;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

/* seitenleiste: true - Inhalt von /modules/sidebar rechts, am Handy darueber */
.hb-mit-leiste {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas: "haupt leiste";
  gap: 2rem;
  align-items: start;
}

.hb-mit-leiste > .hb-hauptteil {
  grid-area: haupt;
}

.hb-mit-leiste > .hb-leiste {
  grid-area: leiste;
  padding-top: 2rem;
}

@media (max-width: 840px) {
  .hb-mit-leiste {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "leiste" "haupt";
    gap: 0;
  }
}

/* gruppen: zwei - Blaettern in "Fruehere Termine" */
.hb-blaettern {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.5rem;
  margin: -1rem 0 2.5rem;
}

.hb-blaettern a {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--akzent, #444);
  text-decoration: none;
}

.hb-blaettern-stand {
  color: #555;
}

/* beitrag_titel / beitrag_blaettern im Kopf der Uebersicht */
.hb-beitrag-titel {
  margin: 0 0 0.4rem;
}

.hb-beitrag-nachbarn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-top: 2rem;
}

.hb-beitrag-nachbarn a {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--akzent, #444);
  text-decoration: none;
}

.hb-beitrag-nachher {
  margin-left: auto;
}
