/* Main */
#main {

  /* Typografie */
  h1 {
    letter-spacing: 0.1em;

    &:before,
    &:after {
      font-size: larger;
      font-weight: normal;
    }

    &:after {
      content: '\005D';
    }

    &:before {
      content: '\005B';
    }
  }

  h2 {
    &.av-special-heading-tag+.av-subheading_below>p {
      font-size: small;

      &:before {
        content: '\2014 \00A0';
      }
    }
  }

  /* Layout */
  .content {
    padding-top: 20px;
  }

  .container_wrap {
    border: none;
  }

  .main_color .avia-image-overlay-wrap img,
  #rug .avia-gallery img,
  .main_color :where(img[class*=wp-image-]) {
    background-color: var(--enfold-main-color-bg);
    border-radius: 6px;
    padding: 2px;
    border: 1px solid var(--enfold-main-color-border);
  }

  #nk-hero img {
    border: none;
  }
}


/* Socket */
#socket {
  .sub_menu_socket {
    float: right;
    /* margin: 0; */
    font-size: larger;
  }

  .copyright {
    float: left;
  }
}

/* Footer*/
#footer {
  box-shadow: var(--tf-footer-shadow);
  padding: 15px 0 15px 0;

  #footer .widget {
    margin: 0;
  }

  #footer .flex_column.av_one_half:first-child {
    width: 70%;
  }

  #footer .flex_column.av_one_half:nth-child(2) {
    width: 30%;
    margin: 0;
  }

  /* #footer .flex_column.av_one_half:nth-child(3) {
  width: 20%;
  margin: 0;
  }

  #footer .flex_column.av_one_half:nth-child(4) {
    width: 10%;
    margin: 0;
  } */

  /* #footer .flex_column.av_one_half .widget {
    width: 80%;
  }

  #footer .flex_column.av_one_half:nth-child(4) .widget {
    width: 100%;
  } */
}

/* Header Meta*/
#header_meta {
  background-color: transparent;

  .phone-info,
  .phone-info a {
    color: var(--enfold-header-color-bg);
    letter-spacing: 0.1em;
  }
}

/* Header*/
#header {
  #header_main {
    box-shadow: var(--tf-header-shadow);
  }
}

/* Widgets ================================================================= */

/* ChronoForms */
#chronoform-muster-bestellen select,
#chronoform-angebot-anfordern select {
  display: none;
}

#tf-masonry-t,
#tf-masonry-k,
#tf-masonry-wb,
#tf-masonry-kn,
#av-masonry-1 {
  figure {
    box-shadow: var(--tf-shadow-natural);
    border-radius: 4px;
    border: 1px solid var(--enfold-main-bg);
    /* padding: 2px; */
  }

  .av-sort-by-term {
    text-align: left;
  }
}

/* Custom grid row width*/
#main #rug {
  max-width: 1260px;
  margin: 0 auto;

  /* .avia-gallery img {
    float: left;
    border-style: solid;
    border-width: 1px;
    padding: 7px;
    width: 100%;
    border-radius: 7px;
  } */

  /* img.avia_image {
    box-shadow: none;
  } */

  /* .subtitle {
    font-weight: bold;
    list-style: none;
    margin-left: 0 !important;
  } */
}

/* Media Queries =========================================================== */

/* large screens with 1140px with */
@media only screen and (min-width: 1140px) {}

/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 989px) {}

/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 989px) {}

/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {}

/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) {}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {

  .tf-flex,
  .tf-flex-2 {
    flex-wrap: wrap;

    img {
      float: none;
    }

    p {
      text-align: left;
    }
  }
}