/* Gemeindepost archive and reader. Kept separate from synchronization logic. */
body.spoe-gemeindepost-archive-page article > .hero-section,
body.spoe-gemeindepost-detail-page article > .hero-section {
  display: none !important;
}

body.spoe-gemeindepost-archive-page .ct-container-full[data-content="normal"],
body.spoe-gemeindepost-detail-page .ct-container-full[data-content="normal"] {
  padding: 0 !important;
}

body.spoe-gemeindepost-archive-page .entry-content,
body.spoe-gemeindepost-detail-page .entry-content {
  margin: 0 !important;
}

.spoe-gemeindepost-archive {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.spoe-gemeindepost-archive__head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 800px;
}

.spoe-gemeindepost-archive__eyebrow,
.spoe-gemeindepost-card__date {
  color: #e42612;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spoe-gemeindepost-archive__head h1 {
  color: #e42612;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 0.35rem 0 1.25rem;
}

.spoe-gemeindepost-archive__head > p:last-child {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  margin: 0;
}

.spoe-gemeindepost-archive__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spoe-gemeindepost-card {
  background: #fff;
  border: 1px solid rgba(228, 38, 18, 0.2);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(49, 25, 20, 0.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.spoe-gemeindepost-card:hover {
  box-shadow: 0 24px 55px rgba(49, 25, 20, 0.14);
  transform: translateY(-4px);
}

.spoe-gemeindepost-card__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e42612, #ff354d);
  display: grid;
  overflow: hidden;
  place-items: center;
  text-decoration: none;
}

.spoe-gemeindepost-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.spoe-gemeindepost-card:hover .spoe-gemeindepost-card__image img {
  transform: scale(1.035);
}

.spoe-gemeindepost-card__image span {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 900;
}

.spoe-gemeindepost-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
}

.spoe-gemeindepost-card__date {
  margin: 0 0 0.65rem;
}

.spoe-gemeindepost-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.spoe-gemeindepost-card h2 a {
  color: #191919;
  text-decoration: none;
}

.spoe-gemeindepost-card__excerpt {
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.spoe-gemeindepost-card__button {
  align-self: flex-start;
  background: #e42612;
  border: 2px solid #e42612;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  margin-top: auto;
  padding: 0.7rem 1.05rem;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.spoe-gemeindepost-card__button:hover,
.spoe-gemeindepost-card__button:focus-visible {
  background: #fff;
  color: #e42612;
}

.spoe-gemeindepost-archive__empty {
  background: #fff5f3;
  border: 1px solid rgba(228, 38, 18, 0.25);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.spoe-gemeindepost-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.spoe-gemeindepost-pagination a {
  border: 2px solid #e42612;
  border-radius: 999px;
  color: #e42612;
  font-weight: 800;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.spoe-gemeindepost-pagination a:hover,
.spoe-gemeindepost-pagination a:focus-visible {
  background: #e42612;
  color: #fff;
}

.spoe-gemeindepost-reader {
  background: #fff;
  border: 1px solid rgba(228, 38, 18, 0.22);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(49, 25, 20, 0.12);
  margin: clamp(2rem, 5vw, 4rem) 0;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
}

.spoe-gemeindepost-reader h2 {
  color: #e42612 !important;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  margin: 0 0 0.45rem;
}

.spoe-gemeindepost-reader__lead {
  margin: 0 0 1.25rem;
}

.spoe-gemeindepost-reader__viewer {
  background: #f4f4f4;
  border-radius: 16px;
  height: clamp(560px, 76vh, 840px);
  overflow: hidden;
  position: relative;
}

.spoe-gemeindepost-reader__viewer > ._3d-flip-book,
.spoe-gemeindepost-reader__viewer iframe {
  border: 0;
  display: block;
  height: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
}

.spoe-gemeindepost-reader__fallback {
  margin: 1rem 0 0;
  text-align: center;
}

.spoe-gemeindepost-reader__fallback a {
  color: #e42612;
  font-weight: 800;
}

.spoe-root-gemeindepost-detail {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.spoe-root-gemeindepost-detail .spoe-virtual-app-content__article {
  min-width: 0;
}

@media (max-width: 900px) {
  .spoe-gemeindepost-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .spoe-gemeindepost-archive {
    padding-top: 2.5rem;
  }

  .spoe-gemeindepost-archive__grid {
    grid-template-columns: 1fr;
  }

  .spoe-gemeindepost-reader {
    border-radius: 16px;
    margin-inline: -0.35rem;
    padding: 0.75rem;
  }

  .spoe-gemeindepost-reader__viewer {
    height: min(68vh, 620px);
    min-height: 430px;
  }
}
