/*
 Theme Name:   Divi Child - RICH EVENTS
 Theme URI:    https://richevents.de
 Description:  Child-Theme für RICH EVENTS mit nativem Monday.com Kontaktformular
 Author:       Idunara LLC
 Author URI:   https://idunara.com
 Template:     Divi
 Version:      1.0.2
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  divi-child-richevents
*/

/* =============================================
   White Stripe Fix: Remove gap between
   last content section and TB footer
   ============================================= */
#main-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#et-main-area {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.et-l--post {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove any default article spacing */
article.post,
article.page {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Ensure TB footer connects seamlessly */
.et-l--footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Body background matches site design (no white flash) */
body.et-tb-has-footer {
  background-color: #f0eee9 !important;
}

/* =============================================
   Back-to-Top Button
   - fixed bottom-right, always above content
   - gold icon on dark circle, matches branding
   ============================================= */
.et_pb_scroll_top.et-pb-icon {
  position: fixed !important;
  right: 30px !important;
  bottom: 30px !important;
  left: auto !important;
  z-index: 99999 !important;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  padding: 0;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.et_pb_scroll_top.et-pb-icon.et-visible {
  opacity: 1;
  visibility: visible;
}

.et_pb_scroll_top.et-pb-icon:hover {
  background-color: rgba(0, 0, 0, 0.85);
  color: #9d6b29;
}
