/* Ydelses-underside — statisk hero + sand-indhold (som forsidens ydelsesfelt) */

body.sinuz-el-site.sinuz-page-ydelse-single .site-main {
  padding-top: 0 !important;
}

body.sinuz-el-site.sinuz-page-ydelse-single main#content .page-content {
  padding: 0;
  margin: 0;
}

/* HERO — fuld bredde, ét billede, titel centreret */
.sinuz-ydelse-hero.e-con {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: calc(100vh - var(--page-top));
  max-height: 720px;
  height: min(calc(100vh - var(--page-top)), 720px);
  overflow: hidden;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.sinuz-ydelse-hero.e-con::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(44, 44, 42, 0.55) 0%,
    rgba(44, 44, 42, 0.15) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.sinuz-ydelse-hero.e-con > .e-con-inner,
.sinuz-ydelse-hero.e-con > .elementor-element {
  position: relative !important;
  z-index: 2 !important;
}

.sinuz-ydelse-hero > .e-con-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-height: inherit;
  height: 100%;
  padding: 0 var(--gutter) !important;
}

.sinuz-ydelse-hero.e-con > .elementor-element.sinuz-ydelse-hero-title {
  width: auto !important;
  max-width: min(920px, calc(100% - (var(--gutter) * 2)));
  margin: 0 !important;
  align-self: center !important;
}

.sinuz-ydelse-hero-title .elementor-heading-title {
  font-family: var(--e-global-typography-primary-font-family, 'DM Serif Display'), serif !important;
  font-size: clamp(32px, 5vw, 52px) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  color: var(--white, #fafaf8) !important;
  text-align: center !important;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(44, 44, 42, 0.35);
}

/* INDHOLD — sand-light (lysegrå, læsbar brødtekst) */
.sinuz-ydelse-content.e-con {
  background: var(--sand-light) !important;
  --padding-top: 3.5rem;
  --padding-right: var(--gutter);
  --padding-bottom: 5rem;
  --padding-left: var(--gutter);
  padding: 3.5rem var(--gutter) 5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

/* Fallback hvis Elementor pakker widgets i .e-con-inner */
.sinuz-ydelse-content > .e-con-inner {
  width: 100% !important;
  max-width: none !important;
  padding: 3.5rem var(--gutter) 5rem !important;
  align-items: flex-start !important;
}

.sinuz-ydelse-content > .elementor-element.sinuz-ydelse-back,
.sinuz-ydelse-content > .e-con-inner > .elementor-element.sinuz-ydelse-back {
  width: 100% !important;
  max-width: 720px;
  margin: 0 0 1.75rem !important;
  --widgets-spacing: 0px !important;
}

.sinuz-ydelse-content > .elementor-element.sinuz-ydelse-body,
.sinuz-ydelse-content > .e-con-inner > .elementor-element.sinuz-ydelse-body {
  width: 100% !important;
  max-width: 720px;
  margin: 0 !important;
}

.sinuz-ydelse-back.elementor-widget-button .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--e-global-typography-text-font-family, 'DM Sans'), sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--gray-dark) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

.sinuz-ydelse-back.elementor-widget-button .elementor-button:hover {
  color: var(--near-black) !important;
}

.sinuz-ydelse-body .elementor-widget-container,
.sinuz-ydelse-body .elementor-widget-container p {
  font-family: var(--e-global-typography-text-font-family, 'DM Sans'), sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--near-black, #2c2c2a) !important;
}

.sinuz-ydelse-body .elementor-widget-container p {
  margin: 0 0 1.15em;
}

.sinuz-ydelse-body .elementor-widget-container p:last-child {
  margin-bottom: 0;
}

.sinuz-ydelse-body .elementor-widget-container a {
  color: var(--gray-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sinuz-ydelse-body .elementor-widget-container a:hover {
  color: var(--near-black);
}

.sinuz-ydelse-body .elementor-widget-container {
  max-width: 720px;
}

@media screen and (max-width: 1024px) {
  .sinuz-ydelse-content.e-con,
  .sinuz-ydelse-content > .e-con-inner {
    --padding-top: 3rem;
    --padding-bottom: 4rem;
    padding: 3rem var(--gutter) 4rem !important;
  }
}

@media screen and (max-width: 767px) {
  .sinuz-ydelse-hero.e-con {
    min-height: min(calc(72vh - var(--page-top)), 520px);
    height: min(calc(72vh - var(--page-top)), 520px);
  }

  .sinuz-ydelse-hero-title .elementor-heading-title {
    font-size: clamp(28px, 8vw, 40px) !important;
  }

  .sinuz-ydelse-content.e-con,
  .sinuz-ydelse-content > .e-con-inner {
    --padding-top: 2.25rem;
    --padding-bottom: 3rem;
    padding: 2.25rem var(--gutter) 3rem !important;
  }

  .sinuz-ydelse-content > .elementor-element.sinuz-ydelse-back,
  .sinuz-ydelse-content > .e-con-inner > .elementor-element.sinuz-ydelse-back {
    margin-bottom: 1.25rem !important;
  }
}
