/* Teaser-Karten auf der Startseite: schmale Meta-Spalte + breite Hauptspalte */
.hw-teaser-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hw-teaser {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: stretch;
  background: var(--surface);
  border: var(--card-border) solid var(--hairline);
  border-radius: var(--radius-edge);
  overflow: hidden;
}

.hw-teaser__meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-4) var(--space-3);
}

/* Normale Beiträge: Meta-Spalte farblich abgesetzt. Angeheftete (sticky)
   Beiträge bleiben komplett weiß. */
.hw-teaser:not(.node--sticky) .hw-teaser__meta {
  background: var(--tint);
}

.hw-teaser__type {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hw-teaser__views {
  font-size: 13px;
  color: var(--ink-muted);
}

.hw-teaser__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
}

.hw-teaser__date {
  font-weight: 700;
  color: var(--accent);
}

/*
 * Höher spezifisch als die globale Regel ".view .view-content h3" aus
 * components.css (Gruppen-Überschriften in sortierten Listen wie "Würfe"),
 * die hier sonst zufällig mit übernommen wird, weil der Teaser-Titel auch
 * ein h3 innerhalb von .view-content ist. Trennlinie bewusst beibehalten
 * (gefällt), nur der Abstand zum Datum oben wurde von 32px auf 12px reduziert.
 */
article.hw-teaser h3.hw-teaser__title {
  margin: 12px 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: var(--card-border) solid var(--beam);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
}

.hw-teaser__title a {
  color: var(--ink);
  text-decoration: none;
}

.hw-teaser__title a:hover {
  color: var(--accent);
}

.hw-teaser__body {
  color: var(--ink-muted);
}

.hw-teaser__body img {
  max-width: 100%;
  height: auto;
}

.hw-teaser__more a {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.hw-teaser__more a:hover {
  color: var(--ink);
}

/* Trennlinie zwischen angehefteten und normalen Beiträgen */
.hw-teaser-divider {
  margin: var(--space-3) 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
}

/* Sonderdarstellung "Zum Einstieg": volle Breite, mehr Inhalt sichtbar */
.hw-teaser--intro {
  display: block;
  padding: var(--space-6) var(--space-6);
}

article.hw-teaser--intro h3.hw-teaser__title {
  font-size: 28px;
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: var(--card-border) solid var(--beam);
}

.hw-teaser--intro .hw-teaser__body {
  color: var(--ink);
}

.hw-teaser--intro .hw-teaser__body img {
  display: inline-block;
  margin: 0 var(--space-2) var(--space-2) 0;
  max-width: 220px;
  border-radius: var(--radius-edge);
}

@media (max-width: 559px) {
  .hw-teaser {
    grid-template-columns: 1fr;
  }
  .hw-teaser__meta {
    flex-direction: row;
    justify-content: space-between;
    padding: var(--space-3) var(--space-5);
  }
}
