/* ==========================================================================
   KLEINE MÜHLE - FAMILY FILTER CSS (Micro-Frontend)
   Bayerische Eleganz 2026 | Zero-Click-Waste | Soft UI | Unangreifbar
   ========================================================================== */

.km-ff-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: 'Outfit', sans-serif;
    padding: 0.5rem 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.km-ff-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    outline: none;
    min-width: 64px;
    min-height: 64px;
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

.km-ff-item:hover {
    transform: translateY(-2px) scale(1.02);
}

.km-ff-item:active {
    transform: scale(0.95);
}

.km-ff-item.is-active {
    transform: translateY(-4px) scale(1.08);
}

.km-ff-ring-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(244, 246, 248, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(26, 58, 83, 0.04);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.km-ff-item.is-active .km-ff-ring-wrap {
    box-shadow: 0 12px 28px rgba(26, 58, 83, 0.12);
    background: #ffffff;
}

.km-ff-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.km-ff-bg {
    fill: none;
    stroke: rgba(26, 58, 83, 0.08);
    stroke-width: 4;
}

.km-ff-progress-outer {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.km-ff-progress-inner {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    opacity: 0.35;
    transition: stroke-dashoffset 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Globale "Alle" Kachel --- */
.km-ff-progress-all {
    stroke: #1A3A53;
    stroke-dashoffset: 0;
}
.km-ff-progress-outer.km-ff-progress-all { stroke-dasharray: 201.06; }
.km-ff-progress-inner.km-ff-progress-all { stroke-dasharray: 150.80; }

/* --- Dynamische Mitglieder-Kacheln --- */
.km-ff-progress-dynamic {
    stroke: var(--member-color, #1A3A53);
}
.km-ff-progress-outer.km-ff-progress-dynamic {
    stroke-dasharray: 201.06;
    stroke-dashoffset: var(--dash-outer, 201.06);
}
.km-ff-progress-inner.km-ff-progress-dynamic {
    stroke-dasharray: 150.80;
    stroke-dashoffset: var(--dash-inner, 150.80);
}

/* Vergrößerter Avatar */
.km-ff-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #FCFBF9;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #A0AEC0;
    font-size: 1.5rem;
    box-shadow: inset 0 0 0 3px #ffffff, 0 2px 8px rgba(0,0,0,0.05);
}

.km-ff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.km-ff-item.is-active .km-ff-avatar img {
    transform: scale(1.05);
}

.km-ff-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(26, 58, 83, 0.0), rgba(26, 58, 83, 0.08), rgba(26, 58, 83, 0.0));
    border-radius: 2px;
    margin: 0 10px;
}

.km-ff-badge {
    position: absolute;
    bottom: -2px;
    right: -4px;
    background: #ffffff;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #C4A380;
    box-shadow: 0 4px 12px rgba(196, 163, 128, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    border: 1px solid rgba(196, 163, 128, 0.3);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.km-ff-item:hover .km-ff-badge {
    transform: translateY(-2px);
}

.km-ff-badge i {
    font-size: 0.75rem;
}