/* Upright variable */
@font-face{
    font-family:"OpenSansVar";
    src:url("/templates/yootheme_olivnewton/fonts/OpenSans-Var.woff2") format("woff2");
    font-weight:300 800;
    font-stretch:75% 100%;
    font-style:normal;
    font-display:swap;
}
/* Italic variable */
@font-face{
    font-family:"OpenSansVar";
    src:url("/templates/yootheme_olivnewton/fonts/OpenSans-Var-Italic.woff2") format("woff2");
    font-weight:300 800;
    font-stretch:75% 100%;
    font-style:italic;
    font-display:swap;
}

/* Condensed Bold for H1–H3 etc. */
h1, h2, h3, h4, .uk-nav-header {
    font-family: "OpenSansVar", sans-serif;
    font-weight: 700!important;     /* Bold */
    font-stretch: 75%;    /* Condensed */
    letter-spacing: 0.1rem
}

/* FIX HEADER FOR LARGE DISPLAYS */
.tm-header {
    display: none!important;
}
.tm-header-mobile {
    display: block!important;
}

/* push logo to the right edge */
.uk-navbar .uk-logo {
    position: absolute;
    right: 0;
    top: 0;
}
/* push menu toggle to the left edge */
.uk-navbar-toggle {
    position: absolute;
    left: 1rem;
    top: 0;
}
/* push modal close button to the left edge */
[class*=uk-modal-close-] {
    left: 0.75rem;
    top: 0.6rem;
    text-align: left;
    padding: 20px 5px;
}

/* HERO SECTION RULES */
.hero-section {
    border-bottom: 5px solid #0bf;
}
.hero-section h1 {
    margin-top: 6rem;
}
.hero-section .uk-button {
    margin-bottom: 3rem;
}
.hero .uk-panel > :not(:has(.uk-button)) {
    text-shadow: 2px 2px 2px rgba(25, 25, 50, 0.75);
    filter: drop-shadow(0 0 3px #163E6A80);
}

/* INNER SECTIONS RULES */
.hicon {
    filter: grayscale(100%) sepia(75%) hue-rotate(175deg);
    text-align: left!important;
    margin-top: 3rem!important;
}
.uk-first-column:first-of-type .hicon {
    margin-top: 0!important;
}
.clogo {
    filter: grayscale(100%) sepia(50%) hue-rotate(175deg) opacity(40%);
    text-align: left!important;
    margin-bottom: 1rem!important;
}
.uk-section-muted .uk-divider-icon {
    filter: brightness(0.9);
}

/* Apply styles when the screen width is larger than 639px */
@media screen and (min-width: 640px) {
    .uk-navbar .uk-logo {
        right: -1rem;
    }
    .uk-navbar-toggle {
        left: 2rem;
    }
    .hero-section h1 {
        margin-top: 0;
    }
    .hero-section .uk-button {
        margin-bottom: 0;
    }
    [class*=uk-modal-close-] {
        padding: 20px;
    }
}

/* Apply styles when the screen width is between 640px and 1150.98px */
@media (min-width:640px) and (max-width:1150.98px){
    .feature-section h3 {
        width: 90%
    }
    .expertise .uk-text-meta {
        width: 90%
    }
}

/* Apply styles when the screen width is larger than 959px */
@media (min-width:960px) {
    .hicon {
        text-align: center!important;
        margin-top: 0!important;
    }
    .clogo {
        text-align: center!important;
    }
}

/* ACCORDION STYLES */
.uk-accordion-title {
    width: fit-content;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 10px 14px 10px 14px;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid #fff;
}
.uk-accordion-title:hover {
    background-color: #6e7a33;
    color: #fff;
    border-color: transparent;
}
.uk-accordion-title::after{
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-left: 0.7rem;
    margin-right: 0.1rem;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' aria-hidden='true'%3E%3Cline fill='none' stroke='%23fff' x1='3.47' y1='10' x2='15.47' y2='10'/%3E%3Cpolyline fill='none' stroke='%23fff' points='11.98 13.84 15.82 10 11.98 6.16'/%3E%3C/svg%3E")
      no-repeat 50% 50%/contain;
}
.uk-accordion-title:before {
    display: none;
}
.uk-accordion-content {
    background: #C3D2D9;
    padding: 1rem 1rem 1rem 0.3rem;
    border-radius: 4px;
    color: #163e6a;
}
.uk-accordion-content h4 {
    border-bottom: 2px solid;
    padding-bottom: 1rem;
    margin-left: 0.6rem;
}
.uk-accordion-content li {
    margin-bottom: 0.7rem;
}
.uk-accordion-content li:last-child {
    margin-bottom: 0;
}

/* FIX FLASHING OF HERO IMAGE */

/* Overlay sits above the bg image, below content */
/*.hero-section [uk-img] { 
    position: relative; 
}
.hero-section [uk-img] > * { 
    position: relative; 
    z-index: 3; 
}*/

.hero-section [uk-img]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 1; 
  transition: opacity 2s ease;
  z-index: 2; 
  pointer-events: none;
}
.hero-section [uk-img].bg-ready::before { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-section [uk-img]::before { transition: none; }
}

/* FOOTER FIXES */

.mailphone .uk-h2 {
    font-weight: 600;
}
.footercontact {
    text-align: center;
}

.footercontact div > div:last-child .uk-grid {
    justify-content: right;
    margin-left: -3rem;
}

@media (min-width:960px) {
    .footercontact {
        text-align: left;
    }
}

#totop-fixed {
    position: fixed; 
    bottom: 16px; 
    z-index: 1200;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 1);
    border-radius: 4px;
    padding-bottom: 5px;
    border: 1px solid white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
}
#totop-fixed {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
#totop-fixed.is-visible {
    opacity: 1;
    pointer-events:auto;
}

/* REFERENZEN */

@media (max-width:959px) {
    .referenzen .uk-first-column > div {
        border-top: 1px solid #e5e5e5;
        padding-top: 1rem;
    }
}