/* Scroll-reveal base state (matches live site's animate-pre-hidden semantics) */
.animate-pre-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Lightbox overlay */
.lf-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lf-lightbox.is-open { display: flex; }
.lf-lightbox .lf-lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.lf-lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lf-lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lf-lightbox .lf-lb-close { top: 20px; right: 20px; }
.lf-lightbox .lf-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lf-lightbox .lf-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
body.lf-lb-body-open { overflow: hidden; }

@media (max-width: 640px) {
  .lf-lightbox .lf-lb-prev { left: 8px; }
  .lf-lightbox .lf-lb-next { right: 8px; }
  .lf-lightbox button { width: 40px; height: 40px; font-size: 20px; }
  .lf-lightbox .lf-lb-close { top: 10px; right: 10px; }
}

/* Testimonial avatars: force a square box so border-radius:50% renders a perfect circle
   regardless of the source image's aspect ratio. The image fills the box via object-fit. */
.testimonials .author-avatar-rounded {
  width: 120px !important;
  height: 120px !important;
  overflow: hidden;
}
.testimonials .author-avatar-rounded .kmb-widget-image-item {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

/* Mobile testimonial slider: show one card at full width instead of two cramped ones.
   Slider items have inline style="width:50%"; !important is needed to override that. */
@media (max-width: 767px) {
  .testimonials .kmb-site-slider-item {
    width: 100% !important;
  }
}

/* Contact form inline feedback (Web3Forms response) */
.lf-form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.lf-form-feedback-success {
  background: #e6f4ea;
  color: #1e6b3a;
  border: 1px solid #b7dfc4;
}
.lf-form-feedback-error {
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid #f5c2c2;
}

/* DSGVO consent checkbox */
.lf-privacy-group {
  margin-top: 8px;
  margin-bottom: 8px;
}
.lf-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.lf-privacy-checkbox {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #377F8E;
}
.lf-privacy-label a {
  color: #377F8E;
  text-decoration: underline;
}
.lf-privacy-label a:hover {
  text-decoration: none;
}
