/* Buttons (.btn) inkl. Hover-Effekt. */

.btn {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  text-decoration: none;
}

/* Button: schlichtes Rechteck. Varianten über .btn-white (auf farbigem Hintergrund). */
.btn-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-right: 20px;
  margin-bottom: 20px;
}
/* .btn davor, damit allgemeine Regeln wie „.event-details *“ den Button nicht verändern */
.btn .btn-wrapper .btn-background {
  display: none;
}
.btn-wrapper .btn-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background-color: var(--navy);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}
.btn-wrapper .btn-content strong {
  font-weight: 700;
}
.btn-wrapper .btn-content svg {
  display: none;
}
.btn-white .btn-wrapper .btn-content {
  background-color: var(--white);
  color: var(--navy);
}

/* Hover: Pfeil hinter dem Text und eine kleine Stufe oben rechts in Buttonfarbe */
.btn .btn-wrapper .btn-content {
  position: relative;
  gap: 0;
}
.btn-wrapper .btn-content::before {
  content: "→";
  -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
          order: 1;
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  font-weight: 400;
  opacity: 0;
  -webkit-transition: max-width 0.2s, margin-left 0.2s, opacity 0.2s;
  transition: max-width 0.2s, margin-left 0.2s, opacity 0.2s;
}
.btn-wrapper .btn-content::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 16px;
  height: 58%;
  background-color: inherit;
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: left;
          transform-origin: left;
  -webkit-transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
}
.btn:hover .btn-wrapper .btn-content::before,
.btn:focus-visible .btn-wrapper .btn-content::before {
  max-width: 1.5em;
  margin-left: 12px;
  opacity: 1;
}
.btn:hover .btn-wrapper .btn-content::after,
.btn:focus-visible .btn-wrapper .btn-content::after {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}

.btn-royal .btn-wrapper .btn-content {
  background-color: var(--royal);
}

/* Wischbare Listen auf dem Smartphone (Publikationen, News) */
.rf-slider-dots {
  display: none;
}
.rf-slider-button .btn-content {
  background-color: var(--royal);
}
@media (max-width: 767px) {
  .rf-section [data-rf-slider] {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    -ms-scroll-snap-type: x mandatory;
        scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .rf-section [data-rf-slider]::-webkit-scrollbar {
    display: none;
  }
  .rf-section [data-rf-slider] > * {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .rf-slider-dots {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 2px;
    margin-top: 20px;
  }
  .rf-slider-dots button {
    width: 20px;
    height: 20px;
    padding: 6px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .rf-slider-dots button::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--royal);
  }
  .rf-slider-dots button.is-active::before {
    background-color: var(--cyan);
  }
  .btn.rf-slider-button {
    margin: 25px auto 0;
  }
  .rf-slider-button .btn-wrapper {
    margin: 0;
  }
}
