/**
Theme Name: Mea IT Services Astra
Author: mea IT Services e.U. | Kerstin Greifensteiner
Author URI: https://mea-it.services
Description: Child Theme of Astra WP developed by mea IT Services e.U.
Version: 4.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mea-it-services-astra
Template: astra
*/

/* General */

p > a {
    font-weight: bold;
}

main p > a:hover {
    text-decoration: underline;
}

/* Header section */

.hd-heading-black {
	width: fit-content !important;
}

/* Slider gallery */

/* Arrow positioning */

.hd-slider-gallery {
    position: unset !important;
}

.hd-slider-gallery .slick-slider {
    position: unset !important;
}

.hd-slider-gallery-container {
    position: unset;
}

.hd-slider-gallery .slick-prev {
    transform: translate(calc(-100% - 1em), 100%);
    right: 1rem;
    left: unset !important;
}

.hd-slider-gallery .slick-next {
    transform: translate(0, 100%);
}

.hd-slider-gallery .slick-next,
.hd-slider-gallery .slick-prev {
    bottom: -1rem;
    top: unset;
    box-shadow: none;
    background-color: white;
}

/* Slider read more */

.hd-slider-text { 
    transition: height 0.5s ease-out;
    overflow: hidden !important;
}

.hd-slider-text-hidden-on-load {
	position: absolute;
	z-index: -2;
	opacity: 0;
}

.hd-slider-read-more {
    transition: opacity 0.2s ease-out;
	position: absolute;
	z-index: -1;
}

.hd-show {
	opacity: 1;
}

.hd-slider-text-container {
    transition: height 0.5s ease-out;
    overflow: hidden !important;
    min-height: 350px;
}

.hd-slider-text-hidden {
    height: 0;
    opacity: 0;
}

.hd-btn-disabled {
    border-color: grey !important;
}

.hd-btn-disabled div {
    color: grey !important;
}

.hd-btn-disabled:hover {
    cursor: not-allowed;
    background-color: white !important;
}

.hd-btn-disabled:hover div {
    color: grey !important;
}

.hd-slider-read-more-btn .uagb-button__link {
    pointer-events: none;
}

/* Gallery image */

.hd-slider-gallery .spectra-image-gallery__media,
.hd-slider-gallery .spectra-image-gallery__media img,
.hd-slider-gallery .slick-slide > div {
    height: 445px;
}

.hd-slider-gallery .spectra-image-gallery__media img {
    object-fit: cover;
}

.uagb-block-33852325 .spectra-image-gallery__layout--carousel {
    margin-bottom: 0 !important;
}

/* Image border */

.hd-slider-gallery .spectra-image-gallery__media::before,
.hd-maps-container::before,
.border::after,
.border-img figure::after
{
    content: "";
    position: absolute;
    border: 1px solid var(--ast-global-color-3);
    inset: 12px;
    z-index: 1;
    pointer-events: none;
}

.border-img figcaption {
    position: absolute;
	padding-left: 1em;
    padding-right: 1em;
    top: 100%;
	margin-top: 1em;
}

.border-img figure {
	margin-bottom: 4em;
}

/* Kompetenzen */

.hd-kompetenzen-title::after {
	content: '';
    position: absolute;
    width: 0px;
    height: 0px;
    border-left: 1em solid transparent;
    border-right: 1em solid transparent;
    border-top: 1em solid var(--ast-global-color-3);
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
	pointer-events: none;
}

.hd-kompetenzen-list {
	transition: height .2s ease-out;
	opacity: 0;
	position: absolute;
	top: 100%;
	z-index: -1;
	justify-content: start !important;
	overflow: hidden !important;
}

.hd-kompetenzen-list .wp-block-uagb-icon-list-child {
	padding-left: 5px;
	padding-right: 5px;
	
}

.hd-kompetenzen-list .wp-block-uagb-icon-list-child:has(a):hover {
	background-color: var(--ast-global-color-3);
	color: var(--ast-global-color-4);
}

.hd-kompetenzen-list .wp-block-uagb-icon-list-child:has(a):hover .uagb-icon-list__source-wrap path {
	fill: var(--ast-global-color-4);
}

.hd-kompetenzen-title-container {
	overflow: hidden !important;
	z-index: 1;
}

.hd-kompetenzen-img {
	position: absolute;
    top: 0;
    transition: all 200ms ease-out;
}

.hd-kompetenzen-container:hover .hd-kompetenzen-img {
	scale: 1.2;
}

.hd-kompetenzen-container:hover {
	border: 1px solid var(--ast-global-color-3);
}

/* Fixed section gallery */

.hd-section-gallery {
    border-left-width: 1px;
    border-right-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    border-style: solid;
    border-color: var(--ast-global-color-3);
}

.hd-section-gallery .spectra-image-gallery__media-wrapper {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
    padding-left: 1.5em;
    padding-right: 1.5em;
    border-right-width: 1px;
    border-left-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    border-style: solid;
    border-color: var(--ast-global-color-3);
}

.hd-section-gallery .spectra-image-gallery__media {
    aspect-ratio: unset;
    height: 16em;
    width: auto;
}

.hd-section-gallery .spectra-image-gallery__media-wrapper:first-of-type {
    padding-left: 1.5em;
}

/* nur bei Gallery mit > 2 Bildern */
.hd-section-gallery-container-full .hd-section-gallery .spectra-image-gallery:has(> *:nth-child(3))::after {
    content: '';
    position: absolute;
    width: 100%;
    background-color: var(--ast-global-color-3);
    height: 1px;
    display: block;
    z-index: 1;
    bottom: 50%;
    left: 0;
}

.hd-section-gallery .spectra-image-gallery__layout--grid-col-3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Engineering Layout - 6 Bilder in Galerie */
.hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:first-of-type,
.hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:last-of-type {
    grid-column: span 2;
}

/* Produktion Layout - 5 Bilder in Galerie */
.hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:nth-of-type(5):last-of-type {
    grid-column: span 3;
}

/* Montage Layout - 4 Bilder in Galerie */
.hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:first-of-type:nth-last-of-type(4),
.hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:nth-of-type(4):last-of-type
{
    grid-column: span 3;
}

/* Remove flag of current language*/

.ast-builder-language-switcher-menu-item-header:has(.ast-builder-language-switcher-item__active) {
    display: none;
}

/* Menu general */

.main-header-menu {
    row-gap: 1em;
}

/* Menu hover animation */

.menu-link::after,
#hd-footer-menu p::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: 0;
    height: 1px;
    background-color: var(--ast-global-color-3);
    transition: width 0.2s ease-out;
}

#ast-hf-mobile-menu .menu-item {
    width: fit-content !important;
}

#ast-hf-mobile-menu .menu-link::after {
    bottom: 5px;
}

#ast-hf-mobile-menu {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#ast-hf-mobile-menu .menu-item:hover .menu-link::after,
#hd-footer-menu p:hover::after {
    width: 80%;
}
  
.menu-item:hover .menu-link::after {
    width: 80%;
}

.site-navigation .menu-text {
    line-height: normal;
}

/* button hover */

.uagb-buttons-repeater {
    transition: background-color 0.1s ease-out !important;
}

/* video */

.hd-video-wrapper iframe {
    aspect-ratio: 16 / 9;
    pointer-events: none; 
    border: none;
    height: 99%;
}

/* contact section */

.hd-maps-container
{
    height: 100% !important;
}

/* Cookie Banner Media Placeholder */
#google-maps-placeholder {
    height: 100%;
    margin-bottom: 0 !important;
    padding-top: 50% !important;
}

#kontakt .wp-block-uagb-info-box a {
    color: white;
    text-decoration: none;
}

#kontakt .wp-block-uagb-info-box a:hover {
    text-decoration: underline;
}

/* Footer */

#hd-footer-menu .wp-block-uagb-info-box {
	width: fit-content;
}

@media (max-width: 921px) {
    .ast-builder-grid-row-container.ast-builder-grid-row-tablet-2-equal .ast-builder-grid-row {
        grid-template-columns: 2fr 1fr;
    }
}

/* Blog */

.ast-single-entry-banner > .ast-container {
	max-width: var(--wp--custom--ast-content-width-size) !important;
	padding-left: 0;
	padding-right: 0;
}

article.type-post {
	padding-left: 6em !important;
	padding-right: 6em !important;
	padding-top: 6em !important;
}

.type-post .ast-post-format- {
	max-width: var(--wp--custom--ast-content-width-size) !important;
	margin-left: auto;
	margin-right: auto;
}

.post-navigation {
  display: none;
}

.type-post h1, .type-post h2, .type-post h3, .type-post h4 {
    margin-bottom: 0;
}

.type-post .entry-content > * {
    margin-bottom: 0;
}

.type-post .uagb-icon-list__wrap {
	padding-left: 4em;
}

/* Sticky Buttons (Scroll to top and home button) */
.hd-sticky-btn .uagb-svg-wrapper {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15) !important;
}

.hd-sticky-btn:hover .uagb-svg-wrapper {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .3) !important;
}

.hfeed:has(article.page) .hd-home-btn {
    display: none;
}

.site-below-footer-wrap {
    height: 0;
    padding: 0;
    position: absolute;
    bottom: 0;
}

.site-footer {
    position: relative;
}

.site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
    max-width: 100vw !important;
}

.site-below-footer-wrap .ast-builder-grid-row-container-inner {
    width: fit-content;
    margin-left: auto;
}

#ast-scroll-top {
    background-color: inherit;
    font-size: inherit;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
    display: block !important;
    width: auto;
    height: auto;
    position: inherit;
}

#ast-scroll-top.ast-scroll-top-icon,
#ast-scroll-top.ast-scroll-to-top-right 
{
  display: none !important;
}


.hd-sticky-btn-container .uagb-position__sticky {
    width: fit-content !important;
    left: auto !important;
    right: 0;
}

/* Mobile General */ 

@media screen and (max-width: 767px) {
    .hd-section-gallery .spectra-image-gallery__layout--grid-col-3 {
        grid-template-columns: 1fr;
    }

    .hd-section-gallery .spectra-image-gallery__media-wrapper {
        border-top-width: 1px;
    }

    .hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:first-of-type {
        border-top-width: 0;
        grid-column: span 1;
    }

    .hd-section-gallery-container-full .hd-section-gallery .spectra-image-gallery:has(> *:nth-child(3))::after {
        height: 0;
    }

    .hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:first-of-type,
    .hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:last-of-type,
    .hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:nth-of-type(5):last-of-type,
    .hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:first-of-type:nth-last-of-type(4),
    .hd-section-gallery .spectra-image-gallery__layout--grid-col-3 .spectra-image-gallery__media-wrapper:nth-of-type(4):last-of-type
    {
        grid-column: span 1;
    }

    
    .hd-maps-container,
    .hd-maps-container .wp-block-uagb-google-map,
    .hd-maps-container embed
    {
        height: 400px !important;
    }

    .site-footer-section .wp-block-uagb-image {
        clear: both;
        float: none;
        margin-right: 0;
        margin-left: auto;
    }
	
	.ast-builder-footer-grid-columns {
		grid-template-columns: 1fr !important;
	}
	
	/* Blog */

	article.type-post {
		padding-left: 2em !important;
		padding-right: 2em !important;
		padding-top: 2em !important;
	}
	
	.type-post .uagb-icon-list__wrap {
		padding-left: 2em;
	}
}

/* Mobile Landscape */ 

@media screen and (max-width: 767px) and (max-height: 400px) {

    #referenzen > div > div > div {
        width: 35%;
    }

    .hd-slider-container > div {
        flex-wrap: nowrap !important;
    }

    .hd-slider-gallery-container {
        width: 40% !important;
    }

    .hd-slider-gallery .spectra-image-gallery__media,
    .hd-slider-gallery .spectra-image-gallery__media img,
    .hd-slider-gallery .slick-slide > div {
        height: 250px;
    }

    .ast-mobile-header-wrap .ast-primary-header-bar, .ast-primary-header-bar .site-primary-header-wrap {
        min-height: 65px;
    }

    .hd-slider-gallery .slick-slider {
        position: relative !important;
    }
    
    .hd-slider-gallery .slick-next,
    .hd-slider-gallery .slick-prev {
        box-shadow: none;
        background-color: white;
    }
}

/* Tablet */
@media screen and (min-width: 767px) and (max-width: 976px) {
	/* Blog */

	article.type-post {
		padding-left: 4em !important;
		padding-right: 4em !important;
		padding-top: 4em !important;
	}

	.type-post .uagb-icon-list__wrap {
		padding-left: 2em;
	}
}

/* fix broken background-attachment on iPhone Safari browser */
@media (hover: none) {
    #einsatzgebiete
    {
        background-attachment: initial;
    }
}