// Extensions
.clear {
    clear: both;
}

.noheight {
    height: 0;
    line-height: 0;
    font-size: 0;
    display: block;
    overflow: hidden;
}

.invisible {
    visibility: hidden;
}

.offscreen {
    position: absolute;
    left: -9999em;
}



%button,
%secondary_button {
  display: inline-block;
  text-decoration: none;

  padding: 0 15px;
  line-height: 28px;
  cursor: pointer;

  // iOS-Safari macht sonst Mist mit Buttons...
  -webkit-appearance: none;
  -webkit-border-radius: 0;
}

%button {
  color: $text_white;
  text-transform: uppercase;
  background: $color-accent-contrast;
  border: 2px solid $color-accent-contrast;

  &:hover,
  &:focus,
  &:active {
    background: $bg_white;
    color: $color-accent-contrast;
    outline: 0;
  }
}

%secondary_button {
  border: 2px solid $color-accent;
  background: $bright;
  color: $color-accent;

  &:hover,
  &:focus,
  &:active {
    background: $color-accent;
    color: $bg_white;
    outline: 0;
  }
}

%corner_button {
  position: absolute;
  bottom: 0;

  @extend %link-underlining;

  display: block;
  color: $color-accent-contrast;
  background: $bright;
  border: 2px solid $color-accent;
  border-bottom-width: 0;
  padding: 2px 7px;
}

%link-underlining {
  text-decoration: none;

  &:hover,
  &:focus,
  &:active {
    text-decoration: underline;
  }
}

%imagelink {
  display: inline-block;

  &:focus {
    outline: 2px solid $color-accent-contrast;
  }
}

%event_location,
%event_date {
  font-weight: bold;
  min-height: 45px;
  line-height: 45px;
  background: $bright;
  position: relative;
  padding-left: 70px;

  &:before {
    @include svgpseudoelem('sprites-icon_calendar');
    top: 4px;
    left: $gutter;
  }
}

%event_date {
  &:before {
    @include svgpseudoelem('sprites-icon_calendar');
    top: 4px;
    left: $gutter;
  }
}

%event_location {
  &:before {
    @include svgpseudoelem('sprites-icon_location');
    top: 4px;
    left: $gutter;
  }
}

%new-flag {
  display: inline-block;
  padding: 3px 15px;
  background: $color-accent-contrast;
  color: $text_white;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.5em;
  transform: rotate(7deg);
  box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  backface-visibility: hidden; // sonst Treppchen im IE
}