@mixin header-size($type) {
  @each $breakpoint, $elements in $header-styles {
    @include breakpoint($breakpoint) {
      @each $domelement, $cssproperties in $elements {
        @if $domelement == $type {
          @each $property, $value in $cssproperties {
            #{$property}: $value;
          }
        }
      }
    }
  }
}

//** OLD ... MAYBE NOT USED

@mixin amds-button() {

  border-radius: 0;
  background: transparent;

  outline: $button-border-width solid $brand-primary;
  color: $brand-primary;

  font-size: 0.75rem;
  font-family: $brand-font-regular, sans-serif;
  text-transform: uppercase;

  padding: $global-padding/2 $global-padding;

  margin-bottom: $global-padding;

  &:hover {
    background: $brand-primary;
    outline: $button-border-width solid $brand-primary;
    color: $white;
  }

  @include breakpoint(medium up) {
    font-size: 0.9rem;
  }

}

@mixin amds-button-branding($brand-name,$brand-color) {
  .brand-#{$brand-name} & {
    @include amds-button-colors($brand-color)
  }
}

@mixin amds-button-colors($brand-color,$hover-color:white) {
  color: $brand-color;
  outline: $button-border-width solid $brand-color;

  &:hover {
    color: $hover-color;
    background: $brand-color;
    outline: $button-border-width solid $brand-color;
  }
}

@mixin amds-headline-box($background-color,$font-color,$border-color:$brand-primary) {
  position: relative;

  .wp-block-cover__inner-container {
    width: auto;

    p {
      margin: 0 auto;
      position: relative;
      background-color: transparentize($background-color, .2);
      padding: $global-padding*2;
      color: $font-color;
      text-align: left;
      line-height: 1;

      b, strong {
        margin-bottom: $global-padding;
        color: $font-color;
      }

      border-width: 18px;
      border-style: solid;
      border-color: $border-color;

    }
  }
}

@mixin amds-contactblock-branding($brand-name,$brand-color) {
  &.brand-#{$brand-name} {
    h2, h3, strong {
      color: $brand-color;
    }

    a:before {
      color: $brand-color;
    }
  }
}