.backlink {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin: 2em 0;
}

.btn {
    border-radius: 0.5em;
    padding: 0.1em 1em;
    text-align: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    transition: all 0.2s ease;
    background-color: var(--btn-bg-color);
    --btn-hover-color: inherit;
    --btn-active-color: inherit;
    --btn-bg-color: inherit;
    --btn-txt-color: black;
    --btn-hover-txt-color: black;
    --bd-color: none;
    --btn-hover-tr: translateY(-2px);
    --btn-active-tr: translateY(0px)
}

.btn:hover {
    transform: var(--btn-hover-tr);
    background: var(--btn-hover-color);
    color: var(--btn-hover-txt-color);
}

.btn:active {
    transform: var(--btn-active-tr);
    background-color: var(--btn-active-color);
}

.btn--dense {
    padding: 0.1em 0.4em;
    border-radius: 7px;
}

.btn--big {
    font-size: 3.8rem;
}

@media(max-width: 799.8px) {
    .btn--big {
        font-size: 2.4rem;
    }
}

.btn--medium {
    font-size: 2rem;
    --btn-w: 3rem;
}

.btn--small {
    font-size: var(--fs-xs);
}

.btn--main-color {
    color: white;
    box-shadow: var(--box-shadow-z1);
    --btn-bg-color: var(--main-color);
    --btn-hover-color: var(--blue-800);
    --btn-active-color: var(--blue-400);
    --btn-txt-color: white;
    --btn-hover-txt-color: white;
}

.btn--grey {
    border: 2px solid var(--grey-400);
    --btn-bg-color: var(--grey-200);
    --btn-hover-color: var(--grey-600);
    --btn-active-color: var(--grey-100);
    --btn-hover-txt-color: white;
    --btn-hover-tr: none;
}

.btn--icon {
    display: flex;
    gap: 0.5em;
}

.btn--no-fill {
    --bd-color: black;
    border: 3px solid var(--bd-color);
    width: 10em;
    --btn-bg-color: white;
    --btn-hover-color: var(--main-color);
    --btn-active-color: var(--main-color);
    --btn-hover-txt-color: white;
}

.btn--no-fill-grey{
    --bd-color: var(--grey-400);
}

.l-btn--full-height {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.btn--semi-circle-left,
.btn--semi-circle-right {
    --btn-w: 4em;
    width: var(--btn-w);
    height: calc(var(--btn-w) * 2);
     border: 2px solid var(--grey-400); 
    --btn-hover-color: var(--main-color);
    --btn-active-color: var(--blue-400);
    --btn-txt-color: black;
    --btn-hover-txt-color: white; 
}

.btn--semi-circle-left:hover::before,
.btn--semi-circle-right:hover::before{
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7279%) hue-rotate(192deg) brightness(108%) contrast(94%); 
}

.btn--semi-circle-left {
    border-radius: var(--btn-w) 8px 8px var(--btn-w);
    --btn-hover-tr: translateX(3px);
    --btn-active-tr: translateX(4px);
}

.btn--semi-circle-right {
    border-radius: 8px var(--btn-w) var(--btn-w) 8px;
    --btn-hover-tr: translateX(-3px);
    --btn-active-tr: translateX(-4px);
}

.btn__bg-icon {
    --icon-path: url('../img/prev.svg');
}

.btn__bg-icon--prev {
    --icon-path: url('../img/next.svg');
    --btn-hover-tr: translateX(-3px);
    --btn-active-tr: translateX(-4px);
}

.btn__bg-icon--next {
    --icon-path: url('../img/prev.svg');
    --btn-hover-tr: translateX(3px);
    --btn-active-tr: translateX(4px);
}

.btn__bg-icon::before {
    content: var(--icon-path);
    width: 100%;
}

/* border wegnehmen mobil*/
/* NOTE: Style wurde nur für Geräte mit Mauszeiger und Hover Möglichkeit eingesetzt */
@media (hover: hover) and (pointer: fine) {
    .btn--no-fill:hover {
        border: 3px solid var(--main-color);
    }

    .btn--no-fill:active {
        background-color: var(--main-color);
        outline: 1px solid var(--grey-600);
}

    .btn--no-fill {
        transition: border-radius 0.3s ease, background-color 0.5s ease, color 0.5s ease, border 0.5s ease;
}
}

/* NOTE: Workaround einer neuen Klasse, da mobil kein hover oder active vorhanden ist */
@media (hover: none) and (pointer: coarse) {
    .btn--no-fill:active {
        background-color: var(--blue-500);
        outline: 1px solid var(--grey-600);
        color: white;
    }
}

.btn--no-fill.is-pressed {
    background-color: var(--blue-500);
    outline: 1px solid var(--grey-600);
    color: white;
}

@media (max-width: 1199.8px) {
    .btn--no-fill {
        --bd-color: transparent;
        width: 10em;
        background-color: white;
        box-shadow: var(--box-shadow-z3);
    }
}

.btn--round {
    border-radius: 50%;
    aspect-ratio: 1/1;
    width: max-content;
}

.btn--main-color:hover {
    transform: translateY(-2px);
    background: var(--blue-800);
}

.btn--main-color:active {
    transform: translateY(0px);
    background-color: var(--blue-400);
}

#btn-to-top {
    position: fixed;
    bottom: 6rem;
    right: 1rem;
    display: none;
    padding: 1rem 1.5rem;
    font-size: var(--fs-xs);
    background-color: var(--grey-700);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 9;
    background-image: url('../img/to-top.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 65%;
    width: Min(7rem, 5vw);
    aspect-ratio: 1/1;
}

/* zum verhindern, dass er auf großen Bildschirmen ganz am Rand ist*/
@media (min-width: 1499.8px) {
    #btn-to-top {
        right: calc(50% - 75rem);
    }
}


#btn-to-top:hover {
    background-color: var(--grey-900);
}


/*TODO: Folgende klassen haben eine Überarbeitung nötig -> Drucken Button und Zurück zur Gewichtungsseite Buttons*/
.btn--medium-return-to-gewichtung {
    display: block;
    margin-bottom: 2em;
    margin-top: 1em;
}

.btn__toggle-play {
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: none;
    border-radius: 50%; 
    cursor: pointer;
    overflow: hidden; 
    transition: background-color 200ms ease;
    position: relative;
    margin: 0 1rem 1rem 0;
    border: 2px solid var(--grey-500);
    --btn-hover-tr: 0;
    --btn-hover-color: var(--main-color);
    --btn-active-color: var(--blue-600);
    --btn-bg-color: inherit;
    --btn-txt-color: black;
    --btn-hover-txt-color: black;
  }
  
.btn__toggle-play--icon-play, .btn__toggle-play--icon-pause{
    display: grid;
    justify-content: center;
    align-items: center;
    grid-row: 1;
    grid-column: 1;
    width: 90%;
    height: 90%;
    opacity: 0;
  }
  
  .btn__toggle-play--icon-pause > svg, .btn__toggle-play--icon-play > svg{
    width: 100%;
    height: 100%;
  }
  
  .btn__toggle-play{
    display: grid;
    justify-content: center;
    align-items: center;
  }
  
  .btn__toggle-play--play .btn__toggle-play--icon-play{
    opacity: 1;
  }

  .btn__toggle-play--pause .btn__toggle-play--icon-pause {
    opacity: 1;
  }

  .btn__toggle-play:hover .cls-1,   .btn__toggle-play:active .cls-1{
    fill:white
}