:root {
  --sos-gruen: #61A36F;
  --sos-lila:  #8D4BA4;
  --sos-text:  #283239;
}

/* Grid für Glücksmomente */
.sos-glueck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 60px 0 40px;
}

/* Tablet */
@media (max-width: 1100px) {
  .sos-glueck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 650px) {
  .sos-glueck-grid {
    grid-template-columns: 1fr;
  }
}

/* Karte */
.sos-glueck-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Bildbereich */
.sos-glueck-image {
  width: 100%;
  padding-top: 70%; /* 7:10 Verhältnis */
  background-size: cover;
  background-position: center;
}

/* Inhalt */
.sos-glueck-content {
  padding: 18px 20px 22px;
  text-align: center;
}

/* Name */
.sos-glueck-name {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sos-lila);
}

/* "Lebt jetzt bei" */
.sos-glueck-lebt {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--sos-text);
}

/* Jahresliste */
.sos-glueck-years {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sos-glueck-year-item a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--sos-lila);
  color: var(--sos-lila);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.sos-glueck-year-item a:hover {
  background: var(--sos-lila);
  color: #fff;
}
/* Nur Hauptseite: Rand links + rechts */
.page-id-25 .sos-glueck-grid {
  padding: 0 30px;
  box-sizing: border-box;
}
.page-id-25 .sos-glueck-grid {
  background: #EDF7F0;
  padding: 40px 30px;
  border-radius: 20px;
}
