/* HK FirePipe marketing overrides — original Webflow CSS stays untouched */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.page-wrapper {
  overflow-x: hidden;
  max-width: 100%;
}

/* —— Hero photo background —— */
.section-header.hero.gxn-hero-photo-bg {
  position: relative;
  isolation: isolate;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-color: #000;
  background-image: url("/assets/images/hk-hero-feature.png");
  background-position: center 58%;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-header.hero.gxn-hero-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.58) 42%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.section-header.hero.gxn-hero-photo-bg > * {
  position: relative;
  z-index: 1;
  width: 100%;
}

.gxn-hero-description {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* —— Home about (no typewriter overflow) —— */
.gxn-about-static {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.gxn-about-static p {
  margin: 0;
  color: inherit;
  font-size: clamp(1.125rem, 2.4vw, 2.125rem);
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* —— Claim / testimonial marquee —— */
.section-testimonial .testimonial-component {
  overflow: visible;
}

.section-testimonial .testimonial-bottom-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
  margin-top: 0.25rem;
  -webkit-mask-image: none;
  mask-image: none;
}

.section-testimonial .testimonial-bottom-wrapper::before,
.section-testimonial .testimonial-bottom-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 5;
  pointer-events: none;
}

.section-testimonial .testimonial-bottom-wrapper::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--neutral--white-200) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.section-testimonial .testimonial-bottom-wrapper::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--neutral--white-200) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.section-testimonial .testimonial-card {
  box-shadow: none !important;
}

/* —— Tablet / mobile —— */
@media (max-width: 991px) {
  .section-header.hero.gxn-hero-photo-bg {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 4rem;
    background-position: center 45%;
  }

  .section-header.hero.gxn-hero-photo-bg .header-top-content {
    width: 100% !important;
    max-width: 100%;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    box-sizing: border-box;
  }

  .section-header.hero.gxn-hero-photo-bg .heading-style-h1 {
    font-size: clamp(1.75rem, 6vw, 2.75rem) !important;
    line-height: 1.2 !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .section-header.hero.gxn-hero-photo-bg .header-buttom-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .section-testimonial .testimonial-top-content {
    width: 100% !important;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .section-testimonial .testimonial-card {
    max-width: min(36.75rem, calc(100vw - 3rem)) !important;
  }

  .section-testimonial .testimonial-bottom-wrapper::before,
  .section-testimonial .testimonial-bottom-wrapper::after {
    width: 40px;
  }
}

@media (max-width: 767px) {
  .section-header.hero.gxn-hero-photo-bg {
    padding-top: 4.5rem;
    padding-bottom: 3.25rem;
  }

  .section-header.hero.gxn-hero-photo-bg .header-hedline {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }

  .section-header.hero.gxn-hero-photo-bg .header-buttom-wrapper {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .section-header.hero.gxn-hero-photo-bg .header-buttom-wrapper .button {
    width: 100%;
    justify-content: center;
  }

  .gxn-about-static {
    gap: 0.5rem;
  }

  .gxn-about-static p {
    font-size: 1.125rem;
    line-height: 1.45;
  }

  .section-testimonial .testimonial-bottom-wrapper {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .section-testimonial .testimonial-bottom-wrapper::before,
  .section-testimonial .testimonial-bottom-wrapper::after {
    width: 28px;
  }

  .packege-top-content,
  .value-top-content,
  .process-left-content,
  .blog-top-content {
    width: 100% !important;
    max-width: 100%;
  }
}

/* Lucide service icons */
.service-icon-wrapper img.service-icon,
.service-icon-wrapper img.value-icon,
.services-details-icon-wrapper img.services-details-icon {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

/* —— 24h Notdienst floating call button —— */
.gxn-emergency-call {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem 0.85rem 0.95rem;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-family: Generalsans, Arial, sans-serif;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gxn-emergency-call:hover {
  background: #991b1b;
  transform: translateY(-2px);
  color: #fff;
}

.gxn-emergency-call-pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(185, 28, 28, 0.45);
  animation: gxn-emergency-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes gxn-emergency-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

.gxn-emergency-call-icon {
  width: 1.15rem;
  height: 1.15rem;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.gxn-emergency-call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.15rem;
}

.gxn-emergency-call-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gxn-emergency-call-text span {
  font-size: 0.8rem;
  opacity: 0.92;
}

/* —— Header / hero buttons: readable on dark and light pages —— */
.navbar .button.is-nav,
.nav-button .button.is-nav {
  background-color: var(--brand--light-blue, #9ae6ff);
  border-color: var(--brand--light-blue, #9ae6ff);
  color: var(--neutral--black-900, #0e0e0e);
}

.navbar .button.is-nav:hover,
.nav-button .button.is-nav:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--neutral--black-900, #0e0e0e);
}

.section-header .button:not(.is-secondary),
.section-about-hero .button:not(.is-secondary) {
  background-color: var(--brand--light-blue, #9ae6ff);
  border-color: var(--brand--light-blue, #9ae6ff);
  color: var(--neutral--black-900, #0e0e0e);
}

.section-header .button:not(.is-secondary):hover,
.section-about-hero .button:not(.is-secondary):hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--neutral--black-900, #0e0e0e);
}

.section-header .button.is-secondary.is-home,
.section-about-hero .button.is-secondary {
  color: #fff;
  border-color: #fff;
  background-color: transparent;
}

.section-header .button.is-secondary.is-home:hover,
.section-about-hero .button.is-secondary:hover {
  background-color: #fff;
  color: var(--neutral--black-900, #0e0e0e);
}

/* —— Service listing descriptions —— */
.gxn-service-desc {
  max-width: 22rem;
  margin: 0 auto;
  text-align: center;
  color: var(--neutral--black-900, #0e0e0e);
  line-height: 1.45;
}

/* —— Contact form layout —— */
.contact-from-block {
  height: auto !important;
  min-height: 0;
  max-width: 43.125rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-from {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .contact-from {
    grid-template-columns: 1fr !important;
  }
}

.contact-from .gxn-contact-span,
.contact-from .contact-field-wrapper:has(textarea),
.contact-from .contact-field-wrapper:has(select),
.contact-from .contact-field-wrapper:has([type="submit"]),
.contact-from .gxn-privacy-field {
  grid-column: 1 / -1;
}

.gxn-privacy-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.5 !important;
  font-weight: 400;
  max-width: 100%;
}

.gxn-privacy-label input[type="checkbox"] {
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.gxn-privacy-label span {
  overflow-wrap: break-word;
  word-break: normal;
}

.w-form-done,
.w-form-fail,
.contact-success-message,
.contact-error-message {
  display: none;
}

.w-form-done.gxn-form-visible,
.w-form-fail.gxn-form-visible {
  display: block;
}

.gxn-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .gxn-emergency-call-pulse {
    animation: none;
  }

  .gxn-emergency-call {
    transition: none;
  }
}

@media (max-width: 767px) {
  .gxn-emergency-call {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.75rem 1rem 0.75rem 0.85rem;
  }

  .gxn-emergency-call-text strong {
    font-size: 0.88rem;
  }

  .gxn-emergency-call-text span {
    font-size: 0.74rem;
  }
}
