/*
 * Schlepperfreunde Schwitten – 3.3.6 Finaler Gästebuch-Hintergrund
 * WICHTIG: Das obere Haupt-/Hero-Bild wird NICHT verändert.
 * Der Hintergrund beginnt ausschließlich an der Statistik-/Kommentarfläche.
 */

/* Alte Seitenstreifen aus vorherigen 2.11.9-Varianten deaktivieren. */
.sf-community-page-2116::before,
.sf-community-page-2116::after {
  display: none !important;
  content: none !important;
}

/* Der Shell beginnt direkt unter dem unveränderten Hero.
   Ein EINZIGES, nicht wiederholtes Gravurbild wird auf die gesamte
   dynamische Höhe der Gästebuchfläche gestreckt. */
.sf-community-shell-2116 {
  position: relative;
  isolation: isolate;
  width: min(1520px, calc(100% - 42px));
  padding-bottom: 72px;
  background: transparent !important;
}

.sf-community-shell-2116::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image:
    linear-gradient(rgba(247,242,231,.13), rgba(247,242,231,.13)),
    url("../images/guestbook/guestbook-background-3-3-6.jpg");
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Alle echten Inhalte liegen darüber; jede freie Lücke zeigt den Hintergrund. */
.sf-community-shell-2116 > * {
  position: relative;
  z-index: 1;
}
.sf-community-grid-2116,
.sf-community-main-2116,
.sf-community-sidebar-2116 {
  background: transparent !important;
}

/* Breite und Abstände so, dass links/rechts und auch zwischen den Spalten
   genug von der Gravur sichtbar bleibt. */
.sf-community-grid-2116 {
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  margin-top: 18px;
}

/* Inhalte lesbar, Hintergrund aber sichtbar. */
.sf-community-composer-card-2116,
.sf-community-feed-2116,
.sf-community-side-card-2116,
.sf-community-side-quote-2116 {
  background: rgba(255,253,248,.955) !important;
  box-shadow: 0 8px 24px rgba(42,45,39,.08);
}

.sf-community-about-2116 {
  background: rgba(15,48,35,.975) !important;
}

/* Kommentarformular weiterhin kompakt und ordentlich. */
.sf-community-composer-card-2116 {
  padding: 20px 22px 18px;
}
.sf-community-form-2116 textarea,
.sf-community-composer-card-2116 .comment-form textarea {
  min-height: 112px !important;
}

/* Große Monitore: möglichst viel Fläche nutzen. */
@media (min-width: 1750px) {
  .sf-community-shell-2116 {
    width: min(1580px, calc(100% - 56px));
  }
}

/* Mittlere Monitore: Hintergrund bleibt vollständig erhalten. */
@media (max-width: 1300px) {
  .sf-community-shell-2116 {
    width: min(1220px, calc(100% - 20px));
  }
  .sf-community-grid-2116 {
    grid-template-columns: minmax(0,1fr) 324px;
    gap: 18px;
  }
}

/* Tablet: keine Wiederholung, gleiche Hintergrundgrafik – nur ruhiger. */
@media (max-width: 1050px) {
  .sf-community-shell-2116 {
    width: min(100% - 16px, 1000px);
  }
  .sf-community-grid-2116 {
    grid-template-columns: 1fr;
  }
  .sf-community-shell-2116::before {
    opacity: .48;
  }
}

/* Smartphone: Hintergrund bleibt vorhanden, stört aber die Lesbarkeit nicht. */
@media (max-width: 700px) {
  .sf-community-shell-2116 {
    width: calc(100% - 10px);
    padding-bottom: 44px;
  }
  .sf-community-shell-2116::before {
    opacity: .26;
  }
  .sf-community-composer-card-2116,
  .sf-community-feed-2116 {
    padding-left: 13px;
    padding-right: 13px;
  }
}
