/* Hauptinhalt und allgemeine Komponenten */
.site-main {
  min-height: 45vh;
}
.featured-page {
  flex: 0 0 100%;
  min-width: 0;
}
.featured-page .entry-content > :first-child {
  margin-top: 0;
}
.featured-page .entry-content > :last-child {
  margin-bottom: 0;
}
.home-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-block: 2.5rem;
}
.afd-component-news {
  flex: 0 0 100%;
  min-width: 0;
}
.afd-component-placeholder {
  padding: 1rem;
  border: 1px dashed var(--border);
  color: var(--muted);
}
.member-profile {
  display: grid;
  grid-template-columns: minmax(180px, 20%) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
}
.member-profile-image {
  margin: 0;
}
.member-profile-image img {
  display: block;
  width: 100%;
  height: auto;
}
.member-profile-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}
.member-profile-position {
  margin: 0.5rem 0 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
}
.member-profile-description {
  font-size: 1rem;
  line-height: 1.65;
}
.member-profile-description > :first-child {
  margin-top: 0;
}
.member-profile-description > :last-child {
  margin-bottom: 0;
}
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-block: 2.5rem;
}
.membership-button {
  width: min(285px, 100%);
  margin-top: 0.75rem;
  border-radius: 4px;
  background: #e3062c;
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.membership-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.membership-button:hover,
.membership-button:focus-visible {
  background: #bd1230;
  color: #fff;
}
.membership-button:focus-visible {
  outline: 3px solid rgba(227, 6, 44, 0.3);
  outline-offset: 3px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
}
.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.15;
}
.section-heading a {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}
.news-card {
  --news-image-width: clamp(80px, 14%, 80px);
  width: 100%;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius:0.5rem;
  background: #f9f9f9;
  box-shadow: 0 6px 18px rgba(13, 25, 36, 0.08);
  /* var(--paper); */
}
.news-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.news-card.has-post-thumbnail .news-image,
.news-card.has-author-avatar .news-image {
  flex: 0 0 var(--news-image-width);
  width: var(--news-image-width);
  align-self: stretch;
}
.news-card.has-post-thumbnail .news-image img,
.news-card.has-author-avatar .news-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.news-card:hover .news-image img {
  transform: scale(1.025);
}
.news-content {
  min-width: 0;
}
.news-featured .news-content {
  padding: 0;
}
.post-meta {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.65rem;
}
.news-content h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.25;
}
.news-featured h3 {
  font-size: 1.7rem;
}
.news-content .news-subtitle {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.35;
}
.news-content p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.author-posts {
  width: 100%;
}
.author-posts-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.7rem;
}
.author-posts-avatar {
  /* width: 96px; */
  /* height: 96px; */
  flex: 0 0 96px;
  overflow: hidden;
  /* border-radius: 50%; */
  background: #eef1f3;
}
.author-posts-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-posts-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.15;
}
.author-post-card {
  padding: 1.35rem 1.6rem;
}
.author-posts-more {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}
.author-posts-empty {
  color: var(--muted);
}
.event-list {
  display: grid;
  gap: 0.75rem;
}
.event-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: #fff;
}
.event-date {
  display: grid;
  align-content: start;
  justify-items: center;
  border-right: 1px solid var(--border);
  color: var(--accent);
}
.event-date strong {
  font-size: 1.7rem;
  line-height: 1;
}
.event-date span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}
.event-card h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
}
.event-card h3 a {
  color: inherit;
  text-decoration: none;
}
.event-card h3 a:hover,
.event-card h3 a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.event-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.event-list-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Mediengalerie */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(var(--media-gallery-columns, 3), minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
}
.media-gallery-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #eef1f3;
}
.media-gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.media-gallery-link {
  display: block;
  width: 100%;
  height: 100%;
}
.media-gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.media-gallery-link:hover img,
.media-gallery-link:focus-visible img {
  transform: scale(1.04);
  filter: brightness(0.82);
}
.media-gallery-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.media-gallery-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  transform: translateY(100%);
  background: linear-gradient(transparent, rgba(13, 25, 36, 0.88));
  color: #fff;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.media-gallery-link:hover figcaption,
.media-gallery-link:focus-visible figcaption {
  transform: none;
}
.media-gallery-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}
