.variant-wrapper {
  width:100%;
  background-color: $color-light-bg;
  border-top: 1px solid #CCCCCC;

  @include respond-to('small') {
    display:table-row;
    background-color: $color-bg-no-color;
    border-top:none;
  }
}

// ----------------------------------------------------------------------------
// Varianten Nav im 320px Modus
// ----------------------------------------------------------------------------
.variant-nav {
  margin:.5em 0;
  font-size:1.8em;


  a {

    display: inline-block;
    width:32%;
    margin:0;
    padding: 0;
    text-align: center;
    position: relative;
    color:#7d8ca4;

    &.active {
      font-weight: $font-bold;
      color:$color-font-primary;


      span {
        position: relative;
        z-index: 100;
      }

      &:after {
        content: "";
        display: block;
        width:20px;
        height:20px;
        background-color: #FFF;
        color:$color-font-primary;
        position: absolute;
        left:50%;
        bottom:-20px;
        transform: translateX(-50%) rotateZ(45deg);
        border-right: 1px solid #CCC;
        border-bottom: 1px solid #CCC;
        z-index: 50;
      }
    }
  }
  //a:first-child {
  //  text-align: left;
  //}
  //a:last-child {
  //  text-align: right;
  //}

  @include respond-to('small') {
    display:none;
  }
}

// ----------------------------------------------------------------------------
// Decorator (mittlerer Kasten)
// ----------------------------------------------------------------------------
#decorator {

  @include respond-to('small') {
    border-left:1px solid #dcdcdc;
    border-right:1px solid #dcdcdc;
  }
}

// ----------------------------------------------------------------------------
// Variante Item
// ----------------------------------------------------------------------------
.variant {
  width:100%;
  vertical-align: top;
  padding:0 15px 15px 15px;
  box-sizing: border-box;

  @include respond-to('tiny') {
    overflow: hidden;
  }

  // Ab 768px ist genug Platz für 3 Spalten
  @include respond-to('small') {
    width:33%;
    display:table-cell;
  }

  // Mehr Padding bei viel Platz... sieht besser aus!
  @include respond-to('large') {
    padding:0 30px 30px;
  }


  figure {
    margin:.5em 0;

    @include respond-to('tiny') {
      float:left;
      width:50%;
    }

    @include respond-to('small') {
      float:none;
      width:100%;
      margin: 1em 0;
    }

    img {
      display:block;
      margin:0 auto;
      max-width: 160px;

      @include respond-to('small') {
        max-width: 210px;
      }
    }

    figcaption {
      strong {
        color:$color-font-primary;
        font-weight: $font-bold;
        font-size:1.8em;
        display:none;

        @include respond-to('small') {
          display: block;
        }
      }
      small {
        color:lighten($color-font-secondary, 20%);
        position: relative;
        top:20px;

        @include respond-to('small') {
          position: static;
          top:0;
        }
      }
    }
  }


  h3 {
    font-size:1.8em;
  }

  .feature-list {
    list-style: none;
    padding-left:0;
    font-size:1.6em;

    .fa {
      color:$color-font-primary;
      display:inline-block;
      margin-right:1em;
    }
  }

  @include respond-to('small') {
    .inclusive-features {
      min-height:144px;
    }
  }
}

// ----------------------------------------------------------------------------
// Variant Collection
// ----------------------------------------------------------------------------
.variant-collection {
  @include sectionize;

  .variant-outer-wrapper {
    width:100%;
    @include respond-to('small') {
      display: table;
    }
  }

  h2 {
    padding-left:15px;

    @include respond-to('large') {
      padding-left: 0;
    }
  }
  
  & .wrapper > h2 + p {
    padding-left:15px;
    padding-right:15px;
    font-size:1.6em;
    
    @include respond-to('large') {
      padding-left: 0;
      padding-right: 0;
    }
  }

  .contact-button-wrapper {
    text-align: center;
    margin-bottom: 0;
    margin-top: 0;
    
    @include respond-to('small') {
      margin:4em 0;  
    }
  }
  .contact-button {
    background-color: $color-font-primary;
    color:#FFF;
    font-weight: $font-bold;
    font-size:2em;
    display:block;
    padding:1em .5em;
    box-sizing: border-box;
    position: relative;
    transition: background-color 0.2s linear;

    &:hover {
      background-color: lighten($color-font-primary, 10%);

      &:after {
        border-left-color: lighten($color-font-primary, 10%);
      }
    }

    @include respond-to('small') {

      display:inline;
      padding:.5em;

      &:after {
        content: "";
        width: 0;
        height: 0;
        border-top: 22px solid transparent;
        border-bottom: 22px solid transparent;
        border-left: 22px solid $color-font-primary;
        position: absolute;
        right: -22px;
        top: 0;
        transition: border-left-color 0.2s linear;


      }
    }
  }
}
