/* ==========================================================================
   LSVD Saar – Einheitliche Buttons 0.25.0
   Gilt auf allen Seiten (wird zuletzt geladen):
   - Hauptbuttons: kompakte Pille, heben sich beim Darüberfahren leicht an.
   - Links zu einer anderen Seite bekommen zusätzlich einen weißen Pfeil-Kreis;
     der Pfeil wandert beim Darüberfahren rechts hinaus und links wieder herein.
     Kein Kreis bei E-Mail-, Telefon-, Sprung- (#…) und externen Links –
     die behalten ihr eigenes Zeichen (↗, ↓) bzw. ihren Text.
   - Zweitbuttons: Kontur-Pille in gleicher Höhe.
   Farben aus dem Editor bleiben erhalten; nur Form und Bewegung sind einheitlich.
   ========================================================================== */

:root {
  --lsvd-pfeil-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10.5M9 4l4 4-4 4' fill='none' stroke='%23b42318' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Hauptbuttons ---------- */
html body :is(
  .lsvd-pill,
  .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
  .home-next-event-link,
  .home-team-btn,
  .lsvd-b-btn:not(.is-ghost),
  .lsvd-sp-btn.is-primary,
  .lsvd-join__btn.is-primary,
  .lsvd-event-btn.is-primary,
  .lsvd-steckbrief__cta,
  .lsvd-ea__submit,
  .lsvd-newsletter__btn,
  .lsvd-poll__submit,
  .home-contact-toggle,
  .wpcf7-submit,
  .wp-block-search__button
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 40px;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease !important;
}
html body :is(
  .lsvd-pill,
  .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
  .home-next-event-link,
  .home-team-btn,
  .lsvd-b-btn:not(.is-ghost),
  .lsvd-sp-btn.is-primary,
  .lsvd-join__btn.is-primary,
  .lsvd-event-btn.is-primary,
  .lsvd-steckbrief__cta,
  .lsvd-ea__submit,
  .lsvd-newsletter__btn,
  .lsvd-poll__submit:not(:disabled),
  .home-contact-toggle,
  .wpcf7-submit,
  .wp-block-search__button
):is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(180, 35, 24, .25);
}
/* Rote Buttons werden beim Darüberfahren dunkler rot */
html body :is(
  .has-rot-background-color.wp-block-button__link,
  .home-next-event-link,
  .home-team-btn,
  .lsvd-b-btn:not(.is-ghost),
  .lsvd-sp-btn.is-primary,
  .lsvd-join__btn.is-primary,
  .lsvd-event-btn.is-primary,
  .lsvd-steckbrief__cta,
  .lsvd-ea__submit,
  .wpcf7-submit
):is(:hover, :focus-visible) {
  background-color: #8f1b12 !important;
  border-color: #8f1b12 !important;
  color: #fff !important;
}

/* ---------- Pfeil-Kreis bei Links auf andere Seiten ---------- */
html body a:is(
  .lsvd-pill,
  .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
  .home-next-event-link,
  .home-team-btn,
  .lsvd-b-btn:not(.is-ghost),
  .lsvd-sp-btn.is-primary,
  .lsvd-join__btn.is-primary,
  .lsvd-event-btn.is-primary,
  .lsvd-steckbrief__cta
):not([href^="mailto:"]):not([href^="tel:"]):not([href^="#"]):not([target="_blank"]):not([rel~="noopener"]):not(.mail-link) {
  padding: 5px 5px 5px 20px !important;
}
html body a:is(
  .lsvd-pill,
  .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
  .home-next-event-link,
  .home-team-btn,
  .lsvd-b-btn:not(.is-ghost),
  .lsvd-sp-btn.is-primary,
  .lsvd-join__btn.is-primary,
  .lsvd-event-btn.is-primary,
  .lsvd-steckbrief__cta
):not([href^="mailto:"]):not([href^="tel:"]):not([href^="#"]):not([target="_blank"]):not([rel~="noopener"]):not(.mail-link)::after {
  content: "" !important;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff var(--lsvd-pfeil-svg) no-repeat 50% 50% / 15px 15px;
}
html body a:is(
  .lsvd-pill,
  .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
  .home-next-event-link,
  .home-team-btn,
  .lsvd-b-btn:not(.is-ghost),
  .lsvd-sp-btn.is-primary,
  .lsvd-join__btn.is-primary,
  .lsvd-event-btn.is-primary,
  .lsvd-steckbrief__cta
):is(:hover, :focus-visible)::after {
  animation: lsvd-pfeil-kreis .5s cubic-bezier(.5, 0, .3, 1);
}
@keyframes lsvd-pfeil-kreis {
  0%   { background-position: 50% 50%; }
  45%  { background-position: 260% 50%; }
  46%  { background-position: -160% 50%; }
  100% { background-position: 50% 50%; }
}

/* ---------- Zweitbuttons: Kontur-Pille ---------- */
html body :is(
  .lsvd-pill--ghost,
  .is-style-outline > .wp-block-button__link,
  .lsvd-b-btn.is-ghost,
  .lsvd-sp-btn:not(.is-primary),
  .lsvd-join__btn:not(.is-primary),
  .lsvd-event-btn:not(.is-primary)
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease !important;
}
html body :is(
  .lsvd-pill--ghost,
  .is-style-outline > .wp-block-button__link,
  .lsvd-b-btn.is-ghost,
  .lsvd-sp-btn:not(.is-primary),
  .lsvd-join__btn:not(.is-primary),
  .lsvd-event-btn:not(.is-primary)
):is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 26, 26, .12);
}

@media (prefers-reduced-motion: reduce) {
  html body :is(.lsvd-pill, .lsvd-pill--ghost, .wp-block-button__link, .home-next-event-link, .home-team-btn, .lsvd-b-btn, .lsvd-sp-btn, .lsvd-join__btn, .lsvd-event-btn, .lsvd-steckbrief__cta, .lsvd-ea__submit, .lsvd-newsletter__btn, .lsvd-poll__submit, .home-contact-toggle, .wpcf7-submit, .wp-block-search__button) {
    transition: none !important;
    transform: none !important;
  }
  html body a::after { animation: none !important; }
}
