/* Styles nur für .childborder[collapsable], sicher und scoped */

.childborder-collapsable-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin: 5px 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.childborder-toggle {
    cursor: pointer;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    user-select: none;
}

.childborder-toggle span.arrow {
    font-size: 14px;
    margin-right: 10px;
}

.childborder-content {
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
    max-height: 40px;
    padding: 10px;
}

.childborder-content.collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

.childborder-content.expanded::after {
    display: none;
}

/* Original-Inhalt bekommt eine definierte Basisoptik */
.childborder[collapsable] {
    all: unset;
    display: block;
}
