/* PWA Facebook-Beiträge – Farben wie Homepage (Parkgrün, Zartgrün, Akzent) */
.pwa-fb {
  --pwa-fb-park: #1e5712;
  --pwa-fb-akzent: #a0ce4e;
  --pwa-fb-grau: #6b7268;
  --pwa-fb-linie: #e3e8e4;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.pwa-fb *, .pwa-fb-dialog * { box-sizing: border-box; }
.pwa-fb button { font: inherit; }

.pwa-fb-karte {
  background: #fff;
  border: 1px solid var(--pwa-fb-linie);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s;
}
.pwa-fb-karte:hover { box-shadow: 0 10px 30px rgba(30, 87, 18, .10); }

/* Fotos: Mosaik im großen Beitrag */
.pwa-fb-bilder {
  display: grid;
  gap: 4px;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  width: 100%;
}
.pwa-fb-mosaik-2 { grid-template-columns: 1fr 1fr; }
.pwa-fb-mosaik-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pwa-fb-mosaik-3 > img:first-child { grid-row: 1 / 3; }
.pwa-fb-bilder img, .pwa-fb-bild img, .pwa-fb-mehr img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  min-height: 0;
}
.pwa-fb-mehr { position: relative; display: block; min-height: 0; }
.pwa-fb-mehr::after {
  content: attr(data-mehr);
  position: absolute;
  inset: 0;
  background: rgba(30, 87, 18, .62);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 26px Montserrat, Raleway, sans-serif;
}

/* Inhalt */
.pwa-fb-inhalt { padding: 26px 28px 24px; display: flex; flex-direction: column; flex: 1; }
.pwa-fb-meta {
  font: 500 12px Montserrat, Raleway, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pwa-fb-grau);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pwa-fb-punkt { width: 6px; height: 6px; border-radius: 50%; background: var(--pwa-fb-akzent); flex: none; }
.pwa-fb .pwa-fb-titel, .pwa-fb-dialog .pwa-fb-titel {
  font-family: Raleway, Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--pwa-fb-park, #1e5712);
  margin: 0 0 12px;
  letter-spacing: 0;
  text-transform: none;
}
.pwa-fb-text {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pwa-fb-fuss {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--pwa-fb-linie);
}
.pwa-fb-text + .pwa-fb-fuss, .pwa-fb-titel + .pwa-fb-fuss { margin-top: 18px; }
.pwa-fb .pwa-fb-weiter {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  color: var(--pwa-fb-park);
  font: 500 13px Montserrat, Raleway, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.pwa-fb .pwa-fb-weiter::after { content: " →"; }
.pwa-fb .pwa-fb-weiter:hover { color: #000; }
.pwa-fb-quelle { font-size: 14px; color: var(--pwa-fb-grau, #6b7268) !important; text-decoration: none; }
.pwa-fb-quelle:hover { color: var(--pwa-fb-park, #1e5712) !important; }

/* kleine Karten: Foto links */
.pwa-fb-klein { flex-direction: row; }
.pwa-fb-bild {
  width: 38%;
  flex: none;
  position: relative;
  padding: 0;
  border: 0;
  background: #eff4f2;
  cursor: zoom-in;
  min-height: 190px;
}
.pwa-fb-bild img { position: absolute; inset: 0; }
.pwa-fb-anzahl {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, .92);
  color: var(--pwa-fb-park);
  font: 500 12px Montserrat, Raleway, sans-serif;
  padding: 4px 8px;
}
.pwa-fb-klein .pwa-fb-inhalt { padding: 22px 24px; }
.pwa-fb-klein .pwa-fb-titel { font-size: 21px !important; }
.pwa-fb-klein .pwa-fb-text { -webkit-line-clamp: 3; font-size: .9em; }
.pwa-fb-klein .pwa-fb-quelle { display: none; }

/* Video-Zeichen */
.pwa-fb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(30, 87, 18, .85);
  pointer-events: none;
}
.pwa-fb-play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent #fff;
}
.pwa-fb-mosaik-3 .pwa-fb-play { left: 33%; }

/* Knopf wie „Rundbrief abonnieren“ */
.pwa-fb .pwa-fb-knopf {
  align-self: flex-start;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  background: var(--pwa-fb-park);
  color: #fff !important;
  text-decoration: none;
  font: 400 13px Montserrat, Raleway, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 20px 34px;
  transition: background .25s;
}
.pwa-fb .pwa-fb-knopf:hover { background: #163f0d; }
.pwa-fb-knopf svg { width: 18px; height: 18px; fill: #fff; }

/* Dialog */
.pwa-fb-dialog {
  border: 0;
  padding: 0;
  max-width: 920px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  font-family: Raleway, Arial, sans-serif;
  color: #333;
}
.pwa-fb-dialog::backdrop { background: rgba(20, 40, 15, .65); }
.pwa-fb-dlg { display: grid; grid-template-columns: 1.15fr 1fr; height: min(720px, calc(100vh - 48px)); }
.pwa-fb-dlg-bild { background: #111; position: relative; display: flex; flex-direction: column; min-height: 0; }
.pwa-fb-dlg-haupt { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.pwa-fb-dlg-haupt img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pwa-fb-dlg-pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, .9);
  color: #1e5712;
  font-size: 22px;
  cursor: pointer;
}
.pwa-fb-dlg-pfeil.zurueck { left: 10px; }
.pwa-fb-dlg-pfeil.weiter { right: 10px; }
.pwa-fb-dlg-thumbs { display: flex; gap: 4px; padding: 6px; overflow-x: auto; flex: none; }
.pwa-fb-dlg-thumbs button { padding: 0; border: 0; background: none; cursor: pointer; flex: none; }
.pwa-fb-dlg-thumbs img { width: 56px; height: 56px; object-fit: cover; opacity: .55; display: block; }
.pwa-fb-dlg-thumbs .an img { opacity: 1; outline: 2px solid #a0ce4e; outline-offset: -2px; }
.pwa-fb-dlg-text { padding: 30px 32px; overflow: auto; font-size: 17px; line-height: 1.6; }
.pwa-fb-dlg-text p { margin: 0 0 1em; }
.pwa-fb-dlg-tags { color: #6b7268; font-size: 15px; }
.pwa-fb-dlg-zu {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  background: #fff;
  color: #1e5712;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.pwa-fb-dlg.ohne-foto { grid-template-columns: 1fr; height: auto; max-height: calc(100vh - 48px); }
.pwa-fb-dlg.ohne-foto .pwa-fb-dlg-bild { display: none; }
.pwa-fb-dlg.ohne-foto .pwa-fb-dlg-text { padding-right: 64px; }
html.pwa-fb-offen { overflow: hidden; }

@media (max-width: 800px) {
  .pwa-fb-klein { flex-direction: column; }
  .pwa-fb-bild { width: 100%; aspect-ratio: 3 / 2; min-height: 0; }
  .pwa-fb-inhalt, .pwa-fb-klein .pwa-fb-inhalt { padding: 20px; }
  .pwa-fb .pwa-fb-titel { font-size: 22px; }
  .pwa-fb-karte .pwa-fb-quelle { display: none; } /* am Handy zu eng – Link steht im geöffneten Beitrag */
  .pwa-fb .pwa-fb-knopf { align-self: stretch; justify-content: center; padding: 18px 20px; }
  .pwa-fb-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; }
  .pwa-fb-dlg { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100%; }
  .pwa-fb-dlg-haupt { height: 46vh; }
  .pwa-fb-dlg-text { padding: 22px 20px; }
}
