/* Basic reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
}


/* Accordion */
.accordion {
    width: 100%;
    background: #fff;
    border: 1px solid #e6e8ee;
    overflow: hidden;
}

.accordion__title {
    padding: 15px 0 10px;
}

.accordion__item + .accordion__item {
    border-top: 1px solid #e6e8ee;

}

.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
	border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
	color: #6b6b6b;
	font-weight: 400;
	transition: 0.5s ease;
	background: #f6f6f6;
}

.accordion__trigger:focus-visible {
    outline: 3px solid #7aa7ff;
    outline-offset: -3px;
}

.accordion__label {
	font-size: 18px;
}

/* Icon (Arrow Down / Up) via CSS */
.accordion__icon {
    width: 18px;
    height: 18px;
    position: relative;
    flex: 0 0 auto;
	color: var(--green);
}

/* simple chevron using borders */
.accordion__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg); /* down */
    transition: transform 180ms ease;
}

/* when expanded -> arrow up */
.accordion__item.is-open .accordion__icon::before {
    transform: rotate(-135deg); /* up */
}

/* Panel animation using height */
.accordion__panel {
    height: 0;
    overflow: hidden;
    transition: height 220ms ease;
}

.accordion__content {
    padding: 0 16px 16px 16px;
    color: #333;
	background-color: #fff;
}

/* Optional: little hover */
.accordion__trigger:hover {
    background: #efefef;
}


/* VARIANTE: Items als "Cards" (frei stehend) */
.accordion[data-variant="cards"] {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

/* In der Card-Variante sollen Items jeweils einen Rahmen haben */
.accordion[data-variant="cards"] .accordion__item {
    background: #fff;
    border: 1px solid #e6e8ee;
    overflow: hidden;
}

/* Abstand zwischen den Cards */
.accordion[data-variant="cards"] .accordion__item + .accordion__item {
    border-top: 1px solid #e6e8ee; /* wird gleich überschrieben, aber falls dein CSS später greift */
    margin-top: 12px;
    border-top: 0;
}

/* Trigger-Hover weiterhin nett, aber ohne "Listen"-Optik */
.accordion[data-variant="cards"] .accordion__trigger:hover {
    background: #efefef;
}

