
/* --- Defeault ---------------------------------------------------------------------- */

.wp-block-details.is-style-default {
    width: calc(100% - 3rem);
    padding: 1rem 1.5rem;
    align-items: center;
    box-shadow: var(--shadow--cards);
    border-radius: var(--border-radius--small);
    background-color: white;
}

.wp-block-details.is-style-default summary {
    font-family: var(--font-family--primary);
    font-size: var(--font-size--medium);
    font-weight: 700;
    color: var(--color--primary-2);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.5s ease-out, color 0.2s ease-out;

}

.wp-block-details.is-style-default summary:hover {
    color: var(--color--primary-1);
}

 /* Standard-Dreieck entfernen (falls es in manchen Browsern noch auftaucht) */
 .wp-block-details.is-style-default summary::-webkit-details-marker,
 .wp-block-details.is-style-default summary::marker {
   display: none;
 }


.wp-block-details.is-style-default summary::after {
    content: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 9.13043H10.8696V0H9.13043V9.13043H0V10.8696H9.13043V20H10.8696V10.8696H20V9.13043Z" fill="%23EE7E04"/></svg>');
    /* margin-left: auto; */
    display: flex;
    transition: transform 0.8s ease;
    height: 20px;
    width: 20px;
    justify-content: center;
    align-content: center;
    align-items: center;
    line-height: 0;
}
details[open].wp-block-details.is-style-default summary{
    margin-bottom: 1rem;
}

.wp-block-details.is-style-default summary.active::after{
    transform: rotate(135deg);
    /* transition: transform 0.8s ease; */
}

.wp-block-group.is-vertical.is-layout-flex:has( > details.wp-block-details.is-style-default) {
    margin-top: clamp(0.5rem, 1vw + 0.5rem, 1.5rem);
}

.accordion-wrapper {
    overflow: hidden;
    transition: height 1s ease; /* Hier kannst du die Geschwindigkeit anpassen */
  }

/* ---------------------------------------------------------------------------- */

/* --- Button Underline ---------------------------------------------------------------------- */

.wp-block-details.is-style-accordion-button-underline p {
    font-size: var(--font-size--x-small);
    font-family: var(--font-family--secondary);
    padding-top: 1rem;
    line-height: 1.3em;
    font-weight: 300;
}

/* .wp-block-details.is-style-accordion-button-underline summary {
    font-family: var(--font-family--primary);
    font-size: var(--font-size--xx-small);
    font-weight: 700;
    color: var(--color--primary-1);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.5rem;
    list-style: none;
    
} */

.wp-block-details.is-style-accordion-button-underline summary {
    font-family: var(--font-family--primary);
    font-size: var(--font-size--xx-small);
    line-height: 1.4em;
    letter-spacing: 0.03em;
    font-weight: 700;
    color: var(--color--primary-1);
    width: fit-content;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    padding-top: 0.2rem;
    /* Unterstreichung entfernen, da wir einen animierten Hintergrund nutzen */
    text-decoration: none;
    list-style: none;
    position: relative;
    cursor: pointer;
    display: inline-block;
    padding-bottom: 2px;
    /* Den Hover-Hintergrund als linearen Farbverlauf definieren */
    background-image: linear-gradient(var(--color--primary-1), var(--color--primary-1));
    /* Zunächst soll der Hintergrund 0% in der Höhe haben */
    background-size: 100% 2px;
    background-position: bottom;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease-in-out, color 0.3s ease-in-out;
  }
  
  .wp-block-details.is-style-accordion-button-underline summary:hover {
    color: white;
    /* Beim Hover füllt der Hintergrund die gesamte Höhe */
    background-size: 100% 100%;
  }
  


/* ---------------------------------------------------------------------------- */

