.kartei-image-card {
    top: 1rem;
}

.kartei-image {
    object-fit: contain;
    background: #1a1f26;
    min-height: 280px;
}

.filter-panel {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding-right: 0.25rem;
}

.filter-groups {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.35rem 0.6rem 0.55rem;
}

.filter-group-title {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    list-style: none;
    padding: 0.25rem 0;
}

.filter-group-title::-webkit-details-marker {
    display: none;
}

.filter-group-title::before {
    content: "▸";
    display: inline-block;
    margin-right: 0.4rem;
    transition: transform 0.15s ease;
    opacity: 0.7;
}

.filter-group[open] > .filter-group-title::before {
    transform: rotate(90deg);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.25rem;
}

.filter-option {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.88rem;
    margin: 0;
    cursor: pointer;
}

.filter-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.filter-option-hint {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    line-height: 1.2;
}

.filter-group-note {
    line-height: 1.35;
}

.variety-card {
    transition: transform 0.15s ease, border-color 0.15s ease;
    height: 100%;
}

.variety-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.variety-card img {
    height: 180px;
    object-fit: contain;
    background: #1a1f26;
}

.variety-card .card-title {
    font-size: 0.95rem;
    line-height: 1.3;
}

.kartei-trait p {
    white-space: pre-wrap;
}

@media (max-width: 991.98px) {
    .filter-panel {
        position: static;
        max-height: none;
    }
}
