/* =========================
   JSD Elli: Buttongruppe
========================= */

.elli-button-group {
    padding-block: var(--elli-button-group-padding-block, 1.125rem);
}


.elli-button-group__title {
    margin: 0 0 var(--elli-button-group-title-margin-bottom, 0.875rem);
    color: var(--elli-button-group-title-color, var(--text, #282828));
    font-weight: var(--elli-button-group-title-font-weight, var(--fw-semibold, 600));
}

.elli-button-group--align-start .elli-button-group__title{
    text-align: left;
}

.elli-button-group--align-center .elli-button-group__title{
    text-align: center;
}

.elli-button-group--align-end .elli-button-group__title{
    text-align: right;
}

.elli-button-group__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--elli-button-group-row-gap, 0.75rem) var(--elli-button-group-column-gap, 0.75rem);
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.elli-button-group--align-center .elli-button-group__list {
    justify-content: center;
}

.elli-button-group--align-end .elli-button-group__list {
    justify-content: flex-end;
}

.elli-button-group--layout-stacked .elli-button-group__list {
    flex-direction: column;
    align-items: stretch;
}

.elli-button-group--layout-stacked.elli-button-group--align-center .elli-button-group__list {
    align-items: center;
}

.elli-button-group--layout-stacked.elli-button-group--align-end .elli-button-group__list {
    align-items: flex-end;
}

.elli-button-group__item {
    display: flex;
}

.elli-button-group__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--elli-button-group-icon-gap, 0.625rem);

    min-inline-size: var(--elli-button-group-min-width, auto);
    border: var(--elli-button-group-border-width, 0.125rem) solid transparent;
    border-radius: var(--elli-button-group-border-radius, var(--radius, 0.625rem));

    font-family: var(--font-sans, system-ui, sans-serif);
    font-weight: var(--elli-button-group-font-weight, var(--fw-bold, 700));
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;

    box-shadow: var(--elli-button-group-shadow, 0 0.2rem 1rem rgba(0, 0, 0, 0.14), 0 0.1rem 0.15rem rgba(0, 0, 0, 0.10));
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.elli-button-group__link:hover {
    transform: translateY(-0.0625rem);
    text-decoration: none;
    box-shadow: var(--elli-button-group-shadow-hover, none);
}

.elli-button-group__link:focus-visible {
    outline: var(--jsd-elli-focus-ring-width, 0.1875rem) solid var(--jsd-elli-focus-ring-color, #000000);
    outline-offset: var(--jsd-elli-focus-ring-offset, 0.1875rem);
    box-shadow: var(--jsd-elli-focus-ring-shadow, 0 0 0 0.1875rem #ffffff);
}

/* Größen */

.elli-button-group__link--small {
    padding: var(--elli-button-group-padding-small, 0.65rem 0.9rem);
    font-size: var(--elli-button-group-font-size-small, var(--fs-xs, 0.9375rem));
}

.elli-button-group__link--medium {
    padding: var(--elli-button-group-padding-medium, 0.85rem 1.2rem);
    font-size: var(--elli-button-group-font-size-medium, var(--fs-md, 1.0625rem));
}

.elli-button-group__link--large {
    padding: var(--elli-button-group-padding-large, 1rem 1.45rem);
    font-size: var(--elli-button-group-font-size-large, var(--fs-lg, 1.1875rem));
}

/* Varianten */

.elli-button-group__link--primary {
    background: var(--elli-button-group-primary-bg, var(--action, #7c7c7c));
    border-color: var(--elli-button-group-primary-border, var(--action, #7c7c7c));
    color: var(--elli-button-group-primary-color, #ffffff);
}

.elli-button-group__link--primary:hover {
    background: var(--elli-button-group-primary-bg-hover, var(--action-hover, #707070));
    border-color: var(--elli-button-group-primary-border-hover, var(--action-hover, #707070));
    color: var(--elli-button-group-primary-color-hover, #ffffff);
}

.elli-button-group__link--secondary {
    background: var(--elli-button-group-secondary-bg, #ffffff);
    border-color: var(--elli-button-group-secondary-border, var(--stroke-strong, #424242));
    color: var(--elli-button-group-secondary-color, var(--stroke-strong, #424242));
}

.elli-button-group__link--secondary:hover {
    background: var(--elli-button-group-secondary-bg-hover, #f1f1f1);
    border-color: var(--elli-button-group-secondary-border-hover, var(--stroke-strong, #424242));
    color: var(--elli-button-group-secondary-color-hover, var(--text, #282828));
}

.elli-button-group__link--dark {
    background: var(--elli-button-group-dark-bg, var(--stroke-strong, #424242));
    border-color: var(--elli-button-group-dark-border, var(--stroke-strong, #424242));
    color: var(--elli-button-group-dark-color, #ffffff);
}

.elli-button-group__link--dark:hover {
    background: var(--elli-button-group-dark-bg-hover, #2f2f2f);
    border-color: var(--elli-button-group-dark-border-hover, #2f2f2f);
    color: var(--elli-button-group-dark-color-hover, #ffffff);
}

.elli-button-group__link--light {
    background: var(--elli-button-group-light-bg, #ffffff);
    border-color: var(--elli-button-group-light-border, rgba(0, 0, 0, 0.12));
    color: var(--elli-button-group-light-color, var(--text, #282828));
}

.elli-button-group__link--light:hover {
    background: var(--elli-button-group-light-bg-hover, #f7f7f7);
    border-color: var(--elli-button-group-light-border-hover, rgba(0, 0, 0, 0.18));
    color: var(--elli-button-group-light-color-hover, var(--text, #282828));
}

/* Icon */

.elli-button-group__icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.elli-button-group__svg {
    inline-size: var(--elli-button-group-icon-size, 1rem);
    block-size: var(--elli-button-group-icon-size, 1rem);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsive */

@media (max-width: 575.98px) {
    .elli-button-group--full-width-mobile .elli-button-group__list,
    .elli-button-group--full-width-mobile .elli-button-group__item,
    .elli-button-group--full-width-mobile .elli-button-group__link {
        inline-size: 100%;
    }

    .elli-button-group--full-width-mobile .elli-button-group__list {
        align-items: stretch;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .elli-button-group__link {
        transition: none;
    }

    .elli-button-group__link:hover {
        transform: none;
    }
}