/*
 * Buttons — vereinheitlichte Primary/Secondary-Varianten.
 *
 * Grundsatz:
 *   – Alle Buttons haben identische Box-Geometrie (gleiche Padding,
 *     gleiche Border-Width, gleiche Line-Height) — egal welche Variante.
 *   – Hover-Verhalten ist überall gleich: translateY(-2px) + Box-Shadow.
 *     Die Shadow-Farbe folgt der Button-Farbe.
 *   – Active: leichter zurückprellen (translateY(0)).
 *
 * Varianten:
 *   .btn--turquoise   – Primary (türkis, weiß)
 *   .btn--pink        – Primary alt (pink, weiß; Consulting-CTAs)
 *   .btn--primary     – Alternativ-Primary (dunkel-grau, weiß)
 *   .btn--ghost       – Secondary (transparent, dunkler Text, Border)
 *
 * Gutenberg-Block-Style-Spiegel (für register_block_style aus inc/block-styles.php):
 *   .wp-block-button.is-style-bf-turquoise > .wp-block-button__link
 *   .wp-block-button.is-style-bf-pink      > .wp-block-button__link
 *   .wp-block-button.is-style-bf-primary   > .wp-block-button__link
 *   .wp-block-button.is-style-bf-ghost     > .wp-block-button__link
 *   — jede Variante ist in Sammel-Selektoren mit der entsprechenden .btn--*-Regel
 *     verschmolzen, sodass beide Schreibweisen exakt identisch aussehen.
 *
 * Context-Overrides (in hero.css / patterns.css):
 *   – Im Hero wird --ghost zur dunkel-gefüllten Variante (weiße Schrift).
 *   – Im Final-CTA wird --ghost zur halbtransparent-weißen Variante.
 *   – Beide Overrides erben das gemeinsame Hover-Verhalten von hier.
 */

.btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  /* identische Geometrie für alle Varianten */
  padding: 11.5px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  line-height: 1.2;

  /* identische Form */
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;

  /* identisches Verhalten */
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform   .22s var(--ease),
    background  .22s var(--ease),
    border-color .22s var(--ease),
    color       .22s var(--ease),
    box-shadow  .22s var(--ease);
}

.btn:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--bf-turquoise);
  outline-offset: 2px;
}

/* gemeinsamer Hover-Lift + Active-Snap. */
.btn:hover:not([disabled]),
.wp-block-button__link:hover {
  transform: translateY(-2px);
}
.btn:active:not([disabled]),
.wp-block-button__link:active {
  transform: translateY(0);
  transition-duration: .08s;
}

/* Größen */
.btn--lg {
  padding: 14.5px 30px;
  font-size: 16px;
}

/* ------- Primary: Turquoise (Default-CTA) ------- */
.btn--turquoise,
.wp-block-button.is-style-bf-turquoise > .wp-block-button__link {
  background: var(--bf-turquoise);
  color: var(--bf-white);
  border-color: var(--bf-turquoise);
}
.btn--turquoise:hover,
.wp-block-button.is-style-bf-turquoise > .wp-block-button__link:hover {
  background: var(--bf-turquoise-dark);
  border-color: var(--bf-turquoise-dark);
  color: var(--bf-white);
  box-shadow: 0 10px 24px rgba(0, 195, 214, 0.35);
}

/* ------- Primary alt: Pink (Consulting-CTAs) ------- */
.btn--pink,
.wp-block-button.is-style-bf-pink > .wp-block-button__link {
  background: var(--bf-pink);
  color: var(--bf-white);
  border-color: var(--bf-pink);
}
.btn--pink:hover,
.wp-block-button.is-style-bf-pink > .wp-block-button__link:hover {
  background: #c01a4f;
  border-color: #c01a4f;
  color: var(--bf-white);
  box-shadow: 0 10px 24px rgba(221, 31, 90, 0.35);
}

/* ------- Primary alt: Gray-Dark (für Header/dunkle Pendants) ------- */
.btn--primary,
.wp-block-button.is-style-bf-primary > .wp-block-button__link {
  background: var(--bf-gray-dark);
  color: var(--bf-white);
  border-color: var(--bf-gray-dark);
}
.btn--primary:hover,
.wp-block-button.is-style-bf-primary > .wp-block-button__link:hover {
  background: var(--bf-green-dark-1);
  border-color: var(--bf-green-dark-1);
  color: var(--bf-white);
  box-shadow: 0 10px 24px rgba(11, 105, 110, 0.28);
}

/* ------- Secondary: Ghost (outline) ------- */
.btn--ghost,
.wp-block-button.is-style-bf-ghost > .wp-block-button__link {
  background: transparent;
  color: var(--bf-gray-dark);
  border-color: var(--bf-gray-20);
}
.btn--ghost:hover,
.wp-block-button.is-style-bf-ghost > .wp-block-button__link:hover {
  background: var(--bf-beige-light);
  color: var(--bf-gray-dark);
  border-color: var(--bf-gray-dark);
  box-shadow: 0 10px 24px rgba(38, 50, 55, 0.14);
}

/* ------- Block-Variante (volle Breite) ------- */
.btn--block {
  width: 100%;
}

/* ------- Arrow-Icon im Button ------- */
.btn__arrow {
  display: inline-block;
  transition: transform 0.18s var(--ease);
  flex-shrink: 0;
  font-size: 1.05em;
  line-height: 1;
}
.btn:hover .btn__arrow,
.wp-block-button__link:hover .btn__arrow {
  transform: translateX(3px);
}

/* ------- Gutenberg-Wrapper: Margin neutralisieren -------
 * Core .wp-block-buttons hat einen Default-Gap, den wir unsererseits in
 * den Pattern-spezifischen __ctas/__buttons Containern setzen.
 * Wir stellen sicher, dass die wp-block-button-Wrapper keine Eigen-Margins
 * mitbringen, die das geplante 20px-Gap verfälschen.
 */
.wp-block-buttons.bf-hero__ctas,
.wp-block-buttons.bf-final__buttons,
.wp-block-buttons.bf-section__ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.wp-block-buttons > .wp-block-button {
  margin: 0;
}
