/*
Theme Name: Astra Child
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/
Description: Child theme for Astra with custom styles and locally hosted fonts.
Version: 4.11.17
Updated: 2025-12-09
*/

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-800.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/inter-900.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/anton-regular.woff2') format('woff2'); 
}

body,
.ast-separate-container {
  background-color: transparent !important;
}

html, body {
  overscroll-behavior: none;
  height: 100%;
}

#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1;
}

a:hover,
a:active,
a:focus {
  outline: none !important;
}

.entry-content :where(h1) {
  margin-bottom: 40px;
}

.bg-2nd {
  background-color: #F29E03;
}

.col-2nd {
  color: #F29E03;
}

/* --- Navigation & Header --- */

header {
  z-index: 100000000;
}

.site-header {
  position: fixed !important;
  width: 100%;
}

.main-header-bar {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
  line-height: inherit;
}

.ast-header-button-1 .ast-custom-button {
  border: 2px solid var(--ast-global-color-8) !important;
  background: none !important;
}

.ast-header-button-1 .ast-custom-button:hover {
  color: inherit;
  background: white !important;
}

.site-header.ast-sticky-active {
  background-color: #ffffff !important; 
  transition: all 0.1s ease;
}

.site-header.ast-sticky-active .main-header-bar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header.ast-sticky-active .main-header-menu > .menu-item > a,
.site-header .main-header-menu .menu-item:hover > a {
  color: var(--ast-global-color-3) !important;
}

.site-header.ast-sticky-active .ast-mobile-svg {
  fill: var(--ast-global-color-3) !important;
}

.site-header:not(.ast-sticky-active) .custom-logo-link img,
.site-header #ast-mobile-header .site-logo-img img {
  filter: brightness(0) invert(1);
}

.site-header.ast-sticky-active .custom-logo-link img,
.ast-normal-title-enabled .site-header img,
.error404 .site-header img {
  filter: none !important;
}

/* --- Mobile Menu & Transitions --- */

.ast-main-header-nav-open .main-header-bar {
  padding-bottom: 1em;
  box-shadow: 0px 2px 4px 0px #0000001A;
}

[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill {
  color: #ffffff;
  border: none;
  background: none;
}

.ast-header-break-point .main-navigation ul .menu-item .menu-link {
  border: none;
}

.ast-header-break-point .main-navigation .stack-on-mobile li {
  font-size: 18px;
  text-align: center;
}

.ast-header-break-point .main-navigation .stack-on-mobile li+li {
  padding-top: 30px;
}

.ast-builder-menu .main-navigation > ul > li:last-child a {
  padding: 14px 24px !important;
  line-height: 1em;
  border: 2px solid var(--ast-global-color-8) !important;
  border-radius: 50px;
}

.ast-builder-menu .main-navigation > ul > li:last-child a:hover {
  color: var(--ast-global-color-3) !important;
  background: #ffffff;
}

.ast-header-break-point .main-navigation .stack-on-mobile > li:last-child a {
  width: auto;
  margin-top: 60px;
}

.main-header-bar-navigation.toggle-on {
  position: static;
  width: 100%;
  padding-top: 125px;
  padding-bottom: 125px;
}

.ast-header-break-point .ast-mobile-popup-content,
.ast-header-break-point .ast-mobile-nav-wrap {
  background: #ffffff !important;
}

.ast-main-header-nav-open #ast-mobile-header {
  position: fixed !important;
  inset: 0;
  width: 100vw;
  height: 100%;
  background: #ffffff !important;
  overflow-y: auto;
  z-index: 999999;
}

/* --- Normal Title / Page Header Styling --- */

.ast-normal-title-enabled #ast-mobile-header,
.error404 #ast-mobile-header{
  position: fixed !important;
  inset: 0;
  width: 100%;
  top: 0;
  height: 100%;
}

.ast-normal-title-enabled .site-header,
.ast-normal-title-enabled .main-header-bar-wrap {
  border-bottom: 1px solid #eee;
}

.ast-normal-title-enabled .site-header.ast-sticky-active,
.ast-normal-title-enabled .site-header.ast-sticky-active .main-header-bar-wrap {
  border-bottom: none;
}

.ast-normal-title-enabled .site-header .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg,
.error404 .site-header .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
  fill: var(--ast-global-color-3);
}

.site-header .main-navigation > ul > li:not(:last-child) a:hover,
.site-header .main-navigation .stack-on-mobile li a:hover,
.site-header.ast-sticky-active #ast-desktop-header .main-navigation > ul > li:last-child a:hover,
.ast-normal-title-enabled .site-header #ast-desktop-header .main-navigation > ul > li:last-child a:hover {
  color: var(--ast-global-color-8) !important;
}

.site-header #ast-desktop-header .main-navigation > ul > li:last-child a:hover {
  color: var(--ast-global-color-3) !important; 
}

/* --- Sections --- */

#sec-leistungen .hfe-icon-wrap,
#sec-leistungen .hfe-infocard-title-wrap {
  display: inline-block;
}

#sec-leistungen .hfe-icon-wrap {
  margin-right: 8px;
}

#sec-leistungen .hfe-infocard-title,
#sec-leistungen .hfe-icon-wrap {
  margin-bottom: 16px;
}

#sec-leistungen .hfe-icon-wrap .hfe-icon svg {
  fill: none;
}

#sec-leistungen .hfe-icon {
  margin-top: -7px;
}

#sec-kontakt li+li {
  margin-top: 16px;
}

#sec-kontakt .elementor-icon-list-icon svg {
  height: 20px;
  width: 20px;
  margin-right: 3px;
}

/* --- Referenzen / Image Compare --- */

#sec-referenzen .elementor-widget-container .coca-image-compare-handle {
  background: var(--ast-global-color-0);
  border: none;
  width: 44px;
  height: 44px;
}

#sec-referenzen .twentytwenty-before-label,
#sec-referenzen .twentytwenty-after-label {
  opacity: 1;
}

#sec-referenzen .twentytwenty-horizontal .twentytwenty-before-label:before, 
#sec-referenzen .twentytwenty-horizontal .twentytwenty-after-label:before {
  top: 12%;
  margin-top: 0;
  background: rgba(0, 0, 0, 0.95);
  font-size: 24px;
  font-family: Anton;
}

#sec-referenzen .twentytwenty-horizontal .twentytwenty-before-label:before {
  left: 0;
}

#sec-referenzen .twentytwenty-horizontal .twentytwenty-after-label:before {
  right: 0;
}

#sec-referenzen .twentytwenty-handle {
  background: var(--ast-global-color-0); 
}

#sec-referenzen ul.slick-dots li {
  font-size: 8px;
  width: 8px;
  height: 8px;
  color: #D9D9D9;
  margin: 4px;
}

#sec-referenzen ul.slick-dots li.slick-active {
  color: var(--ast-global-color-0); 
}

#sec-referenzen .premium-carousel-wrapper:not(.pa-has-custom-pos) a.carousel-arrow {
  top: auto;
  bottom: -14px;
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
  border: 1px solid var(--ast-global-color-0);
  border-radius: 4px;
  width: 44px;
  height: 44px;
  z-index: 1;
}

#sec-referenzen a.carousel-arrow.carousel-next {
  left: auto;
  right: 22%;
}

#sec-referenzen a.carousel-arrow.carousel-prev {
  right: auto;
  left: 22%;
}

#sec-referenzen .premium-carousel-dots-below ul.slick-dots {
  padding-top: 40px;
}

/* --- Typography Helpers --- */

.font-md h1 {
  font-size: 32px;
}

.font-md p {
  font-size: 18px;
  line-height: 1.3;
  color: #000000B2;
}

.font-md a {
  text-decoration: underline;
}

.card-unit .hfe-infocard-text-wrap {
  color: #000000B2;
}

.ast-separate-container .ast-article-single {
  padding: 0 !important;
}

.ast-separate-container #primary {
  margin-top: 80px;
}

/* --- Footer --- */

footer {
  margin-top: 60px;
}

footer .elementor-section.elementor-top-section .hfe-nav-menu .menu-item a.hfe-menu-item {
  padding-left: 4px;
  padding-right: 4px;
}

footer .hfe-nav-menu .menu-item:not(:last-child) > a.hfe-menu-item::after {
  content: " |";
  margin-left: 8px;
  color: inherit;
  opacity: 1 !important;
  position: relative;
}

footer .hfe-nav-menu ul.hfe-nav-menu {
  margin-right: 0;
}

.mobile-menu-open footer {
  position: fixed;
  bottom: 0;
  z-index: 100000000;
  width: 100%;
  background: #ffffff;
}

.mobile-menu-open footer #sec-logo {
  display: none;
}

.mobile-menu-open footer #sec-logo + section {
	margin-top: 0;
}

html.mobile-menu-open,
body.mobile-menu-open {
  overflow: hidden;
  height: 100%;
}


@media (max-width: 380px) {
  footer * {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #sec-referenzen .twentytwenty-horizontal .twentytwenty-before-label:before,
  #sec-referenzen .twentytwenty-horizontal .twentytwenty-after-label:before {
    font-size: 18px;
  }
  #sec-referenzen a.carousel-arrow.carousel-next {
    right: 3%;
  }
  #sec-referenzen a.carousel-arrow.carousel-prev {
    left: 3%;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  #sec-kontakt .elementor-element.elementor-element-ea10ce1.e-con-full.e-flex.e-con.e-child {
    max-width: 500px;
  }
}

@media (max-width: 767px) {
  .mobile-menu-open .site-header.ast-sticky-active #ast-mobile-header .main-header-bar {
	position: fixed;
    width: 100%;
    top: 0;
	z-index: 10000000;
  }
	#ast-mobile-header .main-header-menu .menu-item > .menu-link {
    font-size: 18px;
  }
  .ast-main-header-nav-open  .main-header-bar-navigation.toggle-on {
    height: calc(100vh - 100px) !important;
    overflow-y: auto;
	overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .ast-main-header-nav-open  .main-header-bar-navigation.toggle-on .main-header-menu {
	padding-bottom: 105px;
  }
  .ast-mobile-header-content {
    padding-top: 100px !important;
    margin-top: 0 !important;
  }
  .ast-mobile-header-wrap .ast-main-header-wrap {
    position: relative;
 	z-index: 999999 !important;
  }
  .sec-hero h1 {
    font-size: 40px;
  }
  footer .hfe-nav-menu__layout-horizontal {
    justify-content: center;
  }
  footer .copyright-wrap {
    order: 2;
  }
}

@media (min-width: 768px) and (max-width: 1024px) { 
  #sec-leistungen .hfe-infocard-title, 
  #sec-leistungen .hfe-icon-wrap {
    width: 100%;
  }

  .card-wrap.elementor-element.e-flex.e-con.e-child {
    flex-wrap: wrap;
  }

  .card-wrap.elementor-element.e-flex.e-con.e-child > .card-unit {
    flex: 0 0 49%;
    max-width: 49%;
  }
}


