:root :where(.wp-element-button, .wp-block-button__link) {
    padding: 0;
    color: unset;
}

:root
    :where(.wp-block-button):not(
        .is-style-button-ghost-arrow,
        .is-style-button-circle-arrow-right,
        .is-style-button-circle-arrow-left,
        .is-style-button-standard-s,
        .is-style-button-ghost-s,
        .is-style-button-underline
    ) a {
    padding: 0.95rem 1rem 0.55rem 1rem;
}

:root :where(.wp-element-button, .wp-block-button__link) {
    background-color: unset;
}

.wp-block-buttons,
.wp-block-buttons.is-layout-flex.wp-block-buttons-is-layout-flex {
    margin-top: clamp(1.13rem, 1vw + 1rem, 2.25rem);
}

/* .wp-block-button .wp-block-button__link, */
.wp-block-button,
.quform-submit .quform-button-text,
.wp-block-button.is-style-button-underline.toggle-button,
.ost-jobs button.action,
.ost-filter-form button {
    border-radius: var(--border-radius--small);
    font-weight: 500;
    font-family: var(--font-family--primary);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* transform: translateY(0.09em); */
}

.quform-submit .quform-button-text {
    display: inline-block;
}

.ost-jobs button.action {
    padding-top: 11px;
}

.is-style-button-ghost .wp-block-button__link {
    font-size: var(--font-size--x-small);
}

/* .wp-block-button.is-style-button-ghost-s .wp-block-button__link{
    transform: translateY(0.1em);
} */

/* .wp-block-button.is-style-button-standard-s .wp-block-button__link{
    transform: translateY(0.15em);
} */

/* --- Standard, gefüllt ---------------------------------------------------------------------- */

.block-editor-block-list__block.wp-block-button[class*="is-style-button-ghost"] a {
    padding: 0.95rem 1rem 0.55rem 1rem;
    font-size: var(--font-size--x-small);
}

.block-editor-block-list__block.wp-block-button[class*="is-style-button-ghost-s"] a {
    padding: 0.65rem 1rem 0.35rem 1rem;
    font-size: var(--font-size--xx-small);
}

.block-editor-block-list__block.wp-block-button .block-editor-rich-text__editable.wp-block-button__link {
    padding: 0;
}

.block-editor-block-list__block.wp-block-button[class*="button-standard"]
    .block-editor-rich-text__editable.wp-block-button__link {
    font-size: inherit !important;
}

/* .block-editor-block-list__block:not([class*="is-style-button-ghost"]):not([class*="is-style-button-underline"]) .wp-block-button__link, */
/* .wp-block-button:not(.block-editor-block-list__block), */
.block-editor-block-list__block.wp-block-button:not([class*="is-style-button-ghost"]):not(
        [class*="is-style-button-underline"]
    ):not([class*="is-style-button-black"]),
.block-editor-block-list__block.wp-block-button:not([class*="is-style-button-ghost"]):not(
        [class*="is-style-button-underline"]
    ):not([class*="is-style-button-black"])
    .block-editor-rich-text__editable.wp-block-button__link,
.wp-block-button:not([class*="is-style-button-ghost"]):not(.block-editor-block-list__block):not(
        [class*="is-style-button-underline"]
    ):not([class*="is-style-button-black"]),
button.quform-submit {
    border-radius: 0.5rem;
    background-color: var(--color--primary-1);
    font-size: var(--font-size--x-small);
    transition: all 0.3s linear;
    position: relative;
}

.block-editor-block-list__block.wp-block-button:not([class*="is-style-button-ghost"]):not(
        [class*="is-style-button-underline"]
    ):not([class*="is-style-button-black"])
    .block-editor-rich-text__editable.wp-block-button__link, 
    .block-editor-block-list__block.wp-block-button.is-style-button-ghost .wp-block-button__link,
    .block-editor-block-list__block.wp-block-button.is-style-button-ghost-s .wp-block-button__link,
    .block-editor-block-list__block .wp-block-button .employee-filter-button {
            padding: 0.95rem 1rem 0.55rem 1rem;
    }

.wp-block-button .employee-filter-button {
    padding: 0.95rem 1rem 0.55rem 1rem;
}

.block-editor-block-list__block:hover.wp-block-button:not([class*="is-style-button-ghost"]):not([class*="is-style-button-underline"]):not([class*="is-style-button-black"]),
.block-editor-block-list__block:hover.wp-block-button:not([class*="is-style-button-ghost"]):not([class*="is-style-button-underline"]):not([class*="is-style-button-black"]) .block-editor-rich-text__editable.wp-block-button__link,
.wp-block-button:hover:not([class*="is-style-button-ghost"]):not(.block-editor-block-list__block):not([class*="is-style-button-underline"]),
/* .wp-block-button:hover:not(.block-editor-block-list__block), */
button.quform-submit:hover {
    background-color: var(--color--secondary-1);
    transition: all 0.3s linear;
}

button.quform-submit {
    border: unset;
}

.quform-submit .quform-button-text,
.wp-block-button .wp-block-button__link {
    color: var(--color--secondary-2);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: left;
    min-height: 1em;
    transform: translateY(-0.05em);
}

.block-editor-block-list__block.wp-block-button .wp-block-button__link{
    display: inline-flex;
    align-items: center;
    justify-content: left;
    line-height: 1;
    transform: translateY(-0.05em);
}

/* button.quform-submit span {
    color: var(--color--secondary-2);
} */

/* --- Ghost ---------------------------------------------------------------------- */

.is-style-button-underline .wp-block-button__link,
.is-style-button-ghost .wp-block-button__link {
    color: unset;
}

.is-style-button-ghost,
.is-style-button-ghost-s,
.is-style-button-ghost-arrow,
.ost-jobs button.action,
.ost-filter-form button {
    background-color: white;
    /* border: var(--color--primary-1) 1px solid; */
    box-shadow: 0 0 0 1px var(--color--primary-1) inset;
    color: var(--color--secondary-1);
    transition: all 0.3s linear;
    font-size: var(--font-size--x-small);
}

.ost-filter-form button:hover,
.ost-jobs button.action:hover,
.is-style-button-ghost:hover,
.is-style-button-ghost-s:hover,
.is-style-button-ghost-arrow:hover {
    background-color: var(--color--primary-1);
    color: white;
    transition: all 0.3s linear;
}

.is-style-button-black {
    border-radius: 0.5rem;
    background-color: var(--color--secondary-1);
    color: var(--color--secondary-2);
    transition: all 0.3s linear;
    font-size: var(--font-size--x-small);
}

.is-style-button-black:hover {
    background-color: var(--color--secondary-2);
    color: var(--color--secondary-1);
    transition: all 0.3s linear;
}

/* .wp-block-button.is-style-button-ghost {
    padding-bottom: 0.8em;
    line-height: 0.9em;
} */

.is-style-button-standard-s a {
    padding: 0.75rem 1rem 0.4rem 1rem;
}

.is-style-button-ghost-s a {
    padding: 0.75rem 1rem 0.35rem 1rem;
    background-color: white;
    /* border: var(--color--primary-1) 1px solid; */
}

/* --- Standard S ---------------------------------------------------------------------- */
.is-style-button-standard-s {
    font-size: var(--font-size--xx-small) !important;
}

/* --- Ghost S ---------------------------------------------------------------------- */
.is-style-button-ghost-s .wp-block-button__link {
    font-size: var(--font-size--xx-small);
    color: var(--color--primary-2);
    background-color: unset;
}

/* --- Ghost-Underline ---------------------------------------------------------------------- */
.is-style-button-underline .wp-block-button__link {
    position: relative;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

.wp-block-button.is-style-button-underline,
.wp-block-button.is-style-button-underline.toggle-button {
    background-color: unset;
    border: none;
    border-radius: 0;
    border-bottom: var(--color--primary-1) 2px solid;
    color: var(--color--primary-1);
    padding: 0;
    padding-bottom: 4px;
    font-size: var(--font-size--xx-small);
    font-weight: 700;
    position: relative;
    cursor: pointer;
    line-height: 1em;
    letter-spacing: 0.03em;
}

.is-style-button-underline::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background-color: var(--color--primary-1);
    transition: height 0.3s ease-in-out;
}

.is-style-button-underline:hover,
.wp-block-button.is-style-button-underline.toggle-button:hover {
    color: white;
}

.is-style-button-underline:hover::before {
    height: 130%;
    /* z-index: -1; */
}

/* .section-card-blog-slider .wp-block-group.wp-block-button.is-style-button-underline.is-content-justification-right {
    padding-top: 0.2rem;
} */

/* --- Ghost Pfeil ---------------------------------------------------------------------- */
.is-style-button-ghost-arrow {
    padding: 0.7rem 1rem 0.4rem 1rem;
    width: 100%;
    padding-right: 2.75rem;
    background-color: white;

    /* SVG-Pfeil als Hintergrundbild */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='15' viewBox='0 0 17 15' fill='%23EF7D00'%3E%3Cpath d='M16.667 7.5L10.0003 0.833336L9.06033 1.77334L14.1137 6.83334L0.666992 6.83333L0.666992 8.16667L14.1137 8.16667L9.06033 13.2267L10.0003 14.1667L16.667 7.5Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center; /* Pfeil rechts positionieren */
    background-size: 1.2rem; /* Größe des Pfeils anpassen */
    transition: all 0.3s linear;
}

.is-style-button-ghost-arrow .wp-block-button__link.wp-element-button {
    text-align: left;
    transform: translateY(0.05em);
    /* border: var(--color--primary-1) 1px solid; */
    color: var(--color--primary-2);
    font-size: var(--font-size--x-small);
}

.is-style-button-ghost-arrow:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='15' viewBox='0 0 17 15' fill='white'%3E%3Cpath d='M16.667 7.5L10.0003 0.833336L9.06033 1.77334L14.1137 6.83334L0.666992 6.83333L0.666992 8.16667L14.1137 8.16667L9.06033 13.2267L10.0003 14.1667L16.667 7.5Z'/%3E%3C/svg%3E");
}

details.wp-block-details.is-style-accordion-button-underline:has(.is-style-button-ghost-arrow) {
    width: 100%;
}

.wp-block-button.is-style-button-ghost-arrow {
    width: 100%;
}

/* --- Kreis Links-Pfeil ---------------------------------------------------------------------- */
.wp-block-button.is-style-button-circle-arrow-left,
.wp-block-button.is-style-button-circle-arrow-right {
    border-radius: 0;
    background-color: unset;
    position: relative;
}

.is-style-button-circle-arrow-left .wp-element-button,
.is-style-button-circle-arrow-right .wp-element-button {
    transform: rotate(180deg);
    font-size: 0;
    width: 48px;
    height: 48px;
    background-color: var(--color--primary-1);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Weißer SVG-Pfeil als Hintergrundbild */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='15' viewBox='0 0 17 15' fill='%23FFFFFF'%3E%3Cpath d='M16.667 7.5L10.0003 0.833336L9.06033 1.77334L14.1137 6.83334L0.666992 6.83333L0.666992 8.16667L14.1137 8.16667L9.06033 13.2267L10.0003 14.1667L16.667 7.5Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px; /* Größe des Pfeils */
    transition: background-color 0.3s linear;
}

.is-style-button-circle-arrow-left:hover .wp-element-button,
.is-style-button-circle-arrow-right:hover .wp-element-button {
    background-color: var(--color--secondary-1);
}

.is-style-button-circle-arrow-right .wp-element-button {
    transform: rotate(0);
}

footer .wp-block-button.is-style-button-circle-arrow-right {
    background-color: unset !important;
}

footer .wp-block-button.is-style-button-circle-arrow-right:hover .wp-block-button__link {
    background-color: var(--color--primary-1);
}

.wp-block-button.employee-button-wrapper {
    margin-top: 1.5rem;
}

.section-card-blog-slider
    .block-editor-block-list__block.wp-block-button
    .block-editor-rich-text__editable.wp-block-button__link {
    background-color: transparent;
}

.load-more-button-employee.wp-block-button__link.wp-element-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 500;
    transform: translateY(-0.05em);
    padding: 0.95rem 1rem 0.55rem 1rem;
}

.ost-jobs button {
    padding: 0.95rem 12px 0.55rem 12px;
}


/* --- CTA-Banner Button ---------------------------------------------------------------------- */

.cta-banner .wp-block-button:not([class*="is-style-button-ghost"]):not(.block-editor-block-list__block):not( [class*="is-style-button-underline"] ):not([class*="is-style-button-black"]) {
    background-color: var(--color--secondary-1);
}