/**
 * Button Bubble (Arrow) — ported 1:1 from the stellae resource.
 * Pure CSS, no JS needed (hover-driven). Colors are the resource's own
 * (not this site's --secondary-color) — ask if you want it re-themed.
 */
.btn-group {
  grid-column-gap: 3em;
  grid-row-gap: 3em;
  justify-content: center;
  font-size: 2em;
  display: flex;
}

@media screen and (max-width: 479px) {
  /* FIX: at the full 2em base size the pill+arrow combo (padding, gap,
     text) could run wider than a small phone's viewport once the label
     text was forced to one line (see .btn-bubble-arrow__content-text
     above) — scaling every em-based dimension down together via this one
     font-size keeps the whole button proportional instead of overflowing. */
  .btn-group {
    font-size: 1.35em;
  }
}

.btn-bubble-arrow {
  border-radius: 10em;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  text-decoration: none;
  display: flex;
  position: relative;
}

.btn-bubble-arrow__arrow {
  color: #131313;
  background-color: #F7931E;
  border-radius: 10em;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  width: 3.75em;
  height: 3.75em;
  display: flex;
  position: relative;
  transition: transform 0.735s cubic-bezier(0.625, 0.05, 0, 1);
  transform: scale(0) rotate(0.001deg);
  transform-origin: left;
}

.btn-bubble-arrow__arrow.is--duplicate {
  z-index: 2;
  background-color: #efeeec;
  position: absolute;
  right: 0;
}

.btn-bubble-arrow__arrow-svg {
  width: 40%;
  transition: transform 0.735s cubic-bezier(0.625, 0.05, 0, 1);
  transform: rotate(0.001deg);
}

.btn-bubble-arrow__arrow.is--duplicate {
  position: absolute;
  z-index: 2;
  right: 0;
  transform: scale(1) rotate(0.001deg);
  transform-origin: right;
}

.btn-bubble-arrow__content {
  color: #efeeec;
  background-color: #0006;
  border-radius: 10em;
  justify-content: center;
  align-items: center;
  height: 3.75em;
  padding-left: 2em;
  padding-right: 2em;
  display: flex;
  position: relative;
  transition: transform 0.735s cubic-bezier(0.625, 0.05, 0, 1);
  transform: translateX(-3.75em) rotate(0.001deg);
}

.btn-bubble-arrow__content-text {
  line-height: 1;
  /* FIX: .btn-bubble-arrow__content is a fixed 3.75em-tall single-line
     pill with no width constraint of its own — on narrow viewports the CTA
     label (e.g. "Mehr erfahren") could wrap onto a second line, spilling
     text outside the pill's fixed height and crowding the adjacent arrow
     circle. Text stays on one line; the font-size media query below keeps
     the whole button (and its now-wider single-line pill) from being
     oversized on small phones instead. */
  white-space: nowrap;
}

/* Hover */

.btn-bubble-arrow:hover .btn-bubble-arrow__content {
  transform: translateX(0em) rotate(0.001deg);
}

.btn-bubble-arrow:hover .btn-bubble-arrow__arrow-svg {
  transform: rotate(-45deg);
}

.btn-bubble-arrow:hover .btn-bubble-arrow__arrow {
  transform: scale(1) rotate(0.001deg);
}

.btn-bubble-arrow:hover .btn-bubble-arrow__arrow.is--duplicate {
  transform: scale(0) rotate(0.001deg);
}
