/**
 * Theme Button Styles
 * 
 * This file contains all custom styles related to buttons using the UAGB 
 * button component, especially the `.standard` style variations.
 * 
 * If additional button styles or variations become too large, create a 
 * separate sub-file and name it accordingly (e.g., theme_buttons-outline.css).
 */

/***! BUCHEN BUTTONS AUSBLENDEN*/

.wp-block-uagb-buttons-child.buchen-button {
  display: none;
}

.entry-content.clear>.wp-block-uagb-buttons:last-child {
  margin-bottom: calc(var(--cont-gap) - 4.1vw) !important;
}

a.uagb-buttons-repeater.wp-block-button__link {
  color: var(--ast-global-color-3) !important;
  font-family: var(--mainfont);
  font-size: var(--btn-font-size);
  font-style: normal;
  font-weight: 700 !important;
  line-height: 1.66;
  border-radius: var(--border-radius-m);
  padding: var(--my-padding-y) var(--my-padding-x) !important;
  gap: 10px;
  transition: all 0.5s ease 0s;
  --my-padding-x: 1.7em;
  --my-padding-y: 0.88em;
}

a.uagb-buttons-repeater.wp-block-button__link:hover {
  background-color: var(--ast-global-color-3);
  color: var(--ast-global-color-1) !important;
}

a.uagb-buttons-repeater.wp-block-button__link:hover .uagb-button__link {
  color: var(--ast-global-color-1) !important;
}

a.uagb-buttons-repeater.wp-block-button__link:after {
  content: "";
  display: block;
  --my-size: 0.8em;
  height: var(--my-size);
  width: var(--my-size);
  background-image: url("../../img/icon-button-pfeil.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.5s ease 0s;
}

a.uagb-buttons-repeater.wp-block-button__link:hover:after {
  /*transform: translateX(calc(var(--my-padding-x) + 120%));*/
  /*width: 0;*/
  background-image: url("../../img/icon-button-pfeil-beige.svg");
}

/*
a.uagb-buttons-repeater.wp-block-button__link:before {
  content: "";
  display: block;
  --my-size: 0.8em;
  height: var(--my-size);
  width: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.5s ease 0s;
  transform: translateX(calc((var(--my-padding-x) + 120%) * -1));
}

a.uagb-buttons-repeater.wp-block-button__link:hover:before {
  transform: translateX(0);
  width: var(--my-size);
}
*/
@media (max-width: 768px) {
  .btn-group .uagb-buttons__wrap.uagb-buttons-layout-wrap {
    flex-direction: column;
  }
}