/*
 * LightRay-Studio - produktiver Strandfooter, robuste Fassung 2026-08-29b
 * Der bestehende #footer bleibt das originale Seitenelement.
 * JS verschiebt ihn nach dem Parsen einmalig ans Dokumentende, damit auch
 * historisch unbalanciertes Legacy-HTML den Footer nicht mitten in den Inhalt ziehen kann.
 */

body.lr-strand-footer-page,
body.lr-strand-footer-page #wrapper {
  background: #f3ece0 !important;
}

/* Einheitlicher Dokumentfluss fuer kurze, normale und lange Seiten. */
body.lr-strand-footer-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.lr-strand-footer-page > #wrapper {
  width: 100%;
  min-height: 0;
  flex: 1 0 auto;
}

/* Der originale Footer IST jetzt die Strand-Stage. Kein zusaetzlicher Wrapper. */
body.lr-strand-footer-page > #footer {
  position: relative !important;
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 656;
  min-height: 0;
  margin: 0 !important;
  margin-top: auto !important;
  padding-top: 0 !important;
  flex-shrink: 0;
  overflow: visible;
  background: #f3ece0 !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body.lr-strand-footer-page > #footer::before,
body.lr-strand-footer-page > #footer::after {
  content: none !important;
  display: none !important;
  background: none !important;
  animation: none !important;
}

body.lr-strand-footer-page > #footer > .lr-strand-video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  pointer-events: none;
}

body.lr-strand-footer-page > #footer > .container,
body.lr-strand-footer-page > #footer > .copyright {
  position: relative;
  z-index: 1;
}

body.lr-strand-footer-page > #footer,
body.lr-strand-footer-page > #footer > .container,
body.lr-strand-footer-page > #footer .row,
body.lr-strand-footer-page > #footer .logo_footer,
body.lr-strand-footer-page > #footer .logo_footer.dark,
body.lr-strand-footer-page > #footer .spaced,
body.lr-strand-footer-page > #footer > .copyright,
body.lr-strand-footer-page > #footer > .copyright .container {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

body.lr-strand-footer-page > #footer .logo_footer.dark {
  height: auto !important;
  min-height: 0 !important;
}

body.lr-strand-footer-page > #footer h2,
body.lr-strand-footer-page > #footer h3,
body.lr-strand-footer-page > #footer h4,
body.lr-strand-footer-page > #footer p,
body.lr-strand-footer-page > #footer li,
body.lr-strand-footer-page > #footer small,
body.lr-strand-footer-page > #footer a,
body.lr-strand-footer-page > #footer .copyright {
  color: #252525 !important;
}

body.lr-strand-footer-page > #footer a:hover {
  color: #9a8156 !important;
}

body.lr-strand-footer-page > #footer .social {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #252525 !important;
}

/* Abgenommene Abschlusspositionen. */
body.lr-strand-footer-page > #footer > hr {
  position: absolute !important;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 125px;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(231, 231, 231, 0.24) !important;
}

body.lr-strand-footer-page > #footer > .copyright {
  position: absolute !important;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 42px;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  text-align: center;
}

body.lr-strand-footer-page > #footer > .copyright .container {
  position: static;
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
  background-image: none !important;
  text-align: center;
  font-weight: 700 !important;
}

/* Nur die visuell freigegebene Haupt-Galerie bekommt den kompakten Kopf. */
body.lr-compact-gallery-head #header,
body.lr-compact-gallery-head #header.sticky,
body.lr-compact-gallery-head #header.fixed,
body.lr-compact-gallery-head #topBar,
body.lr-compact-gallery-head #topNav {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  transform: none !important;
}

body.lr-compact-gallery-head #topBar {
  display: none !important;
}

body.lr-compact-gallery-head #header,
body.lr-compact-gallery-head #topNav {
  margin-top: 0 !important;
}

body.lr-strand-footer-page > #footer .gallery-contact {
  height: auto !important;
  background: transparent !important;
  background-image: none !important;
  color: #252525;
}

body.lr-strand-footer-page > #footer .gallery-contact a {
  color: #252525 !important;
}

body.lr-strand-footer-page > #footer .gallery-contact .gallery-facebook {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  body.lr-strand-footer-page > #footer {
    background-color: #f3ece0 !important;
    background-image: url("/assets/images/demo/LightRay-Strand-final-fuer-Cody/strand-footer-poster.jpg") !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
  }

  body.lr-strand-footer-page > #footer > .lr-strand-video {
    visibility: hidden;
  }
}
