/**
Theme Name: mea Astra
Author: Brainstorm Force | mea IT Services e.U.
Author URI: http://wpastra.com/about/
Description: 
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-mea-it-services
Template: astra
*/

/* to remove white border on safari mobile landscape */
html, footer {
    padding: env(safe-area-inset);
}

html {
    overflow-x: hidden;
}

body, 
html 
{
    width: 100vw;
}

body {
    --selcolor: var(--ast-global-color-1);
    --selforeground: var(--ast-global-color-0);
    min-height: 100%;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

::selection {
    background-color: var(--selcolor);
    color: var(--selforeground);
}

h1, h2, p, a {
    transition: color 0.2s ease-out;
}

div {
    -webkit-transition: background-color 0.2s ease-out,
                        color 0.2s ease-out;
    -moz-transition: background-color 0.2s ease-out,
                        color 0.2s ease-out;
    -ms-transition: background-color 0.2s ease-out,
                        color 0.2s ease-out;
    -o-transition: background-color 0.2s ease-out,
                        color 0.2s ease-out;
    transition: background-color 0.2s ease-out,
                        color 0.2s ease-out;
}

p {
    line-height: 1.2;
}

#page {
    background-color: var(--ast-global-color-0);
}

body, a {
    color: var(--ast-global-color-1);
}

button:focus, 
.menu-toggle:focus, 
a:focus 
{
    outline: none !important;
    border: none !important;
}

.astra-logo-svg {
    width: 4vw !important;
    max-width: none !important;
    /*filter: invert(50%) sepia(100%) saturate(0%) hue-rotate(321deg) brightness(0%) contrast(100%);*/ /* black */
    filter: invert(50%) sepia(100%) saturate(0%) hue-rotate(321deg) brightness(200%) contrast(100%);
}

.site-primary-header-wrap {
    max-width: none !important;
}

#cursor {
    pointer-events: none;
    height: auto;
    width: 2.5vw;
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
    transition: width 0.2s ease-out, height 0.2s ease-out,
                top 0.125s ease-out,  left 0.125s ease-out,
                opacity 0.3s ease-out;
    transform: translate(-50%, -60%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#cursor path {
    stroke-width: 0.5px;
    stroke: black;
    fill: none;
}

/* open menu icon positioning */
.ahfb-svg-iconset svg {
    width: 40px;
    height: 40px;
}

.ast-mobile-popup-header {
    justify-content: flex-start !important;
    padding-left: 4em;
    padding-top: 3em;
}

.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close {
    padding: 10px !important;
}

/* sticky menu */
.main-header-bar.ast-sticky-active {
    box-shadow: none !important;
}

.ast-primary-header-bar {
    width: 100vw !important;
    max-width: 100vw !important;
    position: fixed;
}

/* footer */
.footer-main-menu a {
    font-size: 3.5vw;
    line-height: 1.2;
}

.footer-main-menu a:hover,
#footer-copyright a:hover,
a:hover,
a:focus
{
    color: var(--ast-global-color-2) !important;
}

.footer-right-col a {
    font-size: 1.2vw;
    line-height: 1.2;
}

#footer-copyright p, 
#footer-copyright a 
{
    font-size: 1vw;
}

/* video */
#cursor-video {
    width: 1em;
    height: 1em;
    font-size: 7.5em;
    background-color: white;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300000;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    scale: 0;
    transform: translate(-50%, -50%);
    transform-origin: left top;
    transition: scale 0.3s ease-out, opacity 0.3s ease-out,
                top 0.125s ease-out,  left 0.125s ease-out;
}

#cursor-video::before {
    content: '';
    width: 0.3em;
    height: 0.28em;
    display: flex;
    background-image: url(https://www.werbewelle.at/wp-content/uploads/2024/10/Lautstaerke-Symbol.svg);
}

#video {
    cursor: pointer;
}

/* products */
.product-container {
    position: relative;
}

.product-bottle,
.product-background
{
    transition: all 0.2s ease-out;
}

.product-background img {
    object-fit: contain;
}

.product-bottle
{
    position: absolute !important;
    /* top: 0; */
    left: 0;
    right: 0;
    max-height: 100%;
    width: auto !important;
}

.product-bottle img {
    max-height: none;
    max-width: 14.8vw;
    width: 100% !important;
    object-fit: contain;
    scale: 0.9;
}

.product-rotate-right {
    transform: rotate(5deg);
}

.product-bottle-glass {
    height: 100%;
}

.product-bottle.product-bottle-glass img {
    scale: 1;
    transform-origin: center;
    margin: auto;
    max-height: 100% !important;
    height: 100% !important;
}

.product-container:hover .product-bottle.hover-turn-left {
    transform: rotate(-5deg) scale(1.1);
}

.product-container:hover .product-bottle.hover-turn-right {
    transform: rotate(5deg) scale(1.1);
}

.product-container:hover .product-background {
    transform: scale(0.9);
}

/* bottle slider */

.mea-infinite-slider {
    position: relative;
    width: auto !important;
    max-width: none !important;
    /*left: 50%;*/
	/*margin-left: -50vw !important;*/
    margin-right: 0 !important;
    margin-top: 0 !important;
    display: flex;
    flex-direction: row-reverse;
    overflow: visible;
    align-items: center;
    justify-content: space-evenly !important;
    flex-wrap: nowrap;
    /*transform: translate(-50%, 0);*/
}

.mea-infinite-slider-wrap > * {
    flex: 0 0 100%;
}

.mea-infinite-slider-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly !important;
    flex-wrap: nowrap;
    overflow: visible;
    width: auto !important;
    max-width: none !important;
    top: 0;
    transition: transform 0.1s ease-out;
    position: relative;
    white-space: nowrap;
}

.mea-infinite-slider-wrap-left-chrome {
    left: calc(-395%);
}

.mea-infinite-slider-wrap-left-firefox {
    left: -190%;
}

.mea-infinite-slider img {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.mea-infinite-slider-group {
    display: flex;
    max-width: none !important;
    width: auto !important;
    will-change: transform;
    overflow: visible;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-evenly !important;
    flex-wrap: nowrap;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-name: infiniteSliderScrollingToRight;
	animation-duration: 80s;
	padding-right: 4vw !important;
    animation-fill-mode: both;
    animation-play-state: paused;
    flex: 1;
}

.mea-infinite-slider-element {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    width: 12vw !important;
}

@keyframes infiniteSliderScrollingToRight {
    0% {
        -webkit-transform: translateX(0); /* Chrome, Safari, Opera */
        -moz-transform: translateX(0); /* Firefox */
        -ms-transform: translateX(0); /* IE 9 */
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(100%); /* Chrome, Safari, Opera */
        -moz-transform: translateX(100%); /* Firefox */
        -ms-transform: translateX(100%); /* IE 9 */
        transform: translateX(100%);
    }
}

/* reference slider */

.mea-infinite-slider-reference {
    position: relative;
    width: auto !important;
    max-width: none !important;
    display: flex;
    overflow: visible;
}

.mea-infinite-slider-reference-wrap > * {
    display: flex;
    flex: 0 0 100%;
}

.mea-infinite-slider-reference-wrap {
    align-items: center;
    justify-content: space-evenly !important;
    flex-wrap: nowrap;
    width: auto !important;
    max-width: none !important;
    top: 0;
    left: 3%;
    transition: transform 0.1s ease-out;
}

.mea-infinite-slider-reference-group {
    padding-right: 2vw !important;
    max-width: none !important;
    width: auto !important;
    display: flex;
    overflow: visible;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-evenly !important;
    flex-wrap: nowrap;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-name: infiniteSliderScrollingToLeft;
	animation-duration: 160s;
    animation-fill-mode: both;
    animation-delay: 0;
    animation-play-state: paused;
    flex: 1;
    will-change: transform;
    /*flex-basis: 150%;*/
}

@keyframes infiniteSliderScrollingToLeft {
    0% {
        -webkit-transform: translateX(0); /* Chrome, Safari, Opera */
        -moz-transform: translateX(0); /* Firefox */
        -ms-transform: translateX(0); /* IE 9 */
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-100%); /* Chrome, Safari, Opera */
        -moz-transform: translateX(-100%); /* Firefox */
        -ms-transform: translateX(-100%); /* IE 9 */
        transform: translateX(-100%);
    }
}

.mea-infinite-slider-reference-element {
    width: 40vw !important;
}

.mea-infinite-slider-reference-element img {
    width: 100%;
}

.mea-infinite-slider-reference-hover {
    position: absolute !important;
    top: 0;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    /*width: 101% !important;*/
}

.mea-infinite-slider-reference-hover img {
    width: auto !important;
}

.mea-infinite-slider-reference-element:hover .mea-infinite-slider-reference-hover {
    opacity: 1;
    cursor: pointer;
}

.mea-infinite-slider-reference img {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.mea-infinite-slider-reference a {
    user-drag: none;
    -webkit-user-drag: none;
}

.mea-infinite-slider-reference-moving {
    pointer-events: none;
}

#tautropfen {
    z-index: 2;
    position: absolute;
    max-width: none !important;
    width: 100vw;
    height: 100vh;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity ease-in-out;
}

.notransition {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* Responsive */

/* tablet */
@media screen and (max-width: 1025px) {
    .tablet-font-small p {
        font-size: 16px !important;
    }

    .astra-logo-svg,
    .ahfb-svg-iconset svg 
    {
        width: 5vw !important;
        height: auto !important;
    }

    .product-container {
        height: 100%;
    }

    .product-bottle img {
        width: 15vw !important;
        max-width: none;
    }

    .mea-infinite-slider-element {
        width: 20vw !important;
    }
}

@media screen and (min-height: 450px) and (max-width: 1025px) {
    .mea-infinite-slider-wrap-left-firefox {
        left: -637%;
    }
}

/* mobile */
@media screen and (max-width: 767px) {
    .mea-infinite-slider-reference-element {
        width: 60vw !important;
    }

    .mea-infinite-slider-reference-group {
        padding-right: 6vw !important;
    }

    .main-navigation .menu-item > .menu-link,
    .footer-main-menu a 
    {
        font-size: 9vw;
    }

    .footer-right-col a,
    #footer-copyright p, 
    #footer-copyright a  
    {
        font-size: 16px;
    }

    .astra-logo-svg,
    .ahfb-svg-iconset svg 
    {
        width: 8vw !important;
        height: auto !important;
    }

    .product-bottle img {
        max-height: 110%;
        max-width: none;
        width: auto !important;
    }

    .product-container {
        height: auto;
    }

    .product-bottle.product-bottle-glass img {
        scale: 1;
    }

    /*#produkte-content p,
    #produkte-content h2 
    {
        text-align: center;
    }*/

    .text-block p {
        font-size: 5vw !important;
    }

    .mobile-line-height-small p {
        line-height: 1.5em;
    }

    .mea-infinite-slider-element {
        width: 28vw !important;
    }

    .mea-infinite-slider-wrap-left-firefox {
        left: -447%;
    }

    .mea-infinite-slider-wrap-left-chrome {
        left: -911%;
    }

    li {
        font-size: 16px;
        line-height: 28px;
    }
}

/* landscape */ 

@media screen and (max-height: 410px) and (max-width: 767px) {
    #produkte-content img {
        max-height: 90vh;
        object-fit: contain;
    }
}

@media screen and (max-height: 420px) and (max-width: 900px) {
    .product-bottle.product-bottle-glass img {
        scale: 0.7;
    }
}

/*@media screen and (max-height: 500px) and (max-width: 767px) {
    #produkte-content p,
    #produkte-content h2 
    {
        text-align: left;
    }
}*/

/* wide */
@media screen and (min-width: 2400px) {
    h2 {
        font-size: 3.8vw !important;
    }

    .footer-main-menu a {
        font-size: 2.5vw;
    }

    .product-bottle img {
        max-width: 13vw;
    }
}