/*
 Theme Name:   gidee - GP Child
 Theme URI:    https://generatepress.com
 Description:  gidee - GeneratePress child theme
 Author:       gidee e.U.
 Author URI:   https://gidee.at
 Template:     generatepress
 Version:      0.1
*/

/* Header */
#masthead {
    position: fixed;
    top: 56;
    left: 0;
    right: 0;
    z-index: 999;
}

.admin-bar #masthead {
  top: 88px;
}

#masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
  rgba(31, 36, 36, 0.5) 0%,
  rgba(31, 36, 36, 0.2) 60%,
  rgba(31, 36, 36, 0) 100% );
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  z-index: -1;
}

#masthead .header-image {
  transition: 0.5s ease;
}

#masthead.g-is-scrolling .header-image {
  width: 90px;
}

#masthead.g-is-scrolling::before, body:not(.home) #masthead::before {
  opacity: 1;
}

.menu-toggle {
  font-size: 24px !important;
}

.mobile-menu-open #masthead {
  background-color: var(--contrast-2);
}

.has-inline-mobile-toggle #site-navigation.toggled {
  background-color: transparent;
}

#menu-main > .menu-item {
  position: relative;
}

html:not(.mobile-menu-open) #menu-main > .menu-item:hover::after,
html:not(.mobile-menu-open) #menu-main > .menu-item.current-menu-item::after {
  opacity: 1;
}

#menu-main > .menu-item::after {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 0;
  background-color: var(--accent);
  transition: 0.3s ease;
  border-radius: 2px;
  height: 2px;
  opacity: 0;
}

.menu-item-ext > a::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.35em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z'/></svg>") no-repeat center / contain;
}

/* Home - Hero */
.gb-text.gb-text-71d0b517 mark {
  background: linear-gradient(
    to top,
    transparent 16%,
    rgba(184, 206, 116, 0.9) 16%,
    rgba(184, 206, 116, 0.9) 38%,
    transparent 38%
  );
  color: inherit;
  padding: 0 5px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroFade 25s infinite ease-in-out;
}

.hero-bg-img__1 {animation-delay: 0s;}
.hero-bg-img__2 {animation-delay: 5s;}
.hero-bg-img__3 {animation-delay: 10s;}
.hero-bg-img__4 {animation-delay: 15s;}
.hero-bg-img__5 {animation-delay: 20s;}

@keyframes heroFade {
  0%   { opacity:0; }
  6%   { opacity:1; }
  20%  { opacity:1; }
  26%  { opacity:0; }
  100% { opacity:0; }
}

/* Home Vorteile */
.gb-element-fa95584c .glide__slide {
  display: flex;
  flex-direction: column;
  height: auto;
}

/* Glide - Arrows */
.glide__arrow.glide__arrow--left,
.glide__arrow.glide__arrow--right {
  position: absolute;
  top: 50%;
  padding: 5px;
  background-color: transparent;
  color: var(--color-bg-dark);
  transform: translateY(-50%);
  line-height: 1;
}

.glide__arrow.glide__arrow--left {
  left: -37px;
}
.glide__arrow.glide__arrow--right {
  right: -37px;
}


@media (max-width: 768px) {
  .glide__arrow.glide__arrow--left,
  .glide__arrow.glide__arrow--right {
    padding: 0;
  }
  .glide__arrow.glide__arrow--left {
    left: -26px;
  }
  .glide__arrow.glide__arrow--right {
    right: -26px;
  }
}

/* Footer Copyright Menu */
@media (max-width: 767px) {
    .copyright-bar {
        flex-wrap: wrap;
    }
    .copyright-bar-content {
        width: 100%;
        text-align: center;
    }
    .footer-copyright-menu {
        width: 100%;
        text-align: center;
        margin-top: 0.5em;
    }
    #menu-footer {
        margin-left: 0;
        justify-content: center;
    }
    ul#menu-footer-copyright {
        margin: 0 auto;
        justify-content: center;
    }
}
.copyright-bar {
  display: flex;
  width: 100%;
}
.footer-copyright-menu {
  margin-left: auto;
}
.footer-copyright-menu > ul {
  list-style: none;
  display: flex;
  margin-bottom: 0;
}
.footer-copyright-menu > ul li:not(:last-child)::after {
  content: '|';
  padding: 0 0.5em;
}

/* CF 7 */
.wpcf7-form label {
  font-size: 14px;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]), 
.wpcf7-form  select, 
.wpcf7-form textarea {
  width: 100%;
  background-color: var(--base-3);
  margin-bottom: 10px;
  margin-top: 3px;
}
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):focus, 
.wpcf7-form  select:focus, 
.wpcf7-form textarea:focus {
  border-color: var(--accent);
}

span.required::after {
  content: '*';
  color: var(--accent);
  margin-left: 0.15em;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]), .wpcf7-form select, .wpcf7-form textarea {
  border: 1px solid var(--contrast-3);
  border-radius: 2px;
}

input[type="submit"].wpcf7-submit {
  margin-top: 1em;
  align-items: center;
  background-color: var(--accent);
  color: var(--contrast);
  column-gap: 0.4em;
  flex-direction: row-reverse;
  font-weight: bold;
  margin-right: 1rem;
  text-decoration: none;
  transition: all 0.3s ease 0s;
  border-radius: 2em;
  padding: 10px 30px 11px 30px;
}

/* MC4WP */
.mc-newsletter--mail {
  margin-bottom: 0.5em;
}
.mc-newsletter--privacy {
  margin-bottom: 1em;
}
.mc-newsletter--privacy {
  font-size: 14px;
}
.mc-newsletter--privacy input {
  margin-right: 0.5em;
}
.mc-newsletter--submit .btn-primary,
.mc-newsletter--submit .btn-primary:hover {
  align-items: center;
  background-color: var(--accent);
  color: var(--contrast);
  column-gap: 0.4em;
  flex-direction: row-reverse;
  font-weight: bold;
  margin-right: 1rem;
  text-decoration: none;
  transition: all 0.3s ease 0s;
  border-radius: 2em;
  padding: 10px 30px 11px 30px;
}
.mc-newsletter--privacy a:hover,
.mc-newsletter--privacy a:focus,
.mc-newsletter--privacy a:active {
  color: var(--accent);
}

.mc-newsletter--mail input {
  background-color: var(--base-3);
  border: 1px solid var(--contrast-3);
  border-radius: 2px;
  width: 100%;
}

.mc-newsletter--mail input:focus {
  background-color: var(--base-3);
  border-color: var(--accent);
}

/* Lightbox */
img.lightbox-trigger {
    position: relative;
    cursor: zoom-in;
}
body.lb-open {
    overflow: hidden;
}
#simple-lightbox.visible {
  cursor: zoom-out;
}
#simple-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}
#simple-lightbox.visible { display: flex; }
#simple-lightbox img {
    max-width: 90%;
    max-height: 90%;
}
#simple-lightbox .lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* Blog */
.single-post #page, .archive #page {
  margin-top: 153px;
}

.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image {
  flex-grow: 0 !important;
}

.wp-block-gallery img {
  border-radius: 3px;
}

.archive .page-header {
  background-color: transparent;
}

.archive .post .entry-header {
  display: none;
}

.archive .post .entry-summary {
  display: none;
}

.archive .post .post-image {
  margin-bottom: -25px !important;
}

.archive .post .post-image img {
  display: block;
}

.archive.separate-containers .site-main > .generate-columns-container {
  padding: 0 25px;
}

.archive .page-header {
  padding-left: 0;
  padding-right: 0;
}

