/* ==========================================================================
   BeHe Lasertechnik – landing page styles (start.html)
   Scoped to .bhl-landing so nothing leaks into the shop/flow pages.
   Load AFTER the theme stylesheet.
   ========================================================================== */

.bhl-landing {
  /* brand tokens – change the accent here if a different signal colour is wanted */
  --bhl-ink: rgb(35, 31, 32);
  --bhl-black: #000000;
  --bhl-graphite: #3c3c3c;
  --bhl-steel: #6f7377;
  /* monochrome accent system: graphite on light surfaces, silver on dark ones */
  --bhl-accent: #4f5457;
  --bhl-accent-soft: rgba(35, 31, 32, 0.06);
  --bhl-silver: #c9ced3;
  --bhl-silver-light: #e9ecee;
  --bhl-line: rgba(35, 31, 32, 0.14);
  --bhl-line-dark: rgba(255, 255, 255, 0.16);
  --bhl-bg: #ffffff;
  --bhl-bg-alt: #f4f4f2;
  --bhl-dark: #17181a;
  --bhl-radius: 5px;

  color: var(--bhl-ink);
  background-color: var(--bhl-bg);
}

/* fixed header offset for in-page anchors */
.bhl-landing section[id] {
  scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* --------------------------------------------------------------------------
   Shared elements
   -------------------------------------------------------------------------- */

.bhl-landing .bhl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bhl-accent);
}

.bhl-landing .bhl-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background-color: var(--bhl-accent);
}

.bhl-landing .bhl-hero .bhl-eyebrow,
.bhl-landing .bhl-section--dark .bhl-eyebrow {
  color: var(--bhl-silver);
}

.bhl-landing .bhl-hero .bhl-eyebrow::before,
.bhl-landing .bhl-section--dark .bhl-eyebrow::before {
  background-color: var(--bhl-silver);
}

.bhl-landing .bhl-accent {
  color: var(--bhl-accent);
}

.bhl-landing .bhl-lead {
  max-width: 62ch;
  font-size: 1.0625rem;
  color: var(--bhl-graphite);
}

.bhl-landing .bhl-num {
  font-variant-numeric: tabular-nums lining-nums;
}

.bhl-section {
  padding: 4.5rem 0;
}

.bhl-section--alt {
  background-color: var(--bhl-bg-alt);
}

.bhl-section--dark {
  background-color: var(--bhl-dark);
}

.bhl-section__head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.bhl-landing .bhl-section__title {
  margin-bottom: 0.75rem;
}

.bhl-landing .bhl-section--dark .bhl-section__title {
  color: #ffffff;
}

.bhl-landing .bhl-section--dark .bhl-lead {
  color: rgba(255, 255, 255, 0.78);
}

.bhl-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
}

/* dashed separator – reference to a CAD cut path */
.bhl-cutline {
  height: 0;
  border-top: 1px dashed var(--bhl-line);
}

/* --------------------------------------------------------------------------
   Buttons (own classes – the theme forces border-radius 0 on .btn)
   -------------------------------------------------------------------------- */

.bhl-landing .bhl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8125rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--bhl-radius);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease 0s;
}

.bhl-landing .bhl-btn--primary {
  color: #ffffff;
  background-color: var(--bhl-black);
  border-color: var(--bhl-black);
}

.bhl-landing .bhl-btn--primary:hover,
.bhl-landing .bhl-btn--primary:focus-visible {
  color: var(--bhl-black);
  background-color: #ffffff;
  border-color: #ffffff;
}

/* inverted primary on dark backgrounds – black on dark would not read */
.bhl-landing .bhl-hero .bhl-btn--primary,
.bhl-landing .bhl-section--dark .bhl-btn--primary {
  color: var(--bhl-black);
  background-color: #ffffff;
  border-color: #ffffff;
}

.bhl-landing .bhl-hero .bhl-btn--primary:hover,
.bhl-landing .bhl-hero .bhl-btn--primary:focus-visible,
.bhl-landing .bhl-section--dark .bhl-btn--primary:hover,
.bhl-landing .bhl-section--dark .bhl-btn--primary:focus-visible {
  color: var(--bhl-black);
  background-color: var(--bhl-silver);
  border-color: var(--bhl-silver);
}

.bhl-landing .bhl-btn--ghost {
  color: #ffffff;
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.bhl-landing .bhl-btn--ghost:hover,
.bhl-landing .bhl-btn--ghost:focus-visible {
  color: var(--bhl-ink);
  background-color: #ffffff;
  border-color: #ffffff;
}

/* ghost variant for light sections */
.bhl-landing .bhl-btn--outline {
  color: var(--bhl-ink);
  background-color: transparent;
  border-color: var(--bhl-ink);
}

.bhl-landing .bhl-btn--outline:hover,
.bhl-landing .bhl-btn--outline:focus-visible {
  color: #ffffff;
  background-color: var(--bhl-graphite);
  border-color: var(--bhl-graphite);
}

.bhl-landing a:focus-visible,
.bhl-landing button:focus-visible {
  outline: 2px solid var(--bhl-ink);
  outline-offset: 3px;
}

.bhl-landing .bhl-hero a:focus-visible,
.bhl-landing .bhl-section--dark a:focus-visible {
  outline-color: #ffffff;
}

/* inline text links inside the copy blocks */
.bhl-landing .bhl-seo__cols a,
.bhl-landing .bhl-config__hint a {
  color: var(--bhl-ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bhl-landing .bhl-seo__cols a:hover,
.bhl-landing .bhl-config__hint a:hover {
  color: var(--bhl-black);
  text-decoration-thickness: 2px;
}

.bhl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.bhl-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(30rem, 68vh, 42rem);
  overflow: hidden;
  background-color: var(--bhl-dark); /* fallback if the image is missing */
}

.bhl-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

/* darkening layer sits on the overlay, not on the image itself */
.bhl-hero__veil {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    100deg,
    rgba(15, 16, 17, 0.94) 0%,
    rgba(15, 16, 17, 0.88) 34%,
    rgba(15, 16, 17, 0.55) 62%,
    rgba(15, 16, 17, 0.2) 100%
  );
}

.bhl-hero__inner {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0;
}

.bhl-hero__content {
  position: relative;
  max-width: 41rem;
  padding-left: 1.5rem;
}

/* corner bracket – borrowed from technical drawings */
.bhl-hero__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background-image: linear-gradient(
    180deg,
    var(--bhl-silver-light) 0%,
    var(--bhl-silver-light) 18%,
    rgba(255, 255, 255, 0.22) 18%,
    rgba(255, 255, 255, 0.22) 100%
  );
}

.bhl-landing .bhl-hero__title {
  color: #ffffff;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

/* brushed metal headline word – solid silver first as fallback,
   the gradient only applies where background-clip: text is supported */
.bhl-landing .bhl-hero__title .bhl-accent {
  color: var(--bhl-silver);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .bhl-landing .bhl-hero__title .bhl-accent {
    background-image: linear-gradient(
      100deg,
      #ffffff 0%,
      #cfd4d8 28%,
      #8d9297 46%,
      #ffffff 62%,
      #b4b9be 84%,
      #e6e9eb 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.bhl-landing .bhl-hero__lead {
  max-width: 34rem;
  margin-bottom: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
}

.bhl-hero__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767.98px) {
  .bhl-hero__veil {
    background-image: linear-gradient(
      180deg,
      rgba(15, 16, 17, 0.86) 0%,
      rgba(15, 16, 17, 0.92) 100%
    );
  }

  .bhl-hero__content {
    padding-left: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Key facts strip (one row, datasheet look)
   -------------------------------------------------------------------------- */

.bhl-facts {
  background-color: var(--bhl-bg-alt);
  border-bottom: 1px solid var(--bhl-line);
}

.bhl-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bhl-facts__item {
  padding: 1.5rem 1.5rem;
  border-left: 1px solid var(--bhl-line);
}

.bhl-facts__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.bhl-facts__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bhl-steel);
}

.bhl-facts__value {
  display: block;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--bhl-ink);
}

.bhl-facts__detail {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--bhl-steel);
}

@media (max-width: 991.98px) {
  .bhl-facts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bhl-facts__item {
    padding: 1.25rem;
  }

  .bhl-facts__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .bhl-facts__item:nth-child(n + 3) {
    border-top: 1px solid var(--bhl-line);
  }
}

@media (max-width: 575.98px) {
  .bhl-facts__grid {
    grid-template-columns: 1fr;
  }

  .bhl-facts__item {
    padding: 1rem 0;
    border-left: 0;
  }

  .bhl-facts__item + .bhl-facts__item {
    border-top: 1px solid var(--bhl-line);
  }
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.bhl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bhl-step {
  padding-top: 1.25rem;
  border-top: 2px solid var(--bhl-ink);
}

.bhl-step__no {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--bhl-steel);
}

.bhl-landing .bhl-step__title {
  margin-bottom: 0.5rem;
  font-size: 1.1875rem;
}

.bhl-step__text {
  margin-bottom: 0;
  color: var(--bhl-graphite);
}

@media (max-width: 767.98px) {
  .bhl-steps {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Configurator section
   -------------------------------------------------------------------------- */

.bhl-config__hint {
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--bhl-steel);
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */

.bhl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.bhl-card {
  padding: 1.75rem;
  background-color: var(--bhl-bg);
  border: 1px solid var(--bhl-line);
  border-radius: var(--bhl-radius);
  transition: border-color 0.25s ease 0s, transform 0.25s ease 0s;
}

.bhl-card:hover {
  border-color: var(--bhl-ink);
}

.bhl-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.125rem;
  border-radius: var(--bhl-radius);
  background-color: var(--bhl-accent-soft);
  border: 1px solid var(--bhl-line);
  color: var(--bhl-ink);
}

.bhl-card__icon .bhl-icon {
  width: 1.375rem;
  height: 1.375rem;
}

.bhl-landing .bhl-card__title {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.bhl-card__text {
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--bhl-graphite);
}

@media (prefers-reduced-motion: no-preference) {
  .bhl-card:hover {
    transform: translateY(-3px);
  }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.bhl-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bhl-service {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background-color: var(--bhl-bg);
  border: 1px solid var(--bhl-line);
  border-radius: var(--bhl-radius);
}

.bhl-landing .bhl-service__title {
  margin-bottom: 1rem;
  font-size: 1.1875rem;
}

.bhl-service__specs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums lining-nums;
}

.bhl-service__specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--bhl-line);
  color: var(--bhl-graphite);
}

.bhl-service__specs li:first-child {
  border-top: 0;
}

.bhl-service__specs strong {
  font-weight: 600;
  color: var(--bhl-ink);
}

.bhl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.bhl-badge {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--bhl-line);
  border-radius: var(--bhl-radius);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bhl-graphite);
  background-color: var(--bhl-bg);
}

@media (max-width: 991.98px) {
  .bhl-services {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   SEO text block (full width intro + two columns)
   -------------------------------------------------------------------------- */

.bhl-seo__intro {
  max-width: 70rem;
  margin-bottom: 2.5rem;
}

.bhl-seo__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}

.bhl-landing .bhl-seo__subtitle {
  margin-bottom: 0.75rem;
  font-size: 1.1875rem;
}

.bhl-seo__cols p {
  margin-bottom: 1rem;
  color: var(--bhl-graphite);
}

.bhl-seo__cols p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .bhl-seo__cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.bhl-final {
  text-align: center;
}

.bhl-landing .bhl-final__title {
  color: #ffffff;
  margin-bottom: 1rem;
}

.bhl-landing .bhl-final__lead {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.78);
}

.bhl-final .bhl-cta-row {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Messages wrapper
   -------------------------------------------------------------------------- */

.bhl-messages {
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   Reveal animation – content is visible by default, motion is opt-in
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .bhl-fade-up {
    animation: bhl-fade-up 0.7s ease both;
  }

  .bhl-fade-up--d1 {
    animation-delay: 0.1s;
  }

  .bhl-fade-up--d2 {
    animation-delay: 0.2s;
  }

  .bhl-fade-up--d3 {
    animation-delay: 0.3s;
  }

  @keyframes bhl-fade-up {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
