/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/

/* Add your own styles here: */

/* Team element */
#top .hlb-team-element {
  width: 100%;
  position: relative;
  padding-bottom: 70px;
}

#top .hlb-team-panel {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: grid;
  grid-template-columns: 34% 1fr;
  padding: 23px 40px;
  background: #064757;
  border-radius: 8px;
}

#top .hlb-team-panel::before,
#top .hlb-team-panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  transform: skewX(-28deg);
  transform-origin: bottom right;
  pointer-events: none;
  z-index: 0;
}

#top .hlb-team-panel::before {
  right: 10%;
  width: 26%;
  background: #075f73;
}

#top .hlb-team-panel::after {
  right: -11%;
  width: 25%;
  background: #0999a8;
}

#top .hlb-team-icon,
#top .hlb-team-content {
  position: relative;
  z-index: 1;
}

#top .hlb-team-icon img {
  width: clamp(150px, 18vw, 230px);
  height: auto;
  display: block;
}

#top .hlb-team-content h3 {
  margin-top: 0;
}

#top .hlb-team-content p {
  margin-bottom: 0;
}

#top .hlb-team-content p,
#top .hlb-team-content h3 {
  color: #fff;
}

#top .hlb-stats-box {
  width: min(860px, calc(100% - 100px));
  min-height: 150px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  z-index: 2;
  background: #fff;
  border-radius: 8px;
}

#top .hlb-stat-item {
  text-align: center;
  position: relative;
  padding: 22px 10px;
}

#top .hlb-stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  height: 60%;
  width: 1px;
  transform: translateY(-50%);
  background: #cfcfcf;
}

#top .hlb-stat-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
}

#top .hlb-stat-value {
  font-weight: 400;
  font-family: gotham-bold;
  color: #005a77;
}

@media (max-width: 900px) {
  #top .hlb-team-element {
    width: 100%;
    padding-bottom: 0;
  }

  #top .hlb-team-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 23px 40px 110px;
  }

  #top .hlb-team-icon img {
    width: 150px;
  }

  #top .hlb-stats-box {
    width: calc(100% - 32px);
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: -78px auto 0;
  }
}

@media (max-width: 640px) {
  #top .hlb-team-panel {
    padding: 23px 24px 96px;
  }

  #top .hlb-team-panel::before {
    right: -6%;
    width: 44%;
  }

  #top .hlb-team-panel::after {
    right: -32%;
    width: 48%;
  }

  #top .hlb-stats-box {
    grid-template-columns: 1fr;
    margin-top: -64px;
  }

  #top .hlb-stat-item:not(:last-child)::after {
    top: auto;
    right: 24px;
    bottom: 0;
    left: 24px;
    width: auto;
    height: 1px;
    transform: none;
  }
}

/* Portfolio anchor navigation */
#top .hlb-portfolio-nav-wrap {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
}

#top .hlb-portfolio-nav-shell {
  position: relative;
  width: 100%;
  background: #fff;
}

#top .hlb-portfolio-nav {
  position: relative !important;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 18px 0;
  background: #fff !important;
  z-index: 1;
}

#top .hlb-portfolio-nav.is-fixed {
  position: fixed !important;
  top: var(--hlb-fixed-top, 0px) !important;
  left: 0 !important;
  right: auto !important;
  width: 100vw !important;
  box-sizing: border-box;
  z-index: 10000 !important;
  background: #fff !important;
  transform: translateZ(0);
}

#top .hlb-portfolio-nav::before,
#top .hlb-portfolio-nav.is-fixed::before {
  content: none !important;
}

#top .hlb-portfolio-nav a {
  position: relative;
  z-index: 2;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
  font-family: gotham-bold;
  font-weight: 400;
  font-size: 25px;
}

#top .hlb-portfolio-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #fbba00;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

#top .hlb-portfolio-nav a:hover::after,
#top .hlb-portfolio-nav a:focus-visible::after,
#top .hlb-portfolio-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

#top #indirekte-steuern,
#top #internationales-steuerrecht,
#top #tax-compliance,
#top #schulungen-webinare {
  scroll-margin-top: 150px;
}

@media (max-width: 767px) {
  #top .hlb-portfolio-nav {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 24px;
    padding: 14px 16px;
  }
}


#top {
  --hlb-service-screen-cap: 1920px;
  --hlb-service-container-max: 1512px;
  --hlb-service-container-padding: 50px;
  --hlb-service-edge-gap: 50px;

  --hlb-service-viewport: min(100vw, var(--hlb-service-screen-cap));
  --hlb-service-content-width: min(
    calc(var(--hlb-service-container-max) - (var(--hlb-service-container-padding) * 2)),
    100vw
  );

  --hlb-service-bleed: max(
    0px,
    calc((var(--hlb-service-viewport) - var(--hlb-service-content-width)) / 2 - var(--hlb-service-edge-gap))
  );
}

#top .flex_column.hlb-service-image {
  position: relative;
  z-index: 1;
  overflow: visible;
}

#top .flex_column.hlb-service-image-right .avia-image-container {
  width: calc(100% + var(--hlb-service-bleed)) !important;
  max-width: none;
}

#top .flex_column.hlb-service-image-left .avia-image-container {
  width: calc(100% + var(--hlb-service-bleed)) !important;
  max-width: none;
  margin-left: calc(var(--hlb-service-bleed) * -1);
}

#top .flex_column.hlb-service-image .avia-image-container-inner,
#top .flex_column.hlb-service-image .avia-image-overlay-wrap,
#top .flex_column.hlb-service-image img {
  width: 100%;
  max-width: none;
}

#top .flex_column.hlb-service-image img {
  display: block;
  height: auto;
}

@media (max-width: 767px) {
  #top .flex_column.hlb-service-image-left .avia-image-container,
  #top .flex_column.hlb-service-image-right .avia-image-container {
    width: 100% !important;
    margin-left: 0;
  }
}